You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__tasks__index.1e344be5.as...

291 lines
2.1 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([[68,3,4,6,7,11,12,13],{"+Axu":function(S,F,v){},"+NIl":function(S,F,v){(function(w){w(v("VrN/"))})(function(w){"use strict";w.defineMode("stex",function(h,I){"use strict";function m(s,e){s.cmdState.push(e)}function g(s){return s.cmdState.length>0?s.cmdState[s.cmdState.length-1]:null}function a(s){var e=s.cmdState.pop();e&&e.closeBracket()}function f(s){for(var e=s.cmdState,i=e.length-1;i>=0;i--){var _=e[i];if(_.name=="DEFAULT")continue;return _}return{styleIdentifier:function(){return null}}}function d(s,e,i){return function(){this.name=s,this.bracketNo=0,this.style=e,this.styles=i,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var u={};u.importmodule=d("importmodule","tag",["string","builtin"]),u.documentclass=d("documentclass","tag",["","atom"]),u.usepackage=d("usepackage","tag",["atom"]),u.begin=d("begin","tag",["atom"]),u.end=d("end","tag",["atom"]),u.label=d("label","tag",["atom"]),u.ref=d("ref","tag",["atom"]),u.eqref=d("eqref","tag",["atom"]),u.cite=d("cite","tag",["atom"]),u.bibitem=d("bibitem","tag",["atom"]),u.Bibitem=d("Bibitem","tag",["atom"]),u.RBibitem=d("RBibitem","tag",["atom"]),u.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function o(s,e){s.f=e}function r(s,e){var i;if(s.match(/^\\[a-zA-Z@]+/)){var _=s.current().slice(1);return i=u.hasOwnProperty(_)?u[_]:u.DEFAULT,i=new i,m(e,i),o(e,n),i.style}if(s.match(/^\\[$&%#{}_]/))return"tag";if(s.match(/^\\[,;!\/\\]/))return"tag";if(s.match("\\["))return o(e,function(y,E){return l(y,E,"\\]")}),"keyword";if(s.match("\\("))return o(e,function(y,E){return l(y,E,"\\)")}),"keyword";if(s.match("$$"))return o(e,function(y,E){return l(y,E,"$$")}),"keyword";if(s.match("$"))return o(e,function(y,E){return l(y,E,"$")}),"keyword";var b=s.next();if(b=="%")return s.skipToEnd(),"comment";if(b=="}"||b=="]"){if(i=g(e),i)i.closeBracket(b),o(e,n);else return"error";return"bracket"}else return b=="{"||b=="["?(i=u.DEFAULT,i=new i,m(e,i),"bracket"):/\d/.test(b)?(s.eatWhile(/[\w.%]/),"atom"):(s.eatWhile(/[\w\-_]/),i=f(e),i.name=="begin"&&(i.argument=s.current()),i.styleIdentifier())}function l(s,e,i){if(s.eatSpace())return null;if(i&&s.match(i))return o(e,r),"keyword";if(s.match(/^\\[a-zA-Z@]+/))return"tag";if(s.match(/^[a-zA-Z]+/))return"variable-2";if(s.match(/^\\[$&%#{}_]/))return"tag";if(s.match(/^\\[,;!\/]/))return"tag";if(s.match(/^[\^_&]/))return"tag";if(s.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(s.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var _=s.next();return _=="{"||_=="}"||_=="["||_=="]"||_=="("||_==")"?"bracket":_=="%"?(s.skipToEnd(),"comment"):"error"}function n(s,e){var i=s.peek(),_;return i=="{"||i=="["?(_=g(e),_.openBracket(i),s.eat(i),o(e,r),"bracket"):/[ \t\r]/.test(i)?(s.eat(i),null):(o(e,r),a(e),r(s,e))}return{startState:function(){var s=I.inMathMode?function(e,i){return l(e,i)}:r;return{cmdState:[],f:s}},copyState:function(s){return{cmdState:s.cmdState.slice(),f:s.f}},token:function(s,e){return e.f(s,e)},blankLine:function(s){s.f=r,s.cmdState.length=0},lineComment:"%"}}),w.defineMIME("text/x-stex","stex"),w.defineMIME("text/x-latex","stex")})},"+QRC":function(S,F,v){"use strict";var w=v("E9nw"),h={"text/plain":"Text","text/html":"Url",default:"Text"},I="Copy to clipboard: #{key}, Enter";function m(a){var f=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,f)}function g(a,f){var d,u,o,r,l,n,s=!1;f||(f={}),d=f.debug||!1;try{o=w(),r=document.createRange(),l=document.getSelection(),n=document.createElement("span"),n.textContent=a,n.style.all="unset",n.style.position="fixed",n.style.top=0,n.style.clip="rect(0, 0, 0, 0)",n.style.whiteSpace="pre",n.style.webkitUserSelect="text",n.style.MozUserSelect="text",n.style.msUserSelect="text",n.style.userSelect="text",n.addEventListener("copy",function(i){if(i.stopPropagation(),f.format)if(i.preventDefault(),typeof i.clipboardData=="undefined"){d&&console.warn("unable to use e.clipboardData"),d&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var _=h[f.format]||h.default;window.clipboardData.setData(_,a)}else i.clipboardData.clearData(),i.clipboardData.setData(f.format,a);f.onCopy&&(i.preventDefault(),f.onCopy(i.clipboardData))}),document.body.appendChild(n),r.selectNodeContents(n),l.addRange(r);var e=document.execCommand("copy");if(!e)throw new Error("copy command was unsuccessful");s=!0}catch(i){d&&console.error("unable to copy using execCommand: ",i),d&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(f.format||"text",a),f.onCopy&&f.onCopy(window.clipboardData),s=!0}catch(_){d&&console.error("unable to copy using clipboardData: ",_),d&&console.error("falling back to prompt"),u=m("message"in f?f.message:I),window.prompt(u,a)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(r):l.removeAllRanges()),n&&document.body.removeChild(n),o()}return s}S.exports=g},"+ua5":function(S,F,v){},"/GNS":function(S,F,v){S.exports=v.p+"static/search1.c4136dd4.png"},"/POA":function(S,F,v){!function(w,h){if(!0)S.exports=h();else var I,m}(window,function(){return function(w){var h={};function I(m){if(h[m])return h[m].exports;var g=h[m]={i:m,l:!1,exports:{}};return w[m].call(g.exports,g,g.exports,I),g.l=!0,g.exports}return I.m=w,I.c=h,I.d=function(m,g,a){I.o(m,g)||Object.defineProperty(m,g,{enumerable:!0,get:a})},I.r=function(m){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(m,"__esModule",{value:!0})},I.t=function(m,g){if(1&g&&(m=I(m)),8&g)return m;if(4&g&&typeof m=="object"&&m&&m.__esModule)return m;var a=Object.create(null);if(I.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:m}),2&g&&typeof m!="string")for(var f in m)I.d(a,f,function(d){return m[d]}.bind(null,f));return a},I.n=function(m){var g=m&&m.__esModule?function(){return m.default}:function(){return m};return I.d(g,"a",g),g},I.o=function(m,g){return Object.prototype.hasOwnProperty.call(m,g)},I.p="",I(I.s=34)}([function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.forwardEvent=h.EventEmitter=void 0;var m=function(){function g(){this._listeners=[],this._disposed=!1}return Object.defineProperty(g.prototype,"event",{get:function(){var a=this;return this._event||(this._event=function(f){return a._listeners.push(f),{dispose:function(){if(!a._disposed){for(var d=0;d<a._listeners.length;d++)if(a._listeners[d]===f)return void a._listeners.splice(d,1)}}}}),this._event},enumerable:!1,configurable:!0}),g.prototype.fire=function(a,f){for(var d=[],u=0;u<this._listeners.length;u++)d.push(this._listeners[u]);for(u=0;u<d.length;u++)d[u].call(void 0,a,f)},g.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},g}();h.EventEmitter=m,h.forwardEvent=function(g,a){return g(function(f){return a.fire(f)})}},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.IUnicodeService=h.IOptionsService=h.ILogService=h.IInstantiationService=h.IDirtyRowService=h.ICharsetService=h.ICoreService=h.ICoreMouseService=h.IBufferService=void 0;var m=I(14);h.IBufferService=m.createDecorator("BufferService"),h.ICoreMouseService=m.createDecorator("CoreMouseService"),h.ICoreService=m.createDecorator("CoreService"),h.ICharsetService=m.createDecorator("CharsetService"),h.IDirtyRowService=m.createDecorator("DirtyRowService"),h.IInstantiationService=m.createDecorator("InstantiationService"),h.ILogService=m.createDecorator("LogService"),h.IOptionsService=m.createDecorator("OptionsService"),h.IUnicodeService=m.createDecorator("UnicodeService")},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.getDisposeArrayDisposable=h.disposeArray=h.Disposable=void 0;var m=function(){function a(){this._disposables=[],this._isDisposed=!1}return a.prototype.dispose=function(){this._isDisposed=!0;for(var f=0,d=this._disposables;f<d.length;f++)d[f].dispose();this._disposables.length=0},a.prototype.register=function(f){return this._disposables.push(f),f},a.prototype.unregister=function(f){var d=this._disposables.indexOf(f);d!==-1&&this._disposables.splice(d,1)},a}();function g(a){for(var f=0,d=a;f<d.length;f++)d[f].dispose();a.length=0}h.Disposable=m,h.disposeArray=g,h.getDisposeArrayDisposable=function(a){return{dispose:function(){return g(a)}}}},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.WHITESPACE_CELL_CODE=h.WHITESPACE_CELL_WIDTH=h.WHITESPACE_CELL_CHAR=h.NULL_CELL_CODE=h.NULL_CELL_WIDTH=h.NULL_CELL_CHAR=h.CHAR_DATA_CODE_INDEX=h.CHAR_DATA_WIDTH_INDEX=h.CHAR_DATA_CHAR_INDEX=h.CHAR_DATA_ATTR_INDEX=h.DEFAULT_ATTR=h.DEFAULT_COLOR=void 0,h.DEFAULT_COLOR=256,h.DEFAULT_ATTR=256|h.DEFAULT_COLOR<<9,h.CHAR_DATA_ATTR_INDEX=0,h.CHAR_DATA_CHAR_INDEX=1,h.CHAR_DATA_WIDTH_INDEX=2,h.CHAR_DATA_CODE_INDEX=3,h.NULL_CELL_CHAR="",h.NULL_CELL_WIDTH=1,h.NULL_CELL_CODE=0,h.WHITESPACE_CELL_CHAR=" ",h.WHITESPACE_CELL_WIDTH=1,h.WHITESPACE_CELL_CODE=32},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(o,r){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,n){l.__proto__=n}||function(l,n){for(var s in n)n.hasOwnProperty(s)&&(l[s]=n[s])})(o,r)},function(o,r){function l(){this.constructor=o}m(o,r),o.prototype=r===null?Object.create(r):(l.prototype=r.prototype,new l)});Object.defineProperty(h,"__esModule",{value:!0}),h.CellData=void 0;var a=I(8),f=I(3),d=I(6),u=function(o){function r(){var l=o!==null&&o.apply(this,arguments)||this;return l.content=0,l.fg=0,l.bg=0,l.extended=new d.ExtendedAttrs,l.combinedData="",l}return g(r,o),r.fromCharData=function(l){var n=new r;return n.setFromCharData(l),n},r.prototype.isCombined=function(){return 2097152&this.content},r.prototype.getWidth=function(){return this.content>>22},r.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?a.stringFromCodePoint(2097151&this.content):""},r.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},r.prototype.setFromCharData=function(l){this.fg=l[f.CHAR_DATA_ATTR_INDEX],this.bg=0;var n=!1;if(l[f.CHAR_DATA_CHAR_INDEX].length>2)n=!0;else if(l[f.CHAR_DATA_CHAR_INDEX].length===2){var s=l[f.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=s&&s<=56319){var e=l[f.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=e&&e<=57343?this.content=1024*(s-55296)+e-56320+65536|l[f.CHAR_DATA_WIDTH_INDEX]<<22:n=!0}else n=!0}else this.content=l[f.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|l[f.CHAR_DATA_WIDTH_INDEX]<<22;n&&(this.combinedData=l[f.CHAR_DATA_CHAR_INDEX],this.content=2097152|l[f.CHAR_DATA_WIDTH_INDEX]<<22)},r.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},r}(d.AttributeData);h.CellData=u},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.ISoundService=h.ISelectionService=h.IRenderService=h.IMouseService=h.ICoreBrowserService=h.ICharSizeService=void 0;var m=I(14);h.ICharSizeService=m.createDecorator("CharSizeService"),h.ICoreBrowserService=m.createDecorator("CoreBrowserService"),h.IMouseService=m.createDecorator("MouseService"),h.IRenderService=m.createDecorator("RenderService"),h.ISelectionService=m.createDecorator("SelectionService"),h.ISoundService=m.createDecorator("SoundService")},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.ExtendedAttrs=h.AttributeData=void 0;var m=function(){function a(){this.fg=0,this.bg=0,this.extended=new g}return a.toColorRGB=function(f){return[f>>>16&255,f>>>8&255,255&f]},a.fromColorRGB=function(f){return(255&f[0])<<16|(255&f[1])<<8|255&f[2]},a.prototype.clone=function(){var f=new a;return f.fg=this.fg,f.bg=this.bg,f.extended=this.extended.clone(),f},a.prototype.isInverse=function(){return 67108864&this.fg},a.prototype.isBold=function(){return 134217728&this.fg},a.prototype.isUnderline=function(){return 268435456&this.fg},a.prototype.isBlink=function(){return 536870912&this.fg},a.prototype.isInvisible=function(){return 1073741824&this.fg},a.prototype.isItalic=function(){return 67108864&this.bg},a.prototype.isDim=function(){return 134217728&this.bg},a.prototype.getFgColorMode=function(){return 50331648&this.fg},a.prototype.getBgColorMode=function(){return 50331648&this.bg},a.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},a.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},a.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},a.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},a.prototype.isFgDefault=function(){return(50331648&this.fg)==0},a.prototype.isBgDefault=function(){return(50331648&this.bg)==0},a.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},a.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},a.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},a.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},a.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},a.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},a.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},a.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},a.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},a.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},a.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},a}();h.AttributeData=m;var g=function(){function a(f,d){f===void 0&&(f=0),d===void 0&&(d=-1),this.underlineStyle=f,this.underlineColor=d}return a.prototype.clone=function(){return new a(this.underlineStyle,this.underlineColor)},a.prototype.isEmpty=function(){return this.underlineStyle===0},a}();h.ExtendedAttrs=g},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.addDisposableDomListener=void 0,h.addDisposableDomListener=function(m,g,a,f){m.addEventListener(g,a,f);var d=!1;return{dispose:function(){d||(d=!0,m.removeEventListener(g,a,f))}}}},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.Utf8ToUtf32=h.StringToUtf32=h.utf32ToString=h.stringFromCodePoint=void 0,h.stringFromCodePoint=function(a){return a>65535?(a-=65536,String.fromCharCode(55296+(a>>10))+String.fromCharCode(a%1024+56320)):String.fromCharCode(a)},h.utf32ToString=function(a,f,d){f===void 0&&(f=0),d===void 0&&(d=a.length);for(var u="",o=f;o<d;++o){var r=a[o];r>65535?(r-=65536,u+=String.fromCharCode(55296+(r>>10))+String.fromCharCode(r%1024+56320)):u+=String.fromCharCode(r)}return u};var m=function(){function a(){this._interim=0}return a.prototype.clear=function(){this._interim=0},a.prototype.decode=function(f,d){var u=f.length;if(!u)return 0;var o=0,r=0;this._interim&&(56320<=(s=f.charCodeAt(r++))&&s<=57343?d[o++]=1024*(this._interim-55296)+s-56320+65536:(d[o++]=this._interim,d[o++]=s),this._interim=0);for(var l=r;l<u;++l){var n=f.charCodeAt(l);if(55296<=n&&n<=56319){if(++l>=u)return this._interim=n,o;var s;56320<=(s=f.charCodeAt(l))&&s<=57343?d[o++]=1024*(n-55296)+s-56320+65536:(d[o++]=n,d[o++]=s)}else d[o++]=n}return o},a}();h.StringToUtf32=m;var g=function(){function a(){this.interim=new Uint8Array(3)}return a.prototype.clear=function(){this.interim.fill(0)},a.prototype.decode=function(f,d){var u=f.length;if(!u)return 0;var o,r,l,n,s=0,e=0,i=0;if(this.interim[0]){var _=!1,b=this.interim[0];b&=(224&b)==192?31:(240&b)==224?15:7;for(var y=0,E=void 0;(E=63&this.interim[++y])&&y<4;)b<<=6,b|=E;for(var c=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,C=c-y;i<C;){if(i>=u)return 0;if((192&(E=f[i++]))!=128){i--,_=!0;break}this.interim[y++]=E,b<<=6,b|=63&E}_||(c===2?b<128?i--:d[s++]=b:c===3?b<2048||b>=55296&&b<=57343||(d[s++]=b):b<65536||b>1114111||(d[s++]=b)),this.interim.fill(0)}for(var x=u-4,M=i;M<u;){for(;!(!(M<x)||128&(o=f[M])||128&(r=f[M+1])||128&(l=f[M+2])||128&(n=f[M+3]));)d[s++]=o,d[s++]=r,d[s++]=l,d[s++]=n,M+=4;if((o=f[M++])<128)d[s++]=o;else if((224&o)==192){if(M>=u)return this.interim[0]=o,s;if((192&(r=f[M++]))!=128){M--;continue}if((e=(31&o)<<6|63&r)<128){M--;continue}d[s++]=e}else if((240&o)==224){if(M>=u)return this.interim[0]=o,s;if((192&(r=f[M++]))!=128){M--;continue}if(M>=u)return this.interim[0]=o,this.interim[1]=r,s;if((192&(l=f[M++]))!=128){M--;continue}if((e=(15&o)<<12|(63&r)<<6|63&l)<2048||e>=55296&&e<=57343)continue;d[s++]=e}else if((248&o)==240){if(M>=u)return this.interim[0]=o,s;if((192&(r=f[M++]))!=128){M--;continue}if(M>=u)return this.interim[0]=o,this.interim[1]=r,s;if((192&(l=f[M++]))!=128){M--;continue}if(M>=u)return this.interim[0]=o,this.interim[1]=r,this.interim[2]=l,s;if((192&(n=f[M++]))!=128){M--;continue}if((e=(7&o)<<18|(63&r)<<12|(63&l)<<6|63&n)<65536||e>1114111)continue;d[s++]=e}}return s},a}();h.Utf8ToUtf32=g},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.CHAR_ATLAS_CELL_SPACING=h.DIM_OPACITY=h.INVERTED_DEFAULT_COLOR=void 0,h.INVERTED_DEFAULT_COLOR=257,h.DIM_OPACITY=.5,h.CHAR_ATLAS_CELL_SPACING=1},function(w,h,I){"use strict";var m,g,a,f;function d(o){var r=o.toString(16);return r.length<2?"0"+r:r}function u(o,r){return o<r?(r+.05)/(o+.05):(o+.05)/(r+.05)}Object.defineProperty(h,"__esModule",{value:!0}),h.contrastRatio=h.toPaddedHex=h.rgba=h.rgb=h.css=h.color=h.channels=void 0,function(o){o.toCss=function(r,l,n,s){return s!==void 0?"#"+d(r)+d(l)+d(n)+d(s):"#"+d(r)+d(l)+d(n)},o.toRgba=function(r,l,n,s){return s===void 0&&(s=255),(r<<24|l<<16|n<<8|s)>>>0}}(m=h.channels||(h.channels={})),(g=h.color||(h.color={})).blend=function(o,r){var l=(255&r.rgba)/255;if(l===1)return{css:r.css,rgba:r.rgba};var n=r.rgba>>24&255,s=r.rgba>>16&255,e=r.rgba>>8&255,i=o.rgba>>24&255,_=o.rgba>>16&255,b=o.rgba>>8&255,y=i+Math.round((n-i)*l),E=_+Math.round((s-_)*l),c=b+Math.round((e-b)*l);return{css:m.toCss(y,E,c),rgba:m.toRgba(y,E,c)}},g.isOpaque=function(o){return(255&o.rgba)==255},g.ensureContrastRatio=function(o,r,l){var n=f.ensureContrastRatio(o.rgba,r.rgba,l);if(n)return f.toColor(n>>24&255,n>>16&255,n>>8&255)},g.opaque=function(o){var r=(255|o.rgba)>>>0,l=f.toChannels(r),n=l[0],s=l[1],e=l[2];return{css:m.toCss(n,s,e),rgba:r}},g.opacity=function(o,r){var l=Math.round(255*r),n=f.toChannels(o.rgba),s=n[0],e=n[1],i=n[2];return{css:m.toCss(s,e,i,l),rgba:m.toRgba(s,e,i,l)}},(h.css||(h.css={})).toColor=function(o){switch(o.length){case 7:return{css:o,rgba:(parseInt(o.slice(1),16)<<8|255)>>>0};case 9:return{css:o,rgba:parseInt(o.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(o){function r(l,n,s){var e=l/255,i=n/255,_=s/255;return .2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*(_<=.03928?_/12.92:Math.pow((_+.055)/1.055,2.4))}o.relativeLuminance=function(l){return r(l>>16&255,l>>8&255,255&l)},o.relativeLuminance2=r}(a=h.rgb||(h.rgb={})),function(o){function r(n,s,e){for(var i=n>>24&255,_=n>>16&255,b=n>>8&255,y=s>>24&255,E=s>>16&255,c=s>>8&255,C=u(a.relativeLuminance2(y,c,E),a.relativeLuminance2(i,_,b));C<e&&(y>0||E>0||c>0);)y-=Math.max(0,Math.ceil(.1*y)),E-=Math.max(0,Math.ceil(.1*E)),c-=Math.max(0,Math.ceil(.1*c)),C=u(a.relativeLuminance2(y,c,E),a.relativeLuminance2(i,_,b));return(y<<24|E<<16|c<<8|255)>>>0}function l(n,s,e){for(var i=n>>24&255,_=n>>16&255,b=n>>8&255,y=s>>24&255,E=s>>16&255,c=s>>8&255,C=u(a.relativeLuminance2(y,c,E),a.relativeLuminance2(i,_,b));C<e&&(y<255||E<255||c<255);)y=Math.min(255,y+Math.ceil(.1*(255-y))),E=Math.min(255,E+Math.ceil(.1*(255-E))),c=Math.min(255,c+Math.ceil(.1*(255-c))),C=u(a.relativeLuminance2(y,c,E),a.relativeLuminance2(i,_,b));return(y<<24|E<<16|c<<8|255)>>>0}o.ensureContrastRatio=function(n,s,e){var i=a.relativeLuminance(n>>8),_=a.relativeLuminance(s>>8);if(u(i,_)<e)return _<i?r(n,s,e):l(n,s,e)},o.reduceLuminance=r,o.increaseLuminance=l,o.toChannels=function(n){return[n>>24&255,n>>16&255,n>>8&255,255&n]},o.toColor=function(n,s,e){return{css:m.toCss(n,s,e),rgba:m.toRgba(n,s,e)}}}(f=h.rgba||(h.rgba={})),h.toPaddedHex=d,h.contrastRatio=u},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.isLinux=h.isWindows=h.isIphone=h.isIpad=h.isMac=h.isSafari=h.isFirefox=void 0;var m=typeof navigator=="undefined",g=m?"node":navigator.userAgent,a=m?"node":navigator.platform;function f(d,u){return d.indexOf(u)>=0}h.isFirefox=!!~g.indexOf("Firefox"),h.isSafari=/^((?!chrome|android).)*safari/i.test(g),h.isMac=f(["Macintosh","MacIntel","MacPPC","Mac68K"],a),h.isIpad=a==="iPad",h.isIphone=a==="iPhone",h.isWindows=f(["Windows","Win16","Win32","WinCE"],a),h.isLinux=a.indexOf("Linux")>=0},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.C1=h.C0=void 0,function(m){m.NUL="\0",m.SOH="",m.STX="",m.ETX="",m.EOT="",m.ENQ="",m.ACK="",m.BEL="\x07",m.BS="\b",m.HT=" ",m.LF=`
`,m.VT="\v",m.FF="\f",m.CR="\r",m.SO="",m.SI="",m.DLE="",m.DC1="",m.DC2="",m.DC3="",m.DC4="",m.NAK="",m.SYN="",m.ETB="",m.CAN="",m.EM="",m.SUB="",m.ESC="",m.FS="",m.GS="",m.RS="",m.US="",m.SP=" ",m.DEL="\x7F"}(h.C0||(h.C0={})),function(m){m.PAD="\x80",m.HOP="\x81",m.BPH="\x82",m.NBH="\x83",m.IND="\x84",m.NEL="\x85",m.SSA="\x86",m.ESA="\x87",m.HTS="\x88",m.HTJ="\x89",m.VTS="\x8A",m.PLD="\x8B",m.PLU="\x8C",m.RI="\x8D",m.SS2="\x8E",m.SS3="\x8F",m.DCS="\x90",m.PU1="\x91",m.PU2="\x92",m.STS="\x93",m.CCH="\x94",m.MW="\x95",m.SPA="\x96",m.EPA="\x97",m.SOS="\x98",m.SGCI="\x99",m.SCI="\x9A",m.CSI="\x9B",m.ST="\x9C",m.OSC="\x9D",m.PM="\x9E",m.APC="\x9F"}(h.C1||(h.C1={}))},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.BaseRenderLayer=void 0;var m=I(3),g=I(9),a=I(25),f=I(6),d=I(28),u=I(10),o=I(17),r=function(){function l(n,s,e,i,_,b,y,E){this._container=n,this._alpha=i,this._colors=_,this._rendererId=b,this._bufferService=y,this._optionsService=E,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+s+"-layer"),this._canvas.style.zIndex=e.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return l.prototype.dispose=function(){var n;o.removeElementFromParent(this._canvas),(n=this._charAtlas)===null||n===void 0||n.dispose()},l.prototype._initCanvas=function(){this._ctx=d.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},l.prototype.onOptionsChanged=function(){},l.prototype.onBlur=function(){},l.prototype.onFocus=function(){},l.prototype.onCursorMove=function(){},l.prototype.onGridChanged=function(n,s){},l.prototype.onSelectionChanged=function(n,s,e){e===void 0&&(e=!1)},l.prototype.setColors=function(n){this._refreshCharAtlas(n)},l.prototype._setTransparency=function(n){if(n!==this._alpha){var s=this._canvas;this._alpha=n,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,s),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},l.prototype._refreshCharAtlas=function(n){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=a.acquireCharAtlas(this._optionsService.options,this._rendererId,n,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},l.prototype.resize=function(n){this._scaledCellWidth=n.scaledCellWidth,this._scaledCellHeight=n.scaledCellHeight,this._scaledCharWidth=n.scaledCharWidth,this._scaledCharHeight=n.scaledCharHeight,this._scaledCharLeft=n.scaledCharLeft,this._scaledCharTop=n.scaledCharTop,this._canvas.width=n.scaledCanvasWidth,this._canvas.height=n.scaledCanvasHeight,this._canvas.style.width=n.canvasWidth+"px",this._canvas.style.height=n.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},l.prototype._fillCells=function(n,s,e,i){this._ctx.fillRect(n*this._scaledCellWidth,s*this._scaledCellHeight,e*this._scaledCellWidth,i*this._scaledCellHeight)},l.prototype._fillBottomLineAtCells=function(n,s,e){e===void 0&&(e=1),this._ctx.fillRect(n*this._scaledCellWidth,(s+1)*this._scaledCellHeight-window.devicePixelRatio-1,e*this._scaledCellWidth,window.devicePixelRatio)},l.prototype._fillLeftLineAtCell=function(n,s,e){this._ctx.fillRect(n*this._scaledCellWidth,s*this._scaledCellHeight,window.devicePixelRatio*e,this._scaledCellHeight)},l.prototype._strokeRectAtCell=function(n,s,e,i){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(n*this._scaledCellWidth+window.devicePixelRatio/2,s*this._scaledCellHeight+window.devicePixelRatio/2,e*this._scaledCellWidth-window.devicePixelRatio,i*this._scaledCellHeight-window.devicePixelRatio)},l.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},l.prototype._clearCells=function(n,s,e,i){this._alpha?this._ctx.clearRect(n*this._scaledCellWidth,s*this._scaledCellHeight,e*this._scaledCellWidth,i*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(n*this._scaledCellWidth,s*this._scaledCellHeight,e*this._scaledCellWidth,i*this._scaledCellHeight))},l.prototype._fillCharTrueColor=function(n,s,e){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(e),this._ctx.fillText(n.getChars(),s*this._scaledCellWidth+this._scaledCharLeft,e*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},l.prototype._drawChars=function(n,s,e){var i,_,b=this._getContrastColor(n);b||n.isFgRGB()||n.isBgRGB()?this._drawUncachedChars(n,s,e,b):(n.isInverse()?(i=n.isBgDefault()?g.INVERTED_DEFAULT_COLOR:n.getBgColor(),_=n.isFgDefault()?g.INVERTED_DEFAULT_COLOR:n.getFgColor()):(_=n.isBgDefault()?m.DEFAULT_COLOR:n.getBgColor(),i=n.isFgDefault()?m.DEFAULT_COLOR:n.getFgColor()),i+=this._optionsService.options.drawBoldTextInBrightColors&&n.isBold()&&i<8?8:0,this._currentGlyphIdentifier.chars=n.getChars()||m.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=n.getCode()||m.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=_,this._currentGlyphIdentifier.fg=i,this._currentGlyphIdentifier.bold=!!n.isBold(),this._currentGlyphIdentifier.dim=!!n.isDim(),this._currentGlyphIdentifier.italic=!!n.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,s*this._scaledCellWidth+this._scaledCharLeft,e*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(n,s,e))},l.prototype._drawUncachedChars=function(n,s,e,i){if(this._ctx.save(),this._ctx.font=this._getFont(!!n.isBold(),!!n.isItalic()),this._ctx.textBaseline="middle",n.isInverse())if(i)this._ctx.fillStyle=i.css;else if(n.isBgDefault())this._ctx.fillStyle=u.color.opaque(this._colors.background).css;else if(n.isBgRGB())this._ctx.fillStyle="rgb("+f.AttributeData.toColorRGB(n.getBgColor()).join(",")+")";else{var _=n.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&n.isBold()&&_<8&&(_+=8),this._ctx.fillStyle=this._colors.ansi[_].css}else if(i)this._ctx.fillStyle=i.css;else if(n.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(n.isFgRGB())this._ctx.fillStyle="rgb("+f.AttributeData.toColorRGB(n.getFgColor()).join(",")+")";else{var b=n.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&n.isBold()&&b<8&&(b+=8),this._ctx.fillStyle=this._colors.ansi[b].css}this._clipRow(e),n.isDim()&&(this._ctx.globalAlpha=g.DIM_OPACITY),this._ctx.fillText(n.getChars(),s*this._scaledCellWidth+this._scaledCharLeft,e*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},l.prototype._clipRow=function(n){this._ctx.beginPath(),this._ctx.rect(0,n*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},l.prototype._getFont=function(n,s){return(s?"italic":"")+" "+(n?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},l.prototype._getContrastColor=function(n){if(this._optionsService.options.minimumContrastRatio!==1){var s=this._colors.contrastCache.getColor(n.bg,n.fg);if(s!==void 0)return s||void 0;var e=n.getFgColor(),i=n.getFgColorMode(),_=n.getBgColor(),b=n.getBgColorMode(),y=!!n.isInverse(),E=!!n.isInverse();if(y){var c=e;e=_,_=c;var C=i;i=b,b=C}var x=this._resolveBackgroundRgba(b,_,y),M=this._resolveForegroundRgba(i,e,y,E),k=u.rgba.ensureContrastRatio(x,M,this._optionsService.options.minimumContrastRatio);if(k){var T={css:u.channels.toCss(k>>24&255,k>>16&255,k>>8&255),rgba:k};return this._colors.contrastCache.setColor(n.bg,n.fg,T),T}this._colors.contrastCache.setColor(n.bg,n.fg,null)}},l.prototype._resolveBackgroundRgba=function(n,s,e){switch(n){case 16777216:case 33554432:return this._colors.ansi[s].rgba;case 50331648:return s<<8;case 0:default:return e?this._colors.foreground.rgba:this._colors.background.rgba}},l.prototype._resolveForegroundRgba=function(n,s,e,i){switch(n){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&i&&s<8&&(s+=8),this._colors.ansi[s].rgba;case 50331648:return s<<8;case 0:default:return e?this._colors.background.rgba:this._colors.foreground.rgba}},l}();h.BaseRenderLayer=r},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.createDecorator=h.getServiceDependencies=h.serviceRegistry=void 0;function m(g,a,f){a.di$target===a?a.di$dependencies.push({id:g,index:f}):(a.di$dependencies=[{id:g,index:f}],a.di$target=a)}h.serviceRegistry=new Map,h.getServiceDependencies=function(g){return g.di$dependencies||[]},h.createDecorator=function(g){if(h.serviceRegistry.has(g))return h.serviceRegistry.get(g);var a=function(f,d,u){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");m(a,f,u)};return a.toString=function(){return g},h.serviceRegistry.set(g,a),a}},function(w,h,I){"use strict";function m(g,a,f,d){if(f===void 0&&(f=0),d===void 0&&(d=g.length),f>=g.length)return g;f=(g.length+f)%g.length,d=d>=g.length?g.length:(g.length+d)%g.length;for(var u=f;u<d;++u)g[u]=a;return g}Object.defineProperty(h,"__esModule",{value:!0}),h.concat=h.fillFallback=h.fill=void 0,h.fill=function(g,a,f,d){return g.fill?g.fill(a,f,d):m(g,a,f,d)},h.fillFallback=m,h.concat=function(g,a){var f=new g.constructor(g.length+a.length);return f.set(g),f.set(a,g.length),f}},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.BufferLine=h.DEFAULT_ATTR_DATA=void 0;var m=I(8),g=I(3),a=I(4),f=I(6);h.DEFAULT_ATTR_DATA=Object.freeze(new f.AttributeData);var d=function(){function u(o,r,l){l===void 0&&(l=!1),this.isWrapped=l,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*o);for(var n=r||a.CellData.fromCharData([0,g.NULL_CELL_CHAR,g.NULL_CELL_WIDTH,g.NULL_CELL_CODE]),s=0;s<o;++s)this.setCell(s,n);this.length=o}return u.prototype.get=function(o){var r=this._data[3*o+0],l=2097151&r;return[this._data[3*o+1],2097152&r?this._combined[o]:l?m.stringFromCodePoint(l):"",r>>22,2097152&r?this._combined[o].charCodeAt(this._combined[o].length-1):l]},u.prototype.set=function(o,r){this._data[3*o+1]=r[g.CHAR_DATA_ATTR_INDEX],r[g.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[o]=r[1],this._data[3*o+0]=2097152|o|r[g.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*o+0]=r[g.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|r[g.CHAR_DATA_WIDTH_INDEX]<<22},u.prototype.getWidth=function(o){return this._data[3*o+0]>>22},u.prototype.hasWidth=function(o){return 12582912&this._data[3*o+0]},u.prototype.getFg=function(o){return this._data[3*o+1]},u.prototype.getBg=function(o){return this._data[3*o+2]},u.prototype.hasContent=function(o){return 4194303&this._data[3*o+0]},u.prototype.getCodePoint=function(o){var r=this._data[3*o+0];return 2097152&r?this._combined[o].charCodeAt(this._combined[o].length-1):2097151&r},u.prototype.isCombined=function(o){return 2097152&this._data[3*o+0]},u.prototype.getString=function(o){var r=this._data[3*o+0];return 2097152&r?this._combined[o]:2097151&r?m.stringFromCodePoint(2097151&r):""},u.prototype.loadCell=function(o,r){var l=3*o;return r.content=this._data[l+0],r.fg=this._data[l+1],r.bg=this._data[l+2],2097152&r.content&&(r.combinedData=this._combined[o]),268435456&r.bg&&(r.extended=this._extendedAttrs[o]),r},u.prototype.setCell=function(o,r){2097152&r.content&&(this._combined[o]=r.combinedData),268435456&r.bg&&(this._extendedAttrs[o]=r.extended),this._data[3*o+0]=r.content,this._data[3*o+1]=r.fg,this._data[3*o+2]=r.bg},u.prototype.setCellFromCodePoint=function(o,r,l,n,s,e){268435456&s&&(this._extendedAttrs[o]=e),this._data[3*o+0]=r|l<<22,this._data[3*o+1]=n,this._data[3*o+2]=s},u.prototype.addCodepointToCell=function(o,r){var l=this._data[3*o+0];2097152&l?this._combined[o]+=m.stringFromCodePoint(r):(2097151&l?(this._combined[o]=m.stringFromCodePoint(2097151&l)+m.stringFromCodePoint(r),l&=-2097152,l|=2097152):l=r|1<<22,this._data[3*o+0]=l)},u.prototype.insertCells=function(o,r,l,n){if((o%=this.length)&&this.getWidth(o-1)===2&&this.setCellFromCodePoint(o-1,0,1,(n==null?void 0:n.fg)||0,(n==null?void 0:n.bg)||0,(n==null?void 0:n.extended)||new f.ExtendedAttrs),r<this.length-o){for(var s=new a.CellData,e=this.length-o-r-1;e>=0;--e)this.setCell(o+r+e,this.loadCell(o+e,s));for(e=0;e<r;++e)this.setCell(o+e,l)}else for(e=o;e<this.length;++e)this.setCell(e,l);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(n==null?void 0:n.fg)||0,(n==null?void 0:n.bg)||0,(n==null?void 0:n.extended)||new f.ExtendedAttrs)},u.prototype.deleteCells=function(o,r,l,n){if(o%=this.length,r<this.length-o){for(var s=new a.CellData,e=0;e<this.length-o-r;++e)this.setCell(o+e,this.loadCell(o+r+e,s));for(e=this.length-r;e<this.length;++e)this.setCell(e,l)}else for(e=o;e<this.length;++e)this.setCell(e,l);o&&this.getWidth(o-1)===2&&this.setCellFromCodePoint(o-1,0,1,(n==null?void 0:n.fg)||0,(n==null?void 0:n.bg)||0,(n==null?void 0:n.extended)||new f.ExtendedAttrs),this.getWidth(o)!==0||this.hasContent(o)||this.setCellFromCodePoint(o,0,1,(n==null?void 0:n.fg)||0,(n==null?void 0:n.bg)||0,(n==null?void 0:n.extended)||new f.ExtendedAttrs)},u.prototype.replaceCells=function(o,r,l,n){for(o&&this.getWidth(o-1)===2&&this.setCellFromCodePoint(o-1,0,1,(n==null?void 0:n.fg)||0,(n==null?void 0:n.bg)||0,(n==null?void 0:n.extended)||new f.ExtendedAttrs),r<this.length&&this.getWidth(r-1)===2&&this.setCellFromCodePoint(r,0,1,(n==null?void 0:n.fg)||0,(n==null?void 0:n.bg)||0,(n==null?void 0:n.extended)||new f.ExtendedAttrs);o<r&&o<this.length;)this.setCell(o++,l)},u.prototype.resize=function(o,r){if(o!==this.length){if(o>this.length){var l=new Uint32Array(3*o);this.length&&(3*o<this._data.length?l.set(this._data.subarray(0,3*o)):l.set(this._data)),this._data=l;for(var n=this.length;n<o;++n)this.setCell(n,r)}else if(o){(l=new Uint32Array(3*o)).set(this._data.subarray(0,3*o)),this._data=l;var s=Object.keys(this._combined);for(n=0;n<s.length;n++){var e=parseInt(s[n],10);e>=o&&delete this._combined[e]}}else this._data=new Uint32Array(0),this._combined={};this.length=o}},u.prototype.fill=function(o){this._combined={},this._extendedAttrs={};for(var r=0;r<this.length;++r)this.setCell(r,o)},u.prototype.copyFrom=function(o){for(var r in this.length!==o.length?this._data=new Uint32Array(o._data):this._data.set(o._data),this.length=o.length,this._combined={},o._combined)this._combined[r]=o._combined[r];for(var r in this._extendedAttrs={},o._extendedAttrs)this._extendedAttrs[r]=o._extendedAttrs[r];this.isWrapped=o.isWrapped},u.prototype.clone=function(){var o=new u(0);for(var r in o._data=new Uint32Array(this._data),o.length=this.length,this._combined)o._combined[r]=this._combined[r];for(var r in this._extendedAttrs)o._extendedAttrs[r]=this._extendedAttrs[r];return o.isWrapped=this.isWrapped,o},u.prototype.getTrimmedLength=function(){for(var o=this.length-1;o>=0;--o)if(4194303&this._data[3*o+0])return o+(this._data[3*o+0]>>22);return 0},u.prototype.copyCellsFrom=function(o,r,l,n,s){var e=o._data;if(s)for(var i=n-1;i>=0;i--)for(var _=0;_<3;_++)this._data[3*(l+i)+_]=e[3*(r+i)+_];else for(i=0;i<n;i++)for(_=0;_<3;_++)this._data[3*(l+i)+_]=e[3*(r+i)+_];var b=Object.keys(o._combined);for(_=0;_<b.length;_++){var y=parseInt(b[_],10);y>=r&&(this._combined[y-r+l]=o._combined[y])}},u.prototype.translateToString=function(o,r,l){o===void 0&&(o=!1),r===void 0&&(r=0),l===void 0&&(l=this.length),o&&(l=Math.min(l,this.getTrimmedLength()));for(var n="";r<l;){var s=this._data[3*r+0],e=2097151&s;n+=2097152&s?this._combined[r]:e?m.stringFromCodePoint(e):g.WHITESPACE_CELL_CHAR,r+=s>>22||1}return n},u}();h.BufferLine=d},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.removeElementFromParent=void 0,h.removeElementFromParent=function(){for(var m,g=[],a=0;a<arguments.length;a++)g[a]=arguments[a];for(var f=0,d=g;f<d.length;f++){var u=d[f];(m=u==null?void 0:u.parentElement)===null||m===void 0||m.removeChild(u)}}},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.tooMuchOutput=h.promptLabel=void 0,h.promptLabel="Terminal input",h.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(M,k){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,R){T.__proto__=R}||function(T,R){for(var P in R)R.hasOwnProperty(P)&&(T[P]=R[P])})(M,k)},function(M,k){function T(){this.constructor=M}m(M,k),M.prototype=k===null?Object.create(k):(T.prototype=k.prototype,new T)});Object.defineProperty(h,"__esModule",{value:!0}),h.InputHandler=h.WindowsOptionsReportType=void 0;var a,f=I(12),d=I(20),u=I(39),o=I(2),r=I(15),l=I(8),n=I(16),s=I(0),e=I(3),i=I(4),_=I(6),b=I(22),y=I(24),E={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function c(M,k){if(M>24)return k.setWinLines||!1;switch(M){case 1:return!!k.restoreWin;case 2:return!!k.minimizeWin;case 3:return!!k.setWinPosition;case 4:return!!k.setWinSizePixels;case 5:return!!k.raiseWin;case 6:return!!k.lowerWin;case 7:return!!k.refreshWin;case 8:return!!k.setWinSizeChars;case 9:return!!k.maximizeWin;case 10:return!!k.fullscreenWin;case 11:return!!k.getWinState;case 13:return!!k.getWinPosition;case 14:return!!k.getWinSizePixels;case 15:return!!k.getScreenSizePixels;case 16:return!!k.getCellSizePixels;case 18:return!!k.getWinSizeChars;case 19:return!!k.getScreenSizeChars;case 20:return!!k.getIconTitle;case 21:return!!k.getWinTitle;case 22:return!!k.pushTitle;case 23:return!!k.popTitle;case 24:return!!k.setWinLines}return!1}!function(M){M[M.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",M[M.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(a=h.WindowsOptionsReportType||(h.WindowsOptionsReportType={}));var C=function(){function M(k,T,R,P){this._bufferService=k,this._coreService=T,this._logService=R,this._optionsService=P,this._data=new Uint32Array(0)}return M.prototype.hook=function(k){this._data=new Uint32Array(0)},M.prototype.put=function(k,T,R){this._data=r.concat(this._data,k.subarray(T,R))},M.prototype.unhook=function(k){if(k){var T=l.utf32ToString(this._data);switch(this._data=new Uint32Array(0),T){case'"q':return this._coreService.triggerDataEvent(f.C0.ESC+'P1$r0"q'+f.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(f.C0.ESC+'P1$r61;1"p'+f.C0.ESC+"\\");case"r":var R=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(f.C0.ESC+"P1$r"+R+f.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(f.C0.ESC+"P1$r0m"+f.C0.ESC+"\\");case" q":var P={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return P-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(f.C0.ESC+"P1$r"+P+" q"+f.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",T),this._coreService.triggerDataEvent(f.C0.ESC+"P0$r"+f.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},M}(),x=function(M){function k(T,R,P,B,W,z,H,ee,G){G===void 0&&(G=new u.EscapeSequenceParser);var U=M.call(this)||this;U._bufferService=T,U._charsetService=R,U._coreService=P,U._dirtyRowService=B,U._logService=W,U._optionsService=z,U._coreMouseService=H,U._unicodeService=ee,U._parser=G,U._parseBuffer=new Uint32Array(4096),U._stringDecoder=new l.StringToUtf32,U._utf8Decoder=new l.Utf8ToUtf32,U._workCell=new i.CellData,U._windowTitle="",U._iconName="",U._windowTitleStack=[],U._iconNameStack=[],U._curAttrData=n.DEFAULT_ATTR_DATA.clone(),U._eraseAttrDataInternal=n.DEFAULT_ATTR_DATA.clone(),U._onRequestBell=new s.EventEmitter,U._onRequestRefreshRows=new s.EventEmitter,U._onRequestReset=new s.EventEmitter,U._onRequestScroll=new s.EventEmitter,U._onRequestSyncScrollBar=new s.EventEmitter,U._onRequestWindowsOptionsReport=new s.EventEmitter,U._onA11yChar=new s.EventEmitter,U._onA11yTab=new s.EventEmitter,U._onCursorMove=new s.EventEmitter,U._onLineFeed=new s.EventEmitter,U._onScroll=new s.EventEmitter,U._onTitleChange=new s.EventEmitter,U.register(U._parser),U._parser.setCsiHandlerFallback(function(j,Z){U._logService.debug("Unknown CSI code: ",{identifier:U._parser.identToString(j),params:Z.toArray()})}),U._parser.setEscHandlerFallback(function(j){U._logService.debug("Unknown ESC code: ",{identifier:U._parser.identToString(j)})}),U._parser.setExecuteHandlerFallback(function(j){U._logService.debug("Unknown EXECUTE code: ",{code:j})}),U._parser.setOscHandlerFallback(function(j,Z,ie){U._logService.debug("Unknown OSC code: ",{identifier:j,action:Z,data:ie})}),U._parser.setDcsHandlerFallback(function(j,Z,ie){Z==="HOOK"&&(ie=ie.toArray()),U._logService.debug("Unknown DCS code: ",{identifier:U._parser.identToString(j),action:Z,payload:ie})}),U._parser.setPrintHandler(function(j,Z,ie){return U.print(j,Z,ie)}),U._parser.setCsiHandler({final:"@"},function(j){return U.insertChars(j)}),U._parser.setCsiHandler({intermediates:" ",final:"@"},function(j){return U.scrollLeft(j)}),U._parser.setCsiHandler({final:"A"},function(j){return U.cursorUp(j)}),U._parser.setCsiHandler({intermediates:" ",final:"A"},function(j){return U.scrollRight(j)}),U._parser.setCsiHandler({final:"B"},function(j){return U.cursorDown(j)}),U._parser.setCsiHandler({final:"C"},function(j){return U.cursorForward(j)}),U._parser.setCsiHandler({final:"D"},function(j){return U.cursorBackward(j)}),U._parser.setCsiHandler({final:"E"},function(j){return U.cursorNextLine(j)}),U._parser.setCsiHandler({final:"F"},function(j){return U.cursorPrecedingLine(j)}),U._parser.setCsiHandler({final:"G"},function(j){return U.cursorCharAbsolute(j)}),U._parser.setCsiHandler({final:"H"},function(j){return U.cursorPosition(j)}),U._parser.setCsiHandler({final:"I"},function(j){return U.cursorForwardTab(j)}),U._parser.setCsiHandler({final:"J"},function(j){return U.eraseInDisplay(j)}),U._parser.setCsiHandler({prefix:"?",final:"J"},function(j){return U.eraseInDisplay(j)}),U._parser.setCsiHandler({final:"K"},function(j){return U.eraseInLine(j)}),U._parser.setCsiHandler({prefix:"?",final:"K"},function(j){return U.eraseInLine(j)}),U._parser.setCsiHandler({final:"L"},function(j){return U.insertLines(j)}),U._parser.setCsiHandler({final:"M"},function(j){return U.deleteLines(j)}),U._parser.setCsiHandler({final:"P"},function(j){return U.deleteChars(j)}),U._parser.setCsiHandler({final:"S"},function(j){return U.scrollUp(j)}),U._parser.setCsiHandler({final:"T"},function(j){return U.scrollDown(j)}),U._parser.setCsiHandler({final:"X"},function(j){return U.eraseChars(j)}),U._parser.setCsiHandler({final:"Z"},function(j){return U.cursorBackwardTab(j)}),U._parser.setCsiHandler({final:"`"},function(j){return U.charPosAbsolute(j)}),U._parser.setCsiHandler({final:"a"},function(j){return U.hPositionRelative(j)}),U._parser.setCsiHandler({final:"b"},function(j){return U.repeatPrecedingCharacter(j)}),U._parser.setCsiHandler({final:"c"},function(j){return U.sendDeviceAttributesPrimary(j)}),U._parser.setCsiHandler({prefix:">",final:"c"},function(j){return U.sendDeviceAttributesSecondary(j)}),U._parser.setCsiHandler({final:"d"},function(j){return U.linePosAbsolute(j)}),U._parser.setCsiHandler({final:"e"},function(j){return U.vPositionRelative(j)}),U._parser.setCsiHandler({final:"f"},function(j){return U.hVPosition(j)}),U._parser.setCsiHandler({final:"g"},function(j){return U.tabClear(j)}),U._parser.setCsiHandler({final:"h"},function(j){return U.setMode(j)}),U._parser.setCsiHandler({prefix:"?",final:"h"},function(j){return U.setModePrivate(j)}),U._parser.setCsiHandler({final:"l"},function(j){return U.resetMode(j)}),U._parser.setCsiHandler({prefix:"?",final:"l"},function(j){return U.resetModePrivate(j)}),U._parser.setCsiHandler({final:"m"},function(j){return U.charAttributes(j)}),U._parser.setCsiHandler({final:"n"},function(j){return U.deviceStatus(j)}),U._parser.setCsiHandler({prefix:"?",final:"n"},function(j){return U.deviceStatusPrivate(j)}),U._parser.setCsiHandler({intermediates:"!",final:"p"},function(j){return U.softReset(j)}),U._parser.setCsiHandler({intermediates:" ",final:"q"},function(j){return U.setCursorStyle(j)}),U._parser.setCsiHandler({final:"r"},function(j){return U.setScrollRegion(j)}),U._parser.setCsiHandler({final:"s"},function(j){return U.saveCursor(j)}),U._parser.setCsiHandler({final:"t"},function(j){return U.windowOptions(j)}),U._parser.setCsiHandler({final:"u"},function(j){return U.restoreCursor(j)}),U._parser.setCsiHandler({intermediates:"'",final:"}"},function(j){return U.insertColumns(j)}),U._parser.setCsiHandler({intermediates:"'",final:"~"},function(j){return U.deleteColumns(j)}),U._parser.setExecuteHandler(f.C0.BEL,function(){return U.bell()}),U._parser.setExecuteHandler(f.C0.LF,function(){return U.lineFeed()}),U._parser.setExecuteHandler(f.C0.VT,function(){return U.lineFeed()}),U._parser.setExecuteHandler(f.C0.FF,function(){return U.lineFeed()}),U._parser.setExecuteHandler(f.C0.CR,function(){return U.carriageReturn()}),U._parser.setExecuteHandler(f.C0.BS,function(){return U.backspace()}),U._parser.setExecuteHandler(f.C0.HT,function(){return U.tab()}),U._parser.setExecuteHandler(f.C0.SO,function(){return U.shiftOut()}),U._parser.setExecuteHandler(f.C0.SI,function(){return U.shiftIn()}),U._parser.setExecuteHandler(f.C1.IND,function(){return U.index()}),U._parser.setExecuteHandler(f.C1.NEL,function(){return U.nextLine()}),U._parser.setExecuteHandler(f.C1.HTS,function(){return U.tabSet()}),U._parser.setOscHandler(0,new b.OscHandler(function(j){U.setTitle(j),U.setIconName(j)})),U._parser.setOscHandler(1,new b.OscHandler(function(j){return U.setIconName(j)})),U._parser.setOscHandler(2,new b.OscHandler(function(j){return U.setTitle(j)})),U._parser.setEscHandler({final:"7"},function(){return U.saveCursor()}),U._parser.setEscHandler({final:"8"},function(){return U.restoreCursor()}),U._parser.setEscHandler({final:"D"},function(){return U.index()}),U._parser.setEscHandler({final:"E"},function(){return U.nextLine()}),U._parser.setEscHandler({final:"H"},function(){return U.tabSet()}),U._parser.setEscHandler({final:"M"},function(){return U.reverseIndex()}),U._parser.setEscHandler({final:"="},function(){return U.keypadApplicationMode()}),U._parser.setEscHandler({final:">"},function(){return U.keypadNumericMode()}),U._parser.setEscHandler({final:"c"},function(){return U.fullReset()}),U._parser.setEscHandler({final:"n"},function(){return U.setgLevel(2)}),U._parser.setEscHandler({final:"o"},function(){return U.setgLevel(3)}),U._parser.setEscHandler({final:"|"},function(){return U.setgLevel(3)}),U._parser.setEscHandler({final:"}"},function(){return U.setgLevel(2)}),U._parser.setEscHandler({final:"~"},function(){return U.setgLevel(1)}),U._parser.setEscHandler({intermediates:"%",final:"@"},function(){return U.selectDefaultCharset()}),U._parser.setEscHandler({intermediates:"%",final:"G"},function(){return U.selectDefaultCharset()});var K=function(j){L._parser.setEscHandler({intermediates:"(",final:j},function(){return U.selectCharset("("+j)}),L._parser.setEscHandler({intermediates:")",final:j},function(){return U.selectCharset(")"+j)}),L._parser.setEscHandler({intermediates:"*",final:j},function(){return U.selectCharset("*"+j)}),L._parser.setEscHandler({intermediates:"+",final:j},function(){return U.selectCharset("+"+j)}),L._parser.setEscHandler({intermediates:"-",final:j},function(){return U.selectCharset("-"+j)}),L._parser.setEscHandler({intermediates:".",final:j},function(){return U.selectCharset("."+j)}),L._parser.setEscHandler({intermediates:"/",final:j},function(){return U.selectCharset("/"+j)})},L=this;for(var D in d.CHARSETS)K(D);return U._parser.setEscHandler({intermediates:"#",final:"8"},function(){return U.screenAlignmentPattern()}),U._parser.setErrorHandler(function(j){return U._logService.error("Parsing error: ",j),j}),U._parser.setDcsHandler({intermediates:"$",final:"q"},new C(U._bufferService,U._coreService,U._logService,U._optionsService)),U}return g(k,M),Object.defineProperty(k.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),k.prototype.dispose=function(){M.prototype.dispose.call(this)},k.prototype.parse=function(T){var R=this._bufferService.buffer,P=R.x,B=R.y;if(this._logService.debug("parsing data",T),this._parseBuffer.length<T.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(T.length,131072))),this._dirtyRowService.clearRange(),T.length>131072)for(var W=0;W<T.length;W+=131072){var z=W+131072<T.length?W+131072:T.length,H=typeof T=="string"?this._stringDecoder.decode(T.substring(W,z),this._parseBuffer):this._utf8Decoder.decode(T.subarray(W,z),this._parseBuffer);this._parser.parse(this._parseBuffer,H)}else H=typeof T=="string"?this._stringDecoder.decode(T,this._parseBuffer):this._utf8Decoder.decode(T,this._parseBuffer),this._parser.parse(this._parseBuffer,H);(R=this._bufferService.buffer).x===P&&R.y===B||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},k.prototype.print=function(T,R,P){var B,W,z=this._bufferService.buffer,H=this._charsetService.charset,ee=this._optionsService.options.screenReaderMode,G=this._bufferService.cols,U=this._coreService.decPrivateModes.wraparound,K=this._coreService.modes.insertMode,L=this._curAttrData,D=z.lines.get(z.ybase+z.y);this._dirtyRowService.markDirty(z.y),z.x&&P-R>0&&D.getWidth(z.x-1)===2&&D.setCellFromCodePoint(z.x-1,0,1,L.fg,L.bg,L.extended);for(var j=R;j<P;++j){if(B=T[j],W=this._unicodeService.wcwidth(B),B<127&&H){var Z=H[String.fromCharCode(B)];Z&&(B=Z.charCodeAt(0))}if(ee&&this._onA11yChar.fire(l.stringFromCodePoint(B)),W||!z.x){if(z.x+W-1>=G){if(U){for(;z.x<G;)D.setCellFromCodePoint(z.x++,0,1,L.fg,L.bg,L.extended);z.x=0,z.y++,z.y===z.scrollBottom+1?(z.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(z.y>=this._bufferService.rows&&(z.y=this._bufferService.rows-1),z.lines.get(z.ybase+z.y).isWrapped=!0),D=z.lines.get(z.ybase+z.y)}else if(z.x=G-1,W===2)continue}if(K&&(D.insertCells(z.x,W,z.getNullCell(L),L),D.getWidth(G-1)===2&&D.setCellFromCodePoint(G-1,e.NULL_CELL_CODE,e.NULL_CELL_WIDTH,L.fg,L.bg,L.extended)),D.setCellFromCodePoint(z.x++,B,W,L.fg,L.bg,L.extended),W>0)for(;--W;)D.setCellFromCodePoint(z.x++,0,0,L.fg,L.bg,L.extended)}else D.getWidth(z.x-1)?D.addCodepointToCell(z.x-1,B):D.addCodepointToCell(z.x-2,B)}P-R>0&&(D.loadCell(z.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),z.x<G&&P-R>0&&D.getWidth(z.x)===0&&!D.hasContent(z.x)&&D.setCellFromCodePoint(z.x,0,1,L.fg,L.bg,L.extended),this._dirtyRowService.markDirty(z.y)},k.prototype.addCsiHandler=function(T,R){var P=this;return T.final!=="t"||T.prefix||T.intermediates?this._parser.addCsiHandler(T,R):this._parser.addCsiHandler(T,function(B){return!c(B.params[0],P._optionsService.options.windowOptions)||R(B)})},k.prototype.addDcsHandler=function(T,R){return this._parser.addDcsHandler(T,new y.DcsHandler(R))},k.prototype.addEscHandler=function(T,R){return this._parser.addEscHandler(T,R)},k.prototype.addOscHandler=function(T,R){return this._parser.addOscHandler(T,new b.OscHandler(R))},k.prototype.bell=function(){this._onRequestBell.fire()},k.prototype.lineFeed=function(){var T=this._bufferService.buffer;this._dirtyRowService.markDirty(T.y),this._optionsService.options.convertEol&&(T.x=0),T.y++,T.y===T.scrollBottom+1?(T.y--,this._onRequestScroll.fire(this._eraseAttrData())):T.y>=this._bufferService.rows&&(T.y=this._bufferService.rows-1),T.x>=this._bufferService.cols&&T.x--,this._dirtyRowService.markDirty(T.y),this._onLineFeed.fire()},k.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},k.prototype.backspace=function(){var T,R=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(R.x>0&&R.x--);if(this._restrictCursor(this._bufferService.cols),R.x>0)R.x--;else if(R.x===0&&R.y>R.scrollTop&&R.y<=R.scrollBottom&&((T=R.lines.get(R.ybase+R.y))===null||T===void 0?void 0:T.isWrapped)){R.lines.get(R.ybase+R.y).isWrapped=!1,R.y--,R.x=this._bufferService.cols-1;var P=R.lines.get(R.ybase+R.y);P.hasWidth(R.x)&&!P.hasContent(R.x)&&R.x--}this._restrictCursor()},k.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var T=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-T)}},k.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},k.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},k.prototype._restrictCursor=function(T){T===void 0&&(T=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(T,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},k.prototype._setCursor=function(T,R){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=T,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+R):(this._bufferService.buffer.x=T,this._bufferService.buffer.y=R),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},k.prototype._moveCursor=function(T,R){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+T,this._bufferService.buffer.y+R)},k.prototype.cursorUp=function(T){var R=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;R>=0?this._moveCursor(0,-Math.min(R,T.params[0]||1)):this._moveCursor(0,-(T.params[0]||1))},k.prototype.cursorDown=function(T){var R=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;R>=0?this._moveCursor(0,Math.min(R,T.params[0]||1)):this._moveCursor(0,T.params[0]||1)},k.prototype.cursorForward=function(T){this._moveCursor(T.params[0]||1,0)},k.prototype.cursorBackward=function(T){this._moveCursor(-(T.params[0]||1),0)},k.prototype.cursorNextLine=function(T){this.cursorDown(T),this._bufferService.buffer.x=0},k.prototype.cursorPrecedingLine=function(T){this.cursorUp(T),this._bufferService.buffer.x=0},k.prototype.cursorCharAbsolute=function(T){this._setCursor((T.params[0]||1)-1,this._bufferService.buffer.y)},k.prototype.cursorPosition=function(T){this._setCursor(T.length>=2?(T.params[1]||1)-1:0,(T.params[0]||1)-1)},k.prototype.charPosAbsolute=function(T){this._setCursor((T.params[0]||1)-1,this._bufferService.buffer.y)},k.prototype.hPositionRelative=function(T){this._moveCursor(T.params[0]||1,0)},k.prototype.linePosAbsolute=function(T){this._setCursor(this._bufferService.buffer.x,(T.params[0]||1)-1)},k.prototype.vPositionRelative=function(T){this._moveCursor(0,T.params[0]||1)},k.prototype.hVPosition=function(T){this.cursorPosition(T)},k.prototype.tabClear=function(T){var R=T.params[0];R===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:R===3&&(this._bufferService.buffer.tabs={})},k.prototype.cursorForwardTab=function(T){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var R=T.params[0]||1;R--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},k.prototype.cursorBackwardTab=function(T){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var R=T.params[0]||1,P=this._bufferService.buffer;R--;)P.x=P.prevStop()},k.prototype._eraseInBufferLine=function(T,R,P,B){B===void 0&&(B=!1);var W=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+T);W.replaceCells(R,P,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),B&&(W.isWrapped=!1)},k.prototype._resetBufferLine=function(T){var R=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+T);R.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),R.isWrapped=!1},k.prototype.eraseInDisplay=function(T){var R;switch(this._restrictCursor(),T.params[0]){case 0:for(R=this._bufferService.buffer.y,this._dirtyRowService.markDirty(R),this._eraseInBufferLine(R++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);R<this._bufferService.rows;R++)this._resetBufferLine(R);this._dirtyRowService.markDirty(R);break;case 1:for(R=this._bufferService.buffer.y,this._dirtyRowService.markDirty(R),this._eraseInBufferLine(R,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(R+1).isWrapped=!1);R--;)this._resetBufferLine(R);this._dirtyRowService.markDirty(0);break;case 2:for(R=this._bufferService.rows,this._dirtyRowService.markDirty(R-1);R--;)this._resetBufferLine(R);this._dirtyRowService.markDirty(0);break;case 3:var P=this._bufferService.buffer.lines.length-this._bufferService.rows;P>0&&(this._bufferService.buffer.lines.trimStart(P),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-P,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-P,0),this._onScroll.fire(0))}},k.prototype.eraseInLine=function(T){switch(this._restrictCursor(),T.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},k.prototype.insertLines=function(T){this._restrictCursor();var R=T.params[0]||1,P=this._bufferService.buffer;if(!(P.y>P.scrollBottom||P.y<P.scrollTop)){for(var B=P.ybase+P.y,W=this._bufferService.rows-1-P.scrollBottom,z=this._bufferService.rows-1+P.ybase-W+1;R--;)P.lines.splice(z-1,1),P.lines.splice(B,0,P.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(P.y,P.scrollBottom),P.x=0}},k.prototype.deleteLines=function(T){this._restrictCursor();var R=T.params[0]||1,P=this._bufferService.buffer;if(!(P.y>P.scrollBottom||P.y<P.scrollTop)){var B,W=P.ybase+P.y;for(B=this._bufferService.rows-1-P.scrollBottom,B=this._bufferService.rows-1+P.ybase-B;R--;)P.lines.splice(W,1),P.lines.splice(B,0,P.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(P.y,P.scrollBottom),P.x=0}},k.prototype.insertChars=function(T){this._restrictCursor();var R=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);R&&(R.insertCells(this._bufferService.buffer.x,T.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},k.prototype.deleteChars=function(T){this._restrictCursor();var R=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);R&&(R.deleteCells(this._bufferService.buffer.x,T.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},k.prototype.scrollUp=function(T){for(var R=T.params[0]||1,P=this._bufferService.buffer;R--;)P.lines.splice(P.ybase+P.scrollTop,1),P.lines.splice(P.ybase+P.scrollBottom,0,P.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(P.scrollTop,P.scrollBottom)},k.prototype.scrollDown=function(T){for(var R=T.params[0]||1,P=this._bufferService.buffer;R--;)P.lines.splice(P.ybase+P.scrollBottom,1),P.lines.splice(P.ybase+P.scrollTop,0,P.getBlankLine(n.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(P.scrollTop,P.scrollBottom)},k.prototype.scrollLeft=function(T){var R=this._bufferService.buffer;if(!(R.y>R.scrollBottom||R.y<R.scrollTop)){for(var P=T.params[0]||1,B=R.scrollTop;B<=R.scrollBottom;++B){var W=R.lines.get(R.ybase+B);W.deleteCells(0,P,R.getNullCell(this._eraseAttrData()),this._eraseAttrData()),W.isWrapped=!1}this._dirtyRowService.markRangeDirty(R.scrollTop,R.scrollBottom)}},k.prototype.scrollRight=function(T){var R=this._bufferService.buffer;if(!(R.y>R.scrollBottom||R.y<R.scrollTop)){for(var P=T.params[0]||1,B=R.scrollTop;B<=R.scrollBottom;++B){var W=R.lines.get(R.ybase+B);W.insertCells(0,P,R.getNullCell(this._eraseAttrData()),this._eraseAttrData()),W.isWrapped=!1}this._dirtyRowService.markRangeDirty(R.scrollTop,R.scrollBottom)}},k.prototype.insertColumns=function(T){var R=this._bufferService.buffer;if(!(R.y>R.scrollBottom||R.y<R.scrollTop)){for(var P=T.params[0]||1,B=R.scrollTop;B<=R.scrollBottom;++B){var W=this._bufferService.buffer.lines.get(R.ybase+B);W.insertCells(R.x,P,R.getNullCell(this._eraseAttrData()),this._eraseAttrData()),W.isWrapped=!1}this._dirtyRowService.markRangeDirty(R.scrollTop,R.scrollBottom)}},k.prototype.deleteColumns=function(T){var R=this._bufferService.buffer;if(!(R.y>R.scrollBottom||R.y<R.scrollTop)){for(var P=T.params[0]||1,B=R.scrollTop;B<=R.scrollBottom;++B){var W=R.lines.get(R.ybase+B);W.deleteCells(R.x,P,R.getNullCell(this._eraseAttrData()),this._eraseAttrData()),W.isWrapped=!1}this._dirtyRowService.markRangeDirty(R.scrollTop,R.scrollBottom)}},k.prototype.eraseChars=function(T){this._restrictCursor();var R=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);R&&(R.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(T.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},k.prototype.repeatPrecedingCharacter=function(T){if(this._parser.precedingCodepoint){for(var R=T.params[0]||1,P=new Uint32Array(R),B=0;B<R;++B)P[B]=this._parser.precedingCodepoint;this.print(P,0,P.length)}},k.prototype.sendDeviceAttributesPrimary=function(T){T.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(f.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(f.C0.ESC+"[?6c"))},k.prototype.sendDeviceAttributesSecondary=function(T){T.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(f.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(f.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(T.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(f.C0.ESC+"[>83;40003;0c"))},k.prototype._is=function(T){return(this._optionsService.options.termName+"").indexOf(T)===0},k.prototype.setMode=function(T){for(var R=0;R<T.length;R++)switch(T.params[R]){case 4:this._coreService.modes.insertMode=!0}},k.prototype.setModePrivate=function(T){for(var R=0;R<T.length;R++)switch(T.params[R]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,d.DEFAULT_CHARSET),this._charsetService.setgCharset(1,d.DEFAULT_CHARSET),this._charsetService.setgCharset(2,d.DEFAULT_CHARSET),this._charsetService.setgCharset(3,d.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},k.prototype.resetMode=function(T){for(var R=0;R<T.length;R++)switch(T.params[R]){case 4:this._coreService.modes.insertMode=!1}},k.prototype.resetModePrivate=function(T){for(var R=0;R<T.length;R++)switch(T.params[R]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),T.params[R]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},k.prototype._updateAttrColor=function(T,R,P,B,W){return R===2?(T|=50331648,T&=-16777216,T|=_.AttributeData.fromColorRGB([P,B,W])):R===5&&(T&=-50331904,T|=33554432|255&P),T},k.prototype._extractColor=function(T,R,P){var B=[0,0,-1,0,0,0],W=0,z=0;do{if(B[z+W]=T.params[R+z],T.hasSubParams(R+z)){var H=T.getSubParams(R+z),ee=0;do B[1]===5&&(W=1),B[z+ee+1+W]=H[ee];while(++ee<H.length&&ee+z+1+W<B.length);break}if(B[1]===5&&z+W>=2||B[1]===2&&z+W>=5)break;B[1]&&(W=1)}while(++z+R<T.length&&z+W<B.length);for(ee=2;ee<B.length;++ee)B[ee]===-1&&(B[ee]=0);switch(B[0]){case 38:P.fg=this._updateAttrColor(P.fg,B[1],B[3],B[4],B[5]);break;case 48:P.bg=this._updateAttrColor(P.bg,B[1],B[3],B[4],B[5]);break;case 58:P.extended=P.extended.clone(),P.extended.underlineColor=this._updateAttrColor(P.extended.underlineColor,B[1],B[3],B[4],B[5])}return z},k.prototype._processUnderline=function(T,R){R.extended=R.extended.clone(),(!~T||T>5)&&(T=1),R.extended.underlineStyle=T,R.fg|=268435456,T===0&&(R.fg&=-268435457),R.updateExtended()},k.prototype.charAttributes=function(T){if(T.length===1&&T.params[0]===0)return this._curAttrData.fg=n.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=n.DEFAULT_ATTR_DATA.bg);for(var R,P=T.length,B=this._curAttrData,W=0;W<P;W++)(R=T.params[W])>=30&&R<=37?(B.fg&=-50331904,B.fg|=16777216|R-30):R>=40&&R<=47?(B.bg&=-50331904,B.bg|=16777216|R-40):R>=90&&R<=97?(B.fg&=-50331904,B.fg|=16777224|R-90):R>=100&&R<=107?(B.bg&=-50331904,B.bg|=16777224|R-100):R===0?(B.fg=n.DEFAULT_ATTR_DATA.fg,B.bg=n.DEFAULT_ATTR_DATA.bg):R===1?B.fg|=134217728:R===3?B.bg|=67108864:R===4?(B.fg|=268435456,this._processUnderline(T.hasSubParams(W)?T.getSubParams(W)[0]:1,B)):R===5?B.fg|=536870912:R===7?B.fg|=67108864:R===8?B.fg|=1073741824:R===2?B.bg|=134217728:R===21?this._processUnderline(2,B):R===22?(B.fg&=-134217729,B.bg&=-134217729):R===23?B.bg&=-67108865:R===24?B.fg&=-268435457:R===25?B.fg&=-536870913:R===27?B.fg&=-67108865:R===28?B.fg&=-1073741825:R===39?(B.fg&=-67108864,B.fg|=16777215&n.DEFAULT_ATTR_DATA.fg):R===49?(B.bg&=-67108864,B.bg|=16777215&n.DEFAULT_ATTR_DATA.bg):R===38||R===48||R===58?W+=this._extractColor(T,W,B):R===59?(B.extended=B.extended.clone(),B.extended.underlineColor=-1,B.updateExtended()):R===100?(B.fg&=-67108864,B.fg|=16777215&n.DEFAULT_ATTR_DATA.fg,B.bg&=-67108864,B.bg|=16777215&n.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",R)},k.prototype.deviceStatus=function(T){switch(T.params[0]){case 5:this._coreService.triggerDataEvent(f.C0.ESC+"[0n");break;case 6:var R=this._bufferService.buffer.y+1,P=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(f.C0.ESC+"["+R+";"+P+"R")}},k.prototype.deviceStatusPrivate=function(T){switch(T.params[0]){case 6:var R=this._bufferService.buffer.y+1,P=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(f.C0.ESC+"[?"+R+";"+P+"R")}},k.prototype.softReset=function(T){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=n.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},k.prototype.setCursorStyle=function(T){var R=T.params[0]||1;switch(R){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var P=R%2==1;this._optionsService.options.cursorBlink=P},k.prototype.setScrollRegion=function(T){var R,P=T.params[0]||1;(T.length<2||(R=T.params[1])>this._bufferService.rows||R===0)&&(R=this._bufferService.rows),R>P&&(this._bufferService.buffer.scrollTop=P-1,this._bufferService.buffer.scrollBottom=R-1,this._setCursor(0,0))},k.prototype.windowOptions=function(T){if(c(T.params[0],this._optionsService.options.windowOptions)){var R=T.length>1?T.params[1]:0;switch(T.params[0]){case 14:R!==2&&this._onRequestWindowsOptionsReport.fire(a.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(a.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(f.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:R!==0&&R!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),R!==0&&R!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:R!==0&&R!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),R!==0&&R!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},k.prototype.saveCursor=function(T){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},k.prototype.restoreCursor=function(T){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},k.prototype.setTitle=function(T){this._windowTitle=T,this._onTitleChange.fire(T)},k.prototype.setIconName=function(T){this._iconName=T},k.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},k.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},k.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},k.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,d.DEFAULT_CHARSET)},k.prototype.selectCharset=function(T){T.length===2?T[0]!=="/"&&this._charsetService.setgCharset(E[T[0]],d.CHARSETS[T[1]]||d.DEFAULT_CHARSET):this.selectDefaultCharset()},k.prototype.index=function(){this._restrictCursor();var T=this._bufferService.buffer;this._bufferService.buffer.y++,T.y===T.scrollBottom+1?(T.y--,this._onRequestScroll.fire(this._eraseAttrData())):T.y>=this._bufferService.rows&&(T.y=this._bufferService.rows-1),this._restrictCursor()},k.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},k.prototype.reverseIndex=function(){this._restrictCursor();var T=this._bufferService.buffer;if(T.y===T.scrollTop){var R=T.scrollBottom-T.scrollTop;T.lines.shiftElements(T.ybase+T.y,R,1),T.lines.set(T.ybase+T.y,T.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(T.scrollTop,T.scrollBottom)}else T.y--,this._restrictCursor()},k.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},k.prototype.reset=function(){this._curAttrData=n.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=n.DEFAULT_ATTR_DATA.clone()},k.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},k.prototype.setgLevel=function(T){this._charsetService.setgLevel(T)},k.prototype.screenAlignmentPattern=function(){var T=new i.CellData;T.content=1<<22|"E".charCodeAt(0),T.fg=this._curAttrData.fg,T.bg=this._curAttrData.bg;var R=this._bufferService.buffer;this._setCursor(0,0);for(var P=0;P<this._bufferService.rows;++P){var B=R.ybase+R.y+P,W=R.lines.get(B);W&&(W.fill(T),W.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},k}(o.Disposable);h.InputHandler=x},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.DEFAULT_CHARSET=h.CHARSETS=void 0,h.CHARSETS={},h.DEFAULT_CHARSET=h.CHARSETS.B,h.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},h.CHARSETS.A={"#":"\xA3"},h.CHARSETS.B=void 0,h.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},h.CHARSETS.C=h.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},h.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},h.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},h.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},h.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},h.CHARSETS.E=h.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},h.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},h.CHARSETS.H=h.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},h.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.Params=void 0;var m=function(){function g(a,f){if(a===void 0&&(a=32),f===void 0&&(f=32),this.maxLength=a,this.maxSubParamsLength=f,f>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(a),this.length=0,this._subParams=new Int32Array(f),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(a),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return g.fromArray=function(a){var f=new g;if(!a.length)return f;for(var d=a[0]instanceof Array?1:0;d<a.length;++d){var u=a[d];if(u instanceof Array)for(var o=0;o<u.length;++o)f.addSubParam(u[o]);else f.addParam(u)}return f},g.prototype.clone=function(){var a=new g(this.maxLength,this.maxSubParamsLength);return a.params.set(this.params),a.length=this.length,a._subParams.set(this._subParams),a._subParamsLength=this._subParamsLength,a._subParamsIdx.set(this._subParamsIdx),a._rejectDigits=this._rejectDigits,a._rejectSubDigits=this._rejectSubDigits,a._digitIsSub=this._digitIsSub,a},g.prototype.toArray=function(){for(var a=[],f=0;f<this.length;++f){a.push(this.params[f]);var d=this._subParamsIdx[f]>>8,u=255&this._subParamsIdx[f];u-d>0&&a.push(Array.prototype.slice.call(this._subParams,d,u))}return a},g.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},g.prototype.addParam=function(a){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(a<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=a>2147483647?2147483647:a}},g.prototype.addSubParam=function(a){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(a<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=a>2147483647?2147483647:a,this._subParamsIdx[this.length-1]++}},g.prototype.hasSubParams=function(a){return(255&this._subParamsIdx[a])-(this._subParamsIdx[a]>>8)>0},g.prototype.getSubParams=function(a){var f=this._subParamsIdx[a]>>8,d=255&this._subParamsIdx[a];return d-f>0?this._subParams.subarray(f,d):null},g.prototype.getSubParamsAll=function(){for(var a={},f=0;f<this.length;++f){var d=this._subParamsIdx[f]>>8,u=255&this._subParamsIdx[f];u-d>0&&(a[f]=this._subParams.slice(d,u))}return a},g.prototype.addDigit=function(a){var f;if(!(this._rejectDigits||!(f=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var d=this._digitIsSub?this._subParams:this.params,u=d[f-1];d[f-1]=~u?Math.min(10*u+a,2147483647):a}},g}();h.Params=m},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.OscHandler=h.OscParser=void 0;var m=I(23),g=I(8),a=function(){function d(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return d.prototype.addHandler=function(u,o){this._handlers[u]===void 0&&(this._handlers[u]=[]);var r=this._handlers[u];return r.push(o),{dispose:function(){var l=r.indexOf(o);l!==-1&&r.splice(l,1)}}},d.prototype.setHandler=function(u,o){this._handlers[u]=[o]},d.prototype.clearHandler=function(u){this._handlers[u]&&delete this._handlers[u]},d.prototype.setHandlerFallback=function(u){this._handlerFb=u},d.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},d.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},d.prototype._start=function(){var u=this._handlers[this._id];if(u)for(var o=u.length-1;o>=0;o--)u[o].start();else this._handlerFb(this._id,"START")},d.prototype._put=function(u,o,r){var l=this._handlers[this._id];if(l)for(var n=l.length-1;n>=0;n--)l[n].put(u,o,r);else this._handlerFb(this._id,"PUT",g.utf32ToString(u,o,r))},d.prototype._end=function(u){var o=this._handlers[this._id];if(o){for(var r=o.length-1;r>=0&&o[r].end(u)===!1;r--);for(r--;r>=0;r--)o[r].end(!1)}else this._handlerFb(this._id,"END",u)},d.prototype.start=function(){this.reset(),this._id=-1,this._state=1},d.prototype.put=function(u,o,r){if(this._state!==3){if(this._state===1)for(;o<r;){var l=u[o++];if(l===59){this._state=2,this._start();break}if(l<48||57<l)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+l-48}this._state===2&&r-o>0&&this._put(u,o,r)}},d.prototype.end=function(u){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(u)),this._id=-1,this._state=0)},d}();h.OscParser=a;var f=function(){function d(u){this._handler=u,this._data="",this._hitLimit=!1}return d.prototype.start=function(){this._data="",this._hitLimit=!1},d.prototype.put=function(u,o,r){this._hitLimit||(this._data+=g.utf32ToString(u,o,r),this._data.length>m.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},d.prototype.end=function(u){var o;return this._hitLimit?o=!1:u&&(o=this._handler(this._data)),this._data="",this._hitLimit=!1,o},d}();h.OscHandler=f},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.PAYLOAD_LIMIT=void 0,h.PAYLOAD_LIMIT=1e7},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.DcsHandler=h.DcsParser=void 0;var m=I(8),g=I(21),a=I(23),f=[],d=function(){function o(){this._handlers=Object.create(null),this._active=f,this._ident=0,this._handlerFb=function(){}}return o.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},o.prototype.addHandler=function(r,l){this._handlers[r]===void 0&&(this._handlers[r]=[]);var n=this._handlers[r];return n.push(l),{dispose:function(){var s=n.indexOf(l);s!==-1&&n.splice(s,1)}}},o.prototype.setHandler=function(r,l){this._handlers[r]=[l]},o.prototype.clearHandler=function(r){this._handlers[r]&&delete this._handlers[r]},o.prototype.setHandlerFallback=function(r){this._handlerFb=r},o.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=f,this._ident=0},o.prototype.hook=function(r,l){if(this.reset(),this._ident=r,this._active=this._handlers[r]||f,this._active.length)for(var n=this._active.length-1;n>=0;n--)this._active[n].hook(l);else this._handlerFb(this._ident,"HOOK",l)},o.prototype.put=function(r,l,n){if(this._active.length)for(var s=this._active.length-1;s>=0;s--)this._active[s].put(r,l,n);else this._handlerFb(this._ident,"PUT",m.utf32ToString(r,l,n))},o.prototype.unhook=function(r){if(this._active.length){for(var l=this._active.length-1;l>=0&&this._active[l].unhook(r)===!1;l--);for(l--;l>=0;l--)this._active[l].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",r);this._active=f,this._ident=0},o}();h.DcsParser=d;var u=function(){function o(r){this._handler=r,this._data="",this._hitLimit=!1}return o.prototype.hook=function(r){this._params=r.clone(),this._data="",this._hitLimit=!1},o.prototype.put=function(r,l,n){this._hitLimit||(this._data+=m.utf32ToString(r,l,n),this._data.length>a.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},o.prototype.unhook=function(r){var l;return this._hitLimit?l=!1:r&&(l=this._handler(this._data,this._params||new g.Params)),this._params=void 0,this._data="",this._hitLimit=!1,l},o}();h.DcsHandler=u},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.removeTerminalFromCache=h.acquireCharAtlas=void 0;var m=I(26),g=I(43),a=[];h.acquireCharAtlas=function(f,d,u,o,r){for(var l=m.generateConfig(o,r,f,u),n=0;n<a.length;n++){var s=(e=a[n]).ownedBy.indexOf(d);if(s>=0){if(m.configEquals(e.config,l))return e.atlas;e.ownedBy.length===1?(e.atlas.dispose(),a.splice(n,1)):e.ownedBy.splice(s,1);break}}for(n=0;n<a.length;n++){var e=a[n];if(m.configEquals(e.config,l))return e.ownedBy.push(d),e.atlas}var i={atlas:new g.DynamicCharAtlas(document,l),config:l,ownedBy:[d]};return a.push(i),i.atlas},h.removeTerminalFromCache=function(f){for(var d=0;d<a.length;d++){var u=a[d].ownedBy.indexOf(f);if(u!==-1){a[d].ownedBy.length===1?(a[d].atlas.dispose(),a.splice(d,1)):a[d].ownedBy.splice(u,1);break}}}},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.is256Color=h.configEquals=h.generateConfig=void 0;var m=I(3);h.generateConfig=function(g,a,f,d){var u={foreground:d.foreground,background:d.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:d.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:g,scaledCharHeight:a,fontFamily:f.fontFamily,fontSize:f.fontSize,fontWeight:f.fontWeight,fontWeightBold:f.fontWeightBold,allowTransparency:f.allowTransparency,colors:u}},h.configEquals=function(g,a){for(var f=0;f<g.colors.ansi.length;f++)if(g.colors.ansi[f].rgba!==a.colors.ansi[f].rgba)return!1;return g.devicePixelRatio===a.devicePixelRatio&&g.fontFamily===a.fontFamily&&g.fontSize===a.fontSize&&g.fontWeight===a.fontWeight&&g.fontWeightBold===a.fontWeightBold&&g.allowTransparency===a.allowTransparency&&g.scaledCharWidth===a.scaledCharWidth&&g.scaledCharHeight===a.scaledCharHeight&&g.colors.foreground===a.colors.foreground&&g.colors.background===a.colors.background},h.is256Color=function(g){return g<m.DEFAULT_COLOR}},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.ColorManager=h.DEFAULT_ANSI_COLORS=void 0;var m=I(10),g=I(45),a=m.css.toColor("#ffffff"),f=m.css.toColor("#000000"),d=m.css.toColor("#ffffff"),u=m.css.toColor("#000000"),o={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};h.DEFAULT_ANSI_COLORS=function(){for(var l=[m.css.toColor("#2e3436"),m.css.toColor("#cc0000"),m.css.toColor("#4e9a06"),m.css.toColor("#c4a000"),m.css.toColor("#3465a4"),m.css.toColor("#75507b"),m.css.toColor("#06989a"),m.css.toColor("#d3d7cf"),m.css.toColor("#555753"),m.css.toColor("#ef2929"),m.css.toColor("#8ae234"),m.css.toColor("#fce94f"),m.css.toColor("#729fcf"),m.css.toColor("#ad7fa8"),m.css.toColor("#34e2e2"),m.css.toColor("#eeeeec")],n=[0,95,135,175,215,255],s=0;s<216;s++){var e=n[s/36%6|0],i=n[s/6%6|0],_=n[s%6];l.push({css:m.channels.toCss(e,i,_),rgba:m.channels.toRgba(e,i,_)})}for(s=0;s<24;s++){var b=8+10*s;l.push({css:m.channels.toCss(b,b,b),rgba:m.channels.toRgba(b,b,b)})}return l}();var r=function(){function l(n,s){this.allowTransparency=s;var e=n.createElement("canvas");e.width=1,e.height=1;var i=e.getContext("2d");if(!i)throw new Error("Could not get rendering context");this._ctx=i,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new g.ColorContrastCache,this.colors={foreground:a,background:f,cursor:d,cursorAccent:u,selectionTransparent:o,selectionOpaque:m.color.blend(f,o),ansi:h.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return l.prototype.onOptionsChange=function(n){n==="minimumContrastRatio"&&this._contrastCache.clear()},l.prototype.setTheme=function(n){(n===void 0&&(n={}),this.colors.foreground=this._parseColor(n.foreground,a),this.colors.background=this._parseColor(n.background,f),this.colors.cursor=this._parseColor(n.cursor,d,!0),this.colors.cursorAccent=this._parseColor(n.cursorAccent,u,!0),this.colors.selectionTransparent=this._parseColor(n.selection,o,!0),this.colors.selectionOpaque=m.color.blend(this.colors.background,this.colors.selectionTransparent),m.color.isOpaque(this.colors.selectionTransparent))&&(this.colors.selectionTransparent=m.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(n.black,h.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(n.red,h.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(n.green,h.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(n.yellow,h.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(n.blue,h.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(n.magenta,h.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(n.cyan,h.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(n.white,h.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(n.brightBlack,h.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(n.brightRed,h.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(n.brightGreen,h.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(n.brightYellow,h.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(n.brightBlue,h.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(n.brightMagenta,h.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(n.brightCyan,h.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(n.brightWhite,h.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},l.prototype._parseColor=function(n,s,e){if(e===void 0&&(e=this.allowTransparency),n===void 0)return s;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=n,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+n+" is invalid using fallback "+s.css),s;this._ctx.fillRect(0,0,1,1);var i=this._ctx.getImageData(0,0,1,1).data;if(i[3]!==255){if(!e)return console.warn("Color: "+n+" is using transparency, but allowTransparency is false. Using fallback "+s.css+"."),s;var _=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(x){return Number(x)}),b=_[0],y=_[1],E=_[2],c=_[3],C=Math.round(255*c);return{rgba:m.channels.toRgba(b,y,E,C),css:n}}return{css:this._ctx.fillStyle,rgba:m.channels.toRgba(i[0],i[1],i[2],i[3])}},l}();h.ColorManager=r},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.throwIfFalsy=void 0,h.throwIfFalsy=function(m){if(!m)throw new Error("value must not be falsy");return m}},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(r,l){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var e in s)s.hasOwnProperty(e)&&(n[e]=s[e])})(r,l)},function(r,l){function n(){this.constructor=r}m(r,l),r.prototype=l===null?Object.create(l):(n.prototype=l.prototype,new n)});Object.defineProperty(h,"__esModule",{value:!0}),h.CharacterJoinerRegistry=h.JoinedCellData=void 0;var a=I(6),f=I(3),d=I(4),u=function(r){function l(n,s,e){var i=r.call(this)||this;return i.content=0,i.combinedData="",i.fg=n.fg,i.bg=n.bg,i.combinedData=s,i._width=e,i}return g(l,r),l.prototype.isCombined=function(){return 2097152},l.prototype.getWidth=function(){return this._width},l.prototype.getChars=function(){return this.combinedData},l.prototype.getCode=function(){return 2097151},l.prototype.setFromCharData=function(n){throw new Error("not implemented")},l.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},l}(a.AttributeData);h.JoinedCellData=u;var o=function(){function r(l){this._bufferService=l,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new d.CellData}return r.prototype.registerCharacterJoiner=function(l){var n={id:this._nextCharacterJoinerId++,handler:l};return this._characterJoiners.push(n),n.id},r.prototype.deregisterCharacterJoiner=function(l){for(var n=0;n<this._characterJoiners.length;n++)if(this._characterJoiners[n].id===l)return this._characterJoiners.splice(n,1),!0;return!1},r.prototype.getJoinedCharacters=function(l){if(this._characterJoiners.length===0)return[];var n=this._bufferService.buffer.lines.get(l);if(!n||n.length===0)return[];for(var s=[],e=n.translateToString(!0),i=0,_=0,b=0,y=n.getFg(0),E=n.getBg(0),c=0;c<n.getTrimmedLength();c++)if(n.loadCell(c,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==y||this._workCell.bg!==E){if(c-i>1)for(var C=this._getJoinedRanges(e,b,_,n,i),x=0;x<C.length;x++)s.push(C[x]);i=c,b=_,y=this._workCell.fg,E=this._workCell.bg}_+=this._workCell.getChars().length||f.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-i>1)for(C=this._getJoinedRanges(e,b,_,n,i),x=0;x<C.length;x++)s.push(C[x]);return s},r.prototype._getJoinedRanges=function(l,n,s,e,i){for(var _=l.substring(n,s),b=this._characterJoiners[0].handler(_),y=1;y<this._characterJoiners.length;y++)for(var E=this._characterJoiners[y].handler(_),c=0;c<E.length;c++)r._mergeRanges(b,E[c]);return this._stringRangesToCellRanges(b,e,i),b},r.prototype._stringRangesToCellRanges=function(l,n,s){var e=0,i=!1,_=0,b=l[e];if(b){for(var y=s;y<this._bufferService.cols;y++){var E=n.getWidth(y),c=n.getString(y).length||f.WHITESPACE_CELL_CHAR.length;if(E!==0){if(!i&&b[0]<=_&&(b[0]=y,i=!0),b[1]<=_){if(b[1]=y,!(b=l[++e]))break;b[0]<=_?(b[0]=y,i=!0):i=!1}_+=c}}b&&(b[1]=this._bufferService.cols)}},r._mergeRanges=function(l,n){for(var s=!1,e=0;e<l.length;e++){var i=l[e];if(s){if(n[1]<=i[0])return l[e-1][1]=n[1],l;if(n[1]<=i[1])return l[e-1][1]=Math.max(n[1],i[1]),l.splice(e,1),l;l.splice(e,1),e--}else{if(n[1]<=i[0])return l.splice(e,0,n),l;if(n[1]<=i[1])return i[0]=Math.min(n[0],i[0]),l;n[0]<i[1]&&(i[0]=Math.min(n[0],i[0]),s=!0)}}return s?l[l.length-1][1]=n[1]:l.push(n),l},r}();h.CharacterJoinerRegistry=o},function(w,h,I){"use strict";function m(g,a){var f=a.getBoundingClientRect();return[g.clientX-f.left,g.clientY-f.top]}Object.defineProperty(h,"__esModule",{value:!0}),h.getRawByteCoords=h.getCoords=h.getCoordsRelativeToElement=void 0,h.getCoordsRelativeToElement=m,h.getCoords=function(g,a,f,d,u,o,r,l){if(u){var n=m(g,a);if(n)return n[0]=Math.ceil((n[0]+(l?o/2:0))/o),n[1]=Math.ceil(n[1]/r),n[0]=Math.min(Math.max(n[0],1),f+(l?1:0)),n[1]=Math.min(Math.max(n[1],1),d),n}},h.getRawByteCoords=function(g){if(g)return{x:g[0]+32,y:g[1]+32}}},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.RenderDebouncer=void 0;var m=function(){function g(a){this._renderCallback=a}return g.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},g.prototype.refresh=function(a,f,d){var u=this;this._rowCount=d,a=a!==void 0?a:0,f=f!==void 0?f:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,a):a,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,f):f,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return u._innerRefresh()}))},g.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var a=Math.max(this._rowStart,0),f=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(a,f)}},g}();h.RenderDebouncer=m},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(f,d){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,o){u.__proto__=o}||function(u,o){for(var r in o)o.hasOwnProperty(r)&&(u[r]=o[r])})(f,d)},function(f,d){function u(){this.constructor=f}m(f,d),f.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)});Object.defineProperty(h,"__esModule",{value:!0}),h.ScreenDprMonitor=void 0;var a=function(f){function d(){var u=f!==null&&f.apply(this,arguments)||this;return u._currentDevicePixelRatio=window.devicePixelRatio,u}return g(d,f),d.prototype.setListener=function(u){var o=this;this._listener&&this.clearListener(),this._listener=u,this._outerListener=function(){o._listener&&(o._listener(window.devicePixelRatio,o._currentDevicePixelRatio),o._updateDpr())},this._updateDpr()},d.prototype.dispose=function(){f.prototype.dispose.call(this),this.clearListener()},d.prototype._updateDpr=function(){var u;this._outerListener&&((u=this._resolutionMediaMatchList)===null||u===void 0||u.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},d.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},d}(I(2).Disposable);h.ScreenDprMonitor=a},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.clone=void 0,h.clone=function m(g,a){if(a===void 0&&(a=5),typeof g!="object")return g;var f=Array.isArray(g)?[]:{};for(var d in g)f[d]=a<=1?g[d]:g[d]?m(g[d],a-1):g[d];return f}},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.Terminal=void 0;var m=I(4),g=I(35),a=I(18),f=I(0),d=I(83),u=function(){function e(i){this._core=new g.Terminal(i),this._addonManager=new d.AddonManager}return e.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(e.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new n(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unicode",{get:function(){return this._checkProposedApi(),new s(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"buffer",{get:function(){return this._checkProposedApi(),new r(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),e.prototype.blur=function(){this._core.blur()},e.prototype.focus=function(){this._core.focus()},e.prototype.resize=function(i,_){this._verifyIntegers(i,_),this._core.resize(i,_)},e.prototype.open=function(i){this._core.open(i)},e.prototype.attachCustomKeyEventHandler=function(i){this._core.attachCustomKeyEventHandler(i)},e.prototype.registerLinkMatcher=function(i,_,b){return this._checkProposedApi(),this._core.registerLinkMatcher(i,_,b)},e.prototype.deregisterLinkMatcher=function(i){this._checkProposedApi(),this._core.deregisterLinkMatcher(i)},e.prototype.registerLinkProvider=function(i){return this._checkProposedApi(),this._core.registerLinkProvider(i)},e.prototype.registerCharacterJoiner=function(i){return this._checkProposedApi(),this._core.registerCharacterJoiner(i)},e.prototype.deregisterCharacterJoiner=function(i){this._checkProposedApi(),this._core.deregisterCharacterJoiner(i)},e.prototype.registerMarker=function(i){return this._checkProposedApi(),this._verifyIntegers(i),this._core.addMarker(i)},e.prototype.addMarker=function(i){return this.registerMarker(i)},e.prototype.hasSelection=function(){return this._core.hasSelection()},e.prototype.select=function(i,_,b){this._verifyIntegers(i,_,b),this._core.select(i,_,b)},e.prototype.getSelection=function(){return this._core.getSelection()},e.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},e.prototype.clearSelection=function(){this._core.clearSelection()},e.prototype.selectAll=function(){this._core.selectAll()},e.prototype.selectLines=function(i,_){this._verifyIntegers(i,_),this._core.selectLines(i,_)},e.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},e.prototype.scrollLines=function(i){this._verifyIntegers(i),this._core.scrollLines(i)},e.prototype.scrollPages=function(i){this._verifyIntegers(i),this._core.scrollPages(i)},e.prototype.scrollToTop=function(){this._core.scrollToTop()},e.prototype.scrollToBottom=function(){this._core.scrollToBottom()},e.prototype.scrollToLine=function(i){this._verifyIntegers(i),this._core.scrollToLine(i)},e.prototype.clear=function(){this._core.clear()},e.prototype.write=function(i,_){this._core.write(i,_)},e.prototype.writeUtf8=function(i,_){this._core.write(i,_)},e.prototype.writeln=function(i,_){this._core.write(i),this._core.write(`\r
`,_)},e.prototype.paste=function(i){this._core.paste(i)},e.prototype.getOption=function(i){return this._core.optionsService.getOption(i)},e.prototype.setOption=function(i,_){this._core.optionsService.setOption(i,_)},e.prototype.refresh=function(i,_){this._verifyIntegers(i,_),this._core.refresh(i,_)},e.prototype.reset=function(){this._core.reset()},e.prototype.loadAddon=function(i){return this._addonManager.loadAddon(this,i)},Object.defineProperty(e,"strings",{get:function(){return a},enumerable:!1,configurable:!0}),e.prototype._verifyIntegers=function(){for(var i=[],_=0;_<arguments.length;_++)i[_]=arguments[_];for(var b=0,y=i;b<y.length;b++){var E=y[b];if(E===1/0||isNaN(E)||E%1!=0)throw new Error("This API only accepts integers")}},e}();h.Terminal=u;var o=function(){function e(i,_){this._buffer=i,this.type=_}return e.prototype.init=function(i){return this._buffer=i,this},Object.defineProperty(e.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),e.prototype.getLine=function(i){var _=this._buffer.lines.get(i);if(_)return new l(_)},e.prototype.getNullCell=function(){return new m.CellData},e}(),r=function(){function e(i){var _=this;this._buffers=i,this._onBufferChange=new f.EventEmitter,this._normal=new o(this._buffers.normal,"normal"),this._alternate=new o(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return _._onBufferChange.fire(_.active)})}return Object.defineProperty(e.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),e}(),l=function(){function e(i){this._line=i}return Object.defineProperty(e.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),e.prototype.getCell=function(i,_){if(!(i<0||i>=this._line.length))return _?(this._line.loadCell(i,_),_):this._line.loadCell(i,new m.CellData)},e.prototype.translateToString=function(i,_,b){return this._line.translateToString(i,_,b)},e}(),n=function(){function e(i){this._core=i}return e.prototype.registerCsiHandler=function(i,_){return this._core.addCsiHandler(i,function(b){return _(b.toArray())})},e.prototype.addCsiHandler=function(i,_){return this.registerCsiHandler(i,_)},e.prototype.registerDcsHandler=function(i,_){return this._core.addDcsHandler(i,function(b,y){return _(b,y.toArray())})},e.prototype.addDcsHandler=function(i,_){return this.registerDcsHandler(i,_)},e.prototype.registerEscHandler=function(i,_){return this._core.addEscHandler(i,_)},e.prototype.addEscHandler=function(i,_){return this.registerEscHandler(i,_)},e.prototype.registerOscHandler=function(i,_){return this._core.addOscHandler(i,_)},e.prototype.addOscHandler=function(i,_){return this.registerOscHandler(i,_)},e}(),s=function(){function e(i){this._core=i}return e.prototype.register=function(i){this._core.unicodeService.register(i)},Object.defineProperty(e.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(i){this._core.unicodeService.activeVersion=i},enumerable:!1,configurable:!0}),e}()},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(G,U){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,L){K.__proto__=L}||function(K,L){for(var D in L)L.hasOwnProperty(D)&&(K[D]=L[D])})(G,U)},function(G,U){function K(){this.constructor=G}m(G,U),G.prototype=U===null?Object.create(U):(K.prototype=U.prototype,new K)});Object.defineProperty(h,"__esModule",{value:!0}),h.Terminal=void 0;var a=I(36),f=I(37),d=I(38),u=I(12),o=I(19),r=I(40),l=I(50),n=I(51),s=I(11),e=I(7),i=I(18),_=I(54),b=I(55),y=I(56),E=I(57),c=I(59),C=I(0),x=I(16),M=I(27),k=I(60),T=I(5),R=I(61),P=I(62),B=I(63),W=I(64),z=I(65),H=typeof window!="undefined"?window.document:null,ee=function(G){function U(K){K===void 0&&(K={});var L=G.call(this,K)||this;return L.browser=s,L._keyDownHandled=!1,L._onCursorMove=new C.EventEmitter,L._onKey=new C.EventEmitter,L._onRender=new C.EventEmitter,L._onSelectionChange=new C.EventEmitter,L._onTitleChange=new C.EventEmitter,L._onFocus=new C.EventEmitter,L._onBlur=new C.EventEmitter,L._onA11yCharEmitter=new C.EventEmitter,L._onA11yTabEmitter=new C.EventEmitter,L._setup(),L.linkifier=L._instantiationService.createInstance(l.Linkifier),L.linkifier2=L.register(L._instantiationService.createInstance(B.Linkifier2)),L.register(L._inputHandler.onRequestBell(function(){return L.bell()})),L.register(L._inputHandler.onRequestRefreshRows(function(D,j){return L.refresh(D,j)})),L.register(L._inputHandler.onRequestReset(function(){return L.reset()})),L.register(L._inputHandler.onRequestScroll(function(D,j){return L.scroll(D,j||void 0)})),L.register(L._inputHandler.onRequestWindowsOptionsReport(function(D){return L._reportWindowsOptions(D)})),L.register(C.forwardEvent(L._inputHandler.onCursorMove,L._onCursorMove)),L.register(C.forwardEvent(L._inputHandler.onTitleChange,L._onTitleChange)),L.register(C.forwardEvent(L._inputHandler.onA11yChar,L._onA11yCharEmitter)),L.register(C.forwardEvent(L._inputHandler.onA11yTab,L._onA11yTabEmitter)),L.register(L._bufferService.onResize(function(D){return L._afterResize(D.cols,D.rows)})),L}return g(U,G),Object.defineProperty(U.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),U.prototype.dispose=function(){var K,L,D;this._isDisposed||(G.prototype.dispose.call(this),(K=this._renderService)===null||K===void 0||K.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(D=(L=this.element)===null||L===void 0?void 0:L.parentNode)===null||D===void 0||D.removeChild(this.element))},U.prototype._setup=function(){G.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(U.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),U.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},U.prototype._updateOptions=function(K){var L,D,j,Z;switch(G.prototype._updateOptions.call(this,K),K){case"fontFamily":case"fontSize":(L=this._renderService)===null||L===void 0||L.clear(),(D=this._charSizeService)===null||D===void 0||D.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(j=this.viewport)===null||j===void 0||j.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new y.AccessibilityManager(this,this._renderService)):((Z=this._accessibilityManager)===null||Z===void 0||Z.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},U.prototype._onTextAreaFocus=function(K){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(u.C0.ESC+"[I"),this.updateCursorStyle(K),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},U.prototype.blur=function(){var K;return(K=this.textarea)===null||K===void 0?void 0:K.blur()},U.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(u.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},U.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var K=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),L=this._bufferService.buffer.y*K,D=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=D+"px",this.textarea.style.top=L+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=K+"px",this.textarea.style.lineHeight=K+"px",this.textarea.style.zIndex="-5"}},U.prototype._initGlobal=function(){var K=this;this._bindKeys(),this.register(e.addDisposableDomListener(this.element,"copy",function(D){K.hasSelection()&&d.copyHandler(D,K._selectionService)}));var L=function(D){return d.handlePasteEvent(D,K.textarea,K._coreService)};this.register(e.addDisposableDomListener(this.textarea,"paste",L)),this.register(e.addDisposableDomListener(this.element,"paste",L)),s.isFirefox?this.register(e.addDisposableDomListener(this.element,"mousedown",function(D){D.button===2&&d.rightClickHandler(D,K.textarea,K.screenElement,K._selectionService,K.options.rightClickSelectsWord)})):this.register(e.addDisposableDomListener(this.element,"contextmenu",function(D){d.rightClickHandler(D,K.textarea,K.screenElement,K._selectionService,K.options.rightClickSelectsWord)})),s.isLinux&&this.register(e.addDisposableDomListener(this.element,"auxclick",function(D){D.button===1&&d.moveTextAreaUnderMouseCursor(D,K.textarea,K.screenElement)}))},U.prototype._bindKeys=function(){var K=this;this.register(e.addDisposableDomListener(this.textarea,"keyup",function(L){return K._keyUp(L)},!0)),this.register(e.addDisposableDomListener(this.textarea,"keydown",function(L){return K._keyDown(L)},!0)),this.register(e.addDisposableDomListener(this.textarea,"keypress",function(L){return K._keyPress(L)},!0)),this.register(e.addDisposableDomListener(this.textarea,"compositionstart",function(){return K._compositionHelper.compositionstart()})),this.register(e.addDisposableDomListener(this.textarea,"compositionupdate",function(L){return K._compositionHelper.compositionupdate(L)})),this.register(e.addDisposableDomListener(this.textarea,"compositionend",function(){return K._compositionHelper.compositionend()})),this.register(this.onRender(function(){return K._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(L){return K._queueLinkification(L.start,L.end)}))},U.prototype.open=function(K){var L=this;if(!K)throw new Error("Terminal requires a parent element.");H.body.contains(K)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=K.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),K.appendChild(this.element);var D=H.createDocumentFragment();this._viewportElement=H.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),D.appendChild(this._viewportElement),this._viewportScrollArea=H.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=H.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=H.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),D.appendChild(this.screenElement),this.textarea=H.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",i.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(e.addDisposableDomListener(this.textarea,"focus",function(ie){return L._onTextAreaFocus(ie)})),this.register(e.addDisposableDomListener(this.textarea,"blur",function(){return L._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var j=this._instantiationService.createInstance(W.CoreBrowserService,this.textarea);this._instantiationService.setService(T.ICoreBrowserService,j),this._charSizeService=this._instantiationService.createInstance(R.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(T.ICharSizeService,this._charSizeService),this._compositionView=H.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(a.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(D),this._theme=this.options.theme||this._theme,this._colorManager=new M.ColorManager(H,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(ie){return L._colorManager.onOptionsChange(ie)})),this._colorManager.setTheme(this._theme);var Z=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(k.RenderService,Z,this.rows,this.screenElement)),this._instantiationService.setService(T.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(ie){return L._onRender.fire(ie)})),this.onResize(function(ie){return L._renderService.resize(ie.cols,ie.rows)}),this._soundService=this._instantiationService.createInstance(_.SoundService),this._instantiationService.setService(T.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(P.MouseService),this._instantiationService.setService(T.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(f.Viewport,function(ie,pe){return L.scrollLines(ie,pe)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return L.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){L._renderService.onCursorMove(),L._syncTextArea()})),this.register(this.onResize(function(){return L._renderService.onResize(L.cols,L.rows)})),this.register(this.onBlur(function(){return L._renderService.onBlur()})),this.register(this.onFocus(function(){return L._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return L.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(n.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(T.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(ie){return L.scrollLines(ie.amount,ie.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return L._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(ie){return L._renderService.onSelectionChanged(ie.start,ie.end,ie.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(ie){L.textarea.value=ie,L.textarea.focus(),L.textarea.select()})),this.register(this.onScroll(function(){L.viewport.syncScrollArea(),L._selectionService.refresh()})),this.register(e.addDisposableDomListener(this._viewportElement,"scroll",function(){return L._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(b.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return L._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(e.addDisposableDomListener(this.element,"mousedown",function(ie){return L._selectionService.onMouseDown(ie)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new y.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},U.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(r.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(E.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},U.prototype._setTheme=function(K){var L,D,j;this._theme=K,(L=this._colorManager)===null||L===void 0||L.setTheme(K),(D=this._renderService)===null||D===void 0||D.setColors(this._colorManager.colors),(j=this.viewport)===null||j===void 0||j.onThemeChange(this._colorManager.colors)},U.prototype.bindMouse=function(){var K=this,L=this,D=this.element;function j(q){var be,ye,le=L._mouseService.getRawByteCoords(q,L.screenElement,L.cols,L.rows);if(!le)return!1;switch(q.overrideType||q.type){case"mousemove":ye=32,q.buttons===void 0?(be=3,q.button!==void 0&&(be=q.button<3?q.button:3)):be=1&q.buttons?0:4&q.buttons?1:2&q.buttons?2:3;break;case"mouseup":ye=0,be=q.button<3?q.button:3;break;case"mousedown":ye=1,be=q.button<3?q.button:3;break;case"wheel":q.deltaY!==0&&(ye=q.deltaY<0?0:1),be=4;break;default:return!1}return!(ye===void 0||be===void 0||be>4)&&L._coreMouseService.triggerMouseEvent({col:le.x-33,row:le.y-33,button:be,action:ye,ctrl:q.ctrlKey,alt:q.altKey,shift:q.shiftKey})}var Z={mouseup:null,wheel:null,mousedrag:null,mousemove:null},ie=function(q){return j(q),q.buttons||(K._document.removeEventListener("mouseup",Z.mouseup),Z.mousedrag&&K._document.removeEventListener("mousemove",Z.mousedrag)),K.cancel(q)},pe=function(q){return j(q),q.preventDefault(),K.cancel(q)},Ee=function(q){q.buttons&&j(q)},De=function(q){q.buttons||j(q)};this.register(this._coreMouseService.onProtocolChange(function(q){q?(K.optionsService.options.logLevel==="debug"&&K._logService.debug("Binding to mouse events:",K._coreMouseService.explainEvents(q)),K.element.classList.add("enable-mouse-events"),K._selectionService.disable()):(K._logService.debug("Unbinding from mouse events."),K.element.classList.remove("enable-mouse-events"),K._selectionService.enable()),8&q?Z.mousemove||(D.addEventListener("mousemove",De),Z.mousemove=De):(D.removeEventListener("mousemove",Z.mousemove),Z.mousemove=null),16&q?Z.wheel||(D.addEventListener("wheel",pe,{passive:!1}),Z.wheel=pe):(D.removeEventListener("wheel",Z.wheel),Z.wheel=null),2&q?Z.mouseup||(Z.mouseup=ie):(K._document.removeEventListener("mouseup",Z.mouseup),Z.mouseup=null),4&q?Z.mousedrag||(Z.mousedrag=Ee):(K._document.removeEventListener("mousemove",Z.mousedrag),Z.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(e.addDisposableDomListener(D,"mousedown",function(q){if(q.preventDefault(),K.focus(),K._coreMouseService.areMouseEventsActive&&!K._selectionService.shouldForceSelection(q))return j(q),Z.mouseup&&K._document.addEventListener("mouseup",Z.mouseup),Z.mousedrag&&K._document.addEventListener("mousemove",Z.mousedrag),K.cancel(q)})),this.register(e.addDisposableDomListener(D,"wheel",function(q){if(!Z.wheel){if(!K.buffer.hasScrollback){var be=K.viewport.getLinesScrolled(q);if(be===0)return;for(var ye=u.C0.ESC+(K._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(q.deltaY<0?"A":"B"),le="",ue=0;ue<Math.abs(be);ue++)le+=ye;K._coreService.triggerDataEvent(le,!0)}}},{passive:!0})),this.register(e.addDisposableDomListener(D,"wheel",function(q){if(!Z.wheel)return K.viewport.onWheel(q)?void 0:K.cancel(q)},{passive:!1})),this.register(e.addDisposableDomListener(D,"touchstart",function(q){if(!K._coreMouseService.areMouseEventsActive)return K.viewport.onTouchStart(q),K.cancel(q)},{passive:!0})),this.register(e.addDisposableDomListener(D,"touchmove",function(q){if(!K._coreMouseService.areMouseEventsActive)return K.viewport.onTouchMove(q)?void 0:K.cancel(q)},{passive:!1}))},U.prototype.refresh=function(K,L){var D;(D=this._renderService)===null||D===void 0||D.refreshRows(K,L)},U.prototype._queueLinkification=function(K,L){var D;(D=this.linkifier)===null||D===void 0||D.linkifyRows(K,L)},U.prototype.updateCursorStyle=function(K){this._selectionService&&this._selectionService.shouldColumnSelect(K)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},U.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},U.prototype.scrollLines=function(K,L){G.prototype.scrollLines.call(this,K,L),this.refresh(0,this.rows-1)},U.prototype.paste=function(K){d.paste(K,this.textarea,this._coreService)},U.prototype.attachCustomKeyEventHandler=function(K){this._customKeyEventHandler=K},U.prototype.registerLinkMatcher=function(K,L,D){var j=this.linkifier.registerLinkMatcher(K,L,D);return this.refresh(0,this.rows-1),j},U.prototype.deregisterLinkMatcher=function(K){this.linkifier.deregisterLinkMatcher(K)&&this.refresh(0,this.rows-1)},U.prototype.registerLinkProvider=function(K){return this.linkifier2.registerLinkProvider(K)},U.prototype.registerCharacterJoiner=function(K){var L=this._renderService.registerCharacterJoiner(K);return this.refresh(0,this.rows-1),L},U.prototype.deregisterCharacterJoiner=function(K){this._renderService.deregisterCharacterJoiner(K)&&this.refresh(0,this.rows-1)},Object.defineProperty(U.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),U.prototype.addMarker=function(K){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+K)},U.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},U.prototype.select=function(K,L,D){this._selectionService.setSelection(K,L,D)},U.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},U.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},U.prototype.clearSelection=function(){var K;(K=this._selectionService)===null||K===void 0||K.clearSelection()},U.prototype.selectAll=function(){var K;(K=this._selectionService)===null||K===void 0||K.selectAll()},U.prototype.selectLines=function(K,L){var D;(D=this._selectionService)===null||D===void 0||D.selectLines(K,L)},U.prototype._keyDown=function(K){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(K)===!1)return!1;if(!this._compositionHelper.keydown(K))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var L=c.evaluateKeyboardEvent(K,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(K),L.type===3||L.type===2){var D=this.rows-1;return this.scrollLines(L.type===2?-D:D),this.cancel(K,!0)}return L.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,K)||(L.cancel&&this.cancel(K,!0),!L.key||(L.key!==u.C0.ETX&&L.key!==u.C0.CR||(this.textarea.value=""),this._onKey.fire({key:L.key,domEvent:K}),this._showCursor(),this._coreService.triggerDataEvent(L.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(K,!0)))},U.prototype._isThirdLevelShift=function(K,L){var D=K.isMac&&!this.options.macOptionIsMeta&&L.altKey&&!L.ctrlKey&&!L.metaKey||K.isWindows&&L.altKey&&L.ctrlKey&&!L.metaKey;return L.type==="keypress"?D:D&&(!L.keyCode||L.keyCode>47)},U.prototype._keyUp=function(K){this._customKeyEventHandler&&this._customKeyEventHandler(K)===!1||(function(L){return L.keyCode===16||L.keyCode===17||L.keyCode===18}(K)||this.focus(),this.updateCursorStyle(K))},U.prototype._keyPress=function(K){var L;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(K)===!1)return!1;if(this.cancel(K),K.charCode)L=K.charCode;else if(K.which===null||K.which===void 0)L=K.keyCode;else{if(K.which===0||K.charCode===0)return!1;L=K.which}return!(!L||(K.altKey||K.ctrlKey||K.metaKey)&&!this._isThirdLevelShift(this.browser,K))&&(L=String.fromCharCode(L),this._onKey.fire({key:L,domEvent:K}),this._showCursor(),this._coreService.triggerDataEvent(L,!0),!0)},U.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},U.prototype.resize=function(K,L){K!==this.cols||L!==this.rows?G.prototype.resize.call(this,K,L):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},U.prototype._afterResize=function(K,L){var D,j;(D=this._charSizeService)===null||D===void 0||D.measure(),(j=this.viewport)===null||j===void 0||j.syncScrollArea(!0)},U.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var K=1;K<this.rows;K++)this.buffer.lines.push(this.buffer.getBlankLine(x.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},U.prototype.reset=function(){var K,L;this.options.rows=this.rows,this.options.cols=this.cols;var D=this._customKeyEventHandler;this._setup(),G.prototype.reset.call(this),(K=this._selectionService)===null||K===void 0||K.reset(),this._customKeyEventHandler=D,this.refresh(0,this.rows-1),(L=this.viewport)===null||L===void 0||L.syncScrollArea()},U.prototype._reportWindowsOptions=function(K){if(this._renderService)switch(K){case o.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var L=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),D=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(u.C0.ESC+"[4;"+D+";"+L+"t");break;case o.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var j=this._renderService.dimensions.scaledCellWidth.toFixed(0),Z=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(u.C0.ESC+"[6;"+Z+";"+j+"t")}},U.prototype.cancel=function(K,L){if(this.options.cancelEvents||L)return K.preventDefault(),K.stopPropagation(),!1},U.prototype._visualBell=function(){return!1},U.prototype._soundBell=function(){return this.options.bellStyle==="sound"},U}(z.CoreTerminal);h.Terminal=ee},function(w,h,I){"use strict";var m=this&&this.__decorate||function(u,o,r,l){var n,s=arguments.length,e=s<3?o:l===null?l=Object.getOwnPropertyDescriptor(o,r):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(u,o,r,l);else for(var i=u.length-1;i>=0;i--)(n=u[i])&&(e=(s<3?n(e):s>3?n(o,r,e):n(o,r))||e);return s>3&&e&&Object.defineProperty(o,r,e),e},g=this&&this.__param||function(u,o){return function(r,l){o(r,l,u)}};Object.defineProperty(h,"__esModule",{value:!0}),h.CompositionHelper=void 0;var a=I(5),f=I(1),d=function(){function u(o,r,l,n,s,e){this._textarea=o,this._compositionView=r,this._bufferService=l,this._optionsService=n,this._charSizeService=s,this._coreService=e,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(u.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),u.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},u.prototype.compositionupdate=function(o){var r=this;this._compositionView.textContent=o.data,this.updateCompositionElements(),setTimeout(function(){r._compositionPosition.end=r._textarea.value.length},0)},u.prototype.compositionend=function(){this._finalizeComposition(!0)},u.prototype.keydown=function(o){if(this._isComposing||this._isSendingComposition){if(o.keyCode===229)return!1;if(o.keyCode===16||o.keyCode===17||o.keyCode===18)return!1;this._finalizeComposition(!1)}return o.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},u.prototype._finalizeComposition=function(o){var r=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,o){var l={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(r._isSendingComposition){r._isSendingComposition=!1;var s=void 0;s=r._isComposing?r._textarea.value.substring(l.start,l.end):r._textarea.value.substring(l.start),r._coreService.triggerDataEvent(s,!0)}},0)}else{this._isSendingComposition=!1;var n=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(n,!0)}},u.prototype._handleAnyTextareaChanges=function(){var o=this,r=this._textarea.value;setTimeout(function(){if(!o._isComposing){var l=o._textarea.value.replace(r,"");l.length>0&&o._coreService.triggerDataEvent(l,!0)}},0)},u.prototype.updateCompositionElements=function(o){var r=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var l=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),n=this._bufferService.buffer.y*l,s=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=s+"px",this._compositionView.style.top=n+"px",this._compositionView.style.height=l+"px",this._compositionView.style.lineHeight=l+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var e=this._compositionView.getBoundingClientRect();this._textarea.style.left=s+"px",this._textarea.style.top=n+"px",this._textarea.style.width=e.width+"px",this._textarea.style.height=e.height+"px",this._textarea.style.lineHeight=e.height+"px"}o||setTimeout(function(){return r.updateCompositionElements(!0)},0)}},u=m([g(2,f.IBufferService),g(3,f.IOptionsService),g(4,a.ICharSizeService),g(5,f.ICoreService)],u)}();h.CompositionHelper=d},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(n,s){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var _ in i)i.hasOwnProperty(_)&&(e[_]=i[_])})(n,s)},function(n,s){function e(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)}),a=this&&this.__decorate||function(n,s,e,i){var _,b=arguments.length,y=b<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(n,s,e,i);else for(var E=n.length-1;E>=0;E--)(_=n[E])&&(y=(b<3?_(y):b>3?_(s,e,y):_(s,e))||y);return b>3&&y&&Object.defineProperty(s,e,y),y},f=this&&this.__param||function(n,s){return function(e,i){s(e,i,n)}};Object.defineProperty(h,"__esModule",{value:!0}),h.Viewport=void 0;var d=I(2),u=I(7),o=I(5),r=I(1),l=function(n){function s(e,i,_,b,y,E,c){var C=n.call(this)||this;return C._scrollLines=e,C._viewportElement=i,C._scrollArea=_,C._bufferService=b,C._optionsService=y,C._charSizeService=E,C._renderService=c,C.scrollBarWidth=0,C._currentRowHeight=0,C._lastRecordedBufferLength=0,C._lastRecordedViewportHeight=0,C._lastRecordedBufferHeight=0,C._lastTouchY=0,C._lastScrollTop=0,C._wheelPartialScroll=0,C._refreshAnimationFrame=null,C._ignoreNextScrollEvent=!1,C.scrollBarWidth=C._viewportElement.offsetWidth-C._scrollArea.offsetWidth||15,C.register(u.addDisposableDomListener(C._viewportElement,"scroll",C._onScroll.bind(C))),setTimeout(function(){return C.syncScrollArea()},0),C}return g(s,n),s.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},s.prototype._refresh=function(e){var i=this;if(e)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return i._innerRefresh()}))},s.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var i=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==i&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=i),this._refreshAnimationFrame=null},s.prototype.syncScrollArea=function(e){if(e===void 0&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var i=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===i&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(e)}else this._refresh(e)},s.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var i=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(i,!0)}},s.prototype._bubbleScroll=function(e,i){var _=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(i<0&&this._viewportElement.scrollTop!==0||i>0&&_<this._lastRecordedBufferHeight)||(e.cancelable&&e.preventDefault(),!1)},s.prototype.onWheel=function(e){var i=this._getPixelsScrolled(e);return i!==0&&(this._viewportElement.scrollTop+=i,this._bubbleScroll(e,i))},s.prototype._getPixelsScrolled=function(e){if(e.deltaY===0)return 0;var i=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_LINE?i*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(i*=this._currentRowHeight*this._bufferService.rows),i},s.prototype.getLinesScrolled=function(e){if(e.deltaY===0)return 0;var i=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(i/=this._currentRowHeight+0,this._wheelPartialScroll+=i,i=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(i*=this._bufferService.rows),i},s.prototype._applyScrollModifier=function(e,i){var _=this._optionsService.options.fastScrollModifier;return _==="alt"&&i.altKey||_==="ctrl"&&i.ctrlKey||_==="shift"&&i.shiftKey?e*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:e*this._optionsService.options.scrollSensitivity},s.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},s.prototype.onTouchMove=function(e){var i=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,i!==0&&(this._viewportElement.scrollTop+=i,this._bubbleScroll(e,i))},s=a([f(3,r.IBufferService),f(4,r.IOptionsService),f(5,o.ICharSizeService),f(6,o.IRenderService)],s)}(d.Disposable);h.Viewport=l},function(w,h,I){"use strict";function m(d){return d.replace(/\r?\n/g,"\r")}function g(d,u){return u?"[200~"+d+"[201~":d}function a(d,u,o){d=g(d=m(d),o.decPrivateModes.bracketedPasteMode),o.triggerDataEvent(d,!0),u.value=""}function f(d,u,o){var r=o.getBoundingClientRect(),l=d.clientX-r.left-10,n=d.clientY-r.top-10;u.style.width="20px",u.style.height="20px",u.style.left=l+"px",u.style.top=n+"px",u.style.zIndex="1000",u.focus()}Object.defineProperty(h,"__esModule",{value:!0}),h.rightClickHandler=h.moveTextAreaUnderMouseCursor=h.paste=h.handlePasteEvent=h.copyHandler=h.bracketTextForPaste=h.prepareTextForTerminal=void 0,h.prepareTextForTerminal=m,h.bracketTextForPaste=g,h.copyHandler=function(d,u){d.clipboardData&&d.clipboardData.setData("text/plain",u.selectionText),d.preventDefault()},h.handlePasteEvent=function(d,u,o){d.stopPropagation(),d.clipboardData&&a(d.clipboardData.getData("text/plain"),u,o)},h.paste=a,h.moveTextAreaUnderMouseCursor=f,h.rightClickHandler=function(d,u,o,r,l){f(d,u,o),l&&!r.isClickInSelection(d)&&r.selectWordAtCursor(d),u.value=r.selectionText,u.select()}},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(n,s){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var _ in i)i.hasOwnProperty(_)&&(e[_]=i[_])})(n,s)},function(n,s){function e(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)});Object.defineProperty(h,"__esModule",{value:!0}),h.EscapeSequenceParser=h.VT500_TRANSITION_TABLE=h.TransitionTable=void 0;var a=I(2),f=I(15),d=I(21),u=I(22),o=I(24),r=function(){function n(s){this.table=new Uint8Array(s)}return n.prototype.setDefault=function(s,e){f.fill(this.table,s<<4|e)},n.prototype.add=function(s,e,i,_){this.table[e<<8|s]=i<<4|_},n.prototype.addMany=function(s,e,i,_){for(var b=0;b<s.length;b++)this.table[e<<8|s[b]]=i<<4|_},n}();h.TransitionTable=r,h.VT500_TRANSITION_TABLE=function(){var n=new r(4095),s=Array.apply(null,Array(256)).map(function(E,c){return c}),e=function(E,c){return s.slice(E,c)},i=e(32,127),_=e(0,24);_.push(25),_.push.apply(_,e(28,32));var b,y=e(0,14);for(b in n.setDefault(1,0),n.addMany(i,0,2,0),y)n.addMany([24,26,153,154],b,3,0),n.addMany(e(128,144),b,3,0),n.addMany(e(144,152),b,3,0),n.add(156,b,0,0),n.add(27,b,11,1),n.add(157,b,4,8),n.addMany([152,158,159],b,0,7),n.add(155,b,11,3),n.add(144,b,11,9);return n.addMany(_,0,3,0),n.addMany(_,1,3,1),n.add(127,1,0,1),n.addMany(_,8,0,8),n.addMany(_,3,3,3),n.add(127,3,0,3),n.addMany(_,4,3,4),n.add(127,4,0,4),n.addMany(_,6,3,6),n.addMany(_,5,3,5),n.add(127,5,0,5),n.addMany(_,2,3,2),n.add(127,2,0,2),n.add(93,1,4,8),n.addMany(i,8,5,8),n.add(127,8,5,8),n.addMany([156,27,24,26,7],8,6,0),n.addMany(e(28,32),8,0,8),n.addMany([88,94,95],1,0,7),n.addMany(i,7,0,7),n.addMany(_,7,0,7),n.add(156,7,0,0),n.add(127,7,0,7),n.add(91,1,11,3),n.addMany(e(64,127),3,7,0),n.addMany(e(48,60),3,8,4),n.addMany([60,61,62,63],3,9,4),n.addMany(e(48,60),4,8,4),n.addMany(e(64,127),4,7,0),n.addMany([60,61,62,63],4,0,6),n.addMany(e(32,64),6,0,6),n.add(127,6,0,6),n.addMany(e(64,127),6,0,0),n.addMany(e(32,48),3,9,5),n.addMany(e(32,48),5,9,5),n.addMany(e(48,64),5,0,6),n.addMany(e(64,127),5,7,0),n.addMany(e(32,48),4,9,5),n.addMany(e(32,48),1,9,2),n.addMany(e(32,48),2,9,2),n.addMany(e(48,127),2,10,0),n.addMany(e(48,80),1,10,0),n.addMany(e(81,88),1,10,0),n.addMany([89,90,92],1,10,0),n.addMany(e(96,127),1,10,0),n.add(80,1,11,9),n.addMany(_,9,0,9),n.add(127,9,0,9),n.addMany(e(28,32),9,0,9),n.addMany(e(32,48),9,9,12),n.addMany(e(48,60),9,8,10),n.addMany([60,61,62,63],9,9,10),n.addMany(_,11,0,11),n.addMany(e(32,128),11,0,11),n.addMany(e(28,32),11,0,11),n.addMany(_,10,0,10),n.add(127,10,0,10),n.addMany(e(28,32),10,0,10),n.addMany(e(48,60),10,8,10),n.addMany([60,61,62,63],10,0,11),n.addMany(e(32,48),10,9,12),n.addMany(_,12,0,12),n.add(127,12,0,12),n.addMany(e(28,32),12,0,12),n.addMany(e(32,48),12,9,12),n.addMany(e(48,64),12,0,11),n.addMany(e(64,127),12,12,13),n.addMany(e(64,127),10,12,13),n.addMany(e(64,127),9,12,13),n.addMany(_,13,13,13),n.addMany(i,13,13,13),n.add(127,13,0,13),n.addMany([27,156,24,26],13,14,0),n.add(160,0,2,0),n.add(160,8,5,8),n.add(160,6,0,6),n.add(160,11,0,11),n.add(160,13,13,13),n}();var l=function(n){function s(e){e===void 0&&(e=h.VT500_TRANSITION_TABLE);var i=n.call(this)||this;return i._transitions=e,i.initialState=0,i.currentState=i.initialState,i._params=new d.Params,i._params.addParam(0),i._collect=0,i.precedingCodepoint=0,i._printHandlerFb=function(_,b,y){},i._executeHandlerFb=function(_){},i._csiHandlerFb=function(_,b){},i._escHandlerFb=function(_){},i._errorHandlerFb=function(_){return _},i._printHandler=i._printHandlerFb,i._executeHandlers=Object.create(null),i._csiHandlers=Object.create(null),i._escHandlers=Object.create(null),i._oscParser=new u.OscParser,i._dcsParser=new o.DcsParser,i._errorHandler=i._errorHandlerFb,i.setEscHandler({final:"\\"},function(){}),i}return g(s,n),s.prototype._identifier=function(e,i){i===void 0&&(i=[64,126]);var _=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if((_=e.prefix.charCodeAt(0))&&60>_||_>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var b=0;b<e.intermediates.length;++b){var y=e.intermediates.charCodeAt(b);if(32>y||y>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");_<<=8,_|=y}}if(e.final.length!==1)throw new Error("final must be a single byte");var E=e.final.charCodeAt(0);if(i[0]>E||E>i[1])throw new Error("final must be in range "+i[0]+" .. "+i[1]);return _<<=8,_|=E},s.prototype.identToString=function(e){for(var i=[];e;)i.push(String.fromCharCode(255&e)),e>>=8;return i.reverse().join("")},s.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},s.prototype.setPrintHandler=function(e){this._printHandler=e},s.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},s.prototype.addEscHandler=function(e,i){var _=this._identifier(e,[48,126]);this._escHandlers[_]===void 0&&(this._escHandlers[_]=[]);var b=this._escHandlers[_];return b.push(i),{dispose:function(){var y=b.indexOf(i);y!==-1&&b.splice(y,1)}}},s.prototype.setEscHandler=function(e,i){this._escHandlers[this._identifier(e,[48,126])]=[i]},s.prototype.clearEscHandler=function(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]},s.prototype.setEscHandlerFallback=function(e){this._escHandlerFb=e},s.prototype.setExecuteHandler=function(e,i){this._executeHandlers[e.charCodeAt(0)]=i},s.prototype.clearExecuteHandler=function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]},s.prototype.setExecuteHandlerFallback=function(e){this._executeHandlerFb=e},s.prototype.addCsiHandler=function(e,i){var _=this._identifier(e);this._csiHandlers[_]===void 0&&(this._csiHandlers[_]=[]);var b=this._csiHandlers[_];return b.push(i),{dispose:function(){var y=b.indexOf(i);y!==-1&&b.splice(y,1)}}},s.prototype.setCsiHandler=function(e,i){this._csiHandlers[this._identifier(e)]=[i]},s.prototype.clearCsiHandler=function(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]},s.prototype.setCsiHandlerFallback=function(e){this._csiHandlerFb=e},s.prototype.addDcsHandler=function(e,i){return this._dcsParser.addHandler(this._identifier(e),i)},s.prototype.setDcsHandler=function(e,i){this._dcsParser.setHandler(this._identifier(e),i)},s.prototype.clearDcsHandler=function(e){this._dcsParser.clearHandler(this._identifier(e))},s.prototype.setDcsHandlerFallback=function(e){this._dcsParser.setHandlerFallback(e)},s.prototype.addOscHandler=function(e,i){return this._oscParser.addHandler(e,i)},s.prototype.setOscHandler=function(e,i){this._oscParser.setHandler(e,i)},s.prototype.clearOscHandler=function(e){this._oscParser.clearHandler(e)},s.prototype.setOscHandlerFallback=function(e){this._oscParser.setHandlerFallback(e)},s.prototype.setErrorHandler=function(e){this._errorHandler=e},s.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},s.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},s.prototype.parse=function(e,i){for(var _=0,b=0,y=this.currentState,E=this._oscParser,c=this._dcsParser,C=this._collect,x=this._params,M=this._transitions.table,k=0;k<i;++k){switch((b=M[y<<8|((_=e[k])<160?_:160)])>>4){case 2:for(var T=k+1;;++T){if(T>=i||(_=e[T])<32||_>126&&_<160){this._printHandler(e,k,T),k=T-1;break}if(++T>=i||(_=e[T])<32||_>126&&_<160){this._printHandler(e,k,T),k=T-1;break}if(++T>=i||(_=e[T])<32||_>126&&_<160){this._printHandler(e,k,T),k=T-1;break}if(++T>=i||(_=e[T])<32||_>126&&_<160){this._printHandler(e,k,T),k=T-1;break}}break;case 3:this._executeHandlers[_]?this._executeHandlers[_]():this._executeHandlerFb(_),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:k,code:_,currentState:y,collect:C,params:x,abort:!1}).abort)return;break;case 7:for(var R=this._csiHandlers[C<<8|_],P=R?R.length-1:-1;P>=0&&R[P](x)===!1;P--);P<0&&this._csiHandlerFb(C<<8|_,x),this.precedingCodepoint=0;break;case 8:do switch(_){case 59:x.addParam(0);break;case 58:x.addSubParam(-1);break;default:x.addDigit(_-48)}while(++k<i&&(_=e[k])>47&&_<60);k--;break;case 9:C<<=8,C|=_;break;case 10:for(var B=this._escHandlers[C<<8|_],W=B?B.length-1:-1;W>=0&&B[W]()===!1;W--);W<0&&this._escHandlerFb(C<<8|_),this.precedingCodepoint=0;break;case 11:x.reset(),x.addParam(0),C=0;break;case 12:c.hook(C<<8|_,x);break;case 13:for(var z=k+1;;++z)if(z>=i||(_=e[z])===24||_===26||_===27||_>127&&_<160){c.put(e,k,z),k=z-1;break}break;case 14:c.unhook(_!==24&&_!==26),_===27&&(b|=1),x.reset(),x.addParam(0),C=0,this.precedingCodepoint=0;break;case 4:E.start();break;case 5:for(var H=k+1;;H++)if(H>=i||(_=e[H])<32||_>127&&_<=159){E.put(e,k,H),k=H-1;break}break;case 6:E.end(_!==24&&_!==26),_===27&&(b|=1),x.reset(),x.addParam(0),C=0,this.precedingCodepoint=0}y=15&b}this._collect=C,this.currentState=y},s}(a.Disposable);h.EscapeSequenceParser=l},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(E,c){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,x){C.__proto__=x}||function(C,x){for(var M in x)x.hasOwnProperty(M)&&(C[M]=x[M])})(E,c)},function(E,c){function C(){this.constructor=E}m(E,c),E.prototype=c===null?Object.create(c):(C.prototype=c.prototype,new C)}),a=this&&this.__decorate||function(E,c,C,x){var M,k=arguments.length,T=k<3?c:x===null?x=Object.getOwnPropertyDescriptor(c,C):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(E,c,C,x);else for(var R=E.length-1;R>=0;R--)(M=E[R])&&(T=(k<3?M(T):k>3?M(c,C,T):M(c,C))||T);return k>3&&T&&Object.defineProperty(c,C,T),T},f=this&&this.__param||function(E,c){return function(C,x){c(C,x,E)}};Object.defineProperty(h,"__esModule",{value:!0}),h.Renderer=void 0;var d=I(41),u=I(47),o=I(48),r=I(49),l=I(29),n=I(2),s=I(5),e=I(1),i=I(25),_=I(0),b=1,y=function(E){function c(C,x,M,k,T,R,P,B,W){var z=E.call(this)||this;z._colors=C,z._screenElement=x,z._bufferService=T,z._charSizeService=R,z._optionsService=P,z._id=b++,z._onRequestRedraw=new _.EventEmitter;var H=z._optionsService.options.allowTransparency;return z._characterJoinerRegistry=new l.CharacterJoinerRegistry(z._bufferService),z._renderLayers=[new d.TextRenderLayer(z._screenElement,0,z._colors,z._characterJoinerRegistry,H,z._id,z._bufferService,P),new u.SelectionRenderLayer(z._screenElement,1,z._colors,z._id,z._bufferService,P),new r.LinkRenderLayer(z._screenElement,2,z._colors,z._id,M,k,z._bufferService,P),new o.CursorRenderLayer(z._screenElement,3,z._colors,z._id,z._onRequestRedraw,z._bufferService,P,B,W)],z.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},z._devicePixelRatio=window.devicePixelRatio,z._updateDimensions(),z.onOptionsChanged(),z}return g(c,E),Object.defineProperty(c.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),c.prototype.dispose=function(){for(var C=0,x=this._renderLayers;C<x.length;C++)x[C].dispose();E.prototype.dispose.call(this),i.removeTerminalFromCache(this._id)},c.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},c.prototype.setColors=function(C){this._colors=C;for(var x=0,M=this._renderLayers;x<M.length;x++){var k=M[x];k.setColors(this._colors),k.reset()}},c.prototype.onResize=function(C,x){this._updateDimensions();for(var M=0,k=this._renderLayers;M<k.length;M++)k[M].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},c.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},c.prototype.onBlur=function(){this._runOperation(function(C){return C.onBlur()})},c.prototype.onFocus=function(){this._runOperation(function(C){return C.onFocus()})},c.prototype.onSelectionChanged=function(C,x,M){M===void 0&&(M=!1),this._runOperation(function(k){return k.onSelectionChanged(C,x,M)})},c.prototype.onCursorMove=function(){this._runOperation(function(C){return C.onCursorMove()})},c.prototype.onOptionsChanged=function(){this._runOperation(function(C){return C.onOptionsChanged()})},c.prototype.clear=function(){this._runOperation(function(C){return C.reset()})},c.prototype._runOperation=function(C){for(var x=0,M=this._renderLayers;x<M.length;x++)C(M[x])},c.prototype.renderRows=function(C,x){for(var M=0,k=this._renderLayers;M<k.length;M++)k[M].onGridChanged(C,x)},c.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},c.prototype.registerCharacterJoiner=function(C){return this._characterJoinerRegistry.registerCharacterJoiner(C)},c.prototype.deregisterCharacterJoiner=function(C){return this._characterJoinerRegistry.deregisterCharacterJoiner(C)},c=a([f(4,e.IBufferService),f(5,s.ICharSizeService),f(6,e.IOptionsService),f(7,e.ICoreService),f(8,s.ICoreBrowserService)],c)}(n.Disposable);h.Renderer=y},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(n,s){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var _ in i)i.hasOwnProperty(_)&&(e[_]=i[_])})(n,s)},function(n,s){function e(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)});Object.defineProperty(h,"__esModule",{value:!0}),h.TextRenderLayer=void 0;var a=I(42),f=I(13),d=I(6),u=I(3),o=I(29),r=I(4),l=function(n){function s(e,i,_,b,y,E,c,C){var x=n.call(this,e,"text",i,y,_,E,c,C)||this;return x._characterWidth=0,x._characterFont="",x._characterOverlapCache={},x._workCell=new r.CellData,x._state=new a.GridCache,x._characterJoinerRegistry=b,x}return g(s,n),s.prototype.resize=function(e){n.prototype.resize.call(this,e);var i=this._getFont(!1,!1);this._characterWidth===e.scaledCharWidth&&this._characterFont===i||(this._characterWidth=e.scaledCharWidth,this._characterFont=i,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},s.prototype.reset=function(){this._state.clear(),this._clearAll()},s.prototype._forEachCell=function(e,i,_,b){for(var y=e;y<=i;y++)for(var E=y+this._bufferService.buffer.ydisp,c=this._bufferService.buffer.lines.get(E),C=_?_.getJoinedCharacters(E):[],x=0;x<this._bufferService.cols;x++){c.loadCell(x,this._workCell);var M=this._workCell,k=!1,T=x;if(M.getWidth()!==0){if(C.length>0&&x===C[0][0]){k=!0;var R=C.shift();M=new o.JoinedCellData(this._workCell,c.translateToString(!0,R[0],R[1]),R[1]-R[0]),T=R[1]-1}!k&&this._isOverlapping(M)&&T<c.length-1&&c.getCodePoint(T+1)===u.NULL_CELL_CODE&&(M.content&=-12582913,M.content|=2<<22),b(M,x,y),x=T}}},s.prototype._drawBackground=function(e,i){var _=this,b=this._ctx,y=this._bufferService.cols,E=0,c=0,C=null;b.save(),this._forEachCell(e,i,null,function(x,M,k){var T=null;x.isInverse()?T=x.isFgDefault()?_._colors.foreground.css:x.isFgRGB()?"rgb("+d.AttributeData.toColorRGB(x.getFgColor()).join(",")+")":_._colors.ansi[x.getFgColor()].css:x.isBgRGB()?T="rgb("+d.AttributeData.toColorRGB(x.getBgColor()).join(",")+")":x.isBgPalette()&&(T=_._colors.ansi[x.getBgColor()].css),C===null&&(E=M,c=k),k!==c?(b.fillStyle=C||"",_._fillCells(E,c,y-E,1),E=M,c=k):C!==T&&(b.fillStyle=C||"",_._fillCells(E,c,M-E,1),E=M,c=k),C=T}),C!==null&&(b.fillStyle=C,this._fillCells(E,c,y-E,1)),b.restore()},s.prototype._drawForeground=function(e,i){var _=this;this._forEachCell(e,i,this._characterJoinerRegistry,function(b,y,E){if(!b.isInvisible()&&(_._drawChars(b,y,E),b.isUnderline())){if(_._ctx.save(),b.isInverse())if(b.isBgDefault())_._ctx.fillStyle=_._colors.background.css;else if(b.isBgRGB())_._ctx.fillStyle="rgb("+d.AttributeData.toColorRGB(b.getBgColor()).join(",")+")";else{var c=b.getBgColor();_._optionsService.options.drawBoldTextInBrightColors&&b.isBold()&&c<8&&(c+=8),_._ctx.fillStyle=_._colors.ansi[c].css}else if(b.isFgDefault())_._ctx.fillStyle=_._colors.foreground.css;else if(b.isFgRGB())_._ctx.fillStyle="rgb("+d.AttributeData.toColorRGB(b.getFgColor()).join(",")+")";else{var C=b.getFgColor();_._optionsService.options.drawBoldTextInBrightColors&&b.isBold()&&C<8&&(C+=8),_._ctx.fillStyle=_._colors.ansi[C].css}_._fillBottomLineAtCells(y,E,b.getWidth()),_._ctx.restore()}})},s.prototype.onGridChanged=function(e,i){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,e,this._bufferService.cols,i-e+1),this._drawBackground(e,i),this._drawForeground(e,i))},s.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},s.prototype._isOverlapping=function(e){if(e.getWidth()!==1)return!1;if(e.getCode()<256)return!1;var i=e.getChars();if(this._characterOverlapCache.hasOwnProperty(i))return this._characterOverlapCache[i];this._ctx.save(),this._ctx.font=this._characterFont;var _=Math.floor(this._ctx.measureText(i).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[i]=_,_},s}(f.BaseRenderLayer);h.TextRenderLayer=l},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.GridCache=void 0;var m=function(){function g(){this.cache=[]}return g.prototype.resize=function(a,f){for(var d=0;d<a;d++){this.cache.length<=d&&this.cache.push([]);for(var u=this.cache[d].length;u<f;u++)this.cache[d].push(void 0);this.cache[d].length=f}this.cache.length=a},g.prototype.clear=function(){for(var a=0;a<this.cache.length;a++)for(var f=0;f<this.cache[a].length;f++)this.cache[a][f]=void 0},g}();h.GridCache=m},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(_,b){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var c in E)E.hasOwnProperty(c)&&(y[c]=E[c])})(_,b)},function(_,b){function y(){this.constructor=_}m(_,b),_.prototype=b===null?Object.create(b):(y.prototype=b.prototype,new y)});Object.defineProperty(h,"__esModule",{value:!0}),h.NoneCharAtlas=h.DynamicCharAtlas=h.getGlyphCacheKey=void 0;var a=I(9),f=I(44),d=I(27),u=I(46),o=I(11),r=I(28),l=I(10),n={css:"rgba(0, 0, 0, 0)",rgba:0};function s(_){return _.code<<21|_.bg<<12|_.fg<<3|(_.bold?0:4)+(_.dim?0:2)+(_.italic?0:1)}h.getGlyphCacheKey=s;var e=function(_){function b(y,E){var c=_.call(this)||this;c._config=E,c._drawToCacheCount=0,c._glyphsWaitingOnBitmap=[],c._bitmapCommitTimeout=null,c._bitmap=null,c._cacheCanvas=y.createElement("canvas"),c._cacheCanvas.width=1024,c._cacheCanvas.height=1024,c._cacheCtx=r.throwIfFalsy(c._cacheCanvas.getContext("2d",{alpha:!0}));var C=y.createElement("canvas");C.width=c._config.scaledCharWidth,C.height=c._config.scaledCharHeight,c._tmpCtx=r.throwIfFalsy(C.getContext("2d",{alpha:c._config.allowTransparency})),c._width=Math.floor(1024/c._config.scaledCharWidth),c._height=Math.floor(1024/c._config.scaledCharHeight);var x=c._width*c._height;return c._cacheMap=new u.LRUMap(x),c._cacheMap.prealloc(x),c}return g(b,_),b.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},b.prototype.beginFrame=function(){this._drawToCacheCount=0},b.prototype.draw=function(y,E,c,C){if(E.code===32)return!0;if(!this._canCache(E))return!1;var x=s(E),M=this._cacheMap.get(x);if(M!=null)return this._drawFromCache(y,M,c,C),!0;if(this._drawToCacheCount<100){var k=void 0;k=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var T=this._drawToCache(E,k);return this._cacheMap.set(x,T),this._drawFromCache(y,T,c,C),!0}return!1},b.prototype._canCache=function(y){return y.code<256},b.prototype._toCoordinateX=function(y){return y%this._width*this._config.scaledCharWidth},b.prototype._toCoordinateY=function(y){return Math.floor(y/this._width)*this._config.scaledCharHeight},b.prototype._drawFromCache=function(y,E,c,C){if(!E.isEmpty){var x=this._toCoordinateX(E.index),M=this._toCoordinateY(E.index);y.drawImage(E.inBitmap?this._bitmap:this._cacheCanvas,x,M,this._config.scaledCharWidth,this._config.scaledCharHeight,c,C,this._config.scaledCharWidth,this._config.scaledCharHeight)}},b.prototype._getColorFromAnsiIndex=function(y){return y<this._config.colors.ansi.length?this._config.colors.ansi[y]:d.DEFAULT_ANSI_COLORS[y]},b.prototype._getBackgroundColor=function(y){return this._config.allowTransparency?n:y.bg===a.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:y.bg<256?this._getColorFromAnsiIndex(y.bg):this._config.colors.background},b.prototype._getForegroundColor=function(y){return y.fg===a.INVERTED_DEFAULT_COLOR?l.color.opaque(this._config.colors.background):y.fg<256?this._getColorFromAnsiIndex(y.fg):this._config.colors.foreground},b.prototype._drawToCache=function(y,E){this._drawToCacheCount++,this._tmpCtx.save();var c=this._getBackgroundColor(y);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=c.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var C=y.bold?this._config.fontWeightBold:this._config.fontWeight,x=y.italic?"italic":"";this._tmpCtx.font=x+" "+C+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(y).css,y.dim&&(this._tmpCtx.globalAlpha=a.DIM_OPACITY),this._tmpCtx.fillText(y.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var M=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),k=!1;this._config.allowTransparency||(k=function(B,W){for(var z=!0,H=W.rgba>>>24,ee=W.rgba>>>16&255,G=W.rgba>>>8&255,U=0;U<B.data.length;U+=4)B.data[U]===H&&B.data[U+1]===ee&&B.data[U+2]===G?B.data[U+3]=0:z=!1;return z}(M,c));var T=this._toCoordinateX(E),R=this._toCoordinateY(E);this._cacheCtx.putImageData(M,T,R);var P={index:E,isEmpty:k,inBitmap:!1};return this._addGlyphToBitmap(P),P},b.prototype._addGlyphToBitmap=function(y){var E=this;!("createImageBitmap"in window)||o.isFirefox||o.isSafari||(this._glyphsWaitingOnBitmap.push(y),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return E._generateBitmap()},100)))},b.prototype._generateBitmap=function(){var y=this,E=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(c){y._bitmap=c;for(var C=0;C<E.length;C++)E[C].inBitmap=!0}),this._bitmapCommitTimeout=null},b}(f.BaseCharAtlas);h.DynamicCharAtlas=e;var i=function(_){function b(y,E){return _.call(this)||this}return g(b,_),b.prototype.draw=function(y,E,c,C){return!1},b}(f.BaseCharAtlas);h.NoneCharAtlas=i},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.BaseCharAtlas=void 0;var m=function(){function g(){this._didWarmUp=!1}return g.prototype.dispose=function(){},g.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},g.prototype._doWarmUp=function(){},g.prototype.beginFrame=function(){},g}();h.BaseCharAtlas=m},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.ColorContrastCache=void 0;var m=function(){function g(){this._color={},this._rgba={}}return g.prototype.clear=function(){this._color={},this._rgba={}},g.prototype.setCss=function(a,f,d){this._rgba[a]||(this._rgba[a]={}),this._rgba[a][f]=d},g.prototype.getCss=function(a,f){return this._rgba[a]?this._rgba[a][f]:void 0},g.prototype.setColor=function(a,f,d){this._color[a]||(this._color[a]={}),this._color[a][f]=d},g.prototype.getColor=function(a,f){return this._color[a]?this._color[a][f]:void 0},g}();h.ColorContrastCache=m},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.LRUMap=void 0;var m=function(){function g(a){this.capacity=a,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return g.prototype._unlinkNode=function(a){var f=a.prev,d=a.next;a===this._head&&(this._head=d),a===this._tail&&(this._tail=f),f!==null&&(f.next=d),d!==null&&(d.prev=f)},g.prototype._appendNode=function(a){var f=this._tail;f!==null&&(f.next=a),a.prev=f,a.next=null,this._tail=a,this._head===null&&(this._head=a)},g.prototype.prealloc=function(a){for(var f=this._nodePool,d=0;d<a;d++)f.push({prev:null,next:null,key:null,value:null})},g.prototype.get=function(a){var f=this._map[a];return f!==void 0?(this._unlinkNode(f),this._appendNode(f),f.value):null},g.prototype.peekValue=function(a){var f=this._map[a];return f!==void 0?f.value:null},g.prototype.peek=function(){var a=this._head;return a===null?null:a.value},g.prototype.set=function(a,f){var d=this._map[a];if(d!==void 0)d=this._map[a],this._unlinkNode(d),d.value=f;else if(this.size>=this.capacity)d=this._head,this._unlinkNode(d),delete this._map[d.key],d.key=a,d.value=f,this._map[a]=d;else{var u=this._nodePool;u.length>0?((d=u.pop()).key=a,d.value=f):d={prev:null,next:null,key:a,value:f},this._map[a]=d,this.size++}this._appendNode(d)},g}();h.LRUMap=m},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(f,d){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,o){u.__proto__=o}||function(u,o){for(var r in o)o.hasOwnProperty(r)&&(u[r]=o[r])})(f,d)},function(f,d){function u(){this.constructor=f}m(f,d),f.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)});Object.defineProperty(h,"__esModule",{value:!0}),h.SelectionRenderLayer=void 0;var a=function(f){function d(u,o,r,l,n,s){var e=f.call(this,u,"selection",o,!0,r,l,n,s)||this;return e._clearState(),e}return g(d,f),d.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},d.prototype.resize=function(u){f.prototype.resize.call(this,u),this._clearState()},d.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},d.prototype.onSelectionChanged=function(u,o,r){if(this._didStateChange(u,o,r,this._bufferService.buffer.ydisp))if(this._clearAll(),u&&o){var l=u[1]-this._bufferService.buffer.ydisp,n=o[1]-this._bufferService.buffer.ydisp,s=Math.max(l,0),e=Math.min(n,this._bufferService.rows-1);if(!(s>=this._bufferService.rows||e<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,r){var i=u[0],_=o[0]-i,b=e-s+1;this._fillCells(i,s,_,b)}else{i=l===s?u[0]:0;var y=s===e?o[0]:this._bufferService.cols;this._fillCells(i,s,y-i,1);var E=Math.max(e-s-1,0);if(this._fillCells(0,s+1,this._bufferService.cols,E),s!==e){var c=n===e?o[0]:this._bufferService.cols;this._fillCells(0,e,c,1)}}this._state.start=[u[0],u[1]],this._state.end=[o[0],o[1]],this._state.columnSelectMode=r,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},d.prototype._didStateChange=function(u,o,r,l){return!this._areCoordinatesEqual(u,this._state.start)||!this._areCoordinatesEqual(o,this._state.end)||r!==this._state.columnSelectMode||l!==this._state.ydisp},d.prototype._areCoordinatesEqual=function(u,o){return!(!u||!o)&&u[0]===o[0]&&u[1]===o[1]},d}(I(13).BaseRenderLayer);h.SelectionRenderLayer=a},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(o,r){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,n){l.__proto__=n}||function(l,n){for(var s in n)n.hasOwnProperty(s)&&(l[s]=n[s])})(o,r)},function(o,r){function l(){this.constructor=o}m(o,r),o.prototype=r===null?Object.create(r):(l.prototype=r.prototype,new l)});Object.defineProperty(h,"__esModule",{value:!0}),h.CursorRenderLayer=void 0;var a=I(13),f=I(4),d=function(o){function r(l,n,s,e,i,_,b,y,E){var c=o.call(this,l,"cursor",n,!0,s,e,_,b)||this;return c._onRequestRedraw=i,c._coreService=y,c._coreBrowserService=E,c._cell=new f.CellData,c._state={x:0,y:0,isFocused:!1,style:"",width:0},c._cursorRenderers={bar:c._renderBarCursor.bind(c),block:c._renderBlockCursor.bind(c),underline:c._renderUnderlineCursor.bind(c)},c}return g(r,o),r.prototype.resize=function(l){o.prototype.resize.call(this,l),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},r.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},r.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},r.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},r.prototype.onOptionsChanged=function(){var l,n=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new u(this._coreBrowserService.isFocused,function(){n._render(!0)})):((l=this._cursorBlinkStateManager)===null||l===void 0||l.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},r.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},r.prototype.onGridChanged=function(l,n){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},r.prototype._render=function(l){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var n=this._bufferService.buffer.ybase+this._bufferService.buffer.y,s=n-this._bufferService.buffer.ydisp;if(s<0||s>=this._bufferService.rows)this._clearCursor();else{var e=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(n).loadCell(e,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var i=this._optionsService.options.cursorStyle;return i&&i!=="block"?this._cursorRenderers[i](e,s,this._cell):this._renderBlurCursor(e,s,this._cell),this._ctx.restore(),this._state.x=e,this._state.y=s,this._state.isFocused=!1,this._state.style=i,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===e&&this._state.y===s&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](e,s,this._cell),this._ctx.restore(),this._state.x=e,this._state.y=s,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},r.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},r.prototype._renderBarCursor=function(l,n,s){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(l,n,this._optionsService.options.cursorWidth),this._ctx.restore()},r.prototype._renderBlockCursor=function(l,n,s){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(l,n,s.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(s,l,n),this._ctx.restore()},r.prototype._renderUnderlineCursor=function(l,n,s){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(l,n),this._ctx.restore()},r.prototype._renderBlurCursor=function(l,n,s){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(l,n,s.getWidth(),1),this._ctx.restore()},r}(a.BaseRenderLayer);h.CursorRenderLayer=d;var u=function(){function o(r,l){this._renderCallback=l,this.isCursorVisible=!0,r&&this._restartInterval()}return Object.defineProperty(o.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),o.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},o.prototype.restartBlinkAnimation=function(){var r=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){r._renderCallback(),r._animationFrame=void 0})))},o.prototype._restartInterval=function(r){var l=this;r===void 0&&(r=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(l._animationTimeRestarted){var n=600-(Date.now()-l._animationTimeRestarted);if(l._animationTimeRestarted=void 0,n>0)return void l._restartInterval(n)}l.isCursorVisible=!1,l._animationFrame=window.requestAnimationFrame(function(){l._renderCallback(),l._animationFrame=void 0}),l._blinkInterval=window.setInterval(function(){if(l._animationTimeRestarted){var s=600-(Date.now()-l._animationTimeRestarted);return l._animationTimeRestarted=void 0,void l._restartInterval(s)}l.isCursorVisible=!l.isCursorVisible,l._animationFrame=window.requestAnimationFrame(function(){l._renderCallback(),l._animationFrame=void 0})},600)},r)},o.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},o.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},o}()},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(o,r){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,n){l.__proto__=n}||function(l,n){for(var s in n)n.hasOwnProperty(s)&&(l[s]=n[s])})(o,r)},function(o,r){function l(){this.constructor=o}m(o,r),o.prototype=r===null?Object.create(r):(l.prototype=r.prototype,new l)});Object.defineProperty(h,"__esModule",{value:!0}),h.LinkRenderLayer=void 0;var a=I(13),f=I(9),d=I(26),u=function(o){function r(l,n,s,e,i,_,b,y){var E=o.call(this,l,"link",n,!0,s,e,b,y)||this;return i.onShowLinkUnderline(function(c){return E._onShowLinkUnderline(c)}),i.onHideLinkUnderline(function(c){return E._onHideLinkUnderline(c)}),_.onShowLinkUnderline(function(c){return E._onShowLinkUnderline(c)}),_.onHideLinkUnderline(function(c){return E._onHideLinkUnderline(c)}),E}return g(r,o),r.prototype.resize=function(l){o.prototype.resize.call(this,l),this._state=void 0},r.prototype.reset=function(){this._clearCurrentLink()},r.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var l=this._state.y2-this._state.y1-1;l>0&&this._clearCells(0,this._state.y1+1,this._state.cols,l),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},r.prototype._onShowLinkUnderline=function(l){if(l.fg===f.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:l.fg&&d.is256Color(l.fg)?this._ctx.fillStyle=this._colors.ansi[l.fg].css:this._ctx.fillStyle=this._colors.foreground.css,l.y1===l.y2)this._fillBottomLineAtCells(l.x1,l.y1,l.x2-l.x1);else{this._fillBottomLineAtCells(l.x1,l.y1,l.cols-l.x1);for(var n=l.y1+1;n<l.y2;n++)this._fillBottomLineAtCells(0,n,l.cols);this._fillBottomLineAtCells(0,l.y2,l.x2)}this._state=l},r.prototype._onHideLinkUnderline=function(l){this._clearCurrentLink()},r}(a.BaseRenderLayer);h.LinkRenderLayer=u},function(w,h,I){"use strict";var m=this&&this.__decorate||function(o,r,l,n){var s,e=arguments.length,i=e<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,l):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,r,l,n);else for(var _=o.length-1;_>=0;_--)(s=o[_])&&(i=(e<3?s(i):e>3?s(r,l,i):s(r,l))||i);return e>3&&i&&Object.defineProperty(r,l,i),i},g=this&&this.__param||function(o,r){return function(l,n){r(l,n,o)}};Object.defineProperty(h,"__esModule",{value:!0}),h.MouseZone=h.Linkifier=void 0;var a=I(0),f=I(1),d=function(){function o(r,l,n){this._bufferService=r,this._logService=l,this._unicodeService=n,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new a.EventEmitter,this._onHideLinkUnderline=new a.EventEmitter,this._onLinkTooltip=new a.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(o.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),o.prototype.attachToDom=function(r,l){this._element=r,this._mouseZoneManager=l},o.prototype.linkifyRows=function(r,l){var n=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=r,this._rowsToLinkify.end=l):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,r),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,l)),this._mouseZoneManager.clearAll(r,l),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return n._linkifyRows()},o._timeBeforeLatency))},o.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var r=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var l=r.ydisp+this._rowsToLinkify.start;if(!(l>=r.lines.length)){for(var n=r.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,s=Math.ceil(2e3/this._bufferService.cols),e=this._bufferService.buffer.iterator(!1,l,n,s,s);e.hasNext();)for(var i=e.next(),_=0;_<this._linkMatchers.length;_++)this._doLinkifyRow(i.range.first,i.content,this._linkMatchers[_]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},o.prototype.registerLinkMatcher=function(r,l,n){if(n===void 0&&(n={}),!l)throw new Error("handler must be defined");var s={id:this._nextLinkMatcherId++,regex:r,handler:l,matchIndex:n.matchIndex,validationCallback:n.validationCallback,hoverTooltipCallback:n.tooltipCallback,hoverLeaveCallback:n.leaveCallback,willLinkActivate:n.willLinkActivate,priority:n.priority||0};return this._addLinkMatcherToList(s),s.id},o.prototype._addLinkMatcherToList=function(r){if(this._linkMatchers.length!==0){for(var l=this._linkMatchers.length-1;l>=0;l--)if(r.priority<=this._linkMatchers[l].priority)return void this._linkMatchers.splice(l+1,0,r);this._linkMatchers.splice(0,0,r)}else this._linkMatchers.push(r)},o.prototype.deregisterLinkMatcher=function(r){for(var l=0;l<this._linkMatchers.length;l++)if(this._linkMatchers[l].id===r)return this._linkMatchers.splice(l,1),!0;return!1},o.prototype._doLinkifyRow=function(r,l,n){for(var s,e=this,i=new RegExp(n.regex.source,(n.regex.flags||"")+"g"),_=-1,b=function(){var E=s[typeof n.matchIndex!="number"?0:n.matchIndex];if(!E)return y._logService.debug("match found without corresponding matchIndex",s,n),"break";if(_=l.indexOf(E,_+1),i.lastIndex=_+E.length,_<0)return"break";var c=y._bufferService.buffer.stringIndexToBufferIndex(r,_);if(c[0]<0)return"break";var C=y._bufferService.buffer.lines.get(c[0]);if(!C)return"break";var x=C.getFg(c[1]),M=x?x>>9&511:void 0;n.validationCallback?n.validationCallback(E,function(k){e._rowsTimeoutId||k&&e._addLink(c[1],c[0]-e._bufferService.buffer.ydisp,E,n,M)}):y._addLink(c[1],c[0]-y._bufferService.buffer.ydisp,E,n,M)},y=this;(s=i.exec(l))!==null&&!(b()==="break"););},o.prototype._addLink=function(r,l,n,s,e){var i=this;if(this._mouseZoneManager&&this._element){var _=this._unicodeService.getStringCellWidth(n),b=r%this._bufferService.cols,y=l+Math.floor(r/this._bufferService.cols),E=(b+_)%this._bufferService.cols,c=y+Math.floor((b+_)/this._bufferService.cols);E===0&&(E=this._bufferService.cols,c--),this._mouseZoneManager.add(new u(b+1,y+1,E+1,c+1,function(C){if(s.handler)return s.handler(C,n);var x=window.open();x?(x.opener=null,x.location.href=n):console.warn("Opening link blocked as opener could not be cleared")},function(){i._onShowLinkUnderline.fire(i._createLinkHoverEvent(b,y,E,c,e)),i._element.classList.add("xterm-cursor-pointer")},function(C){i._onLinkTooltip.fire(i._createLinkHoverEvent(b,y,E,c,e)),s.hoverTooltipCallback&&s.hoverTooltipCallback(C,n,{start:{x:b,y},end:{x:E,y:c}})},function(){i._onHideLinkUnderline.fire(i._createLinkHoverEvent(b,y,E,c,e)),i._element.classList.remove("xterm-cursor-pointer"),s.hoverLeaveCallback&&s.hoverLeaveCallback()},function(C){return!s.willLinkActivate||s.willLinkActivate(C,n)}))}},o.prototype._createLinkHoverEvent=function(r,l,n,s,e){return{x1:r,y1:l,x2:n,y2:s,cols:this._bufferService.cols,fg:e}},o._timeBeforeLatency=200,o=m([g(0,f.IBufferService),g(1,f.ILogService),g(2,f.IUnicodeService)],o)}();h.Linkifier=d;var u=function(o,r,l,n,s,e,i,_,b){this.x1=o,this.y1=r,this.x2=l,this.y2=n,this.clickCallback=s,this.hoverCallback=e,this.tooltipCallback=i,this.leaveCallback=_,this.willLinkActivate=b};h.MouseZone=u},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(E,c){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,x){C.__proto__=x}||function(C,x){for(var M in x)x.hasOwnProperty(M)&&(C[M]=x[M])})(E,c)},function(E,c){function C(){this.constructor=E}m(E,c),E.prototype=c===null?Object.create(c):(C.prototype=c.prototype,new C)}),a=this&&this.__decorate||function(E,c,C,x){var M,k=arguments.length,T=k<3?c:x===null?x=Object.getOwnPropertyDescriptor(c,C):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(E,c,C,x);else for(var R=E.length-1;R>=0;R--)(M=E[R])&&(T=(k<3?M(T):k>3?M(c,C,T):M(c,C))||T);return k>3&&T&&Object.defineProperty(c,C,T),T},f=this&&this.__param||function(E,c){return function(C,x){c(C,x,E)}};Object.defineProperty(h,"__esModule",{value:!0}),h.SelectionService=void 0;var d=I(11),u=I(52),o=I(4),r=I(0),l=I(5),n=I(1),s=I(30),e=I(53),i=I(2),_=String.fromCharCode(160),b=new RegExp(_,"g"),y=function(E){function c(C,x,M,k,T,R,P){var B=E.call(this)||this;return B._element=C,B._screenElement=x,B._bufferService=M,B._coreService=k,B._mouseService=T,B._optionsService=R,B._renderService=P,B._dragScrollAmount=0,B._enabled=!0,B._workCell=new o.CellData,B._mouseDownTimeStamp=0,B._onLinuxMouseSelection=B.register(new r.EventEmitter),B._onRedrawRequest=B.register(new r.EventEmitter),B._onSelectionChange=B.register(new r.EventEmitter),B._onRequestScrollLines=B.register(new r.EventEmitter),B._mouseMoveListener=function(W){return B._onMouseMove(W)},B._mouseUpListener=function(W){return B._onMouseUp(W)},B._coreService.onUserInput(function(){B.hasSelection&&B.clearSelection()}),B._trimListener=B._bufferService.buffer.lines.onTrim(function(W){return B._onTrim(W)}),B.register(B._bufferService.buffers.onBufferActivate(function(W){return B._onBufferActivate(W)})),B.enable(),B._model=new u.SelectionModel(B._bufferService),B._activeSelectionMode=0,B}return g(c,E),Object.defineProperty(c.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),c.prototype.dispose=function(){this._removeMouseDownListeners()},c.prototype.reset=function(){this.clearSelection()},c.prototype.disable=function(){this.clearSelection(),this._enabled=!1},c.prototype.enable=function(){this._enabled=!0},Object.defineProperty(c.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"hasSelection",{get:function(){var C=this._model.finalSelectionStart,x=this._model.finalSelectionEnd;return!(!C||!x)&&(C[0]!==x[0]||C[1]!==x[1])},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"selectionText",{get:function(){var C=this._model.finalSelectionStart,x=this._model.finalSelectionEnd;if(!C||!x)return"";var M=this._bufferService.buffer,k=[];if(this._activeSelectionMode===3){if(C[0]===x[0])return"";for(var T=C[1];T<=x[1];T++){var R=M.translateBufferLineToString(T,!0,C[0],x[0]);k.push(R)}}else{var P=C[1]===x[1]?x[0]:void 0;for(k.push(M.translateBufferLineToString(C[1],!0,C[0],P)),T=C[1]+1;T<=x[1]-1;T++){var B=M.lines.get(T);R=M.translateBufferLineToString(T,!0),B&&B.isWrapped?k[k.length-1]+=R:k.push(R)}C[1]!==x[1]&&(B=M.lines.get(x[1]),R=M.translateBufferLineToString(x[1],!0,0,x[0]),B&&B.isWrapped?k[k.length-1]+=R:k.push(R))}return k.map(function(W){return W.replace(b," ")}).join(d.isWindows?`\r
`:`
`)},enumerable:!1,configurable:!0}),c.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},c.prototype.refresh=function(C){var x=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return x._refresh()})),d.isLinux&&C)&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},c.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},c.prototype.isClickInSelection=function(C){var x=this._getMouseBufferCoords(C),M=this._model.finalSelectionStart,k=this._model.finalSelectionEnd;return!!(M&&k&&x)&&this._areCoordsInSelection(x,M,k)},c.prototype._areCoordsInSelection=function(C,x,M){return C[1]>x[1]&&C[1]<M[1]||x[1]===M[1]&&C[1]===x[1]&&C[0]>=x[0]&&C[0]<M[0]||x[1]<M[1]&&C[1]===M[1]&&C[0]<M[0]||x[1]<M[1]&&C[1]===x[1]&&C[0]>=x[0]},c.prototype.selectWordAtCursor=function(C){var x=this._getMouseBufferCoords(C);x&&(this._selectWordAt(x,!1),this._model.selectionEnd=void 0,this.refresh(!0))},c.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},c.prototype.selectLines=function(C,x){this._model.clearSelection(),C=Math.max(C,0),x=Math.min(x,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,C],this._model.selectionEnd=[this._bufferService.cols,x],this.refresh(),this._onSelectionChange.fire()},c.prototype._onTrim=function(C){this._model.onTrim(C)&&this.refresh()},c.prototype._getMouseBufferCoords=function(C){var x=this._mouseService.getCoords(C,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(x)return x[0]--,x[1]--,x[1]+=this._bufferService.buffer.ydisp,x},c.prototype._getMouseEventScrollAmount=function(C){var x=s.getCoordsRelativeToElement(C,this._screenElement)[1],M=this._renderService.dimensions.canvasHeight;return x>=0&&x<=M?0:(x>M&&(x-=M),x=Math.min(Math.max(x,-50),50),(x/=50)/Math.abs(x)+Math.round(14*x))},c.prototype.shouldForceSelection=function(C){return d.isMac?C.altKey&&this._optionsService.options.macOptionClickForcesSelection:C.shiftKey},c.prototype.onMouseDown=function(C){if(this._mouseDownTimeStamp=C.timeStamp,(C.button!==2||!this.hasSelection)&&C.button===0){if(!this._enabled){if(!this.shouldForceSelection(C))return;C.stopPropagation()}C.preventDefault(),this._dragScrollAmount=0,this._enabled&&C.shiftKey?this._onIncrementalClick(C):C.detail===1?this._onSingleClick(C):C.detail===2?this._onDoubleClick(C):C.detail===3&&this._onTripleClick(C),this._addMouseDownListeners(),this.refresh(!0)}},c.prototype._addMouseDownListeners=function(){var C=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return C._dragScroll()},50)},c.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},c.prototype._onIncrementalClick=function(C){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(C))},c.prototype._onSingleClick=function(C){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(C)?3:0,this._model.selectionStart=this._getMouseBufferCoords(C),this._model.selectionStart){this._model.selectionEnd=void 0;var x=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);x&&x.length!==this._model.selectionStart[0]&&x.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},c.prototype._onDoubleClick=function(C){var x=this._getMouseBufferCoords(C);x&&(this._activeSelectionMode=1,this._selectWordAt(x,!0))},c.prototype._onTripleClick=function(C){var x=this._getMouseBufferCoords(C);x&&(this._activeSelectionMode=2,this._selectLineAt(x[1]))},c.prototype.shouldColumnSelect=function(C){return C.altKey&&!(d.isMac&&this._optionsService.options.macOptionClickForcesSelection)},c.prototype._onMouseMove=function(C){if(C.stopImmediatePropagation(),this._model.selectionStart){var x=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(C),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(C),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var M=this._bufferService.buffer;if(this._model.selectionEnd[1]<M.lines.length){var k=M.lines.get(this._model.selectionEnd[1]);k&&k.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}x&&x[0]===this._model.selectionEnd[0]&&x[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},c.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var C=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(C.ydisp+this._bufferService.rows,C.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=C.ydisp),this.refresh()}},c.prototype._onMouseUp=function(C){var x=C.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&x<500&&C.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var M=this._mouseService.getCoords(C,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(M&&M[0]!==void 0&&M[1]!==void 0){var k=e.moveToCellSequence(M[0]-1,M[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(k,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},c.prototype._onBufferActivate=function(C){var x=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=C.activeBuffer.lines.onTrim(function(M){return x._onTrim(M)})},c.prototype._convertViewportColToCharacterIndex=function(C,x){for(var M=x[0],k=0;x[0]>=k;k++){var T=C.loadCell(k,this._workCell).getChars().length;this._workCell.getWidth()===0?M--:T>1&&x[0]!==k&&(M+=T-1)}return M},c.prototype.setSelection=function(C,x,M){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[C,x],this._model.selectionStartLength=M,this.refresh()},c.prototype._getWordAt=function(C,x,M,k){if(M===void 0&&(M=!0),k===void 0&&(k=!0),!(C[0]>=this._bufferService.cols)){var T=this._bufferService.buffer,R=T.lines.get(C[1]);if(R){var P=T.translateBufferLineToString(C[1],!1),B=this._convertViewportColToCharacterIndex(R,C),W=B,z=C[0]-B,H=0,ee=0,G=0,U=0;if(P.charAt(B)===" "){for(;B>0&&P.charAt(B-1)===" ";)B--;for(;W<P.length&&P.charAt(W+1)===" ";)W++}else{var K=C[0],L=C[0];R.getWidth(K)===0&&(H++,K--),R.getWidth(L)===2&&(ee++,L++);var D=R.getString(L).length;for(D>1&&(U+=D-1,W+=D-1);K>0&&B>0&&!this._isCharWordSeparator(R.loadCell(K-1,this._workCell));){R.loadCell(K-1,this._workCell);var j=this._workCell.getChars().length;this._workCell.getWidth()===0?(H++,K--):j>1&&(G+=j-1,B-=j-1),B--,K--}for(;L<R.length&&W+1<P.length&&!this._isCharWordSeparator(R.loadCell(L+1,this._workCell));){R.loadCell(L+1,this._workCell);var Z=this._workCell.getChars().length;this._workCell.getWidth()===2?(ee++,L++):Z>1&&(U+=Z-1,W+=Z-1),W++,L++}}W++;var ie=B+z-H+G,pe=Math.min(this._bufferService.cols,W-B+H+ee-G-U);if(x||P.slice(B,W).trim()!==""){if(M&&ie===0&&R.getCodePoint(0)!==32){var Ee=T.lines.get(C[1]-1);if(Ee&&R.isWrapped&&Ee.getCodePoint(this._bufferService.cols-1)!==32){var De=this._getWordAt([this._bufferService.cols-1,C[1]-1],!1,!0,!1);if(De){var q=this._bufferService.cols-De.start;ie-=q,pe+=q}}}if(k&&ie+pe===this._bufferService.cols&&R.getCodePoint(this._bufferService.cols-1)!==32){var be=T.lines.get(C[1]+1);if(be&&be.isWrapped&&be.getCodePoint(0)!==32){var ye=this._getWordAt([0,C[1]+1],!1,!1,!0);ye&&(pe+=ye.length)}}return{start:ie,length:pe}}}}},c.prototype._selectWordAt=function(C,x){var M=this._getWordAt(C,x);if(M){for(;M.start<0;)M.start+=this._bufferService.cols,C[1]--;this._model.selectionStart=[M.start,C[1]],this._model.selectionStartLength=M.length}},c.prototype._selectToWordAt=function(C){var x=this._getWordAt(C,!0);if(x){for(var M=C[1];x.start<0;)x.start+=this._bufferService.cols,M--;if(!this._model.areSelectionValuesReversed())for(;x.start+x.length>this._bufferService.cols;)x.length-=this._bufferService.cols,M++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?x.start:x.start+x.length,M]}},c.prototype._isCharWordSeparator=function(C){return C.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(C.getChars())>=0},c.prototype._selectLineAt=function(C){var x=this._bufferService.buffer.getWrappedRangeForLine(C);this._model.selectionStart=[0,x.first],this._model.selectionEnd=[this._bufferService.cols,x.last],this._model.selectionStartLength=0},c=a([f(2,n.IBufferService),f(3,n.ICoreService),f(4,l.IMouseService),f(5,n.IOptionsService),f(6,l.IRenderService)],c)}(i.Disposable);h.SelectionService=y},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.SelectionModel=void 0;var m=function(){function g(a){this._bufferService=a,this.isSelectAllActive=!1,this.selectionStartLength=0}return g.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(g.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var a=this.selectionStart[0]+this.selectionStartLength;return a>this._bufferService.cols?[a%this._bufferService.cols,this.selectionStart[1]+Math.floor(a/this._bufferService.cols)]:[a,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),g.prototype.areSelectionValuesReversed=function(){var a=this.selectionStart,f=this.selectionEnd;return!(!a||!f)&&(a[1]>f[1]||a[1]===f[1]&&a[0]>f[0])},g.prototype.onTrim=function(a){return this.selectionStart&&(this.selectionStart[1]-=a),this.selectionEnd&&(this.selectionEnd[1]-=a),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},g}();h.SelectionModel=m},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.moveToCellSequence=void 0;var m=I(12);function g(r,l,n,s){var e=r-a(n,r),i=l-a(n,l);return o(Math.abs(e-i)-function(_,b,y){for(var E=0,c=_-a(y,_),C=b-a(y,b),x=0;x<Math.abs(c-C);x++){var M=f(_,b)==="A"?-1:1,k=y.buffer.lines.get(c+M*x);k&&k.isWrapped&&E++}return E}(r,l,n),u(f(r,l),s))}function a(r,l){for(var n=0,s=r.buffer.lines.get(l),e=s&&s.isWrapped;e&&l>=0&&l<r.rows;)n++,e=(s=r.buffer.lines.get(--l))&&s.isWrapped;return n}function f(r,l){return r>l?"A":"B"}function d(r,l,n,s,e,i){for(var _=r,b=l,y="";_!==n||b!==s;)_+=e?1:-1,e&&_>i.cols-1?(y+=i.buffer.translateBufferLineToString(b,!1,r,_),_=0,r=0,b++):!e&&_<0&&(y+=i.buffer.translateBufferLineToString(b,!1,0,r+1),r=_=i.cols-1,b--);return y+i.buffer.translateBufferLineToString(b,!1,r,_)}function u(r,l){var n=l?"O":"[";return m.C0.ESC+n+r}function o(r,l){r=Math.floor(r);for(var n="",s=0;s<r;s++)n+=l;return n}h.moveToCellSequence=function(r,l,n,s){var e,i=n.buffer.x,_=n.buffer.y;if(!n.buffer.hasScrollback)return function(y,E,c,C,x,M){return g(E,C,x,M).length===0?"":o(d(y,E,y,E-a(x,E),!1,x).length,u("D",M))}(i,_,0,l,n,s)+g(_,l,n,s)+function(y,E,c,C,x,M){var k;k=g(E,C,x,M).length>0?C-a(x,C):E;var T=C,R=function(P,B,W,z,H,ee){var G;return G=g(W,z,H,ee).length>0?z-a(H,z):B,P<W&&G<=z||P>=W&&G<z?"C":"D"}(y,E,c,C,x,M);return o(d(y,k,c,T,R==="C",x).length,u(R,M))}(i,_,r,l,n,s);if(_===l)return e=i>r?"D":"C",o(Math.abs(i-r),u(e,s));e=_>l?"D":"C";var b=Math.abs(_-l);return o(function(y,E){return E.cols-y}(_>l?r:i,n)+(b-1)*n.cols+1+((_>l?i:r)-1),u(e,s))}},function(w,h,I){"use strict";var m=this&&this.__decorate||function(d,u,o,r){var l,n=arguments.length,s=n<3?u:r===null?r=Object.getOwnPropertyDescriptor(u,o):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(d,u,o,r);else for(var e=d.length-1;e>=0;e--)(l=d[e])&&(s=(n<3?l(s):n>3?l(u,o,s):l(u,o))||s);return n>3&&s&&Object.defineProperty(u,o,s),s},g=this&&this.__param||function(d,u){return function(o,r){u(o,r,d)}};Object.defineProperty(h,"__esModule",{value:!0}),h.SoundService=void 0;var a=I(1),f=function(){function d(u){this._optionsService=u}return Object.defineProperty(d,"audioContext",{get:function(){if(!d._audioContext){var u=window.AudioContext||window.webkitAudioContext;if(!u)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;d._audioContext=new u}return d._audioContext},enumerable:!1,configurable:!0}),d.prototype.playBellSound=function(){var u=d.audioContext;if(u){var o=u.createBufferSource();u.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(r){o.buffer=r,o.connect(u.destination),o.start(0)})}},d.prototype._base64ToArrayBuffer=function(u){for(var o=window.atob(u),r=o.length,l=new Uint8Array(r),n=0;n<r;n++)l[n]=o.charCodeAt(n);return l.buffer},d.prototype._removeMimeType=function(u){return u.split(",")[1]},d=m([g(0,a.IOptionsService)],d)}();h.SoundService=f},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(n,s){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var _ in i)i.hasOwnProperty(_)&&(e[_]=i[_])})(n,s)},function(n,s){function e(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)}),a=this&&this.__decorate||function(n,s,e,i){var _,b=arguments.length,y=b<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(n,s,e,i);else for(var E=n.length-1;E>=0;E--)(_=n[E])&&(y=(b<3?_(y):b>3?_(s,e,y):_(s,e))||y);return b>3&&y&&Object.defineProperty(s,e,y),y},f=this&&this.__param||function(n,s){return function(e,i){s(e,i,n)}};Object.defineProperty(h,"__esModule",{value:!0}),h.MouseZoneManager=void 0;var d=I(2),u=I(7),o=I(5),r=I(1),l=function(n){function s(e,i,_,b,y,E){var c=n.call(this)||this;return c._element=e,c._screenElement=i,c._bufferService=_,c._mouseService=b,c._selectionService=y,c._optionsService=E,c._zones=[],c._areZonesActive=!1,c._lastHoverCoords=[void 0,void 0],c._initialSelectionLength=0,c.register(u.addDisposableDomListener(c._element,"mousedown",function(C){return c._onMouseDown(C)})),c._mouseMoveListener=function(C){return c._onMouseMove(C)},c._mouseLeaveListener=function(C){return c._onMouseLeave(C)},c._clickListener=function(C){return c._onClick(C)},c}return g(s,n),s.prototype.dispose=function(){n.prototype.dispose.call(this),this._deactivate()},s.prototype.add=function(e){this._zones.push(e),this._zones.length===1&&this._activate()},s.prototype.clearAll=function(e,i){if(this._zones.length!==0){e&&i||(e=0,i=this._bufferService.rows-1);for(var _=0;_<this._zones.length;_++){var b=this._zones[_];(b.y1>e&&b.y1<=i+1||b.y2>e&&b.y2<=i+1||b.y1<e&&b.y2>i+1)&&(this._currentZone&&this._currentZone===b&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(_--,1))}this._zones.length===0&&this._deactivate()}},s.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},s.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},s.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},s.prototype._onHover=function(e){var i=this,_=this._findZoneEventAt(e);_!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),_&&(this._currentZone=_,_.hoverCallback&&_.hoverCallback(e),this._tooltipTimeout=window.setTimeout(function(){return i._onTooltip(e)},this._optionsService.options.linkTooltipHoverDuration)))},s.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var i=this._findZoneEventAt(e);i&&i.tooltipCallback&&i.tooltipCallback(e)},s.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var i=this._findZoneEventAt(e);(i==null?void 0:i.willLinkActivate(e))&&(e.preventDefault(),e.stopImmediatePropagation())}},s.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},s.prototype._onClick=function(e){var i=this._findZoneEventAt(e),_=this._getSelectionLength();i&&_===this._initialSelectionLength&&(i.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},s.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},s.prototype._findZoneEventAt=function(e){var i=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(i)for(var _=i[0],b=i[1],y=0;y<this._zones.length;y++){var E=this._zones[y];if(E.y1===E.y2){if(b===E.y1&&_>=E.x1&&_<E.x2)return E}else if(b===E.y1&&_>=E.x1||b===E.y2&&_<E.x2||b>E.y1&&b<E.y2)return E}},s=a([f(2,r.IBufferService),f(3,o.IMouseService),f(4,o.ISelectionService),f(5,r.IOptionsService)],s)}(d.Disposable);h.MouseZoneManager=l},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(s,e){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,_){i.__proto__=_}||function(i,_){for(var b in _)_.hasOwnProperty(b)&&(i[b]=_[b])})(s,e)},function(s,e){function i(){this.constructor=s}m(s,e),s.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(h,"__esModule",{value:!0}),h.AccessibilityManager=void 0;var a=I(18),f=I(11),d=I(31),u=I(7),o=I(2),r=I(32),l=I(17),n=function(s){function e(i,_){var b=s.call(this)||this;b._terminal=i,b._renderService=_,b._liveRegionLineCount=0,b._charsToConsume=[],b._charsToAnnounce="",b._accessibilityTreeRoot=document.createElement("div"),b._accessibilityTreeRoot.classList.add("xterm-accessibility"),b._rowContainer=document.createElement("div"),b._rowContainer.classList.add("xterm-accessibility-tree"),b._rowContainer.setAttribute("role","list"),b._rowElements=[];for(var y=0;y<b._terminal.rows;y++)b._rowElements[y]=b._createAccessibilityTreeNode(),b._rowContainer.appendChild(b._rowElements[y]);if(b._topBoundaryFocusListener=function(E){return b._onBoundaryFocus(E,0)},b._bottomBoundaryFocusListener=function(E){return b._onBoundaryFocus(E,1)},b._rowElements[0].addEventListener("focus",b._topBoundaryFocusListener),b._rowElements[b._rowElements.length-1].addEventListener("focus",b._bottomBoundaryFocusListener),b._refreshRowsDimensions(),b._accessibilityTreeRoot.appendChild(b._rowContainer),b._renderRowsDebouncer=new d.RenderDebouncer(b._renderRows.bind(b)),b._refreshRows(),b._liveRegion=document.createElement("div"),b._liveRegion.classList.add("live-region"),b._liveRegion.setAttribute("aria-live","assertive"),b._accessibilityTreeRoot.appendChild(b._liveRegion),!b._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return b._terminal.element.insertAdjacentElement("afterbegin",b._accessibilityTreeRoot),b.register(b._renderRowsDebouncer),b.register(b._terminal.onResize(function(E){return b._onResize(E.rows)})),b.register(b._terminal.onRender(function(E){return b._refreshRows(E.start,E.end)})),b.register(b._terminal.onScroll(function(){return b._refreshRows()})),b.register(b._terminal.onA11yChar(function(E){return b._onChar(E)})),b.register(b._terminal.onLineFeed(function(){return b._onChar(`
`)})),b.register(b._terminal.onA11yTab(function(E){return b._onTab(E)})),b.register(b._terminal.onKey(function(E){return b._onKey(E.key)})),b.register(b._terminal.onBlur(function(){return b._clearLiveRegion()})),b.register(b._renderService.onDimensionsChange(function(){return b._refreshRowsDimensions()})),b._screenDprMonitor=new r.ScreenDprMonitor,b.register(b._screenDprMonitor),b._screenDprMonitor.setListener(function(){return b._refreshRowsDimensions()}),b.register(u.addDisposableDomListener(window,"resize",function(){return b._refreshRowsDimensions()})),b}return g(e,s),e.prototype.dispose=function(){s.prototype.dispose.call(this),l.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},e.prototype._onBoundaryFocus=function(i,_){var b=i.target,y=this._rowElements[_===0?1:this._rowElements.length-2];if(b.getAttribute("aria-posinset")!==(_===0?"1":""+this._terminal.buffer.lines.length)&&i.relatedTarget===y){var E,c;if(_===0?(E=b,c=this._rowElements.pop(),this._rowContainer.removeChild(c)):(E=this._rowElements.shift(),c=b,this._rowContainer.removeChild(E)),E.removeEventListener("focus",this._topBoundaryFocusListener),c.removeEventListener("focus",this._bottomBoundaryFocusListener),_===0){var C=this._createAccessibilityTreeNode();this._rowElements.unshift(C),this._rowContainer.insertAdjacentElement("afterbegin",C)}else C=this._createAccessibilityTreeNode(),this._rowElements.push(C),this._rowContainer.appendChild(C);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(_===0?-1:1),this._rowElements[_===0?1:this._rowElements.length-2].focus(),i.preventDefault(),i.stopImmediatePropagation()}},e.prototype._onResize=function(i){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var _=this._rowContainer.children.length;_<this._terminal.rows;_++)this._rowElements[_]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[_]);for(;this._rowElements.length>i;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},e.prototype._createAccessibilityTreeNode=function(){var i=document.createElement("div");return i.setAttribute("role","listitem"),i.tabIndex=-1,this._refreshRowDimensions(i),i},e.prototype._onTab=function(i){for(var _=0;_<i;_++)this._onChar(" ")},e.prototype._onChar=function(i){var _=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==i&&(this._charsToAnnounce+=i):this._charsToAnnounce+=i,i===`
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=a.tooMuchOutput)),f.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){_._accessibilityTreeRoot.appendChild(_._liveRegion)},0))},e.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,f.isMac&&l.removeElementFromParent(this._liveRegion)},e.prototype._onKey=function(i){this._clearLiveRegion(),this._charsToConsume.push(i)},e.prototype._refreshRows=function(i,_){this._renderRowsDebouncer.refresh(i,_,this._terminal.rows)},e.prototype._renderRows=function(i,_){for(var b=this._terminal.buffer,y=b.lines.length.toString(),E=i;E<=_;E++){var c=b.translateBufferLineToString(b.ydisp+E,!0),C=(b.ydisp+E+1).toString(),x=this._rowElements[E];x&&(c.length===0?x.innerHTML="&nbsp;":x.textContent=c,x.setAttribute("aria-posinset",C),x.setAttribute("aria-setsize",y))}this._announceCharacters()},e.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var i=0;i<this._terminal.rows;i++)this._refreshRowDimensions(this._rowElements[i])}},e.prototype._refreshRowDimensions=function(i){i.style.height=this._renderService.dimensions.actualCellHeight+"px"},e.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},e}(o.Disposable);h.AccessibilityManager=n},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(b,y){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,c){E.__proto__=c}||function(E,c){for(var C in c)c.hasOwnProperty(C)&&(E[C]=c[C])})(b,y)},function(b,y){function E(){this.constructor=b}m(b,y),b.prototype=y===null?Object.create(y):(E.prototype=y.prototype,new E)}),a=this&&this.__decorate||function(b,y,E,c){var C,x=arguments.length,M=x<3?y:c===null?c=Object.getOwnPropertyDescriptor(y,E):c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(b,y,E,c);else for(var k=b.length-1;k>=0;k--)(C=b[k])&&(M=(x<3?C(M):x>3?C(y,E,M):C(y,E))||M);return x>3&&M&&Object.defineProperty(y,E,M),M},f=this&&this.__param||function(b,y){return function(E,c){y(E,c,b)}};Object.defineProperty(h,"__esModule",{value:!0}),h.DomRenderer=void 0;var d=I(58),u=I(9),o=I(2),r=I(5),l=I(1),n=I(0),s=I(10),e=I(17),i=1,_=function(b){function y(E,c,C,x,M,k,T,R,P){var B=b.call(this)||this;return B._colors=E,B._element=c,B._screenElement=C,B._viewportElement=x,B._linkifier=M,B._linkifier2=k,B._charSizeService=T,B._optionsService=R,B._bufferService=P,B._terminalClass=i++,B._rowElements=[],B._rowContainer=document.createElement("div"),B._rowContainer.classList.add("xterm-rows"),B._rowContainer.style.lineHeight="normal",B._rowContainer.setAttribute("aria-hidden","true"),B._refreshRowElements(B._bufferService.cols,B._bufferService.rows),B._selectionContainer=document.createElement("div"),B._selectionContainer.classList.add("xterm-selection"),B._selectionContainer.setAttribute("aria-hidden","true"),B.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},B._updateDimensions(),B._injectCss(),B._rowFactory=new d.DomRendererRowFactory(document,B._optionsService,B._colors),B._element.classList.add("xterm-dom-renderer-owner-"+B._terminalClass),B._screenElement.appendChild(B._rowContainer),B._screenElement.appendChild(B._selectionContainer),B._linkifier.onShowLinkUnderline(function(W){return B._onLinkHover(W)}),B._linkifier.onHideLinkUnderline(function(W){return B._onLinkLeave(W)}),B._linkifier2.onShowLinkUnderline(function(W){return B._onLinkHover(W)}),B._linkifier2.onHideLinkUnderline(function(W){return B._onLinkLeave(W)}),B}return g(y,b),Object.defineProperty(y.prototype,"onRequestRedraw",{get:function(){return new n.EventEmitter().event},enumerable:!1,configurable:!0}),y.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),e.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),b.prototype.dispose.call(this)},y.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var E=0,c=this._rowElements;E<c.length;E++){var C=c[E];C.style.width=this.dimensions.canvasWidth+"px",C.style.height=this.dimensions.actualCellHeight+"px",C.style.lineHeight=this.dimensions.actualCellHeight+"px",C.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var x=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=x,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},y.prototype.setColors=function(E){this._colors=E,this._injectCss()},y.prototype._injectCss=function(){var E=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var c=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";c+=this._terminalSelector+" span:not(."+d.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+d.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+d.ITALIC_CLASS+" { font-style: italic;}",c+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",c+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",c+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+d.CURSOR_CLASS+"."+d.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+d.CURSOR_CLASS+"."+d.CURSOR_BLINK_CLASS+":not(."+d.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+d.CURSOR_CLASS+"."+d.CURSOR_BLINK_CLASS+"."+d.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+d.CURSOR_CLASS+"."+d.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+d.CURSOR_CLASS+"."+d.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+d.CURSOR_CLASS+"."+d.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",c+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(C,x){c+=E._terminalSelector+" .xterm-fg-"+x+" { color: "+C.css+"; }"+E._terminalSelector+" .xterm-bg-"+x+" { background-color: "+C.css+"; }"}),c+=this._terminalSelector+" .xterm-fg-"+u.INVERTED_DEFAULT_COLOR+" { color: "+s.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+u.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=c},y.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},y.prototype._refreshRowElements=function(E,c){for(var C=this._rowElements.length;C<=c;C++){var x=document.createElement("div");this._rowContainer.appendChild(x),this._rowElements.push(x)}for(;this._rowElements.length>c;)this._rowContainer.removeChild(this._rowElements.pop())},y.prototype.onResize=function(E,c){this._refreshRowElements(E,c),this._updateDimensions()},y.prototype.onCharSizeChanged=function(){this._updateDimensions()},y.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},y.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},y.prototype.onSelectionChanged=function(E,c,C){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(E&&c){var x=E[1]-this._bufferService.buffer.ydisp,M=c[1]-this._bufferService.buffer.ydisp,k=Math.max(x,0),T=Math.min(M,this._bufferService.rows-1);if(!(k>=this._bufferService.rows||T<0)){var R=document.createDocumentFragment();if(C)R.appendChild(this._createSelectionElement(k,E[0],c[0],T-k+1));else{var P=x===k?E[0]:0,B=k===T?c[0]:this._bufferService.cols;R.appendChild(this._createSelectionElement(k,P,B));var W=T-k-1;if(R.appendChild(this._createSelectionElement(k+1,0,this._bufferService.cols,W)),k!==T){var z=M===T?c[0]:this._bufferService.cols;R.appendChild(this._createSelectionElement(T,0,z))}}this._selectionContainer.appendChild(R)}}},y.prototype._createSelectionElement=function(E,c,C,x){x===void 0&&(x=1);var M=document.createElement("div");return M.style.height=x*this.dimensions.actualCellHeight+"px",M.style.top=E*this.dimensions.actualCellHeight+"px",M.style.left=c*this.dimensions.actualCellWidth+"px",M.style.width=this.dimensions.actualCellWidth*(C-c)+"px",M},y.prototype.onCursorMove=function(){},y.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},y.prototype.clear=function(){for(var E=0,c=this._rowElements;E<c.length;E++)c[E].innerHTML=""},y.prototype.renderRows=function(E,c){for(var C=this._bufferService.buffer.ybase+this._bufferService.buffer.y,x=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),M=this._optionsService.options.cursorBlink,k=E;k<=c;k++){var T=this._rowElements[k];T.innerHTML="";var R=k+this._bufferService.buffer.ydisp,P=this._bufferService.buffer.lines.get(R),B=this._optionsService.options.cursorStyle;T.appendChild(this._rowFactory.createRow(P,R===C,B,x,M,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(y.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),y.prototype.registerCharacterJoiner=function(E){return-1},y.prototype.deregisterCharacterJoiner=function(E){return!1},y.prototype._onLinkHover=function(E){this._setCellUnderline(E.x1,E.x2,E.y1,E.y2,E.cols,!0)},y.prototype._onLinkLeave=function(E){this._setCellUnderline(E.x1,E.x2,E.y1,E.y2,E.cols,!1)},y.prototype._setCellUnderline=function(E,c,C,x,M,k){for(;E!==c||C!==x;){var T=this._rowElements[C];if(!T)return;var R=T.children[E];R&&(R.style.textDecoration=k?"underline":"none"),++E>=M&&(E=0,C++)}},y=a([f(6,r.ICharSizeService),f(7,l.IOptionsService),f(8,l.IBufferService)],y)}(o.Disposable);h.DomRenderer=_},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.DomRendererRowFactory=h.CURSOR_STYLE_UNDERLINE_CLASS=h.CURSOR_STYLE_BAR_CLASS=h.CURSOR_STYLE_BLOCK_CLASS=h.CURSOR_BLINK_CLASS=h.CURSOR_CLASS=h.UNDERLINE_CLASS=h.ITALIC_CLASS=h.DIM_CLASS=h.BOLD_CLASS=void 0;var m=I(9),g=I(3),a=I(4),f=I(10);h.BOLD_CLASS="xterm-bold",h.DIM_CLASS="xterm-dim",h.ITALIC_CLASS="xterm-italic",h.UNDERLINE_CLASS="xterm-underline",h.CURSOR_CLASS="xterm-cursor",h.CURSOR_BLINK_CLASS="xterm-cursor-blink",h.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",h.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",h.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var d=function(){function o(r,l,n){this._document=r,this._optionsService=l,this._colors=n,this._workCell=new a.CellData}return o.prototype.setColors=function(r){this._colors=r},o.prototype.createRow=function(r,l,n,s,e,i,_){for(var b=this._document.createDocumentFragment(),y=0,E=Math.min(r.length,_)-1;E>=0;E--)if(r.loadCell(E,this._workCell).getCode()!==g.NULL_CELL_CODE||l&&E===s){y=E+1;break}for(E=0;E<y;E++){r.loadCell(E,this._workCell);var c=this._workCell.getWidth();if(c!==0){var C=this._document.createElement("span");if(c>1&&(C.style.width=i*c+"px"),l&&E===s)switch(C.classList.add(h.CURSOR_CLASS),e&&C.classList.add(h.CURSOR_BLINK_CLASS),n){case"bar":C.classList.add(h.CURSOR_STYLE_BAR_CLASS);break;case"underline":C.classList.add(h.CURSOR_STYLE_UNDERLINE_CLASS);break;default:C.classList.add(h.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&C.classList.add(h.BOLD_CLASS),this._workCell.isItalic()&&C.classList.add(h.ITALIC_CLASS),this._workCell.isDim()&&C.classList.add(h.DIM_CLASS),this._workCell.isUnderline()&&C.classList.add(h.UNDERLINE_CLASS),this._workCell.isInvisible()?C.textContent=g.WHITESPACE_CELL_CHAR:C.textContent=this._workCell.getChars()||g.WHITESPACE_CELL_CHAR;var x=this._workCell.getFgColor(),M=this._workCell.getFgColorMode(),k=this._workCell.getBgColor(),T=this._workCell.getBgColorMode(),R=!!this._workCell.isInverse();if(R){var P=x;x=k,k=P;var B=M;M=T,T=B}switch(M){case 16777216:case 33554432:this._workCell.isBold()&&x<8&&this._optionsService.options.drawBoldTextInBrightColors&&(x+=8),this._applyMinimumContrast(C,this._colors.background,this._colors.ansi[x])||C.classList.add("xterm-fg-"+x);break;case 50331648:var W=f.rgba.toColor(x>>16&255,x>>8&255,255&x);this._applyMinimumContrast(C,this._colors.background,W)||this._addStyle(C,"color:#"+u(x.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(C,this._colors.background,this._colors.foreground)||R&&C.classList.add("xterm-fg-"+m.INVERTED_DEFAULT_COLOR)}switch(T){case 16777216:case 33554432:C.classList.add("xterm-bg-"+k);break;case 50331648:this._addStyle(C,"background-color:#"+u(k.toString(16),"0",6));break;case 0:default:R&&C.classList.add("xterm-bg-"+m.INVERTED_DEFAULT_COLOR)}b.appendChild(C)}}return b},o.prototype._applyMinimumContrast=function(r,l,n){if(this._optionsService.options.minimumContrastRatio===1)return!1;var s=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return s===void 0&&(s=f.color.ensureContrastRatio(l,n,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,s!=null?s:null)),!!s&&(this._addStyle(r,"color:"+s.css),!0)},o.prototype._addStyle=function(r,l){r.setAttribute("style",""+(r.getAttribute("style")||"")+l+";")},o}();function u(o,r,l){for(;o.length<l;)o=r+o;return o}h.DomRendererRowFactory=d},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.evaluateKeyboardEvent=void 0;var m=I(12),g={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};h.evaluateKeyboardEvent=function(a,f,d,u){var o={type:0,cancel:!1,key:void 0},r=(a.shiftKey?1:0)|(a.altKey?2:0)|(a.ctrlKey?4:0)|(a.metaKey?8:0);switch(a.keyCode){case 0:a.key==="UIKeyInputUpArrow"?o.key=f?m.C0.ESC+"OA":m.C0.ESC+"[A":a.key==="UIKeyInputLeftArrow"?o.key=f?m.C0.ESC+"OD":m.C0.ESC+"[D":a.key==="UIKeyInputRightArrow"?o.key=f?m.C0.ESC+"OC":m.C0.ESC+"[C":a.key==="UIKeyInputDownArrow"&&(o.key=f?m.C0.ESC+"OB":m.C0.ESC+"[B");break;case 8:if(a.shiftKey){o.key=m.C0.BS;break}if(a.altKey){o.key=m.C0.ESC+m.C0.DEL;break}o.key=m.C0.DEL;break;case 9:if(a.shiftKey){o.key=m.C0.ESC+"[Z";break}o.key=m.C0.HT,o.cancel=!0;break;case 13:o.key=a.altKey?m.C0.ESC+m.C0.CR:m.C0.CR,o.cancel=!0;break;case 27:o.key=m.C0.ESC,a.altKey&&(o.key=m.C0.ESC+m.C0.ESC),o.cancel=!0;break;case 37:if(a.metaKey)break;r?(o.key=m.C0.ESC+"[1;"+(r+1)+"D",o.key===m.C0.ESC+"[1;3D"&&(o.key=m.C0.ESC+(d?"b":"[1;5D"))):o.key=f?m.C0.ESC+"OD":m.C0.ESC+"[D";break;case 39:if(a.metaKey)break;r?(o.key=m.C0.ESC+"[1;"+(r+1)+"C",o.key===m.C0.ESC+"[1;3C"&&(o.key=m.C0.ESC+(d?"f":"[1;5C"))):o.key=f?m.C0.ESC+"OC":m.C0.ESC+"[C";break;case 38:if(a.metaKey)break;r?(o.key=m.C0.ESC+"[1;"+(r+1)+"A",d||o.key!==m.C0.ESC+"[1;3A"||(o.key=m.C0.ESC+"[1;5A")):o.key=f?m.C0.ESC+"OA":m.C0.ESC+"[A";break;case 40:if(a.metaKey)break;r?(o.key=m.C0.ESC+"[1;"+(r+1)+"B",d||o.key!==m.C0.ESC+"[1;3B"||(o.key=m.C0.ESC+"[1;5B")):o.key=f?m.C0.ESC+"OB":m.C0.ESC+"[B";break;case 45:a.shiftKey||a.ctrlKey||(o.key=m.C0.ESC+"[2~");break;case 46:o.key=r?m.C0.ESC+"[3;"+(r+1)+"~":m.C0.ESC+"[3~";break;case 36:o.key=r?m.C0.ESC+"[1;"+(r+1)+"H":f?m.C0.ESC+"OH":m.C0.ESC+"[H";break;case 35:o.key=r?m.C0.ESC+"[1;"+(r+1)+"F":f?m.C0.ESC+"OF":m.C0.ESC+"[F";break;case 33:a.shiftKey?o.type=2:o.key=m.C0.ESC+"[5~";break;case 34:a.shiftKey?o.type=3:o.key=m.C0.ESC+"[6~";break;case 112:o.key=r?m.C0.ESC+"[1;"+(r+1)+"P":m.C0.ESC+"OP";break;case 113:o.key=r?m.C0.ESC+"[1;"+(r+1)+"Q":m.C0.ESC+"OQ";break;case 114:o.key=r?m.C0.ESC+"[1;"+(r+1)+"R":m.C0.ESC+"OR";break;case 115:o.key=r?m.C0.ESC+"[1;"+(r+1)+"S":m.C0.ESC+"OS";break;case 116:o.key=r?m.C0.ESC+"[15;"+(r+1)+"~":m.C0.ESC+"[15~";break;case 117:o.key=r?m.C0.ESC+"[17;"+(r+1)+"~":m.C0.ESC+"[17~";break;case 118:o.key=r?m.C0.ESC+"[18;"+(r+1)+"~":m.C0.ESC+"[18~";break;case 119:o.key=r?m.C0.ESC+"[19;"+(r+1)+"~":m.C0.ESC+"[19~";break;case 120:o.key=r?m.C0.ESC+"[20;"+(r+1)+"~":m.C0.ESC+"[20~";break;case 121:o.key=r?m.C0.ESC+"[21;"+(r+1)+"~":m.C0.ESC+"[21~";break;case 122:o.key=r?m.C0.ESC+"[23;"+(r+1)+"~":m.C0.ESC+"[23~";break;case 123:o.key=r?m.C0.ESC+"[24;"+(r+1)+"~":m.C0.ESC+"[24~";break;default:if(!a.ctrlKey||a.shiftKey||a.altKey||a.metaKey)if(d&&!u||!a.altKey||a.metaKey)d&&!a.altKey&&!a.ctrlKey&&a.metaKey?a.keyCode===65&&(o.type=1):a.key&&!a.ctrlKey&&!a.altKey&&!a.metaKey&&a.keyCode>=48&&a.key.length===1?o.key=a.key:a.key&&a.ctrlKey&&a.key==="_"&&(o.key=m.C0.US);else{var l=g[a.keyCode],n=l&&l[a.shiftKey?1:0];if(n)o.key=m.C0.ESC+n;else if(a.keyCode>=65&&a.keyCode<=90){var s=a.ctrlKey?a.keyCode-64:a.keyCode+32;o.key=m.C0.ESC+String.fromCharCode(s)}}else a.keyCode>=65&&a.keyCode<=90?o.key=String.fromCharCode(a.keyCode-64):a.keyCode===32?o.key=m.C0.NUL:a.keyCode>=51&&a.keyCode<=55?o.key=String.fromCharCode(a.keyCode-51+27):a.keyCode===56?o.key=m.C0.DEL:a.keyCode===219?o.key=m.C0.ESC:a.keyCode===220?o.key=m.C0.FS:a.keyCode===221&&(o.key=m.C0.GS)}return o}},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(i,_){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(i,_)},function(i,_){function b(){this.constructor=i}m(i,_),i.prototype=_===null?Object.create(_):(b.prototype=_.prototype,new b)}),a=this&&this.__decorate||function(i,_,b,y){var E,c=arguments.length,C=c<3?_:y===null?y=Object.getOwnPropertyDescriptor(_,b):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(i,_,b,y);else for(var x=i.length-1;x>=0;x--)(E=i[x])&&(C=(c<3?E(C):c>3?E(_,b,C):E(_,b))||C);return c>3&&C&&Object.defineProperty(_,b,C),C},f=this&&this.__param||function(i,_){return function(b,y){_(b,y,i)}};Object.defineProperty(h,"__esModule",{value:!0}),h.RenderService=void 0;var d=I(31),u=I(0),o=I(2),r=I(32),l=I(7),n=I(1),s=I(5),e=function(i){function _(b,y,E,c,C,x){var M=i.call(this)||this;if(M._renderer=b,M._rowCount=y,M._isPaused=!1,M._needsFullRefresh=!1,M._isNextRenderRedrawOnly=!0,M._needsSelectionRefresh=!1,M._canvasWidth=0,M._canvasHeight=0,M._selectionState={start:void 0,end:void 0,columnSelectMode:!1},M._onDimensionsChange=new u.EventEmitter,M._onRender=new u.EventEmitter,M._onRefreshRequest=new u.EventEmitter,M.register({dispose:function(){return M._renderer.dispose()}}),M._renderDebouncer=new d.RenderDebouncer(function(T,R){return M._renderRows(T,R)}),M.register(M._renderDebouncer),M._screenDprMonitor=new r.ScreenDprMonitor,M._screenDprMonitor.setListener(function(){return M.onDevicePixelRatioChange()}),M.register(M._screenDprMonitor),M.register(x.onResize(function(T){return M._fullRefresh()})),M.register(c.onOptionChange(function(){return M._renderer.onOptionsChanged()})),M.register(C.onCharSizeChange(function(){return M.onCharSizeChanged()})),M._renderer.onRequestRedraw(function(T){return M.refreshRows(T.start,T.end,!0)}),M.register(l.addDisposableDomListener(window,"resize",function(){return M.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var k=new IntersectionObserver(function(T){return M._onIntersectionChange(T[T.length-1])},{threshold:0});k.observe(E),M.register({dispose:function(){return k.disconnect()}})}return M}return g(_,i),Object.defineProperty(_.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),_.prototype._onIntersectionChange=function(b){this._isPaused=b.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},_.prototype.refreshRows=function(b,y,E){E===void 0&&(E=!1),this._isPaused?this._needsFullRefresh=!0:(E||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(b,y,this._rowCount))},_.prototype._renderRows=function(b,y){this._renderer.renderRows(b,y),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:b,end:y}),this._isNextRenderRedrawOnly=!0},_.prototype.resize=function(b,y){this._rowCount=y,this._fireOnCanvasResize()},_.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},_.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},_.prototype.dispose=function(){i.prototype.dispose.call(this)},_.prototype.setRenderer=function(b){var y=this;this._renderer.dispose(),this._renderer=b,this._renderer.onRequestRedraw(function(E){return y.refreshRows(E.start,E.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},_.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},_.prototype.setColors=function(b){this._renderer.setColors(b),this._fullRefresh()},_.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},_.prototype.onResize=function(b,y){this._renderer.onResize(b,y),this._fullRefresh()},_.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},_.prototype.onBlur=function(){this._renderer.onBlur()},_.prototype.onFocus=function(){this._renderer.onFocus()},_.prototype.onSelectionChanged=function(b,y,E){this._selectionState.start=b,this._selectionState.end=y,this._selectionState.columnSelectMode=E,this._renderer.onSelectionChanged(b,y,E)},_.prototype.onCursorMove=function(){this._renderer.onCursorMove()},_.prototype.clear=function(){this._renderer.clear()},_.prototype.registerCharacterJoiner=function(b){return this._renderer.registerCharacterJoiner(b)},_.prototype.deregisterCharacterJoiner=function(b){return this._renderer.deregisterCharacterJoiner(b)},_=a([f(3,n.IOptionsService),f(4,s.ICharSizeService),f(5,n.IBufferService)],_)}(o.Disposable);h.RenderService=e},function(w,h,I){"use strict";var m=this&&this.__decorate||function(o,r,l,n){var s,e=arguments.length,i=e<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,l):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,r,l,n);else for(var _=o.length-1;_>=0;_--)(s=o[_])&&(i=(e<3?s(i):e>3?s(r,l,i):s(r,l))||i);return e>3&&i&&Object.defineProperty(r,l,i),i},g=this&&this.__param||function(o,r){return function(l,n){r(l,n,o)}};Object.defineProperty(h,"__esModule",{value:!0}),h.CharSizeService=void 0;var a=I(1),f=I(0),d=function(){function o(r,l,n){this._optionsService=n,this.width=0,this.height=0,this._onCharSizeChange=new f.EventEmitter,this._measureStrategy=new u(r,l,this._optionsService)}return Object.defineProperty(o.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),o.prototype.measure=function(){var r=this._measureStrategy.measure();r.width===this.width&&r.height===this.height||(this.width=r.width,this.height=r.height,this._onCharSizeChange.fire())},o=m([g(2,a.IOptionsService)],o)}();h.CharSizeService=d;var u=function(){function o(r,l,n){this._document=r,this._parentElement=l,this._optionsService=n,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return o.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var r=this._measureElement.getBoundingClientRect();return r.width!==0&&r.height!==0&&(this._result.width=r.width,this._result.height=Math.ceil(r.height)),this._result},o}()},function(w,h,I){"use strict";var m=this&&this.__decorate||function(u,o,r,l){var n,s=arguments.length,e=s<3?o:l===null?l=Object.getOwnPropertyDescriptor(o,r):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(u,o,r,l);else for(var i=u.length-1;i>=0;i--)(n=u[i])&&(e=(s<3?n(e):s>3?n(o,r,e):n(o,r))||e);return s>3&&e&&Object.defineProperty(o,r,e),e},g=this&&this.__param||function(u,o){return function(r,l){o(r,l,u)}};Object.defineProperty(h,"__esModule",{value:!0}),h.MouseService=void 0;var a=I(5),f=I(30),d=function(){function u(o,r){this._renderService=o,this._charSizeService=r}return u.prototype.getCoords=function(o,r,l,n,s){return f.getCoords(o,r,l,n,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,s)},u.prototype.getRawByteCoords=function(o,r,l,n){var s=this.getCoords(o,r,l,n);return f.getRawByteCoords(s)},u=m([g(0,a.IRenderService),g(1,a.ICharSizeService)],u)}();h.MouseService=d},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(n,s){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var _ in i)i.hasOwnProperty(_)&&(e[_]=i[_])})(n,s)},function(n,s){function e(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)}),a=this&&this.__decorate||function(n,s,e,i){var _,b=arguments.length,y=b<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(n,s,e,i);else for(var E=n.length-1;E>=0;E--)(_=n[E])&&(y=(b<3?_(y):b>3?_(s,e,y):_(s,e))||y);return b>3&&y&&Object.defineProperty(s,e,y),y},f=this&&this.__param||function(n,s){return function(e,i){s(e,i,n)}};Object.defineProperty(h,"__esModule",{value:!0}),h.Linkifier2=void 0;var d=I(1),u=I(0),o=I(2),r=I(7),l=function(n){function s(e){var i=n.call(this)||this;return i._bufferService=e,i._linkProviders=[],i._linkCacheDisposables=[],i._isMouseOut=!0,i._activeLine=-1,i._onShowLinkUnderline=i.register(new u.EventEmitter),i._onHideLinkUnderline=i.register(new u.EventEmitter),i.register(o.getDisposeArrayDisposable(i._linkCacheDisposables)),i}return g(s,n),Object.defineProperty(s.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),s.prototype.registerLinkProvider=function(e){var i=this;return this._linkProviders.push(e),{dispose:function(){var _=i._linkProviders.indexOf(e);_!==-1&&i._linkProviders.splice(_,1)}}},s.prototype.attachToDom=function(e,i,_){var b=this;this._element=e,this._mouseService=i,this._renderService=_,this.register(r.addDisposableDomListener(this._element,"mouseleave",function(){b._isMouseOut=!0,b._clearCurrentLink()})),this.register(r.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(r.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},s.prototype._onMouseMove=function(e){if(this._lastMouseEvent=e,this._element&&this._mouseService){var i=this._positionFromMouseEvent(e,this._element,this._mouseService);if(i){this._isMouseOut=!1;for(var _=e.composedPath(),b=0;b<_.length;b++){var y=_[b];if(y.classList.contains("xterm"))break;if(y.classList.contains("xterm-hover"))return}this._lastBufferCell&&i.x===this._lastBufferCell.x&&i.y===this._lastBufferCell.y||(this._onHover(i),this._lastBufferCell=i)}}},s.prototype._onHover=function(e){if(this._activeLine!==e.y)return this._clearCurrentLink(),void this._askForLink(e,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))},s.prototype._askForLink=function(e,i){var _=this;this._activeProviderReplies&&i||(this._activeProviderReplies=new Map,this._activeLine=e.y);var b=!1;this._linkProviders.forEach(function(y,E){var c;i?((c=_._activeProviderReplies)===null||c===void 0?void 0:c.get(E))&&(b=_._checkLinkProviderResult(E,e,b)):y.provideLinks(e.y,function(C){var x,M;if(!_._isMouseOut){var k=C==null?void 0:C.map(function(T){return{link:T}});(x=_._activeProviderReplies)===null||x===void 0||x.set(E,k),b=_._checkLinkProviderResult(E,e,b),((M=_._activeProviderReplies)===null||M===void 0?void 0:M.size)===_._linkProviders.length&&_._removeIntersectingLinks(e.y,_._activeProviderReplies)}})})},s.prototype._removeIntersectingLinks=function(e,i){for(var _=new Set,b=0;b<i.size;b++){var y=i.get(b);if(y)for(var E=0;E<y.length;E++)for(var c=y[E],C=c.link.range.start.y<e?0:c.link.range.start.x,x=c.link.range.end.y>e?this._bufferService.cols:c.link.range.end.x,M=C;M<=x;M++){if(_.has(M)){y.splice(E--,1);break}_.add(M)}}},s.prototype._checkLinkProviderResult=function(e,i,_){var b,y=this;if(!this._activeProviderReplies)return _;for(var E=this._activeProviderReplies.get(e),c=!1,C=0;C<e;C++)this._activeProviderReplies.has(C)&&!this._activeProviderReplies.get(C)||(c=!0);if(!c&&E){var x=E.find(function(k){return y._linkAtPosition(k.link,i)});x&&(_=!0,this._handleNewLink(x))}if(this._activeProviderReplies.size===this._linkProviders.length&&!_)for(C=0;C<this._activeProviderReplies.size;C++){var M=(b=this._activeProviderReplies.get(C))===null||b===void 0?void 0:b.find(function(k){return y._linkAtPosition(k.link,i)});if(M){_=!0,this._handleNewLink(M);break}}return _},s.prototype._onClick=function(e){if(this._element&&this._mouseService&&this._currentLink){var i=this._positionFromMouseEvent(e,this._element,this._mouseService);i&&this._linkAtPosition(this._currentLink.link,i)&&this._currentLink.link.activate(e,this._currentLink.link.text)}},s.prototype._clearCurrentLink=function(e,i){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!i||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=i)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,o.disposeArray(this._linkCacheDisposables))},s.prototype._handleNewLink=function(e){var i=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var _=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);_&&this._linkAtPosition(e.link,_)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0||e.link.decorations.underline,pointerCursor:e.link.decorations===void 0||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:function(){var b,y;return(y=(b=i._currentLink)===null||b===void 0?void 0:b.state)===null||y===void 0?void 0:y.decorations.pointerCursor},set:function(b){var y,E;((y=i._currentLink)===null||y===void 0?void 0:y.state)&&i._currentLink.state.decorations.pointerCursor!==b&&(i._currentLink.state.decorations.pointerCursor=b,i._currentLink.state.isHovered&&((E=i._element)===null||E===void 0||E.classList.toggle("xterm-cursor-pointer",b)))}},underline:{get:function(){var b,y;return(y=(b=i._currentLink)===null||b===void 0?void 0:b.state)===null||y===void 0?void 0:y.decorations.underline},set:function(b){var y,E,c;((y=i._currentLink)===null||y===void 0?void 0:y.state)&&((c=(E=i._currentLink)===null||E===void 0?void 0:E.state)===null||c===void 0?void 0:c.decorations.underline)!==b&&(i._currentLink.state.decorations.underline=b,i._currentLink.state.isHovered&&i._fireUnderlineEvent(e.link,b))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(b){var y=b.start===0?0:b.start+1+i._bufferService.buffer.ydisp;i._clearCurrentLink(y,b.end+1+i._bufferService.buffer.ydisp)})))}},s.prototype._linkHover=function(e,i,_){var b;((b=this._currentLink)===null||b===void 0?void 0:b.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(i,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),i.hover&&i.hover(_,i.text)},s.prototype._fireUnderlineEvent=function(e,i){var _=e.range,b=this._bufferService.buffer.ydisp,y=this._createLinkUnderlineEvent(_.start.x-1,_.start.y-b-1,_.end.x,_.end.y-b-1,void 0);(i?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(y)},s.prototype._linkLeave=function(e,i,_){var b;((b=this._currentLink)===null||b===void 0?void 0:b.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(i,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),i.leave&&i.leave(_,i.text)},s.prototype._linkAtPosition=function(e,i){var _=e.range.start.y===e.range.end.y,b=e.range.start.y<i.y,y=e.range.end.y>i.y;return(_&&e.range.start.x<=i.x&&e.range.end.x>=i.x||b&&e.range.end.x>=i.x||y&&e.range.start.x<=i.x||b&&y)&&e.range.start.y<=i.y&&e.range.end.y>=i.y},s.prototype._positionFromMouseEvent=function(e,i,_){var b=_.getCoords(e,i,this._bufferService.cols,this._bufferService.rows);if(b)return{x:b[0],y:b[1]+this._bufferService.buffer.ydisp}},s.prototype._createLinkUnderlineEvent=function(e,i,_,b,y){return{x1:e,y1:i,x2:_,y2:b,cols:this._bufferService.cols,fg:y}},s=a([f(0,d.IBufferService)],s)}(o.Disposable);h.Linkifier2=l},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.CoreBrowserService=void 0;var m=function(){function g(a){this._textarea=a}return Object.defineProperty(g.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),g}();h.CoreBrowserService=m},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(C,x){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,k){M.__proto__=k}||function(M,k){for(var T in k)k.hasOwnProperty(T)&&(M[T]=k[T])})(C,x)},function(C,x){function M(){this.constructor=C}m(C,x),C.prototype=x===null?Object.create(x):(M.prototype=x.prototype,new M)});Object.defineProperty(h,"__esModule",{value:!0}),h.CoreTerminal=void 0;var a=I(2),f=I(1),d=I(66),u=I(67),o=I(68),r=I(74),l=I(75),n=I(0),s=I(76),e=I(77),i=I(78),_=I(80),b=I(81),y=I(19),E=I(82),c=function(C){function x(M){var k=C.call(this)||this;return k._onBinary=new n.EventEmitter,k._onData=new n.EventEmitter,k._onLineFeed=new n.EventEmitter,k._onResize=new n.EventEmitter,k._onScroll=new n.EventEmitter,k._instantiationService=new d.InstantiationService,k.optionsService=new r.OptionsService(M),k._instantiationService.setService(f.IOptionsService,k.optionsService),k._bufferService=k.register(k._instantiationService.createInstance(o.BufferService)),k._instantiationService.setService(f.IBufferService,k._bufferService),k._logService=k._instantiationService.createInstance(u.LogService),k._instantiationService.setService(f.ILogService,k._logService),k._coreService=k.register(k._instantiationService.createInstance(l.CoreService,function(){return k.scrollToBottom()})),k._instantiationService.setService(f.ICoreService,k._coreService),k._coreMouseService=k._instantiationService.createInstance(s.CoreMouseService),k._instantiationService.setService(f.ICoreMouseService,k._coreMouseService),k._dirtyRowService=k._instantiationService.createInstance(e.DirtyRowService),k._instantiationService.setService(f.IDirtyRowService,k._dirtyRowService),k.unicodeService=k._instantiationService.createInstance(i.UnicodeService),k._instantiationService.setService(f.IUnicodeService,k.unicodeService),k._charsetService=k._instantiationService.createInstance(_.CharsetService),k._instantiationService.setService(f.ICharsetService,k._charsetService),k._inputHandler=new y.InputHandler(k._bufferService,k._charsetService,k._coreService,k._dirtyRowService,k._logService,k.optionsService,k._coreMouseService,k.unicodeService),k.register(n.forwardEvent(k._inputHandler.onLineFeed,k._onLineFeed)),k.register(k._inputHandler),k.register(n.forwardEvent(k._bufferService.onResize,k._onResize)),k.register(n.forwardEvent(k._coreService.onData,k._onData)),k.register(n.forwardEvent(k._coreService.onBinary,k._onBinary)),k.register(k.optionsService.onOptionChange(function(T){return k._updateOptions(T)})),k._writeBuffer=new E.WriteBuffer(function(T){return k._inputHandler.parse(T)}),k}return g(x,C),Object.defineProperty(x.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){var M;this._isDisposed||(C.prototype.dispose.call(this),(M=this._windowsMode)===null||M===void 0||M.dispose(),this._windowsMode=void 0)},x.prototype.write=function(M,k){this._writeBuffer.write(M,k)},x.prototype.writeSync=function(M){this._writeBuffer.writeSync(M)},x.prototype.resize=function(M,k){isNaN(M)||isNaN(k)||(M=Math.max(M,o.MINIMUM_COLS),k=Math.max(k,o.MINIMUM_ROWS),this._bufferService.resize(M,k))},x.prototype.scroll=function(M,k){k===void 0&&(k=!1);var T,R=this._bufferService.buffer;(T=this._cachedBlankLine)&&T.length===this.cols&&T.getFg(0)===M.fg&&T.getBg(0)===M.bg||(T=R.getBlankLine(M,k),this._cachedBlankLine=T),T.isWrapped=k;var P=R.ybase+R.scrollTop,B=R.ybase+R.scrollBottom;if(R.scrollTop===0){var W=R.lines.isFull;B===R.lines.length-1?W?R.lines.recycle().copyFrom(T):R.lines.push(T.clone()):R.lines.splice(B+1,0,T.clone()),W?this._bufferService.isUserScrolling&&(R.ydisp=Math.max(R.ydisp-1,0)):(R.ybase++,this._bufferService.isUserScrolling||R.ydisp++)}else{var z=B-P+1;R.lines.shiftElements(P+1,z-1,-1),R.lines.set(B,T.clone())}this._bufferService.isUserScrolling||(R.ydisp=R.ybase),this._dirtyRowService.markRangeDirty(R.scrollTop,R.scrollBottom),this._onScroll.fire(R.ydisp)},x.prototype.scrollLines=function(M,k){var T=this._bufferService.buffer;if(M<0){if(T.ydisp===0)return;this._bufferService.isUserScrolling=!0}else M+T.ydisp>=T.ybase&&(this._bufferService.isUserScrolling=!1);var R=T.ydisp;T.ydisp=Math.max(Math.min(T.ydisp+M,T.ybase),0),R!==T.ydisp&&(k||this._onScroll.fire(T.ydisp))},x.prototype.scrollPages=function(M){this.scrollLines(M*(this.rows-1))},x.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},x.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},x.prototype.scrollToLine=function(M){var k=M-this._bufferService.buffer.ydisp;k!==0&&this.scrollLines(k)},x.prototype.addEscHandler=function(M,k){return this._inputHandler.addEscHandler(M,k)},x.prototype.addDcsHandler=function(M,k){return this._inputHandler.addDcsHandler(M,k)},x.prototype.addCsiHandler=function(M,k){return this._inputHandler.addCsiHandler(M,k)},x.prototype.addOscHandler=function(M,k){return this._inputHandler.addOscHandler(M,k)},x.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},x.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},x.prototype._updateOptions=function(M){var k;switch(M){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((k=this._windowsMode)===null||k===void 0||k.dispose(),this._windowsMode=void 0)}},x.prototype._enableWindowsMode=function(){var M=this;if(!this._windowsMode){var k=[];k.push(this.onLineFeed(b.updateWindowsModeWrappedState.bind(null,this._bufferService))),k.push(this.addCsiHandler({final:"H"},function(){return b.updateWindowsModeWrappedState(M._bufferService),!1})),this._windowsMode={dispose:function(){for(var T=0,R=k;T<R.length;T++)R[T].dispose()}}}},x}(a.Disposable);h.CoreTerminal=c},function(w,h,I){"use strict";var m=this&&this.__spreadArrays||function(){for(var u=0,o=0,r=arguments.length;o<r;o++)u+=arguments[o].length;var l=Array(u),n=0;for(o=0;o<r;o++)for(var s=arguments[o],e=0,i=s.length;e<i;e++,n++)l[n]=s[e];return l};Object.defineProperty(h,"__esModule",{value:!0}),h.InstantiationService=h.ServiceCollection=void 0;var g=I(1),a=I(14),f=function(){function u(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];this._entries=new Map;for(var l=0,n=o;l<n.length;l++){var s=n[l],e=s[0],i=s[1];this.set(e,i)}}return u.prototype.set=function(o,r){var l=this._entries.get(o);return this._entries.set(o,r),l},u.prototype.forEach=function(o){this._entries.forEach(function(r,l){return o(l,r)})},u.prototype.has=function(o){return this._entries.has(o)},u.prototype.get=function(o){return this._entries.get(o)},u}();h.ServiceCollection=f;var d=function(){function u(){this._services=new f,this._services.set(g.IInstantiationService,this)}return u.prototype.setService=function(o,r){this._services.set(o,r)},u.prototype.getService=function(o){return this._services.get(o)},u.prototype.createInstance=function(o){for(var r=[],l=1;l<arguments.length;l++)r[l-1]=arguments[l];for(var n=a.getServiceDependencies(o).sort(function(E,c){return E.index-c.index}),s=[],e=0,i=n;e<i.length;e++){var _=i[e],b=this._services.get(_.id);if(!b)throw new Error("[createInstance] "+o.name+" depends on UNKNOWN service "+_.id+".");s.push(b)}var y=n.length>0?n[0].index:r.length;if(r.length!==y)throw new Error("[createInstance] First service dependency of "+o.name+" at position "+(y+1)+" conflicts with "+r.length+" static arguments");return new(o.bind.apply(o,m([void 0],m(r,s))))},u}();h.InstantiationService=d},function(w,h,I){"use strict";var m=this&&this.__decorate||function(r,l,n,s){var e,i=arguments.length,_=i<3?l:s===null?s=Object.getOwnPropertyDescriptor(l,n):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(r,l,n,s);else for(var b=r.length-1;b>=0;b--)(e=r[b])&&(_=(i<3?e(_):i>3?e(l,n,_):e(l,n))||_);return i>3&&_&&Object.defineProperty(l,n,_),_},g=this&&this.__param||function(r,l){return function(n,s){l(n,s,r)}},a=this&&this.__spreadArrays||function(){for(var r=0,l=0,n=arguments.length;l<n;l++)r+=arguments[l].length;var s=Array(r),e=0;for(l=0;l<n;l++)for(var i=arguments[l],_=0,b=i.length;_<b;_++,e++)s[e]=i[_];return s};Object.defineProperty(h,"__esModule",{value:!0}),h.LogService=h.LogLevel=void 0;var f,d=I(1);!function(r){r[r.DEBUG=0]="DEBUG",r[r.INFO=1]="INFO",r[r.WARN=2]="WARN",r[r.ERROR=3]="ERROR",r[r.OFF=4]="OFF"}(f=h.LogLevel||(h.LogLevel={}));var u={debug:f.DEBUG,info:f.INFO,warn:f.WARN,error:f.ERROR,off:f.OFF},o=function(){function r(l){var n=this;this._optionsService=l,this._updateLogLevel(),this._optionsService.onOptionChange(function(s){s==="logLevel"&&n._updateLogLevel()})}return r.prototype._updateLogLevel=function(){this._logLevel=u[this._optionsService.options.logLevel]},r.prototype._evalLazyOptionalParams=function(l){for(var n=0;n<l.length;n++)typeof l[n]=="function"&&(l[n]=l[n]())},r.prototype._log=function(l,n,s){this._evalLazyOptionalParams(s),l.call.apply(l,a([console,"xterm.js: "+n],s))},r.prototype.debug=function(l){for(var n=[],s=1;s<arguments.length;s++)n[s-1]=arguments[s];this._logLevel<=f.DEBUG&&this._log(console.log,l,n)},r.prototype.info=function(l){for(var n=[],s=1;s<arguments.length;s++)n[s-1]=arguments[s];this._logLevel<=f.INFO&&this._log(console.info,l,n)},r.prototype.warn=function(l){for(var n=[],s=1;s<arguments.length;s++)n[s-1]=arguments[s];this._logLevel<=f.WARN&&this._log(console.warn,l,n)},r.prototype.error=function(l){for(var n=[],s=1;s<arguments.length;s++)n[s-1]=arguments[s];this._logLevel<=f.ERROR&&this._log(console.error,l,n)},r=m([g(0,d.IOptionsService)],r)}();h.LogService=o},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(n,s){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var _ in i)i.hasOwnProperty(_)&&(e[_]=i[_])})(n,s)},function(n,s){function e(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(e.prototype=s.prototype,new e)}),a=this&&this.__decorate||function(n,s,e,i){var _,b=arguments.length,y=b<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(n,s,e,i);else for(var E=n.length-1;E>=0;E--)(_=n[E])&&(y=(b<3?_(y):b>3?_(s,e,y):_(s,e))||y);return b>3&&y&&Object.defineProperty(s,e,y),y},f=this&&this.__param||function(n,s){return function(e,i){s(e,i,n)}};Object.defineProperty(h,"__esModule",{value:!0}),h.BufferService=h.MINIMUM_ROWS=h.MINIMUM_COLS=void 0;var d=I(1),u=I(69),o=I(0),r=I(2);h.MINIMUM_COLS=2,h.MINIMUM_ROWS=1;var l=function(n){function s(e){var i=n.call(this)||this;return i._optionsService=e,i.isUserScrolling=!1,i._onResize=new o.EventEmitter,i.cols=Math.max(e.options.cols,h.MINIMUM_COLS),i.rows=Math.max(e.options.rows,h.MINIMUM_ROWS),i.buffers=new u.BufferSet(e,i),i}return g(s,n),Object.defineProperty(s.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),s.prototype.dispose=function(){n.prototype.dispose.call(this),this.buffers.dispose()},s.prototype.resize=function(e,i){this.cols=e,this.rows=i,this.buffers.resize(e,i),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:e,rows:i})},s.prototype.reset=function(){this.buffers.dispose(),this.buffers=new u.BufferSet(this._optionsService,this),this.isUserScrolling=!1},s=a([f(0,d.IOptionsService)],s)}(r.Disposable);h.BufferService=l},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(u,o){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,l){r.__proto__=l}||function(r,l){for(var n in l)l.hasOwnProperty(n)&&(r[n]=l[n])})(u,o)},function(u,o){function r(){this.constructor=u}m(u,o),u.prototype=o===null?Object.create(o):(r.prototype=o.prototype,new r)});Object.defineProperty(h,"__esModule",{value:!0}),h.BufferSet=void 0;var a=I(70),f=I(0),d=function(u){function o(r,l){var n=u.call(this)||this;return n._onBufferActivate=n.register(new f.EventEmitter),n._normal=new a.Buffer(!0,r,l),n._normal.fillViewportRows(),n._alt=new a.Buffer(!1,r,l),n._activeBuffer=n._normal,n.setupTabStops(),n}return g(o,u),Object.defineProperty(o.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),o.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},o.prototype.activateAltBuffer=function(r){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(r),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},o.prototype.resize=function(r,l){this._normal.resize(r,l),this._alt.resize(r,l)},o.prototype.setupTabStops=function(r){this._normal.setupTabStops(r),this._alt.setupTabStops(r)},o}(I(2).Disposable);h.BufferSet=d},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.BufferStringIterator=h.Buffer=h.MAX_BUFFER_SIZE=void 0;var m=I(71),g=I(16),a=I(4),f=I(3),d=I(72),u=I(73),o=I(20),r=I(6);h.MAX_BUFFER_SIZE=4294967295;var l=function(){function s(e,i,_){this._hasScrollback=e,this._optionsService=i,this._bufferService=_,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=g.DEFAULT_ATTR_DATA.clone(),this.savedCharset=o.DEFAULT_CHARSET,this.markers=[],this._nullCell=a.CellData.fromCharData([0,f.NULL_CELL_CHAR,f.NULL_CELL_WIDTH,f.NULL_CELL_CODE]),this._whitespaceCell=a.CellData.fromCharData([0,f.WHITESPACE_CELL_CHAR,f.WHITESPACE_CELL_WIDTH,f.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new m.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return s.prototype.getNullCell=function(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new r.ExtendedAttrs),this._nullCell},s.prototype.getWhitespaceCell=function(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new r.ExtendedAttrs),this._whitespaceCell},s.prototype.getBlankLine=function(e,i){return new g.BufferLine(this._bufferService.cols,this.getNullCell(e),i)},Object.defineProperty(s.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&e<this._rows},enumerable:!1,configurable:!0}),s.prototype._getCorrectBufferLength=function(e){if(!this._hasScrollback)return e;var i=e+this._optionsService.options.scrollback;return i>h.MAX_BUFFER_SIZE?h.MAX_BUFFER_SIZE:i},s.prototype.fillViewportRows=function(e){if(this.lines.length===0){e===void 0&&(e=g.DEFAULT_ATTR_DATA);for(var i=this._rows;i--;)this.lines.push(this.getBlankLine(e))}},s.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new m.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},s.prototype.resize=function(e,i){var _=this.getNullCell(g.DEFAULT_ATTR_DATA),b=this._getCorrectBufferLength(i);if(b>this.lines.maxLength&&(this.lines.maxLength=b),this.lines.length>0){if(this._cols<e)for(var y=0;y<this.lines.length;y++)this.lines.get(y).resize(e,_);var E=0;if(this._rows<i)for(var c=this._rows;c<i;c++)this.lines.length<i+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new g.BufferLine(e,_)):this.ybase>0&&this.lines.length<=this.ybase+this.y+E+1?(this.ybase--,E++,this.ydisp>0&&this.ydisp--):this.lines.push(new g.BufferLine(e,_)));else for(c=this._rows;c>i;c--)this.lines.length>i+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(b<this.lines.maxLength){var C=this.lines.length-b;C>0&&(this.lines.trimStart(C),this.ybase=Math.max(this.ybase-C,0),this.ydisp=Math.max(this.ydisp-C,0),this.savedY=Math.max(this.savedY-C,0)),this.lines.maxLength=b}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,i-1),E&&(this.y+=E),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=i-1,this._isReflowEnabled&&(this._reflow(e,i),this._cols>e))for(y=0;y<this.lines.length;y++)this.lines.get(y).resize(e,_);this._cols=e,this._rows=i},Object.defineProperty(s.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),s.prototype._reflow=function(e,i){this._cols!==e&&(e>this._cols?this._reflowLarger(e,i):this._reflowSmaller(e,i))},s.prototype._reflowLarger=function(e,i){var _=d.reflowLargerGetLinesToRemove(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(g.DEFAULT_ATTR_DATA));if(_.length>0){var b=d.reflowLargerCreateNewLayout(this.lines,_);d.reflowLargerApplyNewLayout(this.lines,b.layout),this._reflowLargerAdjustViewport(e,i,b.countRemoved)}},s.prototype._reflowLargerAdjustViewport=function(e,i,_){for(var b=this.getNullCell(g.DEFAULT_ATTR_DATA),y=_;y-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<i&&this.lines.push(new g.BufferLine(e,b))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-_,0)},s.prototype._reflowSmaller=function(e,i){for(var _=this.getNullCell(g.DEFAULT_ATTR_DATA),b=[],y=0,E=this.lines.length-1;E>=0;E--){var c=this.lines.get(E);if(!(!c||!c.isWrapped&&c.getTrimmedLength()<=e)){for(var C=[c];c.isWrapped&&E>0;)c=this.lines.get(--E),C.unshift(c);var x=this.ybase+this.y;if(!(x>=E&&x<E+C.length)){var M=C[C.length-1].getTrimmedLength(),k=d.reflowSmallerGetNewLineLengths(C,this._cols,e),T=k.length-C.length,R=void 0;R=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+T):Math.max(0,this.lines.length-this.lines.maxLength+T);for(var P=[],B=0;B<T;B++){var W=this.getBlankLine(g.DEFAULT_ATTR_DATA,!0);P.push(W)}P.length>0&&(b.push({start:E+C.length+y,newLines:P}),y+=P.length),C.push.apply(C,P);var z=k.length-1,H=k[z];H===0&&(H=k[--z]);for(var ee=C.length-T-1,G=M;ee>=0;){var U=Math.min(G,H);if(C[z].copyCellsFrom(C[ee],G-U,H-U,U,!0),(H-=U)===0&&(H=k[--z]),(G-=U)===0){ee--;var K=Math.max(ee,0);G=d.getWrappedLineTrimmedLength(C,K,this._cols)}}for(B=0;B<C.length;B++)k[B]<e&&C[B].setCell(k[B],_);for(var L=T-R;L-- >0;)this.ybase===0?this.y<i-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+y)-i&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+T,this.ybase+i-1)}}}if(b.length>0){var D=[],j=[];for(B=0;B<this.lines.length;B++)j.push(this.lines.get(B));var Z=this.lines.length,ie=Z-1,pe=0,Ee=b[pe];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+y);var De=0;for(B=Math.min(this.lines.maxLength-1,Z+y-1);B>=0;B--)if(Ee&&Ee.start>ie+De){for(var q=Ee.newLines.length-1;q>=0;q--)this.lines.set(B--,Ee.newLines[q]);B++,D.push({index:ie+1,amount:Ee.newLines.length}),De+=Ee.newLines.length,Ee=b[++pe]}else this.lines.set(B,j[ie--]);var be=0;for(B=D.length-1;B>=0;B--)D[B].index+=be,this.lines.onInsertEmitter.fire(D[B]),be+=D[B].amount;var ye=Math.max(0,Z+y-this.lines.maxLength);ye>0&&this.lines.onTrimEmitter.fire(ye)}},s.prototype.stringIndexToBufferIndex=function(e,i,_){for(_===void 0&&(_=!1);i;){var b=this.lines.get(e);if(!b)return[-1,-1];for(var y=_?b.getTrimmedLength():b.length,E=0;E<y;++E)if(b.get(E)[f.CHAR_DATA_WIDTH_INDEX]&&(i-=b.get(E)[f.CHAR_DATA_CHAR_INDEX].length||1),i<0)return[e,E];e++}return[e,0]},s.prototype.translateBufferLineToString=function(e,i,_,b){_===void 0&&(_=0);var y=this.lines.get(e);return y?y.translateToString(i,_,b):""},s.prototype.getWrappedRangeForLine=function(e){for(var i=e,_=e;i>0&&this.lines.get(i).isWrapped;)i--;for(;_+1<this.lines.length&&this.lines.get(_+1).isWrapped;)_++;return{first:i,last:_}},s.prototype.setupTabStops=function(e){for(e!=null?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._cols;e+=this._optionsService.options.tabStopWidth)this.tabs[e]=!0},s.prototype.prevStop=function(e){for(e==null&&(e=this.x);!this.tabs[--e]&&e>0;);return e>=this._cols?this._cols-1:e<0?0:e},s.prototype.nextStop=function(e){for(e==null&&(e=this.x);!this.tabs[++e]&&e<this._cols;);return e>=this._cols?this._cols-1:e<0?0:e},s.prototype.addMarker=function(e){var i=this,_=new u.Marker(e);return this.markers.push(_),_.register(this.lines.onTrim(function(b){_.line-=b,_.line<0&&_.dispose()})),_.register(this.lines.onInsert(function(b){_.line>=b.index&&(_.line+=b.amount)})),_.register(this.lines.onDelete(function(b){_.line>=b.index&&_.line<b.index+b.amount&&_.dispose(),_.line>b.index&&(_.line-=b.amount)})),_.register(_.onDispose(function(){return i._removeMarker(_)})),_},s.prototype._removeMarker=function(e){this.markers.splice(this.markers.indexOf(e),1)},s.prototype.iterator=function(e,i,_,b,y){return new n(this,e,i,_,b,y)},s}();h.Buffer=l;var n=function(){function s(e,i,_,b,y,E){_===void 0&&(_=0),b===void 0&&(b=e.lines.length),y===void 0&&(y=0),E===void 0&&(E=0),this._buffer=e,this._trimRight=i,this._startIndex=_,this._endIndex=b,this._startOverscan=y,this._endOverscan=E,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return s.prototype.hasNext=function(){return this._current<this._endIndex},s.prototype.next=function(){var e=this._buffer.getWrappedRangeForLine(this._current);e.first<this._startIndex-this._startOverscan&&(e.first=this._startIndex-this._startOverscan),e.last>this._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var i="",_=e.first;_<=e.last;++_)i+=this._buffer.translateBufferLineToString(_,this._trimRight);return this._current=e.last+1,{range:e,content:i}},s}();h.BufferStringIterator=n},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.CircularList=void 0;var m=I(0),g=function(){function a(f){this._maxLength=f,this.onDeleteEmitter=new m.EventEmitter,this.onInsertEmitter=new m.EventEmitter,this.onTrimEmitter=new m.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(a.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"maxLength",{get:function(){return this._maxLength},set:function(f){if(this._maxLength!==f){for(var d=new Array(f),u=0;u<Math.min(f,this.length);u++)d[u]=this._array[this._getCyclicIndex(u)];this._array=d,this._maxLength=f,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"length",{get:function(){return this._length},set:function(f){if(f>this._length)for(var d=this._length;d<f;d++)this._array[d]=void 0;this._length=f},enumerable:!1,configurable:!0}),a.prototype.get=function(f){return this._array[this._getCyclicIndex(f)]},a.prototype.set=function(f,d){this._array[this._getCyclicIndex(f)]=d},a.prototype.push=function(f){this._array[this._getCyclicIndex(this._length)]=f,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},a.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(a.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),a.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},a.prototype.splice=function(f,d){for(var u=[],o=2;o<arguments.length;o++)u[o-2]=arguments[o];if(d){for(var r=f;r<this._length-d;r++)this._array[this._getCyclicIndex(r)]=this._array[this._getCyclicIndex(r+d)];this._length-=d}for(r=this._length-1;r>=f;r--)this._array[this._getCyclicIndex(r+u.length)]=this._array[this._getCyclicIndex(r)];for(r=0;r<u.length;r++)this._array[this._getCyclicIndex(f+r)]=u[r];if(this._length+u.length>this._maxLength){var l=this._length+u.length-this._maxLength;this._startIndex+=l,this._length=this._maxLength,this.onTrimEmitter.fire(l)}else this._length+=u.length},a.prototype.trimStart=function(f){f>this._length&&(f=this._length),this._startIndex+=f,this._length-=f,this.onTrimEmitter.fire(f)},a.prototype.shiftElements=function(f,d,u){if(!(d<=0)){if(f<0||f>=this._length)throw new Error("start argument out of range");if(f+u<0)throw new Error("Cannot shift elements in list beyond index 0");if(u>0){for(var o=d-1;o>=0;o--)this.set(f+o+u,this.get(f+o));var r=f+d+u-this._length;if(r>0)for(this._length+=r;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(o=0;o<d;o++)this.set(f+o+u,this.get(f+o))}},a.prototype._getCyclicIndex=function(f){return(this._startIndex+f)%this._maxLength},a}();h.CircularList=g},function(w,h,I){"use strict";function m(g,a,f){if(a===g.length-1)return g[a].getTrimmedLength();var d=!g[a].hasContent(f-1)&&g[a].getWidth(f-1)===1,u=g[a+1].getWidth(0)===2;return d&&u?f-1:f}Object.defineProperty(h,"__esModule",{value:!0}),h.getWrappedLineTrimmedLength=h.reflowSmallerGetNewLineLengths=h.reflowLargerApplyNewLayout=h.reflowLargerCreateNewLayout=h.reflowLargerGetLinesToRemove=void 0,h.reflowLargerGetLinesToRemove=function(g,a,f,d,u){for(var o=[],r=0;r<g.length-1;r++){var l=r,n=g.get(++l);if(n.isWrapped){for(var s=[g.get(r)];l<g.length&&n.isWrapped;)s.push(n),n=g.get(++l);if(d>=r&&d<l)r+=s.length-1;else{for(var e=0,i=m(s,e,a),_=1,b=0;_<s.length;){var y=m(s,_,a),E=y-b,c=f-i,C=Math.min(E,c);s[e].copyCellsFrom(s[_],b,i,C,!1),(i+=C)===f&&(e++,i=0),(b+=C)===y&&(_++,b=0),i===0&&e!==0&&s[e-1].getWidth(f-1)===2&&(s[e].copyCellsFrom(s[e-1],f-1,i++,1,!1),s[e-1].setCell(f-1,u))}s[e].replaceCells(i,f,u);for(var x=0,M=s.length-1;M>0&&(M>e||s[M].getTrimmedLength()===0);M--)x++;x>0&&(o.push(r+s.length-x),o.push(x)),r+=s.length-1}}}return o},h.reflowLargerCreateNewLayout=function(g,a){for(var f=[],d=0,u=a[d],o=0,r=0;r<g.length;r++)if(u===r){var l=a[++d];g.onDeleteEmitter.fire({index:r-o,amount:l}),r+=l-1,o+=l,u=a[++d]}else f.push(r);return{layout:f,countRemoved:o}},h.reflowLargerApplyNewLayout=function(g,a){for(var f=[],d=0;d<a.length;d++)f.push(g.get(a[d]));for(d=0;d<f.length;d++)g.set(d,f[d]);g.length=a.length},h.reflowSmallerGetNewLineLengths=function(g,a,f){for(var d=[],u=g.map(function(i,_){return m(g,_,a)}).reduce(function(i,_){return i+_}),o=0,r=0,l=0;l<u;){if(u-l<f){d.push(u-l);break}o+=f;var n=m(g,r,a);o>n&&(o-=n,r++);var s=g[r].getWidth(o-1)===2;s&&o--;var e=s?f-1:f;d.push(e),l+=e}return d},h.getWrappedLineTrimmedLength=m},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(d,u){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var l in r)r.hasOwnProperty(l)&&(o[l]=r[l])})(d,u)},function(d,u){function o(){this.constructor=d}m(d,u),d.prototype=u===null?Object.create(u):(o.prototype=u.prototype,new o)});Object.defineProperty(h,"__esModule",{value:!0}),h.Marker=void 0;var a=I(0),f=function(d){function u(o){var r=d.call(this)||this;return r.line=o,r._id=u._nextId++,r.isDisposed=!1,r._onDispose=new a.EventEmitter,r}return g(u,d),Object.defineProperty(u.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),u.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},u._nextId=1,u}(I(2).Disposable);h.Marker=f},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.OptionsService=h.DEFAULT_OPTIONS=h.DEFAULT_BELL_SOUND=void 0;var m=I(0),g=I(11),a=I(33);h.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",h.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:h.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:g.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var f=["cols","rows"],d=function(){function u(o){this._onOptionChange=new m.EventEmitter,this.options=a.clone(h.DEFAULT_OPTIONS);for(var r=0,l=Object.keys(o);r<l.length;r++){var n=l[r];if(n in this.options){var s=o[n];this.options[n]=s}}}return Object.defineProperty(u.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),u.prototype.setOption=function(o,r){if(!(o in h.DEFAULT_OPTIONS))throw new Error('No option with key "'+o+'"');if(f.indexOf(o)!==-1)throw new Error('Option "'+o+'" can only be set in the constructor');this.options[o]!==r&&(r=this._sanitizeAndValidateOption(o,r),this.options[o]!==r&&(this.options[o]=r,this._onOptionChange.fire(o)))},u.prototype._sanitizeAndValidateOption=function(o,r){switch(o){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":r||(r=h.DEFAULT_OPTIONS[o]);break;case"cursorWidth":r=Math.floor(r);case"lineHeight":case"tabStopWidth":if(r<1)throw new Error(o+" cannot be less than 1, value: "+r);break;case"minimumContrastRatio":r=Math.max(1,Math.min(21,Math.round(10*r)/10));break;case"scrollback":if((r=Math.min(r,4294967295))<0)throw new Error(o+" cannot be less than 0, value: "+r);break;case"fastScrollSensitivity":case"scrollSensitivity":if(r<=0)throw new Error(o+" cannot be less than or equal to 0, value: "+r)}return r},u.prototype.getOption=function(o){if(!(o in h.DEFAULT_OPTIONS))throw new Error('No option with key "'+o+'"');return this.options[o]},u}();h.OptionsService=d},function(w,h,I){"use strict";var m,g=this&&this.__extends||(m=function(e,i){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,b){_.__proto__=b}||function(_,b){for(var y in b)b.hasOwnProperty(y)&&(_[y]=b[y])})(e,i)},function(e,i){function _(){this.constructor=e}m(e,i),e.prototype=i===null?Object.create(i):(_.prototype=i.prototype,new _)}),a=this&&this.__decorate||function(e,i,_,b){var y,E=arguments.length,c=E<3?i:b===null?b=Object.getOwnPropertyDescriptor(i,_):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,i,_,b);else for(var C=e.length-1;C>=0;C--)(y=e[C])&&(c=(E<3?y(c):E>3?y(i,_,c):y(i,_))||c);return E>3&&c&&Object.defineProperty(i,_,c),c},f=this&&this.__param||function(e,i){return function(_,b){i(_,b,e)}};Object.defineProperty(h,"__esModule",{value:!0}),h.CoreService=void 0;var d=I(1),u=I(0),o=I(33),r=I(2),l=Object.freeze({insertMode:!1}),n=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),s=function(e){function i(_,b,y,E){var c=e.call(this)||this;return c._bufferService=b,c._logService=y,c._optionsService=E,c.isCursorInitialized=!1,c.isCursorHidden=!1,c._onData=c.register(new u.EventEmitter),c._onUserInput=c.register(new u.EventEmitter),c._onBinary=c.register(new u.EventEmitter),c._scrollToBottom=_,c.register({dispose:function(){return c._scrollToBottom=void 0}}),c.modes=o.clone(l),c.decPrivateModes=o.clone(n),c}return g(i,e),Object.defineProperty(i.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),i.prototype.reset=function(){this.modes=o.clone(l),this.decPrivateModes=o.clone(n)},i.prototype.triggerDataEvent=function(_,b){if(b===void 0&&(b=!1),!this._optionsService.options.disableStdin){var y=this._bufferService.buffer;y.ybase!==y.ydisp&&this._scrollToBottom(),b&&this._onUserInput.fire(),this._logService.debug('sending data "'+_+'"',function(){return _.split("").map(function(E){return E.charCodeAt(0)})}),this._onData.fire(_)}},i.prototype.triggerBinaryEvent=function(_){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+_+'"',function(){return _.split("").map(function(b){return b.charCodeAt(0)})}),this._onBinary.fire(_))},i=a([f(1,d.IBufferService),f(2,d.ILogService),f(3,d.IOptionsService)],i)}(r.Disposable);h.CoreService=s},function(w,h,I){"use strict";var m=this&&this.__decorate||function(n,s,e,i){var _,b=arguments.length,y=b<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,e):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(n,s,e,i);else for(var E=n.length-1;E>=0;E--)(_=n[E])&&(y=(b<3?_(y):b>3?_(s,e,y):_(s,e))||y);return b>3&&y&&Object.defineProperty(s,e,y),y},g=this&&this.__param||function(n,s){return function(e,i){s(e,i,n)}};Object.defineProperty(h,"__esModule",{value:!0}),h.CoreMouseService=void 0;var a=I(1),f=I(0),d={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(n){return n.button!==4&&n.action===1&&(n.ctrl=!1,n.alt=!1,n.shift=!1,!0)}},VT200:{events:19,restrict:function(n){return n.action!==32}},DRAG:{events:23,restrict:function(n){return n.action!==32||n.button!==3}},ANY:{events:31,restrict:function(n){return!0}}};function u(n,s){var e=(n.ctrl?16:0)|(n.shift?4:0)|(n.alt?8:0);return n.button===4?(e|=64,e|=n.action):(e|=3&n.button,4&n.button&&(e|=64),8&n.button&&(e|=128),n.action===32?e|=32:n.action!==0||s||(e|=3)),e}var o=String.fromCharCode,r={DEFAULT:function(n){var s=[u(n,!1)+32,n.col+32,n.row+32];return s[0]>255||s[1]>255||s[2]>255?"":""+o(s[0])+o(s[1])+o(s[2])},SGR:function(n){var s=n.action===0&&n.button!==4?"m":"M";return"[<"+u(n,!0)+";"+n.col+";"+n.row+s}},l=function(){function n(s,e){this._bufferService=s,this._coreService=e,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new f.EventEmitter,this._lastEvent=null;for(var i=0,_=Object.keys(d);i<_.length;i++){var b=_[i];this.addProtocol(b,d[b])}for(var y=0,E=Object.keys(r);y<E.length;y++){var c=E[y];this.addEncoding(c,r[c])}this.reset()}return n.prototype.addProtocol=function(s,e){this._protocols[s]=e},n.prototype.addEncoding=function(s,e){this._encodings[s]=e},Object.defineProperty(n.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(s){if(!this._protocols[s])throw new Error('unknown protocol "'+s+'"');this._activeProtocol=s,this._onProtocolChange.fire(this._protocols[s].events)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(s){if(!this._encodings[s])throw new Error('unknown encoding "'+s+'"');this._activeEncoding=s},enumerable:!1,configurable:!0}),n.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(n.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),n.prototype.triggerMouseEvent=function(s){if(s.col<0||s.col>=this._bufferService.cols||s.row<0||s.row>=this._bufferService.rows)return!1;if(s.button===4&&s.action===32)return!1;if(s.button===3&&s.action!==32)return!1;if(s.button!==4&&(s.action===2||s.action===3))return!1;if(s.col++,s.row++,s.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,s))return!1;if(!this._protocols[this._activeProtocol].restrict(s))return!1;var e=this._encodings[this._activeEncoding](s);return e&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(e):this._coreService.triggerDataEvent(e,!0)),this._lastEvent=s,!0},n.prototype.explainEvents=function(s){return{down:!!(1&s),up:!!(2&s),drag:!!(4&s),move:!!(8&s),wheel:!!(16&s)}},n.prototype._compareEvents=function(s,e){return s.col===e.col&&(s.row===e.row&&(s.button===e.button&&(s.action===e.action&&(s.ctrl===e.ctrl&&s.alt===e.alt))))&&s.shift===e.shift},n=m([g(0,a.IBufferService),g(1,a.ICoreService)],n)}();h.CoreMouseService=l},function(w,h,I){"use strict";var m=this&&this.__decorate||function(d,u,o,r){var l,n=arguments.length,s=n<3?u:r===null?r=Object.getOwnPropertyDescriptor(u,o):r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(d,u,o,r);else for(var e=d.length-1;e>=0;e--)(l=d[e])&&(s=(n<3?l(s):n>3?l(u,o,s):l(u,o))||s);return n>3&&s&&Object.defineProperty(u,o,s),s},g=this&&this.__param||function(d,u){return function(o,r){u(o,r,d)}};Object.defineProperty(h,"__esModule",{value:!0}),h.DirtyRowService=void 0;var a=I(1),f=function(){function d(u){this._bufferService=u,this.clearRange()}return Object.defineProperty(d.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),d.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},d.prototype.markDirty=function(u){u<this._start?this._start=u:u>this._end&&(this._end=u)},d.prototype.markRangeDirty=function(u,o){if(u>o){var r=u;u=o,o=r}u<this._start&&(this._start=u),o>this._end&&(this._end=o)},d.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},d=m([g(0,a.IBufferService)],d)}();h.DirtyRowService=f},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.UnicodeService=void 0;var m=I(0),g=I(79),a=function(){function f(){this._providers=Object.create(null),this._active="",this._onChange=new m.EventEmitter;var d=new g.UnicodeV6;this.register(d),this._active=d.version,this._activeProvider=d}return Object.defineProperty(f.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"activeVersion",{get:function(){return this._active},set:function(d){if(!this._providers[d])throw new Error('unknown Unicode version "'+d+'"');this._active=d,this._activeProvider=this._providers[d],this._onChange.fire(d)},enumerable:!1,configurable:!0}),f.prototype.register=function(d){this._providers[d.version]=d},f.prototype.wcwidth=function(d){return this._activeProvider.wcwidth(d)},f.prototype.getStringCellWidth=function(d){for(var u=0,o=d.length,r=0;r<o;++r){var l=d.charCodeAt(r);if(55296<=l&&l<=56319){if(++r>=o)return u+this.wcwidth(l);var n=d.charCodeAt(r);56320<=n&&n<=57343?l=1024*(l-55296)+n-56320+65536:u+=this.wcwidth(n)}u+=this.wcwidth(l)}return u},f}();h.UnicodeService=a},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.UnicodeV6=void 0;var m,g=I(15),a=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],f=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],d=function(){function u(){if(this.version="6",!m){m=new Uint8Array(65536),g.fill(m,1),m[0]=0,g.fill(m,0,1,32),g.fill(m,0,127,160),g.fill(m,2,4352,4448),m[9001]=2,m[9002]=2,g.fill(m,2,11904,42192),m[12351]=1,g.fill(m,2,44032,55204),g.fill(m,2,63744,64256),g.fill(m,2,65040,65050),g.fill(m,2,65072,65136),g.fill(m,2,65280,65377),g.fill(m,2,65504,65511);for(var o=0;o<a.length;++o)g.fill(m,0,a[o][0],a[o][1]+1)}}return u.prototype.wcwidth=function(o){return o<32?0:o<127?1:o<65536?m[o]:function(r,l){var n,s=0,e=l.length-1;if(r<l[0][0]||r>l[e][1])return!1;for(;e>=s;)if(r>l[n=s+e>>1][1])s=n+1;else{if(!(r<l[n][0]))return!0;e=n-1}return!1}(o,f)?0:o>=131072&&o<=196605||o>=196608&&o<=262141?2:1},u}();h.UnicodeV6=d},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.CharsetService=void 0;var m=function(){function g(){this.glevel=0,this._charsets=[]}return g.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},g.prototype.setgLevel=function(a){this.glevel=a,this.charset=this._charsets[a]},g.prototype.setgCharset=function(a,f){this._charsets[a]=f,this.glevel===a&&(this.charset=f)},g}();h.CharsetService=m},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.updateWindowsModeWrappedState=void 0;var m=I(3);h.updateWindowsModeWrappedState=function(g){var a=g.buffer.lines.get(g.buffer.ybase+g.buffer.y-1),f=a==null?void 0:a.get(g.cols-1),d=g.buffer.lines.get(g.buffer.ybase+g.buffer.y);d&&f&&(d.isWrapped=f[m.CHAR_DATA_CODE_INDEX]!==m.NULL_CELL_CODE&&f[m.CHAR_DATA_CODE_INDEX]!==m.WHITESPACE_CELL_CODE)}},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.WriteBuffer=void 0;var m=function(){function g(a){this._action=a,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return g.prototype.writeSync=function(a){if(this._writeBuffer.length){for(var f=this._bufferOffset;f<this._writeBuffer.length;++f){var d=this._writeBuffer[f],u=this._callbacks[f];this._action(d),u&&u()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(a)},g.prototype.write=function(a,f){var d=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return d._innerWrite()})),this._pendingData+=a.length,this._writeBuffer.push(a),this._callbacks.push(f)},g.prototype._innerWrite=function(){for(var a=this,f=Date.now();this._writeBuffer.length>this._bufferOffset;){var d=this._writeBuffer[this._bufferOffset],u=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(d),this._pendingData-=d.length,u&&u(),Date.now()-f>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return a._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},g}();h.WriteBuffer=m},function(w,h,I){"use strict";Object.defineProperty(h,"__esModule",{value:!0}),h.AddonManager=void 0;var m=function(){function g(){this._addons=[]}return g.prototype.dispose=function(){for(var a=this._addons.length-1;a>=0;a--)this._addons[a].instance.dispose()},g.prototype.loadAddon=function(a,f){var d=this,u={instance:f,dispose:f.dispose,isDisposed:!1};this._addons.push(u),f.dispose=function(){return d._wrappedAddonDispose(u)},f.activate(a)},g.prototype._wrappedAddonDispose=function(a){if(!a.isDisposed){for(var f=-1,d=0;d<this._addons.length;d++)if(this._addons[d]===a){f=d;break}if(f===-1)throw new Error("Could not dispose an addon that has not been loaded");a.isDisposed=!0,a.dispose.apply(a.instance),this._addons.splice(f,1)}},g}();h.AddonManager=m}])})},"/omn":function(S,F,v){},"0/SM":function(S,F,v){S.exports={flex_box_center:"flex_box_center___gv1YF",flex_space_between:"flex_space_between___pJTp_",flex_box_vertical_center:"flex_box_vertical_center___2X-O9",flex_box_center_end:"flex_box_center_end___21hK4",flex_box_column:"flex_box_column___psPJb",wrap:"wrap___QvUDk",full:"full___2gLfk"}},"07cG":function(S,F,v){S.exports={ldsRing:"ldsRing___2F8W7",idsRingWrapper:"idsRingWrapper___fC2cF",ldsring:"ldsring___3A88y"}},"0i5U":function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAASCAYAAABSO15qAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjNEMUNCRTZCNDE1MzExRThBREM4QUVGRUEwQjY3M0FFIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjNEMUNCRTZDNDE1MzExRThBREM4QUVGRUEwQjY3M0FFIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6M0QxQ0JFNjk0MTUzMTFFOEFEQzhBRUZFQTBCNjczQUUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6M0QxQ0JFNkE0MTUzMTFFOEFEQzhBRUZFQTBCNjczQUUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6xcnMrAAABN0lEQVR42qzTsUtCURTH8fskisZoa4ogcGhpcYuW+gsk+icyGiyEoNVB0i3EWYJwaG2Koj+gBiEqqIasRQlCHCJ8fU+cB4fLldS68BHO755zeQ/vi7L3q4vOuRMsu9HWNTZT/NTHGHY6U5cDMm78lUm5P65/OaDtZXsoB3or2PWythxQ9cInFHBrsjvNHr3eqhxQxIsJS5jAlsl29GlLJpOZooQ979HmsY9zHOMUZ8hjwfTJTC/iIkkR4RIruvmJJXQxhVhfaVr3ryCDcfIvSMM2+lpP4ghveMahGe5rb+z/jTeomXoNG1hH1uQ17f1ZySskaxYPmNH6FR9Ia/0O+XY6gy6SbByYes4MO93r/HYT5V40A3kzcGeCB3whF8hzujfUt3CBhqkbmo30McnFaan8oKZvAQYAarBDzHlRpVIAAAAASUVORK5CYII="},"19Vz":function(S,F,v){(function(w){w(v("VrN/"))})(function(w){w.defineOption("placeholder","",function(d,u,o){var r=o&&o!=w.Init;if(u&&!r)d.on("blur",g),d.on("change",a),d.on("swapDoc",a),w.on(d.getInputField(),"compositionupdate",d.state.placeholderCompose=function(){m(d)}),a(d);else if(!u&&r){d.off("blur",g),d.off("change",a),d.off("swapDoc",a),w.off(d.getInputField(),"compositionupdate",d.state.placeholderCompose),h(d);var l=d.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}u&&!d.hasFocus()&&g(d)});function h(d){d.state.placeholder&&(d.state.placeholder.parentNode.removeChild(d.state.placeholder),d.state.placeholder=null)}function I(d){h(d);var u=d.state.placeholder=document.createElement("pre");u.style.cssText="height: 0; overflow: visible",u.style.direction=d.getOption("direction"),u.className="CodeMirror-placeholder CodeMirror-line-like";var o=d.getOption("placeholder");typeof o=="string"&&(o=document.createTextNode(o)),u.appendChild(o),d.display.lineSpace.insertBefore(u,d.display.lineSpace.firstChild)}function m(d){setTimeout(function(){var u=!1,o=d.getInputField();o.nodeName=="TEXTAREA"?u=!o.value:d.lineCount()==1&&(u=!/[^\u200b]/.test(o.querySelector(".CodeMirror-line").textContent)),u?I(d):h(d)},20)}function g(d){f(d)&&I(d)}function a(d){var u=d.getWrapperElement(),o=f(d);u.className=u.className.replace(" CodeMirror-empty","")+(o?" CodeMirror-empty":""),o?I(d):h(d)}function f(d){return d.lineCount()===1&&d.getLine(0)===""}})},"1A8V":function(S,F,v){},"1ZF9":function(S,F,v){S.exports=v.p+"static/Authorize.cc9c212f.png"},"1Zrr":function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAABZ0lEQVRYR+2YrU7FQBBGzzwEPAMSi+M6MARDggNJgiIkWLiSBIFCkyCuQECCQFIcEstb8AYf2ZvmhpbuT9ttUpJWdma+OZ3O7k5rRC5Jh8ARsBPzjdhvgXczew75WSyJpCdgP+aXaP8ws63OQJK2gbdSYJ6Y1Od2WRpmZlb4nIIVqgEFhUKwbXTGByRpDzgBdnu+kr7hD8CLSboGLvqqZYp/dEDK1LR9mZZNXwEys6u+ql3iJbm8E5C3eFOFYn2VrUKS1oADYL1M+gW8mtl3DOK3PQuQpE1gAWzUkn8CZ6Hzqg6bC+gcuPFU4s7MTlOrlAvITQFuGijMbOaSS/pzLwXKB+QdCQKiXqAUkJqP06rs1B00liFNFeqqVQEaXYXmbc6ypn7J3UNtgUa3ysa1D5XLfDw7dedl1BCYZWOcgHJWIKb1f15Z7EkGtq+G/NXEP3DCFPl79xnkTln3u+U4JWJAH/czo/gBVkc5pun3NGoAAAAASUVORK5CYII="},"1dTM":function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var w=v("GQ8N"),h=R(v("Lo0S")),I=v("VSMT"),m=v("GdRQ"),g=v("SZEN"),a=v("vewr"),f=k(v("YJ9k")),d=k(v("MZdM")),u=k(v("ItS6")),o=k(v("whVF")),r=k(v("Fv0C")),l=k(v("LCi9")),n=k(v("rwxt")),s=k(v("Mmt2")),e=k(v("iUHT")),i=k(v("mHUz")),_=k(v("P2ho")),b=v("NBmB");v("mdZa");var y=k(v("34/K")),E=k(v("hXwI")),c=k(v("SgaC")),C=k(v("3690")),x=k(v("8K/p")),M=k(v("xO64"));function k(ve){return ve&&ve.__esModule?ve:{default:ve}}function T(){if(typeof WeakMap!="function")return null;var ve=new WeakMap;return T=function(){return ve},ve}function R(ve){if(ve&&ve.__esModule)return ve;if(ve===null||P(ve)!=="object"&&typeof ve!="function")return{default:ve};var he=T();if(he&&he.has(ve))return he.get(ve);var Ce={},Pe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var de in ve)if(Object.prototype.hasOwnProperty.call(ve,de)){var ke=Pe?Object.getOwnPropertyDescriptor(ve,de):null;ke&&(ke.get||ke.set)?Object.defineProperty(Ce,de,ke):Ce[de]=ve[de]}return Ce.default=ve,he&&he.set(ve,Ce),Ce}function P(ve){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(Ce){return typeof Ce}:P=function(Ce){return Ce&&typeof Symbol=="function"&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce},P(ve)}function B(ve,he){if(!(ve instanceof he))throw new TypeError("Cannot call a class as a function")}function W(ve,he){for(var Ce=0;Ce<he.length;Ce++){var Pe=he[Ce];Pe.enumerable=Pe.enumerable||!1,Pe.configurable=!0,"value"in Pe&&(Pe.writable=!0),Object.defineProperty(ve,Pe.key,Pe)}}function z(ve,he,Ce){return he&&W(ve.prototype,he),Ce&&W(ve,Ce),ve}function H(ve,he){if(typeof he!="function"&&he!==null)throw new TypeError("Super expression must either be null or a function");ve.prototype=Object.create(he&&he.prototype,{constructor:{value:ve,writable:!0,configurable:!0}}),he&&ee(ve,he)}function ee(ve,he){return ee=Object.setPrototypeOf||function(Pe,de){return Pe.__proto__=de,Pe},ee(ve,he)}function G(ve){var he=L();return function(){var Pe=D(ve),de;if(he){var ke=D(this).constructor;de=Reflect.construct(Pe,arguments,ke)}else de=Pe.apply(this,arguments);return U(this,de)}}function U(ve,he){return he&&(P(he)==="object"||typeof he=="function")?he:K(ve)}function K(ve){if(ve===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve}function L(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ve){return!1}}function D(ve){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(Ce){return Ce.__proto__||Object.getPrototypeOf(Ce)},D(ve)}var j=3,Z="rgb(40, 40, 40)",ie=17,pe=50,Ee=19,De=75,q=50,be=1e3,ye=50,le=1,ue=1<<1,ne=1<<2,xe=1<<3,$=1<<4,oe=1<<24,Le=1<<25,te=1<<26,Y=1<<27,X=1<<28,J=function(ve){H(Ce,ve);var he=G(Ce);function Ce(Pe,de,ke){var me;if(B(this,Ce),!Pe)throw new Error("Must specify target");if(!de)throw new Error("Must specify URL");me=he.call(this),me._target=Pe,me._url=de,ke=ke||{},me._rfbCredentials=ke.credentials||{},me._shared="shared"in ke?!!ke.shared:!0,me._repeaterID=ke.repeaterID||"",me._wsProtocols=ke.wsProtocols||[],me._rfbConnectionState="",me._rfbInitState="",me._rfbAuthScheme=-1,me._rfbCleanDisconnect=!0,me._rfbVersion=0,me._rfbMaxVersion=3.8,me._rfbTightVNC=!1,me._rfbVeNCryptState=0,me._rfbXvpVer=0,me._fbWidth=0,me._fbHeight=0,me._fbName="",me._capabilities={power:!1},me._supportsFence=!1,me._supportsContinuousUpdates=!1,me._enabledContinuousUpdates=!1,me._supportsSetDesktopSize=!1,me._screenID=0,me._screenFlags=0,me._qemuExtKeyEventSupported=!1,me._clipboardText=null,me._clipboardServerCapabilitiesActions={},me._clipboardServerCapabilitiesFormats={},me._sock=null,me._display=null,me._flushing=!1,me._keyboard=null,me._gestures=null,me._disconnTimer=null,me._resizeTimeout=null,me._mouseMoveTimer=null,me._decoders={},me._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},me._mousePos={},me._mouseButtonMask=0,me._mouseLastMoveTime=0,me._viewportDragging=!1,me._viewportDragPos={},me._viewportHasMoved=!1,me._accumulatedWheelDeltaX=0,me._accumulatedWheelDeltaY=0,me._gestureLastTapTime=null,me._gestureFirstDoubleTapEv=null,me._gestureLastMagnitudeX=0,me._gestureLastMagnitudeY=0,me._eventHandlers={focusCanvas:me._focusCanvas.bind(K(me)),windowResize:me._windowResize.bind(K(me)),handleMouse:me._handleMouse.bind(K(me)),handleWheel:me._handleWheel.bind(K(me)),handleGesture:me._handleGesture.bind(K(me))},h.Debug(">> RFB.constructor"),me._screen=document.createElement("div"),me._screen.style.display="flex",me._screen.style.width="100%",me._screen.style.height="100%",me._screen.style.overflow="auto",me._screen.style.background=Z,me._canvas=document.createElement("canvas"),me._canvas.style.margin="auto",me._canvas.style.outline="none",me._canvas.style.flexShrink="0",me._canvas.width=0,me._canvas.height=0,me._canvas.tabIndex=-1,me._screen.appendChild(me._canvas),me._cursor=new n.default,me._cursorImage=Ce.cursors.none,me._decoders[b.encodings.encodingRaw]=new y.default,me._decoders[b.encodings.encodingCopyRect]=new E.default,me._decoders[b.encodings.encodingRRE]=new c.default,me._decoders[b.encodings.encodingHextile]=new C.default,me._decoders[b.encodings.encodingTight]=new x.default,me._decoders[b.encodings.encodingTightPNG]=new M.default;try{me._display=new d.default(me._canvas)}catch(Be){throw h.Error("Display exception: "+Be),Be}return me._display.onflush=me._onFlush.bind(K(me)),me._keyboard=new r.default(me._canvas),me._keyboard.onkeyevent=me._handleKeyEvent.bind(K(me)),me._gestures=new l.default,me._sock=new s.default,me._sock.on("message",function(){me._handleMessage()}),me._sock.on("open",function(){me._rfbConnectionState==="connecting"&&me._rfbInitState===""?(me._rfbInitState="ProtocolVersion",h.Debug("Starting VNC handshake")):me._fail("Unexpected server connection while "+me._rfbConnectionState)}),me._sock.on("close",function(Be){h.Debug("WebSocket on-close event");var ft="";Be.code&&(ft="(code: "+Be.code,Be.reason&&(ft+=", reason: "+Be.reason),ft+=")");switch(me._rfbConnectionState){case"connecting":me._fail("Connection closed "+ft);break;case"connected":me._updateConnectionState("disconnecting"),me._updateConnectionState("disconnected");break;case"disconnecting":me._updateConnectionState("disconnected");break;case"disconnected":me._fail("Unexpected server disconnect when already disconnected "+ft);break;default:me._fail("Unexpected server disconnect before connecting "+ft);break}me._sock.off("close")}),me._sock.on("error",function(Be){return h.Warn("WebSocket on-error event")}),setTimeout(me._updateConnectionState.bind(K(me),"connecting")),h.Debug("<< RFB.constructor"),me.dragViewport=!1,me.focusOnClick=!0,me._viewOnly=!1,me._clipViewport=!1,me._scaleViewport=!1,me._resizeSession=!1,me._showDotCursor=!1,ke.showDotCursor!==void 0&&(h.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),me._showDotCursor=ke.showDotCursor),me._qualityLevel=6,me._compressionLevel=2,me}return z(Ce,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(de){this._rfbCredentials=de,setTimeout(this._initMsg.bind(this),0)}},{key:"sendCtrlAltDel",value:function(){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;h.Info("Sending Ctrl-Alt-Del"),this.sendKey(i.default.XK_Control_L,"ControlLeft",!0),this.sendKey(i.default.XK_Alt_L,"AltLeft",!0),this.sendKey(i.default.XK_Delete,"Delete",!0),this.sendKey(i.default.XK_Delete,"Delete",!1),this.sendKey(i.default.XK_Alt_L,"AltLeft",!1),this.sendKey(i.default.XK_Control_L,"ControlLeft",!1)}},{key:"machineShutdown",value:function(){this._xvpOp(1,2)}},{key:"machineReboot",value:function(){this._xvpOp(1,3)}},{key:"machineReset",value:function(){this._xvpOp(1,4)}},{key:"sendKey",value:function(de,ke,me){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(me===void 0){this.sendKey(de,ke,!0),this.sendKey(de,ke,!1);return}var Be=_.default[ke];if(this._qemuExtKeyEventSupported&&Be)de=de||0,h.Info("Sending key ("+(me?"down":"up")+"): keysym "+de+", scancode "+Be),Ce.messages.QEMUExtendedKeyEvent(this._sock,de,me,Be);else{if(!de)return;h.Info("Sending keysym ("+(me?"down":"up")+"): "+de),Ce.messages.keyEvent(this._sock,de,me?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(de){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[le]&&this._clipboardServerCapabilitiesActions[Y])this._clipboardText=de,Ce.messages.extendedClipboardNotify(this._sock,[le]);else{for(var ke=new Uint8Array(de.length),me=0;me<de.length;me++)ke[me]=de.charCodeAt(me);Ce.messages.clientCutText(this._sock,ke)}}},{key:"_connect",value:function(){h.Debug(">> RFB.connect"),h.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(de){de.name==="SyntaxError"?this._fail("Invalid host or port ("+de+")"):this._fail("Error when opening socket ("+de+")")}this._target.appendChild(this._screen),this._gestures.attach(this._canvas),this._cursor.attach(this._canvas),this._refreshCursor(),window.addEventListener("resize",this._eventHandlers.windowResize),this._canvas.addEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.addEventListener("touchstart",this._eventHandlers.focusCanvas),this._canvas.addEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.addEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.addEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.addEventListener("click",this._eventHandlers.handleMouse),this._canvas.addEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.addEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.addEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.addEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.addEventListener("gestureend",this._eventHandlers.handleGesture),h.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){h.Debug(">> RFB.disconnect"),this._cursor.detach(),this._canvas.removeEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gestureend",this._eventHandlers.handleGesture),this._canvas.removeEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.removeEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.removeEventListener("click",this._eventHandlers.handleMouse),this._canvas.removeEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.removeEventListener("touchstart",this._eventHandlers.focusCanvas),window.removeEventListener("resize",this._eventHandlers.windowResize),this._keyboard.ungrab(),this._gestures.detach(),this._sock.close();try{this._target.removeChild(this._screen)}catch(de){if(!(de.name==="NotFoundError"))throw de}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),h.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(de){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(de){this._fbName=de,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(de){var ke=this;window.requestAnimationFrame(function(){ke._updateClip(),ke._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var de=this._display.clipViewport,ke=this._clipViewport;if(this._scaleViewport&&(ke=!1),de!==ke&&(this._display.clipViewport=ke),ke){var me=this._screenSize();this._display.viewportChangeSize(me.w,me.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var de=this._screenSize();this._display.autoscale(de.w,de.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var de=this._screenSize();Ce.messages.setDesktopSize(this._sock,Math.floor(de.w),Math.floor(de.h),this._screenID,this._screenFlags),h.Debug("Requested new desktop size: "+de.w+"x"+de.h)}},{key:"_screenSize",value:function(){var de=this._screen.getBoundingClientRect();return{w:de.width,h:de.height}}},{key:"_fixScrollbars",value:function(){var de=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=de}},{key:"_updateConnectionState",value:function(de){var ke=this,me=this._rfbConnectionState;if(de===me){h.Debug("Already in state '"+de+"', ignoring");return}if(me==="disconnected"){h.Error("Tried changing state of a disconnected RFB object");return}switch(de){case"connected":if(me!=="connecting"){h.Error("Bad transition to connected state, previous connection state: "+me);return}break;case"disconnected":if(me!=="disconnecting"){h.Error("Bad transition to disconnected state, previous connection state: "+me);return}break;case"connecting":if(me!==""){h.Error("Bad transition to connecting state, previous connection state: "+me);return}break;case"disconnecting":if(me!=="connected"&&me!=="connecting"){h.Error("Bad transition to disconnecting state, previous connection state: "+me);return}break;default:h.Error("Unknown connection state: "+de);return}this._rfbConnectionState=de,h.Debug("New state '"+de+"', was '"+me+"'."),this._disconnTimer&&de!=="disconnecting"&&(h.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(de){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout(function(){h.Error("Disconnection timed out."),ke._updateConnectionState("disconnected")},j*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(de){switch(this._rfbConnectionState){case"disconnecting":h.Error("Failed when disconnecting: "+de);break;case"connected":h.Error("Failed while connected: "+de);break;case"connecting":h.Error("Failed when connecting: "+de);break;default:h.Error("RFB failure: "+de);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(de,ke){this._capabilities[de]=ke,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}},{key:"_handleMessage",value:function(){if(this._sock.rQlen===0){h.Warn("handleMessage called on an empty receive queue");return}switch(this._rfbConnectionState){case"disconnected":h.Error("Got data while disconnected");break;case"connected":for(;!this._flushing;){if(!this._normalMsg())break;if(this._sock.rQlen===0)break}break;default:this._initMsg();break}}},{key:"_handleKeyEvent",value:function(de,ke,me){this.sendKey(de,ke,me)}},{key:"_handleMouse",value:function(de){if(de.type==="click"&&de.target!==this._canvas)return;if(de.stopPropagation(),de.preventDefault(),de.type==="click"||de.type==="contextmenu")return;var ke=(0,g.clientToElement)(de.clientX,de.clientY,this._canvas);switch(de.type){case"mousedown":(0,a.setCapture)(this._canvas),this._handleMouseButton(ke.x,ke.y,!0,1<<de.button);break;case"mouseup":this._handleMouseButton(ke.x,ke.y,!1,1<<de.button);break;case"mousemove":this._handleMouseMove(ke.x,ke.y);break}}},{key:"_handleMouseButton",value:function(de,ke,me,Be){if(this.dragViewport)if(me&&!this._viewportDragging){this._viewportDragging=!0,this._viewportDragPos={x:de,y:ke},this._viewportHasMoved=!1;return}else{if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(de,ke,Be)}this._mouseMoveTimer!==null&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(de,ke,this._mouseButtonMask)),me?this._mouseButtonMask|=Be:this._mouseButtonMask&=~Be,this._sendMouse(de,ke,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(de,ke){var me=this;if(this._viewportDragging){var Be=this._viewportDragPos.x-de,ft=this._viewportDragPos.y-ke;(this._viewportHasMoved||Math.abs(Be)>m.dragThreshold||Math.abs(ft)>m.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:de,y:ke},this._display.viewportChangePos(Be,ft));return}if(this._mousePos={x:de,y:ke},this._mouseMoveTimer==null){var vt=Date.now()-this._mouseLastMoveTime;vt>ie?(this._sendMouse(de,ke,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){me._handleDelayedMouseMove()},ie-vt)}}},{key:"_handleDelayedMouseMove",value:function(){this._mouseMoveTimer=null,this._sendMouse(this._mousePos.x,this._mousePos.y,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()}},{key:"_sendMouse",value:function(de,ke,me){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Ce.messages.pointerEvent(this._sock,this._display.absX(de),this._display.absY(ke),me)}},{key:"_handleWheel",value:function(de){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;de.stopPropagation(),de.preventDefault();var ke=(0,g.clientToElement)(de.clientX,de.clientY,this._canvas),me=de.deltaX,Be=de.deltaY;de.deltaMode!==0&&(me*=Ee,Be*=Ee),this._accumulatedWheelDeltaX+=me,this._accumulatedWheelDeltaY+=Be,Math.abs(this._accumulatedWheelDeltaX)>=pe&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(ke.x,ke.y,!0,1<<5),this._handleMouseButton(ke.x,ke.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(ke.x,ke.y,!0,1<<6),this._handleMouseButton(ke.x,ke.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=pe&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(ke.x,ke.y,!0,1<<3),this._handleMouseButton(ke.x,ke.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(ke.x,ke.y,!0,1<<4),this._handleMouseButton(ke.x,ke.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(de,ke,me){this._handleMouseMove(ke,me),this._cursor.move(de.detail.clientX,de.detail.clientY)}},{key:"_handleTapEvent",value:function(de,ke){var me=(0,g.clientToElement)(de.detail.clientX,de.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTime<be&&this._gestureFirstDoubleTapEv.detail.type===de.detail.type){var Be=this._gestureFirstDoubleTapEv.detail.clientX-de.detail.clientX,ft=this._gestureFirstDoubleTapEv.detail.clientY-de.detail.clientY,vt=Math.hypot(Be,ft);vt<ye?me=(0,g.clientToElement)(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=de}else this._gestureFirstDoubleTapEv=de;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,me.x,me.y),this._handleMouseButton(me.x,me.y,!0,ke),this._handleMouseButton(me.x,me.y,!1,ke)}},{key:"_handleGesture",value:function(de){var ke,me=(0,g.clientToElement)(de.detail.clientX,de.detail.clientY,this._canvas);switch(de.type){case"gesturestart":switch(de.detail.type){case"onetap":this._handleTapEvent(de,1);break;case"twotap":this._handleTapEvent(de,4);break;case"threetap":this._handleTapEvent(de,2);break;case"drag":this._fakeMouseMove(de,me.x,me.y),this._handleMouseButton(me.x,me.y,!0,1);break;case"longpress":this._fakeMouseMove(de,me.x,me.y),this._handleMouseButton(me.x,me.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=de.detail.magnitudeX,this._gestureLastMagnitudeY=de.detail.magnitudeY,this._fakeMouseMove(de,me.x,me.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(de.detail.magnitudeX,de.detail.magnitudeY),this._fakeMouseMove(de,me.x,me.y);break}break;case"gesturemove":switch(de.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(de,me.x,me.y);break;case"twodrag":for(this._fakeMouseMove(de,me.x,me.y);de.detail.magnitudeY-this._gestureLastMagnitudeY>q;)this._handleMouseButton(me.x,me.y,!0,8),this._handleMouseButton(me.x,me.y,!1,8),this._gestureLastMagnitudeY+=q;for(;de.detail.magnitudeY-this._gestureLastMagnitudeY<-q;)this._handleMouseButton(me.x,me.y,!0,16),this._handleMouseButton(me.x,me.y,!1,16),this._gestureLastMagnitudeY-=q;for(;de.detail.magnitudeX-this._gestureLastMagnitudeX>q;)this._handleMouseButton(me.x,me.y,!0,32),this._handleMouseButton(me.x,me.y,!1,32),this._gestureLastMagnitudeX+=q;for(;de.detail.magnitudeX-this._gestureLastMagnitudeX<-q;)this._handleMouseButton(me.x,me.y,!0,64),this._handleMouseButton(me.x,me.y,!1,64),this._gestureLastMagnitudeX-=q;break;case"pinch":if(this._fakeMouseMove(de,me.x,me.y),ke=Math.hypot(de.detail.magnitudeX,de.detail.magnitudeY),Math.abs(ke-this._gestureLastMagnitudeX)>De){for(this._handleKeyEvent(i.default.XK_Control_L,"ControlLeft",!0);ke-this._gestureLastMagnitudeX>De;)this._handleMouseButton(me.x,me.y,!0,8),this._handleMouseButton(me.x,me.y,!1,8),this._gestureLastMagnitudeX+=De;for(;ke-this._gestureLastMagnitudeX<-De;)this._handleMouseButton(me.x,me.y,!0,16),this._handleMouseButton(me.x,me.y,!1,16),this._gestureLastMagnitudeX-=De}this._handleKeyEvent(i.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(de.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(de,me.x,me.y),this._handleMouseButton(me.x,me.y,!1,1);break;case"longpress":this._fakeMouseMove(de,me.x,me.y),this._handleMouseButton(me.x,me.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var de=this._sock.rQshiftStr(12).substr(4,7);h.Info("Server ProtocolVersion: "+de);var ke=0;switch(de){case"000.000":ke=1;break;case"003.003":case"003.006":case"003.889":this._rfbVersion=3.3;break;case"003.007":this._rfbVersion=3.7;break;case"003.008":case"004.000":case"004.001":case"005.000":this._rfbVersion=3.8;break;default:return this._fail("Invalid server version "+de)}if(ke){for(var me="ID:"+this._repeaterID;me.length<250;)me+="\0";return this._sock.sendString(me),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var Be="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+Be+`
`),h.Debug("Sent ProtocolVersion: "+Be),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function de(Be,ft){for(var vt=0;vt<ft.length;vt++)if(ft[vt]===Be)return!0;return!1}if(this._rfbVersion>=3.7){var ke=this._sock.rQshift8();if(this._sock.rQwait("security type",ke,1))return!1;if(ke===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var me=this._sock.rQshiftBytes(ke);if(h.Debug("Server security types: "+me),de(1,me))this._rfbAuthScheme=1;else if(de(22,me))this._rfbAuthScheme=22;else if(de(16,me))this._rfbAuthScheme=16;else if(de(2,me))this._rfbAuthScheme=2;else if(de(19,me))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+me+")");this._sock.send([this._rfbAuthScheme])}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),this._rfbAuthScheme==0)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,this._initMsg()}return this._rfbInitState="Authentication",h.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var de=this._sock.rQshift32(),ke="";if(de>0){if(this._sock.rQwait("reason",de,4))return!1;ke=this._sock.rQshiftStr(de)}return ke!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:ke}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+ke+")")):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus}})),this._fail("Security negotiation failed on "+this._securityContext))}},{key:"_negotiateXvpAuth",value:function(){if(this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0||this._rfbCredentials.target===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password","target"]}})),!1;var de=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(de),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var de=this._sock.rQshift8(),ke=this._sock.rQshift8();if(!(de==0&&ke==2))return this._fail("Unsupported VeNCrypt version "+de+"."+ke);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var me=this._sock.rQshift8();if(me!=0)return this._fail("VeNCrypt failure "+me);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var Be=this._sock.rQshift8();if(Be<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=Be,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var ft=[],vt=0;vt<this._rfbVeNCryptSubtypesLength;vt++)ft.push(this._sock.rQshift32());if(ft.indexOf(256)!=-1)this._sock.send([0,0,1,0]),this._rfbVeNCryptState=4;else return this._fail("VeNCrypt Plain subtype not offered by server")}if(this._rfbVeNCryptState==4){if(!this._rfbCredentials.username||!this._rfbCredentials.password)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1;var Xe=(0,I.encodeUTF8)(this._rfbCredentials.username),Bt=(0,I.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,Xe.length]),this._sock.send([0,0,0,Bt.length]),this._sock.sendString(Xe),this._sock.sendString(Bt),this._rfbInitState="SecurityResult",!0}}},{key:"_negotiateStdVNCAuth",value:function(){if(this._sock.rQwait("auth challenge",16))return!1;if(this._rfbCredentials.password===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["password"]}})),!1;var de=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),ke=Ce.genDES(this._rfbCredentials.password,de);return this._sock.send(ke),this._rfbInitState="SecurityResult",!0}},{key:"_negotiateTightUnixAuth",value:function(){return this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0?(this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1):(this._sock.send([0,0,0,this._rfbCredentials.username.length]),this._sock.send([0,0,0,this._rfbCredentials.password.length]),this._sock.sendString(this._rfbCredentials.username),this._sock.sendString(this._rfbCredentials.password),this._rfbInitState="SecurityResult",!0)}},{key:"_negotiateTightTunnels",value:function(de){for(var ke={0:{vendor:"TGHT",signature:"NOTUNNEL"}},me={},Be=0;Be<de;Be++){var ft=this._sock.rQshift32(),vt=this._sock.rQshiftStr(4),Xe=this._sock.rQshiftStr(8);me[ft]={vendor:vt,signature:Xe}}return h.Debug("Server Tight tunnel types: "+me),me[1]&&me[1].vendor==="SICR"&&me[1].signature==="SCHANNEL"&&(h.Debug("Detected Siemens server. Assuming NOTUNNEL support."),me[0]={vendor:"TGHT",signature:"NOTUNNEL"}),me[0]?me[0].vendor!=ke[0].vendor||me[0].signature!=ke[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(h.Debug("Selected tunnel type: "+ke[0]),this._sock.send([0,0,0,0]),!1):this._fail("Server wanted tunnels, but doesn't support the notunnel type")}},{key:"_negotiateTightAuth",value:function(){if(!this._rfbTightVNC){if(this._sock.rQwait("num tunnels",4))return!1;var de=this._sock.rQshift32();if(de>0&&this._sock.rQwait("tunnel capabilities",16*de,4))return!1;if(this._rfbTightVNC=!0,de>0)return this._negotiateTightTunnels(de),!1}if(this._sock.rQwait("sub auth count",4))return!1;var ke=this._sock.rQshift32();if(ke===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*ke,4))return!1;for(var me={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},Be=[],ft=0;ft<ke;ft++){this._sock.rQshift32();var vt=this._sock.rQshiftStr(12);Be.push(vt)}h.Debug("Server Tight authentication types: "+Be);for(var Xe in me)if(Be.indexOf(Xe)!=-1){this._sock.send([0,0,0,me[Xe]]),h.Debug("Selected authentication type: "+Xe);switch(Xe){case"STDVNOAUTH__":return this._rfbInitState="SecurityResult",!0;case"STDVVNCAUTH_":return this._rfbAuthScheme=2,this._initMsg();case"TGHTULGNAUTH":return this._rfbAuthScheme=129,this._initMsg();default:return this._fail("Unsupported tiny auth scheme (scheme: "+Xe+")")}}return this._fail("No supported sub-auth types!")}},{key:"_negotiateAuthentication",value:function(){switch(this._rfbAuthScheme){case 1:return this._rfbVersion>=3.8?(this._rfbInitState="SecurityResult",!0):(this._rfbInitState="ClientInitialisation",this._initMsg());case 22:return this._negotiateXvpAuth();case 2:return this._negotiateStdVNCAuth();case 16:return this._negotiateTightAuth();case 19:return this._negotiateVeNCryptAuth();case 129:return this._negotiateTightUnixAuth();default:return this._fail("Unsupported auth scheme (scheme: "+this._rfbAuthScheme+")")}}},{key:"_handleSecurityResult",value:function(){if(this._sock.rQwait("VNC auth response ",4))return!1;var de=this._sock.rQshift32();return de===0?(this._rfbInitState="ClientInitialisation",h.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=de,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:de}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var de=this._sock.rQshift16(),ke=this._sock.rQshift16(),me=this._sock.rQshift8(),Be=this._sock.rQshift8(),ft=this._sock.rQshift8(),vt=this._sock.rQshift8(),Xe=this._sock.rQshift16(),Bt=this._sock.rQshift16(),Ae=this._sock.rQshift16(),We=this._sock.rQshift8(),dt=this._sock.rQshift8(),Ge=this._sock.rQshift8();this._sock.rQskipBytes(3);var je=this._sock.rQshift32();if(this._sock.rQwait("server init name",je,24))return!1;var Fe=this._sock.rQshiftStr(je);if(Fe=(0,I.decodeUTF8)(Fe,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+je))return!1;var ce=this._sock.rQshift16(),we=this._sock.rQshift16(),se=this._sock.rQshift16();this._sock.rQskipBytes(2);var _e=(ce+we+se)*16;if(this._sock.rQwait("TightVNC extended server init header",_e,32+je))return!1;this._sock.rQskipBytes(16*ce),this._sock.rQskipBytes(16*we),this._sock.rQskipBytes(16*se)}return h.Info("Screen: "+de+"x"+ke+", bpp: "+me+", depth: "+Be+", bigEndian: "+ft+", trueColor: "+vt+", redMax: "+Xe+", greenMax: "+Bt+", blueMax: "+Ae+", redShift: "+We+", greenShift: "+dt+", blueShift: "+Ge),this._setDesktopName(Fe),this._resize(de,ke),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(h.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),Ce.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Ce.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var de=[];de.push(b.encodings.encodingCopyRect),this._fbDepth==24&&(de.push(b.encodings.encodingTight),de.push(b.encodings.encodingTightPNG),de.push(b.encodings.encodingHextile),de.push(b.encodings.encodingRRE)),de.push(b.encodings.encodingRaw),de.push(b.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),de.push(b.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),de.push(b.encodings.pseudoEncodingDesktopSize),de.push(b.encodings.pseudoEncodingLastRect),de.push(b.encodings.pseudoEncodingQEMUExtendedKeyEvent),de.push(b.encodings.pseudoEncodingExtendedDesktopSize),de.push(b.encodings.pseudoEncodingXvp),de.push(b.encodings.pseudoEncodingFence),de.push(b.encodings.pseudoEncodingContinuousUpdates),de.push(b.encodings.pseudoEncodingDesktopName),de.push(b.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(de.push(b.encodings.pseudoEncodingVMwareCursor),de.push(b.encodings.pseudoEncodingCursor)),Ce.messages.clientEncodings(this._sock,de)}},{key:"_initMsg",value:function(){switch(this._rfbInitState){case"ProtocolVersion":return this._negotiateProtocolVersion();case"Security":return this._negotiateSecurity();case"Authentication":return this._negotiateAuthentication();case"SecurityResult":return this._handleSecurityResult();case"SecurityReason":return this._handleSecurityReason();case"ClientInitialisation":return this._sock.send([this._shared?1:0]),this._rfbInitState="ServerInitialisation",!0;case"ServerInitialisation":return this._negotiateServerInit();default:return this._fail("Unknown init state (state: "+this._rfbInitState+")")}}},{key:"_handleSetColourMapMsg",value:function(){return h.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(h.Debug("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var de=this._sock.rQshift32();if(de=(0,w.toSigned32bit)(de),this._sock.rQwait("ServerCutText content",Math.abs(de),8))return!1;if(de>=0){var ke=this._sock.rQshiftStr(de);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:ke}}))}else{de=Math.abs(de);var me=this._sock.rQshift32(),Be=me&65535,ft=me&4278190080,vt=!!(ft&oe);if(vt){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var Xe=0;Xe<=15;Xe++){var Bt=1<<Xe;Be&Bt&&(this._clipboardServerCapabilitiesFormats[Bt]=!0,this._sock.rQshift32())}for(var Ae=24;Ae<=31;Ae++){var We=1<<Ae;this._clipboardServerCapabilitiesActions[We]=!!(ft&We)}var dt=[oe,Le,te,Y,X];Ce.messages.extendedClipboardCaps(this._sock,dt,{extendedClipboardFormatText:0})}else if(ft===Le){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[X]&&(Be&le&&Ce.messages.extendedClipboardProvide(this._sock,[le],[this._clipboardText]))}else if(ft===te){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[Y]&&(this._clipboardText!=null?Ce.messages.extendedClipboardNotify(this._sock,[le]):Ce.messages.extendedClipboardNotify(this._sock,[]))}else if(ft===Y){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[Le]&&(Be&le&&Ce.messages.extendedClipboardRequest(this._sock,[le]))}else if(ft===X){if(this._viewOnly)return!0;if(!(Be&le))return!0;this._clipboardText=null;var Ge=this._sock.rQshiftBytes(de-4),je=new u.default,Fe=null;je.setInput(Ge);for(var ce=0;ce<=15;ce++){var we=1<<ce;if(Be&we){var se=0,_e=je.inflate(4);se|=_e[0]<<24,se|=_e[1]<<16,se|=_e[2]<<8,se|=_e[3];var Ne=je.inflate(se);we===le&&(Fe=Ne)}}if(je.setInput(null),Fe!==null){for(var Q="",Ue=0;Ue<Fe.length;Ue++)Q+=String.fromCharCode(Fe[Ue]);Fe=Q,Fe=(0,I.decodeUTF8)(Fe),Fe.length>0&&Fe.charAt(Fe.length-1)==="\0"&&(Fe=Fe.slice(0,-1)),Fe=Fe.replace(`\r
`,`
`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Fe}}))}}else return this._fail("Unexpected action in extended clipboard message: "+ft)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var de=this._sock.rQshift32(),ke=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",ke,9))return!1;ke>64&&(h.Warn("Bad payload length ("+ke+") in fence response"),ke=64);var me=this._sock.rQshiftStr(ke);return this._supportsFence=!0,de&1<<31?(de&=1<<0|1<<1,Ce.messages.clientFence(this._sock,de,me),!0):this._fail("Unexpected fence response")}},{key:"_handleXvpMsg",value:function(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskipBytes(1);var de=this._sock.rQshift8(),ke=this._sock.rQshift8();switch(ke){case 0:h.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=de,h.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+ke+")");break}return!0}},{key:"_normalMsg",value:function(){var de;this._FBU.rects>0?de=0:de=this._sock.rQshift8();var ke,me;switch(de){case 0:return me=this._framebufferUpdate(),me&&!this._enabledContinuousUpdates&&Ce.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),me;case 1:return this._handleSetColourMapMsg();case 2:return h.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return ke=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,ke&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),h.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+de+")"),h.Debug("sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0}}},{key:"_onFlush",value:function(){this._flushing=!1,this._sock.rQlen>0&&this._handleMessage()}},{key:"_framebufferUpdate",value:function(){if(this._FBU.rects===0){if(this._sock.rQwait("FBU header",3,1))return!1;if(this._sock.rQskipBytes(1),this._FBU.rects=this._sock.rQshift16(),this._display.pending())return this._flushing=!0,this._display.flush(),!1}for(;this._FBU.rects>0;){if(this._FBU.encoding===null){if(this._sock.rQwait("rect header",12))return!1;var de=this._sock.rQshiftBytes(12);this._FBU.x=(de[0]<<8)+de[1],this._FBU.y=(de[2]<<8)+de[3],this._FBU.width=(de[4]<<8)+de[5],this._FBU.height=(de[6]<<8)+de[7],this._FBU.encoding=parseInt((de[8]<<24)+(de[9]<<16)+(de[10]<<8)+de[11],10)}if(!this._handleRect())return!1;this._FBU.rects--,this._FBU.encoding=null}return this._display.flip(),!0}},{key:"_handleRect",value:function(){switch(this._FBU.encoding){case b.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case b.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case b.encodings.pseudoEncodingCursor:return this._handleCursor();case b.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var de=document.createEvent("keyboardEvent");de.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(ke){}return!0;case b.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case b.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case b.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var de=this._FBU.x,ke=this._FBU.y,me=this._FBU.width,Be=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var ft=this._sock.rQshift8();this._sock.rQshift8();var vt,Xe=4;if(ft==0){var Bt=4294967040|0;if(vt=new Array(me*Be*Xe),this._sock.rQwait("VMware cursor classic encoding",me*Be*Xe*2,2))return!1;for(var Ae=new Array(me*Be),We=0;We<me*Be;We++)Ae[We]=this._sock.rQshift32();for(var dt=new Array(me*Be),Ge=0;Ge<me*Be;Ge++)dt[Ge]=this._sock.rQshift32();for(var je=0;je<me*Be;je++)if(Ae[je]==0){var Fe=dt[je],ce=Fe>>8&255,we=Fe>>16&255,se=Fe>>24&255;vt[je*Xe]=ce,vt[je*Xe+1]=we,vt[je*Xe+2]=se,vt[je*Xe+3]=255}else(Ae[je]&Bt)==Bt?dt[je]==0?(vt[je*Xe]=0,vt[je*Xe+1]=0,vt[je*Xe+2]=0,vt[je*Xe+3]=0):((dt[je]&Bt)==Bt,vt[je*Xe]=0,vt[je*Xe+1]=0,vt[je*Xe+2]=0,vt[je*Xe+3]=255):(vt[je*Xe]=0,vt[je*Xe+1]=0,vt[je*Xe+2]=0,vt[je*Xe+3]=255)}else if(ft==1){if(this._sock.rQwait("VMware cursor alpha encoding",me*Be*4,2))return!1;vt=new Array(me*Be*Xe);for(var _e=0;_e<me*Be;_e++){var Ne=this._sock.rQshift32();vt[_e*4]=Ne>>24&255,vt[_e*4+1]=Ne>>16&255,vt[_e*4+2]=Ne>>8&255,vt[_e*4+3]=Ne&255}}else return h.Warn("The given cursor type is not supported: "+ft+" given."),!1;return this._updateCursor(vt,de,ke,me,Be),!0}},{key:"_handleCursor",value:function(){var de=this._FBU.x,ke=this._FBU.y,me=this._FBU.width,Be=this._FBU.height,ft=me*Be*4,vt=Math.ceil(me/8)*Be,Xe=ft+vt;if(this._sock.rQwait("cursor encoding",Xe))return!1;for(var Bt=this._sock.rQshiftBytes(ft),Ae=this._sock.rQshiftBytes(vt),We=new Uint8Array(me*Be*4),dt=0,Ge=0;Ge<Be;Ge++)for(var je=0;je<me;je++){var Fe=Ge*Math.ceil(me/8)+Math.floor(je/8),ce=Ae[Fe]<<je%8&128?255:0;We[dt]=Bt[dt+2],We[dt+1]=Bt[dt+1],We[dt+2]=Bt[dt],We[dt+3]=ce,dt+=4}return this._updateCursor(We,de,ke,me,Be),!0}},{key:"_handleDesktopName",value:function(){if(this._sock.rQwait("DesktopName",4))return!1;var de=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",de,4))return!1;var ke=this._sock.rQshiftStr(de);return ke=(0,I.decodeUTF8)(ke,!0),this._setDesktopName(ke),!0}},{key:"_handleExtendedDesktopSize",value:function(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;var de=this._sock.rQpeek8(),ke=4+de*16;if(this._sock.rQwait("ExtendedDesktopSize",ke))return!1;var me=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,me&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var Be=0;Be<de;Be+=1)Be===0?(this._screenID=this._sock.rQshiftBytes(4),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._screenFlags=this._sock.rQshiftBytes(4)):this._sock.rQskipBytes(16);if(this._FBU.x===1&&this._FBU.y!==0){var ft="";switch(this._FBU.y){case 1:ft="Resize is administratively prohibited";break;case 2:ft="Out of resources";break;case 3:ft="Invalid screen layout";break;default:ft="Unknown reason";break}h.Warn("Server did not accept the resize request: "+ft)}else this._resize(this._FBU.width,this._FBU.height);return!0}},{key:"_handleDataRect",value:function(){var de=this._decoders[this._FBU.encoding];if(!de)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return de.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(ke){return this._fail("Error decoding rect: "+ke),!1}}},{key:"_updateContinuousUpdates",value:function(){if(!this._enabledContinuousUpdates)return;Ce.messages.enableContinuousUpdates(this._sock,!0,0,0,this._fbWidth,this._fbHeight)}},{key:"_resize",value:function(de,ke){this._fbWidth=de,this._fbHeight=ke,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}},{key:"_xvpOp",value:function(de,ke){if(this._rfbXvpVer<de)return;h.Info("Sending XVP operation "+ke+" (version "+de+")"),Ce.messages.xvpOp(this._sock,de,ke)}},{key:"_updateCursor",value:function(de,ke,me,Be,ft){this._cursorImage={rgbaPixels:de,hotx:ke,hoty:me,w:Be,h:ft},this._refreshCursor()}},{key:"_shouldShowDotCursor",value:function(){if(!this._showDotCursor)return!1;for(var de=3;de<this._cursorImage.rgbaPixels.length;de+=4)if(this._cursorImage.rgbaPixels[de])return!1;return!0}},{key:"_refreshCursor",value:function(){if(this._rfbConnectionState!=="connecting"&&this._rfbConnectionState!=="connected")return;var de=this._shouldShowDotCursor()?Ce.cursors.dot:this._cursorImage;this._cursor.change(de.rgbaPixels,de.hotx,de.hoty,de.w,de.h)}},{key:"viewOnly",get:function(){return this._viewOnly},set:function(de){this._viewOnly=de,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(de?this._keyboard.ungrab():this._keyboard.grab())}},{key:"capabilities",get:function(){return this._capabilities}},{key:"touchButton",get:function(){return 0},set:function(de){h.Warn("Using old API!")}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(de){this._clipViewport=de,this._updateClip()}},{key:"scaleViewport",get:function(){return this._scaleViewport},set:function(de){this._scaleViewport=de,de&&this._clipViewport&&this._updateClip(),this._updateScale(),!de&&this._clipViewport&&this._updateClip()}},{key:"resizeSession",get:function(){return this._resizeSession},set:function(de){this._resizeSession=de,de&&this._requestRemoteResize()}},{key:"showDotCursor",get:function(){return this._showDotCursor},set:function(de){this._showDotCursor=de,this._refreshCursor()}},{key:"background",get:function(){return this._screen.style.background},set:function(de){this._screen.style.background=de}},{key:"qualityLevel",get:function(){return this._qualityLevel},set:function(de){if(!Number.isInteger(de)||de<0||de>9){h.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===de)return;this._qualityLevel=de,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(de){if(!Number.isInteger(de)||de<0||de>9){h.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===de)return;this._compressionLevel=de,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(de,ke){var me=de.split("").map(function(Be){return Be.charCodeAt(0)});return new e.default(me).encrypt(ke)}}]),Ce}(f.default);F.default=J,J.messages={keyEvent:function(he,Ce,Pe){var de=he._sQ,ke=he._sQlen;de[ke]=4,de[ke+1]=Pe,de[ke+2]=0,de[ke+3]=0,de[ke+4]=Ce>>24,de[ke+5]=Ce>>16,de[ke+6]=Ce>>8,de[ke+7]=Ce,he._sQlen+=8,he.flush()},QEMUExtendedKeyEvent:function(he,Ce,Pe,de){function ke(vt){var Xe=de>>8,Bt=de&255;return Xe===224&&Bt<127?Bt|128:vt}var me=he._sQ,Be=he._sQlen;me[Be]=255,me[Be+1]=0,me[Be+2]=Pe>>8,me[Be+3]=Pe,me[Be+4]=Ce>>24,me[Be+5]=Ce>>16,me[Be+6]=Ce>>8,me[Be+7]=Ce;var ft=ke(de);me[Be+8]=ft>>24,me[Be+9]=ft>>16,me[Be+10]=ft>>8,me[Be+11]=ft,he._sQlen+=12,he.flush()},pointerEvent:function(he,Ce,Pe,de){var ke=he._sQ,me=he._sQlen;ke[me]=5,ke[me+1]=de,ke[me+2]=Ce>>8,ke[me+3]=Ce,ke[me+4]=Pe>>8,ke[me+5]=Pe,he._sQlen+=6,he.flush()},_buildExtendedClipboardFlags:function(he,Ce){for(var Pe=new Uint8Array(4),de=0,ke=0,me=0;me<he.length;me++)ke|=he[me];for(var Be=0;Be<Ce.length;Be++)de|=Ce[Be];return Pe[0]=ke>>24,Pe[1]=0,Pe[2]=0,Pe[3]=de,Pe},extendedClipboardProvide:function(he,Ce,Pe){for(var de=new o.default,ke=[],me=0;me<Ce.length;me++){if(Ce[me]!=le)throw new Error("Unsupported extended clipboard format for Provide message.");Pe[me]=Pe[me].replace(/\r\n|\r|\n/gm,`\r
`);var Be=(0,I.encodeUTF8)(Pe[me]+"\0");ke.push(Be.length>>24&255,Be.length>>16&255,Be.length>>8&255,Be.length&255);for(var ft=0;ft<Be.length;ft++)ke.push(Be.charCodeAt(ft))}var vt=de.deflate(new Uint8Array(ke)),Xe=new Uint8Array(4+vt.length);Xe.set(J.messages._buildExtendedClipboardFlags([X],Ce)),Xe.set(vt,4),J.messages.clientCutText(he,Xe,!0)},extendedClipboardNotify:function(he,Ce){var Pe=J.messages._buildExtendedClipboardFlags([Y],Ce);J.messages.clientCutText(he,Pe,!0)},extendedClipboardRequest:function(he,Ce){var Pe=J.messages._buildExtendedClipboardFlags([Le],Ce);J.messages.clientCutText(he,Pe,!0)},extendedClipboardCaps:function(he,Ce,Pe){var de=Object.keys(Pe),ke=new Uint8Array(4+4*de.length);de.map(function(ft){return parseInt(ft)}),de.sort(function(ft,vt){return ft-vt}),ke.set(J.messages._buildExtendedClipboardFlags(Ce,[]));for(var me=4,Be=0;Be<de.length;Be++)ke[me]=Pe[de[Be]]>>24,ke[me+1]=Pe[de[Be]]>>16,ke[me+2]=Pe[de[Be]]>>8,ke[me+3]=Pe[de[Be]]>>0,me+=4,ke[3]|=1<<de[Be];J.messages.clientCutText(he,ke,!0)},clientCutText:function(he,Ce){var Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,de=he._sQ,ke=he._sQlen;de[ke]=6,de[ke+1]=0,de[ke+2]=0,de[ke+3]=0;var me;Pe?me=(0,w.toUnsigned32bit)(-Ce.length):me=Ce.length,de[ke+4]=me>>24,de[ke+5]=me>>16,de[ke+6]=me>>8,de[ke+7]=me,he._sQlen+=8;for(var Be=0,ft=Ce.length;ft>0;){for(var vt=Math.min(ft,he._sQbufferSize-he._sQlen),Xe=0;Xe<vt;Xe++)de[he._sQlen+Xe]=Ce[Be+Xe];he._sQlen+=vt,he.flush(),ft-=vt,Be+=vt}},setDesktopSize:function(he,Ce,Pe,de,ke){var me=he._sQ,Be=he._sQlen;me[Be]=251,me[Be+1]=0,me[Be+2]=Ce>>8,me[Be+3]=Ce,me[Be+4]=Pe>>8,me[Be+5]=Pe,me[Be+6]=1,me[Be+7]=0,me[Be+8]=de>>24,me[Be+9]=de>>16,me[Be+10]=de>>8,me[Be+11]=de,me[Be+12]=0,me[Be+13]=0,me[Be+14]=0,me[Be+15]=0,me[Be+16]=Ce>>8,me[Be+17]=Ce,me[Be+18]=Pe>>8,me[Be+19]=Pe,me[Be+20]=ke>>24,me[Be+21]=ke>>16,me[Be+22]=ke>>8,me[Be+23]=ke,he._sQlen+=24,he.flush()},clientFence:function(he,Ce,Pe){var de=he._sQ,ke=he._sQlen;de[ke]=248,de[ke+1]=0,de[ke+2]=0,de[ke+3]=0,de[ke+4]=Ce>>24,de[ke+5]=Ce>>16,de[ke+6]=Ce>>8,de[ke+7]=Ce;var me=Pe.length;de[ke+8]=me;for(var Be=0;Be<me;Be++)de[ke+9+Be]=Pe.charCodeAt(Be);he._sQlen+=9+me,he.flush()},enableContinuousUpdates:function(he,Ce,Pe,de,ke,me){var Be=he._sQ,ft=he._sQlen;Be[ft]=150,Be[ft+1]=Ce,Be[ft+2]=Pe>>8,Be[ft+3]=Pe,Be[ft+4]=de>>8,Be[ft+5]=de,Be[ft+6]=ke>>8,Be[ft+7]=ke,Be[ft+8]=me>>8,Be[ft+9]=me,he._sQlen+=10,he.flush()},pixelFormat:function(he,Ce,Pe){var de=he._sQ,ke=he._sQlen,me;Ce>16?me=32:Ce>8?me=16:me=8;var Be=Math.floor(Ce/3);de[ke]=0,de[ke+1]=0,de[ke+2]=0,de[ke+3]=0,de[ke+4]=me,de[ke+5]=Ce,de[ke+6]=0,de[ke+7]=Pe?1:0,de[ke+8]=0,de[ke+9]=(1<<Be)-1,de[ke+10]=0,de[ke+11]=(1<<Be)-1,de[ke+12]=0,de[ke+13]=(1<<Be)-1,de[ke+14]=Be*2,de[ke+15]=Be*1,de[ke+16]=Be*0,de[ke+17]=0,de[ke+18]=0,de[ke+19]=0,he._sQlen+=20,he.flush()},clientEncodings:function(he,Ce){var Pe=he._sQ,de=he._sQlen;Pe[de]=2,Pe[de+1]=0,Pe[de+2]=Ce.length>>8,Pe[de+3]=Ce.length;for(var ke=de+4,me=0;me<Ce.length;me++){var Be=Ce[me];Pe[ke]=Be>>24,Pe[ke+1]=Be>>16,Pe[ke+2]=Be>>8,Pe[ke+3]=Be,ke+=4}he._sQlen+=ke-de,he.flush()},fbUpdateRequest:function(he,Ce,Pe,de,ke,me){var Be=he._sQ,ft=he._sQlen;typeof Pe=="undefined"&&(Pe=0),typeof de=="undefined"&&(de=0),Be[ft]=3,Be[ft+1]=Ce?1:0,Be[ft+2]=Pe>>8&255,Be[ft+3]=Pe&255,Be[ft+4]=de>>8&255,Be[ft+5]=de&255,Be[ft+6]=ke>>8&255,Be[ft+7]=ke&255,Be[ft+8]=me>>8&255,Be[ft+9]=me&255,he._sQlen+=10,he.flush()},xvpOp:function(he,Ce,Pe){var de=he._sQ,ke=he._sQlen;de[ke]=250,de[ke+1]=0,de[ke+2]=Ce,de[ke+3]=Pe,he._sQlen+=4,he.flush()}},J.cursors={none:{rgbaPixels:new Uint8Array,w:0,h:0,hotx:0,hoty:0},dot:{rgbaPixels:new Uint8Array([255,255,255,255,0,0,0,255,255,255,255,255,0,0,0,255,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,255,255,255,255,255]),w:3,h:3,hotx:1,hoty:1}}},"1eCo":function(S,F,v){(function(w){w(v("VrN/"))})(function(w){"use strict";var h={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},I={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};w.defineMode("xml",function(m,g){var a=m.indentUnit,f={},d=g.htmlMode?h:I;for(var u in d)f[u]=d[u];for(var u in g)f[u]=g[u];var o,r;function l(B,W){function z(G){return W.tokenize=G,G(B,W)}var H=B.next();if(H=="<")return B.eat("!")?B.eat("[")?B.match("CDATA[")?z(e("atom","]]>")):null:B.match("--")?z(e("comment","-->")):B.match("DOCTYPE",!0,!0)?(B.eatWhile(/[\w\._\-]/),z(i(1))):null:B.eat("?")?(B.eatWhile(/[\w\._\-]/),W.tokenize=e("meta","?>"),"meta"):(o=B.eat("/")?"closeTag":"openTag",W.tokenize=n,"tag bracket");if(H=="&"){var ee;return B.eat("#")?B.eat("x")?ee=B.eatWhile(/[a-fA-F\d]/)&&B.eat(";"):ee=B.eatWhile(/[\d]/)&&B.eat(";"):ee=B.eatWhile(/[\w\.\-:]/)&&B.eat(";"),ee?"atom":"error"}else return B.eatWhile(/[^&<]/),null}l.isInText=!0;function n(B,W){var z=B.next();if(z==">"||z=="/"&&B.eat(">"))return W.tokenize=l,o=z==">"?"endTag":"selfcloseTag","tag bracket";if(z=="=")return o="equals",null;if(z=="<"){W.tokenize=l,W.state=E,W.tagName=W.tagStart=null;var H=W.tokenize(B,W);return H?H+" tag error":"tag error"}else return/[\'\"]/.test(z)?(W.tokenize=s(z),W.stringStartCol=B.column(),W.tokenize(B,W)):(B.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(B){var W=function(z,H){for(;!z.eol();)if(z.next()==B){H.tokenize=n;break}return"string"};return W.isInAttribute=!0,W}function e(B,W){return function(z,H){for(;!z.eol();){if(z.match(W)){H.tokenize=l;break}z.next()}return B}}function i(B){return function(W,z){for(var H;(H=W.next())!=null;){if(H=="<")return z.tokenize=i(B+1),z.tokenize(W,z);if(H==">")if(B==1){z.tokenize=l;break}else return z.tokenize=i(B-1),z.tokenize(W,z)}return"meta"}}function _(B,W,z){this.prev=B.context,this.tagName=W,this.indent=B.indented,this.startOfLine=z,(f.doNotIndent.hasOwnProperty(W)||B.context&&B.context.noIndent)&&(this.noIndent=!0)}function b(B){B.context&&(B.context=B.context.prev)}function y(B,W){for(var z;;){if(!B.context)return;if(z=B.context.tagName,!f.contextGrabbers.hasOwnProperty(z)||!f.contextGrabbers[z].hasOwnProperty(W))return;b(B)}}function E(B,W,z){return B=="openTag"?(z.tagStart=W.column(),c):B=="closeTag"?C:E}function c(B,W,z){return B=="word"?(z.tagName=W.current(),r="tag",k):f.allowMissingTagName&&B=="endTag"?(r="tag bracket",k(B,W,z)):(r="error",c)}function C(B,W,z){if(B=="word"){var H=W.current();return z.context&&z.context.tagName!=H&&f.implicitlyClosed.hasOwnProperty(z.context.tagName)&&b(z),z.context&&z.context.tagName==H||f.matchClosing===!1?(r="tag",x):(r="tag error",M)}else return f.allowMissingTagName&&B=="endTag"?(r="tag bracket",x(B,W,z)):(r="error",M)}function x(B,W,z){return B!="endTag"?(r="error",x):(b(z),E)}function M(B,W,z){return r="error",x(B,W,z)}function k(B,W,z){if(B=="word")return r="attribute",T;if(B=="endTag"||B=="selfcloseTag"){var H=z.tagName,ee=z.tagStart;return z.tagName=z.tagStart=null,B=="selfcloseTag"||f.autoSelfClosers.hasOwnProperty(H)?y(z,H):(y(z,H),z.context=new _(z,H,ee==z.indented)),E}return r="error",k}function T(B,W,z){return B=="equals"?R:(f.allowMissing||(r="error"),k(B,W,z))}function R(B,W,z){return B=="string"?P:B=="word"&&f.allowUnquoted?(r="string",k):(r="error",k(B,W,z))}function P(B,W,z){return B=="string"?P:k(B,W,z)}return{startState:function(B){var W={tokenize:l,state:E,indented:B||0,tagName:null,tagStart:null,context:null};return B!=null&&(W.baseIndent=B),W},token:function(B,W){if(!W.tagName&&B.sol()&&(W.indented=B.indentation()),B.eatSpace())return null;o=null;var z=W.tokenize(B,W);return(z||o)&&z!="comment"&&(r=null,W.state=W.state(o||z,B,W),r&&(z=r=="error"?z+" error":r)),z},indent:function(B,W,z){var H=B.context;if(B.tokenize.isInAttribute)return B.tagStart==B.indented?B.stringStartCol+1:B.indented+a;if(H&&H.noIndent)return w.Pass;if(B.tokenize!=n&&B.tokenize!=l)return z?z.match(/^(\s*)/)[0].length:0;if(B.tagName)return f.multilineTagIndentPastTag!==!1?B.tagStart+B.tagName.length+2:B.tagStart+a*(f.multilineTagIndentFactor||1);if(f.alignCDATA&&/<!\[CDATA\[/.test(W))return 0;var ee=W&&/^<(\/)?([\w_:\.-]*)/.exec(W);if(ee&&ee[1])for(;H;)if(H.tagName==ee[2]){H=H.prev;break}else if(f.implicitlyClosed.hasOwnProperty(H.tagName))H=H.prev;else break;else if(ee)for(;H;){var G=f.contextGrabbers[H.tagName];if(G&&G.hasOwnProperty(ee[2]))H=H.prev;else break}for(;H&&H.prev&&!H.startOfLine;)H=H.prev;return H?H.indent+a:B.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:f.htmlMode?"html":"xml",helperType:f.htmlMode?"html":"xml",skipAttribute:function(B){B.state==R&&(B.state=k)},xmlCurrentTag:function(B){return B.tagName?{name:B.tagName,close:B.type=="closeTag"}:null},xmlCurrentContext:function(B){for(var W=[],z=B.context;z;z=z.prev)z.tagName&&W.push(z.tagName);return W.reverse()}}}),w.defineMIME("text/xml","xml"),w.defineMIME("application/xml","xml"),w.mimeModes.hasOwnProperty("text/html")||w.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1j5w":function(S,F,v){"use strict";v.d(F,"d",function(){return Pe}),v.d(F,"b",function(){return Ne}),v.d(F,"c",function(){return Ue}),v.d(F,"a",function(){return Te});var w=v("VTBJ"),h=v("1OyB"),I=v("vuIU"),m=v("JX7q"),g=v("Ji7U"),a=v("LK+K"),f=v("cDcd"),d=v("I8Z2"),u=v("BGR+"),o=v("wx14"),r=v("rePB"),l=v("4IlW"),n=v("2GS6"),s=v("Gytx"),e=v.n(s),i=v("TSYQ"),_=v.n(i),b=v("U8pU"),y=v("ODXe"),E=/iPhone/i,c=/iPod/i,C=/iPad/i,x=/\bAndroid(?:.+)Mobile\b/i,M=/Android/i,k=/\bAndroid(?:.+)SD4930UR\b/i,T=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,R=/Windows Phone/i,P=/\bWindows(?:.+)ARM\b/i,B=/BlackBerry/i,W=/BB10/i,z=/Opera Mini/i,H=/\b(CriOS|Chrome)(?:.+)Mobile/i,ee=/Mobile(?:.+)Firefox\b/i;function G(Ye,st){return Ye.test(st)}function U(Ye){var st=Ye||(typeof navigator!="undefined"?navigator.userAgent:""),ut=st.split("[FBAN");if(typeof ut[1]!="undefined"){var et=ut,Re=Object(y.a)(et,1);st=Re[0]}if(ut=st.split("Twitter"),typeof ut[1]!="undefined"){var qe=ut,At=Object(y.a)(qe,1);st=At[0]}var $e={apple:{phone:G(E,st)&&!G(R,st),ipod:G(c,st),tablet:!G(E,st)&&G(C,st)&&!G(R,st),device:(G(E,st)||G(c,st)||G(C,st))&&!G(R,st)},amazon:{phone:G(k,st),tablet:!G(k,st)&&G(T,st),device:G(k,st)||G(T,st)},android:{phone:!G(R,st)&&G(k,st)||!G(R,st)&&G(x,st),tablet:!G(R,st)&&!G(k,st)&&!G(x,st)&&(G(T,st)||G(M,st)),device:!G(R,st)&&(G(k,st)||G(T,st)||G(x,st)||G(M,st))||G(/\bokhttp\b/i,st)},windows:{phone:G(R,st),tablet:G(P,st),device:G(R,st)||G(P,st)},other:{blackberry:G(B,st),blackberry10:G(W,st),opera:G(z,st),firefox:G(ee,st),chrome:G(H,st),device:G(B,st)||G(W,st)||G(z,st)||G(ee,st)||G(H,st)},any:null,phone:null,tablet:null};return $e.any=$e.apple.device||$e.android.device||$e.windows.device||$e.other.device,$e.phone=$e.apple.phone||$e.android.phone||$e.windows.phone,$e.tablet=$e.apple.tablet||$e.android.tablet||$e.windows.tablet,$e}var K=Object(w.a)(Object(w.a)({},U()),{},{isMobile:U}),L=K;function D(){}function j(Ye,st,ut){var et=st||"";return Ye.key||"".concat(et,"item_").concat(ut)}function Z(Ye){return"".concat(Ye,"-menu-")}function ie(Ye,st){var ut=-1;f.Children.forEach(Ye,function(et){ut+=1,et&&et.type&&et.type.isMenuItemGroup?f.Children.forEach(et.props.children,function(Re){ut+=1,st(Re,ut)}):st(et,ut)})}function pe(Ye,st,ut){if(!Ye||ut.find)return;f.Children.forEach(Ye,function(et){if(et){var Re=et.type;if(!Re||!(Re.isSubMenu||Re.isMenuItem||Re.isMenuItemGroup))return;st.indexOf(et.key)!==-1?ut.find=!0:et.props.children&&pe(et.props.children,st,ut)}})}var Ee=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],De=function(st){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,et=st&&typeof st.getBoundingClientRect=="function"&&st.getBoundingClientRect().width;if(et){if(ut){var Re=getComputedStyle(st),qe=Re.marginLeft,At=Re.marginRight;et+=+qe.replace("px","")+ +At.replace("px","")}et=+et.toFixed(6)}return et||0},q=function(st,ut,et){st&&Object(b.a)(st.style)==="object"&&(st.style[ut]=et)},be=function(){return L.any},ye=v("KQm4"),le=v("Ff2n"),ue=v("faye"),ne=v("bdgK"),xe=v("uciX"),$=v("8XRh"),oe={adjustX:1,adjustY:1},Le={topLeft:{points:["bl","tl"],overflow:oe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:oe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:oe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:oe,offset:[4,0]}},te={topLeft:{points:["bl","tl"],overflow:oe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:oe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:oe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:oe,offset:[4,0]}},Y=Le,X=0,J={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ve=function(st,ut,et){var Re=Z(ut),qe=st.getState();st.setState({defaultActiveFirst:Object(w.a)(Object(w.a)({},qe.defaultActiveFirst),{},Object(r.a)({},Re,et))})},he=function(Ye){Object(g.a)(ut,Ye);var st=Object(a.a)(ut);function ut(et){var Re;Object(h.a)(this,ut),Re=st.call(this,et),Re.onDestroy=function(pt){Re.props.onDestroy(pt)},Re.onKeyDown=function(pt){var wt=pt.keyCode,Ct=Re.menuInstance,Kt=Re.props,Vt=Kt.isOpen,dn=Kt.store;if(wt===l.a.ENTER)return Re.onTitleClick(pt),ve(dn,Re.props.eventKey,!0),!0;if(wt===l.a.RIGHT)return Vt?Ct.onKeyDown(pt):(Re.triggerOpenChange(!0),ve(dn,Re.props.eventKey,!0)),!0;if(wt===l.a.LEFT){var cn;if(Vt)cn=Ct.onKeyDown(pt);else return;return cn||(Re.triggerOpenChange(!1),cn=!0),cn}return Vt&&(wt===l.a.UP||wt===l.a.DOWN)?Ct.onKeyDown(pt):void 0},Re.onOpenChange=function(pt){Re.props.onOpenChange(pt)},Re.onPopupVisibleChange=function(pt){Re.triggerOpenChange(pt,pt?"mouseenter":"mouseleave")},Re.onMouseEnter=function(pt){var wt=Re.props,Ct=wt.eventKey,Kt=wt.onMouseEnter,Vt=wt.store;ve(Vt,Re.props.eventKey,!1),Kt({key:Ct,domEvent:pt})},Re.onMouseLeave=function(pt){var wt=Re.props,Ct=wt.parentMenu,Kt=wt.eventKey,Vt=wt.onMouseLeave;Ct.subMenuInstance=Object(m.a)(Re),Vt({key:Kt,domEvent:pt})},Re.onTitleMouseEnter=function(pt){var wt=Re.props,Ct=wt.eventKey,Kt=wt.onItemHover,Vt=wt.onTitleMouseEnter;Kt({key:Ct,hover:!0}),Vt({key:Ct,domEvent:pt})},Re.onTitleMouseLeave=function(pt){var wt=Re.props,Ct=wt.parentMenu,Kt=wt.eventKey,Vt=wt.onItemHover,dn=wt.onTitleMouseLeave;Ct.subMenuInstance=Object(m.a)(Re),Vt({key:Kt,hover:!1}),dn({key:Kt,domEvent:pt})},Re.onTitleClick=function(pt){var wt=Object(m.a)(Re),Ct=wt.props;if(Ct.onTitleClick({key:Ct.eventKey,domEvent:pt}),Ct.triggerSubMenuAction==="hover")return;Re.triggerOpenChange(!Ct.isOpen,"click"),ve(Ct.store,Re.props.eventKey,!1)},Re.onSubMenuClick=function(pt){typeof Re.props.onClick=="function"&&Re.props.onClick(Re.addKeyPath(pt))},Re.onSelect=function(pt){Re.props.onSelect(pt)},Re.onDeselect=function(pt){Re.props.onDeselect(pt)},Re.getPrefixCls=function(){return"".concat(Re.props.rootPrefixCls,"-submenu")},Re.getActiveClassName=function(){return"".concat(Re.getPrefixCls(),"-active")},Re.getDisabledClassName=function(){return"".concat(Re.getPrefixCls(),"-disabled")},Re.getSelectedClassName=function(){return"".concat(Re.getPrefixCls(),"-selected")},Re.getOpenClassName=function(){return"".concat(Re.props.rootPrefixCls,"-submenu-open")},Re.saveMenuInstance=function(pt){Re.menuInstance=pt},Re.addKeyPath=function(pt){return Object(w.a)(Object(w.a)({},pt),{},{keyPath:(pt.keyPath||[]).concat(Re.props.eventKey)})},Re.triggerOpenChange=function(pt,wt){var Ct=Re.props.eventKey,Kt=function(){Re.onOpenChange({key:Ct,item:Object(m.a)(Re),trigger:wt,open:pt})};wt==="mouseenter"?Re.mouseenterTimeout=setTimeout(function(){Kt()},0):Kt()},Re.isChildrenSelected=function(){var pt={find:!1};return pe(Re.props.children,Re.props.selectedKeys,pt),pt.find},Re.isOpen=function(){return Re.props.openKeys.indexOf(Re.props.eventKey)!==-1},Re.adjustWidth=function(){if(!Re.subMenuTitle||!Re.menuInstance)return;var pt=ue.findDOMNode(Re.menuInstance);if(pt.offsetWidth>=Re.subMenuTitle.offsetWidth)return;pt.style.minWidth="".concat(Re.subMenuTitle.offsetWidth,"px")},Re.saveSubMenuTitle=function(pt){Re.subMenuTitle=pt},Re.getBaseProps=function(){var pt=Object(m.a)(Re),wt=pt.props;return{mode:wt.mode==="horizontal"?"vertical":wt.mode,visible:Re.props.isOpen,level:wt.level+1,inlineIndent:wt.inlineIndent,focusable:!1,onClick:Re.onSubMenuClick,onSelect:Re.onSelect,onDeselect:Re.onDeselect,onDestroy:Re.onDestroy,selectedKeys:wt.selectedKeys,eventKey:"".concat(wt.eventKey,"-menu-"),openKeys:wt.openKeys,motion:wt.motion,onOpenChange:Re.onOpenChange,subMenuOpenDelay:wt.subMenuOpenDelay,parentMenu:Object(m.a)(Re),subMenuCloseDelay:wt.subMenuCloseDelay,forceSubMenuRender:wt.forceSubMenuRender,triggerSubMenuAction:wt.triggerSubMenuAction,builtinPlacements:wt.builtinPlacements,defaultActiveFirst:wt.store.getState().defaultActiveFirst[Z(wt.eventKey)],multiple:wt.multiple,prefixCls:wt.rootPrefixCls,id:Re.internalMenuId,manualRef:Re.saveMenuInstance,itemIcon:wt.itemIcon,expandIcon:wt.expandIcon,direction:wt.direction}},Re.getMotion=function(pt,wt){var Ct=Object(m.a)(Re),Kt=Ct.haveRendered,Vt=Re.props,dn=Vt.motion,cn=Vt.rootPrefixCls,qt=Object(w.a)(Object(w.a)({},dn),{},{leavedClassName:"".concat(cn,"-hidden"),removeOnLeave:!1,motionAppear:Kt||!wt||pt!=="inline"});return qt};var qe=et.store,At=et.eventKey,$e=qe.getState(),ht=$e.defaultActiveFirst;Re.isRootMenu=!1;var Rt=!1;return ht&&(Rt=ht[At]),ve(qe,At,Rt),Re}return Object(I.a)(ut,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Re=this,qe=this.props,At=qe.mode,$e=qe.parentMenu,ht=qe.manualRef;if(ht&&ht(this),At!=="horizontal"||!$e.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Re.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Re=this.props,qe=Re.onDestroy,At=Re.eventKey;qe&&qe(At),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Re){var qe=this,At=this.getBaseProps(),$e=this.getMotion(At.mode,At.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||At.visible||At.forceSubMenuRender,!this.haveOpened)return f.createElement("div",null);var ht=At.direction;return f.createElement($.b,Object.assign({visible:At.visible},$e),function(Rt){var pt=Rt.className,wt=Rt.style,Ct=_()("".concat(At.prefixCls,"-sub"),pt,Object(r.a)({},"".concat(At.prefixCls,"-rtl"),ht==="rtl"));return f.createElement(Ge,Object.assign({},At,{id:qe.internalMenuId,className:Ct,style:wt}),Re)})}},{key:"render",value:function(){var Re,qe=Object(w.a)({},this.props),At=qe.isOpen,$e=this.getPrefixCls(),ht=qe.mode==="inline",Rt=_()($e,"".concat($e,"-").concat(qe.mode),(Re={},Object(r.a)(Re,qe.className,!!qe.className),Object(r.a)(Re,this.getOpenClassName(),At),Object(r.a)(Re,this.getActiveClassName(),qe.active||At&&!ht),Object(r.a)(Re,this.getDisabledClassName(),qe.disabled),Object(r.a)(Re,this.getSelectedClassName(),this.isChildrenSelected()),Re));this.internalMenuId||(qe.eventKey?this.internalMenuId="".concat(qe.eventKey,"$Menu"):(X+=1,this.internalMenuId="$__$".concat(X,"$Menu")));var pt={},wt={},Ct={};qe.disabled||(pt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},wt={onClick:this.onTitleClick},Ct={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Kt={},Vt=qe.direction;ht&&(Vt==="rtl"?Kt.paddingRight=qe.inlineIndent*qe.level:Kt.paddingLeft=qe.inlineIndent*qe.level);var dn={};this.props.isOpen&&(dn={"aria-owns":this.internalMenuId});var cn=null;qe.mode!=="horizontal"&&(cn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(cn=f.createElement(this.props.expandIcon,Object(w.a)({},this.props))));var qt=f.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Kt,className:"".concat($e,"-title"),role:"button"},Ct,wt,{"aria-expanded":At},dn,{"aria-haspopup":"true",title:typeof qe.title=="string"?qe.title:void 0}),qe.title,cn||f.createElement("i",{className:"".concat($e,"-arrow")})),Lt=this.renderChildren(qe.children),Tn=qe.parentMenu.isRootMenu?qe.parentMenu.props.getPopupContainer:function(vr){return vr.parentNode},Wt=J[qe.mode],gn=qe.popupOffset?{offset:qe.popupOffset}:{},ln=qe.mode==="inline"?"":qe.popupClassName;ln+=Vt==="rtl"?" ".concat($e,"-rtl"):"";var Un=qe.disabled,In=qe.triggerSubMenuAction,Rr=qe.subMenuOpenDelay,Mt=qe.forceSubMenuRender,on=qe.subMenuCloseDelay,ea=qe.builtinPlacements;Ee.forEach(function(vr){return delete qe[vr]}),delete qe.onClick;var Vr=Vt==="rtl"?Object.assign({},te,ea):Object.assign({},Le,ea);return delete qe.direction,f.createElement("li",Object.assign({},qe,pt,{className:Rt,role:"menuitem"}),ht&&qt,ht&&Lt,!ht&&f.createElement(xe.a,{prefixCls:$e,popupClassName:_()("".concat($e,"-popup"),ln),getPopupContainer:Tn,builtinPlacements:Vr,popupPlacement:Wt,popupVisible:At,popupAlign:gn,popup:Lt,action:Un?[]:[In],mouseEnterDelay:Rr,mouseLeaveDelay:on,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Mt},qt))}}]),ut}(f.Component);he.defaultProps={onMouseEnter:D,onMouseLeave:D,onTitleMouseEnter:D,onTitleMouseLeave:D,onTitleClick:D,manualRef:D,mode:"vertical",title:""};var Ce=Object(d.b)(function(Ye,st){var ut=Ye.openKeys,et=Ye.activeKey,Re=Ye.selectedKeys,qe=st.eventKey,At=st.subMenuKey;return{isOpen:ut.indexOf(qe)>-1,active:et[At]===qe,selectedKeys:Re}})(he);Ce.isSubMenu=!0;var Pe=Ce,de="menuitem-overflowed",ke=.5,me=function(Ye){Object(g.a)(ut,Ye);var st=Object(a.a)(ut);function ut(){var et;return Object(h.a)(this,ut),et=st.apply(this,arguments),et.resizeObserver=null,et.mutationObserver=null,et.originalTotalWidth=0,et.overflowedItems=[],et.menuItemSizes=[],et.cancelFrameId=null,et.state={lastVisibleIndex:void 0},et.getMenuItemNodes=function(){var Re=et.props.prefixCls,qe=ue.findDOMNode(Object(m.a)(et));return qe?[].slice.call(qe.children).filter(function(At){return At.className.split(" ").indexOf("".concat(Re,"-overflowed-submenu"))<0}):[]},et.getOverflowedSubMenuItem=function(Re,qe,At){var $e=et.props,ht=$e.overflowedIndicator,Rt=$e.level,pt=$e.mode,wt=$e.prefixCls,Ct=$e.theme;if(Rt!==1||pt!=="horizontal")return null;var Kt=et.props.children[0],Vt=Kt.props,dn=Vt.children,cn=Vt.title,qt=Vt.style,Lt=Object(le.a)(Vt,["children","title","style"]),Tn=Object(w.a)({},qt),Wt="".concat(Re,"-overflowed-indicator"),gn="".concat(Re,"-overflowed-indicator");qe.length===0&&At!==!0?Tn=Object(w.a)(Object(w.a)({},Tn),{},{display:"none"}):At&&(Tn=Object(w.a)(Object(w.a)({},Tn),{},{visibility:"hidden",position:"absolute"}),Wt="".concat(Wt,"-placeholder"),gn="".concat(gn,"-placeholder"));var ln=Ct?"".concat(wt,"-").concat(Ct):"",Un={};return Ee.forEach(function(In){Lt[In]!==void 0&&(Un[In]=Lt[In])}),f.createElement(Pe,Object.assign({title:ht,className:"".concat(wt,"-overflowed-submenu"),popupClassName:ln},Un,{key:Wt,eventKey:gn,disabled:!1,style:Tn}),qe)},et.setChildrenWidthAndResize=function(){if(et.props.mode!=="horizontal")return;var Re=ue.findDOMNode(Object(m.a)(et));if(!Re)return;var qe=Re.children;if(!qe||qe.length===0)return;var At=Re.children[qe.length-1];q(At,"display","inline-block");var $e=et.getMenuItemNodes(),ht=$e.filter(function(Rt){return Rt.className.split(" ").indexOf(de)>=0});ht.forEach(function(Rt){q(Rt,"display","inline-block")}),et.menuItemSizes=$e.map(function(Rt){return De(Rt,!0)}),ht.forEach(function(Rt){q(Rt,"display","none")}),et.overflowedIndicatorWidth=De(Re.children[Re.children.length-1],!0),et.originalTotalWidth=et.menuItemSizes.reduce(function(Rt,pt){return Rt+pt},0),et.handleResize(),q(At,"display","none")},et.handleResize=function(){if(et.props.mode!=="horizontal")return;var Re=ue.findDOMNode(Object(m.a)(et));if(!Re)return;var qe=De(Re);et.overflowedItems=[];var At=0,$e;et.originalTotalWidth>qe+ke&&($e=-1,et.menuItemSizes.forEach(function(ht){At+=ht,At+et.overflowedIndicatorWidth<=qe&&($e+=1)})),et.setState({lastVisibleIndex:$e})},et}return Object(I.a)(ut,[{key:"componentDidMount",value:function(){var Re=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var qe=ue.findDOMNode(this);if(!qe)return;this.resizeObserver=new ne.default(function(At){At.forEach(function(){var $e=Re.cancelFrameId;cancelAnimationFrame($e),Re.cancelFrameId=requestAnimationFrame(Re.setChildrenWidthAndResize)})}),[].slice.call(qe.children).concat(qe).forEach(function(At){Re.resizeObserver.observe(At)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Re.resizeObserver.disconnect(),[].slice.call(qe.children).concat(qe).forEach(function(At){Re.resizeObserver.observe(At)}),Re.setChildrenWidthAndResize()}),this.mutationObserver.observe(qe,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Re){var qe=this,At=this.state.lastVisibleIndex;return(Re||[]).reduce(function($e,ht,Rt){var pt=ht;if(qe.props.mode==="horizontal"){var wt=qe.getOverflowedSubMenuItem(ht.props.eventKey,[]);At!==void 0&&qe.props.className.indexOf("".concat(qe.props.prefixCls,"-root"))!==-1&&(Rt>At&&(pt=f.cloneElement(ht,{style:{display:"none"},eventKey:"".concat(ht.props.eventKey,"-hidden"),className:"".concat(de)})),Rt===At+1&&(qe.overflowedItems=Re.slice(At+1).map(function(Kt){return f.cloneElement(Kt,{key:Kt.props.eventKey,mode:"vertical-left"})}),wt=qe.getOverflowedSubMenuItem(ht.props.eventKey,qe.overflowedItems)));var Ct=[].concat(Object(ye.a)($e),[wt,pt]);return Rt===Re.length-1&&Ct.push(qe.getOverflowedSubMenuItem(ht.props.eventKey,[],!0)),Ct}return[].concat(Object(ye.a)($e),[pt])},[])}},{key:"render",value:function(){var Re=this.props,qe=Re.visible,At=Re.prefixCls,$e=Re.overflowedIndicator,ht=Re.mode,Rt=Re.level,pt=Re.tag,wt=Re.children,Ct=Re.theme,Kt=Object(le.a)(Re,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Vt=pt;return f.createElement(Vt,Object.assign({},Kt),this.renderChildren(wt))}}]),ut}(f.Component);me.defaultProps={tag:"div",className:""};var Be=me;function ft(Ye){return Ye.length?Ye.every(function(st){return!!st.props.disabled}):!0}function vt(Ye,st,ut){var et=Ye.getState();Ye.setState({activeKey:Object(w.a)(Object(w.a)({},et.activeKey),{},Object(r.a)({},st,ut))})}function Xe(Ye){return Ye.eventKey||"0-menu-"}function Bt(Ye,st){var ut=st,et=Ye.children,Re=Ye.eventKey;if(ut){var qe;if(ie(et,function(At,$e){At&&At.props&&!At.props.disabled&&ut===j(At,Re,$e)&&(qe=!0)}),qe)return ut}return ut=null,Ye.defaultActiveFirst&&ie(et,function(At,$e){!ut&&At&&!At.props.disabled&&(ut=j(At,Re,$e))}),ut}function Ae(Ye){if(Ye){var st=this.instanceArray.indexOf(Ye);st!==-1?this.instanceArray[st]=Ye:this.instanceArray.push(Ye)}}var We=function(Ye){Object(g.a)(ut,Ye);var st=Object(a.a)(ut);function ut(et){var Re;return Object(h.a)(this,ut),Re=st.call(this,et),Re.onKeyDown=function(qe,At){var $e=qe.keyCode,ht;if(Re.getFlatInstanceArray().forEach(function(pt){pt&&pt.props.active&&pt.onKeyDown&&(ht=pt.onKeyDown(qe))}),ht)return 1;var Rt=null;return($e===l.a.UP||$e===l.a.DOWN)&&(Rt=Re.step($e===l.a.UP?-1:1)),Rt?(qe.preventDefault(),vt(Re.props.store,Xe(Re.props),Rt.props.eventKey),typeof At=="function"&&At(Rt),1):void 0},Re.onItemHover=function(qe){var At=qe.key,$e=qe.hover;vt(Re.props.store,Xe(Re.props),$e?At:null)},Re.onDeselect=function(qe){Re.props.onDeselect(qe)},Re.onSelect=function(qe){Re.props.onSelect(qe)},Re.onClick=function(qe){Re.props.onClick(qe)},Re.onOpenChange=function(qe){Re.props.onOpenChange(qe)},Re.onDestroy=function(qe){Re.props.onDestroy(qe)},Re.getFlatInstanceArray=function(){return Re.instanceArray},Re.step=function(qe){var At=Re.getFlatInstanceArray(),$e=Re.props.store.getState().activeKey[Xe(Re.props)],ht=At.length;if(!ht)return null;qe<0&&(At=At.concat().reverse());var Rt=-1;if(At.every(function(Kt,Vt){return Kt&&Kt.props.eventKey===$e?(Rt=Vt,!1):!0}),!Re.props.defaultActiveFirst&&Rt!==-1&&ft(At.slice(Rt,ht-1)))return;var pt=(Rt+1)%ht,wt=pt;do{var Ct=At[wt];if(!Ct||Ct.props.disabled)wt=(wt+1)%ht;else return Ct}while(wt!==pt);return null},Re.renderCommonMenuItem=function(qe,At,$e){var ht=Re.props.store.getState(),Rt=Object(m.a)(Re),pt=Rt.props,wt=j(qe,pt.eventKey,At),Ct=qe.props;if(!Ct||typeof qe.type=="string")return qe;var Kt=wt===ht.activeKey,Vt=Object(w.a)(Object(w.a)({mode:Ct.mode||pt.mode,level:pt.level,inlineIndent:pt.inlineIndent,renderMenuItem:Re.renderMenuItem,rootPrefixCls:pt.prefixCls,index:At,parentMenu:pt.parentMenu,manualRef:Ct.disabled?void 0:Object(n.a)(qe.ref,Ae.bind(Object(m.a)(Re))),eventKey:wt,active:!Ct.disabled&&Kt,multiple:pt.multiple,onClick:function(cn){(Ct.onClick||D)(cn),Re.onClick(cn)},onItemHover:Re.onItemHover,motion:pt.motion,subMenuOpenDelay:pt.subMenuOpenDelay,subMenuCloseDelay:pt.subMenuCloseDelay,forceSubMenuRender:pt.forceSubMenuRender,onOpenChange:Re.onOpenChange,onDeselect:Re.onDeselect,onSelect:Re.onSelect,builtinPlacements:pt.builtinPlacements,itemIcon:Ct.itemIcon||Re.props.itemIcon,expandIcon:Ct.expandIcon||Re.props.expandIcon},$e),{},{direction:pt.direction});return(pt.mode==="inline"||be())&&(Vt.triggerSubMenuAction="click"),f.cloneElement(qe,Vt)},Re.renderMenuItem=function(qe,At,$e){if(!qe)return null;var ht=Re.props.store.getState(),Rt={openKeys:ht.openKeys,selectedKeys:ht.selectedKeys,triggerSubMenuAction:Re.props.triggerSubMenuAction,subMenuKey:$e};return Re.renderCommonMenuItem(qe,At,Rt)},et.store.setState({activeKey:Object(w.a)(Object(w.a)({},et.store.getState().activeKey),{},Object(r.a)({},et.eventKey,Bt(et,et.activeKey)))}),Re.instanceArray=[],Re}return Object(I.a)(ut,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Re){return this.props.visible||Re.visible||this.props.className!==Re.className||!e()(this.props.style,Re.style)}},{key:"componentDidUpdate",value:function(Re){var qe=this.props,At="activeKey"in qe?qe.activeKey:qe.store.getState().activeKey[Xe(qe)],$e=Bt(qe,At);if($e!==At)vt(qe.store,Xe(qe),$e);else if("activeKey"in Re){var ht=Bt(Re,Re.activeKey);$e!==ht&&vt(qe.store,Xe(qe),$e)}}},{key:"render",value:function(){var Re=this,qe=Object(o.a)({},this.props);this.instanceArray=[];var At=_()(qe.prefixCls,qe.className,"".concat(qe.prefixCls,"-").concat(qe.mode)),$e={className:At,role:qe.role||"menu"};qe.id&&($e.id=qe.id),qe.focusable&&($e.tabIndex=0,$e.onKeyDown=this.onKeyDown);var ht=qe.prefixCls,Rt=qe.eventKey,pt=qe.visible,wt=qe.level,Ct=qe.mode,Kt=qe.overflowedIndicator,Vt=qe.theme;return Ee.forEach(function(dn){return delete qe[dn]}),delete qe.onClick,f.createElement(Be,Object.assign({},qe,{prefixCls:ht,mode:Ct,tag:"ul",level:wt,theme:Vt,visible:pt,overflowedIndicator:Kt},$e),f.Children.map(qe.children,function(dn,cn){return Re.renderMenuItem(dn,cn,Rt||"0-menu-")}))}}]),ut}(f.Component);We.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:D};var dt=Object(d.b)()(We),Ge=dt,je=v("Kwbf");function Fe(Ye,st,ut){var et=Ye.prefixCls,Re=Ye.motion,qe=Ye.defaultMotions,At=qe===void 0?{}:qe,$e=Ye.openAnimation,ht=Ye.openTransitionName,Rt=st.switchingModeFromInline;if(Re)return Re;if(Object(b.a)($e)==="object"&&$e)Object(je.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof $e=="string")return{motionName:"".concat(et,"-open-").concat($e)};if(ht)return{motionName:ht};var pt=At[ut];return pt||(Rt?null:At.other)}var ce=function(Ye){Object(g.a)(ut,Ye);var st=Object(a.a)(ut);function ut(et){var Re;Object(h.a)(this,ut),Re=st.call(this,et),Re.inlineOpenKeys=[],Re.onSelect=function($e){var ht=Object(m.a)(Re),Rt=ht.props;if(Rt.selectable){var pt=Re.store.getState(),wt=pt.selectedKeys,Ct=$e.key;Rt.multiple?wt=wt.concat([Ct]):wt=[Ct],"selectedKeys"in Rt||Re.store.setState({selectedKeys:wt}),Rt.onSelect(Object(w.a)(Object(w.a)({},$e),{},{selectedKeys:wt}))}},Re.onClick=function($e){var ht=Re.getRealMenuMode(),Rt=Object(m.a)(Re),pt=Rt.store,wt=Rt.props.onOpenChange;ht!=="inline"&&!("openKeys"in Re.props)&&(pt.setState({openKeys:[]}),wt([])),Re.props.onClick($e)},Re.onKeyDown=function($e,ht){Re.innerMenu.getWrappedInstance().onKeyDown($e,ht)},Re.onOpenChange=function($e){var ht=Object(m.a)(Re),Rt=ht.props,pt=Re.store.getState().openKeys.concat(),wt=!1,Ct=function(Vt){var dn=!1;if(Vt.open)dn=pt.indexOf(Vt.key)===-1,dn&&pt.push(Vt.key);else{var cn=pt.indexOf(Vt.key);dn=cn!==-1,dn&&pt.splice(cn,1)}wt=wt||dn};Array.isArray($e)?$e.forEach(Ct):Ct($e),wt&&("openKeys"in Re.props||Re.store.setState({openKeys:pt}),Rt.onOpenChange(pt))},Re.onDeselect=function($e){var ht=Object(m.a)(Re),Rt=ht.props;if(Rt.selectable){var pt=Re.store.getState().selectedKeys.concat(),wt=$e.key,Ct=pt.indexOf(wt);Ct!==-1&&pt.splice(Ct,1),"selectedKeys"in Rt||Re.store.setState({selectedKeys:pt}),Rt.onDeselect(Object(w.a)(Object(w.a)({},$e),{},{selectedKeys:pt}))}},Re.onMouseEnter=function($e){Re.restoreModeVerticalFromInline();var ht=Re.props.onMouseEnter;ht&&ht($e)},Re.onTransitionEnd=function($e){var ht=$e.propertyName==="width"&&$e.target===$e.currentTarget,Rt=$e.target.className,pt=Object.prototype.toString.call(Rt)==="[object SVGAnimatedString]"?Rt.animVal:Rt,wt=$e.propertyName==="font-size"&&pt.indexOf("anticon")>=0;(ht||wt)&&Re.restoreModeVerticalFromInline()},Re.setInnerMenu=function($e){Re.innerMenu=$e},Re.isRootMenu=!0;var qe=et.defaultSelectedKeys,At=et.defaultOpenKeys;return"selectedKeys"in et&&(qe=et.selectedKeys||[]),"openKeys"in et&&(At=et.openKeys||[]),Re.store=Object(d.c)({selectedKeys:qe,openKeys:At,activeKey:{"0-menu-":Bt(et,et.activeKey)}}),Re.state={switchingModeFromInline:!1},Re}return Object(I.a)(ut,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Re){this.updateOpentKeysWhenSwitchMode(Re),this.updateMiniStore();var qe=this.props,At=qe.siderCollapsed,$e=qe.inlineCollapsed,ht=qe.onOpenChange;(!Re.inlineCollapsed&&$e||!Re.siderCollapsed&&At)&&ht([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Re){var qe=this.props,At=this.store,$e=this.inlineOpenKeys,ht=At.getState(),Rt={};Re.mode==="inline"&&qe.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in qe||((qe.inlineCollapsed&&!Re.inlineCollapsed||qe.siderCollapsed&&!Re.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=ht.openKeys.concat(),Rt.openKeys=[]),(!qe.inlineCollapsed&&Re.inlineCollapsed||!qe.siderCollapsed&&Re.siderCollapsed)&&(Rt.openKeys=$e,this.inlineOpenKeys=[])),Object.keys(Rt).length&&At.setState(Rt)}},{key:"updateMenuDisplay",value:function(){var Re=this.props.collapsedWidth,qe=this.store,At=this.prevOpenKeys,$e=this.getInlineCollapsed()&&(Re===0||Re==="0"||Re==="0px");$e?(this.prevOpenKeys=qe.getState().openKeys.concat(),this.store.setState({openKeys:[]})):At&&(this.store.setState({openKeys:At}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Re=this.props.mode,qe=this.state.switchingModeFromInline,At=this.getInlineCollapsed();return qe&&At?"inline":At?"vertical":Re}},{key:"getInlineCollapsed",value:function(){var Re=this.props,qe=Re.inlineCollapsed,At=Re.siderCollapsed;return At!==void 0?At:qe}},{key:"restoreModeVerticalFromInline",value:function(){var Re=this.state.switchingModeFromInline;Re&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Re=Object(w.a)({},Object(u.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),qe=this.getRealMenuMode();return Re.className+=" ".concat(Re.prefixCls,"-root"),Re.direction==="rtl"&&(Re.className+=" ".concat(Re.prefixCls,"-rtl")),Re=Object(w.a)(Object(w.a)({},Re),{},{mode:qe,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Fe(this.props,this.state,qe)}),delete Re.openAnimation,delete Re.openTransitionName,f.createElement(d.a,{store:this.store},f.createElement(Ge,Object.assign({},Re,{ref:this.setInnerMenu}),this.props.children))}}]),ut}(f.Component);ce.defaultProps={selectable:!0,onClick:D,onSelect:D,onOpenChange:D,onDeselect:D,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:f.createElement("span",null,"\xB7\xB7\xB7")};var we=ce,se=function(Ye){Object(g.a)(ut,Ye);var st=Object(a.a)(ut);function ut(){var et;return Object(h.a)(this,ut),et=st.apply(this,arguments),et.onKeyDown=function(Re){var qe=Re.keyCode;return qe===l.a.ENTER?(et.onClick(Re),!0):void 0},et.onMouseLeave=function(Re){var qe=et.props,At=qe.eventKey,$e=qe.onItemHover,ht=qe.onMouseLeave;$e({key:At,hover:!1}),ht({key:At,domEvent:Re})},et.onMouseEnter=function(Re){var qe=et.props,At=qe.eventKey,$e=qe.onItemHover,ht=qe.onMouseEnter;$e({key:At,hover:!0}),ht({key:At,domEvent:Re})},et.onClick=function(Re){var qe=et.props,At=qe.eventKey,$e=qe.multiple,ht=qe.onClick,Rt=qe.onSelect,pt=qe.onDeselect,wt=qe.isSelected,Ct={key:At,keyPath:[At],item:Object(m.a)(et),domEvent:Re};ht(Ct),$e?wt?pt(Ct):Rt(Ct):wt||Rt(Ct)},et.saveNode=function(Re){et.node=Re},et}return Object(I.a)(ut,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Re=this.props;Re.onDestroy&&Re.onDestroy(Re.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Re,qe=Object(w.a)({},this.props),At=_()(this.getPrefixCls(),qe.className,(Re={},Object(r.a)(Re,this.getActiveClassName(),!qe.disabled&&qe.active),Object(r.a)(Re,this.getSelectedClassName(),qe.isSelected),Object(r.a)(Re,this.getDisabledClassName(),qe.disabled),Re)),$e=Object(w.a)(Object(w.a)({},qe.attribute),{},{title:typeof qe.title=="string"?qe.title:void 0,className:At,role:qe.role||"menuitem","aria-disabled":qe.disabled});qe.role==="option"?$e=Object(w.a)(Object(w.a)({},$e),{},{role:"option","aria-selected":qe.isSelected}):(qe.role===null||qe.role==="none")&&($e.role="none");var ht={onClick:qe.disabled?null:this.onClick,onMouseLeave:qe.disabled?null:this.onMouseLeave,onMouseEnter:qe.disabled?null:this.onMouseEnter},Rt=Object(w.a)({},qe.style);qe.mode==="inline"&&(qe.direction==="rtl"?Rt.paddingRight=qe.inlineIndent*qe.level:Rt.paddingLeft=qe.inlineIndent*qe.level),Ee.forEach(function(wt){return delete qe[wt]}),delete qe.direction;var pt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(pt=f.createElement(this.props.itemIcon,this.props)),f.createElement("li",Object.assign({},Object(u.a)(qe,["onClick","onMouseEnter","onMouseLeave","onSelect"]),$e,ht,{style:Rt,ref:this.saveNode}),qe.children,pt)}}]),ut}(f.Component);se.isMenuItem=!0,se.defaultProps={onSelect:D,onMouseEnter:D,onMouseLeave:D,manualRef:D};var _e=Object(d.b)(function(Ye,st){var ut=Ye.activeKey,et=Ye.selectedKeys,Re=st.eventKey,qe=st.subMenuKey;return{active:ut[qe]===Re,isSelected:et.indexOf(Re)!==-1}})(se),Ne=_e,Q=function(Ye){Object(g.a)(ut,Ye);var st=Object(a.a)(ut);function ut(){var et;return Object(h.a)(this,ut),et=st.apply(this,arguments),et.renderInnerMenuItem=function(Re){var qe=et.props,At=qe.renderMenuItem,$e=qe.index;return At(Re,$e,et.props.subMenuKey)},et}return Object(I.a)(ut,[{key:"render",value:function(){var Re=Object(o.a)({},this.props),qe=Re.className,At=qe===void 0?"":qe,$e=Re.rootPrefixCls,ht="".concat($e,"-item-group-title"),Rt="".concat($e,"-item-group-list"),pt=Re.title,wt=Re.children;return Ee.forEach(function(Ct){return delete Re[Ct]}),delete Re.onClick,delete Re.direction,f.createElement("li",Object.assign({},Re,{className:"".concat(At," ").concat($e,"-item-group")}),f.createElement("div",{className:ht,title:typeof pt=="string"?pt:void 0},pt),f.createElement("ul",{className:Rt},f.Children.map(wt,this.renderInnerMenuItem)))}}]),ut}(f.Component);Q.isMenuItemGroup=!0,Q.defaultProps={disabled:!0};var Ue=Q,Ze=function(st){var ut=st.className,et=st.rootPrefixCls,Re=st.style;return f.createElement("li",{className:"".concat(ut," ").concat(et,"-item-divider"),style:Re})};Ze.defaultProps={disabled:!0,className:"",style:{}};var Te=Ze,He=F.e=we},"1q3G":function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=w;function w(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},"1uat":function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("MlIO"))})(this,function(w){return function(){var h=w,I=h.lib,m=I.Hasher,g=h.x64,a=g.Word,f=g.WordArray,d=h.algo;function u(){return a.create.apply(a,arguments)}var o=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],r=[];(function(){for(var n=0;n<80;n++)r[n]=u()})();var l=d.SHA512=m.extend({_doReset:function(){this._hash=new f.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(n,s){for(var e=this._hash.words,i=e[0],_=e[1],b=e[2],y=e[3],E=e[4],c=e[5],C=e[6],x=e[7],M=i.high,k=i.low,T=_.high,R=_.low,P=b.high,B=b.low,W=y.high,z=y.low,H=E.high,ee=E.low,G=c.high,U=c.low,K=C.high,L=C.low,D=x.high,j=x.low,Z=M,ie=k,pe=T,Ee=R,De=P,q=B,be=W,ye=z,le=H,ue=ee,ne=G,xe=U,$=K,oe=L,Le=D,te=j,Y=0;Y<80;Y++){var X,J,ve=r[Y];if(Y<16)J=ve.high=n[s+Y*2]|0,X=ve.low=n[s+Y*2+1]|0;else{var he=r[Y-15],Ce=he.high,Pe=he.low,de=(Ce>>>1|Pe<<31)^(Ce>>>8|Pe<<24)^Ce>>>7,ke=(Pe>>>1|Ce<<31)^(Pe>>>8|Ce<<24)^(Pe>>>7|Ce<<25),me=r[Y-2],Be=me.high,ft=me.low,vt=(Be>>>19|ft<<13)^(Be<<3|ft>>>29)^Be>>>6,Xe=(ft>>>19|Be<<13)^(ft<<3|Be>>>29)^(ft>>>6|Be<<26),Bt=r[Y-7],Ae=Bt.high,We=Bt.low,dt=r[Y-16],Ge=dt.high,je=dt.low;X=ke+We,J=de+Ae+(X>>>0<ke>>>0?1:0),X=X+Xe,J=J+vt+(X>>>0<Xe>>>0?1:0),X=X+je,J=J+Ge+(X>>>0<je>>>0?1:0),ve.high=J,ve.low=X}var Fe=le&ne^~le&$,ce=ue&xe^~ue&oe,we=Z&pe^Z&De^pe&De,se=ie&Ee^ie&q^Ee&q,_e=(Z>>>28|ie<<4)^(Z<<30|ie>>>2)^(Z<<25|ie>>>7),Ne=(ie>>>28|Z<<4)^(ie<<30|Z>>>2)^(ie<<25|Z>>>7),Q=(le>>>14|ue<<18)^(le>>>18|ue<<14)^(le<<23|ue>>>9),Ue=(ue>>>14|le<<18)^(ue>>>18|le<<14)^(ue<<23|le>>>9),Ze=o[Y],Te=Ze.high,He=Ze.low,Ye=te+Ue,st=Le+Q+(Ye>>>0<te>>>0?1:0),Ye=Ye+ce,st=st+Fe+(Ye>>>0<ce>>>0?1:0),Ye=Ye+He,st=st+Te+(Ye>>>0<He>>>0?1:0),Ye=Ye+X,st=st+J+(Ye>>>0<X>>>0?1:0),ut=Ne+se,et=_e+we+(ut>>>0<Ne>>>0?1:0);Le=$,te=oe,$=ne,oe=xe,ne=le,xe=ue,ue=ye+Ye|0,le=be+st+(ue>>>0<ye>>>0?1:0)|0,be=De,ye=q,De=pe,q=Ee,pe=Z,Ee=ie,ie=Ye+ut|0,Z=st+et+(ie>>>0<Ye>>>0?1:0)|0}k=i.low=k+ie,i.high=M+Z+(k>>>0<ie>>>0?1:0),R=_.low=R+Ee,_.high=T+pe+(R>>>0<Ee>>>0?1:0),B=b.low=B+q,b.high=P+De+(B>>>0<q>>>0?1:0),z=y.low=z+ye,y.high=W+be+(z>>>0<ye>>>0?1:0),ee=E.low=ee+ue,E.high=H+le+(ee>>>0<ue>>>0?1:0),U=c.low=U+xe,c.high=G+ne+(U>>>0<xe>>>0?1:0),L=C.low=L+oe,C.high=K+$+(L>>>0<oe>>>0?1:0),j=x.low=j+te,x.high=D+Le+(j>>>0<te>>>0?1:0)},_doFinalize:function(){var n=this._data,s=n.words,e=this._nDataBytes*8,i=n.sigBytes*8;s[i>>>5]|=128<<24-i%32,s[(i+128>>>10<<5)+30]=Math.floor(e/4294967296),s[(i+128>>>10<<5)+31]=e,n.sigBytes=s.length*4,this._process();var _=this._hash.toX32();return _},clone:function(){var n=m.clone.call(this);return n._hash=this._hash.clone(),n},blockSize:1024/32});h.SHA512=m._createHelper(l),h.HmacSHA512=m._createHmacHelper(l)}(),w.SHA512})},"25Vc":function(S,F,v){S.exports={wrap:"wrap___3gf4v",title:"title___BnbVm",path:"path___1Prpu",colorBlue:"colorBlue___1sUTa"}},"34/K":function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;function w(g,a){if(!(g instanceof a))throw new TypeError("Cannot call a class as a function")}function h(g,a){for(var f=0;f<a.length;f++){var d=a[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(g,d.key,d)}}function I(g,a,f){return a&&h(g.prototype,a),f&&h(g,f),g}var m=function(){function g(){w(this,g),this._lines=0}return I(g,[{key:"decodeRect",value:function(f,d,u,o,r,l,n){this._lines===0&&(this._lines=o);var s=n==8?1:4,e=u*s;if(r.rQwait("RAW",e))return!1;var i=d+(o-this._lines),_=Math.min(this._lines,Math.floor(r.rQlen/e)),b=r.rQ,y=r.rQi;if(n==8){for(var E=u*_,c=new Uint8Array(E*4),C=0;C<E;C++)c[C*4+0]=(b[y+C]>>0&3)*255/3,c[C*4+1]=(b[y+C]>>2&3)*255/3,c[C*4+2]=(b[y+C]>>4&3)*255/3,c[C*4+4]=0;b=c,y=0}return l.blitImage(f,i,u,_,b,y),r.rQskipBytes(_*e),this._lines-=_,!(this._lines>0)}}]),g}();F.default=m},"362i":function(S,F,v){S.exports=v.p+"static/passpart.cc679602.png"},"3690":function(S,F,v){"use strict";function w(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(r){return typeof r}:w=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},w(u)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var h=m(v("Lo0S"));function I(){if(typeof WeakMap!="function")return null;var u=new WeakMap;return I=function(){return u},u}function m(u){if(u&&u.__esModule)return u;if(u===null||w(u)!=="object"&&typeof u!="function")return{default:u};var o=I();if(o&&o.has(u))return o.get(u);var r={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in u)if(Object.prototype.hasOwnProperty.call(u,n)){var s=l?Object.getOwnPropertyDescriptor(u,n):null;s&&(s.get||s.set)?Object.defineProperty(r,n,s):r[n]=u[n]}return r.default=u,o&&o.set(u,r),r}function g(u,o){if(!(u instanceof o))throw new TypeError("Cannot call a class as a function")}function a(u,o){for(var r=0;r<o.length;r++){var l=o[r];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(u,l.key,l)}}function f(u,o,r){return o&&a(u.prototype,o),r&&a(u,r),u}var d=function(){function u(){g(this,u),this._tiles=0,this._lastsubencoding=0}return f(u,[{key:"decodeRect",value:function(r,l,n,s,e,i,_){for(this._tiles===0&&(this._tilesX=Math.ceil(n/16),this._tilesY=Math.ceil(s/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);this._tiles>0;){var b=1;if(e.rQwait("HEXTILE",b))return!1;var y=e.rQ,E=e.rQi,c=y[E];if(c>30)throw new Error("Illegal hextile subencoding (subencoding: "+c+")");var C=this._totalTiles-this._tiles,x=C%this._tilesX,M=Math.floor(C/this._tilesX),k=r+x*16,T=l+M*16,R=Math.min(16,r+n-k),P=Math.min(16,l+s-T);if(c&1)b+=R*P*4;else if(c&2&&(b+=4),c&4&&(b+=4),c&8){if(b++,e.rQwait("HEXTILE",b))return!1;var B=y[E+b-1];c&16?b+=B*(4+2):b+=B*2}if(e.rQwait("HEXTILE",b))return!1;if(E++,c===0)this._lastsubencoding&1?h.Debug(" Ignoring blank after RAW"):i.fillRect(k,T,R,P,this._background);else if(c&1)i.blitImage(k,T,R,P,y,E),E+=b-1;else{if(c&2&&(this._background=[y[E],y[E+1],y[E+2],y[E+3]],E+=4),c&4&&(this._foreground=[y[E],y[E+1],y[E+2],y[E+3]],E+=4),i.startTile(k,T,R,P,this._background),c&8){var W=y[E];E++;for(var z=0;z<W;z++){var H=void 0;c&16?(H=[y[E],y[E+1],y[E+2],y[E+3]],E+=4):H=this._foreground;var ee=y[E];E++;var G=ee>>4,U=ee&15,K=y[E];E++;var L=(K>>4)+1,D=(K&15)+1;i.subTile(G,U,L,D,H)}}i.finishTile()}e.rQi=E,this._lastsubencoding=c,this._tiles--}return!0}}]),u}();F.default=d},"3y9D":function(S,F,v){(function(w,h){S.exports=F=h(v("Ib8C"))})(this,function(w){return function(){var h=w,I=h.lib,m=I.WordArray,g=I.Hasher,a=h.algo,f=[],d=a.SHA1=g.extend({_doReset:function(){this._hash=new m.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,o){for(var r=this._hash.words,l=r[0],n=r[1],s=r[2],e=r[3],i=r[4],_=0;_<80;_++){if(_<16)f[_]=u[o+_]|0;else{var b=f[_-3]^f[_-8]^f[_-14]^f[_-16];f[_]=b<<1|b>>>31}var y=(l<<5|l>>>27)+i+f[_];_<20?y+=(n&s|~n&e)+1518500249:_<40?y+=(n^s^e)+1859775393:_<60?y+=(n&s|n&e|s&e)-1894007588:y+=(n^s^e)-899497514,i=e,e=s,s=n<<30|n>>>2,n=l,l=y}r[0]=r[0]+l|0,r[1]=r[1]+n|0,r[2]=r[2]+s|0,r[3]=r[3]+e|0,r[4]=r[4]+i|0},_doFinalize:function(){var u=this._data,o=u.words,r=this._nDataBytes*8,l=u.sigBytes*8;return o[l>>>5]|=128<<24-l%32,o[(l+64>>>9<<4)+14]=Math.floor(r/4294967296),o[(l+64>>>9<<4)+15]=r,u.sigBytes=o.length*4,this._process(),this._hash},clone:function(){var u=g.clone.call(this);return u._hash=this._hash.clone(),u}});h.SHA1=g._createHelper(d),h.HmacSHA1=g._createHmacHelper(d)}(),w.SHA1})},4:function(S,F){},"4K8j":function(S,F,v){"use strict";v.r(F);var w=v("14J3"),h=v("BMrR"),I=v("jCWc"),m=v("kPKH"),g=v("cDcd"),a=v.n(g),f=v("bntm"),d=v("1vsH"),u=v("0/SM"),o=v.n(u),r=v("2qtc"),l=v("kLXV"),n=v("+L6B"),s=v("2/Rp"),e=v("T2oS"),i=v("W9HT"),_=v("lUTK"),b=v("BvKs"),y=v("miYZ"),E=v("tsqr"),c=v("9og8"),C=v("5Dmo"),x=v("3S7+"),M=v("k1fw"),k=v("tJVT"),T=v("PpiC"),R=v("Znn+"),P=v("ZTPi"),B=v("WmNS"),W=v.n(B),z=v("5DcX"),H=v.n(z),ee=v("Ty5D"),G=v("9kvl"),U=v("oBTY"),K=v("qVdP"),L=v("jsC+"),D=v("ozfa"),j=v("MJZm"),Z=v("IZBM"),ie=v("P5Jw"),pe=v("5NDa"),Ee=v("5rEg"),De=v("y8nQ"),q=v("Vl3Y"),be=v("FfZY"),ye=v.n(be),le=function(ht){var Rt=ht.shixunsDetail,pt=ht.globalSetting,wt=ht.loading,Ct=ht.user,Kt=ht.dispatch,Vt=ht.taskData,dn=ht.isRepository,cn=Object(T.a)(ht,["shixunsDetail","globalSetting","loading","user","dispatch","taskData","isRepository"]),qt=Object(ee.h)(),Lt=Object(M.a)(Object(M.a)({},Object(ee.i)()),Object(ee.h)().query),Tn=Object(g.useState)({}),Wt=Object(k.a)(Tn,2),gn=Wt[0],ln=Wt[1],Un=Object(g.useRef)(),In=q.a.useForm(),Rr=Object(k.a)(In,1),Mt=Rr[0],on=Object(g.useState)(""),ea=Object(k.a)(on,2),Vr=ea[0],vr=ea[1];Object(g.useEffect)(function(){cn.visible&&Mt.resetFields()},[cn.visible]),Object(g.useEffect)(function(){var An=sessionStorage.getItem("pathArray");if(An){var ur=An.split(",").join("/"),Ut=ur.indexOf("/")===0?ur.substr(1):ur;vr(Ut)}},[]),Object(g.useEffect)(function(){var An,ur;Un.current=(An=qt.pathname)===null||An===void 0||((ur=An.split("/"))===null||ur===void 0)?void 0:ur[2]},[]);var jr=function(){var An=Object(c.a)(W.a.mark(function ur(){var Ut,tr,Yn=arguments;return W.a.wrap(function(nr){for(;;)switch(nr.prev=nr.next){case 0:return Ut=Yn.length>0&&Yn[0]!==void 0?Yn[0]:{},nr.next=3,Kt({type:"shixunsDetail/addRepositoryFile",payload:{id:Vt.myshixun.identifier,message:Ut.commitMessage,content:"",path:(cn.defaultPath?cn.defaultPath+"/":"")+Ut.path+"/"+(Ut.file||".gitkeep"),secret_repository:dn?void 0:!0}});case 3:tr=nr.sent,(tr==null?void 0:tr.status)===0&&(E.b.success("\u6DFB\u52A0\u6210\u529F"),cn.onOK({path:(cn.defaultPath?cn.defaultPath+"/":"")+Ut.path+"/"+(Ut.file||".gitkeep"),name:Ut.path.split("/")[Ut.path.split("/").length-1]}),cn.onClose());case 5:case"end":return nr.stop()}},ur)}));return function(){return An.apply(this,arguments)}}(),wa=function(){var ur,Ut;G.c.push("/shixuns/".concat(Un.current,"/").concat((ur=qt.pathname)===null||ur===void 0||((Ut=ur.split("/"))===null||Ut===void 0)?void 0:Ut[3]).concat(Vr?"/master/shixun_show/".concat(Vr):""))};return a.a.createElement(l.a,{width:"60%",centered:!0,visible:cn.visible,wrapClassName:ye.a.modal,onOk:function(){Mt.submit()},onCancel:cn.onClose,title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},a.a.createElement("section",{className:ye.a.bg},a.a.createElement("div",{className:ye.a.wrap},a.a.createElement(q.a,{className:"mt10",form:Mt,scrollToFirstError:!0,layout:"vertical",onFinish:jr,onChange:function(){var ur,Ut,tr,Yn,Xn=Object(M.a)({},Mt.getFieldsValue()),nr=Xn==null||((ur=Xn.path)===null||ur===void 0)?void 0:ur.split(""),br=Xn==null||((Ut=Xn.file)===null||Ut===void 0)?void 0:Ut.split("");nr!=null&&(tr=nr.filter(function(xa){return xa=="/"}))!==null&&tr!==void 0&&tr.length&&(Xn.path=Xn.path.substring(0,Xn.path.length-1)),br!=null&&(Yn=br.filter(function(xa){return xa=="/"}))!==null&&Yn!==void 0&&Yn.length&&(Xn.file=Xn.file.substring(0,Xn.path.length-1)),Mt.setFieldsValue(Object(M.a)({},Xn)),ln(Xn)}},a.a.createElement(q.a.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A",name:"path"},a.a.createElement(h.a,null,a.a.createElement(m.a,null,a.a.createElement("span",{className:ye.a.filePath},cn.defaultPath+"/")),a.a.createElement(m.a,{flex:"1"},a.a.createElement(q.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},a.a.createElement(Ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",size:"large"}))))),a.a.createElement(q.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\uFF1A",name:"file"},a.a.createElement(Ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\uFF0C\u5982\u679C\u4E0D\u586B\u5199\u7CFB\u7EDF\u5C06\u5728\u6587\u4EF6\u5939\u4E0B\u521B\u5EFA.gitkeep\u7684\u9ED8\u8BA4\u6587\u4EF6",size:"large"})),a.a.createElement(q.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},a.a.createElement(Ee.a,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406",size:"large"}))))))},ue=Object(G.a)(function($e){var ht=$e.shixunsDetail,Rt=$e.loading,pt=$e.globalSetting,wt=$e.user;return{shixunsDetail:ht,globalSetting:pt,user:wt,loading:Rt.models.index}})(le),ne=v("7ahc"),xe=function(ht){var Rt=ht.shixunsDetail,pt=ht.globalSetting,wt=ht.loading,Ct=ht.user,Kt=ht.taskData,Vt=ht.dispatch,dn=ht.isRepository,cn=ht.onClose,qt=Object(T.a)(ht,["shixunsDetail","globalSetting","loading","user","taskData","dispatch","isRepository","onClose"]),Lt=Object(ee.h)(),Tn=Object(M.a)(Object(M.a)({},Object(ee.i)()),Object(ee.h)().query),Wt=Object(g.useState)({}),gn=Object(k.a)(Wt,2),ln=gn[0],Un=gn[1],In=Object(g.useRef)(),Rr=q.a.useForm(),Mt=Object(k.a)(Rr,1),on=Mt[0],ea=Object(g.useState)(""),Vr=Object(k.a)(ea,2),vr=Vr[0],jr=Vr[1];Object(g.useEffect)(function(){qt.visible&&on.resetFields()},[qt.visible]),Object(g.useEffect)(function(){var ur=sessionStorage.getItem("pathArray");if(ur){var Ut=ur.split(",").join("/"),tr=Ut.indexOf("/")===0?Ut.substr(1):Ut;jr(tr)}},[]),Object(g.useEffect)(function(){var ur,Ut;In.current=(ur=Lt.pathname)===null||ur===void 0||((Ut=ur.split("/"))===null||Ut===void 0)?void 0:Ut[2]},[]);var wa=function(){var ur=Object(c.a)(W.a.mark(function Ut(){var tr,Yn,Xn=arguments;return W.a.wrap(function(br){for(;;)switch(br.prev=br.next){case 0:return tr=Xn.length>0&&Xn[0]!==void 0?Xn[0]:{},br.next=3,Object(Z.b)({id:Kt.myshixun.identifier,message:tr.commitMessage,content:tr.codeMirror,path:(qt.defaultPath?qt.defaultPath+"/":"")+tr.path,secret_repository:dn?void 0:!0});case 3:Yn=br.sent,(Yn==null?void 0:Yn.status)===0&&(E.b.success("\u6DFB\u52A0\u6210\u529F"),qt.onOK({path:(qt.defaultPath?qt.defaultPath+"/":"")+tr.path,name:tr.path.split("/")[tr.path.split("/").length-1]}),cn());case 5:case"end":return br.stop()}},Ut)}));return function(){return ur.apply(this,arguments)}}(),An=function(){var Ut,tr;G.c.push("/shixuns/".concat(In.current,"/").concat((Ut=Lt.pathname)===null||Ut===void 0||((tr=Ut.split("/"))===null||tr===void 0)?void 0:tr[3]).concat(vr?"/master/shixun_show/".concat(vr):""))};return a.a.createElement(l.a,{width:"60%",visible:qt.visible,wrapClassName:ye.a.modal,centered:!0,onOk:function(){on.submit()},onCancel:cn,title:"\u65B0\u5EFA\u6587\u4EF6"},a.a.createElement("section",{className:ye.a.bg},a.a.createElement("div",{className:ye.a.wrap},a.a.createElement(q.a,{className:"mt10",form:on,scrollToFirstError:!0,layout:"vertical",onFinish:wa,onChange:function(){var Ut,tr,Yn=Object(M.a)({},on.getFieldsValue()),Xn=Yn==null||((Ut=Yn.path)===null||Ut===void 0)?void 0:Ut.split("");(Xn==null||((tr=Xn.filter(function(nr){return nr=="/"}))===null||tr===void 0)?void 0:tr.length)>1&&(Yn.path=Yn.path.substring(0,Yn.path.length-1)),on.setFieldsValue(Object(M.a)({},Yn)),Un(Yn)}},a.a.createElement(q.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A",name:"path"},a.a.createElement(h.a,null,a.a.createElement(m.a,null,a.a.createElement("span",{className:ye.a.filePath},qt.defaultPath+"/")),a.a.createElement(m.a,{flex:"1"},a.a.createElement(q.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},a.a.createElement(Ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large"}))))),a.a.createElement(q.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},a.a.createElement(Ee.a,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406",size:"large"})),a.a.createElement("div",{className:"mt10 mb20"},a.a.createElement(q.a.Item,{name:"codeMirror",label:"\u6587\u4EF6\u5185\u5BB9\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},a.a.createElement(ne.a,{options:{modal:"javascript",lineNumbers:!0,theme:"railscasts",indentUnit:4,matchBrackets:!0,autoRefresh:!0,smartIndent:!0,extraKeys:{"Alt-/":"autocomplete"},autofocus:!0,styleActiveLine:!0,lint:!0,linkurl:"",gutters:["CodeMirror-linenumbers","breakpoints","CodeMirror-lint-markers"]}})))))))},$=Object(G.a)(function($e){var ht=$e.shixunsDetail,Rt=$e.loading,pt=$e.globalSetting,wt=$e.user;return{shixunsDetail:ht,globalSetting:pt,user:wt,loading:Rt.models.index}})(xe),oe=function(ht){var Rt=ht.shixunsDetail,pt=ht.globalSetting,wt=ht.loading,Ct=ht.user,Kt=ht.dispatch,Vt=ht.isRepository,dn=ht.taskData,cn=Object(T.a)(ht,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository","taskData"]),qt=Object(ee.h)(),Lt=Object(M.a)(Object(M.a)({},Object(ee.i)()),Object(ee.h)().query),Tn=Object(g.useState)({}),Wt=Object(k.a)(Tn,2),gn=Wt[0],ln=Wt[1],Un=Object(g.useRef)(),In=q.a.useForm(),Rr=Object(k.a)(In,1),Mt=Rr[0],on=Object(g.useState)(""),ea=Object(k.a)(on,2),Vr=ea[0],vr=ea[1],jr=Object(g.useState)(""),wa=Object(k.a)(jr,2),An=wa[0],ur=wa[1];Object(g.useEffect)(function(){cn.visible&&Mt.resetFields()},[cn.visible]),Object(g.useEffect)(function(){var Yn=cn.defaultPath.split("/");Yn.length===1?(vr(""),ur(cn.defaultPath)):(ur(Yn.pop()),vr(Yn.join("/")+"/"))},[cn.defaultPath]),Object(g.useEffect)(function(){var Yn,Xn;Un.current=(Yn=qt.pathname)===null||Yn===void 0||((Xn=Yn.split("/"))===null||Xn===void 0)?void 0:Xn[2]},[]);var Ut=function(){var Yn=Object(c.a)(W.a.mark(function Xn(){var nr,br,xa,Wr=arguments;return W.a.wrap(function(hr){for(;;)switch(hr.prev=hr.next){case 0:return br=Wr.length>0&&Wr[0]!==void 0?Wr[0]:{},hr.next=3,Object(Z.w)({id:dn==null||((nr=dn.shixun)===null||nr===void 0)?void 0:nr.identifier,from:cn.defaultPath,to:Vr+br.path,message:br.commitMessage||"".concat(cn.defaultPath," rename to ").concat(Vr).concat(br.path," ")});case 3:xa=hr.sent,(xa==null?void 0:xa.status)===0&&(E.b.success("\u64CD\u4F5C\u6210\u529F"),cn.onOK({path:br.path,name:br.path}),cn.onClose());case 5:case"end":return hr.stop()}},Xn)}));return function(){return Yn.apply(this,arguments)}}(),tr=function(){var Xn,nr;G.c.push("/shixuns/".concat(Un.current,"/").concat((Xn=qt.pathname)===null||Xn===void 0||((nr=Xn.split("/"))===null||nr===void 0)?void 0:nr[3]).concat(Vr?"/master/shixun_show/".concat(Vr):""))};return a.a.createElement(l.a,{width:"40%",visible:cn.visible,wrapClassName:ye.a.modal,centered:!0,onOk:function(){Mt.submit()},onCancel:cn.onClose,title:"\u63D0\u4EA4\u8BF4\u660E"},a.a.createElement("section",{className:ye.a.bg},a.a.createElement("div",{className:ye.a.wrap},a.a.createElement(q.a,{className:"mt10",form:Mt,scrollToFirstError:!0,layout:"vertical",onFinish:Ut,onChange:function(){var Xn,nr,br=Object(M.a)({},Mt.getFieldsValue()),xa=br==null||((Xn=br.path)===null||Xn===void 0)?void 0:Xn.split("");(xa==null||((nr=xa.filter(function(Wr){return Wr=="/"}))===null||nr===void 0)?void 0:nr.length)>1&&(br.path=br.path.substring(0,br.path.length-1)),Mt.setFieldsValue(Object(M.a)({},br)),ln(br)}},a.a.createElement(q.a.Item,{label:"\u91CD\u547D\u540D\uFF1A",name:"path"},a.a.createElement(h.a,null,a.a.createElement(m.a,{flex:"1"},a.a.createElement(q.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},a.a.createElement(Ee.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large",defaultValue:An}))))),a.a.createElement(q.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage"},a.a.createElement(Ee.a,{placeholder:"\u5982\u4E0D\u586B\u5199\uFF0C\u9ED8\u8BA4\u63D0\u4EA4\u4FE1\u606F\u662F\uFF08".concat(cn.defaultPath," rename to \u65B0\u7684\u540D\u79F0 \uFF09"),size:"large"}))))))},Le=Object(G.a)(function($e){var ht=$e.shixunsDetail,Rt=$e.loading,pt=$e.globalSetting,wt=$e.user;return{shixunsDetail:ht,globalSetting:pt,user:wt,loading:Rt.models.index}})(oe),te=v("DZo9"),Y=v("8z0m"),X=v("m3rI"),J=v("KVXO"),ve=v.n(J),he=function(ht){var Rt=ht.shixunsDetail,pt=ht.globalSetting,wt=ht.loading,Ct=ht.dispatch,Kt=ht.title,Vt=ht.pathList,dn=Vt===void 0?[]:Vt,cn=ht.showInputPath,qt=cn===void 0?!1:cn,Lt=ht.isMergeSelectFile,Tn=Lt===void 0?!1:Lt,Wt=ht.onFinish,gn=Wt===void 0?function(){}:Wt,ln=q.a.useForm(),Un=Object(k.a)(ln,1),In=Un[0],Rr=Object(ee.i)(),Mt=Object(ee.h)(),on=Object(g.useRef)(),ea=Object(g.useState)(""),Vr=Object(k.a)(ea,2),vr=Vr[0],jr=Vr[1],wa=Object(g.useState)(""),An=Object(k.a)(wa,2),ur=An[0],Ut=An[1],tr=Object(g.useState)([]),Yn=Object(k.a)(tr,2),Xn=Yn[0],nr=Yn[1],br=Object(g.useState)([]),xa=Object(k.a)(br,2),Wr=xa[0],Ir=xa[1];Object(g.useEffect)(function(){var zn,Gn;on.current=((zn=Mt.pathname)===null||zn===void 0||((Gn=zn.split("/"))===null||Gn===void 0)?void 0:Gn[3])==="repository"},[]),Object(g.useEffect)(function(){if(Rt.actionTabs.key!=="Repository-SelectFilePath")return;var zn=dn.join("/"),Gn=[];dn.map(function(Pn,rr){rr===0?Gn.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(Pn),path:zn}):Gn.push({val:"/".concat(Pn),path:zn})}),nr(Gn),jr(zn),Ut(zn),hr(zn)},[Rt.actionTabs.key]);var hr=function(){var zn=Object(c.a)(W.a.mark(function Gn(Pn){var rr;return W.a.wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:return oa.next=2,Ct({type:on.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:Rr.id,path:Pn}});case 2:rr=oa.sent,rr&&Ir(rr.trees||[]);case 4:case"end":return oa.stop()}},Gn)}));return function(Pn){return zn.apply(this,arguments)}}(),Ca=function(Gn){var Pn=vr;Gn.type==="tree"&&(Xn.length?Xn.push({val:"/".concat(Gn.name),path:Gn.name}):Xn.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(Gn.name),path:Gn.name}),nr(Xn),Pn=vr?"".concat(vr,"/").concat(Gn.name):Gn.name,jr(Pn)),hr(Pn)},ia=function(Gn,Pn){var rr=Xn.filter(function(oa,Ar){return Ar<=Pn});nr(rr);var Ja=rr.filter(function(oa,Ar){return Ar!==0}).map(function(oa){return oa.val}).join("").substr(1);jr(Ja),hr(Ja)},Ur=function(){var zn=Object(c.a)(W.a.mark(function Gn(){var Pn,rr,Ja;return W.a.wrap(function(Ar){for(;;)switch(Ar.prev=Ar.next){case 0:if(Pn=In==null?void 0:In.getFieldsValue(),rr=vr?"".concat(vr).concat(Pn!=null&&Pn.name?"/".concat(Pn==null?void 0:Pn.name):""):Pn==null?void 0:Pn.name,!Tn){Ar.next=6;break}return gn(rr),Yr(),Ar.abrupt("return");case 6:if(!qt){Ar.next=16;break}return Ar.next=9,In.validateFields();case 9:return Ar.next=11,Ct({type:"shixunsDetail/uploadGitFolder",payload:Object(M.a)(Object(M.a)({},{id:Rr.id,path:rr}),on.current?{}:{secret_repository:!0})});case 11:Ja=Ar.sent,gn(ur),Ja.status===0&&E.b.info("\u65B0\u5EFA\u6210\u529F"),Ar.next=18;break;case 16:gn(rr),E.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Yr();case 19:case"end":return Ar.stop()}},Gn)}));return function(){return zn.apply(this,arguments)}}(),Yr=function(){Ct({type:"shixunsDetail/setActionTabs",payload:{}}),In.resetFields()};return a.a.createElement(l.a,{centered:!0,title:Kt||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:Rt.actionTabs.key==="Repository-SelectFilePath",onOk:Ur,onCancel:Yr},a.a.createElement("div",{className:ve.a.wrap},a.a.createElement("div",{className:ve.a.content},a.a.createElement("div",{className:ve.a.mainPathWrap},!!(Xn!=null&&Xn.length)&&Xn.map(function(zn,Gn){return a.a.createElement("a",{key:Gn,onClick:function(){return ia(zn,Gn)}},zn.val)})),!!(Wr!=null&&Wr.length)&&Wr.map(function(zn,Gn){return zn.type==="tree"&&a.a.createElement("a",{key:Gn,onClick:function(){return Ca(zn)}},a.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(ve.a.colorBlue)}),zn.name)})),a.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),a.a.createElement("div",{className:"mt5 mb5"},vr),qt&&a.a.createElement(q.a,{form:In,scrollToFirstError:!0,className:"mt20"},a.a.createElement(q.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},a.a.createElement(Ee.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))},Ce=Object(G.a)(function($e){var ht=$e.shixunsDetail,Rt=$e.loading,pt=$e.globalSetting;return{shixunsDetail:ht,globalSetting:pt,loading:Rt.models.index}})(he),Pe=v("25Vc"),de=v.n(Pe),ke=Y.a.Dragger,me=function(ht){var Rt,pt=ht.shixunsDetail,wt=ht.globalSetting,Ct=ht.loading,Kt=ht.user,Vt=ht.taskData,dn=ht.dispatch,cn=ht.isRepository,qt=Object(T.a)(ht,["shixunsDetail","globalSetting","loading","user","taskData","dispatch","isRepository"]),Lt=Object(ee.h)(),Tn=Object(M.a)(Object(M.a)({},Object(ee.i)()),Object(ee.h)().query),Wt=Object(g.useState)({}),gn=Object(k.a)(Wt,2),ln=gn[0],Un=gn[1],In=Object(g.useRef)(),Rr=q.a.useForm(),Mt=Object(k.a)(Rr,1),on=Mt[0],ea=Object(g.useState)([]),Vr=Object(k.a)(ea,2),vr=Vr[0],jr=Vr[1],wa=Object(g.useState)(),An=Object(k.a)(wa,2),ur=An[0],Ut=An[1],tr;Object(g.useEffect)(function(){qt.visible&&(on.resetFields(),jr([]))},[qt.visible]),Object(g.useEffect)(function(){In.current=Tn.id},[]),Object(g.useEffect)(function(){var Wr=sessionStorage.getItem("pathArray");if(Wr){var Ir=Wr.split(",").join("/"),hr=Ir.indexOf("/")===0?Ir.substr(1):Ir;Ut(hr)}},[]);var Yn=function(Ir){if(tr=Ir.file.name,Ir.file.status==="done"||Ir.file.status==="uploading"){var hr,Ca,ia;if(jr(Ir.fileList),!Ir.file.response)return;if(((hr=Ir.file.response)===null||hr===void 0?void 0:hr.status)===0){E.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}jr(vr.filter(function(Ur){return Ur.uid!==Ir.file.uid})),((Ca=Ir.file.response)===null||Ca===void 0?void 0:Ca.message)&&E.b.info((ia=Ir.file.response)===null||ia===void 0?void 0:ia.message)}},Xn=function(){var Wr=Object(c.a)(W.a.mark(function Ir(hr){var Ca;return W.a.wrap(function(Ur){for(;;)switch(Ur.prev=Ur.next){case 0:if(hr.response){Ur.next=3;break}return E.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),Ur.abrupt("return");case 3:return Ur.next=5,dn({type:"shixunsDetail/deleteGitFile",payload:{id:Tn.id,path:ur?"".concat(ur,"/").concat(hr.name):hr.name,message:on.getFieldValue("commitMessage")||"\u5220\u9664\u4E86".concat(ur?"".concat(ur,"/").concat(hr.name):hr.name),secret_repository:cn?null:!0}});case 5:Ca=Ur.sent,Ca.status===0&&(jr(vr.filter(function(Yr){return Yr.uid!==hr.uid})),E.b.info("\u5220\u9664\u6210\u529F"));case 7:case"end":return Ur.stop()}},Ir)}));return function(hr){return Wr.apply(this,arguments)}}(),nr={height:300,multiple:!0,withCredentials:!0,data:function(){var Wr=Object(c.a)(W.a.mark(function hr(){return W.a.wrap(function(ia){for(;;)switch(ia.prev=ia.next){case 0:return ia.abrupt("return",new Promise(function(){var Ur=Object(c.a)(W.a.mark(function Yr(zn,Gn){return W.a.wrap(function(rr){for(;;)switch(rr.prev=rr.next){case 0:setTimeout(Object(c.a)(W.a.mark(function Ja(){var oa,Ar;return W.a.wrap(function(yi){for(;;)switch(yi.prev=yi.next){case 0:return yi.next=2,on.getFieldsValue();case 2:oa=yi.sent,Ar=Object(M.a)(Object(M.a)({},{path:qt.defaultPath?qt.defaultPath:"",message:ln.commitMessage||"\u4E0A\u4F20\u4E86".concat(tr)}),cn?{}:{secret_repository:!0}),zn(Ar);case 5:case"end":return yi.stop()}},Ja)})),200);case 1:case"end":return rr.stop()}},Yr)}));return function(Yr,zn){return Ur.apply(this,arguments)}}()));case 1:case"end":return ia.stop()}},hr)}));function Ir(){return Wr.apply(this,arguments)}return Ir}(),fileList:vr,method:"post",action:"".concat(X.a.API_SERVER,"/api/myshixuns/").concat(Vt==null||((Rt=Vt.myshixun)===null||Rt===void 0)?void 0:Rt.identifier,"/upload_git_file.json"),onChange:Yn,onRemove:Xn,beforeUpload:function(Ir){tr=Ir.name}},br=function(){var Wr=Object(c.a)(W.a.mark(function Ir(hr){return W.a.wrap(function(ia){for(;;)switch(ia.prev=ia.next){case 0:return ia.next=2,on.validateFields();case 2:qt.onClose(),qt.onOK({path:qt.defaultPath}),xa();case 5:case"end":return ia.stop()}},Ir)}));return function(hr){return Wr.apply(this,arguments)}}(),xa=function(){};return a.a.createElement(l.a,{visible:qt.visible,onOk:br,centered:!0,onCancel:qt.onClose,width:"70%"},a.a.createElement("section",{className:de.a.bg},a.a.createElement("div",{className:de.a.wrap},a.a.createElement("div",{className:de.a.title},"\u4E0A\u4F20\u6587\u4EF6"),a.a.createElement(q.a,{className:"mt10",form:on,scrollToFirstError:!0,layout:"vertical",onFinish:br,onValuesChange:function(){return Un(Object(M.a)({},on.getFieldsValue()))}},a.a.createElement(q.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},a.a.createElement(Ee.a,{placeholder:"\u5FC5\u586B\uFF0C\u63CF\u8FF0\u4E3B\u8981\u4FEE\u6539\u5185\u5BB9\uFF08\u76F8\u5F53\u4E8EGit Commit message\u7684Header\uFF09"})),a.a.createElement(q.a.Item,{label:"\u9009\u62E9\u6587\u4EF6",name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},a.a.createElement(ke,nr,a.a.createElement("div",null,a.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(de.a.colorBlue)})),a.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",a.a.createElement("span",{className:"".concat(de.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))))),a.a.createElement(Ce,{onFinish:function(Ir){return Ut(Ir)}})))},Be=Object(G.a)(function($e){var ht=$e.shixunsDetail,Rt=$e.loading,pt=$e.globalSetting,wt=$e.user;return{shixunsDetail:ht,globalSetting:pt,user:wt,loading:Rt.models.index}})(me),ft=v("aVK0"),vt=v.n(ft),Xe=v("TXba"),Bt=v.n(Xe),Ae=function(ht){var Rt=ht.shixunsDetail,pt=ht.globalSetting,wt=ht.loading,Ct=ht.dispatch,Kt=ht.title,Vt=ht.pathList,dn=Vt===void 0?[]:Vt,cn=ht.showInputPath,qt=cn===void 0?!1:cn,Lt=ht.isMergeSelectFile,Tn=Lt===void 0?!1:Lt,Wt=ht.onFinish,gn=Wt===void 0?function(){}:Wt,ln=q.a.useForm(),Un=Object(k.a)(ln,1),In=Un[0],Rr=Object(M.a)(Object(M.a)({},Object(ee.i)()),Object(ee.h)().query),Mt=Object(ee.h)(),on=Object(g.useRef)(),ea=Object(g.useState)(""),Vr=Object(k.a)(ea,2),vr=Vr[0],jr=Vr[1],wa=Object(g.useState)(""),An=Object(k.a)(wa,2),ur=An[0],Ut=An[1],tr=Object(g.useState)([]),Yn=Object(k.a)(tr,2),Xn=Yn[0],nr=Yn[1],br=Object(g.useState)([]),xa=Object(k.a)(br,2),Wr=xa[0],Ir=xa[1];Object(g.useEffect)(function(){var zn,Gn;on.current=((zn=Mt.pathname)===null||zn===void 0||((Gn=zn.split("/"))===null||Gn===void 0)?void 0:Gn[3])==="repository"},[]),Object(g.useEffect)(function(){if(Rt.actionTabs.key!=="Repository-SelectFilePath")return;var zn=dn.join("/"),Gn=[];dn.map(function(Pn,rr){rr===0?Gn.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(Pn),path:zn}):Gn.push({val:"/".concat(Pn),path:zn})}),nr(Gn),jr(zn),Ut(zn),hr(zn)},[Rt.actionTabs.key]);var hr=function(){var zn=Object(c.a)(W.a.mark(function Gn(Pn){var rr;return W.a.wrap(function(oa){for(;;)switch(oa.prev=oa.next){case 0:return oa.next=2,Ct({type:on.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:Rr.id,path:Pn}});case 2:rr=oa.sent,rr&&Ir(rr.trees||[]);case 4:case"end":return oa.stop()}},Gn)}));return function(Pn){return zn.apply(this,arguments)}}(),Ca=function(Gn){var Pn=vr;Gn.type==="tree"&&(Xn.length?Xn.push({val:"/".concat(Gn.name),path:Gn.name}):Xn.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(Gn.name),path:Gn.name}),nr(Xn),Pn=vr?"".concat(vr,"/").concat(Gn.name):Gn.name,jr(Pn)),hr(Pn)},ia=function(Gn,Pn){var rr=Xn.filter(function(oa,Ar){return Ar<=Pn});nr(rr);var Ja=rr.filter(function(oa,Ar){return Ar!==0}).map(function(oa){return oa.val}).join("").substr(1);jr(Ja),hr(Ja)},Ur=function(){var zn=Object(c.a)(W.a.mark(function Gn(){var Pn,rr,Ja;return W.a.wrap(function(Ar){for(;;)switch(Ar.prev=Ar.next){case 0:if(Pn=In==null?void 0:In.getFieldsValue(),rr=vr?"".concat(vr).concat(Pn!=null&&Pn.name?"/".concat(Pn==null?void 0:Pn.name):""):Pn==null?void 0:Pn.name,!Tn){Ar.next=6;break}return gn(rr),Yr(),Ar.abrupt("return");case 6:if(!qt){Ar.next=16;break}return Ar.next=9,In.validateFields();case 9:return Ar.next=11,Ct({type:"shixunsDetail/uploadGitFolder",payload:Object(M.a)(Object(M.a)({},{id:Rr.id,path:rr}),on.current?{}:{secret_repository:!0})});case 11:Ja=Ar.sent,gn(ur),Ja.status===0&&E.b.info("\u65B0\u5EFA\u6210\u529F"),Ar.next=18;break;case 16:gn(rr),E.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Yr();case 19:case"end":return Ar.stop()}},Gn)}));return function(){return zn.apply(this,arguments)}}(),Yr=function(){Ct({type:"shixunsDetail/setActionTabs",payload:{}}),In.resetFields()};return a.a.createElement(l.a,{centered:!0,title:Kt||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:Rt.actionTabs.key==="Repository-SelectFilePath",onOk:Ur,onCancel:Yr},a.a.createElement("div",{className:Bt.a.wrap},a.a.createElement("div",{className:Bt.a.content},a.a.createElement("div",{className:Bt.a.mainPathWrap},!!(Xn!=null&&Xn.length)&&Xn.map(function(zn,Gn){return a.a.createElement("a",{key:Gn,onClick:function(){return ia(zn,Gn)}},zn.val)})),!!(Wr!=null&&Wr.length)&&Wr.map(function(zn,Gn){return zn.type==="tree"&&a.a.createElement("a",{key:Gn,onClick:function(){return Ca(zn)}},a.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(Bt.a.colorBlue)}),zn.name)})),a.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),a.a.createElement("div",{className:"mt5 mb5"},vr),qt&&a.a.createElement(q.a,{form:In,scrollToFirstError:!0,className:"mt20"},a.a.createElement(q.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},a.a.createElement(Ee.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))},We=Object(G.a)(function($e){var ht=$e.shixunsDetail,Rt=$e.loading,pt=$e.globalSetting;return{shixunsDetail:ht,globalSetting:pt,loading:Rt.models.index}})(Ae),dt=v("GZ0F"),Ge=v("8Skl"),je=v("HBuW"),Fe=v("LvDl"),ce=v("NLgs"),we=v("lzim"),se=j.a.DirectoryTree,_e=function(ht){var Rt,pt,wt,Ct=ht.shixunsDetail,Kt=ht.globalSetting,Vt=ht.loading,dn=ht.user,cn=ht.activeKey,qt=ht.dispatch,Lt=ht.taskData,Tn=ht.practiceSetting,Wt=ht.isRepository,gn=ht.treeData,ln=ht.setTreeData,Un=ht.params,In=Object(T.a)(ht,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","taskData","practiceSetting","isRepository","treeData","setTreeData","params"]),Rr=Object(ee.h)(),Mt=Object(g.useState)(),on=Object(k.a)(Mt,2),ea=on[0],Vr=on[1],vr=Object(g.useState)(!1),jr=Object(k.a)(vr,2),wa=jr[0],An=jr[1],ur=Object(g.useState)(!1),Ut=Object(k.a)(ur,2),tr=Ut[0],Yn=Ut[1],Xn=Object(g.useState)(!1),nr=Object(k.a)(Xn,2),br=nr[0],xa=nr[1],Wr=Object(g.useState)(!1),Ir=Object(k.a)(Wr,2),hr=Ir[0],Ca=Ir[1],ia=Object(g.useState)(""),Ur=Object(k.a)(ia,2),Yr=Ur[0],zn=Ur[1],Gn=Object(g.useState)([]),Pn=Object(k.a)(Gn,2),rr=Pn[0],Ja=Pn[1],oa=Object(g.useState)([]),Ar=Object(k.a)(oa,2),Sa=Ar[0],yi=Ar[1],Eo=Object(g.useState)([]),wo=Object(k.a)(Eo,2),Ka=wo[0],zi=wo[1],Di=Object(g.useState)(!1),Fo=Object(k.a)(Di,2),_i=Fo[0],fa=Fo[1],pr=Object(g.useState)(),ka=Object(k.a)(pr,2),ui=ka[0],ji=ka[1],gi=Object(g.useState)(),ei=Object(k.a)(gi,2),En=ei[0],ua=ei[1],Mi=Object(g.useState)(""),ao=Object(k.a)(Mi,2),hi=ao[0],Ia=ao[1],La=Object(g.useState)(),io=Object(k.a)(La,2),Ji=io[0],xo=io[1],vo=Object(g.useState)(!1),Co=Object(k.a)(vo,2),Ho=Co[0],$n=Co[1];Object(g.useEffect)(function(){ln([]),Sr(""),localStorage.warehouseHideTip||fa(!0)},[Rr.pathname,Wt]),Object(g.useEffect)(function(){var Dr;if(Lt!=null&&(Dr=Lt.challenge)!==null&&Dr!==void 0&&Dr.path&&gn!==null&&gn!==void 0&&gn.length){var wn,Qn,Cn,mr=Lt==null||((wn=Lt.challenge)===null||wn===void 0||((Qn=wn.path)===null||Qn===void 0))?void 0:Qn.replaceAll("\uFF1B",""),yr=(Cn=Object(Fe.cloneDeep)(gn))===null||Cn===void 0?void 0:Cn.filter(function(Aa){var Da;return Aa.name===(mr==null||((Da=mr.split("/"))===null||Da===void 0)?void 0:Da[0])});Cr(mr),(gn==null?void 0:gn.length)!==1&&(console.log(yr,"filterTreeData"),ln(yr))}},[Lt==null||((Rt=Lt.challenge)===null||Rt===void 0)?void 0:Rt.path,gn]);var Cr=function(wn){ca(wn),Sa=[wn],yi([wn])},ar=function(){var Dr=Object(c.a)(W.a.mark(function wn(){var Qn,Cn,mr=arguments;return W.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:return Qn=mr.length>0&&mr[0]!==void 0?mr[0]:"",Aa.next=3,Object(je.jb)({id:Un.id,secret_dir_path:Qn});case 3:Cn=Aa.sent,Cn&&xo(Qn);case 5:case"end":return Aa.stop()}},wn)}));return function(){return Dr.apply(this,arguments)}}(),Kr=function(wn){return a.a.createElement(b.a,{className:vt.a.menu,onClick:function(Cn){zn(wn.path||"");switch(Cn.key){case"1":Object(d.E)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),An(!0);break;case"2":Object(d.E)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),xa(!0);break;case"3":Object(d.E)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u4E0A\u4F20"]),Ca(!0);break;case"4":Object(d.E)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u91CD\u547D\u540D"]),Yn(!0);break;case"5":Object(d.E)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u5220\u9664"]),Si(wn.path,wn.name,wn);break;case"6":Object(d.E)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u590D\u5236\u8DEF\u5F84"]),Ei(wn);break}}},(wn.type==="topTree"||wn.type==="tree")&&a.a.createElement(b.a.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(wn.type==="topTree"||wn.type==="tree")&&a.a.createElement(b.a.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(wn.type==="topTree"||wn.type==="tree")&&a.a.createElement(b.a.Item,{key:"3"},"\u4E0A\u4F20"),wn.type!=="topTree"&&wn.type!=="tree"&&a.a.createElement(b.a.Item,{key:"4"},"\u91CD\u547D\u540D"),wn.type!=="topTree"&&a.a.createElement(ie.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(Wt?"":"secret/").concat(wn==null?void 0:wn.path),onCopy:function(){return E.b.success("\u590D\u5236\u6210\u529F")}},a.a.createElement(b.a.Item,{key:"6"},a.a.createElement(a.a.Fragment,null,"\u590D\u5236\u8DEF\u5F84"))),wn.type!=="topTree"&&a.a.createElement(b.a.Item,{key:"5"},"\u5220\u9664"))},sa=function(wn,Qn){return wn.map(function(Cn){return Qn==""?Cn.path=Qn+Cn.name:Cn.path=Qn+"/"+Cn.name,Cn.title=a.a.createElement(h.a,{className:"font14"},a.a.createElement(m.a,{flex:"1"},a.a.createElement(h.a,null,a.a.createElement(m.a,{flex:"20px"},Cn.type==="blob"&&a.a.createElement("span",{className:"iconfont icon-wenjian11 font12"})),a.a.createElement(m.a,{flex:"1"},a.a.createElement("span",{className:" multi_ellipsis1"},Cn.name)))),a.a.createElement(m.a,null,(Cn.type==="blob"||Cn.type==="tree")&&a.a.createElement(L.a,{overlay:Kr(Cn),className:vt.a.ellipsis},a.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),Cn.disableCheckbox=ea&&ea!==Cn.name,Cn.className=Cn.type==="tree"?vt.a.pl23:"",Cn.checkable=Cn.type!=="tree",Cn.isLeaf=Cn.type!=="tree",Cn.children=Cn.type==="tree"&&[],Cn.key=Cn.path,Cn})},ca=function(wn){qt({type:"practiceSetting/setSideBarTabs",payload:{selectPath:wn}})},Zr=function(){var Dr=Object(c.a)(W.a.mark(function wn(Qn,Cn){var mr;return W.a.wrap(function(Aa){for(;;)switch(Aa.prev=Aa.next){case 0:return mr=Qn.split("/"),Aa.next=3,Sr(Yr);case 3:setTimeout(function(){ca(Qn),rr=[mr[0]||""],Sa=[Qn],yi(Object(U.a)(Sa)),Ja(Object(U.a)(rr))},150);case 4:case"end":return Aa.stop()}},wn)}));return function(Qn,Cn){return Dr.apply(this,arguments)}}(),ti=function(wn,Qn){if(console.log(wn,"data"),Qn=="")ln(Object(U.a)(wn));else{var Cn=Ci(gn,Qn,wn);ln(Object(U.a)(Cn))}};function Ci(Dr,wn,Qn){return Dr.map(function(Cn){return Cn.key===wn?(Cn.children=Object(U.a)(Qn),Object(M.a)({},Cn)):Cn.children?Object(M.a)(Object(M.a)({},Cn),{},{children:Ci(Cn.children,wn,Qn)}):Cn})}var Sr=function(){var Dr=Object(c.a)(W.a.mark(function wn(){var Qn,Cn,mr,yr,Aa,Da,Er=arguments;return W.a.wrap(function(da){for(;;)switch(da.prev=da.next){case 0:return Cn=Er.length>0&&Er[0]!==void 0?Er[0]:"",console.log("location:",Rr),da.next=4,Object(Z.m)(Lt==null||((Qn=Lt.myshixun)===null||Qn===void 0)?void 0:Qn.identifier,{path:Cn});case 4:return mr=da.sent,mr&&((yr=mr.trees)!==null&&yr!==void 0&&yr.length?(Da=sa(Object(U.a)(mr.trees),Cn),ti(Da,Cn),zi(mr.trees||[]),ua((mr==null?void 0:mr.secret_dir_path)||""),console.log("handleGetRepository:",Da,Cn),setTimeout(function(){return console.log(gn)},2e3)):Cn==""&&ln([]),ji(((Aa=mr.commits)===null||Aa===void 0?void 0:Aa[0])||{})),da.abrupt("return",mr);case 7:case"end":return da.stop()}},wn)}));return function(){return Dr.apply(this,arguments)}}(),Gi=function(){var Dr=Object(c.a)(W.a.mark(function wn(Qn){return W.a.wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:return mr.abrupt("return",new Promise(function(){var yr=Object(c.a)(W.a.mark(function Aa(Da,Er){return W.a.wrap(function(da){for(;;)switch(da.prev=da.next){case 0:return Qn.children.length&&Da(),Ia(Qn.path),da.next=4,Sr(Qn.path);case 4:Da();case 5:case"end":return da.stop()}},Aa)}));return function(Aa,Da){return yr.apply(this,arguments)}}()));case 1:case"end":return mr.stop()}},wn)}));return function(Qn){return Dr.apply(this,arguments)}}(),ha=function(){var Dr=Object(c.a)(W.a.mark(function wn(Qn,Cn){var mr,yr;return W.a.wrap(function(Da){for(;;)switch(Da.prev=Da.next){case 0:if(console.log("handleSelectTree",Qn,Cn.nativeEvent.target.nodeName,Cn),mr=function(){ca(Cn.node.path),Qn=[Cn.node.path],yi(Object(U.a)(Qn))},!(Cn.nativeEvent.target.nodeName==="svg"||Cn.nativeEvent.target.nodeName==="LI"||Cn.nativeEvent.target.nodeName==="I")){Da.next=4;break}return Da.abrupt("return");case 4:Cn.node.type==="blob"&&(Tn!=null&&(yr=Tn.sideBar)!==null&&yr!==void 0&&yr.confirmLeave?l.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){mr(),qt({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):mr());case 5:case"end":return Da.stop()}},wn)}));return function(Qn,Cn){return Dr.apply(this,arguments)}}(),Si=function(wn,Qn,Cn){l.a.confirm({centered:!0,title:"\u786E\u8BA4\u9700\u8981\u5220\u9664\u8BE5\u6587\u4EF6".concat(Cn.children?"\u5939":"","?"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var mr=Object(c.a)(W.a.mark(function Aa(){var Da,Er,fr,da;return W.a.wrap(function(qa){for(;;)switch(qa.prev=qa.next){case 0:return qa.next=2,Object(Z.h)({id:Lt==null||((Da=Lt.myshixun)===null||Da===void 0)?void 0:Da.identifier,path:wn,message:"\u5220\u9664".concat(wn)});case 2:if(Er=qa.sent,fr=wn.split("/"),!((Er==null?void 0:Er.status)===0)){qa.next=20;break}return E.b.info("\u5220\u9664\u6210\u529F"),fr.splice(fr.length-1,1),qa.next=9,Sr(fr.length>1?fr.join("/"):"");case 9:if(da=qa.sent,!(da!=null&&da.trees)){qa.next=13;break}qa.next=16;break;case 13:return fr.splice(fr.length-1,1),qa.next=16,Sr(fr.length>1?fr.join("/"):"");case 16:return ca(""),qa.abrupt("return",!0);case 20:(Er==null?void 0:Er.status)===-3&&l.a.info({title:"\u5220\u9664\u5931\u8D25",content:a.a.createElement("div",null,"\u8BE5\u6587\u4EF6\u201C",wn,"\u201D\u5DF2\u7ECF\u88AB\u4EFB\u52A1\u5173\u5361\u7684\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u6216\u8BC4\u6D4B\u6267\u884C\u6587\u4EF6\u4F7F\u7528\uFF0C\u8BF7\u5148\u4FEE\u6539\u4EFB\u52A1\u5173\u5361\u4E2D\u8BC4\u6D4B\u8BBE\u7F6E\u7684\u6587\u4EF6\u8DEF\u5F84\u540E\u518D\u5220\u9664\u3002"),okText:"\u6211\u77E5\u9053\u4E86",onOk:function(){}});case 21:case"end":return qa.stop()}},Aa)}));function yr(){return mr.apply(this,arguments)}return yr}()})},Ei=function(wn){console.log(wn,"item")},Ui=function(){var Dr=Object(c.a)(W.a.mark(function wn(Qn,Cn){return W.a.wrap(function(yr){for(;;)switch(yr.prev=yr.next){case 0:if(console.log("handleExpand",Cn),!(Cn.nativeEvent.target.nodeName==="svg"||Cn.nativeEvent.target.nodeName==="path"||Cn.nativeEvent.target.nodeName==="LI")){yr.next=5;break}return yr.abrupt("return",!0);case 5:return yr.next=7,Gi(Cn.node);case 7:rr.includes(Cn.node.path)?rr.splice(rr.indexOf(Cn.node.path),1):rr.push(Cn.node.path);case 8:Ja(Object(U.a)(rr));case 9:case"end":return yr.stop()}},wn)}));return function(Qn,Cn){return Dr.apply(this,arguments)}}(),Do=function(){fa(!1),localStorage.warehouseHideTip=!0},gs=function(){var Dr=Object(c.a)(W.a.mark(function wn(Qn){var Cn,mr,yr,Aa,Da;return W.a.wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:yr="",fr.t0=Wt,fr.next=fr.t0===!0?4:fr.t0===!1?9:11;break;case 4:return yr="\u5F00\u542F\u7248\u672C\u5E93",Aa="\u5F00\u542F",Da="\u4E0D\u5F00\u542F",mr=a.a.createElement("div",null,"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361\u65F6\uFF0C\u9700\u8981\u4F7F\u7528\u4EE3\u7801\u4ED3\u5E93\uFF1B\u5982\u679C\u53EA\u6709\u9009\u62E9\u9898\u5173\u5361\uFF0C\u5219\u4E0D\u9700\u8981\u4EE3\u7801\u4ED3\u5E93\u3002\u4EE3\u7801\u4ED3\u5E93\u542F\u7528\u540E\uFF0C\u5C06\u65E0\u6CD5\u5173\u95ED\u3002"),fr.abrupt("break",11);case 9:return Ct!=null&&(Cn=Ct.detail)!==null&&Cn!==void 0&&Cn.secret_repository?(yr="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Aa="\u786E\u5B9A",Da="\u53D6\u6D88",mr=a.a.createElement("div",null,"\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u540E\uFF0C\u5DF2\u521B\u5EFA\u7684\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u53CA\u5176\u5185\u5BB9\uFF0C\u5C06\u88AB\u5220\u9664\u3002\u786E\u8BA4\u8981\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\uFF1F")):(yr="\u5F00\u542F\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",Aa="\u4E0D\u4F7F\u7528",Da="\u4F7F\u7528",mr=a.a.createElement("div",null,"\u79C1\u5BC6\u7248\u672C\u5E93\u7684\u6587\u4EF6\u5BF9\u5B66\u5458\u59CB\u7EC8\u9690\u85CF\uFF0C\u65E0\u6CD5\u8BBF\u95EE\u67E5\u770B\u3002\u9002\u7528\u4E8E\u547D\u4EE4\u884C\u3001\u56FE\u5F62\u5316\u684C\u9762\u4E24\u7C7B\u5B9E\u8BAD\uFF0C\u5176\u4ED6\u7C7B\u578B\u5B9E\u8BAD\u4E0D\u5EFA\u8BAE\u4F7F\u7528\u79C1\u5BC6\u7248\u672C\u5E93\u3002")),fr.abrupt("break",11);case 11:if(!(!Wt&&Object(ce.a)(qt,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))){fr.next=13;break}return fr.abrupt("return");case 13:l.a.confirm({title:yr,okText:Aa,cancelText:Da,content:mr,onOk:function(){var ni;Object(d.E)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",yr]),!Wt&&!(Ct!=null&&(ni=Ct.detail)!==null&&ni!==void 0&&ni.secret_repository)||Ao(Qn)},onCancel:function(){var ni;!Wt&&!(Ct!=null&&(ni=Ct.detail)!==null&&ni!==void 0&&ni.secret_repository)&&Ao(Qn)}});case 14:case"end":return fr.stop()}},wn)}));return function(Qn){return Dr.apply(this,arguments)}}(),Ao=function(){var Dr=Object(c.a)(W.a.mark(function wn(Qn){return W.a.wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:if(!Wt){mr.next=6;break}return mr.next=3,Object(je.o)(Object(M.a)({},Un));case 3:qt({type:"practiceSetting/getCommonData",payload:Object(M.a)({},Un)}),mr.next=8;break;case 6:return mr.next=8,Object(je.p)(Object(M.a)(Object(M.a)({},Un),{},{is_secret_repository:Qn}));case 8:Sr(),qt({type:"shixunsDetail/getShixunsDetail",payload:{id:Un.id}});case 10:case"end":return mr.stop()}},wn)}));return function(Qn){return Dr.apply(this,arguments)}}(),Za=function(wn){console.log(wn)},is=function(){var Dr=Object(c.a)(W.a.mark(function wn(Qn){var Cn,mr,yr,Aa,Da,Er,fr,da,ni,qa,Fi;return W.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(console.log(Qn),Cn=Qn.node.key,mr=Qn.dragNode.key,yr=Qn.node.pos.split("-"),Aa=Qn.dropPosition-Number(yr[yr.length-1]),!(Qn.node.type!=="tree"||Qn.dragNode.path.split("/").length===1)){Qe.next=8;break}return E.b.warn("\u672A\u79FB\u52A8\u6587\u4EF6\u76EE\u5F55\u4F4D\u7F6E"),Qe.abrupt("return");case 8:return Qe.next=10,qt({type:"shixunsDetail/moveGitFile",payload:{id:Un.id,from:Qn.dragNode.path,to:Qn.node.path+"/"+Qn.dragNode.name,message:"".concat(Qn.dragNode.path," move to ").concat(Qn.node.path+"/"+Qn.dragNode.name," ")}});case 10:if(Da=Qe.sent,!(Da.status===0)){Qe.next=22;break}return ca(""),Er=Qn.dragNode.path.split("/"),Er.pop(),Qe.next=17,Sr(Qn.node.path);case 17:return Qe.next=19,Sr(Er.join("/"));case 19:return Er.pop(),Qe.next=22,Sr(Er.join("/"));case 22:return Qe.abrupt("return");case 28:case"end":return Qe.stop()}},wn)}));return function(Qn){return Dr.apply(this,arguments)}}();return a.a.createElement("section",{className:vt.a.bg},a.a.createElement("div",{className:vt.a.contentbg},a.a.createElement("div",{className:vt.a.wrap},a.a.createElement(h.a,{className:vt.a.gitCode},a.a.createElement(m.a,{flex:"1"},a.a.createElement("span",{className:"iconfont icon-daimacangku2 mr8"}),Wt?"\u4EE3\u7801\u4ED3\u5E93":"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"),a.a.createElement(m.a,null,a.a.createElement(L.a,{overlay:Kr({type:"topTree"}),className:"current"},a.a.createElement(x.a,{visible:_i,title:a.a.createElement("div",{className:"font16"},a.a.createElement(dt.a,{style:{position:"relative",left:-35},onClick:function(){return Do()}}),"\u70B9\u51FB\u6B64\u5904\u65B0\u5EFA\u6587\u4EF6\u3001\u65B0\u5EFA\u6587\u4EF6\u5939\u3001\u4E0A\u4F20\u6587\u4EF6\u3002",a.a.createElement("span",{onClick:function(){return Do()},className:"iconfont icon-guanbi1 ml8 current font14"})),overlayClassName:vt.a.overlayClass,overlayStyle:{maxWidth:500},arrowPointAtCenter:!0,placement:"right",color:"#F7B500"})))),!!gn.length&&!Wt&&a.a.createElement("div",{className:"mt20 pl20 pr20 font14 c-white"},a.a.createElement("div",null,"\u5B9E\u8BAD\u8BC4\u6D4B\u7684\u65F6\u5019\uFF0C\u7CFB\u7EDF\u4F1A\u4E34\u65F6\u5C06\u79C1\u5BC6\u4EE3\u7801\u5E93\u79FB\u52A8\u666E\u901A\u4EE3\u7801\u5E93\u7684secret\u76EE\u5F55\u4E0B\u9762\uFF0C\u8BC4\u6D4B\u7ED3\u675F\u4F1A\u6E05\u7A7Asecret\u76EE\u5F55\u5185\u5BB9\u3002\u5982\u679C\u79C1\u5BC6\u4EE3\u7801\u5E93\u4E2D\u5B58\u5728\u6587\u4EF6src/test.sh\uFF0C\u5728\u666E\u901A\u4EE3\u7801\u5E93\u8C03\u7528\u8BE5\u6587\u4EF6\u5219\u4F7F\u7528\u8DEF\u5F84\uFF1Asecret/src/test.sh")),gn.length?a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:vt.a.content},a.a.createElement(se,{disabled:!!Vt.effects["shixunsDetail/getFileContent"],multiple:!0,showIcon:!1,treeData:gn,switcherIcon:a.a.createElement(Ge.a,{style:{fontWeight:"bold",fontSize:14,position:"relative",top:3,marginLeft:22}}),onExpand:Ui,expandedKeys:rr,selectedKeys:Sa,onSelect:ha,draggable:!0,onDragEnter:Za,onDrop:is,allowDrop:function(wn){var Qn=wn.dropNode,Cn=wn.dropPosition;return!1}}))):"",!gn.length&&Wt&&(Ct==null||((pt=Ct.detail)===null||pt===void 0)?void 0:pt.init_repository)&&a.a.createElement(Ne,null),!gn.length&&!Wt&&(Ct==null||((wt=Ct.detail)===null||wt===void 0)?void 0:wt.secret_repository)&&a.a.createElement(Ne,null))),a.a.createElement(Le,{taskData:Lt,visible:tr,defaultPath:Yr,onClose:function(){return Yn(!1)},isRepository:!Wt,onOK:function(){var Dr=Object(c.a)(W.a.mark(function wn(Qn){var Cn;return W.a.wrap(function(yr){for(;;)switch(yr.prev=yr.next){case 0:return Cn=Yr.split("/"),Cn.pop(),yr.next=4,Sr(Cn.join("/"));case 4:ca("");case 5:case"end":return yr.stop()}},wn)}));return function(wn){return Dr.apply(this,arguments)}}()}),a.a.createElement($,{taskData:Lt,visible:wa,defaultPath:Yr,onClose:function(){return An(!1)},isRepository:Wt,onOK:function(wn){Zr(wn.path,wn.name)}}),a.a.createElement(ue,{taskData:Lt,visible:br,defaultPath:Yr,onClose:function(){return xa(!1)},isRepository:Wt,onOK:function(wn){Zr(wn.path,wn.name)}}),a.a.createElement(Be,{taskData:Lt,defaultPath:Yr,visible:hr,isRepository:Wt,onClose:function(){return Ca(!1)},onOK:function(){var Dr=Object(c.a)(W.a.mark(function wn(Qn){var Cn;return W.a.wrap(function(yr){for(;;)switch(yr.prev=yr.next){case 0:return Cn=Yr.split("/"),yr.next=3,Sr(Yr);case 3:rr=[Cn[0]||""],Sa=[Yr],yi(Object(U.a)(Sa)),Ja(Object(U.a)(rr));case 7:case"end":return yr.stop()}},wn)}));return function(wn){return Dr.apply(this,arguments)}}()}),a.a.createElement(We,{pathList:Yr==null?void 0:Yr.split("/"),showInputPath:!0,isMergeSelectFile:Ho,onFinish:function(wn){Ho?ar(wn):Sr(wn),$n(!1)}}))},Ne=function(){return a.a.createElement("div",{className:"mt20 pb50 ".concat(vt.a.nodata)},a.a.createElement("div",{className:vt.a.headLeft},"\u63D0\u793A\uFF1A",a.a.createElement("br",null),"\u6B64\u5904\u5B58\u653E\u672C\u5B9E\u8BAD\u6240\u9700\u7684\u6240\u6709\u4EE3\u7801\u7B49\u76F8\u5173\u6587\u4EF6\uFF0C\u4F60\u53EF\u4EE5\u901A\u8FC7\u4EE5\u4E0B",a.a.createElement("br",null),"\u4E24\u79CD\u65B9\u5F0F\u6765\u4F7F\u7528\uFF1A",a.a.createElement("br",null),"1\u3001",a.a.createElement("a",{href:"/forums/2784",target:"_blank"},"Git\u5BA2\u6237\u7AEF")," \u4E0A\u4F20\u5DF2\u6709\u6587\u4EF6\u6765\u5F00\u59CB\u4F7F\u7528\u3002",a.a.createElement("br",null),"2\u3001\u76F4\u63A5\u5728\u5E73\u53F0\u4E0A\u521B\u5EFA\u6587\u4EF6\u76EE\u5F55\u4EE5\u53CA\u76F8\u5173\u4EE3\u7801\u6587\u4EF6\u3002"),a.a.createElement("img",{width:"100%",src:we.i}))},Q=Object(G.a)(function($e){var ht=$e.shixunsDetail,Rt=$e.loading,pt=$e.globalSetting,wt=$e.practiceSetting,Ct=$e.user;return{shixunsDetail:ht,globalSetting:pt,user:Ct,practiceSetting:wt,loading:Rt}})(_e),Ue=v("/zsF"),Ze=v("PArb"),Te=v("5GGG"),He=v.n(Te),Ye=function(ht){var Rt=ht.shixunsDetail,pt=ht.globalSetting,wt=ht.loading,Ct=ht.user,Kt=ht.dispatch,Vt=ht.isRepository,dn=Object(T.a)(ht,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),cn=Object(M.a)(Object(M.a)({},Object(ee.i)()),Object(ee.h)().query),qt=Object(g.useState)([]),Lt=Object(k.a)(qt,2),Tn=Lt[0],Wt=Lt[1];Object(g.useEffect)(function(){gn()},[Vt]);var gn=function(){var ln=Object(c.a)(W.a.mark(function Un(){var In;return W.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,Kt({type:"shixunsDetail/getRepositoryCommit",payload:{id:cn.id,secret_repository:Vt?void 0:!0}});case 2:In=Mt.sent,In&&Wt(In.commits||[]);case 4:case"end":return Mt.stop()}},Un)}));return function(){return ln.apply(this,arguments)}}();return a.a.createElement(a.a.Fragment,null,Tn==""&&a.a.createElement("div",{className:He.a.empty},a.a.createElement("img",{src:we.e,width:"258"}),a.a.createElement("br",null),a.a.createElement("span",{className:"c-grey-c font14"},"\u6682\u65E0\u63D0\u4EA4\u8BB0\u5F55")),Tn!=""&&a.a.createElement("section",{className:He.a.bg},a.a.createElement("div",{className:He.a.wrap},a.a.createElement("div",{className:He.a.content},Tn==null?void 0:Tn.map(function(ln){var Un,In;return a.a.createElement("div",null,a.a.createElement(h.a,{align:"middle",className:"c-white font16"},a.a.createElement(m.a,null,ln.title)),a.a.createElement(h.a,{align:"middle",className:"mt20 "},a.a.createElement(m.a,null,a.a.createElement("img",{className:He.a.imageUrl,src:X.a.IMG_SERVER+"/"+((Un=ln.author)===null||Un===void 0?void 0:Un.image_url)})),a.a.createElement(m.a,{className:He.a.blueLight},a.a.createElement("span",{className:"ml20"},(In=ln.author)===null||In===void 0?void 0:In.username)),a.a.createElement(m.a,null,a.a.createElement("span",{className:"ml20 ".concat(He.a.blueLight)},"\u63D0\u4EA4\u4E8E"),a.a.createElement("span",{className:"ml20 ".concat(He.a.blueLight)},ln.time))),a.a.createElement(Ze.a,{className:He.a.divider}))})))))},st=Object(G.a)(function($e){var ht=$e.shixunsDetail,Rt=$e.loading,pt=$e.globalSetting,wt=$e.user;return{shixunsDetail:ht,globalSetting:pt,user:wt,loading:Rt.models.index}})(Ye),ut=v("p5ED"),et=P.a.TabPane,Re=function(ht){var Rt,pt,wt,Ct,Kt,Vt,dn=ht.globalSetting,cn=ht.loading,qt=ht.dispatch,Lt=ht.practiceSetting,Tn=ht.shixunsDetail,Wt=ht.taskData,gn=ht.taskId,ln=ht.onEditRepCode,Un=Object(T.a)(ht,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail","taskData","taskId","onEditRepCode"]),In=!(Wt!=null&&Wt.is_last_game)&&((Wt==null?void 0:Wt.shixun.status)>0||(Wt==null||((Rt=Wt.user)===null||Rt===void 0)?void 0:Rt.identity)<5),Rr=Object(g.useState)("1"),Mt=Object(k.a)(Rr,2),on=Mt[0],ea=Mt[1],Vr=Object(g.useState)("1"),vr=Object(k.a)(Vr,2),jr=vr[0],wa=vr[1],An=Object(g.useState)(!0),ur=Object(k.a)(An,2),Ut=ur[0],tr=ur[1],Yn=Object(g.useState)({}),Xn=Object(k.a)(Yn,2),nr=Xn[0],br=Xn[1],xa=Object(g.useRef)(),Wr=Object(g.useState)(!0),Ir=Object(k.a)(Wr,2),hr=Ir[0],Ca=Ir[1],ia=Object(g.useState)(["2","1"]),Ur=Object(k.a)(ia,2),Yr=Ur[0],zn=Ur[1],Gn=Object(g.useState)([]),Pn=Object(k.a)(Gn,2),rr=Pn[0],Ja=Pn[1],oa=Object(g.useRef)(),Ar=Object(M.a)(Object(M.a)({},Object(ee.i)()),{},{taskId:gn}),Sa=Object(g.useState)(!1),yi=Object(k.a)(Sa,2),Eo=yi[0],wo=yi[1],Ka=[{id:"1",name:"\u4EE3\u7801\u4ED3\u5E93"},{id:"2",name:a.a.createElement("span",null,a.a.createElement("span",null,"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"),a.a.createElement(x.a,{title:"\u79C1\u5BC6\u7248\u672C\u5E93\u7684\u6587\u4EF6\u5BF9\u5B66\u5458\u59CB\u7EC8\u9690\u85CF\uFF0C\u65E0\u6CD5\u8BBF\u95EE\u67E5\u770B\u3002"},a.a.createElement("i",{className:"iconfont icon-xiaowenhao",style:{marginLeft:2,fontSize:14}})))}];Object(g.useEffect)(function(){var fa,pr=Lt==null||((fa=Lt.sideBar)===null||fa===void 0)?void 0:fa.selectPath.split("/");zn(pr)},[Lt==null||((pt=Lt.sideBar)===null||pt===void 0)?void 0:pt.selectPath]);var zi=function(pr){pr.data==="compileResltDone"&&wo(!1)};Object(g.useEffect)(function(){return window.addEventListener("message",zi),function(){window.removeEventListener("message",zi)}},[]);var Di=function(pr){(nr==null?void 0:nr.file_type)==="txt"&&(nr.content=pr,br(Object(M.a)({},nr)),ln(pr))};Object(g.useEffect)(function(){var fa;console.log(Lt==null||((fa=Lt.sideBar)===null||fa===void 0)?void 0:fa.selectPath,"sideBar"),new Promise(function(){var pr=Object(c.a)(W.a.mark(function ka(ui,ji){var gi,ei,En,ua,Mi,ao,hi;return W.a.wrap(function(La){for(;;)switch(La.prev=La.next){case 0:if(!((Lt==null||((gi=Lt.sideBar)===null||gi===void 0)?void 0:gi.selectPath)!==""&&Lt!==null&&Lt!==void 0&&(ei=Lt.sideBar)!==null&&ei!==void 0&&ei.selectPath)){La.next=5;break}return La.next=3,Object(Z.j)(gn,{path:Lt==null||((En=Lt.sideBar)===null||En===void 0)?void 0:En.selectPath});case 3:if(ua=La.sent,ua!=null&&ua.content||(ua==null?void 0:ua.content)=="")try{(ua==null?void 0:ua.file_type)==="txt"?(ua.content=window.decodeURIComponent(escape(window.atob((Mi=ua.content)===null||Mi===void 0?void 0:Mi.content))),br(Object(M.a)({},ua))):(ua.content=(ao=ua.content)===null||ao===void 0?void 0:ao.content,br(Object(M.a)({},ua)))}catch(io){nr.content&&(ua.content=window.atob((hi=ua.content)===null||hi===void 0?void 0:hi.content)),br(Object(M.a)({},ua)),E.b.warn("\u8BF7\u786E\u8BA4\u6587\u4EF6\u5B57\u7B26\u96C6\u7F16\u7801\u662F\u5426\u4E3AUTF-8")}else qt({type:"practiceSetting/setSideBarTabs",payload:{selectPath:""}});case 5:case"end":return La.stop()}},ka)}));return function(ka,ui){return pr.apply(this,arguments)}}())},[Lt==null||((wt=Lt.sideBar)===null||wt===void 0)?void 0:wt.selectPath]);var Fo=a.a.createElement(b.a,{className:H.a.menu,onClick:function(pr){var ka;!(Tn!=null&&(ka=Tn.detail)!==null&&ka!==void 0&&ka.secret_repository)&&pr.key==="2"&&wa("1"),ea(pr.key),pr.key==="1"?Ca(!0):Ca(!1)}},a.a.createElement(b.a.Item,{disabled:!0,key:"0"},"\u5207\u6362\u4ED3\u5E93"),Ka.filter(function(fa){var pr,ka;return!(Tn!=null&&(pr=Tn.detail)!==null&&pr!==void 0&&pr.init_repository)||Tn!=null&&(ka=Tn.detail)!==null&&ka!==void 0&&ka.is_jupyter_lab?fa.id!=="2":fa}).map(function(fa,pr){return a.a.createElement(b.a.Item,{className:"leaveClick",key:fa.id},fa.name)})),_i=function(){var fa=Object(c.a)(W.a.mark(function pr(){var ka,ui,ji,gi,ei,En;return W.a.wrap(function(Mi){for(;;)switch(Mi.prev=Mi.next){case 0:return wo(!0),Mi.next=3,Object(Z.L)(Wt==null||((ka=Wt.myshixun)===null||ka===void 0)?void 0:ka.identifier,Object(M.a)(Object(M.a)({path:Lt==null||((ui=Lt.sideBar)===null||ui===void 0)?void 0:ui.selectPath},nr),{},{evaluate:0,game_id:Wt==null||((ji=Wt.game)===null||ji===void 0)?void 0:ji.id}));case 3:En=Mi.sent,(gi=document.getElementById("latexIframeRef"))===null||gi===void 0||((ei=gi.contentWindow)===null||ei===void 0)||ei.postMessage("compile","*"),En!=null&&En.content&&qt({type:"practiceSetting/setSideBarTabs",payload:Object(M.a)(Object(M.a)({},Lt.sideBar),{},{confirmLeave:!1})});case 6:case"end":return Mi.stop()}},pr)}));return function(){return fa.apply(this,arguments)}}();return a.a.createElement("div",{className:H.a.warehouse},a.a.createElement("div",{className:H.a.content},jr==="1"&&a.a.createElement(a.a.Fragment,null,a.a.createElement("aside",{className:H.a.left,id:"latex-drawer",style:{width:Ut?"36%":"0%"}},a.a.createElement(i.a,{spinning:!!cn.effects["shixunsDetail/getRepository"],wrapperClassName:"".concat(H.a.loading," ").concat(H.a.bottom0)},a.a.createElement(Q,{taskData:Wt,params:Ar,setTreeData:Ja,treeData:rr,activeKey:on,isRepository:hr})),a.a.createElement("span",{onClick:function(){return tr(!1)},className:"".concat(H.a.close," iconfont icon-quxiao")})),a.a.createElement("aside",{className:H.a.right,ref:oa},(Lt==null||((Ct=Lt.sideBar)===null||Ct===void 0)?void 0:Ct.selectPath)!==""&&a.a.createElement(a.a.Fragment,null,a.a.createElement(i.a,{spinning:!!cn.effects["shixunsDetail/getFileContent"],wrapperClassName:H.a.loading},a.a.createElement("div",{className:H.a.filePathWrp},a.a.createElement(h.a,{align:"middle",className:"w100"},a.a.createElement(m.a,null,a.a.createElement("span",{onClick:function(){return tr(!0)},className:"iconfont icon-daimacangku2 c-white current"})),a.a.createElement(m.a,{flex:"40px"},a.a.createElement("div",{className:H.a.line,style:{marginLeft:20}})),a.a.createElement(m.a,{className:H.a.filePath},Yr.map(function(fa,pr){return a.a.createElement("span",{className:"c-blue"},fa)})))),a.a.createElement("div",{className:cn.effects["shixunsDetail/getFileContent"]?"hide":"show"},a.a.createElement(ut.a,{className:"darkBlue",style:{top:66,height:"calc(100% - 60px)",position:"absolute"},filename:nr.filename,type:nr.file_type==="office"?"download":nr.file_type,data:nr.content,monacoEditor:{value:nr.content,language:nr.language,onChange:function(pr){return Di(pr)},options:{fontSize:14,minimap:{enabled:!1}}}}))),(nr==null?void 0:nr.file_type)==="txt"&&a.a.createElement("div",{className:H.a.footer},(Wt==null?void 0:Wt.prev_game)&&a.a.createElement("a",{href:"/tasks/".concat(Wt==null?void 0:Wt.prev_game).concat(location.search),style:{marginRight:"auto"},onClick:function(pr){pr.preventDefault(),setTimeout(function(){return window.location.href="/tasks/".concat(Wt==null?void 0:Wt.prev_game).concat(location.search)},300)}},"\u4E0A\u4E00\u5173"),a.a.createElement(s.a,{type:"primary",size:"large",loading:Eo,onClick:_i},"\u5F00\u59CB\u7F16\u8BD1"),In&&a.a.createElement("a",{href:"/tasks/".concat(Wt==null?void 0:Wt.next_game).concat(location.search),style:{marginLeft:"auto"},onClick:function(pr){var ka,ui;if(pr.preventDefault(),Wt!=null&&(ka=Wt.shixun)!==null&&ka!==void 0&&ka.task_pass||(Wt==null?void 0:Wt.game.status)===2||(Wt==null||((ui=Wt.user)===null||ui===void 0)?void 0:ui.identity)<5){setTimeout(function(){return window.location.href="/tasks/".concat(Wt==null?void 0:Wt.next_game).concat(location.search)},300);return}l.a.warning({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u6211\u77E5\u9053\u4E86",content:a.a.createElement("p",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u8BBE\u7F6E\u4E86\u4E0D\u5141\u8BB8\u8DF3\u5173\u3002\u901A\u8FC7\u5F53\u524D\u5173\u5361\u540E\uFF0C\u624D\u80FD\u8FDB\u5165\u4E0B\u4E00\u5173\u3002")})}},"\u4E0B\u4E00\u5173"))),(Lt==null||((Kt=Lt.sideBar)===null||Kt===void 0)?void 0:Kt.selectPath)==""&&(Tn==null||((Vt=Tn.detail)===null||Vt===void 0)?void 0:Vt.init_repository)&&a.a.createElement("div",{className:H.a.empty},a.a.createElement("img",{src:we.d,width:"258"}),a.a.createElement("br",null),a.a.createElement("span",{className:"c-grey-c"},!!(rr!=null&&rr.length)&&"\u5728\u5DE6\u4FA7\u4EE3\u7801\u4ED3\u5E93\u533A\u57DF\u70B9\u51FB\u76EE\u5F55\u6253\u5F00\u6587\u4EF6",!(rr!=null&&rr.length)&&"\u8BF7\u5148\u5728\u5DE6\u4FA7\u4E0A\u4F20\u6587\u4EF6\u6216\u65B0\u5EFA\u6587\u4EF6\uFF01")))),jr==="2"&&a.a.createElement("div",{className:H.a.commit},a.a.createElement(st,{isRepository:hr}))))},qe=Object(G.a)(function($e){var ht=$e.loading,Rt=$e.globalSetting,pt=$e.practiceSetting,wt=$e.shixunsDetail;return{globalSetting:Rt,loading:ht,practiceSetting:pt,shixunsDetail:wt}})(Re),At=F.default=function($e){var ht=$e.taskId,Rt=$e.taskData,pt=$e.onEditRepCode,wt=Object(g.useRef)(),Ct=Object(g.useRef)(),Kt=Object(g.useMemo)(function(){if(Rt){var Vt,dn,cn,qt,Lt,Tn=Rt==null||((Vt=Rt.challenge)===null||Vt===void 0||((dn=Vt.path)===null||dn===void 0||((cn=dn.replace("\uFF1B",";"))===null||cn===void 0)))?void 0:cn.split(";")[0];return"https://latexjs.educoder.net/index.html?id=".concat(Rt==null||((qt=Rt.shixun)===null||qt===void 0)?void 0:qt.identifier,"&path=").concat(Tn,"&taskId=").concat(ht,"&myshixunId=").concat(Rt==null||((Lt=Rt.myshixun)===null||Lt===void 0)?void 0:Lt.identifier,"&token=").concat(Object(d.n)("_educoder_session"))}},[Rt]);return a.a.createElement(h.a,{style:{height:"100vh"},ref:Ct},a.a.createElement(m.a,{flex:"1"},(Rt==null?void 0:Rt.shixun)&&a.a.createElement(qe,{taskId:ht,taskData:Rt,onEditRepCode:pt})),a.a.createElement(m.a,{flex:"1",className:o.a.wrap},a.a.createElement("iframe",{ref:wt,id:"latexIframeRef",style:{width:"100%",border:"none",height:"100%"},src:Kt}),a.a.createElement("span",{className:o.a.full,onClick:function(){Object(f.a)()?Object(f.b)():Object(f.d)(Ct.current)}},a.a.createElement("span",{className:"iconfont icon-quanping mr5 font12"}),"\u5168\u5C4F / \u9000\u51FA\u5168\u5C4F")))}},"4qgm":function(S,F){S.exports="data:image/png;base64,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"},"4u4S":function(S,F){S.exports="data:image/png;base64,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"},"55Ip":function(S,F,v){"use strict";v.d(F,"a",function(){return y});var w=v("Ty5D"),h=v("dI71"),I=v("cDcd"),m=v.n(I),g=v("YS25"),a=v("17x9"),f=v.n(a),d=v("wx14"),u=v("zLVn"),o=v("9R94"),r=function(R){Object(h.a)(P,R);function P(){for(var W,z=arguments.length,H=new Array(z),ee=0;ee<z;ee++)H[ee]=arguments[ee];return W=R.call.apply(R,[this].concat(H))||this,W.history=Object(g.a)(W.props),W}var B=P.prototype;return B.render=function(){return m.a.createElement(w.c,{history:this.history,children:this.props.children})},P}(m.a.Component),l=function(R){Object(h.a)(P,R);function P(){for(var W,z=arguments.length,H=new Array(z),ee=0;ee<z;ee++)H[ee]=arguments[ee];return W=R.call.apply(R,[this].concat(H))||this,W.history=Object(g.b)(W.props),W}var B=P.prototype;return B.render=function(){return m.a.createElement(w.c,{history:this.history,children:this.props.children})},P}(m.a.Component),n=function(P,B){return typeof P=="function"?P(B):P},s=function(P,B){return typeof P=="string"?Object(g.c)(P,null,null,B):P},e=function(P){return P},i=m.a.forwardRef;typeof i=="undefined"&&(i=e);function _(R){return!!(R.metaKey||R.altKey||R.ctrlKey||R.shiftKey)}var b=i(function(R,P){var B=R.innerRef,W=R.navigate,z=R.onClick,H=Object(u.a)(R,["innerRef","navigate","onClick"]),ee=H.target,G=Object(d.a)({},H,{onClick:function(K){try{z&&z(K)}catch(L){throw K.preventDefault(),L}!K.defaultPrevented&&K.button===0&&(!ee||ee==="_self")&&!_(K)&&(K.preventDefault(),W())}});return e!==i?G.ref=P||B:G.ref=B,m.a.createElement("a",G)}),y=i(function(R,P){var B=R.component,W=B===void 0?b:B,z=R.replace,H=R.to,ee=R.innerRef,G=Object(u.a)(R,["component","replace","to","innerRef"]);return m.a.createElement(w.e.Consumer,null,function(U){U||Object(o.a)(!1);var K=U.history,L=s(n(H,U.location),U.location),D=L?K.createHref(L):"",j=Object(d.a)({},G,{href:D,navigate:function(){var ie=n(H,U.location),pe=z?K.replace:K.push;pe(ie)}});return e!==i?j.ref=P||ee:j.innerRef=ee,m.a.createElement(W,j)})});if(!1)var E,c;var C=function(P){return P},x=m.a.forwardRef;typeof x=="undefined"&&(x=C);function M(){for(var R=arguments.length,P=new Array(R),B=0;B<R;B++)P[B]=arguments[B];return P.filter(function(W){return W}).join(" ")}var k=x(function(R,P){var B=R["aria-current"],W=B===void 0?"page":B,z=R.activeClassName,H=z===void 0?"active":z,ee=R.activeStyle,G=R.className,U=R.exact,K=R.isActive,L=R.location,D=R.sensitive,j=R.strict,Z=R.style,ie=R.to,pe=R.innerRef,Ee=Object(u.a)(R,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return m.a.createElement(w.e.Consumer,null,function(De){De||Object(o.a)(!1);var q=L||De.location,be=s(n(ie,q),q),ye=be.pathname,le=ye&&ye.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),ue=le?Object(w.f)(q.pathname,{path:le,exact:U,sensitive:D,strict:j}):null,ne=!!(K?K(ue,q):ue),xe=ne?M(G,H):G,$=ne?Object(d.a)({},Z,{},ee):Z,oe=Object(d.a)({"aria-current":ne&&W||null,className:xe,style:$,to:be},Ee);return C!==x?oe.ref=P||pe:oe.innerRef=pe,m.a.createElement(y,oe)})});if(!1)var T},"5D2P":function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFTklEQVRoQ91aS4xURRQ993UzUUZcqFEc4meh0cQFSlwgrvAHSgQWhOhCk4GZqmdw+ERUWDkrBMUBnIzzqqYjcTaaGBLFxA8MjIk/3PhZCCa6UAyKC11ARnDo6Wvu+HrS0/R7r96nWVBJpxfv3nPPrbp169aHUEAzxsxl5gcB3AdgAREtkH8AXSH87wBOMfMp+QfwFREd0Vr/k9c8ZQUwxixi5mWe5y1l5qUAyimxqkQ0XqvVxonoE631Nyn1p8VTO7B///75Fy5c2MzMWwB0ZDHaQmeSiPbMmTNnb3d39+k0mKkcMMZsBiC/W9IYSSH7K4C9Wuu9rjpODoyMjNxQq9VGADzuCpxT7gPP83p7e3v/TMJJdCAIgoVEdBDAzUlgBX8/ycwrfd//Pg431gFr7RPM/HbBxFLBEdGTSql3opQiHQiCoI+IXk9lrU3CzLzR9/3BVvAtHbDWPsrMH7aJTyZYInpMKfVRs/JFDlQqlduq1eoxIro2k6U2KTHzX+VyeXFPT8/PjSYucsBae4iZH24Tj1ywRHRYKfVIpANhnt+Ty0r7lbc0rhMzI2CMuRHAlwBubT+HXBZ+AbBEa/3HrFLCWruTmV/MBZ1N+TiAdyNUX2qZeYh2KaW2zThQqVTumZqaOlZgbePqynEiWquU+qFZwRjzBoBnIoAmS6WSTOhvp0PIGPMcgN2uVguSiyQfBIFPRMMJdrZqrV+bdsBa+x4zryqImAtMJHlr7RJmPgxgbhwQEb2vlFpNAwMDV3Z2dp7JUM+7EG0lE0l+dHS089y5c4dkkjqAVycmJq4ma+0yZv7YQaEIkUjyAh4EwTAR+a6GiGg5BUGwg4i2uyrlkEsi7xL3s8wz88syAm8x89M5iLmoxpIP4348bRYkolEyxowBkA25S1sLQJbyHhfhUCaWvMT9+fPnx5h5cQrMuugRceAEgDsdlKfTVph2rwMgC4mk37gWSz5L3DcZ+1EckAw0L44FM4/4vq+aZfr7+zu6urq2MbPMoSuavieSt9b6zJyU7+OonXVygIjWKKUOxCGFhaA4cj0AF/KS7z8D4DmMfpTIGdcQOgtgldZaJlpss9auA/B1q/Kgrhjm+08B3JuEF/ediE44T2IikiOP1Uqp7/IYDePeElFvXhwAY2nTqJCXkTiZ1XgBcT9jmplHxYEd4SR04kRER0ul0ur169dLWKVqYb7/IpVSjHB9IctSShzQWq9JQySMeyG/MI1ewhxYnqeYq2itnePYGPMmgO6iyAP4v5gTwBzl9Cta68RdnDHmWQAtz3WyOjRTTodZYSsRvZoRbLvWemeU7vDw8P2e532eETtSjZmf931/d31HtkguHdIWUw3oWmttm60NDQ1dVS6XZat6V8EOTMplitwpNJ5K7ALwQg5Da7XWszbnxphRAE/lwIxSnQnd5mMVGYWsZ///MvMK3/ePiFVjjFyADLSBvCyo0vuzj1VCo3J5kflgi5lPE9EKIprHzFIqtKO1PtiqWzLGyIb6oRyW5ZynBOCOHBhRqmNa61nHnhedjQZBcDsRycS7pg0E8kD+LZse3/d/agS5/I7XG0JpI4B9ebqsQN1NWuuWly2X7xVTvfestXfXarWDRHRTgT2aCMXMv3metzJp/5F4SymWhoaG5pfLZVlpL9k1a7VaVRs2bEi89HZyIOwu2b1tukQX3TL3OHGYsjw1GBwc7Oro6Kg7UthTA7mhn5yc3NfX1ycPQ5xbmhGYBSqPPYhINkMPAJDHHrJ4pWlTAOShx1FmvnSPPVoxbHxu43neAmauP7eRf2nTz2yI6FStViv0uc1/ndZCH8rgOooAAAAASUVORK5CYII="},"5DcX":function(S,F,v){S.exports={flex_box_center:"flex_box_center___ITCrt",flex_space_between:"flex_space_between___miKTU",flex_box_vertical_center:"flex_box_vertical_center___21Sc2",flex_box_center_end:"flex_box_center_end___3G7O1",flex_box_column:"flex_box_column___2UQvZ",menu:"menu___3WFLo",warehouse:"warehouse___2PwKB",header:"header___Sod9H",title:"title___1Y3oM",content:"content___1E7ip",left:"left___2pmQt",close:"close___37Pej",right:"right___1JM70",loading:"loading___2h7Lc",empty:"empty___2PqJB",tabs:"tabs___zn34y",line:"line___2Ft7K",footer:"footer___cQjHk",commit:"commit___1TgxV",blueLight:"blueLight___a6l-z",filePathWrp:"filePathWrp___104JD",filePath:"filePath___21Vqm",bottom0:"bottom0___3wcE2"}},"5GGG":function(S,F,v){S.exports={flex_box_center:"flex_box_center___jZegZ",flex_space_between:"flex_space_between___LWg4q",flex_box_vertical_center:"flex_box_vertical_center___29tJ6",flex_box_center_end:"flex_box_center_end___21Gx8",flex_box_column:"flex_box_column___1Vfub",commitWrap:"commitWrap___1Pjn4",wrap:"wrap___2rrrf",colorGray:"colorGray___qLOU5",content:"content___26EBx",itemTime:"itemTime___sQDA2",imageUrl:"imageUrl___29qPZ",blueLight:"blueLight___WsUcs",divider:"divider___1Yxuo",empty:"empty___1tN2T"}},"5VLF":function(S,F,v){"use strict";var w,h;function I(m,g,a){var f=function(d,u){return m.js_beautify(d,u)};return f.js=m.js_beautify,f.css=g.css_beautify,f.html=a.html_beautify,f.js_beautify=m.js_beautify,f.css_beautify=g.css_beautify,f.html_beautify=a.html_beautify,f}!(w=[v("6UM0"),v("TXwP"),v("psGv")],h=function(m,g,a){return I(m,g,a)}.apply(F,w),h!==void 0&&(S.exports=h))},"5hvy":function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("MlIO"))})(this,function(w){return function(h){var I=w,m=I.lib,g=m.WordArray,a=m.Hasher,f=I.x64,d=f.Word,u=I.algo,o=[],r=[],l=[];(function(){for(var e=1,i=0,_=0;_<24;_++){o[e+5*i]=(_+1)*(_+2)/2%64;var b=i%5,y=(2*e+3*i)%5;e=b,i=y}for(var e=0;e<5;e++)for(var i=0;i<5;i++)r[e+5*i]=i+(2*e+3*i)%5*5;for(var E=1,c=0;c<24;c++){for(var C=0,x=0,M=0;M<7;M++){if(E&1){var k=(1<<M)-1;k<32?x^=1<<k:C^=1<<k-32}E&128?E=E<<1^113:E<<=1}l[c]=d.create(C,x)}})();var n=[];(function(){for(var e=0;e<25;e++)n[e]=d.create()})();var s=u.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],i=0;i<25;i++)e[i]=new d.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,i){for(var _=this._state,b=this.blockSize/2,y=0;y<b;y++){var E=e[i+2*y],c=e[i+2*y+1];E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,c=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360;var C=_[y];C.high^=c,C.low^=E}for(var x=0;x<24;x++){for(var M=0;M<5;M++){for(var k=0,T=0,R=0;R<5;R++){var C=_[M+5*R];k^=C.high,T^=C.low}var P=n[M];P.high=k,P.low=T}for(var M=0;M<5;M++)for(var B=n[(M+4)%5],W=n[(M+1)%5],z=W.high,H=W.low,k=B.high^(z<<1|H>>>31),T=B.low^(H<<1|z>>>31),R=0;R<5;R++){var C=_[M+5*R];C.high^=k,C.low^=T}for(var ee=1;ee<25;ee++){var k,T,C=_[ee],G=C.high,U=C.low,K=o[ee];K<32?(k=G<<K|U>>>32-K,T=U<<K|G>>>32-K):(k=U<<K-32|G>>>64-K,T=G<<K-32|U>>>64-K);var L=n[r[ee]];L.high=k,L.low=T}var D=n[0],j=_[0];D.high=j.high,D.low=j.low;for(var M=0;M<5;M++)for(var R=0;R<5;R++){var ee=M+5*R,C=_[ee],Z=n[ee],ie=n[(M+1)%5+5*R],pe=n[(M+2)%5+5*R];C.high=Z.high^~ie.high&pe.high,C.low=Z.low^~ie.low&pe.low}var C=_[0],Ee=l[x];C.high^=Ee.high,C.low^=Ee.low}},_doFinalize:function(){var e=this._data,i=e.words,_=this._nDataBytes*8,b=e.sigBytes*8,y=this.blockSize*32;i[b>>>5]|=1<<24-b%32,i[(h.ceil((b+1)/y)*y>>>5)-1]|=128,e.sigBytes=i.length*4,this._process();for(var E=this._state,c=this.cfg.outputLength/8,C=c/8,x=[],M=0;M<C;M++){var k=E[M],T=k.high,R=k.low;T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,R=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,x.push(R),x.push(T)}return new g.init(x,c)},clone:function(){for(var e=a.clone.call(this),i=e._state=this._state.slice(0),_=0;_<25;_++)i[_]=i[_].clone();return e}});I.SHA3=a._createHelper(s),I.HmacSHA3=a._createHmacHelper(s)}(Math),w.SHA3})},"5nXd":function(S,F,v){var w=v("MFOe"),h=w.slice,I=w.pluck,m=w.each,g=w.bind,a=w.create,f=w.isList,d=w.isFunction,u=w.isObject;S.exports={createStore:l};var o={version:"2.0.12",enabled:!1,get:function(n,s){var e=this.storage.read(this._namespacePrefix+n);return this._deserialize(e,s)},set:function(n,s){return s===void 0?this.remove(n):(this.storage.write(this._namespacePrefix+n,this._serialize(s)),s)},remove:function(n){this.storage.remove(this._namespacePrefix+n)},each:function(n){var s=this;this.storage.each(function(e,i){n.call(s,s._deserialize(e),(i||"").replace(s._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(n){return this._namespacePrefix=="__storejs_"+n+"_"},createStore:function(){return l.apply(this,arguments)},addPlugin:function(n){this._addPlugin(n)},namespace:function(n){return l(this.storage,this.plugins,n)}};function r(){var n=typeof console=="undefined"?null:console;if(!n)return;var s=n.warn?n.warn:n.log;s.apply(n,arguments)}function l(n,s,e){e||(e=""),n&&!f(n)&&(n=[n]),s&&!f(s)&&(s=[s]);var i=e?"__storejs_"+e+"_":"",_=e?new RegExp("^"+i):null,b=/^[a-zA-Z0-9_\-]*$/;if(!b.test(e))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var y={_namespacePrefix:i,_namespaceRegexp:_,_testStorage:function(c){try{var C="__storejs__test__";c.write(C,C);var x=c.read(C)===C;return c.remove(C),x}catch(M){return!1}},_assignPluginFnProp:function(c,C){var x=this[C];this[C]=function(){var k=h(arguments,0),T=this;function R(){return x?(m(arguments,function(B,W){k[W]=B}),x.apply(T,k)):void 0}var P=[R].concat(k);return c.apply(T,P)}},_serialize:function(c){return JSON.stringify(c)},_deserialize:function(c,C){if(!c)return C;var x="";try{x=JSON.parse(c)}catch(M){x=c}return x!==void 0?x:C},_addStorage:function(c){if(this.enabled)return;this._testStorage(c)&&(this.storage=c,this.enabled=!0)},_addPlugin:function(c){var C=this;if(f(c)){m(c,function(k){C._addPlugin(k)});return}var x=I(this.plugins,function(k){return c===k});if(x)return;if(this.plugins.push(c),!d(c))throw new Error("Plugins must be function values that return objects");var M=c.call(this);if(!u(M))throw new Error("Plugins must return an object of function properties");m(M,function(k,T){if(!d(k))throw new Error("Bad plugin property: "+T+" from plugin "+c.name+". Plugins should only return functions.");C._assignPluginFnProp(k,T)})},addStorage:function(c){r("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(c)}},E=a(y,o,{plugins:[]});return E.raw={},m(E,function(c,C){d(c)&&(E.raw[C]=g(E,c))}),m(n,function(c){E._addStorage(c)}),m(s,function(c){E._addPlugin(c)}),E}},"6+eU":function(S,F,v){"use strict";v.d(F,"a",function(){return x});var w=v("wx14"),h=v("rePB"),I=v("VTBJ"),m=v("1OyB"),g=v("vuIU"),a=v("Ji7U"),f=v("LK+K"),d=v("cDcd"),u=v.n(d),o=v("TSYQ"),r=v.n(o),l=function(k){var T,R="".concat(k.rootPrefixCls,"-item"),P=r()(R,"".concat(R,"-").concat(k.page),(T={},Object(h.a)(T,"".concat(R,"-active"),k.active),Object(h.a)(T,k.className,!!k.className),Object(h.a)(T,"".concat(R,"-disabled"),!k.page),T)),B=function(){k.onClick(k.page)},W=function(H){k.onKeyPress(H,k.onClick,k.page)};return u.a.createElement("li",{title:k.showTitle?k.page:null,className:P,onClick:B,onKeyPress:W,tabIndex:"0"},k.itemRender(k.page,"page",u.a.createElement("a",{rel:"nofollow"},k.page)))},n=l,s={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},e=function(M){Object(a.a)(T,M);var k=Object(f.a)(T);function T(){var R;Object(m.a)(this,T);for(var P=arguments.length,B=new Array(P),W=0;W<P;W++)B[W]=arguments[W];return R=k.call.apply(k,[this].concat(B)),R.state={goInputText:""},R.buildOptionText=function(z){return"".concat(z," ").concat(R.props.locale.items_per_page)},R.changeSize=function(z){R.props.changeSize(Number(z))},R.handleChange=function(z){R.setState({goInputText:z.target.value})},R.handleBlur=function(z){var H=R.props,ee=H.goButton,G=H.quickGo,U=H.rootPrefixCls,K=R.state.goInputText;if(ee||K==="")return;if(z.relatedTarget&&(z.relatedTarget.className.indexOf("".concat(U,"-prev"))>=0||z.relatedTarget.className.indexOf("".concat(U,"-next"))>=0))return;R.setState({goInputText:""}),G(R.getValidValue())},R.go=function(z){var H=R.state.goInputText;if(H==="")return;(z.keyCode===s.ENTER||z.type==="click")&&(R.setState({goInputText:""}),R.props.quickGo(R.getValidValue()))},R}return Object(g.a)(T,[{key:"getValidValue",value:function(){var P=this.state,B=P.goInputText,W=P.current;return!B||isNaN(B)?W:Number(B)}},{key:"getPageSizeOptions",value:function(){var P=this.props,B=P.pageSize,W=P.pageSizeOptions;return W.some(function(z){return z.toString()===B.toString()})?W:W.concat([B.toString()]).sort(function(z,H){var ee=isNaN(Number(z))?0:Number(z),G=isNaN(Number(H))?0:Number(H);return ee-G})}},{key:"render",value:function(){var P=this,B=this.props,W=B.pageSize,z=B.locale,H=B.rootPrefixCls,ee=B.changeSize,G=B.quickGo,U=B.goButton,K=B.selectComponentClass,L=B.buildOptionText,D=B.selectPrefixCls,j=B.disabled,Z=this.state.goInputText,ie="".concat(H,"-options"),pe=K,Ee=null,De=null,q=null;if(!ee&&!G)return null;var be=this.getPageSizeOptions();if(ee&&pe){var ye=be.map(function(le,ue){return u.a.createElement(pe.Option,{key:ue,value:le.toString()},(L||P.buildOptionText)(le))});Ee=u.a.createElement(pe,{disabled:j,prefixCls:D,showSearch:!1,className:"".concat(ie,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(W||be[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ue){return ue.parentNode}},ye)}return G&&(U&&(q=typeof U=="boolean"?u.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:j,className:"".concat(ie,"-quick-jumper-button")},z.jump_to_confirm):u.a.createElement("span",{onClick:this.go,onKeyUp:this.go},U)),De=u.a.createElement("div",{className:"".concat(ie,"-quick-jumper")},z.jump_to,u.a.createElement("input",{disabled:j,type:"text",value:Z,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),z.page,q)),u.a.createElement("li",{className:"".concat(ie)},Ee,De)}}]),T}(u.a.Component);e.defaultProps={pageSizeOptions:["10","20","50","100"]};var i=e,_=v("N2Kk");function b(){}function y(M){return typeof M=="number"&&isFinite(M)&&Math.floor(M)===M}function E(M,k,T){return T}function c(M,k,T){var R=typeof M=="undefined"?k.pageSize:M;return Math.floor((T.total-1)/R)+1}var C=function(M){Object(a.a)(T,M);var k=Object(f.a)(T);function T(R){var P;Object(m.a)(this,T),P=k.call(this,R),P.getJumpPrevPage=function(){return Math.max(1,P.state.current-(P.props.showLessItems?3:5))},P.getJumpNextPage=function(){return Math.min(c(void 0,P.state,P.props),P.state.current+(P.props.showLessItems?3:5))},P.getItemIcon=function(ee,G){var U=P.props.prefixCls,K=ee||u.a.createElement("button",{type:"button","aria-label":G,className:"".concat(U,"-item-link")});return typeof ee=="function"&&(K=u.a.createElement(ee,Object(I.a)({},P.props))),K},P.savePaginationNode=function(ee){P.paginationNode=ee},P.isValid=function(ee){return y(ee)&&ee!==P.state.current},P.shouldDisplayQuickJumper=function(){var ee=P.props,G=ee.showQuickJumper,U=ee.pageSize,K=ee.total;return K<=U?!1:G},P.handleKeyDown=function(ee){(ee.keyCode===s.ARROW_UP||ee.keyCode===s.ARROW_DOWN)&&ee.preventDefault()},P.handleKeyUp=function(ee){var G=P.getValidValue(ee),U=P.state.currentInputValue;G!==U&&P.setState({currentInputValue:G}),ee.keyCode===s.ENTER?P.handleChange(G):ee.keyCode===s.ARROW_UP?P.handleChange(G-1):ee.keyCode===s.ARROW_DOWN&&P.handleChange(G+1)},P.changePageSize=function(ee){var G=P.state.current,U=c(ee,P.state,P.props);G=G>U?U:G,U===0&&(G=P.state.current),typeof ee=="number"&&("pageSize"in P.props||P.setState({pageSize:ee}),"current"in P.props||P.setState({current:G,currentInputValue:G})),P.props.onShowSizeChange(G,ee),"onChange"in P.props&&P.props.onChange&&P.props.onChange(G,ee)},P.handleChange=function(ee){var G=P.props.disabled,U=ee;if(P.isValid(U)&&!G){var K=c(void 0,P.state,P.props);U>K?U=K:U<1&&(U=1),"current"in P.props||P.setState({current:U,currentInputValue:U});var L=P.state.pageSize;return P.props.onChange(U,L),U}return P.state.current},P.prev=function(){P.hasPrev()&&P.handleChange(P.state.current-1)},P.next=function(){P.hasNext()&&P.handleChange(P.state.current+1)},P.jumpPrev=function(){P.handleChange(P.getJumpPrevPage())},P.jumpNext=function(){P.handleChange(P.getJumpNextPage())},P.hasPrev=function(){return P.state.current>1},P.hasNext=function(){return P.state.current<c(void 0,P.state,P.props)},P.runIfEnter=function(ee,G){if(ee.key==="Enter"||ee.charCode===13){for(var U=arguments.length,K=new Array(U>2?U-2:0),L=2;L<U;L++)K[L-2]=arguments[L];G.apply(void 0,K)}},P.runIfEnterPrev=function(ee){P.runIfEnter(ee,P.prev)},P.runIfEnterNext=function(ee){P.runIfEnter(ee,P.next)},P.runIfEnterJumpPrev=function(ee){P.runIfEnter(ee,P.jumpPrev)},P.runIfEnterJumpNext=function(ee){P.runIfEnter(ee,P.jumpNext)},P.handleGoTO=function(ee){(ee.keyCode===s.ENTER||ee.type==="click")&&P.handleChange(P.state.currentInputValue)};var B=R.onChange!==b,W="current"in R;W&&!B&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var z=R.defaultCurrent;"current"in R&&(z=R.current);var H=R.defaultPageSize;return"pageSize"in R&&(H=R.pageSize),z=Math.min(z,c(H,void 0,R)),P.state={current:z,currentInputValue:z,pageSize:H},P}return Object(g.a)(T,[{key:"componentDidUpdate",value:function(P,B){var W=this.props.prefixCls;if(B.current!==this.state.current&&this.paginationNode){var z=this.paginationNode.querySelector(".".concat(W,"-item-").concat(B.current));z&&document.activeElement===z&&z.blur()}}},{key:"getValidValue",value:function(P){var B=P.target.value,W=c(void 0,this.state,this.props),z=this.state.currentInputValue,H;return B===""?H=B:isNaN(Number(B))?H=z:B>=W?H=W:H=Number(B),H}},{key:"getShowSizeChanger",value:function(){var P=this.props,B=P.showSizeChanger,W=P.total,z=P.totalBoundaryShowSizeChanger;return typeof B!="undefined"?B:W>z}},{key:"renderPrev",value:function(P){var B=this.props,W=B.prevIcon,z=B.itemRender,H=z(P,"prev",this.getItemIcon(W,"prev page")),ee=!this.hasPrev();return Object(d.isValidElement)(H)?Object(d.cloneElement)(H,{disabled:ee}):H}},{key:"renderNext",value:function(P){var B=this.props,W=B.nextIcon,z=B.itemRender,H=z(P,"next",this.getItemIcon(W,"next page")),ee=!this.hasNext();return Object(d.isValidElement)(H)?Object(d.cloneElement)(H,{disabled:ee}):H}},{key:"render",value:function(){var P=this,B=this.props,W=B.prefixCls,z=B.className,H=B.style,ee=B.disabled,G=B.hideOnSinglePage,U=B.total,K=B.locale,L=B.showQuickJumper,D=B.showLessItems,j=B.showTitle,Z=B.showTotal,ie=B.simple,pe=B.itemRender,Ee=B.showPrevNextJumpers,De=B.jumpPrevIcon,q=B.jumpNextIcon,be=B.selectComponentClass,ye=B.selectPrefixCls,le=B.pageSizeOptions,ue=this.state,ne=ue.current,xe=ue.pageSize,$=ue.currentInputValue;if(G===!0&&U<=xe)return null;var oe=c(void 0,this.state,this.props),Le=[],te=null,Y=null,X=null,J=null,ve=null,he=L&&L.goButton,Ce=D?1:2,Pe=ne-1>0?ne-1:0,de=ne+1<oe?ne+1:oe,ke=Object.keys(this.props).reduce(function(ce,we){return(we.substr(0,5)==="data-"||we.substr(0,5)==="aria-"||we==="role")&&(ce[we]=P.props[we]),ce},{});if(ie)return he&&(typeof he=="boolean"?ve=u.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},K.jump_to_confirm):ve=u.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},he),ve=u.a.createElement("li",{title:j?"".concat(K.jump_to).concat(ne,"/").concat(oe):null,className:"".concat(W,"-simple-pager")},ve)),u.a.createElement("ul",Object(w.a)({className:r()(W,"".concat(W,"-simple"),Object(h.a)({},"".concat(W,"-disabled"),ee),z),style:H,ref:this.savePaginationNode},ke),u.a.createElement("li",{title:j?K.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:r()("".concat(W,"-prev"),Object(h.a)({},"".concat(W,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(Pe)),u.a.createElement("li",{title:j?"".concat(ne,"/").concat(oe):null,className:"".concat(W,"-simple-pager")},u.a.createElement("input",{type:"text",value:$,disabled:ee,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),u.a.createElement("span",{className:"".concat(W,"-slash")},"/"),oe),u.a.createElement("li",{title:j?K.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:r()("".concat(W,"-next"),Object(h.a)({},"".concat(W,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(de)),ve);if(oe<=3+Ce*2){var me={locale:K,rootPrefixCls:W,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:j,itemRender:pe};oe||Le.push(u.a.createElement(n,Object(w.a)({},me,{key:"noPager",page:oe,className:"".concat(W,"-disabled")})));for(var Be=1;Be<=oe;Be+=1){var ft=ne===Be;Le.push(u.a.createElement(n,Object(w.a)({},me,{key:Be,page:Be,active:ft})))}}else{var vt=D?K.prev_3:K.prev_5,Xe=D?K.next_3:K.next_5;Ee&&(te=u.a.createElement("li",{title:j?vt:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:r()("".concat(W,"-jump-prev"),Object(h.a)({},"".concat(W,"-jump-prev-custom-icon"),!!De))},pe(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(De,"prev page"))),Y=u.a.createElement("li",{title:j?Xe:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:r()("".concat(W,"-jump-next"),Object(h.a)({},"".concat(W,"-jump-next-custom-icon"),!!q))},pe(this.getJumpNextPage(),"jump-next",this.getItemIcon(q,"next page")))),J=u.a.createElement(n,{locale:K,last:!0,rootPrefixCls:W,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:oe,page:oe,active:!1,showTitle:j,itemRender:pe}),X=u.a.createElement(n,{locale:K,rootPrefixCls:W,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:j,itemRender:pe});var Bt=Math.max(1,ne-Ce),Ae=Math.min(ne+Ce,oe);ne-1<=Ce&&(Ae=1+Ce*2),oe-ne<=Ce&&(Bt=oe-Ce*2);for(var We=Bt;We<=Ae;We+=1){var dt=ne===We;Le.push(u.a.createElement(n,{locale:K,rootPrefixCls:W,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:We,page:We,active:dt,showTitle:j,itemRender:pe}))}ne-1>=Ce*2&&ne!==1+2&&(Le[0]=Object(d.cloneElement)(Le[0],{className:"".concat(W,"-item-after-jump-prev")}),Le.unshift(te)),oe-ne>=Ce*2&&ne!==oe-2&&(Le[Le.length-1]=Object(d.cloneElement)(Le[Le.length-1],{className:"".concat(W,"-item-before-jump-next")}),Le.push(Y)),Bt!==1&&Le.unshift(X),Ae!==oe&&Le.push(J)}var Ge=null;Z&&(Ge=u.a.createElement("li",{className:"".concat(W,"-total-text")},Z(U,[U===0?0:(ne-1)*xe+1,ne*xe>U?U:ne*xe])));var je=!this.hasPrev()||!oe,Fe=!this.hasNext()||!oe;return u.a.createElement("ul",Object(w.a)({className:r()(W,z,Object(h.a)({},"".concat(W,"-disabled"),ee)),style:H,unselectable:"unselectable",ref:this.savePaginationNode},ke),Ge,u.a.createElement("li",{title:j?K.prev_page:null,onClick:this.prev,tabIndex:je?null:0,onKeyPress:this.runIfEnterPrev,className:r()("".concat(W,"-prev"),Object(h.a)({},"".concat(W,"-disabled"),je)),"aria-disabled":je},this.renderPrev(Pe)),Le,u.a.createElement("li",{title:j?K.next_page:null,onClick:this.next,tabIndex:Fe?null:0,onKeyPress:this.runIfEnterNext,className:r()("".concat(W,"-next"),Object(h.a)({},"".concat(W,"-disabled"),Fe)),"aria-disabled":Fe},this.renderNext(de)),u.a.createElement(i,{disabled:ee,locale:K,rootPrefixCls:W,selectComponentClass:be,selectPrefixCls:ye,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ne,pageSize:xe,pageSizeOptions:le,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:he}))}}],[{key:"getDerivedStateFromProps",value:function(P,B){var W={};if("current"in P&&(W.current=P.current,P.current!==B.current&&(W.currentInputValue=W.current)),"pageSize"in P&&P.pageSize!==B.pageSize){var z=B.current,H=c(P.pageSize,B,P);z=z>H?H:z,"current"in P||(W.current=z,W.currentInputValue=z),W.pageSize=P.pageSize}return W}}]),T}(u.a.Component);C.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:b,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:b,locale:_.a,style:{},itemRender:E,totalBoundaryShowSizeChanger:50};var x=C},"6BzB":function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.shrinkBuf=w,F.arraySet=h,F.flattenChunks=I,F.Buf32=F.Buf16=F.Buf8=void 0;function w(f,d){return f.length===d?f:f.subarray?f.subarray(0,d):(f.length=d,f)}function h(f,d,u,o,r){if(d.subarray&&f.subarray){f.set(d.subarray(u,u+o),r);return}for(var l=0;l<o;l++)f[r+l]=d[u+l]}function I(f){var d,u,o,r,l,n;for(o=0,d=0,u=f.length;d<u;d++)o+=f[d].length;for(n=new Uint8Array(o),r=0,d=0,u=f.length;d<u;d++)l=f[d],n.set(l,r),r+=l.length;return n}var m=Uint8Array;F.Buf8=m;var g=Uint16Array;F.Buf16=g;var a=Int32Array;F.Buf32=a},"6Qwc":function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var w={8:"Backspace",9:"Tab",10:"NumpadClear",12:"Numpad5",13:"Enter",16:"ShiftLeft",17:"ControlLeft",18:"AltLeft",19:"Pause",20:"CapsLock",21:"Lang1",25:"Lang2",27:"Escape",28:"Convert",29:"NonConvert",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",44:"PrintScreen",45:"Insert",46:"Delete",47:"Help",48:"Digit0",49:"Digit1",50:"Digit2",51:"Digit3",52:"Digit4",53:"Digit5",54:"Digit6",55:"Digit7",56:"Digit8",57:"Digit9",91:"MetaLeft",92:"MetaRight",93:"ContextMenu",95:"Sleep",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",108:"NumpadDecimal",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",124:"F13",125:"F14",126:"F15",127:"F16",128:"F17",129:"F18",130:"F19",131:"F20",132:"F21",133:"F22",134:"F23",135:"F24",144:"NumLock",145:"ScrollLock",166:"BrowserBack",167:"BrowserForward",168:"BrowserRefresh",169:"BrowserStop",170:"BrowserSearch",171:"BrowserFavorites",172:"BrowserHome",173:"AudioVolumeMute",174:"AudioVolumeDown",175:"AudioVolumeUp",176:"MediaTrackNext",177:"MediaTrackPrevious",178:"MediaStop",179:"MediaPlayPause",180:"LaunchMail",181:"MediaSelect",182:"LaunchApp1",183:"LaunchApp2",225:"AltRight"};F.default=w},"6RRn":function(S,F,v){"use strict";var w=v("wCXF"),h=v("n6Qo");v.d(F,"b",function(){return h.a});var I=v("IBYe"),m=v("6eGT"),g=v("hW8S");v.d(F,"a",function(){return g.a}),F.c=w.b},"6UM0":function(S,F,v){var w,h;(function(){var I;(function(){"use strict";var g=[function(u,o,r){var l=r(1).Beautifier,n=r(5).Options;function s(e,i){var _=new l(e,i);return _.beautify()}u.exports=s,u.exports.defaultOptions=function(){return new n}},function(u,o,r){var l=r(2).Output,n=r(3).Token,s=r(4),e=r(5).Options,i=r(7).Tokenizer,_=r(7).line_starters,b=r(7).positionable_operators,y=r(7).TOKEN;function E(D,j){return j.indexOf(D)!==-1}function c(D){return D.replace(/^\s+/g,"")}function C(D){for(var j={},Z=0;Z<D.length;Z++)j[D[Z].replace(/-/g,"_")]=D[Z];return j}function x(D,j){return D&&D.type===y.RESERVED&&D.text===j}function M(D,j){return D&&D.type===y.RESERVED&&E(D.text,j)}var k=["case","return","do","if","throw","else","await","break","continue","async"],T=["before-newline","after-newline","preserve-newline"],R=C(T),P=[R.before_newline,R.preserve_newline],B={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function W(D,j){if(j.multiline_frame||j.mode===B.ForInitializer||j.mode===B.Conditional)return;D.remove_indent(j.start_line_index)}function z(D){D=D.replace(s.allLineBreaks,`
`);for(var j=[],Z=D.indexOf(`
`);Z!==-1;)j.push(D.substring(0,Z)),D=D.substring(Z+1),Z=D.indexOf(`
`);return D.length&&j.push(D),j}function H(D){return D===B.ArrayLiteral}function ee(D){return E(D,[B.Expression,B.ForInitializer,B.Conditional])}function G(D,j){for(var Z=0;Z<D.length;Z++){var ie=D[Z].trim();if(ie.charAt(0)!==j)return!1}return!0}function U(D,j){for(var Z=0,ie=D.length,pe;Z<ie;Z++)if(pe=D[Z],pe&&pe.indexOf(j)!==0)return!1;return!0}function K(D,j){j=j||{},this._source_text=D||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new e(j)}K.prototype.create_flags=function(D,j){var Z=0;D&&(Z=D.indentation_level,!this._output.just_added_newline()&&D.line_indent_level>Z&&(Z=D.line_indent_level));var ie={mode:j,parent:D,last_token:D?D.last_token:new n(y.START_BLOCK,""),last_word:D?D.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:Z,alignment:0,line_indent_level:D?D.line_indent_level:Z,start_line_index:this._output.get_line_number(),ternary_depth:0};return ie},K.prototype._reset=function(D){var j=D.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new l(this._options,j),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(B.BlockStatement);var Z=new i(D,this._options);return this._tokens=Z.tokenize(),D},K.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var D,j=this._reset(this._source_text),Z=this._options.eol;this._options.eol==="auto"&&(Z=`
`,j&&s.lineBreak.test(j||"")&&(Z=j.match(s.lineBreak)[0]));for(var ie=this._tokens.next();ie;)this.handle_token(ie),this._last_last_text=this._flags.last_token.text,this._flags.last_token=ie,ie=this._tokens.next();return D=this._output.get_code(Z),D},K.prototype.handle_token=function(D,j){D.type===y.START_EXPR?this.handle_start_expr(D):D.type===y.END_EXPR?this.handle_end_expr(D):D.type===y.START_BLOCK?this.handle_start_block(D):D.type===y.END_BLOCK?this.handle_end_block(D):D.type===y.WORD?this.handle_word(D):D.type===y.RESERVED?this.handle_word(D):D.type===y.SEMICOLON?this.handle_semicolon(D):D.type===y.STRING?this.handle_string(D):D.type===y.EQUALS?this.handle_equals(D):D.type===y.OPERATOR?this.handle_operator(D):D.type===y.COMMA?this.handle_comma(D):D.type===y.BLOCK_COMMENT?this.handle_block_comment(D,j):D.type===y.COMMENT?this.handle_comment(D,j):D.type===y.DOT?this.handle_dot(D):D.type===y.EOF?this.handle_eof(D):D.type===y.UNKNOWN?this.handle_unknown(D,j):this.handle_unknown(D,j)},K.prototype.handle_whitespace_and_comments=function(D,j){var Z=D.newlines,ie=this._options.keep_array_indentation&&H(this._flags.mode);if(D.comments_before)for(var pe=D.comments_before.next();pe;)this.handle_whitespace_and_comments(pe,j),this.handle_token(pe,j),pe=D.comments_before.next();if(ie)for(var Ee=0;Ee<Z;Ee+=1)this.print_newline(Ee>0,j);else if(this._options.max_preserve_newlines&&Z>this._options.max_preserve_newlines&&(Z=this._options.max_preserve_newlines),this._options.preserve_newlines&&Z>1){this.print_newline(!1,j);for(var De=1;De<Z;De+=1)this.print_newline(!0,j)}};var L=["async","break","continue","return","throw","yield"];K.prototype.allow_wrap_or_preserved_newline=function(D,j){if(j=j===void 0?!1:j,this._output.just_added_newline())return;var Z=this._options.preserve_newlines&&D.newlines||j,ie=E(this._flags.last_token.text,b)||E(D.text,b);if(ie){var pe=E(this._flags.last_token.text,b)&&E(this._options.operator_position,P)||E(D.text,b);Z=Z&&pe}if(Z)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(M(this._flags.last_token,L))return;this._output.set_wrap_point()}},K.prototype.print_newline=function(D,j){if(!j&&(this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==y.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")))for(var Z=this._tokens.peek();this._flags.mode===B.Statement&&!(this._flags.if_block&&x(Z,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(D)&&(this._flags.multiline_frame=!0)},K.prototype.print_token_line_indentation=function(D){this._output.just_added_newline()&&(this._options.keep_array_indentation&&D.newlines&&(D.text==="["||H(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(D.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},K.prototype.print_token=function(D){if(this._output.raw){this._output.add_raw_token(D);return}if(this._options.comma_first&&D.previous&&D.previous.type===y.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var j=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(j),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(D),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(D),this._output.non_breaking_space=!0,this._output.add_token(D.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},K.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},K.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},K.prototype.set_mode=function(D){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,D),this._flags=this.create_flags(this._previous_flags,D),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},K.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===B.Statement&&W(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},K.prototype.start_of_object_property=function(){return this._flags.parent.mode===B.ObjectLiteral&&this._flags.mode===B.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||M(this._flags.last_token,["get","set"]))},K.prototype.start_of_statement=function(D){var j=!1;return j=j||M(this._flags.last_token,["var","let","const"])&&D.type===y.WORD,j=j||x(this._flags.last_token,"do"),j=j||!(this._flags.parent.mode===B.ObjectLiteral&&this._flags.mode===B.Statement)&&M(this._flags.last_token,L)&&!D.newlines,j=j||x(this._flags.last_token,"else")&&!(x(D,"if")&&!D.comments_before),j=j||this._flags.last_token.type===y.END_EXPR&&(this._previous_flags.mode===B.ForInitializer||this._previous_flags.mode===B.Conditional),j=j||this._flags.last_token.type===y.WORD&&this._flags.mode===B.BlockStatement&&!this._flags.in_case&&!(D.text==="--"||D.text==="++")&&this._last_last_text!=="function"&&D.type!==y.WORD&&D.type!==y.RESERVED,j=j||this._flags.mode===B.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||M(this._flags.last_token,["get","set"])),j?(this.set_mode(B.Statement),this.indent(),this.handle_whitespace_and_comments(D,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D,M(D,["do","for","if","while"])),!0):!1},K.prototype.handle_start_expr=function(D){this.start_of_statement(D)||this.handle_whitespace_and_comments(D);var j=B.Expression;if(D.text==="["){if(this._flags.last_token.type===y.WORD||this._flags.last_token.text===")"){M(this._flags.last_token,_)&&(this._output.space_before_token=!0),this.print_token(D),this.set_mode(j),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}j=B.ArrayLiteral,H(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),E(this._flags.last_token.type,[y.START_EXPR,y.END_EXPR,y.WORD,y.OPERATOR,y.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===y.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,j=B.ForInitializer):E(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,j=B.Conditional):E(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&D.whitespace_before===""?this._output.space_before_token=!1:(E(this._flags.last_token.text,_)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===y.EQUALS||this._flags.last_token.type===y.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D);else if(this._flags.last_token.type===y.WORD){this._output.space_before_token=!1;var Z=this._tokens.peek(-3);if(this._options.space_after_named_function&&Z){var ie=this._tokens.peek(-4);M(Z,["async","function"])||Z.text==="*"&&M(ie,["async","function"])?this._output.space_before_token=!0:this._flags.mode===B.ObjectLiteral?(Z.text==="{"||Z.text===","||Z.text==="*"&&(ie.text==="{"||ie.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(D);(this._flags.last_token.type===y.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(E(this._last_last_text,["function","yield"])||this._flags.mode===B.ObjectLiteral&&E(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===y.START_BLOCK?this.print_newline():(this._flags.last_token.type===y.END_EXPR||this._flags.last_token.type===y.START_EXPR||this._flags.last_token.type===y.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===y.COMMA)&&this.allow_wrap_or_preserved_newline(D,D.newlines),this.print_token(D),this.set_mode(j),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},K.prototype.handle_end_expr=function(D){for(;this._flags.mode===B.Statement;)this.restore_mode();this.handle_whitespace_and_comments(D),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(D,D.text==="]"&&H(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===y.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(D),this.restore_mode(),W(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===B.Conditional&&(this._previous_flags.mode=B.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},K.prototype.handle_start_block=function(D){this.handle_whitespace_and_comments(D);var j=this._tokens.peek(),Z=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===y.END_EXPR?(this.set_mode(B.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(B.BlockStatement):Z&&(E(Z.text,[":",","])&&E(j.type,[y.STRING,y.WORD,y.RESERVED])||E(j.text,["get","set","..."])&&E(Z.type,[y.WORD,y.RESERVED]))?E(this._last_last_text,["class","interface"])&&!E(Z.text,[":",","])?this.set_mode(B.BlockStatement):this.set_mode(B.ObjectLiteral):this._flags.last_token.type===y.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(B.BlockStatement):E(this._flags.last_token.type,[y.EQUALS,y.START_EXPR,y.COMMA,y.OPERATOR])||M(this._flags.last_token,["return","throw","import","default"])?this.set_mode(B.ObjectLiteral):this.set_mode(B.BlockStatement),this._flags.last_token&&(M(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var ie=!j.comments_before&&j.text==="}",pe=ie&&this._flags.last_word==="function"&&this._flags.last_token.type===y.END_EXPR;if(this._options.brace_preserve_inline){var Ee=0,De=null;this._flags.inline_frame=!0;do if(Ee+=1,De=this._tokens.peek(Ee-1),De.newlines){this._flags.inline_frame=!1;break}while(De.type!==y.EOF&&!(De.type===y.END_BLOCK&&De.opened===D))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&D.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==y.OPERATOR&&(pe||this._flags.last_token.type===y.EQUALS||M(this._flags.last_token,k)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(H(this._previous_flags.mode)&&(this._flags.last_token.type===y.START_EXPR||this._flags.last_token.type===y.COMMA)&&((this._flags.last_token.type===y.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===y.COMMA||this._flags.last_token.type===y.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(D),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==y.OPERATOR&&this._flags.last_token.type!==y.START_EXPR&&(this._flags.last_token.type===y.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(D),this.indent(),!ie&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},K.prototype.handle_end_block=function(D){for(this.handle_whitespace_and_comments(D);this._flags.mode===B.Statement;)this.restore_mode();var j=this._flags.last_token.type===y.START_BLOCK;this._flags.inline_frame&&!j?this._output.space_before_token=!0:this._options.brace_style==="expand"?j||this.print_newline():j||(H(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(D)},K.prototype.handle_word=function(D){if(D.type===y.RESERVED){if(E(D.text,["set","get"])&&this._flags.mode!==B.ObjectLiteral)D.type=y.WORD;else if(D.text==="import"&&E(this._tokens.peek().text,["(","."]))D.type=y.WORD;else if(E(D.text,["as","from"])&&!this._flags.import_block)D.type=y.WORD;else if(this._flags.mode===B.ObjectLiteral){var j=this._tokens.peek();j.text===":"&&(D.type=y.WORD)}}if(this.start_of_statement(D)?M(this._flags.last_token,["var","let","const"])&&D.type===y.WORD&&(this._flags.declaration_statement=!0):D.newlines&&!ee(this._flags.mode)&&(this._flags.last_token.type!==y.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==y.EQUALS&&(this._options.preserve_newlines||!M(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(D),this.print_newline()):this.handle_whitespace_and_comments(D),this._flags.do_block&&!this._flags.do_while)if(x(D,"while")){this._output.space_before_token=!0,this.print_token(D),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&x(D,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===B.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&M(D,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(D),this._flags.in_case=!0;return}if((this._flags.last_token.type===y.COMMA||this._flags.last_token.type===y.START_EXPR||this._flags.last_token.type===y.EQUALS||this._flags.last_token.type===y.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D)),x(D,"function")){(E(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(E(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===y.OPERATOR))&&(!this._output.just_added_blankline()&&!D.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===y.RESERVED||this._flags.last_token.type===y.WORD?M(this._flags.last_token,["get","set","new","export"])||M(this._flags.last_token,L)?this._output.space_before_token=!0:x(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===y.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(ee(this._flags.mode)||H(this._flags.mode))||this.print_newline(),this.print_token(D),this._flags.last_word=D.text;return}var Z="NONE";if(this._flags.last_token.type===y.END_BLOCK?this._previous_flags.inline_frame?Z="SPACE":M(D,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&D.newlines?Z="NEWLINE":(Z="SPACE",this._output.space_before_token=!0):Z="NEWLINE":this._flags.last_token.type===y.SEMICOLON&&this._flags.mode===B.BlockStatement?Z="NEWLINE":this._flags.last_token.type===y.SEMICOLON&&ee(this._flags.mode)?Z="SPACE":this._flags.last_token.type===y.STRING?Z="NEWLINE":this._flags.last_token.type===y.RESERVED||this._flags.last_token.type===y.WORD||this._flags.last_token.text==="*"&&(E(this._last_last_text,["function","yield"])||this._flags.mode===B.ObjectLiteral&&E(this._last_last_text,["{",","]))?Z="SPACE":this._flags.last_token.type===y.START_BLOCK?this._flags.inline_frame?Z="SPACE":Z="NEWLINE":this._flags.last_token.type===y.END_EXPR&&(this._output.space_before_token=!0,Z="NEWLINE"),M(D,_)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?Z="SPACE":Z="NEWLINE"),M(D,["else","catch","finally"]))if((!(this._flags.last_token.type===y.END_BLOCK&&this._previous_flags.mode===B.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&D.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var ie=this._output.current_line;ie.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else Z==="NEWLINE"?M(this._flags.last_token,k)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&M(D,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==y.END_EXPR?(this._flags.last_token.type!==y.START_EXPR||!M(D,["var","let","const"]))&&this._flags.last_token.text!==":"&&(x(D,"if")&&x(D.previous,"else")?this._output.space_before_token=!0:this.print_newline()):M(D,_)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&H(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():Z==="SPACE"&&(this._output.space_before_token=!0);D.previous&&(D.previous.type===y.WORD||D.previous.type===y.RESERVED)&&(this._output.space_before_token=!0),this.print_token(D),this._flags.last_word=D.text,D.type===y.RESERVED&&(D.text==="do"?this._flags.do_block=!0:D.text==="if"?this._flags.if_block=!0:D.text==="import"?this._flags.import_block=!0:this._flags.import_block&&x(D,"from")&&(this._flags.import_block=!1))},K.prototype.handle_semicolon=function(D){this.start_of_statement(D)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(D);for(var j=this._tokens.peek();this._flags.mode===B.Statement&&!(this._flags.if_block&&x(j,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(D)},K.prototype.handle_string=function(D){D.text.startsWith("`")&&D.newlines===0&&D.whitespace_before===""&&(D.previous.text===")"||this._flags.last_token.type===y.WORD)||(this.start_of_statement(D)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(D),this._flags.last_token.type===y.RESERVED||this._flags.last_token.type===y.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===y.COMMA||this._flags.last_token.type===y.START_EXPR||this._flags.last_token.type===y.EQUALS||this._flags.last_token.type===y.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(D):D.text.startsWith("`")&&this._flags.last_token.type===y.END_EXPR&&(D.previous.text==="]"||D.previous.text===")")&&D.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(D)},K.prototype.handle_equals=function(D){this.start_of_statement(D)||this.handle_whitespace_and_comments(D),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(D),this._output.space_before_token=!0},K.prototype.handle_comma=function(D){this.handle_whitespace_and_comments(D,!0),this.print_token(D),this._output.space_before_token=!0,this._flags.declaration_statement?(ee(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(D)):this._flags.mode===B.ObjectLiteral||this._flags.mode===B.Statement&&this._flags.parent.mode===B.ObjectLiteral?(this._flags.mode===B.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(D)},K.prototype.handle_operator=function(D){var j=D.text==="*"&&(M(this._flags.last_token,["function","yield"])||E(this._flags.last_token.type,[y.START_BLOCK,y.COMMA,y.END_BLOCK,y.SEMICOLON])),Z=E(D.text,["-","+"])&&(E(this._flags.last_token.type,[y.START_BLOCK,y.START_EXPR,y.EQUALS,y.OPERATOR])||E(this._flags.last_token.text,_)||this._flags.last_token.text===",");if(!this.start_of_statement(D)){var ie=!j;this.handle_whitespace_and_comments(D,ie)}if(D.text==="*"&&this._flags.last_token.type===y.DOT){this.print_token(D);return}if(D.text==="::"){this.print_token(D);return}if(this._flags.last_token.type===y.OPERATOR&&E(this._options.operator_position,P)&&this.allow_wrap_or_preserved_newline(D),D.text===":"&&this._flags.in_case){this.print_token(D),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==y.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var pe=!0,Ee=!0,De=!1;if(D.text===":"?this._flags.ternary_depth===0?pe=!1:(this._flags.ternary_depth-=1,De=!0):D.text==="?"&&(this._flags.ternary_depth+=1),!Z&&!j&&this._options.preserve_newlines&&E(D.text,b)){var q=D.text===":",be=q&&De,ye=q&&!De;switch(this._options.operator_position){case R.before_newline:this._output.space_before_token=!ye,this.print_token(D),(!q||be)&&this.allow_wrap_or_preserved_newline(D),this._output.space_before_token=!0;return;case R.after_newline:this._output.space_before_token=!0,!q||be?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(D):this._output.space_before_token=!1,this.print_token(D),this._output.space_before_token=!0;return;case R.preserve_newline:ye||this.allow_wrap_or_preserved_newline(D),pe=!(this._output.just_added_newline()||ye),this._output.space_before_token=pe,this.print_token(D),this._output.space_before_token=!0;return}}if(j){this.allow_wrap_or_preserved_newline(D),pe=!1;var le=this._tokens.peek();Ee=le&&E(le.type,[y.WORD,y.RESERVED])}else if(D.text==="...")this.allow_wrap_or_preserved_newline(D),pe=this._flags.last_token.type===y.START_BLOCK,Ee=!1;else if(E(D.text,["--","++","!","~"])||Z){if((this._flags.last_token.type===y.COMMA||this._flags.last_token.type===y.START_EXPR)&&this.allow_wrap_or_preserved_newline(D),pe=!1,Ee=!1,D.newlines&&(D.text==="--"||D.text==="++"||D.text==="~")){var ue=M(this._flags.last_token,k)&&D.newlines;ue&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(ue,!0)}this._flags.last_token.text===";"&&ee(this._flags.mode)&&(pe=!0),this._flags.last_token.type===y.RESERVED?pe=!0:this._flags.last_token.type===y.END_EXPR?pe=!(this._flags.last_token.text==="]"&&(D.text==="--"||D.text==="++")):this._flags.last_token.type===y.OPERATOR&&(pe=E(D.text,["--","-","++","+"])&&E(this._flags.last_token.text,["--","-","++","+"]),E(D.text,["+","-"])&&E(this._flags.last_token.text,["--","++"])&&(Ee=!0)),(this._flags.mode===B.BlockStatement&&!this._flags.inline_frame||this._flags.mode===B.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||pe,this.print_token(D),this._output.space_before_token=Ee},K.prototype.handle_block_comment=function(D,j){if(this._output.raw){this._output.add_raw_token(D),D.directives&&D.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(D.directives){this.print_newline(!1,j),this.print_token(D),D.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!s.newline.test(D.text)&&!D.newlines){this._output.space_before_token=!0,this.print_token(D),this._output.space_before_token=!0;return}else this.print_block_commment(D,j)},K.prototype.print_block_commment=function(D,j){var Z=z(D.text),ie,pe=!1,Ee=!1,De=D.whitespace_before,q=De.length;if(this.print_newline(!1,j),this.print_token_line_indentation(D),this._output.add_token(Z[0]),this.print_newline(!1,j),Z.length>1){for(Z=Z.slice(1),pe=G(Z,"*"),Ee=U(Z,De),pe&&(this._flags.alignment=1),ie=0;ie<Z.length;ie++)pe?(this.print_token_line_indentation(D),this._output.add_token(c(Z[ie]))):Ee&&Z[ie]?(this.print_token_line_indentation(D),this._output.add_token(Z[ie].substring(q))):(this._output.current_line.set_indent(-1),this._output.add_token(Z[ie])),this.print_newline(!1,j);this._flags.alignment=0}},K.prototype.handle_comment=function(D,j){D.newlines?this.print_newline(!1,j):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(D),this.print_newline(!1,j)},K.prototype.handle_dot=function(D){this.start_of_statement(D)||this.handle_whitespace_and_comments(D,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),M(this._flags.last_token,k)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(D,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(D)},K.prototype.handle_unknown=function(D,j){this.print_token(D),D.text[D.text.length-1]===`
`&&this.print_newline(!1,j)},K.prototype.handle_eof=function(D){for(;this._flags.mode===B.Statement;)this.restore_mode();this.handle_whitespace_and_comments(D)},u.exports.Beautifier=K},function(u){function o(n){this.__parent=n,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}o.prototype.clone_empty=function(){var n=new o(this.__parent);return n.set_indent(this.__indent_count,this.__alignment_count),n},o.prototype.item=function(n){return n<0?this.__items[this.__items.length+n]:this.__items[n]},o.prototype.has_match=function(n){for(var s=this.__items.length-1;s>=0;s--)if(this.__items[s].match(n))return!0;return!1},o.prototype.set_indent=function(n,s){this.is_empty()&&(this.__indent_count=n||0,this.__alignment_count=s||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},o.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var n=this.__parent.current_line;return n.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),n.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),n.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,n.__items[0]===" "&&(n.__items.splice(0,1),n.__character_count-=1),!0}return!1},o.prototype.is_empty=function(){return this.__items.length===0},o.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},o.prototype.push=function(n){this.__items.push(n);var s=n.lastIndexOf(`
`);s!==-1?this.__character_count=n.length-s:this.__character_count+=n.length},o.prototype.pop=function(){var n=null;return this.is_empty()||(n=this.__items.pop(),this.__character_count-=n.length),n},o.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},o.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},o.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},o.prototype.toString=function(){var n="";return this.is_empty()?this.__parent.indent_empty_lines&&(n=this.__parent.get_indent_string(this.__indent_count)):(n=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),n+=this.__items.join("")),n};function r(n,s){this.__cache=[""],this.__indent_size=n.indent_size,this.__indent_string=n.indent_char,n.indent_with_tabs||(this.__indent_string=new Array(n.indent_size+1).join(n.indent_char)),s=s||"",n.indent_level>0&&(s=new Array(n.indent_level+1).join(this.__indent_string)),this.__base_string=s,this.__base_string_length=s.length}r.prototype.get_indent_size=function(n,s){var e=this.__base_string_length;return s=s||0,n<0&&(e=0),e+=n*this.__indent_size,e+=s,e},r.prototype.get_indent_string=function(n,s){var e=this.__base_string;return s=s||0,n<0&&(n=0,e=""),s+=n*this.__indent_size,this.__ensure_cache(s),e+=this.__cache[s],e},r.prototype.__ensure_cache=function(n){for(;n>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var n=this.__cache.length,s=0,e="";this.__indent_size&&n>=this.__indent_size&&(s=Math.floor(n/this.__indent_size),n-=s*this.__indent_size,e=new Array(s+1).join(this.__indent_string)),n&&(e+=new Array(n+1).join(" ")),this.__cache.push(e)};function l(n,s){this.__indent_cache=new r(n,s),this.raw=!1,this._end_with_newline=n.end_with_newline,this.indent_size=n.indent_size,this.wrap_line_length=n.wrap_line_length,this.indent_empty_lines=n.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(n,s){return this.__indent_cache.get_indent_string(n,s)},l.prototype.get_indent_size=function(n,s){return this.__indent_cache.get_indent_size(n,s)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(n){return this.is_empty()||!n&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(n){this.trim(!0);var s=this.current_line.pop();s&&(s[s.length-1]===`
`&&(s=s.replace(/\n+$/g,"")),this.current_line.push(s)),this._end_with_newline&&this.__add_outputline();var e=this.__lines.join(`
`);return n!==`
`&&(e=e.replace(/[\n]/g,n)),e},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.prototype.set_indent=function(n,s){return n=n||0,s=s||0,this.next_line.set_indent(n,s),this.__lines.length>1?(this.current_line.set_indent(n,s),!0):(this.current_line.set_indent(),!1)},l.prototype.add_raw_token=function(n){for(var s=0;s<n.newlines;s++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(n.whitespace_before),this.current_line.push(n.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},l.prototype.add_token=function(n){this.__add_space_before_token(),this.current_line.push(n),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},l.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},l.prototype.remove_indent=function(n){for(var s=this.__lines.length;n<s;)this.__lines[n]._remove_indent(),n++;this.current_line._remove_wrap_indent()},l.prototype.trim=function(n){for(n=n===void 0?!1:n,this.current_line.trim();n&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(n,s){for(var e=this.__lines.length-2;e>=0;){var i=this.__lines[e];if(i.is_empty())break;if(i.item(0).indexOf(n)!==0&&i.item(-1)!==s){this.__lines.splice(e+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}e--}},u.exports.Output=l},function(u){function o(r,l,n,s){this.type=r,this.text=l,this.comments_before=null,this.newlines=n||0,this.whitespace_before=s||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}u.exports.Token=o},function(u,o){var r="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",l="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",n="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",s="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",e="(?:\\\\u[0-9a-fA-F]{4}|["+r+n+"])",i="(?:\\\\u[0-9a-fA-F]{4}|["+l+n+s+"])*";o.identifier=new RegExp(e+i,"g"),o.identifierStart=new RegExp(e),o.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+l+n+s+"])+");var _=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;o.newline=/[\n\r\u2028\u2029]/,o.lineBreak=new RegExp(`\r
|`+o.newline.source),o.allLineBreaks=new RegExp(o.lineBreak.source,"g")},function(u,o,r){var l=r(6).Options,n=["before-newline","after-newline","preserve-newline"];function s(e){l.call(this,e,"js");var i=this.raw_options.brace_style||null;i==="expand-strict"?this.raw_options.brace_style="expand":i==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var _=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var b=0;b<_.length;b++)_[b]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=_[b];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",n),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}s.prototype=new l,u.exports.Options=s},function(u){function o(n,s){this.raw_options=r(n,s),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}o.prototype._get_array=function(n,s){var e=this.raw_options[n],i=s||[];return typeof e=="object"?e!==null&&typeof e.concat=="function"&&(i=e.concat()):typeof e=="string"&&(i=e.split(/[^a-zA-Z0-9_\/\-]+/)),i},o.prototype._get_boolean=function(n,s){var e=this.raw_options[n],i=e===void 0?!!s:!!e;return i},o.prototype._get_characters=function(n,s){var e=this.raw_options[n],i=s||"";return typeof e=="string"&&(i=e.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),i},o.prototype._get_number=function(n,s){var e=this.raw_options[n];s=parseInt(s,10),isNaN(s)&&(s=0);var i=parseInt(e,10);return isNaN(i)&&(i=s),i},o.prototype._get_selection=function(n,s,e){var i=this._get_selection_list(n,s,e);if(i.length!==1)throw new Error("Invalid Option Value: The option '"+n+`' can only be one of the following values:
`+s+`
You passed in: '`+this.raw_options[n]+"'");return i[0]},o.prototype._get_selection_list=function(n,s,e){if(!s||s.length===0)throw new Error("Selection list cannot be empty.");if(e=e||[s[0]],!this._is_valid_selection(e,s))throw new Error("Invalid Default Value!");var i=this._get_array(n,e);if(!this._is_valid_selection(i,s))throw new Error("Invalid Option Value: The option '"+n+`' can contain only the following values:
`+s+`
You passed in: '`+this.raw_options[n]+"'");return i},o.prototype._is_valid_selection=function(n,s){return n.length&&s.length&&!n.some(function(e){return s.indexOf(e)===-1})};function r(n,s){var e={};n=l(n);var i;for(i in n)i!==s&&(e[i]=n[i]);if(s&&n[s])for(i in n[s])e[i]=n[s][i];return e}function l(n){var s={},e;for(e in n){var i=e.replace(/-/g,"_");s[i]=n[e]}return s}u.exports.Options=o,u.exports.normalizeOpts=l,u.exports.mergeOpts=r},function(u,o,r){var l=r(8).InputScanner,n=r(9).Tokenizer,s=r(9).TOKEN,e=r(13).Directives,i=r(4),_=r(12).Pattern,b=r(14).TemplatablePattern;function y(G,U){return U.indexOf(G)!==-1}var E={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:s.START,RAW:s.RAW,EOF:s.EOF},c=new e(/\/\*/,/\*\//),C=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,x=/[0-9]/,M=/[^\d\.]/,k=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),T=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";T=T.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),T="\\?\\.(?!\\d) "+T,T=T.replace(/ /g,"|");var R=new RegExp(T),P="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),B=P.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),W=new RegExp("^(?:"+B.join("|")+")$"),z,H=function(G,U){n.call(this,G,U),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var K=new _(this._input),L=new b(this._input).read_options(this._options);this.__patterns={template:L,identifier:L.starting_with(i.identifier).matching(i.identifierMatch),number:K.matching(C),punct:K.matching(R),comment:K.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:K.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:K.matching(/<!--/),html_comment_end:K.matching(/-->/),include:K.starting_with(/#include/).until_after(i.lineBreak),shebang:K.starting_with(/#!/).until_after(i.lineBreak),xml:K.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:L.until(/['\\\n\r\u2028\u2029]/),double_quote:L.until(/["\\\n\r\u2028\u2029]/),template_text:L.until(/[`\\$]/),template_expression:L.until(/[`}\\]/)}};H.prototype=new n,H.prototype._is_comment=function(G){return G.type===E.COMMENT||G.type===E.BLOCK_COMMENT||G.type===E.UNKNOWN},H.prototype._is_opening=function(G){return G.type===E.START_BLOCK||G.type===E.START_EXPR},H.prototype._is_closing=function(G,U){return(G.type===E.END_BLOCK||G.type===E.END_EXPR)&&U&&(G.text==="]"&&U.text==="["||G.text===")"&&U.text==="("||G.text==="}"&&U.text==="{")},H.prototype._reset=function(){z=!1},H.prototype._get_next_token=function(G,U){var K=null;this._readWhitespace();var L=this._input.peek();return L===null?this._create_token(E.EOF,""):(K=K||this._read_non_javascript(L),K=K||this._read_string(L),K=K||this._read_word(G),K=K||this._read_singles(L),K=K||this._read_comment(L),K=K||this._read_regexp(L,G),K=K||this._read_xml(L,G),K=K||this._read_punctuation(),K=K||this._create_token(E.UNKNOWN,this._input.next()),K)},H.prototype._read_word=function(G){var U;if(U=this.__patterns.identifier.read(),U!=="")return U=U.replace(i.allLineBreaks,`
`),!(G.type===E.DOT||G.type===E.RESERVED&&(G.text==="set"||G.text==="get"))&&W.test(U)?(U==="in"||U==="of")&&(G.type===E.WORD||G.type===E.STRING)?this._create_token(E.OPERATOR,U):this._create_token(E.RESERVED,U):this._create_token(E.WORD,U);if(U=this.__patterns.number.read(),U!=="")return this._create_token(E.WORD,U)},H.prototype._read_singles=function(G){var U=null;return G==="("||G==="["?U=this._create_token(E.START_EXPR,G):G===")"||G==="]"?U=this._create_token(E.END_EXPR,G):G==="{"?U=this._create_token(E.START_BLOCK,G):G==="}"?U=this._create_token(E.END_BLOCK,G):G===";"?U=this._create_token(E.SEMICOLON,G):G==="."&&M.test(this._input.peek(1))?U=this._create_token(E.DOT,G):G===","&&(U=this._create_token(E.COMMA,G)),U&&this._input.next(),U},H.prototype._read_punctuation=function(){var G=this.__patterns.punct.read();if(G!=="")return G==="="?this._create_token(E.EQUALS,G):G==="?."?this._create_token(E.DOT,G):this._create_token(E.OPERATOR,G)},H.prototype._read_non_javascript=function(G){var U="";if(G==="#"){if(this._is_first_token()&&(U=this.__patterns.shebang.read(),U))return this._create_token(E.UNKNOWN,U.trim()+`
`);if(U=this.__patterns.include.read(),U)return this._create_token(E.UNKNOWN,U.trim()+`
`);G=this._input.next();var K="#";if(this._input.hasNext()&&this._input.testChar(x)){do G=this._input.next(),K+=G;while(this._input.hasNext()&&G!=="#"&&G!=="=");return G==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(K+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(K+="{}",this._input.next(),this._input.next())),this._create_token(E.WORD,K)}this._input.back()}else if(G==="<"&&this._is_first_token()){if(U=this.__patterns.html_comment_start.read(),U){for(;this._input.hasNext()&&!this._input.testChar(i.newline);)U+=this._input.next();return z=!0,this._create_token(E.COMMENT,U)}}else if(z&&G==="-"&&(U=this.__patterns.html_comment_end.read(),U))return z=!1,this._create_token(E.COMMENT,U);return null},H.prototype._read_comment=function(G){var U=null;if(G==="/"){var K="";if(this._input.peek(1)==="*"){K=this.__patterns.block_comment.read();var L=c.get_directives(K);L&&L.ignore==="start"&&(K+=c.readIgnored(this._input)),K=K.replace(i.allLineBreaks,`
`),U=this._create_token(E.BLOCK_COMMENT,K),U.directives=L}else this._input.peek(1)==="/"&&(K=this.__patterns.comment.read(),U=this._create_token(E.COMMENT,K))}return U},H.prototype._read_string=function(G){if(G==="`"||G==="'"||G==='"'){var U=this._input.next();return this.has_char_escapes=!1,G==="`"?U+=this._read_string_recursive("`",!0,"${"):U+=this._read_string_recursive(G),this.has_char_escapes&&this._options.unescape_strings&&(U=ee(U)),this._input.peek()===G&&(U+=this._input.next()),U=U.replace(i.allLineBreaks,`
`),this._create_token(E.STRING,U)}return null},H.prototype._allow_regexp_or_xml=function(G){return G.type===E.RESERVED&&y(G.text,["return","case","throw","else","do","typeof","yield"])||G.type===E.END_EXPR&&G.text===")"&&G.opened.previous.type===E.RESERVED&&y(G.opened.previous.text,["if","while","for"])||y(G.type,[E.COMMENT,E.START_EXPR,E.START_BLOCK,E.START,E.END_BLOCK,E.OPERATOR,E.EQUALS,E.EOF,E.SEMICOLON,E.COMMA])},H.prototype._read_regexp=function(G,U){if(G==="/"&&this._allow_regexp_or_xml(U)){for(var K=this._input.next(),L=!1,D=!1;this._input.hasNext()&&(L||D||this._input.peek()!==G)&&!this._input.testChar(i.newline);)K+=this._input.peek(),L?L=!1:(L=this._input.peek()==="\\",this._input.peek()==="["?D=!0:this._input.peek()==="]"&&(D=!1)),this._input.next();return this._input.peek()===G&&(K+=this._input.next(),K+=this._input.read(i.identifier)),this._create_token(E.STRING,K)}return null},H.prototype._read_xml=function(G,U){if(this._options.e4x&&G==="<"&&this._allow_regexp_or_xml(U)){var K="",L=this.__patterns.xml.read_match();if(L){for(var D=L[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),j=D.indexOf("{")===0,Z=0;L;){var ie=!!L[1],pe=L[2],Ee=!!L[L.length-1]||pe.slice(0,8)==="![CDATA[";if(!Ee&&(pe===D||j&&pe.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(ie?--Z:++Z),K+=L[0],Z<=0)break;L=this.__patterns.xml.read_match()}return L||(K+=this._input.match(/[\s\S]*/g)[0]),K=K.replace(i.allLineBreaks,`
`),this._create_token(E.STRING,K)}}return null};function ee(G){for(var U="",K=0,L=new l(G),D=null;L.hasNext();)if(D=L.match(/([\s]|[^\\]|\\\\)+/g),D&&(U+=D[0]),L.peek()==="\\"){if(L.next(),L.peek()==="x")D=L.match(/x([0-9A-Fa-f]{2})/g);else if(L.peek()==="u")D=L.match(/u([0-9A-Fa-f]{4})/g);else{U+="\\",L.hasNext()&&(U+=L.next());continue}if(!D)return G;if(K=parseInt(D[1],16),K>126&&K<=255&&D[0].indexOf("x")===0)return G;if(K>=0&&K<32){U+="\\"+D[0];continue}else K===34||K===39||K===92?U+="\\"+String.fromCharCode(K):U+=String.fromCharCode(K)}return U}H.prototype._read_string_recursive=function(G,U,K){var L,D;G==="'"?D=this.__patterns.single_quote:G==='"'?D=this.__patterns.double_quote:G==="`"?D=this.__patterns.template_text:G==="}"&&(D=this.__patterns.template_expression);for(var j=D.read(),Z="";this._input.hasNext();){if(Z=this._input.next(),Z===G||!U&&i.newline.test(Z)){this._input.back();break}else Z==="\\"&&this._input.hasNext()?(L=this._input.peek(),L==="x"||L==="u"?this.has_char_escapes=!0:L==="\r"&&this._input.peek(1)===`
`&&this._input.next(),Z+=this._input.next()):K&&(K==="${"&&Z==="$"&&this._input.peek()==="{"&&(Z+=this._input.next()),K===Z&&(G==="`"?Z+=this._read_string_recursive("}",U,"`"):Z+=this._read_string_recursive("`",U,"${"),this._input.hasNext()&&(Z+=this._input.next())));Z+=D.read(),j+=Z}return j},u.exports.Tokenizer=H,u.exports.TOKEN=E,u.exports.positionable_operators=k.slice(),u.exports.line_starters=P.slice()},function(u){var o=RegExp.prototype.hasOwnProperty("sticky");function r(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position<this.__input_length},r.prototype.next=function(){var l=null;return this.hasNext()&&(l=this.__input.charAt(this.__position),this.__position+=1),l},r.prototype.peek=function(l){var n=null;return l=l||0,l+=this.__position,l>=0&&l<this.__input_length&&(n=this.__input.charAt(l)),n},r.prototype.__match=function(l,n){l.lastIndex=n;var s=l.exec(this.__input);return s&&!(o&&l.sticky)&&(s.index!==n&&(s=null)),s},r.prototype.test=function(l,n){return n=n||0,n+=this.__position,n>=0&&n<this.__input_length?!!this.__match(l,n):!1},r.prototype.testChar=function(l,n){var s=this.peek(n);return l.lastIndex=0,s!==null&&l.test(s)},r.prototype.match=function(l){var n=this.__match(l,this.__position);return n?this.__position+=n[0].length:n=null,n},r.prototype.read=function(l,n,s){var e="",i;return l&&(i=this.match(l),i&&(e+=i[0])),n&&(i||!l)&&(e+=this.readUntil(n,s)),e},r.prototype.readUntil=function(l,n){var s="",e=this.__position;l.lastIndex=this.__position;var i=l.exec(this.__input);return i?(e=i.index,n&&(e+=i[0].length)):e=this.__input_length,s=this.__input.substring(this.__position,e),this.__position=e,s},r.prototype.readUntilAfter=function(l){return this.readUntil(l,!0)},r.prototype.get_regexp=function(l,n){var s=null,e="g";return n&&o&&(e="y"),typeof l=="string"&&l!==""?s=new RegExp(l,e):l&&(s=new RegExp(l.source,e)),s},r.prototype.get_literal_regexp=function(l){return RegExp(l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},r.prototype.peekUntilAfter=function(l){var n=this.__position,s=this.readUntilAfter(l);return this.__position=n,s},r.prototype.lookBack=function(l){var n=this.__position-1;return n>=l.length&&this.__input.substring(n-l.length,n).toLowerCase()===l},u.exports.InputScanner=r},function(u,o,r){var l=r(8).InputScanner,n=r(3).Token,s=r(10).TokenStream,e=r(11).WhitespacePattern,i={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},_=function(b,y){this._input=new l(b),this._options=y||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new e(this._input)};_.prototype.tokenize=function(){this._input.restart(),this.__tokens=new s,this._reset();for(var b,y=new n(i.START,""),E=null,c=[],C=new s;y.type!==i.EOF;){for(b=this._get_next_token(y,E);this._is_comment(b);)C.add(b),b=this._get_next_token(y,E);C.isEmpty()||(b.comments_before=C,C=new s),b.parent=E,this._is_opening(b)?(c.push(E),E=b):E&&this._is_closing(b,E)&&(b.opened=E,E.closed=b,E=c.pop(),b.parent=E),b.previous=y,y.next=b,this.__tokens.add(b),y=b}return this.__tokens},_.prototype._is_first_token=function(){return this.__tokens.isEmpty()},_.prototype._reset=function(){},_.prototype._get_next_token=function(b,y){this._readWhitespace();var E=this._input.read(/.+/g);return E?this._create_token(i.RAW,E):this._create_token(i.EOF,"")},_.prototype._is_comment=function(b){return!1},_.prototype._is_opening=function(b){return!1},_.prototype._is_closing=function(b,y){return!1},_.prototype._create_token=function(b,y){var E=new n(b,y,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return E},_.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},u.exports.Tokenizer=_,u.exports.TOKEN=i},function(u){function o(r){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=r}o.prototype.restart=function(){this.__position=0},o.prototype.isEmpty=function(){return this.__tokens_length===0},o.prototype.hasNext=function(){return this.__position<this.__tokens_length},o.prototype.next=function(){var r=null;return this.hasNext()&&(r=this.__tokens[this.__position],this.__position+=1),r},o.prototype.peek=function(r){var l=null;return r=r||0,r+=this.__position,r>=0&&r<this.__tokens_length&&(l=this.__tokens[r]),l},o.prototype.add=function(r){this.__parent_token&&(r.parent=this.__parent_token),this.__tokens.push(r),this.__tokens_length+=1},u.exports.TokenStream=o},function(u,o,r){var l=r(12).Pattern;function n(s,e){l.call(this,s,e),e?this._line_regexp=this._input.get_regexp(e._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}n.prototype=new l,n.prototype.__set_whitespace_patterns=function(s,e){s+="\\t ",e+="\\n\\r",this._match_pattern=this._input.get_regexp("["+s+e+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+e+"]")},n.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var s=this._input.read(this._match_pattern);if(s===" ")this.whitespace_before_token=" ";else if(s){var e=this.__split(this._newline_regexp,s);this.newline_count=e.length-1,this.whitespace_before_token=e[this.newline_count]}return s},n.prototype.matching=function(s,e){var i=this._create();return i.__set_whitespace_patterns(s,e),i._update(),i},n.prototype._create=function(){return new n(this._input,this)},n.prototype.__split=function(s,e){s.lastIndex=0;for(var i=0,_=[],b=s.exec(e);b;)_.push(e.substring(i,b.index)),i=b.index+b[0].length,b=s.exec(e);return i<e.length?_.push(e.substring(i,e.length)):_.push(""),_},u.exports.WhitespacePattern=n},function(u){function o(r,l){this._input=r,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,l&&(this._starting_pattern=this._input.get_regexp(l._starting_pattern,!0),this._match_pattern=this._input.get_regexp(l._match_pattern,!0),this._until_pattern=this._input.get_regexp(l._until_pattern),this._until_after=l._until_after)}o.prototype.read=function(){var r=this._input.read(this._starting_pattern);return(!this._starting_pattern||r)&&(r+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),r},o.prototype.read_match=function(){return this._input.match(this._match_pattern)},o.prototype.until_after=function(r){var l=this._create();return l._until_after=!0,l._until_pattern=this._input.get_regexp(r),l._update(),l},o.prototype.until=function(r){var l=this._create();return l._until_after=!1,l._until_pattern=this._input.get_regexp(r),l._update(),l},o.prototype.starting_with=function(r){var l=this._create();return l._starting_pattern=this._input.get_regexp(r,!0),l._update(),l},o.prototype.matching=function(r){var l=this._create();return l._match_pattern=this._input.get_regexp(r,!0),l._update(),l},o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){},u.exports.Pattern=o},function(u){function o(r,l){r=typeof r=="string"?r:r.source,l=typeof l=="string"?l:l.source,this.__directives_block_pattern=new RegExp(r+/ beautify( \w+[:]\w+)+ /.source+l,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(r+/\sbeautify\signore:end\s/.source+l,"g")}o.prototype.get_directives=function(r){if(!r.match(this.__directives_block_pattern))return null;var l={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(r);n;)l[n[1]]=n[2],n=this.__directive_pattern.exec(r);return l},o.prototype.readIgnored=function(r){return r.readUntilAfter(this.__directives_end_ignore_pattern)},u.exports.Directives=o},function(u,o,r){var l=r(12).Pattern,n={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function s(e,i){l.call(this,e,i),this.__template_pattern=null,this._disabled=Object.assign({},n),this._excluded=Object.assign({},n),i&&(this.__template_pattern=this._input.get_regexp(i.__template_pattern),this._excluded=Object.assign(this._excluded,i._excluded),this._disabled=Object.assign(this._disabled,i._disabled));var _=new l(e);this.__patterns={handlebars_comment:_.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:_.starting_with(/{{{/).until_after(/}}}/),handlebars:_.starting_with(/{{/).until_after(/}}/),php:_.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:_.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:_.starting_with(/{%/).until_after(/%}/),django_value:_.starting_with(/{{/).until_after(/}}/),django_comment:_.starting_with(/{#/).until_after(/#}/),smarty:_.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:_.starting_with(/{\*/).until_after(/\*}/),smarty_literal:_.starting_with(/{literal}/).until_after(/{\/literal}/)}}s.prototype=new l,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(e){var i=this._create();return i._disabled[e]=!0,i._update(),i},s.prototype.read_options=function(e){var i=this._create();for(var _ in n)i._disabled[_]=e.templating.indexOf(_)===-1;return i._update(),i},s.prototype.exclude=function(e){var i=this._create();return i._excluded[e]=!0,i._update(),i},s.prototype.read=function(){var e="";this._match_pattern?e=this._input.read(this._starting_pattern):e=this._input.read(this._starting_pattern,this.__template_pattern);for(var i=this._read_template();i;)this._match_pattern?i+=this._input.read(this._match_pattern):i+=this._input.readUntil(this.__template_pattern),e+=i,i=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},s.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},s.prototype._read_template=function(){var e="",i=this._input.peek();if(i==="<"){var _=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&_==="?"&&(e=e||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&_==="%"&&(e=e||this.__patterns.erb.read())}else i==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(e=e||this.__patterns.handlebars_comment.read(),e=e||this.__patterns.handlebars_unescaped.read(),e=e||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=e||this.__patterns.django_comment.read(),e=e||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=e||this.__patterns.smarty_comment.read(),e=e||this.__patterns.smarty_literal.read(),e=e||this.__patterns.smarty.read()));return e},u.exports.TemplatablePattern=s}],a={};function f(u){var o=a[u];if(o!==void 0)return o.exports;var r=a[u]={exports:{}};return g[u](r,r.exports,f),r.exports}var d=f(0);I=d})();var m=I;!(w=[],h=function(){return{js_beautify:m}}.apply(F,w),h!==void 0&&(S.exports=h))})()},"6eGT":function(S,F,v){"use strict";function w(h){return null}F.a=w},"6lC8":function(S,F,v){},"7Cbv":function(S,F,v){"use strict";var w=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),h=new Uint8Array(16);function I(){if(!w)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return w(h)}var m=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function g(n){return typeof n=="string"&&m.test(n)}for(var a=g,f=[],d=0;d<256;++d)f.push((d+256).toString(16).substr(1));function u(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=(f[n[s+0]]+f[n[s+1]]+f[n[s+2]]+f[n[s+3]]+"-"+f[n[s+4]]+f[n[s+5]]+"-"+f[n[s+6]]+f[n[s+7]]+"-"+f[n[s+8]]+f[n[s+9]]+"-"+f[n[s+10]]+f[n[s+11]]+f[n[s+12]]+f[n[s+13]]+f[n[s+14]]+f[n[s+15]]).toLowerCase();if(!a(e))throw TypeError("Stringified UUID is invalid");return e}var o=u;function r(n,s,e){n=n||{};var i=n.random||(n.rng||I)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,s){e=e||0;for(var _=0;_<16;++_)s[e+_]=i[_];return s}return o(i)}var l=F.a=r},"7ZXX":function(S,F,v){S.exports=v.p+"static/err.6e7c5817.png"},"7ahc":function(S,F,v){"use strict";v.d(F,"a",function(){return c});var w=v("k1fw"),h=v("0Owb"),I=v("+L6B"),m=v("2/Rp"),g=v("y8nQ"),a=v("Vl3Y"),f=v("tJVT"),d=v("OaEy"),u=v("2fM7"),o=v("cDcd"),r=v.n(o),l=v("VrN/"),n=v.n(l),s=v("p77/"),e=v.n(s),i=v("c5Ni"),_=v.n(i),b=u.a.Option,y={labelCol:{span:4},wrapperCol:{span:20}},E={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};F.b=function(C){var x=C.callback,M=C.onCancel,k=Object(o.useState)("python"),T=Object(f.a)(k,2),R=T[0],P=T[1];function B(z){P(E[z][1])}function W(z){x(z)}return r.a.createElement(a.a,Object(h.a)({},y,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:W}),r.a.createElement(a.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},r.a.createElement(u.a,{onChange:B},Object.keys(E).map(function(z){return r.a.createElement(b,{key:z,value:z},E[z][0])}))),r.a.createElement(a.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},r.a.createElement(c,{mode:R})),r.a.createElement("div",{className:"flex-container flex-end"},r.a.createElement(m.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),r.a.createElement(m.a,{type:"ghost",onClick:M},"\u53D6\u6D88")))};function c(C){var x=C.value,M=C.onChange,k=C.mode,T=C.options,R=T===void 0?{}:T,P=Object(o.useRef)(),B=Object(o.useState)(),W=Object(f.a)(B,2),z=W[0],H=W[1];return Object(o.useEffect)(function(){if(z){function ee(G){var U=G.getValue();M&&M(U)}return z.on("change",ee),function(){z.off("change",ee)}}},[z,M]),Object(o.useEffect)(function(){z&&z.setOption("mode",k)},[z,k]),Object(o.useEffect)(function(){z&&((x!==z.getValue()||x==="")&&setTimeout(function(){z.setValue(x||" ")},300))},[z,x]),Object(o.useEffect)(function(){if(P.current&&!z){var ee=n.a.fromTextArea(P.current,Object(w.a)({mode:k,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},R));H(ee)}},[P.current,z]),r.a.createElement("div",{className:"my-codemirror-container"},r.a.createElement("textarea",{ref:P}))}},"7v3h":function(S,F,v){S.exports=v.p+"static/empty2.dd73f390.png"},"8+yF":function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var w={256:960,257:992,258:451,259:483,260:417,261:433,262:454,263:486,264:710,265:742,266:709,267:741,268:456,269:488,270:463,271:495,272:464,273:496,274:938,275:954,278:972,279:1004,280:458,281:490,282:460,283:492,284:728,285:760,286:683,287:699,288:725,289:757,290:939,291:955,292:678,293:694,294:673,295:689,296:933,297:949,298:975,299:1007,302:967,303:999,304:681,305:697,308:684,309:700,310:979,311:1011,312:930,313:453,314:485,315:934,316:950,317:421,318:437,321:419,322:435,323:465,324:497,325:977,326:1009,327:466,328:498,330:957,331:959,332:978,333:1010,336:469,337:501,338:5052,339:5053,340:448,341:480,342:931,343:947,344:472,345:504,346:422,347:438,348:734,349:766,350:426,351:442,352:425,353:441,354:478,355:510,356:427,357:443,358:940,359:956,360:989,361:1021,362:990,363:1022,364:733,365:765,366:473,367:505,368:475,369:507,370:985,371:1017,376:5054,377:428,378:444,379:431,380:447,381:430,382:446,402:2294,466:16777681,711:439,728:418,729:511,731:434,733:445,901:1966,902:1953,904:1954,905:1955,906:1956,908:1959,910:1960,911:1963,912:1974,913:1985,914:1986,915:1987,916:1988,917:1989,918:1990,919:1991,920:1992,921:1993,922:1994,923:1995,924:1996,925:1997,926:1998,927:1999,928:2e3,929:2001,931:2002,932:2004,933:2005,934:2006,935:2007,936:2008,937:2009,938:1957,939:1961,940:1969,941:1970,942:1971,943:1972,944:1978,945:2017,946:2018,947:2019,948:2020,949:2021,950:2022,951:2023,952:2024,953:2025,954:2026,955:2027,956:2028,957:2029,958:2030,959:2031,960:2032,961:2033,962:2035,963:2034,964:2036,965:2037,966:2038,967:2039,968:2040,969:2041,970:1973,971:1977,972:1975,973:1976,974:1979,1025:1715,1026:1713,1027:1714,1028:1716,1029:1717,1030:1718,1031:1719,1032:1720,1033:1721,1034:1722,1035:1723,1036:1724,1038:1726,1039:1727,1040:1761,1041:1762,1042:1783,1043:1767,1044:1764,1045:1765,1046:1782,1047:1786,1048:1769,1049:1770,1050:1771,1051:1772,1052:1773,1053:1774,1054:1775,1055:1776,1056:1778,1057:1779,1058:1780,1059:1781,1060:1766,1061:1768,1062:1763,1063:1790,1064:1787,1065:1789,1066:1791,1067:1785,1068:1784,1069:1788,1070:1760,1071:1777,1072:1729,1073:1730,1074:1751,1075:1735,1076:1732,1077:1733,1078:1750,1079:1754,1080:1737,1081:1738,1082:1739,1083:1740,1084:1741,1085:1742,1086:1743,1087:1744,1088:1746,1089:1747,1090:1748,1091:1749,1092:1734,1093:1736,1094:1731,1095:1758,1096:1755,1097:1757,1098:1759,1099:1753,1100:1752,1101:1756,1102:1728,1103:1745,1105:1699,1106:1697,1107:1698,1108:1700,1109:1701,1110:1702,1111:1703,1112:1704,1113:1705,1114:1706,1115:1707,1116:1708,1118:1710,1119:1711,1168:1725,1169:1709,1488:3296,1489:3297,1490:3298,1491:3299,1492:3300,1493:3301,1494:3302,1495:3303,1496:3304,1497:3305,1498:3306,1499:3307,1500:3308,1501:3309,1502:3310,1503:3311,1504:3312,1505:3313,1506:3314,1507:3315,1508:3316,1509:3317,1510:3318,1511:3319,1512:3320,1513:3321,1514:3322,1548:1452,1563:1467,1567:1471,1569:1473,1570:1474,1571:1475,1572:1476,1573:1477,1574:1478,1575:1479,1576:1480,1577:1481,1578:1482,1579:1483,1580:1484,1581:1485,1582:1486,1583:1487,1584:1488,1585:1489,1586:1490,1587:1491,1588:1492,1589:1493,1590:1494,1591:1495,1592:1496,1593:1497,1594:1498,1600:1504,1601:1505,1602:1506,1603:1507,1604:1508,1605:1509,1606:1510,1607:1511,1608:1512,1609:1513,1610:1514,1611:1515,1612:1516,1613:1517,1614:1518,1615:1519,1616:1520,1617:1521,1618:1522,3585:3489,3586:3490,3587:3491,3588:3492,3589:3493,3590:3494,3591:3495,3592:3496,3593:3497,3594:3498,3595:3499,3596:3500,3597:3501,3598:3502,3599:3503,3600:3504,3601:3505,3602:3506,3603:3507,3604:3508,3605:3509,3606:3510,3607:3511,3608:3512,3609:3513,3610:3514,3611:3515,3612:3516,3613:3517,3614:3518,3615:3519,3616:3520,3617:3521,3618:3522,3619:3523,3620:3524,3621:3525,3622:3526,3623:3527,3624:3528,3625:3529,3626:3530,3627:3531,3628:3532,3629:3533,3630:3534,3631:3535,3632:3536,3633:3537,3634:3538,3635:3539,3636:3540,3637:3541,3638:3542,3639:3543,3640:3544,3641:3545,3642:3546,3647:3551,3648:3552,3649:3553,3650:3554,3651:3555,3652:3556,3653:3557,3654:3558,3655:3559,3656:3560,3657:3561,3658:3562,3659:3563,3660:3564,3661:3565,3664:3568,3665:3569,3666:3570,3667:3571,3668:3572,3669:3573,3670:3574,3671:3575,3672:3576,3673:3577,8194:2722,8195:2721,8196:2723,8197:2724,8199:2725,8200:2726,8201:2727,8202:2728,8210:2747,8211:2730,8212:2729,8213:1967,8215:3295,8216:2768,8217:2769,8218:2813,8220:2770,8221:2771,8222:2814,8224:2801,8225:2802,8226:2790,8229:2735,8230:2734,8240:2773,8242:2774,8243:2775,8248:2812,8254:1150,8361:3839,8364:8364,8453:2744,8470:1712,8471:2811,8478:2772,8482:2761,8531:2736,8532:2737,8533:2738,8534:2739,8535:2740,8536:2741,8537:2742,8538:2743,8539:2755,8540:2756,8541:2757,8542:2758,8592:2299,8593:2300,8594:2301,8595:2302,8658:2254,8660:2253,8706:2287,8711:2245,8728:3018,8730:2262,8733:2241,8734:2242,8743:2270,8744:2271,8745:2268,8746:2269,8747:2239,8756:2240,8764:2248,8771:2249,8773:16785992,8800:2237,8801:2255,8804:2236,8805:2238,8834:2266,8835:2267,8866:3068,8867:3036,8868:3010,8869:3022,8968:3027,8970:3012,8981:2810,8992:2212,8993:2213,9109:3020,9115:2219,9117:2220,9118:2221,9120:2222,9121:2215,9123:2216,9124:2217,9126:2218,9128:2223,9132:2224,9143:2209,9146:2543,9147:2544,9148:2546,9149:2547,9225:2530,9226:2533,9227:2537,9228:2531,9229:2532,9251:2732,9252:2536,9472:2211,9474:2214,9484:2210,9488:2539,9492:2541,9496:2538,9500:2548,9508:2549,9516:2551,9524:2550,9532:2542,9618:2529,9642:2791,9643:2785,9644:2779,9645:2786,9646:2783,9647:2767,9650:2792,9651:2787,9654:2781,9655:2765,9660:2793,9661:2788,9664:2780,9665:2764,9670:2528,9675:2766,9679:2782,9702:2784,9734:2789,9742:2809,9747:2762,9756:2794,9758:2795,9792:2808,9794:2807,9827:2796,9829:2798,9830:2797,9837:2806,9839:2805,10003:2803,10007:2804,10013:2777,10016:2800,10216:2748,10217:2750,12289:1188,12290:1185,12300:1186,12301:1187,12443:1246,12444:1247,12449:1191,12450:1201,12451:1192,12452:1202,12453:1193,12454:1203,12455:1194,12456:1204,12457:1195,12458:1205,12459:1206,12461:1207,12463:1208,12465:1209,12467:1210,12469:1211,12471:1212,12473:1213,12475:1214,12477:1215,12479:1216,12481:1217,12483:1199,12484:1218,12486:1219,12488:1220,12490:1221,12491:1222,12492:1223,12493:1224,12494:1225,12495:1226,12498:1227,12501:1228,12504:1229,12507:1230,12510:1231,12511:1232,12512:1233,12513:1234,12514:1235,12515:1196,12516:1236,12517:1197,12518:1237,12519:1198,12520:1238,12521:1239,12522:1240,12523:1241,12524:1242,12525:1243,12527:1244,12530:1190,12531:1245,12539:1189,12540:1200},h={lookup:function(m){if(m>=32&&m<=255)return m;var g=w[m];return g!==void 0?g:16777216|m}};F.default=h},"8/bI":function(S,F,v){S.exports=v.p+"static/empty.8918e228.png"},"815F":function(S,F,v){"use strict";v.d(F,"e",function(){return f}),v.d(F,"c",function(){return u}),v.d(F,"d",function(){return o}),v.d(F,"a",function(){return l}),v.d(F,"f",function(){return n}),v.d(F,"b",function(){return s});var w=v("KQm4"),h=v("VTBJ"),I=v("Ff2n"),m=v("Zm9Q"),g=v("Kwbf"),a=v("OZM5");function f(e,i){return e!=null?e:i}function d(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=new Map;function _(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(b||[]).forEach(function(E){var c=E.key,C=E.children;Object(g.a)(c!=null,"Tree node must have a certain key: [".concat(y).concat(c,"]"));var x=String(c);Object(g.a)(!i.has(x)||c===null||c===void 0,"Same 'key' exist in the Tree: ".concat(x)),i.set(x,!0),_(C,"".concat(y).concat(x," > "))})}_(e)}function u(e){function i(_){var b=Object(m.a)(_);return b.map(function(y){if(!Object(a.i)(y))return Object(g.a)(!y,"Tree/TreeNode can only accept TreeNode as children."),null;var E=y.key,c=y.props,C=c.children,x=Object(I.a)(c,["children"]),M=Object(h.a)({key:E},x),k=i(C);return k.length&&(M.children=k),M}).filter(function(y){return y})}return i(e)}function o(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=new Set(i===!0?[]:i),b=[];function y(E){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return E.map(function(C,x){var M=Object(a.h)(c?c.pos:"0",x),k=f(C.key,M),T=Object(h.a)(Object(h.a)({},C),{},{parent:c,pos:M,children:null,data:C,isStart:[].concat(Object(w.a)(c?c.isStart:[]),[x===0]),isEnd:[].concat(Object(w.a)(c?c.isEnd:[]),[x===E.length-1])});return b.push(T),i===!0||_.has(k)?T.children=y(C.children||[],T):T.children=[],T})}return y(e),b}function r(e,i,_){var b;_?typeof _=="string"?b=function(c){return c[_]}:typeof _=="function"&&(b=function(c){return _(c)}):b=function(c,C){return f(c.key,C)};function y(E,c,C){var x=E?E.children:e,M=E?Object(a.h)(C.pos,c):"0";if(E){var k=b(E,M),T={node:E,index:c,pos:M,key:k,parentPos:C.node?C.pos:null,level:C.level+1};i(T)}x&&x.forEach(function(R,P){y(R,P,{node:E,pos:M,level:C?C.level+1:-1})})}y(null)}function l(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=i.initWrapper,b=i.processEntity,y=i.onProcessFinished,E=arguments.length>2?arguments[2]:void 0,c={},C={},x={posEntities:c,keyEntities:C};return _&&(x=_(x)||x),r(e,function(M){var k=M.node,T=M.index,R=M.pos,P=M.key,B=M.parentPos,W=M.level,z={node:k,index:T,key:P,pos:R,level:W},H=f(P,R);c[R]=z,C[H]=z,z.parent=c[B],z.parent&&(z.parent.children=z.parent.children||[],z.parent.children.push(z)),b&&b(z,x)},E),y&&y(x),x}function n(e,i){var _=i.expandedKeys,b=i.selectedKeys,y=i.loadedKeys,E=i.loadingKeys,c=i.checkedKeys,C=i.halfCheckedKeys,x=i.dragOverNodeKey,M=i.dropPosition,k=i.keyEntities,T=k[e],R={eventKey:e,expanded:_.indexOf(e)!==-1,selected:b.indexOf(e)!==-1,loaded:y.indexOf(e)!==-1,loading:E.indexOf(e)!==-1,checked:c.indexOf(e)!==-1,halfChecked:C.indexOf(e)!==-1,pos:String(T?T.pos:""),dragOver:x===e&&M===0,dragOverGapTop:x===e&&M===-1,dragOverGapBottom:x===e&&M===1};return R}function s(e){var i=e.data,_=e.expanded,b=e.selected,y=e.checked,E=e.loaded,c=e.loading,C=e.halfChecked,x=e.dragOver,M=e.dragOverGapTop,k=e.dragOverGapBottom,T=e.pos,R=e.active,P=Object(h.a)(Object(h.a)({},i),{},{expanded:_,selected:b,checked:y,loaded:E,loading:c,halfChecked:C,dragOver:x,dragOverGapTop:M,dragOverGapBottom:k,pos:T,active:R});return"props"in P||Object.defineProperty(P,"props",{get:function(){return Object(g.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),P}},"88g3":function(S,F,v){S.exports={tree:"tree___noxec"}},"8Abk":function(S,F,v){},"8CQX":function(S,F,v){"use strict";function w(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(i){return typeof i}:w=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},w(s)}Object.defineProperty(F,"__esModule",{value:!0}),F.getKeycode=r,F.getKey=l,F.getKeysym=n;var h=o(v("mHUz")),I=o(v("8+yF")),m=o(v("6Qwc")),g=o(v("gIYZ")),a=o(v("mTgk")),f=u(v("GdRQ"));function d(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return d=function(){return s},s}function u(s){if(s&&s.__esModule)return s;if(s===null||w(s)!=="object"&&typeof s!="function")return{default:s};var e=d();if(e&&e.has(s))return e.get(s);var i={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in s)if(Object.prototype.hasOwnProperty.call(s,b)){var y=_?Object.getOwnPropertyDescriptor(s,b):null;y&&(y.get||y.set)?Object.defineProperty(i,b,y):i[b]=s[b]}return i.default=s,e&&e.set(s,i),i}function o(s){return s&&s.__esModule?s:{default:s}}function r(s){if(s.code){switch(s.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return s.code}if(s.type!=="keypress"&&s.keyCode in m.default){var e=m.default[s.keyCode];if(f.isMac()&&e==="ContextMenu"&&(e="MetaRight"),s.location===2)switch(e){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(s.location===3)switch(e){case"Delete":return"NumpadDecimal";case"Insert":return"Numpad0";case"End":return"Numpad1";case"ArrowDown":return"Numpad2";case"PageDown":return"Numpad3";case"ArrowLeft":return"Numpad4";case"ArrowRight":return"Numpad6";case"Home":return"Numpad7";case"ArrowUp":return"Numpad8";case"PageUp":return"Numpad9";case"Enter":return"NumpadEnter"}return e}return"Unidentified"}function l(s){if(s.key!==void 0){switch(s.key){case"Spacebar":return" ";case"Esc":return"Escape";case"Scroll":return"ScrollLock";case"Win":return"Meta";case"Apps":return"ContextMenu";case"Up":return"ArrowUp";case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Down":return"ArrowDown";case"Del":return"Delete";case"Divide":return"/";case"Multiply":return"*";case"Subtract":return"-";case"Add":return"+";case"Decimal":return s.char}switch(s.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(s.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if(s.key==="\0"&&s.code==="NumpadDecimal")return"Delete";if(!f.isIE()&&!f.isEdge())return s.key;if(s.key.length!==1&&s.key!=="Unidentified")return s.key}var e=r(s);return e in g.default?g.default[e]:s.charCode?String.fromCharCode(s.charCode):"Unidentified"}function n(s){var e=l(s);if(e==="Unidentified")return null;if(e in a.default){var i=s.location;if(e==="Meta"&&i===0&&(i=2),e==="Clear"&&i===3){var _=r(s);_==="NumLock"&&(i=0)}if((i===void 0||i>3)&&(i=0),e==="Meta"){var b=r(s);if(b==="AltLeft")return h.default.XK_Meta_L;if(b==="AltRight")return h.default.XK_Meta_R}if(e==="Clear"){var y=r(s);if(y==="NumLock")return h.default.XK_Num_Lock}return a.default[e][i]}if(e.length!==1)return null;var E=e.charCodeAt();return E?I.default.lookup(E):null}},"8EBN":function(S,F,v){(function(w){w(v("VrN/"))})(function(w){"use strict";w.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var h=0;h<w.modeInfo.length;h++){var I=w.modeInfo[h];I.mimes&&(I.mime=I.mimes[0])}w.findModeByMIME=function(m){m=m.toLowerCase();for(var g=0;g<w.modeInfo.length;g++){var a=w.modeInfo[g];if(a.mime==m)return a;if(a.mimes){for(var f=0;f<a.mimes.length;f++)if(a.mimes[f]==m)return a}}if(/\+xml$/.test(m))return w.findModeByMIME("application/xml");if(/\+json$/.test(m))return w.findModeByMIME("application/json")},w.findModeByExtension=function(m){m=m.toLowerCase();for(var g=0;g<w.modeInfo.length;g++){var a=w.modeInfo[g];if(a.ext){for(var f=0;f<a.ext.length;f++)if(a.ext[f]==m)return a}}},w.findModeByFileName=function(m){for(var g=0;g<w.modeInfo.length;g++){var a=w.modeInfo[g];if(a.file&&a.file.test(m))return a}var f=m.lastIndexOf("."),d=f>-1&&m.substring(f+1,m.length);if(d)return w.findModeByExtension(d)},w.findModeByName=function(m){m=m.toLowerCase();for(var g=0;g<w.modeInfo.length;g++){var a=w.modeInfo[g];if(a.name.toLowerCase()==m)return a;if(a.alias){for(var f=0;f<a.alias.length;f++)if(a.alias[f].toLowerCase()==m)return a}}}})},"8Enf":function(S,F,v){},"8K/p":function(S,F,v){"use strict";function w(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(n){return typeof n}:w=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},w(r)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var h=a(v("Lo0S")),I=m(v("ItS6"));function m(r){return r&&r.__esModule?r:{default:r}}function g(){if(typeof WeakMap!="function")return null;var r=new WeakMap;return g=function(){return r},r}function a(r){if(r&&r.__esModule)return r;if(r===null||w(r)!=="object"&&typeof r!="function")return{default:r};var l=g();if(l&&l.has(r))return l.get(r);var n={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e)){var i=s?Object.getOwnPropertyDescriptor(r,e):null;i&&(i.get||i.set)?Object.defineProperty(n,e,i):n[e]=r[e]}return n.default=r,l&&l.set(r,n),n}function f(r,l){if(!(r instanceof l))throw new TypeError("Cannot call a class as a function")}function d(r,l){for(var n=0;n<l.length;n++){var s=l[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}function u(r,l,n){return l&&d(r.prototype,l),n&&d(r,n),r}var o=function(){function r(){f(this,r),this._ctl=null,this._filter=null,this._numColors=0,this._palette=new Uint8Array(1024),this._len=0,this._zlibs=[];for(var l=0;l<4;l++)this._zlibs[l]=new I.default}return u(r,[{key:"decodeRect",value:function(n,s,e,i,_,b,y){if(this._ctl===null){if(_.rQwait("TIGHT compression-control",1))return!1;this._ctl=_.rQshift8();for(var E=0;E<4;E++)this._ctl>>E&1&&(this._zlibs[E].reset(),h.Info("Reset zlib stream "+E));this._ctl=this._ctl>>4}var c;if(this._ctl===8)c=this._fillRect(n,s,e,i,_,b,y);else if(this._ctl===9)c=this._jpegRect(n,s,e,i,_,b,y);else if(this._ctl===10)c=this._pngRect(n,s,e,i,_,b,y);else if((this._ctl&128)==0)c=this._basicRect(this._ctl,n,s,e,i,_,b,y);else throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");return c&&(this._ctl=null),c}},{key:"_fillRect",value:function(n,s,e,i,_,b,y){if(_.rQwait("TIGHT",3))return!1;var E=_.rQi,c=_.rQ;return b.fillRect(n,s,e,i,[c[E+2],c[E+1],c[E]],!1),_.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(n,s,e,i,_,b,y){var E=this._readData(_);return E===null?!1:(b.imageRect(n,s,e,i,"image/jpeg",E),!0)}},{key:"_pngRect",value:function(n,s,e,i,_,b,y){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(n,s,e,i,_,b,y,E){if(this._filter===null)if(n&4){if(b.rQwait("TIGHT",1))return!1;this._filter=b.rQshift8()}else this._filter=0;var c=n&3,C;switch(this._filter){case 0:C=this._copyFilter(c,s,e,i,_,b,y,E);break;case 1:C=this._paletteFilter(c,s,e,i,_,b,y,E);break;case 2:C=this._gradientFilter(c,s,e,i,_,b,y,E);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return C&&(this._filter=null),C}},{key:"_copyFilter",value:function(n,s,e,i,_,b,y,E){var c=i*_*3,C;if(c<12){if(b.rQwait("TIGHT",c))return!1;C=b.rQshiftBytes(c)}else{if(C=this._readData(b),C===null)return!1;this._zlibs[n].setInput(C),C=this._zlibs[n].inflate(c),this._zlibs[n].setInput(null)}return y.blitRgbImage(s,e,i,_,C,0,!1),!0}},{key:"_paletteFilter",value:function(n,s,e,i,_,b,y,E){if(this._numColors===0){if(b.rQwait("TIGHT palette",1))return!1;var c=b.rQpeek8()+1,C=c*3;if(b.rQwait("TIGHT palette",1+C))return!1;this._numColors=c,b.rQskipBytes(1),b.rQshiftTo(this._palette,C)}var x=this._numColors<=2?1:8,M=Math.floor((i*x+7)/8),k=M*_,T;if(k<12){if(b.rQwait("TIGHT",k))return!1;T=b.rQshiftBytes(k)}else{if(T=this._readData(b),T===null)return!1;this._zlibs[n].setInput(T),T=this._zlibs[n].inflate(k),this._zlibs[n].setInput(null)}return this._numColors==2?this._monoRect(s,e,i,_,T,this._palette,y):this._paletteRect(s,e,i,_,T,this._palette,y),this._numColors=0,!0}},{key:"_monoRect",value:function(n,s,e,i,_,b,y){for(var E=this._getScratchBuffer(e*i*4),c=Math.floor((e+7)/8),C=Math.floor(e/8),x=0;x<i;x++){var M=void 0,k=void 0,T=void 0;for(T=0;T<C;T++)for(var R=7;R>=0;R--)M=(x*e+T*8+7-R)*4,k=(_[x*c+T]>>R&1)*3,E[M]=b[k],E[M+1]=b[k+1],E[M+2]=b[k+2],E[M+3]=255;for(var P=7;P>=8-e%8;P--)M=(x*e+T*8+7-P)*4,k=(_[x*c+T]>>P&1)*3,E[M]=b[k],E[M+1]=b[k+1],E[M+2]=b[k+2],E[M+3]=255}y.blitRgbxImage(n,s,e,i,E,0,!1)}},{key:"_paletteRect",value:function(n,s,e,i,_,b,y){for(var E=this._getScratchBuffer(e*i*4),c=e*i*4,C=0,x=0;C<c;C+=4,x++){var M=_[x]*3;E[C]=b[M],E[C+1]=b[M+1],E[C+2]=b[M+2],E[C+3]=255}y.blitRgbxImage(n,s,e,i,E,0,!1)}},{key:"_gradientFilter",value:function(n,s,e,i,_,b,y,E){throw new Error("Gradient filter not implemented")}},{key:"_readData",value:function(n){if(this._len===0){if(n.rQwait("TIGHT",3))return null;var s;s=n.rQshift8(),this._len=s&127,s&128&&(s=n.rQshift8(),this._len|=(s&127)<<7,s&128&&(s=n.rQshift8(),this._len|=s<<14))}if(n.rQwait("TIGHT",this._len))return null;var e=n.rQshiftBytes(this._len);return this._len=0,e}},{key:"_getScratchBuffer",value:function(n){return(!this._scratchBuffer||this._scratchBuffer.length<n)&&(this._scratchBuffer=new Uint8Array(n)),this._scratchBuffer}}]),r}();F.default=o},"8hTe":function(S,F,v){S.exports={button:"button___1wy9m"}},"8mKB":function(S,F,v){"use strict";var w=v("rePB"),h=v("1OyB"),I=v("vuIU"),m=v("Ji7U"),g=v("md7G"),a=v("foSv"),f=v("cDcd"),d=v.n(f),u=v("m+aA"),o=v("TSYQ"),r=v.n(o),l=v("4IlW");function n(R){var P=R.pageXOffset,B="scrollLeft";if(typeof P!="number"){var W=R.document;P=W.documentElement[B],typeof P!="number"&&(P=W.body[B])}return P}function s(R){var P,B,W=R.ownerDocument,z=W.body,H=W&&W.documentElement,ee=R.getBoundingClientRect();return P=ee.left,B=ee.top,P-=H.clientLeft||z.clientLeft||0,B-=H.clientTop||z.clientTop||0,{left:P,top:B}}function e(R){var P=s(R),B=R.ownerDocument,W=B.defaultView||B.parentWindow;return P.left+=n(W),P.left}function i(R){var P=_();return function(){var W=Object(a.a)(R),z;if(P){var H=Object(a.a)(this).constructor;z=Reflect.construct(W,arguments,H)}else z=W.apply(this,arguments);return Object(g.a)(this,z)}}function _(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(R){return!1}}var b=function(R){Object(m.a)(B,R);var P=i(B);function B(){var W;return Object(h.a)(this,B),W=P.apply(this,arguments),W.onHover=function(z){var H=W.props,ee=H.onHover,G=H.index;ee(z,G)},W.onClick=function(z){var H=W.props,ee=H.onClick,G=H.index;ee(z,G)},W.onKeyDown=function(z){var H=W.props,ee=H.onClick,G=H.index;z.keyCode===13&&ee(z,G)},W}return Object(I.a)(B,[{key:"getClassName",value:function(){var z=this.props,H=z.prefixCls,ee=z.index,G=z.value,U=z.allowHalf,K=z.focused,L=ee+1,D=H;return G===0&&ee===0&&K?D+=" ".concat(H,"-focused"):U&&G+.5>=L&&G<L?(D+=" ".concat(H,"-half ").concat(H,"-active"),K&&(D+=" ".concat(H,"-focused"))):(D+=L<=G?" ".concat(H,"-full"):" ".concat(H,"-zero"),L===G&&K&&(D+=" ".concat(H,"-focused"))),D}},{key:"render",value:function(){var z=this.onHover,H=this.onClick,ee=this.onKeyDown,G=this.props,U=G.disabled,K=G.prefixCls,L=G.character,D=G.characterRender,j=G.index,Z=G.count,ie=G.value,pe=typeof L=="function"?L(this.props):L,Ee=d.a.createElement("li",{className:this.getClassName()},d.a.createElement("div",{onClick:U?null:H,onKeyDown:U?null:ee,onMouseMove:U?null:z,role:"radio","aria-checked":ie>j?"true":"false","aria-posinset":j+1,"aria-setsize":Z,tabIndex:U?-1:0},d.a.createElement("div",{className:"".concat(K,"-first")},pe),d.a.createElement("div",{className:"".concat(K,"-second")},pe)));return D&&(Ee=D(Ee,this.props)),Ee}}]),B}(d.a.Component);function y(R,P){var B=Object.keys(R);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(R);P&&(W=W.filter(function(z){return Object.getOwnPropertyDescriptor(R,z).enumerable})),B.push.apply(B,W)}return B}function E(R){for(var P=1;P<arguments.length;P++){var B=arguments[P]!=null?arguments[P]:{};P%2?y(Object(B),!0).forEach(function(W){Object(w.a)(R,W,B[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(B)):y(Object(B)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(B,W))})}return R}function c(R){var P=C();return function(){var W=Object(a.a)(R),z;if(P){var H=Object(a.a)(this).constructor;z=Reflect.construct(W,arguments,H)}else z=W.apply(this,arguments);return Object(g.a)(this,z)}}function C(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(R){return!1}}function x(){}var M=function(R){Object(m.a)(B,R);var P=c(B);function B(W){var z;Object(h.a)(this,B),z=P.call(this,W),z.onHover=function(ee,G){var U=z.props.onHoverChange,K=z.getStarValue(G,ee.pageX),L=z.state.cleanedValue;K!==L&&z.setState({hoverValue:K,cleanedValue:null}),U(K)},z.onMouseLeave=function(){var ee=z.props.onHoverChange;z.setState({hoverValue:void 0,cleanedValue:null}),ee(void 0)},z.onClick=function(ee,G){var U=z.props.allowClear,K=z.state.value,L=z.getStarValue(G,ee.pageX),D=!1;U&&(D=L===K),z.onMouseLeave(),z.changeValue(D?0:L),z.setState({cleanedValue:D?L:null})},z.onFocus=function(){var ee=z.props.onFocus;z.setState({focused:!0}),ee&&ee()},z.onBlur=function(){var ee=z.props.onBlur;z.setState({focused:!1}),ee&&ee()},z.onKeyDown=function(ee){var G=ee.keyCode,U=z.props,K=U.count,L=U.allowHalf,D=U.onKeyDown,j=U.direction,Z=j==="rtl",ie=z.state.value;G===l.a.RIGHT&&ie<K&&!Z?(L?ie+=.5:ie+=1,z.changeValue(ie),ee.preventDefault()):G===l.a.LEFT&&ie>0&&!Z||G===l.a.RIGHT&&ie>0&&Z?(L?ie-=.5:ie-=1,z.changeValue(ie),ee.preventDefault()):G===l.a.LEFT&&ie<K&&Z&&(L?ie+=.5:ie+=1,z.changeValue(ie),ee.preventDefault()),D&&D(ee)},z.saveRef=function(ee){return function(G){z.stars[ee]=G}},z.saveRate=function(ee){z.rate=ee};var H=W.value;return H===void 0&&(H=W.defaultValue),z.stars={},z.state={value:H,focused:!1,cleanedValue:null},z}return Object(I.a)(B,[{key:"componentDidMount",value:function(){var z=this.props,H=z.autoFocus,ee=z.disabled;H&&!ee&&this.focus()}},{key:"getStarDOM",value:function(z){return Object(u.a)(this.stars[z])}},{key:"getStarValue",value:function(z,H){var ee=this.props,G=ee.allowHalf,U=ee.direction,K=U==="rtl",L=z+1;if(G){var D=this.getStarDOM(z),j=e(D),Z=D.clientWidth;(K&&H-j>Z/2||!K&&H-j<Z/2)&&(L-=.5)}return L}},{key:"focus",value:function(){var z=this.props.disabled;z||this.rate.focus()}},{key:"blur",value:function(){var z=this.props.disabled;z||this.rate.blur()}},{key:"changeValue",value:function(z){var H=this.props.onChange;"value"in this.props||this.setState({value:z}),H(z)}},{key:"render",value:function(){for(var z=this.props,H=z.count,ee=z.allowHalf,G=z.style,U=z.prefixCls,K=z.disabled,L=z.className,D=z.character,j=z.characterRender,Z=z.tabIndex,ie=z.direction,pe=this.state,Ee=pe.value,De=pe.hoverValue,q=pe.focused,be=[],ye=K?"".concat(U,"-disabled"):"",le=0;le<H;le+=1)be.push(d.a.createElement(b,{ref:this.saveRef(le),index:le,count:H,disabled:K,prefixCls:"".concat(U,"-star"),allowHalf:ee,value:De===void 0?Ee:De,onClick:this.onClick,onHover:this.onHover,key:le,character:D,characterRender:j,focused:q}));var ue=r()(U,ye,L,Object(w.a)({},"".concat(U,"-rtl"),ie==="rtl"));return d.a.createElement("ul",{className:ue,style:G,onMouseLeave:K?null:this.onMouseLeave,tabIndex:K?-1:Z,onFocus:K?null:this.onFocus,onBlur:K?null:this.onBlur,onKeyDown:K?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},be)}}],[{key:"getDerivedStateFromProps",value:function(z,H){return"value"in z&&z.value!==void 0?E(E({},H),{},{value:z.value}):H}}]),B}(d.a.Component);M.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:x,character:"\u2605",onHoverChange:x,tabIndex:0,direction:"ltr"};var k=M,T=F.a=k},"9Bee":function(S,F,v){"use strict";var w=v("DYRE"),h=v("zeV3"),I=v("+L6B"),m=v("2/Rp"),g=v("k1fw"),a=v("tJVT"),f=v("cDcd"),d=v.n(f),u=v("vg9a"),o=v("DlQD"),r=v.n(o),l=v("rUJ1");function n(q,be){var ye=q.match(/^(\s+)(?:```)/);if(ye===null)return be;var le=ye[1];return be.split(`
`).map(function(ue){var ne=ue.match(/^\s+/);if(ne===null)return ue;var xe=Object(a.a)(ne,1),$=xe[0];return $.length>=le.length?ue.slice(le.length):ue}).join(`
`)}var s=[],e=["<ul>"],i=new r.a.Renderer,_=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function b(){s.length=0,e=["<ul>"]}var y={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function E(q,be,ye,le){if(be>=q.length||q[be].level<=ye)return be;var ue=q[be];le.push("<li><a href='#"+ue.anchor+"'>"+ue.text+"</a>"),be++;var ne=[];return be=E(q,be,ue.level,ne),ne.length>0&&(le.push("<ul>"),ne.forEach(function(xe){le.push(xe)}),le.push("</ul>")),le.push("</li>"),be=E(q,be,ye,le),be}function c(){return E(s,0,0,e),e.push("</ul>"),e.join("")}var C={heading:function(be){var ye=_.exec(be);if(ye)return{type:"heading",raw:ye[0],depth:ye[1].length,text:ye[2]}},fences:function(be){var ye=this.rules.block.fences.exec(be);if(ye){var le=ye[0],ue=n(le,ye[3]||""),ne=ye[2]?ye[2].trim():ye[2];if(["latex","katex","math"].indexOf(ne)>=0){var xe=k(),$=ue;ue=xe,T[xe]={type:"block",expression:$}}return{type:"code",raw:le,lang:ne,text:ue}}}},x=/(?:\${2})([^\n`]+?)(?:\${2})/gi,M=0,k=function(){return"__special_katext_id_".concat(M++,"__")},T={};function R(){return T}function P(){M=0,T={}}function B(q){return q=q.replace(x,function(be,ye){var le=k();return T[le]={type:"inline",expression:ye},le}),q}var W=i.listitem;i.listitem=function(q){return W(B(q))};var z=i.paragraph;i.paragraph=function(q){return z(B(q))};var H=i.tablecell;i.tablecell=function(q,be){return H(B(q),be)},i.code=function(q,be,ye){var le=(be||"").match(/\S*/)[0];return le?["latex","katex","math"].indexOf(le)>=0?"<p class='editormd-tex'>".concat(q,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(be,'">').concat(ye?q:Object(l.escape)(q,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(ye?q:Object(l.escape)(q,!0))+"</code></pre>"},i.heading=function(q,be,ye){var le=this.options.headerPrefix+ye.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return s.push({anchor:le,level:be,text:q}),"<h"+be+' id="'+le+'">'+q+"</h"+be+">"},r.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),r.a.use({tokenizer:C,renderer:i});var ee=r.a,G=v("SJMd"),U=v("ulZh"),K=v.n(U),L=v("m3rI"),D=v("Oy/b"),j=v("p5ED"),Z=v("8hTe"),ie=v.n(Z),pe=/<pre[^>]*>/g;function Ee(q){var be=document.createElement("div");return be.innerHTML=q,be.childNodes.length===0?"":be.childNodes[0].nodeValue}var De=F.a=function(q){var be=q.value,ye=be===void 0?"":be,le=q.edit,ue=le===void 0?!1:le,ne=q.className,xe=q.showTextOnly,$=q.showLines,oe=q.replaces,Le=q.zoomImg,te=q.hasMask,Y=q.style,X=Y===void 0?{}:Y,J=q.stylesPrev,ve=J===void 0?{}:J,he=String(ye),Ce=Object(f.useRef)(),Pe=Object(f.useRef)(),de=Object(f.useState)(""),ke=Object(a.a)(de,2),me=ke[0],Be=ke[1],ft=Object(f.useState)("office"),vt=Object(a.a)(ft,2),Xe=vt[0],Bt=vt[1],Ae=Object(f.useMemo)(function(){try{var Fe=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,ce=/\"\/api\/attachments\/|\"\/attachments\/download\//g,we=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;he=he.replace(Fe,"("+L.a.API_SERVER+"/api/attachments/").replace(ce,'"'+L.a.API_SERVER+"/api/attachments/").replace(we,'"'+L.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(Q){}var se=ee(he),_e=R();if(he.match(/\[TOC\]/)&&(se=se.replace("<p>[TOC]</p>",c()),b()),se=se.replace(/(__special_katext_id_\d+__)/g,function(Q,Ue){var Ze=_e[Ue],Te=Ze.type,He=Ze.expression;return Object(D.renderToString)(Ee(He)||"",{displayMode:Te==="block",throwOnError:!1,output:"html"})}),se=se.replace(/▁/g,"\u2581\u2581\u2581"),P(),xe){var Ne=document.createElement("div");return Ne.innerHTML=se,Ne.innerText}return setTimeout(function(){return Ge()},500),se},[he]),We=Object(f.useRef)();y.WebkitLineClamp=$,$&&(X=Object(g.a)(Object(g.a)({},X),y));function dt(Fe){var ce=Fe.target;if(ce.tagName.toUpperCase()==="IMG"){if(Le){var we=ce.getAttribute("src");Be(we),Bt("image")}}else if(ce.tagName.toUpperCase()==="A"){var se=ce.getAttribute("href");if(se.indexOf("office")>-1)Fe.preventDefault(),Be(se),Bt("office");else if(se.indexOf("application/pdf")>-1)Fe.preventDefault(),Be(se),Bt("pdf");else if(se.indexOf("text/html")>-1)Fe.preventDefault(),Be(se),Bt("html");else if(se.startsWith("#")){Fe.preventDefault();var _e=document.getElementById(se.replace("#",""));_e&&_e.scrollIntoView(!0)}}}var Ge=function(){var ce,we=(ce=We.current)===null||ce===void 0?void 0:ce.querySelectorAll("video");we==null||we.forEach(function(se){if(se.oncontextmenu=function(){return!1},se.src.indexOf(".m3u8")>-1&&!se.canPlayType("application/vnd.apple.mpegurl")){if(K.a.isSupported()){var _e=new K.a;_e.loadSource(se.src),_e.attachMedia(se)}}})};Object(f.useEffect)(function(){if(We.current&&Ae&&(Ae.match(pe)&&window.PR.prettyPrint()),We.current)return We.current.addEventListener("click",dt),function(){We.current.removeEventListener("click",dt),P(),b()}},[Ae,We.current,dt]);var je=function(ce){if(!ue)return;ce.target.nodeName==="IMG"?(Ce.current.style.display="flex",Ce.current.style.width=ce.target.clientWidth+"px",Ce.current.style.height=ce.target.clientHeight+"px",Ce.current.style.top=ce.target.offsetTop+"px",Ce.current.style.left=ce.target.offsetLeft+"px",Pe.current.src=ce.target.getAttribute("src")):Ce.current.style.display="none"};return d.a.createElement("div",{style:{position:"relative"}},d.a.createElement("div",{ref:We,style:Object(g.a)({},X),className:"".concat(ne||""," markdown-body ").concat(ie.a.mdBody),onMouseOver:je,dangerouslySetInnerHTML:{__html:Ae}}),d.a.createElement("div",{ref:Ce,className:ie.a.button},d.a.createElement(h.a,null,d.a.createElement(m.a,{onClick:function(){return openCrop()}},"\u88C1\u526A"),d.a.createElement(m.a,{onClick:function(){return openEditor()}},"\u7F16\u8F91"))),d.a.createElement("img",{ref:Pe,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),d.a.createElement(j.a,{close:!0,data:me,type:me!=null&&me.length?Xe:"",style:Object(g.a)({},ve),onClose:function(){return Be("")}}))}},"9OqN":function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("OLod"))})(this,function(w){return w.mode.CTR=function(){var h=w.lib.BlockCipherMode.extend(),I=h.Encryptor=h.extend({processBlock:function(m,g){var a=this._cipher,f=a.blockSize,d=this._iv,u=this._counter;d&&(u=this._counter=d.slice(0),this._iv=void 0);var o=u.slice(0);a.encryptBlock(o,0),u[f-1]=u[f-1]+1|0;for(var r=0;r<f;r++)m[g+r]^=o[r]}});return h.Decryptor=I,h}(),w.mode.CTR})},"9VGf":function(S,F,v){"use strict";v.d(F,"a",function(){return I});var w=v("cDcd"),h=v.n(w);function I(m,g){var a=Object(w.useRef)();Object(w.useEffect)(function(){a.current=m}),Object(w.useEffect)(function(){function f(){a.current()}if(g!==null){var d=setInterval(f,g);return function(){return clearInterval(d)}}},[g])}},"9odi":function(S,F,v){S.exports={"action-container":"action-container___UsSFw","eval-btn-group":"eval-btn-group___3FHdc","eval-desc":"eval-desc___2RSnM","btn-run":"btn-run___3Xli0","btn-run-self":"btn-run-self___2DnEi","ghost-link":"ghost-link___21xwP",link:"link___2BUFk"}},"A/g1":function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjEtMDctMDJUMTk6Mzg6MjMrMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOmVkYzRhODM0LTVjNWQtNDQ1My04MDYzLWNkNzcwODQyODg5ZSIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ4MTE0OTVlLTVkMDctZTk0YS1iNWEwLWYxOWJmZmM0NGUyNyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOmMwNjQyYzA1LTg5MzQtNDdlYy04MTFiLTlkYjdhZGNkYjFiMCI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6YzA2NDJjMDUtODkzNC00N2VjLTgxMWItOWRiN2FkY2RiMWIwIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjM4OjIzKzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6ZWRjNGE4MzQtNWM1ZC00NDUzLTgwNjMtY2Q3NzA4NDI4ODllIiBzdEV2dDp3aGVuPSIyMDIxLTA3LTAyVDE5OjQxOjQ2KzA4OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fJkpyAAAGoElEQVRogc2abWxbVxnH/8+59/rdTpx2GW3UNWJJV7Ylaxp3LUFsWgJDiI5R8bK2GppAmsgQLKQthS8IEJ9okibrREf3gX2Y1K2bxAoDtog60RBSVxKnWUO7kpSppXJZK2ja2HFi33vPw4cmpbN9r++1k8Lv2znnf577f+zje95Mhw4dQqUkwljpF7kuv0EdHkm1HklRr6TQq2tn5xcklwhIMnMSQJIJxykTiSce+1am0mer5XacqM7uDJjiqbAuWlvSygrBnmKyxcoIA+tBBAAgAAikjNZ47zCIh8E8mOjYO1aOD3L7DYzXZJurs8qhuzLqFsH22hcbUs6CMudAol8Ic2Dkkb0fuvEj3IinwvobjTOeRP1safOuIPIA/AMpxbsb4z3fc9PVUQLvRY37L/vMDxtT2peCBpU97BywlkD9sXjvbzcfG7jTSYeSCZyK6l9tTCkn75xXHAVcChh4zCDzLy1DfQ+U0tomcDaSO9A8rb0WWN5P3QK+SzCPx471bLdTWSYwFdZfXz/j+e7SG3MHE73SGu+19FE0gTNV+o8aU9pXls+Waw7E4r2fL9ZQkMB4jd5xd1r96fJ7cgeDX944vL8hv74ggdUZccRrLsw4/1fQCpLyYH7tRxKYCutv1M4rK26fKdd8Nn+euJnAySp9w+o5dettt+QSItHV+nb/qsXyzddj1KAXlnmSsuIMgV8v1sCgHxdWcj002QXgh8BCAqdq9B33T2tbltOlBWcEia+NtO86nd/QOtR3EGyxXmHZHXun78jow7tPCgAI6NixpGsbZ1ibj/d2gvkZy55EHpbcDiz8BkK62LRsNotjaX5TvK8NzH0lI5j0aQAQ4z69pjarfGwZTFphab55sCdogntAFCgZhfgLn3xtv19oPnTexuFjaR4ANJV6CWhzGEvNrpQPiYBOt+vVaWu+Nd7bCaDTTUCS9LDwSNQuiT17bM3fGPd4zn1YWSc8kqJO5e9H9P6LAeNvLp9ia755sCcoiftAKLqptoOI6oRXUsiJ+FxIf/MTM9quNRl1/XhN7p7zQWPUQTdb88CNcQ9GWXMQA3XCb5JWSngxYJxtSGtfXCxvuOqZrJ9VN53wpcMfhIxhs8jSb0aT2VLmyxn3edQ52hOnNf5dsfrN86H0x9Nqu8KgqbBxdF5hCdwwfyFkPmFnflO8rw3AL8qy/V9YzCmsl1I1pNTdp6N6t52mMaVu85mkTEb0ly6EzCeaprXfWGmbB3uCTHgOLk9FCqGkmhWcBlBjJ9MkUX1K3TcRzV5qmvYesdOum9G+Weqxmop+Zo65dFsAEydFTvC0E3HQIHVNWnvpvRVGRYu+G+Oenq4kxiIk+ZLIKbjitEO1Lvyr0/SHieD8qtLqQhbG/Qvl9C2OSIqMWvwHasUdWSW6Umojbh/VPNgTlOCCLWElsOB3hO7BL6XLHfCqOaXuYsA466aPR6XnAZQ8qHKB4fWJP4kNV7SrV3ymqwNVAFiTUe85HzLedaKNxfd/h4FvuPdoA9Hvj7ftmhMAkFbZyaxaQH1a3XwurL9tp4kN7fsUQz5fTnxbGH8GFt7DcwpecTuMFmlIaZ+bjOgvF2u7d/gnIWZR+Q1KPowcIIaAhQSarqmH/xE0TpQbb92M9uT7kdz+/HqfDB0EcF/ZRi1ggYFER/cYcMtMOO3jzlmVjXKDrkt5uv9are9ZLJ8L6UcJ+HplVotygVRlYLFwM4GWf2njl/ymq1fqrSgM3J1Sfz5Rnd15ulp/tiGtPV6h0aIwaCDxUPc/F8sfOQdqTKnbrvjMf9fOK7ZLCyv8Jom1s9qvsHANttQw4dhY++6BW+sKFlNJr7E9K6wOZEoT0YU3ogvXm5OSMK5KQ347v7oggZbr3j/+PWwUnoj9jyHCk+OP7p3Kry+6nL33uvazqbD+6+W35RDmrtGOPW8Va7JcjzemtC+frTKWfgJyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},AKST:function(S,F,v){},ALsQ:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("OLod"))})(this,function(w){return w.mode.CFB=function(){var h=w.lib.BlockCipherMode.extend();h.Encryptor=h.extend({processBlock:function(m,g){var a=this._cipher,f=a.blockSize;I.call(this,m,g,f,a),this._prevBlock=m.slice(g,g+f)}}),h.Decryptor=h.extend({processBlock:function(m,g){var a=this._cipher,f=a.blockSize,d=m.slice(g,g+f);I.call(this,m,g,f,a),this._prevBlock=d}});function I(m,g,a,f){var d,u=this._iv;u?(d=u.slice(0),this._iv=void 0):d=this._prevBlock,f.encryptBlock(d,0);for(var o=0;o<a;o++)m[g+o]^=d[o]}return h}(),w.mode.CFB})},AMnG:function(S,F,v){"use strict";var w=v("miYZ"),h=v("tsqr"),I=v("tJVT"),m=v("cDcd"),g=v.n(m),a=v("nWbc"),f=v.n(a),d=v("Ot1p");F.a=function(u){var o=u.id,r=u.activeDiscussIndex,l=u.onReplyDiscuss,n=Object(m.useState)(""),s=Object(I.a)(n,2),e=s[0],i=s[1];function _(y){i(y)}function b(){if(!e){h.b.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}l(o,e),i("")}return g.a.createElement("div",{key:o,className:"discuss-item-editor",style:{display:r===o?"block":"none",width:"100%"}},g.a.createElement(d.a,{miniToolbar:!0,startInit:r===o,defaultValue:e,id:o,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:_}),g.a.createElement("a",{onClick:b,className:"btn-send"},"\u53D1\u9001"))}},ARon:function(S,F,v){},Bd2K:function(S,F,v){(function(w){w(v("VrN/"),v("osHv"))})(function(w){w.defineOption("autoCloseTags",!1,function(u,o,r){if(r!=w.Init&&r&&u.removeKeyMap("autoCloseTags"),!o)return;var l={name:"autoCloseTags"};(typeof o!="object"||o.whenClosing!==!1)&&(l["'/'"]=function(n){return a(n)}),(typeof o!="object"||o.whenOpening!==!1)&&(l["'>'"]=function(n){return m(n)}),u.addKeyMap(l)});var h=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],I=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function m(u){if(u.getOption("disableInput"))return w.Pass;for(var o=u.listSelections(),r=[],l=u.getOption("autoCloseTags"),n=0;n<o.length;n++){if(!o[n].empty())return w.Pass;var s=o[n].head,e=u.getTokenAt(s),i=w.innerMode(u.getMode(),e.state),_=i.state,b=i.mode.xmlCurrentTag&&i.mode.xmlCurrentTag(_),y=b&&b.name;if(!y)return w.Pass;var E=i.mode.configuration=="html",c=typeof l=="object"&&l.dontCloseTags||E&&h,C=typeof l=="object"&&l.indentTags||E&&I;e.end>s.ch&&(y=y.slice(0,y.length-e.end+s.ch));var x=y.toLowerCase();if(!y||e.type=="string"&&(e.end!=s.ch||!/[\"\']/.test(e.string.charAt(e.string.length-1))||e.string.length==1)||e.type=="tag"&&b.close||e.string.indexOf("/")==s.ch-e.start-1||c&&f(c,x)>-1||d(u,i.mode.xmlCurrentContext&&i.mode.xmlCurrentContext(_)||[],y,s,!0))return w.Pass;var M=typeof l=="object"&&l.emptyTags;if(M&&f(M,y)>-1){r[n]={text:"/>",newPos:w.Pos(s.line,s.ch+2)};continue}var k=C&&f(C,x)>-1;r[n]={indent:k,text:">"+(k?`
`:"")+"</"+y+">",newPos:k?w.Pos(s.line+1,0):w.Pos(s.line,s.ch+1)}}for(var T=typeof l=="object"&&l.dontIndentOnAutoClose,n=o.length-1;n>=0;n--){var R=r[n];u.replaceRange(R.text,o[n].head,o[n].anchor,"+insert");var P=u.listSelections().slice(0);P[n]={head:R.newPos,anchor:R.newPos},u.setSelections(P),!T&&R.indent&&(u.indentLine(R.newPos.line,null,!0),u.indentLine(R.newPos.line+1,null,!0))}}function g(u,o){for(var r=u.listSelections(),l=[],n=o?"/":"</",s=u.getOption("autoCloseTags"),e=typeof s=="object"&&s.dontIndentOnSlash,i=0;i<r.length;i++){if(!r[i].empty())return w.Pass;var _=r[i].head,b=u.getTokenAt(_),y=w.innerMode(u.getMode(),b.state),E=y.state;if(o&&(b.type=="string"||b.string.charAt(0)!="<"||b.start!=_.ch-1))return w.Pass;var c,C=y.mode.name!="xml"&&u.getMode().name=="htmlmixed";if(C&&y.mode.name=="javascript")c=n+"script";else if(C&&y.mode.name=="css")c=n+"style";else{var x=y.mode.xmlCurrentContext&&y.mode.xmlCurrentContext(E);if(!x||x.length&&d(u,x,x[x.length-1],_))return w.Pass;c=n+x[x.length-1]}u.getLine(_.line).charAt(b.end)!=">"&&(c+=">"),l[i]=c}if(u.replaceSelections(l),r=u.listSelections(),!e)for(var i=0;i<r.length;i++)(i==r.length-1||r[i].head.line<r[i+1].head.line)&&u.indentLine(r[i].head.line)}function a(u){return u.getOption("disableInput")?w.Pass:g(u,!0)}w.commands.closeTag=function(u){return g(u)};function f(u,o){if(u.indexOf)return u.indexOf(o);for(var r=0,l=u.length;r<l;++r)if(u[r]==o)return r;return-1}function d(u,o,r,l,n){if(!w.scanForClosingTag)return!1;var s=Math.min(u.lastLine()+1,l.line+500),e=w.scanForClosingTag(u,l,null,s);if(!e||e.tag!=r)return!1;for(var i=n?1:0,_=o.length-1;_>=0&&o[_]==r;_--)++i;l=e.to;for(var _=1;_<i;_++){var b=w.scanForClosingTag(u,l,null,s);if(!b||b.tag!=r)return!1;l=b.to}return!0}})},BdwD:function(S,F,v){"use strict";var w=v("+L6B"),h=v("2/Rp"),I=v("0Owb"),m=v("k1fw"),g=v("cDcd"),a=v.n(g),f=v("FOrL"),d=v.n(f),u=function(r){var l=r.buttonProps,n=l===void 0?{}:l,s=r.styles,e=s===void 0?{}:s,i=r.customText,_=r.ButtonText,b=r.ButtonClick,y=r.Buttonclass,E=r.ButtonTwo;return a.a.createElement("section",{className:"tc animated fadeIn",style:Object(m.a)(Object(m.a)({},{color:"#999",margin:"200px auto"}),e)},a.a.createElement("img",{src:d.a}),a.a.createElement("p",{className:"mt20 font14"},i||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),_&&a.a.createElement(h.a,Object(I.a)({className:y,onClick:b},n),_),E&&E)};F.a=u},BjJ7:function(S,F,v){"use strict";v.d(F,"d",function(){return h}),v.d(F,"c",function(){return I}),v.d(F,"e",function(){return m}),v.d(F,"b",function(){return g}),v.d(F,"a",function(){return f});var w=v("m3rI");function h(d){var u=!0;if(d.length>0){for(var o=0;o<d.length;o++)if(d[o].compile_success==0||!d[o].compile_success){u=!1;break}}else u=!1;return u}function I(d){for(var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=[],r=0;r<d.length;r++){var l=d[r],n=u?"".concat(u,"/").concat(l.name):"".concat(l.name);o.push({title:l.name,isLeaf:!(l.type==="tree"),key:n})}return o}function m(d,u,o){for(var r=0;r<d.length;r++){var l=d[r];if(l.key===u){l.children=o;break}l.children&&m(l.children,u,o)}return d}function g(d,u,o){var r;return function(){var l=this,n=arguments,s=function(){r=null,o||d.apply(l,n)},e=o&&!r;clearTimeout(r),r=setTimeout(s,u),e&&d.apply(l,n)}}var a=!0,f=w.a.API_SERVER},Bwpq:function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAaBJREFUWEftmLtKA0EUhr8zaxAVKy0FsRBsxRfxKRRRK219gWBnEkkqfQHxAvoSIhZioYUIloqBoBKyO0dGswpe2F01m0EyxW5xZuf/5p/ZuRyhXVRVVqmNNGFUsAMhauJYJ96K2D7MUz/crjN3JyLqdMQ95rRaKNCasJjhTogntWmwjRaFq5rMt8Q5s0R5slswMayDKrF4KStaHX0kGk/qRR7xQYJrWdLqVEQ0lIdgkkZA8CDLujnd6QmcBBLH+xArC1qZSftBHvV6QEku/wuHZgxmDWgCWxZ7lNTrLPHMDhnMLujYu4icGiiG2Isswt/V/QGQHH9uTCKFHUNQiWg1fgP2R0AxgtSBUgh7BvuyWWYtfwz0Ki/IuWKLFs68AGpjKei+ISiFhPdpwTri0AfxhsKKoidpoPIAcoN4Y7GzPaBvHPBlyNwZWQ8MwUbXJ7VHv73UFSlH6G6XF8aubh2eba7A2/FDkO2I6DDN+pK2TuaFMW3DP63XA0pyzj+HfLoouoyIf1dp75IN3qVj3Kz3KmEV/4Z5p/RcpkO/SOk9A+rl+LLPZpxgAAAAAElFTkSuQmCC"},"C+DQ":function(S,F,v){},CrYA:function(S,F,v){var w=v("MFOe"),h=w.Global;S.exports={name:"sessionStorage",read:m,write:g,each:a,remove:f,clearAll:d};function I(){return h.sessionStorage}function m(u){return I().getItem(u)}function g(u,o){return I().setItem(u,o)}function a(u){for(var o=I().length-1;o>=0;o--){var r=I().key(o);u(m(r),r)}}function f(u){return I().removeItem(u)}function d(){return I().clear()}},DVFL:function(S,F,v){},DlQD:function(S,F,v){(function(w,h){S.exports=h()})(this,function(){"use strict";function w(Ge,je){for(var Fe=0;Fe<je.length;Fe++){var ce=je[Fe];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(Ge,ce.key,ce)}}function h(Ge,je,Fe){return je&&w(Ge.prototype,je),Fe&&w(Ge,Fe),Ge}function I(Ge,je){if(!Ge)return;if(typeof Ge=="string")return m(Ge,je);var Fe=Object.prototype.toString.call(Ge).slice(8,-1);if(Fe==="Object"&&Ge.constructor&&(Fe=Ge.constructor.name),Fe==="Map"||Fe==="Set")return Array.from(Ge);if(Fe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Fe))return m(Ge,je)}function m(Ge,je){(je==null||je>Ge.length)&&(je=Ge.length);for(var Fe=0,ce=new Array(je);Fe<je;Fe++)ce[Fe]=Ge[Fe];return ce}function g(Ge,je){var Fe;if(typeof Symbol=="undefined"||Ge[Symbol.iterator]==null){if(Array.isArray(Ge)||(Fe=I(Ge))||je&&Ge&&typeof Ge.length=="number"){Fe&&(Ge=Fe);var ce=0;return function(){return ce>=Ge.length?{done:!0}:{done:!1,value:Ge[ce++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return Fe=Ge[Symbol.iterator](),Fe.next.bind(Fe)}function a(Ge,je){return je={exports:{}},Ge(je,je.exports),je.exports}var f=a(function(Ge){function je(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Fe(ce){Ge.exports.defaults=ce}Ge.exports={defaults:je(),getDefaults:je,changeDefaults:Fe}}),d=f.defaults,u=f.getDefaults,o=f.changeDefaults,r=/[&<>"']/,l=/[&<>"']/g,n=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},i=function(je){return e[je]};function _(Ge,je){if(je){if(r.test(Ge))return Ge.replace(l,i)}else if(n.test(Ge))return Ge.replace(s,i);return Ge}var b=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function y(Ge){return Ge.replace(b,function(je,Fe){return Fe=Fe.toLowerCase(),Fe==="colon"?":":Fe.charAt(0)==="#"?Fe.charAt(1)==="x"?String.fromCharCode(parseInt(Fe.substring(2),16)):String.fromCharCode(+Fe.substring(1)):""})}var E=/(^|[^\[])\^/g;function c(Ge,je){Ge=Ge.source||Ge,je=je||"";var Fe={replace:function(we,se){return se=se.source||se,se=se.replace(E,"$1"),Ge=Ge.replace(we,se),Fe},getRegex:function(){return new RegExp(Ge,je)}};return Fe}var C=/[^\w:]/g,x=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function M(Ge,je,Fe){if(Ge){var ce;try{ce=decodeURIComponent(y(Fe)).replace(C,"").toLowerCase()}catch(we){return null}if(ce.indexOf("javascript:")===0||ce.indexOf("vbscript:")===0||ce.indexOf("data:")===0)return null}je&&!x.test(Fe)&&(Fe=B(je,Fe));try{Fe=encodeURI(Fe).replace(/%25/g,"%")}catch(we){return null}return Fe}var k={},T=/^[^:]+:\/*[^/]*$/,R=/^([^:]+:)[\s\S]*$/,P=/^([^:]+:\/*[^/]*)[\s\S]*$/;function B(Ge,je){k[" "+Ge]||(T.test(Ge)?k[" "+Ge]=Ge+"/":k[" "+Ge]=ee(Ge,"/",!0)),Ge=k[" "+Ge];var Fe=Ge.indexOf(":")===-1;return je.substring(0,2)==="//"?Fe?je:Ge.replace(R,"$1")+je:je.charAt(0)==="/"?Fe?je:Ge.replace(P,"$1")+je:Ge+je}var W={exec:function(){}};function z(Ge){for(var je=1,Fe,ce;je<arguments.length;je++){Fe=arguments[je];for(ce in Fe)Object.prototype.hasOwnProperty.call(Fe,ce)&&(Ge[ce]=Fe[ce])}return Ge}function H(Ge,je){var Fe=Ge.replace(/\|/g,function(se,_e,Ne){for(var Q=!1,Ue=_e;--Ue>=0&&Ne[Ue]==="\\";)Q=!Q;return Q?"|":" |"}),ce=Fe.split(/ \|/),we=0;if(ce.length>je)ce.splice(je);else for(;ce.length<je;)ce.push("");for(;we<ce.length;we++)ce[we]=ce[we].trim().replace(/\\\|/g,"|");return ce}function ee(Ge,je,Fe){var ce=Ge.length;if(ce===0)return"";for(var we=0;we<ce;){var se=Ge.charAt(ce-we-1);if(se===je&&!Fe)we++;else if(se!==je&&Fe)we++;else break}return Ge.substr(0,ce-we)}function G(Ge,je){if(Ge.indexOf(je[1])===-1)return-1;for(var Fe=Ge.length,ce=0,we=0;we<Fe;we++)if(Ge[we]==="\\")we++;else if(Ge[we]===je[0])ce++;else if(Ge[we]===je[1]&&(ce--,ce<0))return we;return-1}function U(Ge){Ge&&Ge.sanitize&&!Ge.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}var K={escape:_,unescape:y,edit:c,cleanUrl:M,resolveUrl:B,noopTest:W,merge:z,splitCells:H,rtrim:ee,findClosingBracket:G,checkSanitizeDeprecation:U},L=f.defaults,D=K.rtrim,j=K.splitCells,Z=K.escape,ie=K.findClosingBracket;function pe(Ge,je,Fe){var ce=je.href,we=je.title?Z(je.title):null,se=Ge[1].replace(/\\([\[\]])/g,"$1");return Ge[0].charAt(0)!=="!"?{type:"link",raw:Fe,href:ce,title:we,text:se}:{type:"image",raw:Fe,href:ce,title:we,text:Z(se)}}function Ee(Ge,je){var Fe=Ge.match(/^(\s+)(?:```)/);if(Fe===null)return je;var ce=Fe[1];return je.split(`
`).map(function(we){var se=we.match(/^\s+/);if(se===null)return we;var _e=se[0];return _e.length>=ce.length?we.slice(ce.length):we}).join(`
`)}var De=function(){function Ge(Fe){this.options=Fe||L}var je=Ge.prototype;return je.space=function(ce){var we=this.rules.block.newline.exec(ce);if(we)return we[0].length>1?{type:"space",raw:we[0]}:{raw:`
`}},je.code=function(ce,we){var se=this.rules.block.code.exec(ce);if(se){var _e=we[we.length-1];if(_e&&_e.type==="paragraph")return{raw:se[0],text:se[0].trimRight()};var Ne=se[0].replace(/^ {4}/gm,"");return{type:"code",raw:se[0],codeBlockStyle:"indented",text:this.options.pedantic?Ne:D(Ne,`
`)}}},je.fences=function(ce){var we=this.rules.block.fences.exec(ce);if(we){var se=we[0],_e=Ee(se,we[3]||"");return{type:"code",raw:se,lang:we[2]?we[2].trim():we[2],text:_e}}},je.heading=function(ce){var we=this.rules.block.heading.exec(ce);if(we)return{type:"heading",raw:we[0],depth:we[1].length,text:we[2]}},je.nptable=function(ce){var we=this.rules.block.nptable.exec(ce);if(we){var se={type:"table",header:j(we[1].replace(/^ *| *\| *$/g,"")),align:we[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:we[3]?we[3].replace(/\n$/,"").split(`
`):[],raw:we[0]};if(se.header.length===se.align.length){var _e=se.align.length,Ne;for(Ne=0;Ne<_e;Ne++)/^ *-+: *$/.test(se.align[Ne])?se.align[Ne]="right":/^ *:-+: *$/.test(se.align[Ne])?se.align[Ne]="center":/^ *:-+ *$/.test(se.align[Ne])?se.align[Ne]="left":se.align[Ne]=null;for(_e=se.cells.length,Ne=0;Ne<_e;Ne++)se.cells[Ne]=j(se.cells[Ne],se.header.length);return se}}},je.hr=function(ce){var we=this.rules.block.hr.exec(ce);if(we)return{type:"hr",raw:we[0]}},je.blockquote=function(ce){var we=this.rules.block.blockquote.exec(ce);if(we){var se=we[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:we[0],text:se}}},je.list=function(ce){var we=this.rules.block.list.exec(ce);if(we){for(var se=we[0],_e=we[2],Ne=_e.length>1,Q=_e[_e.length-1]===")",Ue={type:"list",raw:se,ordered:Ne,start:Ne?+_e.slice(0,-1):"",loose:!1,items:[]},Ze=we[0].match(this.rules.block.item),Te=!1,He,Ye,st,ut,et,Re,qe,At=Ze.length,$e=0;$e<At;$e++)He=Ze[$e],se=He,Ye=He.length,He=He.replace(/^ *([*+-]|\d+[.)]) */,""),~He.indexOf(`
`)&&(Ye-=He.length,He=this.options.pedantic?He.replace(/^ {1,4}/gm,""):He.replace(new RegExp("^ {1,"+Ye+"}","gm"),"")),$e!==At-1&&(st=this.rules.block.bullet.exec(Ze[$e+1])[0],(Ne?st.length===1||!Q&&st[st.length-1]===")":st.length>1||this.options.smartLists&&st!==_e)&&(ut=Ze.slice($e+1).join(`
`),Ue.raw=Ue.raw.substring(0,Ue.raw.length-ut.length),$e=At-1)),et=Te||/\n\n(?!\s*$)/.test(He),$e!==At-1&&(Te=He.charAt(He.length-1)===`
`,et||(et=Te)),et&&(Ue.loose=!0),Re=/^\[[ xX]\] /.test(He),qe=void 0,Re&&(qe=He[1]!==" ",He=He.replace(/^\[[ xX]\] +/,"")),Ue.items.push({type:"list_item",raw:se,task:Re,checked:qe,loose:et,text:He});return Ue}},je.html=function(ce){var we=this.rules.block.html.exec(ce);if(we)return{type:this.options.sanitize?"paragraph":"html",raw:we[0],pre:!this.options.sanitizer&&(we[1]==="pre"||we[1]==="script"||we[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(we[0]):Z(we[0]):we[0]}},je.def=function(ce){var we=this.rules.block.def.exec(ce);if(we){we[3]&&(we[3]=we[3].substring(1,we[3].length-1));var se=we[1].toLowerCase().replace(/\s+/g," ");return{tag:se,raw:we[0],href:we[2],title:we[3]}}},je.table=function(ce){var we=this.rules.block.table.exec(ce);if(we){var se={type:"table",header:j(we[1].replace(/^ *| *\| *$/g,"")),align:we[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:we[3]?we[3].replace(/\n$/,"").split(`
`):[]};if(se.header.length===se.align.length){se.raw=we[0];var _e=se.align.length,Ne;for(Ne=0;Ne<_e;Ne++)/^ *-+: *$/.test(se.align[Ne])?se.align[Ne]="right":/^ *:-+: *$/.test(se.align[Ne])?se.align[Ne]="center":/^ *:-+ *$/.test(se.align[Ne])?se.align[Ne]="left":se.align[Ne]=null;for(_e=se.cells.length,Ne=0;Ne<_e;Ne++)se.cells[Ne]=j(se.cells[Ne].replace(/^ *\| *| *\| *$/g,""),se.header.length);return se}}},je.lheading=function(ce){var we=this.rules.block.lheading.exec(ce);if(we)return{type:"heading",raw:we[0],depth:we[2].charAt(0)==="="?1:2,text:we[1]}},je.paragraph=function(ce){var we=this.rules.block.paragraph.exec(ce);if(we)return{type:"paragraph",raw:we[0],text:we[1].charAt(we[1].length-1)===`
`?we[1].slice(0,-1):we[1]}},je.text=function(ce,we){var se=this.rules.block.text.exec(ce);if(se){var _e=we[we.length-1];return _e&&_e.type==="text"?{raw:se[0],text:se[0]}:{type:"text",raw:se[0],text:se[0]}}},je.escape=function(ce){var we=this.rules.inline.escape.exec(ce);if(we)return{type:"escape",raw:we[0],text:Z(we[1])}},je.tag=function(ce,we,se){var _e=this.rules.inline.tag.exec(ce);if(_e)return!we&&/^<a /i.test(_e[0])?we=!0:we&&/^<\/a>/i.test(_e[0])&&(we=!1),!se&&/^<(pre|code|kbd|script)(\s|>)/i.test(_e[0])?se=!0:se&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(_e[0])&&(se=!1),{type:this.options.sanitize?"text":"html",raw:_e[0],inLink:we,inRawBlock:se,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(_e[0]):Z(_e[0]):_e[0]}},je.link=function(ce){var we=this.rules.inline.link.exec(ce);if(we){var se=ie(we[2],"()");if(se>-1){var _e=we[0].indexOf("!")===0?5:4,Ne=_e+we[1].length+se;we[2]=we[2].substring(0,se),we[0]=we[0].substring(0,Ne).trim(),we[3]=""}var Q=we[2],Ue="";if(this.options.pedantic){var Ze=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Q);Ze?(Q=Ze[1],Ue=Ze[3]):Ue=""}else Ue=we[3]?we[3].slice(1,-1):"";Q=Q.trim().replace(/^<([\s\S]*)>$/,"$1");var Te=pe(we,{href:Q&&Q.replace(this.rules.inline._escapes,"$1"),title:Ue&&Ue.replace(this.rules.inline._escapes,"$1")},we[0]);return Te}},je.reflink=function(ce,we){var se;if((se=this.rules.inline.reflink.exec(ce))||(se=this.rules.inline.nolink.exec(ce))){var _e=(se[2]||se[1]).replace(/\s+/g," ");if(_e=we[_e.toLowerCase()],!_e||!_e.href){var Ne=se[0].charAt(0);return{type:"text",raw:Ne,text:Ne}}var Q=pe(se,_e,se[0]);return Q}},je.strong=function(ce,we,se){se===void 0&&(se="");var _e=this.rules.inline.strong.start.exec(ce);if(_e&&(!_e[1]||_e[1]&&(se===""||this.rules.inline.punctuation.exec(se)))){we=we.slice(-1*ce.length);var Ne=_e[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Ne.lastIndex=0;for(var Q;(_e=Ne.exec(we))!=null;)if(Q=this.rules.inline.strong.middle.exec(we.slice(0,_e.index+3)),Q)return{type:"strong",raw:ce.slice(0,Q[0].length),text:ce.slice(2,Q[0].length-2)}}},je.em=function(ce,we,se){se===void 0&&(se="");var _e=this.rules.inline.em.start.exec(ce);if(_e&&(!_e[1]||_e[1]&&(se===""||this.rules.inline.punctuation.exec(se)))){we=we.slice(-1*ce.length);var Ne=_e[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Ne.lastIndex=0;for(var Q;(_e=Ne.exec(we))!=null;)if(Q=this.rules.inline.em.middle.exec(we.slice(0,_e.index+2)),Q)return{type:"em",raw:ce.slice(0,Q[0].length),text:ce.slice(1,Q[0].length-1)}}},je.codespan=function(ce){var we=this.rules.inline.code.exec(ce);if(we){var se=we[2].replace(/\n/g," "),_e=/[^ ]/.test(se),Ne=se.startsWith(" ")&&se.endsWith(" ");return _e&&Ne&&(se=se.substring(1,se.length-1)),se=Z(se,!0),{type:"codespan",raw:we[0],text:se}}},je.br=function(ce){var we=this.rules.inline.br.exec(ce);if(we)return{type:"br",raw:we[0]}},je.del=function(ce){var we=this.rules.inline.del.exec(ce);if(we)return{type:"del",raw:we[0],text:we[1]}},je.autolink=function(ce,we){var se=this.rules.inline.autolink.exec(ce);if(se){var _e,Ne;return se[2]==="@"?(_e=Z(this.options.mangle?we(se[1]):se[1]),Ne="mailto:"+_e):(_e=Z(se[1]),Ne=_e),{type:"link",raw:se[0],text:_e,href:Ne,tokens:[{type:"text",raw:_e,text:_e}]}}},je.url=function(ce,we){var se;if(se=this.rules.inline.url.exec(ce)){var _e,Ne;if(se[2]==="@")_e=Z(this.options.mangle?we(se[0]):se[0]),Ne="mailto:"+_e;else{var Q;do Q=se[0],se[0]=this.rules.inline._backpedal.exec(se[0])[0];while(Q!==se[0]);_e=Z(se[0]),se[1]==="www."?Ne="http://"+_e:Ne=_e}return{type:"link",raw:se[0],text:_e,href:Ne,tokens:[{type:"text",raw:_e,text:_e}]}}},je.inlineText=function(ce,we,se){var _e=this.rules.inline.text.exec(ce);if(_e){var Ne;return we?Ne=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(_e[0]):Z(_e[0]):_e[0]:Ne=Z(this.options.smartypants?se(_e[0]):_e[0]),{type:"text",raw:_e[0],text:Ne}}},Ge}(),q=K.noopTest,be=K.edit,ye=K.merge,le={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:q,table:q,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};le._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,le._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,le.def=be(le.def).replace("label",le._label).replace("title",le._title).getRegex(),le.bullet=/(?:[*+-]|\d{1,9}[.)])/,le.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,le.item=be(le.item,"gm").replace(/bull/g,le.bullet).getRegex(),le.list=be(le.list).replace(/bull/g,le.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+le.def.source+")").getRegex(),le._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",le._comment=/<!--(?!-?>)[\s\S]*?-->/,le.html=be(le.html,"i").replace("comment",le._comment).replace("tag",le._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),le.paragraph=be(le._paragraph).replace("hr",le.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",le._tag).getRegex(),le.blockquote=be(le.blockquote).replace("paragraph",le.paragraph).getRegex(),le.normal=ye({},le),le.gfm=ye({},le.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),le.gfm.nptable=be(le.gfm.nptable).replace("hr",le.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",le._tag).getRegex(),le.gfm.table=be(le.gfm.table).replace("hr",le.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",le._tag).getRegex(),le.pedantic=ye({},le.normal,{html:be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",le._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:q,paragraph:be(le.normal._paragraph).replace("hr",le.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",le.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ue={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:q,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:q,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};ue._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",ue.punctuation=be(ue.punctuation).replace(/punctuation/g,ue._punctuation).getRegex(),ue._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",ue._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",ue.em.start=be(ue.em.start).replace(/punctuation/g,ue._punctuation).getRegex(),ue.em.middle=be(ue.em.middle).replace(/punctuation/g,ue._punctuation).replace(/overlapSkip/g,ue._overlapSkip).getRegex(),ue.em.endAst=be(ue.em.endAst,"g").replace(/punctuation/g,ue._punctuation).getRegex(),ue.em.endUnd=be(ue.em.endUnd,"g").replace(/punctuation/g,ue._punctuation).getRegex(),ue.strong.start=be(ue.strong.start).replace(/punctuation/g,ue._punctuation).getRegex(),ue.strong.middle=be(ue.strong.middle).replace(/punctuation/g,ue._punctuation).replace(/blockSkip/g,ue._blockSkip).getRegex(),ue.strong.endAst=be(ue.strong.endAst,"g").replace(/punctuation/g,ue._punctuation).getRegex(),ue.strong.endUnd=be(ue.strong.endUnd,"g").replace(/punctuation/g,ue._punctuation).getRegex(),ue.blockSkip=be(ue._blockSkip,"g").getRegex(),ue.overlapSkip=be(ue._overlapSkip,"g").getRegex(),ue._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ue._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ue._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,ue.autolink=be(ue.autolink).replace("scheme",ue._scheme).replace("email",ue._email).getRegex(),ue._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ue.tag=be(ue.tag).replace("comment",le._comment).replace("attribute",ue._attribute).getRegex(),ue._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ue._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,ue._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ue.link=be(ue.link).replace("label",ue._label).replace("href",ue._href).replace("title",ue._title).getRegex(),ue.reflink=be(ue.reflink).replace("label",ue._label).getRegex(),ue.reflinkSearch=be(ue.reflinkSearch,"g").replace("reflink",ue.reflink).replace("nolink",ue.nolink).getRegex(),ue.normal=ye({},ue),ue.pedantic=ye({},ue.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:be(/^!?\[(label)\]\((.*?)\)/).replace("label",ue._label).getRegex(),reflink:be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ue._label).getRegex()}),ue.gfm=ye({},ue.normal,{escape:be(ue.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),ue.gfm.url=be(ue.gfm.url,"i").replace("email",ue.gfm._extended_email).getRegex(),ue.breaks=ye({},ue.gfm,{br:be(ue.br).replace("{2,}","*").getRegex(),text:be(ue.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var ne={block:le,inline:ue},xe=f.defaults,$=ne.block,oe=ne.inline;function Le(Ge){return Ge.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function te(Ge){var je="",Fe,ce,we=Ge.length;for(Fe=0;Fe<we;Fe++)ce=Ge.charCodeAt(Fe),Math.random()>.5&&(ce="x"+ce.toString(16)),je+="&#"+ce+";";return je}var Y=function(){function Ge(Fe){this.tokens=[],this.tokens.links=Object.create(null),this.options=Fe||xe,this.options.tokenizer=this.options.tokenizer||new De,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ce={block:$.normal,inline:oe.normal};this.options.pedantic?(ce.block=$.pedantic,ce.inline=oe.pedantic):this.options.gfm&&(ce.block=$.gfm,this.options.breaks?ce.inline=oe.breaks:ce.inline=oe.gfm),this.tokenizer.rules=ce}Ge.lex=function(ce,we){var se=new Ge(we);return se.lex(ce)};var je=Ge.prototype;return je.lex=function(ce){return ce=ce.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(ce,this.tokens,!0),this.inline(this.tokens),this.tokens},je.blockTokens=function(ce,we,se){we===void 0&&(we=[]),se===void 0&&(se=!0),ce=ce.replace(/^ +$/gm,"");for(var _e,Ne,Q,Ue;ce;){if(_e=this.tokenizer.space(ce)){ce=ce.substring(_e.raw.length),_e.type&&we.push(_e);continue}if(_e=this.tokenizer.code(ce,we)){ce=ce.substring(_e.raw.length),_e.type?we.push(_e):(Ue=we[we.length-1],Ue.raw+=`
`+_e.raw,Ue.text+=`
`+_e.text);continue}if(_e=this.tokenizer.fences(ce)){ce=ce.substring(_e.raw.length),we.push(_e);continue}if(_e=this.tokenizer.heading(ce)){ce=ce.substring(_e.raw.length),we.push(_e);continue}if(_e=this.tokenizer.nptable(ce)){ce=ce.substring(_e.raw.length),we.push(_e);continue}if(_e=this.tokenizer.hr(ce)){ce=ce.substring(_e.raw.length),we.push(_e);continue}if(_e=this.tokenizer.blockquote(ce)){ce=ce.substring(_e.raw.length),_e.tokens=this.blockTokens(_e.text,[],se),we.push(_e);continue}if(_e=this.tokenizer.list(ce)){for(ce=ce.substring(_e.raw.length),Q=_e.items.length,Ne=0;Ne<Q;Ne++)_e.items[Ne].tokens=this.blockTokens(_e.items[Ne].text,[],!1);we.push(_e);continue}if(_e=this.tokenizer.html(ce)){ce=ce.substring(_e.raw.length),we.push(_e);continue}if(se&&(_e=this.tokenizer.def(ce))){ce=ce.substring(_e.raw.length),this.tokens.links[_e.tag]||(this.tokens.links[_e.tag]={href:_e.href,title:_e.title});continue}if(_e=this.tokenizer.table(ce)){ce=ce.substring(_e.raw.length),we.push(_e);continue}if(_e=this.tokenizer.lheading(ce)){ce=ce.substring(_e.raw.length),we.push(_e);continue}if(se&&(_e=this.tokenizer.paragraph(ce))){ce=ce.substring(_e.raw.length),we.push(_e);continue}if(_e=this.tokenizer.text(ce,we)){ce=ce.substring(_e.raw.length),_e.type?we.push(_e):(Ue=we[we.length-1],Ue.raw+=`
`+_e.raw,Ue.text+=`
`+_e.text);continue}if(ce){var Ze="Infinite loop on byte: "+ce.charCodeAt(0);if(this.options.silent){console.error(Ze);break}else throw new Error(Ze)}}return we},je.inline=function(ce){var we,se,_e,Ne,Q,Ue,Ze=ce.length;for(we=0;we<Ze;we++){Ue=ce[we];switch(Ue.type){case"paragraph":case"text":case"heading":{Ue.tokens=[],this.inlineTokens(Ue.text,Ue.tokens);break}case"table":{for(Ue.tokens={header:[],cells:[]},Ne=Ue.header.length,se=0;se<Ne;se++)Ue.tokens.header[se]=[],this.inlineTokens(Ue.header[se],Ue.tokens.header[se]);for(Ne=Ue.cells.length,se=0;se<Ne;se++)for(Q=Ue.cells[se],Ue.tokens.cells[se]=[],_e=0;_e<Q.length;_e++)Ue.tokens.cells[se][_e]=[],this.inlineTokens(Q[_e],Ue.tokens.cells[se][_e]);break}case"blockquote":{this.inline(Ue.tokens);break}case"list":{for(Ne=Ue.items.length,se=0;se<Ne;se++)this.inline(Ue.items[se].tokens);break}}}return ce},je.inlineTokens=function(ce,we,se,_e,Ne){we===void 0&&(we=[]),se===void 0&&(se=!1),_e===void 0&&(_e=!1),Ne===void 0&&(Ne="");var Q,Ue=ce,Ze;if(this.tokens.links){var Te=Object.keys(this.tokens.links);if(Te.length>0)for(;(Ze=this.tokenizer.rules.inline.reflinkSearch.exec(Ue))!=null;)Te.includes(Ze[0].slice(Ze[0].lastIndexOf("[")+1,-1))&&(Ue=Ue.slice(0,Ze.index)+"["+"a".repeat(Ze[0].length-2)+"]"+Ue.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Ze=this.tokenizer.rules.inline.blockSkip.exec(Ue))!=null;)Ue=Ue.slice(0,Ze.index)+"["+"a".repeat(Ze[0].length-2)+"]"+Ue.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ce;){if(Q=this.tokenizer.escape(ce)){ce=ce.substring(Q.raw.length),we.push(Q);continue}if(Q=this.tokenizer.tag(ce,se,_e)){ce=ce.substring(Q.raw.length),se=Q.inLink,_e=Q.inRawBlock,we.push(Q);continue}if(Q=this.tokenizer.link(ce)){ce=ce.substring(Q.raw.length),Q.type==="link"&&(Q.tokens=this.inlineTokens(Q.text,[],!0,_e)),we.push(Q);continue}if(Q=this.tokenizer.reflink(ce,this.tokens.links)){ce=ce.substring(Q.raw.length),Q.type==="link"&&(Q.tokens=this.inlineTokens(Q.text,[],!0,_e)),we.push(Q);continue}if(Q=this.tokenizer.strong(ce,Ue,Ne)){ce=ce.substring(Q.raw.length),Q.tokens=this.inlineTokens(Q.text,[],se,_e),we.push(Q);continue}if(Q=this.tokenizer.em(ce,Ue,Ne)){ce=ce.substring(Q.raw.length),Q.tokens=this.inlineTokens(Q.text,[],se,_e),we.push(Q);continue}if(Q=this.tokenizer.codespan(ce)){ce=ce.substring(Q.raw.length),we.push(Q);continue}if(Q=this.tokenizer.br(ce)){ce=ce.substring(Q.raw.length),we.push(Q);continue}if(Q=this.tokenizer.del(ce)){ce=ce.substring(Q.raw.length),Q.tokens=this.inlineTokens(Q.text,[],se,_e),we.push(Q);continue}if(Q=this.tokenizer.autolink(ce,te)){ce=ce.substring(Q.raw.length),we.push(Q);continue}if(!se&&(Q=this.tokenizer.url(ce,te))){ce=ce.substring(Q.raw.length),we.push(Q);continue}if(Q=this.tokenizer.inlineText(ce,_e,Le)){ce=ce.substring(Q.raw.length),Ne=Q.raw.slice(-1),we.push(Q);continue}if(ce){var He="Infinite loop on byte: "+ce.charCodeAt(0);if(this.options.silent){console.error(He);break}else throw new Error(He)}}return we},h(Ge,null,[{key:"rules",get:function(){return{block:$,inline:oe}}}]),Ge}(),X=f.defaults,J=K.cleanUrl,ve=K.escape,he=function(){function Ge(Fe){this.options=Fe||X}var je=Ge.prototype;return je.code=function(ce,we,se){var _e=(we||"").match(/\S*/)[0];if(this.options.highlight){var Ne=this.options.highlight(ce,_e);Ne!=null&&Ne!==ce&&(se=!0,ce=Ne)}return _e?'<pre><code class="'+this.options.langPrefix+ve(_e,!0)+'">'+(se?ce:ve(ce,!0))+`</code></pre>
`:"<pre><code>"+(se?ce:ve(ce,!0))+`</code></pre>
`},je.blockquote=function(ce){return`<blockquote>
`+ce+`</blockquote>
`},je.html=function(ce){return ce},je.heading=function(ce,we,se,_e){return this.options.headerIds?"<h"+we+' id="'+this.options.headerPrefix+_e.slug(se)+'">'+ce+"</h"+we+`>
`:"<h"+we+">"+ce+"</h"+we+`>
`},je.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},je.list=function(ce,we,se){var _e=we?"ol":"ul",Ne=we&&se!==1?' start="'+se+'"':"";return"<"+_e+Ne+`>
`+ce+"</"+_e+`>
`},je.listitem=function(ce){return"<li>"+ce+`</li>
`},je.checkbox=function(ce){return"<input "+(ce?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},je.paragraph=function(ce){return"<p>"+ce+`</p>
`},je.table=function(ce,we){return we&&(we="<tbody>"+we+"</tbody>"),`<table>
<thead>
`+ce+`</thead>
`+we+`</table>
`},je.tablerow=function(ce){return`<tr>
`+ce+`</tr>
`},je.tablecell=function(ce,we){var se=we.header?"th":"td",_e=we.align?"<"+se+' align="'+we.align+'">':"<"+se+">";return _e+ce+"</"+se+`>
`},je.strong=function(ce){return"<strong>"+ce+"</strong>"},je.em=function(ce){return"<em>"+ce+"</em>"},je.codespan=function(ce){return"<code>"+ce+"</code>"},je.br=function(){return this.options.xhtml?"<br/>":"<br>"},je.del=function(ce){return"<del>"+ce+"</del>"},je.link=function(ce,we,se){if(ce=J(this.options.sanitize,this.options.baseUrl,ce),ce===null)return se;var _e='<a href="'+ve(ce)+'"';return we&&(_e+=' title="'+we+'"'),_e+=">"+se+"</a>",_e},je.image=function(ce,we,se){if(ce=J(this.options.sanitize,this.options.baseUrl,ce),ce===null)return se;var _e='<img src="'+ce+'" alt="'+se+'"';return we&&(_e+=' title="'+we+'"'),_e+=this.options.xhtml?"/>":">",_e},je.text=function(ce){return ce},Ge}(),Ce=function(){function Ge(){}var je=Ge.prototype;return je.strong=function(ce){return ce},je.em=function(ce){return ce},je.codespan=function(ce){return ce},je.del=function(ce){return ce},je.html=function(ce){return ce},je.text=function(ce){return ce},je.link=function(ce,we,se){return""+se},je.image=function(ce,we,se){return""+se},je.br=function(){return""},Ge}(),Pe=function(){function Ge(){this.seen={}}var je=Ge.prototype;return je.slug=function(ce){var we=ce.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(we)){var se=we;do this.seen[se]++,we=se+"-"+this.seen[se];while(this.seen.hasOwnProperty(we))}return this.seen[we]=0,we},Ge}(),de=f.defaults,ke=K.unescape,me=function(){function Ge(Fe){this.options=Fe||de,this.options.renderer=this.options.renderer||new he,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ce,this.slugger=new Pe}Ge.parse=function(ce,we){var se=new Ge(we);return se.parse(ce)};var je=Ge.prototype;return je.parse=function(ce,we){we===void 0&&(we=!0);var se="",_e,Ne,Q,Ue,Ze,Te,He,Ye,st,ut,et,Re,qe,At,$e,ht,Rt,pt,wt=ce.length;for(_e=0;_e<wt;_e++){ut=ce[_e];switch(ut.type){case"space":continue;case"hr":{se+=this.renderer.hr();continue}case"heading":{se+=this.renderer.heading(this.parseInline(ut.tokens),ut.depth,ke(this.parseInline(ut.tokens,this.textRenderer)),this.slugger);continue}case"code":{se+=this.renderer.code(ut.text,ut.lang,ut.escaped);continue}case"table":{for(Ye="",He="",Ue=ut.header.length,Ne=0;Ne<Ue;Ne++)He+=this.renderer.tablecell(this.parseInline(ut.tokens.header[Ne]),{header:!0,align:ut.align[Ne]});for(Ye+=this.renderer.tablerow(He),st="",Ue=ut.cells.length,Ne=0;Ne<Ue;Ne++){for(Te=ut.tokens.cells[Ne],He="",Ze=Te.length,Q=0;Q<Ze;Q++)He+=this.renderer.tablecell(this.parseInline(Te[Q]),{header:!1,align:ut.align[Q]});st+=this.renderer.tablerow(He)}se+=this.renderer.table(Ye,st);continue}case"blockquote":{st=this.parse(ut.tokens),se+=this.renderer.blockquote(st);continue}case"list":{for(et=ut.ordered,Re=ut.start,qe=ut.loose,Ue=ut.items.length,st="",Ne=0;Ne<Ue;Ne++)$e=ut.items[Ne],ht=$e.checked,Rt=$e.task,At="",$e.task&&(pt=this.renderer.checkbox(ht),qe?$e.tokens.length>0&&$e.tokens[0].type==="text"?($e.tokens[0].text=pt+" "+$e.tokens[0].text,$e.tokens[0].tokens&&$e.tokens[0].tokens.length>0&&$e.tokens[0].tokens[0].type==="text"&&($e.tokens[0].tokens[0].text=pt+" "+$e.tokens[0].tokens[0].text)):$e.tokens.unshift({type:"text",text:pt}):At+=pt),At+=this.parse($e.tokens,qe),st+=this.renderer.listitem(At,Rt,ht);se+=this.renderer.list(st,et,Re);continue}case"html":{se+=this.renderer.html(ut.text);continue}case"paragraph":{se+=this.renderer.paragraph(this.parseInline(ut.tokens));continue}case"text":{for(st=ut.tokens?this.parseInline(ut.tokens):ut.text;_e+1<wt&&ce[_e+1].type==="text";)ut=ce[++_e],st+=`
`+(ut.tokens?this.parseInline(ut.tokens):ut.text);se+=we?this.renderer.paragraph(st):st;continue}default:{var Ct='Token with "'+ut.type+'" type was not found.';if(this.options.silent){console.error(Ct);return}else throw new Error(Ct)}}}return se},je.parseInline=function(ce,we){we=we||this.renderer;var se="",_e,Ne,Q=ce.length;for(_e=0;_e<Q;_e++){Ne=ce[_e];switch(Ne.type){case"escape":{se+=we.text(Ne.text);break}case"html":{se+=we.html(Ne.text);break}case"link":{se+=we.link(Ne.href,Ne.title,this.parseInline(Ne.tokens,we));break}case"image":{se+=we.image(Ne.href,Ne.title,Ne.text);break}case"strong":{se+=we.strong(this.parseInline(Ne.tokens,we));break}case"em":{se+=we.em(this.parseInline(Ne.tokens,we));break}case"codespan":{se+=we.codespan(Ne.text);break}case"br":{se+=we.br();break}case"del":{se+=we.del(this.parseInline(Ne.tokens,we));break}case"text":{se+=we.text(Ne.text);break}default:{var Ue='Token with "'+Ne.type+'" type was not found.';if(this.options.silent){console.error(Ue);return}else throw new Error(Ue)}}}return se},Ge}(),Be=K.merge,ft=K.checkSanitizeDeprecation,vt=K.escape,Xe=f.getDefaults,Bt=f.changeDefaults,Ae=f.defaults;function We(Ge,je,Fe){if(typeof Ge=="undefined"||Ge===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Ge!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Ge)+", string expected");if(typeof je=="function"&&(Fe=je,je=null),je=Be({},We.defaults,je||{}),ft(je),Fe){var ce=je.highlight,we;try{we=Y.lex(Ge,je)}catch(Q){return Fe(Q)}var se=function(Ue){var Ze;if(!Ue)try{Ze=me.parse(we,je)}catch(Te){Ue=Te}return je.highlight=ce,Ue?Fe(Ue):Fe(null,Ze)};if(!ce||ce.length<3)return se();if(delete je.highlight,!we.length)return se();var _e=0;We.walkTokens(we,function(Q){Q.type==="code"&&(_e++,setTimeout(function(){ce(Q.text,Q.lang,function(Ue,Ze){if(Ue)return se(Ue);Ze!=null&&Ze!==Q.text&&(Q.text=Ze,Q.escaped=!0),_e--,_e===0&&se()})},0))}),_e===0&&se();return}try{var Ne=Y.lex(Ge,je);return je.walkTokens&&We.walkTokens(Ne,je.walkTokens),me.parse(Ne,je)}catch(Q){if(Q.message+=`
Please report this to https://github.com/markedjs/marked.`,je.silent)return"<p>An error occurred:</p><pre>"+vt(Q.message+"",!0)+"</pre>";throw Q}}We.options=We.setOptions=function(Ge){return Be(We.defaults,Ge),Bt(We.defaults),We},We.getDefaults=Xe,We.defaults=Ae,We.use=function(Ge){var je=Be({},Ge);if(Ge.renderer&&function(){var ce=We.defaults.renderer||new he,we=function(Ne){var Q=ce[Ne];ce[Ne]=function(){for(var Ue=arguments.length,Ze=new Array(Ue),Te=0;Te<Ue;Te++)Ze[Te]=arguments[Te];var He=Ge.renderer[Ne].apply(ce,Ze);return He===!1&&(He=Q.apply(ce,Ze)),He}};for(var se in Ge.renderer)we(se);je.renderer=ce}(),Ge.tokenizer&&function(){var ce=We.defaults.tokenizer||new De,we=function(Ne){var Q=ce[Ne];ce[Ne]=function(){for(var Ue=arguments.length,Ze=new Array(Ue),Te=0;Te<Ue;Te++)Ze[Te]=arguments[Te];var He=Ge.tokenizer[Ne].apply(ce,Ze);return He===!1&&(He=Q.apply(ce,Ze)),He}};for(var se in Ge.tokenizer)we(se);je.tokenizer=ce}(),Ge.walkTokens){var Fe=We.defaults.walkTokens;je.walkTokens=function(ce){Ge.walkTokens(ce),Fe&&Fe(ce)}}We.setOptions(je)},We.walkTokens=function(Ge,je){for(var Fe=g(Ge),ce;!(ce=Fe()).done;){var we=ce.value;je(we);switch(we.type){case"table":{for(var se=g(we.tokens.header),_e;!(_e=se()).done;){var Ne=_e.value;We.walkTokens(Ne,je)}for(var Q=g(we.tokens.cells),Ue;!(Ue=Q()).done;)for(var Ze=Ue.value,Te=g(Ze),He;!(He=Te()).done;){var Ye=He.value;We.walkTokens(Ye,je)}break}case"list":{We.walkTokens(we.items,je);break}default:we.tokens&&We.walkTokens(we.tokens,je)}}},We.Parser=me,We.parser=me.parse,We.Renderer=he,We.TextRenderer=Ce,We.Lexer=Y,We.lexer=Y.lex,We.Tokenizer=De,We.Slugger=Pe,We.parse=We;var dt=We;return dt})},"DlR+":function(S,F,v){var w=v("MFOe"),h=w.Global,I=w.trim;S.exports={name:"cookieStorage",read:g,write:f,each:a,remove:d,clearAll:u};var m=h.document;function g(r){if(!r||!o(r))return null;var l="(?:^|.*;\\s*)"+escape(r).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(m.cookie.replace(new RegExp(l),"$1"))}function a(r){for(var l=m.cookie.split(/; ?/g),n=l.length-1;n>=0;n--){if(!I(l[n]))continue;var s=l[n].split("="),e=unescape(s[0]),i=unescape(s[1]);r(i,e)}}function f(r,l){if(!r)return;m.cookie=escape(r)+"="+escape(l)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function d(r){if(!r||!o(r))return;m.cookie=escape(r)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function u(){a(function(r,l){d(l)})}function o(r){return new RegExp("(?:^|;\\s*)"+escape(r).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(m.cookie)}},Dqnf:function(S,F,v){"use strict";var w=v("k1fw"),h=v("tJVT"),I=v("rAM+"),m=v("cDcd"),g=v.n(m),a=v("J66h"),f=v.n(a),d=v("/POA"),u=v.n(d),o=v("q7KB"),r=v.n(o),l=v("ER/M"),n=v.n(l),s=v("dhSg"),e=v("bdgK");function i(y,E,c){var C=c._core._renderService.dimensions.actualCellWidth||9.5,x=c._core._renderService.dimensions.actualCellHeight||18,M=Math.floor(E/x),k=Math.floor(y/C);return[k,M]}function _(y,E){var c=new e.default(function(C){var x=Object(I.a)(C),M;try{for(x.s();!(M=x.n()).done;){var k=M.value;if(k.target.offsetHeight>0||k.target.offsetWidth>0){var T=i(k.target.offsetWidth,k.target.offsetHeight,y),R=Object(h.a)(T,2),P=R[0],B=R[1];console.log("cols, rows",P,B),s.a.publish("ssh-xterm-resize",{columns:P,rows:B,width:k.target.offsetWidth,height:k.target.offsetHeight}),y.resize(P,B);var W=a.Base64.decode("IA=="),z=a.Base64.decode("CBtbSw==");y.write(W),y.write(z)}}}catch(H){x.e(H)}finally{x.f()}});return c.observe(E),c}var b=3e4;F.a=function(y){var E=y.sshConfigData,c=y.sid,C=Object(m.useState)(null),x=Object(h.a)(C,2),M=x[0],k=x[1],T=E.link_url,R=E.password,P=E.port,B=Object(m.useRef)(),W=Object(m.useRef)(),z=Object(m.useRef)(!1);return Object(m.useEffect)(function(){if(B.current&&T){var H=new d.Terminal({fontSize:16,rendererType:"dom"});H.open(B.current),H.onData(function(G){W.current&&(W.current.readyState===1&&(W.current.send(JSON.stringify({tp:"client",data:G})),s.a.publish("on-operating-ssh")))}),H.write("Connecting..."),k(H);var ee=_(H,B.current);return function(){H.dispose(),ee.unobserve(B.current)}}},[T,B.current]),Object(m.useEffect)(function(){if(M&&T){function H(){var D=new WebSocket(T);W.current=D,D.onopen=function(){var j=M.element.parentElement;if(j){var Z=j.offsetWidth,ie=j.offsetHeight;console.log("init",{tp:"init",data:Object(w.a)(Object(w.a)({},E),{},{secret:R,width:Z,height:ie,rows:M.rows,columns:M.cols})}),D.send(JSON.stringify({tp:"init",data:Object(w.a)(Object(w.a)({},E),{},{secret:R,width:Z,height:ie,rows:M.rows,columns:M.cols})}))}M.focus()},D.onerror=function(j){console.log("------in socket error----",j,D,T)},D.onmessage=function(j){z.current||(M.write("\r"),setTimeout(function(){},1e3)),z.current=!0,console.log("event:",j);var Z=a.Base64.decode(j.data.toString()),ie=M._core._renderService.dimensions.actualCellWidth||9.5;console.log("data:",Z,ie,M),M.write(Z)},D.onclose=function(j){ee&&clearInterval(ee),M.write(`\r
connection closed`)}}var ee=setInterval(function(){W.current&&W.current.send(JSON.stringify({tp:"h"}))},b),G=s.a.subscribe("create-socket",function(D){c==D&&(W.current&&W.current.readyState===1?M.focus():H(),M.focus())}),U=s.a.subscribe("close-socket",function(D){c===D&&(W.current&&(W.current.close(),z.current=!1,M.clear()),W.current=null)}),K=s.a.subscribe("ssh-xterm-resize",function(D){W.current&&W.current.readyState===1&&W.current.send(JSON.stringify({tp:"resize",data:Object(w.a)({},D)}))}),L=s.a.subscribe("ssh-add-connect-time",function(){W.current&&W.current.readyState===1&&W.current.send(JSON.stringify({tp:"overtime"}))});return function(){U(),G(),K(),L(),W.current&&(W.current.close(),z.current=!1)}}},[M,T,P]),g.a.createElement("div",{ref:B,className:n.a["xterm-panel"]},T?null:g.a.createElement("p",{style:{color:"#fff"}},"\u6B63\u5728\u8FDE\u63A5\u547D\u4EE4\u884C\u670D\u52A1..."))}},E4JC:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("ETIr"),v("cv67"),v("K3mO"),v("OLod"))})(this,function(w){return function(){var h=w,I=h.lib,m=I.StreamCipher,g=h.algo,a=[],f=[],d=[],u=g.Rabbit=m.extend({_doReset:function(){for(var r=this._key.words,l=this.cfg.iv,n=0;n<4;n++)r[n]=(r[n]<<8|r[n]>>>24)&16711935|(r[n]<<24|r[n]>>>8)&4278255360;var s=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],e=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var n=0;n<4;n++)o.call(this);for(var n=0;n<8;n++)e[n]^=s[n+4&7];if(l){var i=l.words,_=i[0],b=i[1],y=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,E=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,c=y>>>16|E&4294901760,C=E<<16|y&65535;e[0]^=y,e[1]^=c,e[2]^=E,e[3]^=C,e[4]^=y,e[5]^=c,e[6]^=E,e[7]^=C;for(var n=0;n<4;n++)o.call(this)}},_doProcessBlock:function(r,l){var n=this._X;o.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var s=0;s<4;s++)a[s]=(a[s]<<8|a[s]>>>24)&16711935|(a[s]<<24|a[s]>>>8)&4278255360,r[l+s]^=a[s]},blockSize:128/32,ivSize:64/32});function o(){for(var r=this._X,l=this._C,n=0;n<8;n++)f[n]=l[n];l[0]=l[0]+1295307597+this._b|0,l[1]=l[1]+3545052371+(l[0]>>>0<f[0]>>>0?1:0)|0,l[2]=l[2]+886263092+(l[1]>>>0<f[1]>>>0?1:0)|0,l[3]=l[3]+1295307597+(l[2]>>>0<f[2]>>>0?1:0)|0,l[4]=l[4]+3545052371+(l[3]>>>0<f[3]>>>0?1:0)|0,l[5]=l[5]+886263092+(l[4]>>>0<f[4]>>>0?1:0)|0,l[6]=l[6]+1295307597+(l[5]>>>0<f[5]>>>0?1:0)|0,l[7]=l[7]+3545052371+(l[6]>>>0<f[6]>>>0?1:0)|0,this._b=l[7]>>>0<f[7]>>>0?1:0;for(var n=0;n<8;n++){var s=r[n]+l[n],e=s&65535,i=s>>>16,_=((e*e>>>17)+e*i>>>15)+i*i,b=((s&4294901760)*s|0)+((s&65535)*s|0);d[n]=_^b}r[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,r[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,r[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,r[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,r[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,r[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,r[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,r[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}h.Rabbit=m._createHelper(u)}(),w.Rabbit})},E7E6:function(S,F){S.exports="data:image/png;base64,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"},E9nw:function(S,F){S.exports=function(){var v=document.getSelection();if(!v.rangeCount)return function(){};for(var w=document.activeElement,h=[],I=0;I<v.rangeCount;I++)h.push(v.getRangeAt(I));switch(w.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":w.blur();break;default:w=null;break}return v.removeAllRanges(),function(){v.type==="Caret"&&v.removeAllRanges(),v.rangeCount||h.forEach(function(m){v.addRange(m)}),w&&w.focus()}}},ELLl:function(S,F,v){(function(w){w(v("VrN/"))})(function(w){var h={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},I=w.Pos;w.defineOption("autoCloseBrackets",!1,function(e,i,_){_&&_!=w.Init&&(e.removeKeyMap(g),e.state.closeBrackets=null),i&&(a(m(i,"pairs")),e.state.closeBrackets=i,e.addKeyMap(g))});function m(e,i){return i=="pairs"&&typeof e=="string"?e:typeof e=="object"&&e[i]!=null?e[i]:h[i]}var g={Backspace:u,Enter:o};function a(e){for(var i=0;i<e.length;i++){var _=e.charAt(i),b="'"+_+"'";g[b]||(g[b]=f(_))}}a(h.pairs+"`");function f(e){return function(i){return l(i,e)}}function d(e){var i=e.state.closeBrackets;if(!i||i.override)return i;var _=e.getModeAt(e.getCursor());return _.closeBrackets||i}function u(e){var i=d(e);if(!i||e.getOption("disableInput"))return w.Pass;for(var _=m(i,"pairs"),b=e.listSelections(),y=0;y<b.length;y++){if(!b[y].empty())return w.Pass;var E=n(e,b[y].head);if(!E||_.indexOf(E)%2!=0)return w.Pass}for(var y=b.length-1;y>=0;y--){var c=b[y].head;e.replaceRange("",I(c.line,c.ch-1),I(c.line,c.ch+1),"+delete")}}function o(e){var i=d(e),_=i&&m(i,"explode");if(!_||e.getOption("disableInput"))return w.Pass;for(var b=e.listSelections(),y=0;y<b.length;y++){if(!b[y].empty())return w.Pass;var E=n(e,b[y].head);if(!E||_.indexOf(E)%2!=0)return w.Pass}e.operation(function(){var c=e.lineSeparator()||`
`;e.replaceSelection(c+c,null),e.execCommand("goCharLeft"),b=e.listSelections();for(var C=0;C<b.length;C++){var x=b[C].head.line;e.indentLine(x,null,!0),e.indentLine(x+1,null,!0)}})}function r(e){var i=w.cmpPos(e.anchor,e.head)>0;return{anchor:new I(e.anchor.line,e.anchor.ch+(i?-1:1)),head:new I(e.head.line,e.head.ch+(i?1:-1))}}function l(e,i){var _=d(e);if(!_||e.getOption("disableInput"))return w.Pass;var b=m(_,"pairs"),y=b.indexOf(i);if(y==-1)return w.Pass;for(var E=m(_,"closeBefore"),c=m(_,"triples"),C=b.charAt(y+1)==i,x=e.listSelections(),M=y%2==0,k,T=0;T<x.length;T++){var R=x[T],P=R.head,B,W=e.getRange(P,I(P.line,P.ch+1));if(M&&!R.empty())B="surround";else if((C||!M)&&W==i)C&&s(e,P)?B="both":c.indexOf(i)>=0&&e.getRange(P,I(P.line,P.ch+3))==i+i+i?B="skipThree":B="skip";else if(C&&P.ch>1&&c.indexOf(i)>=0&&e.getRange(I(P.line,P.ch-2),P)==i+i){if(P.ch>2&&/\bstring/.test(e.getTokenTypeAt(I(P.line,P.ch-2))))return w.Pass;B="addFour"}else if(C){var z=P.ch==0?" ":e.getRange(I(P.line,P.ch-1),P);if(!w.isWordChar(W)&&z!=i&&!w.isWordChar(z))B="both";else return w.Pass}else if(M&&(W.length===0||/\s/.test(W)||E.indexOf(W)>-1))B="both";else return w.Pass;if(!k)k=B;else if(k!=B)return w.Pass}var H=y%2?b.charAt(y-1):i,ee=y%2?i:b.charAt(y+1);e.operation(function(){if(k=="skip")e.execCommand("goCharRight");else if(k=="skipThree")for(var G=0;G<3;G++)e.execCommand("goCharRight");else if(k=="surround"){for(var U=e.getSelections(),G=0;G<U.length;G++)U[G]=H+U[G]+ee;e.replaceSelections(U,"around"),U=e.listSelections().slice();for(var G=0;G<U.length;G++)U[G]=r(U[G]);e.setSelections(U)}else k=="both"?(e.replaceSelection(H+ee,null),e.triggerElectric(H+ee),e.execCommand("goCharLeft")):k=="addFour"&&(e.replaceSelection(H+H+H+H,"before"),e.execCommand("goCharRight"))})}function n(e,i){var _=e.getRange(I(i.line,i.ch-1),I(i.line,i.ch+1));return _.length==2?_:null}function s(e,i){var _=e.getTokenAt(I(i.line,i.ch+1));return/\bstring/.test(_.type)&&_.start==i.ch&&(i.ch==0||!/\bstring/.test(e.getTokenTypeAt(i)))}})},ELcG:function(S,F,v){(function(w,h){S.exports=F=h(v("Ib8C"))})(this,function(w){/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/return function(h){var I=w,m=I.lib,g=m.WordArray,a=m.Hasher,f=I.algo,d=g.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=g.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),o=g.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),r=g.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=g.create([0,1518500249,1859775393,2400959708,2840853838]),n=g.create([1352829926,1548603684,1836072691,2053994217,0]),s=f.RIPEMD160=a.extend({_doReset:function(){this._hash=g.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,C){for(var x=0;x<16;x++){var M=C+x,k=c[M];c[M]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}var T=this._hash.words,R=l.words,P=n.words,B=d.words,W=u.words,z=o.words,H=r.words,ee,G,U,K,L,D,j,Z,ie,pe;D=ee=T[0],j=G=T[1],Z=U=T[2],ie=K=T[3],pe=L=T[4];for(var Ee,x=0;x<80;x+=1)Ee=ee+c[C+B[x]]|0,x<16?Ee+=e(G,U,K)+R[0]:x<32?Ee+=i(G,U,K)+R[1]:x<48?Ee+=_(G,U,K)+R[2]:x<64?Ee+=b(G,U,K)+R[3]:Ee+=y(G,U,K)+R[4],Ee=Ee|0,Ee=E(Ee,z[x]),Ee=Ee+L|0,ee=L,L=K,K=E(U,10),U=G,G=Ee,Ee=D+c[C+W[x]]|0,x<16?Ee+=y(j,Z,ie)+P[0]:x<32?Ee+=b(j,Z,ie)+P[1]:x<48?Ee+=_(j,Z,ie)+P[2]:x<64?Ee+=i(j,Z,ie)+P[3]:Ee+=e(j,Z,ie)+P[4],Ee=Ee|0,Ee=E(Ee,H[x]),Ee=Ee+pe|0,D=pe,pe=ie,ie=E(Z,10),Z=j,j=Ee;Ee=T[1]+U+ie|0,T[1]=T[2]+K+pe|0,T[2]=T[3]+L+D|0,T[3]=T[4]+ee+j|0,T[4]=T[0]+G+Z|0,T[0]=Ee},_doFinalize:function(){var c=this._data,C=c.words,x=this._nDataBytes*8,M=c.sigBytes*8;C[M>>>5]|=128<<24-M%32,C[(M+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,c.sigBytes=(C.length+1)*4,this._process();for(var k=this._hash,T=k.words,R=0;R<5;R++){var P=T[R];T[R]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360}return k},clone:function(){var c=a.clone.call(this);return c._hash=this._hash.clone(),c}});function e(c,C,x){return c^C^x}function i(c,C,x){return c&C|~c&x}function _(c,C,x){return(c|~C)^x}function b(c,C,x){return c&x|C&~x}function y(c,C,x){return c^(C|~x)}function E(c,C){return c<<C|c>>>32-C}I.RIPEMD160=a._createHelper(s),I.HmacRIPEMD160=a._createHmacHelper(s)}(Math),w.RIPEMD160})},"ER/M":function(S,F,v){S.exports={"xterm-panel":"xterm-panel___2r2xx"}},ETIr:function(S,F,v){(function(w,h){S.exports=F=h(v("Ib8C"))})(this,function(w){return function(){var h=w,I=h.lib,m=I.WordArray,g=h.enc,a=g.Base64={stringify:function(d){var u=d.words,o=d.sigBytes,r=this._map;d.clamp();for(var l=[],n=0;n<o;n+=3)for(var s=u[n>>>2]>>>24-n%4*8&255,e=u[n+1>>>2]>>>24-(n+1)%4*8&255,i=u[n+2>>>2]>>>24-(n+2)%4*8&255,_=s<<16|e<<8|i,b=0;b<4&&n+b*.75<o;b++)l.push(r.charAt(_>>>6*(3-b)&63));var y=r.charAt(64);if(y)for(;l.length%4;)l.push(y);return l.join("")},parse:function(d){var u=d.length,o=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var l=0;l<o.length;l++)r[o.charCodeAt(l)]=l}var n=o.charAt(64);if(n){var s=d.indexOf(n);s!==-1&&(u=s)}return f(d,u,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(d,u,o){for(var r=[],l=0,n=0;n<u;n++)if(n%4){var s=o[d.charCodeAt(n-1)]<<n%4*2,e=o[d.charCodeAt(n)]>>>6-n%4*2,i=s|e;r[l>>>2]|=i<<24-l%4*8,l++}return m.create(r,l)}}(),w.enc.Base64})},"F+F2":function(S,F,v){(function(w,h){S.exports=F=h(v("Ib8C"))})(this,function(w){return function(){if(typeof ArrayBuffer!="function")return;var h=w,I=h.lib,m=I.WordArray,g=m.init,a=m.init=function(f){if(f instanceof ArrayBuffer&&(f=new Uint8Array(f)),(f instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&f instanceof Uint8ClampedArray||f instanceof Int16Array||f instanceof Uint16Array||f instanceof Int32Array||f instanceof Uint32Array||f instanceof Float32Array||f instanceof Float64Array)&&(f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength)),f instanceof Uint8Array){for(var d=f.byteLength,u=[],o=0;o<d;o++)u[o>>>2]|=f[o]<<24-o%4*8;g.call(this,u,d)}else g.apply(this,arguments)};a.prototype=m}(),w.lib.WordArray})},FOrL:function(S,F,v){S.exports=v.p+"static/nodata.a6b3f948.png"},FPkq:function(S,F,v){S.exports=v.p+"static/qrCode.dd0fe9b2.png"},FfZY:function(S,F,v){S.exports={wrap:"wrap___2UNvJ",modal:"modal___i6_bN",title:"title___ae-La",path:"path___3AJgW",colorBlue:"colorBlue___afQvH",width240:"width240___9YsKN",filePath:"filePath___2-i4S"}},Fv0C:function(S,F,v){"use strict";function w(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(i){return typeof i}:w=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},w(s)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var h=u(v("Lo0S")),I=v("vewr"),m=u(v("8CQX")),g=f(v("mHUz")),a=u(v("GdRQ"));function f(s){return s&&s.__esModule?s:{default:s}}function d(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return d=function(){return s},s}function u(s){if(s&&s.__esModule)return s;if(s===null||w(s)!=="object"&&typeof s!="function")return{default:s};var e=d();if(e&&e.has(s))return e.get(s);var i={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in s)if(Object.prototype.hasOwnProperty.call(s,b)){var y=_?Object.getOwnPropertyDescriptor(s,b):null;y&&(y.get||y.set)?Object.defineProperty(i,b,y):i[b]=s[b]}return i.default=s,e&&e.set(s,i),i}function o(s,e){if(!(s instanceof e))throw new TypeError("Cannot call a class as a function")}function r(s,e){for(var i=0;i<e.length;i++){var _=e[i];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(s,_.key,_)}}function l(s,e,i){return e&&r(s.prototype,e),i&&r(s,i),s}var n=function(){function s(e){o(this,s),this._target=e||null,this._keyDownList={},this._pendingKey=null,this._altGrArmed=!1,this._eventHandlers={keyup:this._handleKeyUp.bind(this),keydown:this._handleKeyDown.bind(this),keypress:this._handleKeyPress.bind(this),blur:this._allKeysUp.bind(this),checkalt:this._checkAlt.bind(this)},this.onkeyevent=function(){}}return l(s,[{key:"_sendKeyEvent",value:function(i,_,b){if(b)this._keyDownList[_]=i;else{if(!(_ in this._keyDownList))return;delete this._keyDownList[_]}h.Debug("onkeyevent "+(b?"down":"up")+", keysym: "+i,", code: "+_),this.onkeyevent(i,_,b)}},{key:"_getKeyCode",value:function(i){var _=m.getKeycode(i);if(_!=="Unidentified")return _;if(i.keyCode&&i.type!=="keypress"&&i.keyCode!==229)return"Platform"+i.keyCode;if(i.keyIdentifier){if(i.keyIdentifier.substr(0,2)!=="U+")return i.keyIdentifier;var b=parseInt(i.keyIdentifier.substr(2),16),y=String.fromCharCode(b).toUpperCase();return"Platform"+y.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(i){var _=this._getKeyCode(i),b=m.getKeysym(i);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),_==="AltRight"&&i.timeStamp-this._altGrCtrlTime<50?b=g.default.XK_ISO_Level3_Shift:this._sendKeyEvent(g.default.XK_Control_L,"ControlLeft",!0)),_==="Unidentified"){b&&(this._sendKeyEvent(b,_,!0),this._sendKeyEvent(b,_,!1)),(0,I.stopEvent)(i);return}if(a.isMac()||a.isIOS())switch(b){case g.default.XK_Super_L:b=g.default.XK_Alt_L;break;case g.default.XK_Super_R:b=g.default.XK_Super_L;break;case g.default.XK_Alt_L:b=g.default.XK_Mode_switch;break;case g.default.XK_Alt_R:b=g.default.XK_ISO_Level3_Shift;break}if(_ in this._keyDownList&&(b=this._keyDownList[_]),(a.isMac()||a.isIOS())&&_==="CapsLock"){this._sendKeyEvent(g.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(g.default.XK_Caps_Lock,"CapsLock",!1),(0,I.stopEvent)(i);return}if(!b&&(!i.key||a.isIE()||a.isEdge())){this._pendingKey=_,setTimeout(this._handleKeyPressTimeout.bind(this),10,i);return}if(this._pendingKey=null,(0,I.stopEvent)(i),_==="ControlLeft"&&a.isWindows()&&!("ControlLeft"in this._keyDownList)){this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),this._altGrCtrlTime=i.timeStamp;return}this._sendKeyEvent(b,_,!0)}},{key:"_handleKeyPress",value:function(i){if((0,I.stopEvent)(i),this._pendingKey===null)return;var _=this._getKeyCode(i),b=m.getKeysym(i);if(_!=="Unidentified"&&_!=this._pendingKey)return;if(_=this._pendingKey,this._pendingKey=null,!b){h.Info("keypress with no keysym:",i);return}this._sendKeyEvent(b,_,!0)}},{key:"_handleKeyPressTimeout",value:function(i){if(this._pendingKey===null)return;var _,b=this._pendingKey;if(this._pendingKey=null,i.keyCode>=48&&i.keyCode<=57)_=i.keyCode;else if(i.keyCode>=65&&i.keyCode<=90){var y=String.fromCharCode(i.keyCode);i.shiftKey?y=y.toUpperCase():y=y.toLowerCase(),_=y.charCodeAt()}else _=0;this._sendKeyEvent(_,b,!0)}},{key:"_handleKeyUp",value:function(i){(0,I.stopEvent)(i);var _=this._getKeyCode(i);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(g.default.XK_Control_L,"ControlLeft",!0)),(a.isMac()||a.isIOS())&&_==="CapsLock"){this._sendKeyEvent(g.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(g.default.XK_Caps_Lock,"CapsLock",!1);return}this._sendKeyEvent(this._keyDownList[_],_,!1),a.isWindows()&&(_==="ShiftLeft"||_==="ShiftRight")&&("ShiftRight"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftRight,"ShiftRight",!1),"ShiftLeft"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftLeft,"ShiftLeft",!1))}},{key:"_handleAltGrTimeout",value:function(){this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(g.default.XK_Control_L,"ControlLeft",!0)}},{key:"_allKeysUp",value:function(){h.Debug(">> Keyboard.allKeysUp");for(var i in this._keyDownList)this._sendKeyEvent(this._keyDownList[i],i,!1);h.Debug("<< Keyboard.allKeysUp")}},{key:"_checkAlt",value:function(i){if(i.skipCheckAlt)return;if(i.altKey)return;var _=this._target,b=this._keyDownList;["AltLeft","AltRight"].forEach(function(y){if(!(y in b))return;var E=new KeyboardEvent("keyup",{key:b[y],code:y});E.skipCheckAlt=!0,_.dispatchEvent(E)})}},{key:"grab",value:function(){if(this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),this._target.addEventListener("keypress",this._eventHandlers.keypress),window.addEventListener("blur",this._eventHandlers.blur),a.isWindows()&&a.isFirefox()){var i=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(_){return document.addEventListener(_,i,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(a.isWindows()&&a.isFirefox()){var i=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(_){return document.removeEventListener(_,i)})}this._target.removeEventListener("keydown",this._eventHandlers.keydown),this._target.removeEventListener("keyup",this._eventHandlers.keyup),this._target.removeEventListener("keypress",this._eventHandlers.keypress),window.removeEventListener("blur",this._eventHandlers.blur),this._allKeysUp()}}]),s}();F.default=n},GABl:function(S,F){S.exports="data:image/png;base64,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"},GQ8N:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.toUnsigned32bit=w,F.toSigned32bit=h;function w(I){return I>>>0}function h(I){return I|0}},GRuw:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("lPiR"))})(this,function(w){return function(){var h=w,I=h.lib,m=I.WordArray,g=h.algo,a=g.SHA256,f=g.SHA224=a.extend({_doReset:function(){this._hash=new m.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var d=a._doFinalize.call(this);return d.sigBytes-=4,d}});h.SHA224=a._createHelper(f),h.HmacSHA224=a._createHmacHelper(f)}(),w.SHA224})},GdRQ:function(S,F,v){"use strict";function w(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(T){return typeof T}:w=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},w(M)}Object.defineProperty(F,"__esModule",{value:!0}),F.isMac=_,F.isWindows=b,F.isIOS=y,F.isSafari=E,F.isIE=c,F.isEdge=C,F.isFirefox=x,F.hasScrollbarGutter=F.supportsImageMetadata=F.supportsCursorURIs=F.dragThreshold=F.isTouchDevice=void 0;var h=m(v("Lo0S"));function I(){if(typeof WeakMap!="function")return null;var M=new WeakMap;return I=function(){return M},M}function m(M){if(M&&M.__esModule)return M;if(M===null||w(M)!=="object"&&typeof M!="function")return{default:M};var k=I();if(k&&k.has(M))return k.get(M);var T={},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in M)if(Object.prototype.hasOwnProperty.call(M,P)){var B=R?Object.getOwnPropertyDescriptor(M,P):null;B&&(B.get||B.set)?Object.defineProperty(T,P,B):T[P]=M[P]}return T.default=M,k&&k.set(M,T),T}var g="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;F.isTouchDevice=g,window.addEventListener("touchstart",function M(){F.isTouchDevice=g=!0,window.removeEventListener("touchstart",M,!1)},!1);var a=10*(window.devicePixelRatio||1);F.dragThreshold=a;var f=!1;try{var d=document.createElement("canvas");d.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',d.style.cursor.indexOf("url")===0?(h.Info("Data URI scheme cursor supported"),f=!0):h.Warn("Data URI scheme cursor not supported")}catch(M){h.Error("Data URI scheme cursor test exception: "+M)}var u=f;F.supportsCursorURIs=u;var o=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),o=!0}catch(M){}var r=o;F.supportsImageMetadata=r;var l=!0;try{var n=document.createElement("div");n.style.visibility="hidden",n.style.overflow="scroll",document.body.appendChild(n);var s=document.createElement("div");n.appendChild(s);var e=n.offsetWidth-s.offsetWidth;n.parentNode.removeChild(n),l=e!=0}catch(M){h.Error("Scrollbar test exception: "+M)}var i=l;F.hasScrollbarGutter=i;function _(){return navigator&&!!/mac/i.exec(navigator.platform)}function b(){return navigator&&!!/win/i.exec(navigator.platform)}function y(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function E(){return navigator&&navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}function c(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function C(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function x(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}},GfqC:function(S,F,v){"use strict";var w=v("cDcd"),h=v.n(w),I=v("TSYQ"),m=v.n(I);function g(K,L){var D="cannot "+K.method+" "+K.action+" "+L.status+"'",j=new Error(D);return j.status=L.status,j.method=K.method,j.url=K.action,j}function a(K){var L=K.responseText||K.response;if(!L)return L;try{return JSON.parse(L)}catch(D){return L}}function f(K){var L=new XMLHttpRequest;K.onProgress&&L.upload&&(L.upload.onprogress=function(ie){ie.total>0&&(ie.percent=ie.loaded/ie.total*100),K.onProgress(ie)});var D=new FormData;K.data&&Object.keys(K.data).forEach(function(Z){var ie=K.data[Z];if(Array.isArray(ie)){ie.forEach(function(pe){D.append(Z+"[]",pe)});return}D.append(Z,K.data[Z])}),K.file instanceof Blob?D.append(K.filename,K.file,K.file.name):D.append(K.filename,K.file),L.onerror=function(ie){K.onError(ie)},L.onload=function(){return L.status<200||L.status>=300?K.onError(g(K,L),a(L)):K.onSuccess(a(L),L)},L.open(K.method,K.action,!0),K.withCredentials&&"withCredentials"in L&&(L.withCredentials=!0);var j=K.headers||{};return j["X-Requested-With"]!==null&&L.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(j).forEach(function(Z){j[Z]!==null&&L.setRequestHeader(Z,j[Z])}),L.send(D),{abort:function(){L.abort()}}}var d=+new Date,u=0;function o(){return"rc-upload-"+d+"-"+ ++u}function r(K,L){return K.indexOf(L,K.length-L.length)!==-1}var l=function(K,L){if(K&&L){var D=Array.isArray(L)?L:L.split(","),j=K.name||"",Z=K.type||"",ie=Z.replace(/\/.*$/,"");return D.some(function(pe){var Ee=pe.trim();return Ee.charAt(0)==="."?r(j.toLowerCase(),Ee.toLowerCase()):/\/\*$/.test(Ee)?ie===Ee.replace(/\/.*$/,""):Z===Ee})}return!0};function n(K,L){var D=K.createReader(),j=[];function Z(){D.readEntries(function(ie){var pe=Array.prototype.slice.apply(ie);j=j.concat(pe);var Ee=!pe.length;Ee?L(j):Z()})}Z()}var s=function(L,D,j){var Z=function ie(pe,Ee){Ee=Ee||"",pe.isFile?pe.file(function(De){j(De)&&(pe.fullPath&&!De.webkitRelativePath&&(Object.defineProperties(De,{webkitRelativePath:{writable:!0}}),De.webkitRelativePath=pe.fullPath.replace(/^\//,""),Object.defineProperties(De,{webkitRelativePath:{writable:!1}})),D([De]))}):pe.isDirectory&&n(pe,function(De){De.forEach(function(q){ie(q,""+Ee+pe.name+"/")})})};L.forEach(function(ie){Z(ie.webkitGetAsEntry())})},e=s,i=Object.assign||function(K){for(var L=1;L<arguments.length;L++){var D=arguments[L];for(var j in D)Object.prototype.hasOwnProperty.call(D,j)&&(K[j]=D[j])}return K},_=function(){function K(L,D){var j=[],Z=!0,ie=!1,pe=void 0;try{for(var Ee=L[Symbol.iterator](),De;!(Z=(De=Ee.next()).done)&&!(j.push(De.value),D&&j.length===D);Z=!0);}catch(q){ie=!0,pe=q}finally{try{!Z&&Ee.return&&Ee.return()}finally{if(ie)throw pe}}return j}return function(L,D){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return K(L,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function K(L,D){for(var j=0;j<D.length;j++){var Z=D[j];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(L,Z.key,Z)}}return function(L,D,j){return D&&K(L.prototype,D),j&&K(L,j),L}}();function y(K,L,D){return L in K?Object.defineProperty(K,L,{value:D,enumerable:!0,configurable:!0,writable:!0}):K[L]=D,K}function E(K,L){var D={};for(var j in K){if(L.indexOf(j)>=0)continue;if(!Object.prototype.hasOwnProperty.call(K,j))continue;D[j]=K[j]}return D}function c(K,L){if(!(K instanceof L))throw new TypeError("Cannot call a class as a function")}function C(K,L){if(!K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:K}function x(K,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);K.prototype=Object.create(L&&L.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(K,L):K.__proto__=L)}var M=function(L){return Object.keys(L).reduce(function(D,j){return(j.substr(0,5)==="data-"||j.substr(0,5)==="aria-"||j==="role")&&(D[j]=L[j]),D},{})},k=function(K){x(L,K);function L(){var D,j,Z,ie;c(this,L);for(var pe=arguments.length,Ee=Array(pe),De=0;De<pe;De++)Ee[De]=arguments[De];return ie=(j=(Z=C(this,(D=L.__proto__||Object.getPrototypeOf(L)).call.apply(D,[this].concat(Ee))),Z),Z.state={uid:o()},Z.reqs={},Z.onChange=function(q){var be=q.target.files;Z.uploadFiles(be),Z.reset()},Z.onClick=function(q){var be=Z.fileInput;if(!be)return;var ye=Z.props,le=ye.children,ue=ye.onClick;le&&le.type==="button"&&(be.parentNode.focus(),be.parentNode.querySelector("button").blur()),be.click(),ue&&ue(q)},Z.onKeyDown=function(q){q.key==="Enter"&&Z.onClick()},Z.onFileDrop=function(q){var be=Z.props.multiple;if(q.preventDefault(),q.type==="dragover")return;if(Z.props.directory)e(Array.prototype.slice.call(q.dataTransfer.items),Z.uploadFiles,function(le){return l(le,Z.props.accept)});else{var ye=Array.prototype.slice.call(q.dataTransfer.files).filter(function(le){return l(le,Z.props.accept)});be===!1&&(ye=ye.slice(0,1)),Z.uploadFiles(ye)}},Z.uploadFiles=function(q){var be=Array.prototype.slice.call(q);be.map(function(ye){return ye.uid=o(),ye}).forEach(function(ye){Z.upload(ye,be)})},Z.saveFileInput=function(q){Z.fileInput=q},j),C(Z,ie)}return b(L,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(j,Z){var ie=this,pe=this.props;if(!pe.beforeUpload)return setTimeout(function(){return ie.post(j)},0);var Ee=pe.beforeUpload(j,Z);Ee&&Ee.then?Ee.then(function(De){var q=Object.prototype.toString.call(De);return q==="[object File]"||q==="[object Blob]"?ie.post(De):ie.post(j)}).catch(function(De){console.log(De)}):Ee!==!1&&setTimeout(function(){return ie.post(j)},0);return}},{key:"post",value:function(j){var Z=this;if(!this._isMounted)return;var ie=this.props,pe=ie.onStart,Ee=ie.onProgress,De=ie.transformFile,q=De===void 0?function(be){return be}:De;new Promise(function(be){var ye=ie.action;return typeof ye=="function"&&(ye=ye(j)),be(ye)}).then(function(be){var ye=j.uid,le=ie.customRequest||f,ue=Promise.resolve(q(j)).then(function(ne){var xe=ie.data;return typeof xe=="function"&&(xe=xe(ne)),Promise.all([ne,xe])}).catch(function(ne){console.error(ne)});ue.then(function(ne){var xe=_(ne,2),$=xe[0],oe=xe[1],Le={action:be,filename:ie.name,data:oe,file:$,headers:ie.headers,withCredentials:ie.withCredentials,method:ie.method||"post",onProgress:Ee?function(te){Ee(te,j)}:null,onSuccess:function(Y,X){delete Z.reqs[ye],ie.onSuccess(Y,j,X)},onError:function(Y,X){delete Z.reqs[ye],ie.onError(Y,X,j)}};pe(j),Z.reqs[ye]=le(Le)})})}},{key:"reset",value:function(){this.setState({uid:o()})}},{key:"abort",value:function(j){var Z=this.reqs;if(j){var ie=j;j&&j.uid&&(ie=j.uid),Z[ie]&&Z[ie].abort&&Z[ie].abort(),delete Z[ie]}else Object.keys(Z).forEach(function(pe){Z[pe]&&Z[pe].abort&&Z[pe].abort(),delete Z[pe]})}},{key:"render",value:function(){var j,Z=this.props,ie=Z.component,pe=Z.prefixCls,Ee=Z.className,De=Z.disabled,q=Z.id,be=Z.style,ye=Z.multiple,le=Z.accept,ue=Z.children,ne=Z.directory,xe=Z.openFileDialogOnClick,$=Z.onMouseEnter,oe=Z.onMouseLeave,Le=E(Z,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),te=m()((j={},y(j,pe,!0),y(j,pe+"-disabled",De),y(j,Ee,Ee),j)),Y=De?{}:{onClick:xe?this.onClick:function(){},onKeyDown:xe?this.onKeyDown:function(){},onMouseEnter:$,onMouseLeave:oe,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return h.a.createElement(ie,i({},Y,{className:te,role:"button",style:be}),h.a.createElement("input",i({},M(Le),{id:q,type:"file",ref:this.saveFileInput,onClick:function(J){return J.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:le,directory:ne?"directory":null,webkitdirectory:ne?"webkitdirectory":null,multiple:ye,onChange:this.onChange})),ue)}}]),L}(w.Component),T=k,R=Object.assign||function(K){for(var L=1;L<arguments.length;L++){var D=arguments[L];for(var j in D)Object.prototype.hasOwnProperty.call(D,j)&&(K[j]=D[j])}return K},P=function(){function K(L,D){for(var j=0;j<D.length;j++){var Z=D[j];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(L,Z.key,Z)}}return function(L,D,j){return D&&K(L.prototype,D),j&&K(L,j),L}}();function B(K,L){if(!(K instanceof L))throw new TypeError("Cannot call a class as a function")}function W(K,L){if(!K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:K}function z(K,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);K.prototype=Object.create(L&&L.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(K,L):K.__proto__=L)}function H(){}var ee=function(K){z(L,K);function L(){var D,j,Z,ie;B(this,L);for(var pe=arguments.length,Ee=Array(pe),De=0;De<pe;De++)Ee[De]=arguments[De];return ie=(j=(Z=W(this,(D=L.__proto__||Object.getPrototypeOf(L)).call.apply(D,[this].concat(Ee))),Z),Z.saveUploader=function(q){Z.uploader=q},j),W(Z,ie)}return P(L,[{key:"abort",value:function(j){this.uploader.abort(j)}},{key:"render",value:function(){return h.a.createElement(T,R({},this.props,{ref:this.saveUploader}))}}]),L}(w.Component);ee.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:H,onError:H,onSuccess:H,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var G=ee,U=F.a=G},Gytx:function(S,F){S.exports=function(w,h,I,m){var g=I?I.call(m,w,h):void 0;if(g!==void 0)return!!g;if(w===h)return!0;if(typeof w!="object"||!w||typeof h!="object"||!h)return!1;var a=Object.keys(w),f=Object.keys(h);if(a.length!==f.length)return!1;for(var d=Object.prototype.hasOwnProperty.bind(h),u=0;u<a.length;u++){var o=a[u];if(!d(o))return!1;var r=w[o],l=h[o];if(g=I?I.call(m,r,l,o):void 0,g===!1||g===void 0&&r!==l)return!1}return!0}},H4Hw:function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAUFJREFUWEftWE1KxDAYzUsrRYqgOHtxIbgVPYJziB6g9AiewSOUFrprL+ERvIELca/MYihSbPMk4MAgDkkH2omQLtLF9/fy+sqXfBA/D0k0TXPedd1iGIZjknJjm+INQAVB8BlF0XuSJB8AqOtAL3meHwG4BHAyRXFTTpJrkq9Zln1BM1MUxdWhwGx9oXWapi+o63rRtu2FaRdz2OM4fkNVVdd938dzFDTVCMOwRVmWN1ML2ARkY9dC1/q5tQ2Yw88DMrH8fxkieU/yQQhxZtrlL/sKwCOAJ5s4a4aUUjrhqU3SP3xWUsqlTewYQM82CXf5SCnvbOI9IBNLniHPkP/LTBrwDHmGdjHgXHMVQiyVUvr4MbbjT3P82Fc7Y+Ose9nYxPv6e0Am5ty7KDp3lXZu2ODcOEaLzKmB1dbAyImR3jebF/Oh3a3UogAAAABJRU5ErkJggg=="},H65k:function(S,F,v){},HmJG:function(S,F,v){},HpTS:function(S,F,v){S.exports=v.p+"static/small_program.f74069ec.png"},I8Z2:function(S,F,v){"use strict";v.d(F,"a",function(){return m}),v.d(F,"b",function(){return n}),v.d(F,"c",function(){return e});var w=v("cDcd"),h=function(){var i=function(_,b){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var c in E)E.hasOwnProperty(c)&&(y[c]=E[c])},i(_,b)};return function(_,b){i(_,b);function y(){this.constructor=_}_.prototype=b===null?Object.create(b):(y.prototype=b.prototype,new y)}}(),I=w.createContext(null),m=function(i){h(_,i);function _(){return i!==null&&i.apply(this,arguments)||this}return _.prototype.render=function(){return w.createElement(I.Provider,{value:this.props.store},this.props.children)},_}(w.Component),g=v("Gytx"),a=v.n(g),f=v("2mql"),d=v.n(f),u=function(){var i=function(_,b){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var c in E)E.hasOwnProperty(c)&&(y[c]=E[c])},i(_,b)};return function(_,b){i(_,b);function y(){this.constructor=_}_.prototype=b===null?Object.create(b):(y.prototype=b.prototype,new y)}}(),o=function(){return o=Object.assign||function(i){for(var _,b=1,y=arguments.length;b<y;b++){_=arguments[b];for(var E in _)Object.prototype.hasOwnProperty.call(_,E)&&(i[E]=_[E])}return i},o.apply(this,arguments)};function r(i){return i.displayName||i.name||"Component"}var l=function(){return{}};function n(i,_){_===void 0&&(_={});var b=!!i,y=i||l;return function(c){var C=function(M){u(k,M);function k(T,R){var P=M.call(this,T,R)||this;return P.unsubscribe=null,P.handleChange=function(){if(!P.unsubscribe)return;var B=y(P.store.getState(),P.props);P.setState({subscribed:B})},P.store=P.context,P.state={subscribed:y(P.store.getState(),T),store:P.store,props:T},P}return k.getDerivedStateFromProps=function(T,R){return i&&i.length===2&&T!==R.props?{subscribed:y(R.store.getState(),T),props:T}:{props:T}},k.prototype.componentDidMount=function(){this.trySubscribe()},k.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},k.prototype.shouldComponentUpdate=function(T,R){return!a()(this.props,T)||!a()(this.state.subscribed,R.subscribed)},k.prototype.trySubscribe=function(){b&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},k.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},k.prototype.render=function(){var T=o(o(o({},this.props),this.state.subscribed),{store:this.store});return w.createElement(c,o({},T,{ref:this.props.miniStoreForwardedRef}))},k.displayName="Connect("+r(c)+")",k.contextType=I,k}(w.Component);if(_.forwardRef){var x=w.forwardRef(function(M,k){return w.createElement(C,o({},M,{miniStoreForwardedRef:k}))});return d()(x,c)}return d()(C,c)}}var s=function(){return s=Object.assign||function(i){for(var _,b=1,y=arguments.length;b<y;b++){_=arguments[b];for(var E in _)Object.prototype.hasOwnProperty.call(_,E)&&(i[E]=_[E])}return i},s.apply(this,arguments)};function e(i){var _=i,b=[];function y(C){_=s(s({},_),C);for(var x=0;x<b.length;x++)b[x]()}function E(){return _}function c(C){return b.push(C),function(){var M=b.indexOf(C);b.splice(M,1)}}return{setState:y,getState:E,subscribe:c}}},IBYe:function(S,F,v){"use strict";function w(h){return null}F.a=w},IWh4:function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAACgCAYAAAB+HS7YAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjczMUZFNjhCMDE3NzExRUJCOEU5RDg5RTZBOTI5QTU3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjczMUZFNjhDMDE3NzExRUJCOEU5RDg5RTZBOTI5QTU3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NzMxRkU2ODkwMTc3MTFFQkI4RTlEODlFNkE5MjlBNTciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzMxRkU2OEEwMTc3MTFFQkI4RTlEODlFNkE5MjlBNTciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7zBaLcAAACAElEQVR42uzdzyvDcRzH8ffsZiVc/IjbkOTuShN/gXIgYi5y2AlpFBL/AAdLiXBgBwfUxplmyU2tRK4sTey0+H6+RbKD7Gtfb/V817t963t59Nnn9f58+7aap6LO/yq6KmN13OoJq1MehcD3erS6rUT0VrnVC5qBpgLagWXagQIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAABUCD6Lbkr5L2W2uv9bS3LR4vd6iAb/9BaaBfa7K+oa8+0exEwmOheT5+UXnV9zd2SEHeztSU12ldw+2tjRLbH/X/lQbktqaansluwLtelPs85XKZmRFggN9eseMSbVJ9+Js2HHCizoHRwb7ZWN12V5VtYPaacJdOUmcJNy1o67QhLt6FheScNcfFkyqmxr9eoGHsWMZD8/qBCYvLmV4NCS5XE4f8PrmVnoHRySbzeoLyf1DWnr6huxPdWPGrJhZObOC6ga12Wtmz5m9p/Kom5yZt1Or8mFhbWNLIuubOh+3fjrrXAUWMutcAxY661wBOpl1RQc6nXVFBf7GrHMEPEskP65PE+d5901anc46R68+/rp4/QYQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAP8dMKMdGNcMNH9eMaUR+GR11Oo2q6/eBBgA/5+hicfO9/sAAAAASUVORK5CYII="},IZBM:function(S,F,v){"use strict";v.d(F,"n",function(){return o}),v.d(F,"o",function(){return r}),v.d(F,"k",function(){return l}),v.d(F,"H",function(){return n}),v.d(F,"j",function(){return s}),v.d(F,"L",function(){return e}),v.d(F,"G",function(){return i}),v.d(F,"B",function(){return _}),v.d(F,"D",function(){return b}),v.d(F,"g",function(){return y}),v.d(F,"s",function(){return E}),v.d(F,"i",function(){return c}),v.d(F,"l",function(){return C}),v.d(F,"z",function(){return k}),v.d(F,"m",function(){return T}),v.d(F,"x",function(){return R}),v.d(F,"y",function(){return P}),v.d(F,"e",function(){return B}),v.d(F,"E",function(){return W}),v.d(F,"F",function(){return z}),v.d(F,"C",function(){return H}),v.d(F,"K",function(){return ee}),v.d(F,"p",function(){return G}),v.d(F,"q",function(){return U}),v.d(F,"r",function(){return K}),v.d(F,"u",function(){return L}),v.d(F,"I",function(){return D}),v.d(F,"c",function(){return j}),v.d(F,"d",function(){return Z}),v.d(F,"a",function(){return ie}),v.d(F,"t",function(){return pe}),v.d(F,"f",function(){return Ee}),v.d(F,"A",function(){return De}),v.d(F,"v",function(){return q}),v.d(F,"J",function(){return be}),v.d(F,"b",function(){return ye}),v.d(F,"h",function(){return ue}),v.d(F,"w",function(){return xe});var w=v("9og8"),h=v("k1fw"),I=v("WmNS"),m=v.n(I),g=v("ErOA"),a=v("1vsH"),f,d,u=(f=Object(a.p)())!==null&&f!==void 0&&f.homework_common_id?{homework_common_id:(d=Object(a.p)())===null||d===void 0?void 0:d.homework_common_id}:{};function o(te){return Object(g.c)("tasks/".concat(te,".json"),u)}function r(te){return Object(g.c)("myshixuns/".concat(te,"/challenges.json"))}function l(te,Y){return Object(g.c)("myshixuns/".concat(te,"/subject_challenges.json"),Y)}function n(te,Y,X){return Object(g.c)("tasks/".concat(te,"/star.json?shixun_id=").concat(Y,"&star=").concat(X))}function s(te,Y){return Object(g.c)("tasks/".concat(te,"/rep_content.json"),Object(h.a)(Object(h.a)({},Y),u))}function e(te,Y){return Object(g.f)("myshixuns/".concat(te,"/update_file.json"),Y)}function i(te,Y){return Object(g.c)("tasks/".concat(te,"/reset_original_code.json"),Object(h.a)(Object(h.a)({},Y),u))}function _(te,Y){return Object(g.f)("myshixuns/".concat(te,"/reset_repository.json"),Y)}function b(te,Y){return Object(g.c)("tasks/".concat(te,"/reset_passed_code.json"),Object(h.a)(Object(h.a)({},Y),u))}function y(te,Y){return Object(g.f)("tasks/".concat(te,"/game_build.json"),Object(h.a)(Object(h.a)({},Y),u))}function E(te,Y){return Object(g.c)("tasks/".concat(te,"/game_status.json"),Object(h.a)(Object(h.a)({},Y),u))}function c(te,Y){return Object(g.f)("tasks/".concat(te,"/choose_build.json"),Object(h.a)(Object(h.a)({},Y),u))}function C(te){return Object(g.c)("tasks/".concat(te,"/picture_display.json"),u)}function x(te,Y){return Object(g.c)("tasks/".concat(te,"/cost_time.json"),Object(h.a)(Object(h.a)({},Y),u))}function M(te,Y){return Object(g.c)("courses/".concat(te,"/inform_detail.json"),Y)}function k(te){return Object(g.f)("tasks/".concat(te,"/plus_or_cancel_praise.json"))}function T(te){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object(g.f)("myshixuns/".concat(te,"/repository.json"),Y)}function R(te,Y){return Object(g.c)("myshixuns/".concat(te,"/start.json"),Y||{})}function P(te,Y){return Object(g.c)("myshixuns/".concat(te,"/start.json"),Y||{})}function B(te){return Object(g.c)("myshixuns/".concat(te,"/reset_pod.json"))}function W(te){return Object(g.c)("myshixuns/".concat(te.myshixunId,"/reset_pod.json"),{game_id:te.game_id})}function z(te){return Object(g.c)("myshixuns/".concat(te.myshixunId,"/reset_pod.json"),{game_id:te.game_id})}function H(te){var Y=te.myshixunId;return delete te.myshixunId,Object(g.c)("myshixuns/".concat(Y,"/reset_pod.json"),Object(h.a)({game_id:te.game_id},te))}function ee(te){return Object(g.c)("tasks/".concat(te,"/check_test_sets.json"))}function G(te){return Object(g.c)("tasks/".concat(te,"/get_answer_info.json"))}function U(te){return Object(g.c)("tasks/".concat(te,"/get_choose_answer.json"))}function K(te){return Object(g.c)("tasks/".concat(te,"/unlock_choose_answer.json"))}function L(te,Y){return Object(g.c)("tasks/".concat(te,"/unlock_answer.json?answer_id=").concat(Y))}function D(te,Y,X){return Object(g.f)("tasks/".concat(te,"/set_games_status.json"),{result:Y,data:X})}function j(te,Y){return Object(g.c)("myshixuns/".concat(te,"/active_pod.json?game_id=").concat(Y))}function Z(te,Y){return Object(g.a)("/api/myshixuns/".concat(te,"/active_pod.json"),{method:"get",params:{template_id:window.sessionStorage.imageId||"",game_id:Y}})}function ie(te,Y){return Object(g.c)("myshixuns/".concat(te,"/active_pod.json?game_id=").concat(Y))}function pe(te,Y){return Object(g.c)("tasks/".concat(te,"/rank_list.json"),Y)}function Ee(te,Y){return Object(g.f)("tasks/".concat(te,"/close_windows_vnc.json"),{tpi_id:Y})}function De(te){return Object(g.c)("tasks/".concat(te,"/pull_files.json"))}function q(te,Y){return Object(g.f)("tasks/".concat(te,"/log_output"),Y)}function be(te){return Object(g.c)("tasks/".concat(te,"/stop_log_output.json"))}function ye(te){return le.apply(this,arguments)}function le(){return le=Object(w.a)(m.a.mark(function te(Y){return m.a.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.abrupt("return",Object(g.a)("/api/myshixuns/".concat(Y.id,"/add_file.json"),{method:"post",body:Y}));case 1:case"end":return J.stop()}},te)})),le.apply(this,arguments)}function ue(te){return ne.apply(this,arguments)}function ne(){return ne=Object(w.a)(m.a.mark(function te(Y){return m.a.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.abrupt("return",Object(g.a)("/api/myshixuns/".concat(Y.id,"/delete_git_file.json"),{method:"Delete",body:Y}));case 1:case"end":return J.stop()}},te)})),ne.apply(this,arguments)}function xe(te){return $.apply(this,arguments)}function $(){return $=Object(w.a)(m.a.mark(function te(Y){return m.a.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.abrupt("return",Object(g.a)("/api/myshixuns/".concat(Y.id,"/mv_file.json"),{method:"post",body:Y}));case 1:case"end":return J.stop()}},te)})),$.apply(this,arguments)}function oe(te){return Le.apply(this,arguments)}function Le(){return Le=Object(w.a)(m.a.mark(function te(Y){return m.a.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.abrupt("return",Object(g.a)("/api/tasks/".concat(Y.id,"/rep_content.json"),{method:"get",params:Y}));case 1:case"end":return J.stop()}},te)})),Le.apply(this,arguments)}},Ib8C:function(S,F,v){(function(w){(function(h,I){S.exports=F=I()})(this,function(){var h=h||function(I,m){var g;if(typeof window!="undefined"&&window.crypto&&(g=window.crypto),typeof self!="undefined"&&self.crypto&&(g=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(g=globalThis.crypto),!g&&typeof window!="undefined"&&window.msCrypto&&(g=window.msCrypto),!g&&typeof w!="undefined"&&w.crypto&&(g=w.crypto),!g&&!0)try{g=v(4)}catch(y){}var a=function(){if(g){if(typeof g.getRandomValues=="function")try{return g.getRandomValues(new Uint32Array(1))[0]}catch(y){}if(typeof g.randomBytes=="function")try{return g.randomBytes(4).readInt32LE()}catch(y){}}throw new Error("Native crypto module could not be used to get secure random number.")},f=Object.create||function(){function y(){}return function(E){var c;return y.prototype=E,c=new y,y.prototype=null,c}}(),d={},u=d.lib={},o=u.Base=function(){return{extend:function(y){var E=f(this);return y&&E.mixIn(y),(!E.hasOwnProperty("init")||this.init===E.init)&&(E.init=function(){E.$super.init.apply(this,arguments)}),E.init.prototype=E,E.$super=this,E},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var E in y)y.hasOwnProperty(E)&&(this[E]=y[E]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),r=u.WordArray=o.extend({init:function(y,E){y=this.words=y||[],E!=m?this.sigBytes=E:this.sigBytes=y.length*4},toString:function(y){return(y||n).stringify(this)},concat:function(y){var E=this.words,c=y.words,C=this.sigBytes,x=y.sigBytes;if(this.clamp(),C%4)for(var M=0;M<x;M++){var k=c[M>>>2]>>>24-M%4*8&255;E[C+M>>>2]|=k<<24-(C+M)%4*8}else for(var T=0;T<x;T+=4)E[C+T>>>2]=c[T>>>2];return this.sigBytes+=x,this},clamp:function(){var y=this.words,E=this.sigBytes;y[E>>>2]&=4294967295<<32-E%4*8,y.length=I.ceil(E/4)},clone:function(){var y=o.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var E=[],c=0;c<y;c+=4)E.push(a());return new r.init(E,y)}}),l=d.enc={},n=l.Hex={stringify:function(y){for(var E=y.words,c=y.sigBytes,C=[],x=0;x<c;x++){var M=E[x>>>2]>>>24-x%4*8&255;C.push((M>>>4).toString(16)),C.push((M&15).toString(16))}return C.join("")},parse:function(y){for(var E=y.length,c=[],C=0;C<E;C+=2)c[C>>>3]|=parseInt(y.substr(C,2),16)<<24-C%8*4;return new r.init(c,E/2)}},s=l.Latin1={stringify:function(y){for(var E=y.words,c=y.sigBytes,C=[],x=0;x<c;x++){var M=E[x>>>2]>>>24-x%4*8&255;C.push(String.fromCharCode(M))}return C.join("")},parse:function(y){for(var E=y.length,c=[],C=0;C<E;C++)c[C>>>2]|=(y.charCodeAt(C)&255)<<24-C%4*8;return new r.init(c,E)}},e=l.Utf8={stringify:function(y){try{return decodeURIComponent(escape(s.stringify(y)))}catch(E){throw new Error("Malformed UTF-8 data")}},parse:function(y){return s.parse(unescape(encodeURIComponent(y)))}},i=u.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=e.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var E,c=this._data,C=c.words,x=c.sigBytes,M=this.blockSize,k=M*4,T=x/k;y?T=I.ceil(T):T=I.max((T|0)-this._minBufferSize,0);var R=T*M,P=I.min(R*4,x);if(R){for(var B=0;B<R;B+=M)this._doProcessBlock(C,B);E=C.splice(0,R),c.sigBytes-=P}return new r.init(E,P)},clone:function(){var y=o.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0}),_=u.Hasher=i.extend({cfg:o.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){i.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var E=this._doFinalize();return E},blockSize:512/32,_createHelper:function(y){return function(E,c){return new y.init(c).finalize(E)}},_createHmacHelper:function(y){return function(E,c){return new b.HMAC.init(y,c).finalize(E)}}}),b=d.algo={};return d}(Math);return h})}).call(this,v("IyRk"))},ItS6:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var w=v("eP3c"),h=I(v("1q3G"));function I(d){return d&&d.__esModule?d:{default:d}}function m(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function g(d,u){for(var o=0;o<u.length;o++){var r=u[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(d,r.key,r)}}function a(d,u,o){return u&&g(d.prototype,u),o&&g(d,o),d}var f=function(){function d(){m(this,d),this.strm=new h.default,this.chunkSize=1024*10*10,this.strm.output=new Uint8Array(this.chunkSize),this.windowBits=5,(0,w.inflateInit)(this.strm,this.windowBits)}return a(d,[{key:"setInput",value:function(o){o?(this.strm.input=o,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0):(this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0)}},{key:"inflate",value:function(o){o>this.chunkSize&&(this.chunkSize=o,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=o;var r=(0,w.inflate)(this.strm,0);if(r<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=o)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}},{key:"reset",value:function(){(0,w.inflateReset)(this.strm)}}]),d}();F.default=f},IxHN:function(S,F,v){"use strict";var w=v("cDcd"),h=v.n(w),I=v("07cG"),m=v.n(I);F.a=function(g){var a=g.message,f=g.className,d=g.children,u=g.style,o=u===void 0?{}:u;return h.a.createElement("div",{className:"".concat(m.a.idsRingWrapper," ").concat(f)},h.a.createElement("div",{className:m.a.ldsRing},h.a.createElement("div",null),h.a.createElement("div",null),h.a.createElement("div",null),h.a.createElement("div",null)),a?h.a.createElement("p",{style:o},a):null,d)}},J66h:function(S,F,v){(function(w){var h,I;(function(m,g){S.exports=g(m)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof w!="undefined"?w:this,function(m){"use strict";m=m||{};var g=m.Base64,a="2.6.4",f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=function(H){for(var ee={},G=0,U=H.length;G<U;G++)ee[H.charAt(G)]=G;return ee}(f),u=String.fromCharCode,o=function(H){if(H.length<2){var ee=H.charCodeAt(0);return ee<128?H:ee<2048?u(192|ee>>>6)+u(128|ee&63):u(224|ee>>>12&15)+u(128|ee>>>6&63)+u(128|ee&63)}else{var ee=65536+(H.charCodeAt(0)-55296)*1024+(H.charCodeAt(1)-56320);return u(240|ee>>>18&7)+u(128|ee>>>12&63)+u(128|ee>>>6&63)+u(128|ee&63)}},r=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,l=function(H){return H.replace(r,o)},n=function(H){var ee=[0,2,1][H.length%3],G=H.charCodeAt(0)<<16|(H.length>1?H.charCodeAt(1):0)<<8|(H.length>2?H.charCodeAt(2):0),U=[f.charAt(G>>>18),f.charAt(G>>>12&63),ee>=2?"=":f.charAt(G>>>6&63),ee>=1?"=":f.charAt(G&63)];return U.join("")},s=m.btoa&&typeof m.btoa=="function"?function(H){return m.btoa(H)}:function(H){if(H.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return H.replace(/[\s\S]{1,3}/g,n)},e=function(H){return s(l(String(H)))},i=function(H){return H.replace(/[+\/]/g,function(ee){return ee=="+"?"-":"_"}).replace(/=/g,"")},_=function(H,ee){return ee?i(e(H)):e(H)},b=function(H){return _(H,!0)},y;m.Uint8Array&&(y=function(H,ee){for(var G="",U=0,K=H.length;U<K;U+=3){var L=H[U],D=H[U+1],j=H[U+2],Z=L<<16|D<<8|j;G+=f.charAt(Z>>>18)+f.charAt(Z>>>12&63)+(typeof D!="undefined"?f.charAt(Z>>>6&63):"=")+(typeof j!="undefined"?f.charAt(Z&63):"=")}return ee?i(G):G});var E=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,c=function(H){switch(H.length){case 4:var ee=(7&H.charCodeAt(0))<<18|(63&H.charCodeAt(1))<<12|(63&H.charCodeAt(2))<<6|63&H.charCodeAt(3),G=ee-65536;return u((G>>>10)+55296)+u((G&1023)+56320);case 3:return u((15&H.charCodeAt(0))<<12|(63&H.charCodeAt(1))<<6|63&H.charCodeAt(2));default:return u((31&H.charCodeAt(0))<<6|63&H.charCodeAt(1))}},C=function(H){return H.replace(E,c)},x=function(H){var ee=H.length,G=ee%4,U=(ee>0?d[H.charAt(0)]<<18:0)|(ee>1?d[H.charAt(1)]<<12:0)|(ee>2?d[H.charAt(2)]<<6:0)|(ee>3?d[H.charAt(3)]:0),K=[u(U>>>16),u(U>>>8&255),u(U&255)];return K.length-=[0,0,2,1][G],K.join("")},M=m.atob&&typeof m.atob=="function"?function(H){return m.atob(H)}:function(H){return H.replace(/\S{1,4}/g,x)},k=function(H){return M(String(H).replace(/[^A-Za-z0-9\+\/]/g,""))},T=function(H){return C(M(H))},R=function(H){return String(H).replace(/[-_]/g,function(ee){return ee=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},P=function(H){return T(R(H))},B;m.Uint8Array&&(B=function(H){return Uint8Array.from(k(R(H)),function(ee){return ee.charCodeAt(0)})});var W=function(){var H=m.Base64;return m.Base64=g,H};if(m.Base64={VERSION:a,atob:k,btoa:s,fromBase64:P,toBase64:_,utob:l,encode:_,encodeURI:b,btou:C,decode:P,noConflict:W,fromUint8Array:y,toUint8Array:B},typeof Object.defineProperty=="function"){var z=function(H){return{value:H,enumerable:!1,writable:!0,configurable:!0}};m.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",z(function(){return P(this)})),Object.defineProperty(String.prototype,"toBase64",z(function(H){return _(this,H)})),Object.defineProperty(String.prototype,"toBase64URI",z(function(){return _(this,!0)}))}}return m.Meteor&&(Base64=m.Base64),S.exports?S.exports.Base64=m.Base64:!(h=[],I=function(){return m.Base64}.apply(F,h),I!==void 0&&(S.exports=I)),{Base64:m.Base64}})}).call(this,v("IyRk"))},JSwD:function(S,F,v){"use strict";function w(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(b){return typeof b}:w=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},w(i)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=e;var h=m(v("6BzB"));function I(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return I=function(){return i},i}function m(i){if(i&&i.__esModule)return i;if(i===null||w(i)!=="object"&&typeof i!="function")return{default:i};var _=I();if(_&&_.has(i))return _.get(i);var b={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in i)if(Object.prototype.hasOwnProperty.call(i,E)){var c=y?Object.getOwnPropertyDescriptor(i,E):null;c&&(c.get||c.set)?Object.defineProperty(b,E,c):b[E]=i[E]}return b.default=i,_&&_.set(i,b),b}var g=15,a=852,f=592,d=0,u=1,o=2,r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],l=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],n=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function e(i,_,b,y,E,c,C,x){var M=x.bits,k=0,T=0,R=0,P=0,B=0,W=0,z=0,H=0,ee=0,G=0,U,K,L,D,j,Z=null,ie=0,pe,Ee=new h.Buf16(g+1),De=new h.Buf16(g+1),q=null,be=0,ye,le,ue;for(k=0;k<=g;k++)Ee[k]=0;for(T=0;T<y;T++)Ee[_[b+T]]++;for(B=M,P=g;P>=1&&!(Ee[P]!==0);P--);if(B>P&&(B=P),P===0)return E[c++]=1<<24|64<<16|0,E[c++]=1<<24|64<<16|0,x.bits=1,0;for(R=1;R<P&&!(Ee[R]!==0);R++);for(B<R&&(B=R),H=1,k=1;k<=g;k++)if(H<<=1,H-=Ee[k],H<0)return-1;if(H>0&&(i===d||P!==1))return-1;for(De[1]=0,k=1;k<g;k++)De[k+1]=De[k]+Ee[k];for(T=0;T<y;T++)_[b+T]!==0&&(C[De[_[b+T]]++]=T);if(i===d?(Z=q=C,pe=19):i===u?(Z=r,ie-=257,q=l,be-=257,pe=256):(Z=n,q=s,pe=-1),G=0,T=0,k=R,j=c,W=B,z=0,L=-1,ee=1<<B,D=ee-1,i===u&&ee>a||i===o&&ee>f)return 1;for(;;){ye=k-z,C[T]<pe?(le=0,ue=C[T]):C[T]>pe?(le=q[be+C[T]],ue=Z[ie+C[T]]):(le=32+64,ue=0),U=1<<k-z,K=1<<W,R=K;do K-=U,E[j+(G>>z)+K]=ye<<24|le<<16|ue|0;while(K!==0);for(U=1<<k-1;G&U;)U>>=1;if(U!==0?(G&=U-1,G+=U):G=0,T++,--Ee[k]===0){if(k===P)break;k=_[b+C[T]]}if(k>B&&(G&D)!==L){for(z===0&&(z=B),j+=R,W=k-z,H=1<<W;W+z<P&&!(H-=Ee[W+z],H<=0);)W++,H<<=1;if(ee+=1<<W,i===u&&ee>a||i===o&&ee>f)return 1;L=G&D,E[L]=B<<24|W<<16|j-c|0}}return G!==0&&(E[j+G]=k-z<<24|64<<16|0),x.bits=B,0}},JWDV:function(S,F,v){S.exports=v.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(S,F){S.exports="data:image/png;base64,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"},Jq4h:function(S,F,v){S.exports=v.p+"static/qrcode.2267e4d5.png"},K3mO:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("3y9D"),v("WYAk"))})(this,function(w){return function(){var h=w,I=h.lib,m=I.Base,g=I.WordArray,a=h.algo,f=a.MD5,d=a.EvpKDF=m.extend({cfg:m.extend({keySize:128/32,hasher:f,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,o){for(var r,l=this.cfg,n=l.hasher.create(),s=g.create(),e=s.words,i=l.keySize,_=l.iterations;e.length<i;){r&&n.update(r),r=n.update(u).finalize(o),n.reset();for(var b=1;b<_;b++)r=n.finalize(r),n.reset();s.concat(r)}return s.sigBytes=i*4,s}});h.EvpKDF=function(u,o,r){return d.create(r).compute(u,o)}}(),w.EvpKDF})},KJ0q:function(S,F,v){},KVXO:function(S,F,v){S.exports={wrap:"wrap___1VfLE",content:"content___20B4M",mainPathWrap:"mainPathWrap___3qDeg",colorBlue:"colorBlue___2ZjUq"}},KmYQ:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("OLod"))})(this,function(w){return w.pad.ZeroPadding={pad:function(h,I){var m=I*4;h.clamp(),h.sigBytes+=m-(h.sigBytes%m||m)},unpad:function(h){for(var I=h.words,m=h.sigBytes-1,m=h.sigBytes-1;m>=0;m--)if(I[m>>>2]>>>24-m%4*8&255){h.sigBytes=m+1;break}}},w.pad.ZeroPadding})},LCi9:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;function w(E,c){if(!(E instanceof c))throw new TypeError("Cannot call a class as a function")}function h(E,c){for(var C=0;C<c.length;C++){var x=c[C];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(E,x.key,x)}}function I(E,c,C){return c&&h(E.prototype,c),C&&h(E,C),E}var m=0,g=1,a=2,f=4,d=8,u=16,o=32,r=64,l=127,n=50,s=90,e=250,i=1e3,_=1e3,b=50,y=function(){function E(){w(this,E),this._target=null,this._state=l,this._tracked=[],this._ignored=[],this._waitingRelease=!1,this._releaseStart=0,this._longpressTimeoutId=null,this._twoTouchTimeoutId=null,this._boundEventHandler=this._eventHandler.bind(this)}return I(E,[{key:"attach",value:function(C){this.detach(),this._target=C,this._target.addEventListener("touchstart",this._boundEventHandler),this._target.addEventListener("touchmove",this._boundEventHandler),this._target.addEventListener("touchend",this._boundEventHandler),this._target.addEventListener("touchcancel",this._boundEventHandler)}},{key:"detach",value:function(){if(!this._target)return;this._stopLongpressTimeout(),this._stopTwoTouchTimeout(),this._target.removeEventListener("touchstart",this._boundEventHandler),this._target.removeEventListener("touchmove",this._boundEventHandler),this._target.removeEventListener("touchend",this._boundEventHandler),this._target.removeEventListener("touchcancel",this._boundEventHandler),this._target=null}},{key:"_eventHandler",value:function(C){var x;C.stopPropagation(),C.preventDefault();switch(C.type){case"touchstart":x=this._touchStart;break;case"touchmove":x=this._touchMove;break;case"touchend":case"touchcancel":x=this._touchEnd;break}for(var M=0;M<C.changedTouches.length;M++){var k=C.changedTouches[M];x.call(this,k.identifier,k.clientX,k.clientY)}}},{key:"_touchStart",value:function(C,x,M){if(this._hasDetectedGesture()||this._state===m){this._ignored.push(C);return}if(this._tracked.length>0&&Date.now()-this._tracked[0].started>e){this._state=m,this._ignored.push(C);return}if(this._waitingRelease){this._state=m,this._ignored.push(C);return}this._tracked.push({id:C,started:Date.now(),active:!0,firstX:x,firstY:M,lastX:x,lastY:M,angle:0});switch(this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(g|d|u),this._stopLongpressTimeout();break;case 3:this._state&=~(a|o|r);break;default:this._state=m}}},{key:"_touchMove",value:function(C,x,M){var k=this._tracked.find(function(z){return z.id===C});if(k===void 0)return;k.lastX=x,k.lastY=M;var T=x-k.firstX,R=M-k.firstY;if((k.firstX!==k.lastX||k.firstY!==k.lastY)&&(k.angle=Math.atan2(R,T)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(T,R)<n)return;if(this._state&=~(g|a|f|u),this._stopLongpressTimeout(),this._tracked.length!==1&&(this._state&=~d),this._tracked.length!==2&&(this._state&=~(o|r)),this._tracked.length===2){var P=this._tracked.find(function(z){return z.id!==C}),B=Math.hypot(P.firstX-P.lastX,P.firstY-P.lastY);if(B>n){var W=Math.abs(k.angle-P.angle);W=Math.abs((W+180)%360-180),W>s?this._state&=~o:this._state&=~r,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}},{key:"_touchEnd",value:function(C,x,M){if(this._ignored.indexOf(C)!==-1){this._ignored.splice(this._ignored.indexOf(C),1),this._ignored.length===0&&this._tracked.length===0&&(this._state=l,this._waitingRelease=!1);return}if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=m),!this._hasDetectedGesture()&&(this._state&=~(d|o|r),this._state&=~u,this._stopLongpressTimeout(),!this._waitingRelease)){this._releaseStart=Date.now(),this._waitingRelease=!0;switch(this._tracked.length){case 1:this._state&=~(a|f);break;case 2:this._state&=~(g|f);break}}if(this._waitingRelease){Date.now()-this._releaseStart>e&&(this._state=m),this._tracked.some(function(R){return Date.now()-R.started>i})&&(this._state=m);var k=this._tracked.find(function(R){return R.id===C});if(k.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==m)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var T=0;T<this._tracked.length;T++)this._tracked[T].active&&this._ignored.push(this._tracked[T].id);this._tracked=[],this._state=m,this._ignored.indexOf(C)!==-1&&this._ignored.splice(this._ignored.indexOf(C),1),this._ignored.length===0&&(this._state=l,this._waitingRelease=!1)}},{key:"_hasDetectedGesture",value:function(){return this._state===m||this._state&this._state-1?!1:!(this._state&(g|a|f)&&this._tracked.some(function(C){return C.active}))}},{key:"_startLongpressTimeout",value:function(){var C=this;this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout(function(){return C._longpressTimeout()},_)}},{key:"_stopLongpressTimeout",value:function(){clearTimeout(this._longpressTimeoutId),this._longpressTimeoutId=null}},{key:"_longpressTimeout",value:function(){if(this._hasDetectedGesture())throw new Error("A longpress gesture failed, conflict with a different gesture");this._state=u,this._pushEvent("gesturestart")}},{key:"_startTwoTouchTimeout",value:function(){var C=this;this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout(function(){return C._twoTouchTimeout()},b)}},{key:"_stopTwoTouchTimeout",value:function(){clearTimeout(this._twoTouchTimeoutId),this._twoTouchTimeoutId=null}},{key:"_isTwoTouchTimeoutRunning",value:function(){return this._twoTouchTimeoutId!==null}},{key:"_twoTouchTimeout",value:function(){if(this._tracked.length===0)throw new Error("A pinch or two drag gesture failed, no tracked touches");var C=this._getAverageMovement(),x=Math.abs(C.x),M=Math.abs(C.y),k=this._getAverageDistance(),T=Math.abs(Math.hypot(k.first.x,k.first.y)-Math.hypot(k.last.x,k.last.y));M<T&&x<T?this._state=r:this._state=o,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}},{key:"_pushEvent",value:function(C){var x={type:this._stateToGesture(this._state)},M=this._getPosition(),k=M.last;C==="gesturestart"&&(k=M.first);switch(this._state){case o:case r:k=M.first;break}if(x.clientX=k.x,x.clientY=k.y,this._state===r){var T=this._getAverageDistance();C==="gesturestart"?(x.magnitudeX=T.first.x,x.magnitudeY=T.first.y):(x.magnitudeX=T.last.x,x.magnitudeY=T.last.y)}else if(this._state===o)if(C==="gesturestart")x.magnitudeX=0,x.magnitudeY=0;else{var R=this._getAverageMovement();x.magnitudeX=R.x,x.magnitudeY=R.y}var P=new CustomEvent(C,{detail:x});this._target.dispatchEvent(P)}},{key:"_stateToGesture",value:function(C){switch(C){case g:return"onetap";case a:return"twotap";case f:return"threetap";case d:return"drag";case u:return"longpress";case o:return"twodrag";case r:return"pinch"}throw new Error("Unknown gesture state: "+C)}},{key:"_getPosition",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture position, no tracked touches");for(var C=this._tracked.length,x=0,M=0,k=0,T=0,R=0;R<this._tracked.length;R++)x+=this._tracked[R].firstX,M+=this._tracked[R].firstY,k+=this._tracked[R].lastX,T+=this._tracked[R].lastY;return{first:{x:x/C,y:M/C},last:{x:k/C,y:T/C}}}},{key:"_getAverageMovement",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture movement, no tracked touches");var C,x;C=x=0;for(var M=this._tracked.length,k=0;k<this._tracked.length;k++)C+=this._tracked[k].lastX-this._tracked[k].firstX,x+=this._tracked[k].lastY-this._tracked[k].firstY;return{x:C/M,y:x/M}}},{key:"_getAverageDistance",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture distance, no tracked touches");var C=this._tracked[0],x=this._tracked[this._tracked.length-1],M=Math.abs(x.firstX-C.firstX),k=Math.abs(x.firstY-C.firstY),T=Math.abs(x.lastX-C.lastX),R=Math.abs(x.lastY-C.lastY);return{first:{x:M,y:k},last:{x:T,y:R}}}}]),E}();F.default=y},LYID:function(S,F,v){S.exports=v.p+"static/failer.5e83e9b8.svg"},LdHM:function(S,F,v){"use strict";v.d(F,"b",function(){return E}),v.d(F,"a",function(){return C});var w=v("1OyB"),h=v("vuIU"),I=v("Ji7U"),m=v("LK+K"),g=v("cDcd"),a=v("rePB"),f=v("Ff2n"),d=v("ODXe"),u=v("4IlW"),o=v("bX4T"),r=v("YrtM"),l=v("TSYQ"),n=v.n(l),s=v("+nKL"),e=v("8OUc"),i=function(j,Z){var ie=j.prefixCls,pe=j.id,Ee=j.flattenOptions,De=j.childrenAsData,q=j.values,be=j.searchValue,ye=j.multiple,le=j.defaultActiveFirstOption,ue=j.height,ne=j.itemHeight,xe=j.notFoundContent,$=j.open,oe=j.menuItemSelectedIcon,Le=j.virtual,te=j.onSelect,Y=j.onToggleOpen,X=j.onActiveValue,J=j.onScroll,ve=j.onMouseEnter,he="".concat(ie,"-item"),Ce=Object(r.a)(function(){return Ee},[$,Ee],function(dt,Ge){return Ge[0]&&dt[1]!==Ge[1]}),Pe=g.useRef(null),de=function(Ge){Ge.preventDefault()},ke=function(Ge){Pe.current&&Pe.current.scrollTo({index:Ge})},me=function(Ge){for(var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Fe=Ce.length,ce=0;ce<Fe;ce+=1){var we=(Ge+ce*je+Fe)%Fe,se=Ce[we],_e=se.group,Ne=se.data;if(!_e&&!Ne.disabled)return we}return-1},Be=g.useState(function(){return me(0)}),ft=Object(d.a)(Be,2),vt=ft[0],Xe=ft[1],Bt=function(Ge){Xe(Ge);var je=Ce[Ge];if(!je){X(null,-1);return}X(je.data.value,Ge)};g.useEffect(function(){Bt(le!==!1?me(0):-1)},[Ce.length,be]),g.useEffect(function(){var dt=setTimeout(function(){if(!ye&&$&&q.size===1){var Ge=Array.from(q)[0],je=Ce.findIndex(function(Fe){var ce=Fe.data;return ce.value===Ge});Bt(je),ke(je)}});return function(){return clearTimeout(dt)}},[$]);var Ae=function(Ge){Ge!==void 0&&te(Ge,{selected:!q.has(Ge)}),ye||Y(!1)};if(g.useImperativeHandle(Z,function(){return{onKeyDown:function(Ge){var je=Ge.which;switch(je){case u.a.UP:case u.a.DOWN:{var Fe=0;if(je===u.a.UP?Fe=-1:je===u.a.DOWN&&(Fe=1),Fe!==0){var ce=me(vt+Fe,Fe);ke(ce),Bt(ce)}break}case u.a.ENTER:{var we=Ce[vt];we&&!we.data.disabled?Ae(we.data.value):Ae(void 0),$&&Ge.preventDefault();break}case u.a.ESC:Y(!1)}},onKeyUp:function(){},scrollTo:function(Ge){ke(Ge)}}}),Ce.length===0)return g.createElement("div",{role:"listbox",id:"".concat(pe,"_list"),className:"".concat(he,"-empty"),onMouseDown:de},xe);function We(dt){var Ge=Ce[dt];if(!Ge)return null;var je=Ge.data||{},Fe=je.value,ce=je.label,we=je.children,se=Object(o.a)(je,!0),_e=De?we:ce;return Ge?g.createElement("div",Object.assign({"aria-label":typeof _e=="string"?_e:null},se,{key:dt,role:"option",id:"".concat(pe,"_list_").concat(dt),"aria-selected":q.has(Fe)}),Fe):null}return g.createElement(g.Fragment,null,g.createElement("div",{role:"listbox",id:"".concat(pe,"_list"),style:{height:0,width:0,overflow:"hidden"}},We(vt-1),We(vt),We(vt+1)),g.createElement(s.a,{itemKey:"key",ref:Pe,data:Ce,height:ue,itemHeight:ne,fullHeight:!1,onMouseDown:de,onScroll:J,virtual:Le,onMouseEnter:ve},function(dt,Ge){var je,Fe=dt.group,ce=dt.groupOption,we=dt.data,se=we.label,_e=we.key;if(Fe)return g.createElement("div",{className:n()(he,"".concat(he,"-group"))},se!==void 0?se:_e);var Ne=we.disabled,Q=we.value,Ue=we.title,Ze=we.children,Te=we.style,He=we.className,Ye=Object(f.a)(we,["disabled","value","title","children","style","className"]),st=q.has(Q),ut="".concat(he,"-option"),et=n()(he,ut,He,(je={},Object(a.a)(je,"".concat(ut,"-grouped"),ce),Object(a.a)(je,"".concat(ut,"-active"),vt===Ge&&!Ne),Object(a.a)(je,"".concat(ut,"-disabled"),Ne),Object(a.a)(je,"".concat(ut,"-selected"),st),je)),Re=De?Ze:se,qe=!oe||typeof oe=="function"||st;return g.createElement("div",Object.assign({},Ye,{"aria-selected":st,className:et,title:Ue,onMouseMove:function(){if(vt===Ge||Ne)return;Bt(Ge)},onClick:function(){Ne||Ae(Q)},style:Te}),g.createElement("div",{className:"".concat(ut,"-content")},Re||Q),g.isValidElement(oe)||st,qe&&g.createElement(e.a,{className:"".concat(he,"-option-state"),customizeIcon:oe,customizeIconProps:{isSelected:st}},st?"\u2713":null))}))},_=g.forwardRef(i);_.displayName="OptionList";var b=_,y=function(){return null};y.isSelectOption=!0;var E=y,c=function(){return null};c.isSelectOptGroup=!0;var C=c,x=v("VTBJ"),M=v("Zm9Q");function k(D){var j=D.key,Z=D.props,ie=Z.children,pe=Z.value,Ee=Object(f.a)(Z,["children","value"]);return Object(x.a)({key:j,value:pe!==void 0?pe:j,children:ie},Ee)}function T(D){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(M.a)(D).map(function(Z,ie){if(!g.isValidElement(Z)||!Z.type)return null;var pe=Z.type.isSelectOptGroup,Ee=Z.key,De=Z.props,q=De.children,be=Object(f.a)(De,["children"]);return j||!pe?k(Z):Object(x.a)(Object(x.a)({key:"__RC_SELECT_GRP__".concat(Ee===null?ie:Ee,"__"),label:Ee},be),{},{options:T(q)})}).filter(function(Z){return Z})}var R=v("2Qr1"),P=v("qNPg"),B=v("U8pU"),W=v("Kwbf"),z=v("WKfj");function H(D){var j=D.mode,Z=D.options,ie=D.children,pe=D.backfill,Ee=D.allowClear,De=D.placeholder,q=D.getInputElement,be=D.showSearch,ye=D.onSearch,le=D.defaultOpen,ue=D.autoFocus,ne=D.labelInValue,xe=D.value,$=D.inputValue,oe=D.optionLabelProp,Le=j==="multiple"||j==="tags",te=be!==void 0?be:Le||j==="combobox",Y=Z||T(ie);if(Object(W.a)(j!=="tags"||Y.every(function(he){return!he.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),j==="tags"||j==="combobox"){var X=Y.some(function(he){return he.options?he.options.some(function(Ce){return typeof("value"in Ce?Ce.value:Ce.key)=="number"}):typeof("value"in he?he.value:he.key)=="number"});Object(W.a)(!X,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(W.a)(j!=="combobox"||!oe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(W.a)(j==="combobox"||!pe,"`backfill` only works with `combobox` mode."),Object(W.a)(j==="combobox"||!q,"`getInputElement` only work with `combobox` mode."),Object(W.b)(j!=="combobox"||!q||!Ee||!De,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ye&&!te&&j!=="combobox"&&j!=="tags"&&Object(W.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(W.b)(!le||ue,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),xe!=null){var J=Object(z.d)(xe);Object(W.a)(!ne||J.every(function(he){return Object(B.a)(he)==="object"&&("key"in he||"value"in he)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(W.a)(!Le||Array.isArray(xe),"`value` should be array when `mode` is `multiple` or `tags`")}if(ie){var ve=null;Object(M.a)(ie).some(function(he){if(!g.isValidElement(he)||!he.type)return!1;var Ce=he.type;if(Ce.isSelectOption)return!1;if(Ce.isSelectOptGroup){var Pe=Object(M.a)(he.props.children).every(function(de){return!g.isValidElement(de)||!he.type||de.type.isSelectOption?!0:(ve=de.type,!1)});return!Pe}return ve=Ce,!0}),ve&&Object(W.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ve.displayName||ve.name||ve,"`.")),Object(W.a)($===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var ee=H,G=Object(P.a)({prefixCls:"rc-select",components:{optionList:b},convertChildrenToData:T,flattenOptions:R.d,getLabeledValue:R.e,filterOptions:R.b,isValueDisabled:R.g,findValueOption:R.c,warningProps:ee,fillOptionsWithMissingValue:R.a}),U=function(D){Object(I.a)(Z,D);var j=Object(m.a)(Z);function Z(){var ie;return Object(w.a)(this,Z),ie=j.apply(this,arguments),ie.selectRef=g.createRef(),ie.focus=function(){ie.selectRef.current.focus()},ie.blur=function(){ie.selectRef.current.blur()},ie}return Object(h.a)(Z,[{key:"render",value:function(){return g.createElement(G,Object.assign({ref:this.selectRef},this.props))}}]),Z}(g.Component);U.Option=E,U.OptGroup=C;var K=U,L=F.c=K},Lmeb:function(S,F,v){},Lo0S:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.initLogging=a,F.getLogging=f,F.Error=F.Warn=F.Info=F.Debug=void 0;var w="warn",h=function(){};F.Debug=h;var I=function(){};F.Info=I;var m=function(){};F.Warn=m;var g=function(){};F.Error=g;function a(d){if(typeof d=="undefined"?d=w:w=d,F.Debug=h=F.Info=I=F.Warn=m=F.Error=g=function(){},typeof window.console!="undefined")switch(d){case"debug":F.Debug=h=console.debug.bind(window.console);case"info":F.Info=I=console.info.bind(window.console);case"warn":F.Warn=m=console.warn.bind(window.console);case"error":F.Error=g=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+d+"'")}}function f(){return w}a()},M8RZ:function(S,F,v){"use strict";v.d(F,"a",function(){return u});var w=v("fWQN"),h=v("mtLc"),I=v("yKVA"),m=v("879j"),g=v("cDcd"),a=v.n(g),f=v("faye"),d=v.n(f),u=function(o){Object(I.a)(l,o);var r=Object(m.a)(l);function l(n){var s;Object(w.a)(this,l),s=r.call(this,n);var e=window.document;return s.node=e.createElement("div"),e.body.appendChild(s.node),s}return Object(h.a)(l,[{key:"render",value:function(){var s=this.props.children;return Object(f.createPortal)(s,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),l}(a.a.Component)},MAU4:function(S,F,v){S.exports=v.p+"static/disappoint1.7e763f4d.svg"},MFOe:function(S,F,v){(function(w){var h=a(),I=f(),m=d(),g=typeof window!="undefined"?window:w;S.exports={assign:h,create:I,trim:m,bind:u,slice:o,each:r,map:l,pluck:n,isList:s,isFunction:e,isObject:i,Global:g};function a(){return Object.assign?Object.assign:function(b,y,E,c){for(var C=1;C<arguments.length;C++)r(Object(arguments[C]),function(x,M){b[M]=x});return b}}function f(){if(Object.create)return function(y,E,c,C){var x=o(arguments,1);return h.apply(this,[Object.create(y)].concat(x))};{function _(){}return function(y,E,c,C){var x=o(arguments,1);return _.prototype=y,h.apply(this,[new _].concat(x))}}}function d(){return String.prototype.trim?function(b){return String.prototype.trim.call(b)}:function(b){return b.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function u(_,b){return function(){return b.apply(_,Array.prototype.slice.call(arguments,0))}}function o(_,b){return Array.prototype.slice.call(_,b||0)}function r(_,b){n(_,function(y,E){return b(y,E),!1})}function l(_,b){var y=s(_)?[]:{};return n(_,function(E,c){return y[c]=b(E,c),!1}),y}function n(_,b){if(s(_)){for(var y=0;y<_.length;y++)if(b(_[y],y))return _[y]}else for(var E in _)if(_.hasOwnProperty(E)&&b(_[E],E))return _[E]}function s(_){return _!=null&&typeof _!="function"&&typeof _.length=="number"}function e(_){return _&&{}.toString.call(_)==="[object Function]"}function i(_){return _&&{}.toString.call(_)==="[object Object]"}}).call(this,v("IyRk"))},MZdM:function(S,F,v){"use strict";function w(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(e){return typeof e}:w=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(n)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var h=d(v("Lo0S")),I=a(v("N/zr")),m=v("GdRQ"),g=v("GQ8N");function a(n){return n&&n.__esModule?n:{default:n}}function f(){if(typeof WeakMap!="function")return null;var n=new WeakMap;return f=function(){return n},n}function d(n){if(n&&n.__esModule)return n;if(n===null||w(n)!=="object"&&typeof n!="function")return{default:n};var s=f();if(s&&s.has(n))return s.get(n);var e={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in n)if(Object.prototype.hasOwnProperty.call(n,_)){var b=i?Object.getOwnPropertyDescriptor(n,_):null;b&&(b.get||b.set)?Object.defineProperty(e,_,b):e[_]=n[_]}return e.default=n,s&&s.set(n,e),e}function u(n,s){if(!(n instanceof s))throw new TypeError("Cannot call a class as a function")}function o(n,s){for(var e=0;e<s.length;e++){var i=s[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function r(n,s,e){return s&&o(n.prototype,s),e&&o(n,e),n}var l=function(){function n(s){if(u(this,n),this._drawCtx=null,this._renderQ=[],this._flushing=!1,this._fbWidth=0,this._fbHeight=0,this._prevDrawStyle="",this._tile=null,this._tile16x16=null,this._tileX=0,this._tileY=0,h.Debug(">> Display.constructor"),this._target=s,!this._target)throw new Error("Target must be set");if(typeof this._target=="string")throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},h.Debug("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),h.Debug("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=function(){}}return r(n,[{key:"viewportChangePos",value:function(e,i){var _=this._viewportLoc;e=Math.floor(e),i=Math.floor(i),this._clipViewport||(e=-_.w,i=-_.h);var b=_.x+_.w-1,y=_.y+_.h-1;if(e<0&&_.x+e<0&&(e=-_.x),b+e>=this._fbWidth&&(e-=b+e-this._fbWidth+1),_.y+i<0&&(i=-_.y),y+i>=this._fbHeight&&(i-=y+i-this._fbHeight+1),e===0&&i===0)return;h.Debug("viewportChange deltaX: "+e+", deltaY: "+i),_.x+=e,_.y+=i,this._damage(_.x,_.y,_.w,_.h),this.flip()}},{key:"viewportChangeSize",value:function(e,i){(!this._clipViewport||typeof e=="undefined"||typeof i=="undefined")&&(h.Debug("Setting viewport to full display region"),e=this._fbWidth,i=this._fbHeight),e=Math.floor(e),i=Math.floor(i),e>this._fbWidth&&(e=this._fbWidth),i>this._fbHeight&&(i=this._fbHeight);var _=this._viewportLoc;if(_.w!==e||_.h!==i){_.w=e,_.h=i;var b=this._target;b.width=e,b.height=i,this.viewportChangePos(0,0),this._damage(_.x,_.y,_.w,_.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(e){return this._scale===0?0:(0,g.toSigned32bit)(e/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(e){return this._scale===0?0:(0,g.toSigned32bit)(e/this._scale+this._viewportLoc.y)}},{key:"resize",value:function(e,i){this._prevDrawStyle="",this._fbWidth=e,this._fbHeight=i;var _=this._backbuffer;if(_.width!==e||_.height!==i){var b=null;_.width>0&&_.height>0&&(b=this._drawCtx.getImageData(0,0,_.width,_.height)),_.width!==e&&(_.width=e),_.height!==i&&(_.height=i),b&&this._drawCtx.putImageData(b,0,0)}var y=this._viewportLoc;this.viewportChangeSize(y.w,y.h),this.viewportChangePos(0,0)}},{key:"_damage",value:function(e,i,_,b){e<this._damageBounds.left&&(this._damageBounds.left=e),i<this._damageBounds.top&&(this._damageBounds.top=i),e+_>this._damageBounds.right&&(this._damageBounds.right=e+_),i+b>this._damageBounds.bottom&&(this._damageBounds.bottom=i+b)}},{key:"flip",value:function(e){if(this._renderQ.length!==0&&!e)this._renderQPush({type:"flip"});else{var i=this._damageBounds.left,_=this._damageBounds.top,b=this._damageBounds.right-i,y=this._damageBounds.bottom-_,E=i-this._viewportLoc.x,c=_-this._viewportLoc.y;E<0&&(b+=E,i-=E,E=0),c<0&&(y+=c,_-=c,c=0),E+b>this._viewportLoc.w&&(b=this._viewportLoc.w-E),c+y>this._viewportLoc.h&&(y=this._viewportLoc.h-c),b>0&&y>0&&this._targetCtx.drawImage(this._backbuffer,i,_,b,y,E,c,b,y),this._damageBounds.left=this._damageBounds.top=65535,this._damageBounds.right=this._damageBounds.bottom=0}}},{key:"pending",value:function(){return this._renderQ.length>0}},{key:"flush",value:function(){this._renderQ.length===0?this.onflush():this._flushing=!0}},{key:"fillRect",value:function(e,i,_,b,y,E){this._renderQ.length!==0&&!E?this._renderQPush({type:"fill",x:e,y:i,width:_,height:b,color:y}):(this._setFillColor(y),this._drawCtx.fillRect(e,i,_,b),this._damage(e,i,_,b))}},{key:"copyImage",value:function(e,i,_,b,y,E,c){this._renderQ.length!==0&&!c?this._renderQPush({type:"copy",oldX:e,oldY:i,x:_,y:b,width:y,height:E}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,e,i,y,E,_,b,y,E),this._damage(_,b,y,E))}},{key:"imageRect",value:function(e,i,_,b,y,E){if(_===0||b===0)return;var c=new Image;c.src="data: "+y+";base64,"+I.default.encode(E),this._renderQPush({type:"img",img:c,x:e,y:i,width:_,height:b})}},{key:"startTile",value:function(e,i,_,b,y){this._tileX=e,this._tileY=i,_===16&&b===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(_,b);for(var E=y[2],c=y[1],C=y[0],x=this._tile.data,M=0;M<_*b*4;M+=4)x[M]=E,x[M+1]=c,x[M+2]=C,x[M+3]=255}},{key:"subTile",value:function(e,i,_,b,y){for(var E=y[2],c=y[1],C=y[0],x=e+_,M=i+b,k=this._tile.data,T=this._tile.width,R=i;R<M;R++)for(var P=e;P<x;P++){var B=(P+R*T)*4;k[B]=E,k[B+1]=c,k[B+2]=C,k[B+3]=255}}},{key:"finishTile",value:function(){this._drawCtx.putImageData(this._tile,this._tileX,this._tileY),this._damage(this._tileX,this._tileY,this._tile.width,this._tile.height)}},{key:"blitImage",value:function(e,i,_,b,y,E,c){if(this._renderQ.length!==0&&!c){var C=new Uint8Array(_*b*4);C.set(new Uint8Array(y.buffer,0,C.length)),this._renderQPush({type:"blit",data:C,x:e,y:i,width:_,height:b})}else this._bgrxImageData(e,i,_,b,y,E)}},{key:"blitRgbImage",value:function(e,i,_,b,y,E,c){if(this._renderQ.length!==0&&!c){var C=new Uint8Array(_*b*3);C.set(new Uint8Array(y.buffer,0,C.length)),this._renderQPush({type:"blitRgb",data:C,x:e,y:i,width:_,height:b})}else this._rgbImageData(e,i,_,b,y,E)}},{key:"blitRgbxImage",value:function(e,i,_,b,y,E,c){if(this._renderQ.length!==0&&!c){var C=new Uint8Array(_*b*4);C.set(new Uint8Array(y.buffer,0,C.length)),this._renderQPush({type:"blitRgbx",data:C,x:e,y:i,width:_,height:b})}else this._rgbxImageData(e,i,_,b,y,E)}},{key:"drawImage",value:function(e,i,_){this._drawCtx.drawImage(e,i,_),this._damage(i,_,e.width,e.height)}},{key:"autoscale",value:function(e,i){var _;if(e===0||i===0)_=0;else{var b=this._viewportLoc,y=e/i,E=b.w/b.h;E>=y?_=e/b.w:_=i/b.h}this._rescale(_)}},{key:"_rescale",value:function(e){this._scale=e;var i=this._viewportLoc,_=e*i.w+"px",b=e*i.h+"px";(this._target.style.width!==_||this._target.style.height!==b)&&(this._target.style.width=_,this._target.style.height=b)}},{key:"_setFillColor",value:function(e){var i="rgb("+e[2]+","+e[1]+","+e[0]+")";i!==this._prevDrawStyle&&(this._drawCtx.fillStyle=i,this._prevDrawStyle=i)}},{key:"_rgbImageData",value:function(e,i,_,b,y,E){for(var c=this._drawCtx.createImageData(_,b),C=c.data,x=0,M=E;x<_*b*4;x+=4,M+=3)C[x]=y[M],C[x+1]=y[M+1],C[x+2]=y[M+2],C[x+3]=255;this._drawCtx.putImageData(c,e,i),this._damage(e,i,c.width,c.height)}},{key:"_bgrxImageData",value:function(e,i,_,b,y,E){for(var c=this._drawCtx.createImageData(_,b),C=c.data,x=0,M=E;x<_*b*4;x+=4,M+=4)C[x]=y[M+2],C[x+1]=y[M+1],C[x+2]=y[M],C[x+3]=255;this._drawCtx.putImageData(c,e,i),this._damage(e,i,c.width,c.height)}},{key:"_rgbxImageData",value:function(e,i,_,b,y,E){var c;m.supportsImageMetadata?c=new ImageData(new Uint8ClampedArray(y.buffer,y.byteOffset,_*b*4),_,b):(c=this._drawCtx.createImageData(_,b),c.data.set(new Uint8ClampedArray(y.buffer,y.byteOffset,_*b*4))),this._drawCtx.putImageData(c,e,i),this._damage(e,i,c.width,c.height)}},{key:"_renderQPush",value:function(e){this._renderQ.push(e),this._renderQ.length===1&&this._scanRenderQ()}},{key:"_resumeRenderQ",value:function(){this.removeEventListener("load",this._noVNCDisplay._resumeRenderQ),this._noVNCDisplay._scanRenderQ()}},{key:"_scanRenderQ",value:function(){for(var e=!0;e&&this._renderQ.length>0;){var i=this._renderQ[0];switch(i.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(i.oldX,i.oldY,i.x,i.y,i.width,i.height,!0);break;case"fill":this.fillRect(i.x,i.y,i.width,i.height,i.color,!0);break;case"blit":this.blitImage(i.x,i.y,i.width,i.height,i.data,0,!0);break;case"blitRgb":this.blitRgbImage(i.x,i.y,i.width,i.height,i.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(i.x,i.y,i.width,i.height,i.data,0,!0);break;case"img":if(i.img.complete&&i.img.width!==0&&i.img.height!==0){if(i.img.width!==i.width||i.img.height!==i.height){h.Error("Decoded image has incorrect dimensions. Got "+i.img.width+"x"+i.img.height+". Expected "+i.width+"x"+i.height+".");return}this.drawImage(i.img,i.x,i.y)}else i.img._noVNCDisplay=this,i.img.addEventListener("load",this._resumeRenderQ),e=!1;break}e&&this._renderQ.shift()}this._renderQ.length===0&&this._flushing&&(this._flushing=!1,this.onflush())}},{key:"scale",get:function(){return this._scale},set:function(e){this._rescale(e)}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(e){this._clipViewport=e;var i=this._viewportLoc;this.viewportChangeSize(i.w,i.h),this.viewportChangePos(0,0)}},{key:"width",get:function(){return this._fbWidth}},{key:"height",get:function(){return this._fbHeight}}]),n}();F.default=l},MlIO:function(S,F,v){(function(w,h){S.exports=F=h(v("Ib8C"))})(this,function(w){return function(h){var I=w,m=I.lib,g=m.Base,a=m.WordArray,f=I.x64={},d=f.Word=g.extend({init:function(o,r){this.high=o,this.low=r}}),u=f.WordArray=g.extend({init:function(o,r){o=this.words=o||[],r!=h?this.sigBytes=r:this.sigBytes=o.length*8},toX32:function(){for(var o=this.words,r=o.length,l=[],n=0;n<r;n++){var s=o[n];l.push(s.high),l.push(s.low)}return a.create(l,this.sigBytes)},clone:function(){for(var o=g.clone.call(this),r=o.words=this.words.slice(0),l=r.length,n=0;n<l;n++)r[n]=r[n].clone();return o}})}(),w})},Mm8t:function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAADJElEQVRYR72Xy4vOYRTHP98FGzsRw8al2FGMBWUyRJmZlFxKsnKZnT+ABRbsWRmXlaKMIrks5JIpyhiFlZExG7fIig3p6EznmX7vO7/L+/6m5tRb7++5nOf7nNvzPaINMbNNwE5gPTA/fq7he/yeAzclPWlVraoWmlkH0A/sA1ZUrY/5UeAaMCDpS9meUgBmdhI4DCwKJX+AB8Az4BvwNcYXAguADcBWYHaMfwYuSnI9uVIIwMyeAhtj1whwAbgh6WfZjcxsLrAbOAKsjbVDkrry9uUCMDP36bzY0C/JD58iZrbHByUNFsw7iIGY+yHJ46ZBpgAws4/AkljVI+l+gXIPyMcx110UeGa2HbgX68YlLc3qawBgZteBdKuq+GgJQDrMzCz+D0ram8YnD4mAOxETqyW9qfB1uwBWAa9D56kUmBMAItVeRrQX+jwLKGpCpQua9qSY8Ozo9BRNADxN/PYjkjrLbp4xaVsWyOzzi3p2TFghAfgALPOCUxTxzaDqWCCsnawwJmm5zKwHuAv8BRZL8hSslGkA8FT8BMwCeh3A+Si1jyRtqTw5FtQFEFZ4CGyeKNVm9gJYBxyXdGaGABwDTgPDDiAVnkOSLs8QgIPAJWDcAfwC5gB9kjwWWpImF0zmdSubzawXuAP8rg0gfJlSyj/3S7paB0AtFwQAL9tevpNsk+TPdamYWYMLagVhprA0g+iSNFSGwMwagvAscNRrgaS+KvR58/EsJ0v8c8omabhIl5m5/z0OznkMpJLqbKejinCUKM1a4j2wS9Lb5vVBWJymOWvqTqX4XfC9lktxC5a4JckJbIOYWSrFo5JW1n6MWrBEbmqaWe5j5My3ree4ZqzkP8eRUulJ9s9CKlbn4NCfpWaNhCSTUpNMWFJlz9AOmAwla2DIeaQ0y4grqVkVCDPLUrEpzLiIlmeZce3MyES845zCiH2wrDGZZMhO1aIx8b6vlLCYmRMOT79sY9LAhLNWq6Leza2ZsyYvs04o8lozJzTeTTnbcanfmmUCMzWnB4I3Vrnd58eAK9NuTnOqmPPHHcCagvb8FXBbUuqEKsH+B6mvmv9ZL+YKAAAAAElFTkSuQmCC"},Mmt2:function(S,F,v){"use strict";function w(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(n){return typeof n}:w=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},w(r)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var h=m(v("Lo0S"));function I(){if(typeof WeakMap!="function")return null;var r=new WeakMap;return I=function(){return r},r}function m(r){if(r&&r.__esModule)return r;if(r===null||w(r)!=="object"&&typeof r!="function")return{default:r};var l=I();if(l&&l.has(r))return l.get(r);var n={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e)){var i=s?Object.getOwnPropertyDescriptor(r,e):null;i&&(i.get||i.set)?Object.defineProperty(n,e,i):n[e]=r[e]}return n.default=r,l&&l.set(r,n),n}function g(r,l){if(!(r instanceof l))throw new TypeError("Cannot call a class as a function")}function a(r,l){for(var n=0;n<l.length;n++){var s=l[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}function f(r,l,n){return l&&a(r.prototype,l),n&&a(r,n),r}var d=!1,u=40*1024*1024,o=function(){function r(){g(this,r),this._websocket=null,this._rQi=0,this._rQlen=0,this._rQbufferSize=1024*1024*4,this._rQ=null,this._sQbufferSize=1024*10,this._sQlen=0,this._sQ=null,this._eventHandlers={message:function(){},open:function(){},close:function(){},error:function(){}}}return f(r,[{key:"rQpeek8",value:function(){return this._rQ[this._rQi]}},{key:"rQskipBytes",value:function(n){this._rQi+=n}},{key:"rQshift8",value:function(){return this._rQshift(1)}},{key:"rQshift16",value:function(){return this._rQshift(2)}},{key:"rQshift32",value:function(){return this._rQshift(4)}},{key:"_rQshift",value:function(n){for(var s=0,e=n-1;e>=0;e--)s+=this._rQ[this._rQi++]<<e*8;return s}},{key:"rQshiftStr",value:function(n){typeof n=="undefined"&&(n=this.rQlen);for(var s="",e=0;e<n;e+=4096){var i=this.rQshiftBytes(Math.min(4096,n-e));s+=String.fromCharCode.apply(null,i)}return s}},{key:"rQshiftBytes",value:function(n){return typeof n=="undefined"&&(n=this.rQlen),this._rQi+=n,new Uint8Array(this._rQ.buffer,this._rQi-n,n)}},{key:"rQshiftTo",value:function(n,s){s===void 0&&(s=this.rQlen),n.set(new Uint8Array(this._rQ.buffer,this._rQi,s)),this._rQi+=s}},{key:"rQslice",value:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.rQlen;return new Uint8Array(this._rQ.buffer,this._rQi+n,s-n)}},{key:"rQwait",value:function(n,s,e){if(this.rQlen<s){if(e){if(this._rQi<e)throw new Error("rQwait cannot backup "+e+" bytes");this._rQi-=e}return!0}return!1}},{key:"flush",value:function(){this._sQlen>0&&this._websocket.readyState===WebSocket.OPEN&&(this._websocket.send(this._encodeMessage()),this._sQlen=0)}},{key:"send",value:function(n){this._sQ.set(n,this._sQlen),this._sQlen+=n.length,this.flush()}},{key:"sendString",value:function(n){this.send(n.split("").map(function(s){return s.charCodeAt(0)}))}},{key:"off",value:function(n){this._eventHandlers[n]=function(){}}},{key:"on",value:function(n,s){this._eventHandlers[n]=s}},{key:"_allocateBuffers",value:function(){this._rQ=new Uint8Array(this._rQbufferSize),this._sQ=new Uint8Array(this._sQbufferSize)}},{key:"init",value:function(){this._allocateBuffers(),this._rQi=0,this._websocket=null}},{key:"open",value:function(n,s){var e=this;this.init(),this._websocket=new WebSocket(n,s),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=function(){h.Debug(">> WebSock.onopen"),e._websocket.protocol&&h.Info("Server choose sub-protocol: "+e._websocket.protocol),e._eventHandlers.open(),h.Debug("<< WebSock.onopen")},this._websocket.onclose=function(i){h.Debug(">> WebSock.onclose"),e._eventHandlers.close(i),h.Debug("<< WebSock.onclose")},this._websocket.onerror=function(i){h.Debug(">> WebSock.onerror: "+i),e._eventHandlers.error(i),h.Debug("<< WebSock.onerror: "+i)}}},{key:"close",value:function(){this._websocket&&((this._websocket.readyState===WebSocket.OPEN||this._websocket.readyState===WebSocket.CONNECTING)&&(h.Info("Closing WebSocket connection"),this._websocket.close()),this._websocket.onmessage=function(){})}},{key:"_encodeMessage",value:function(){return new Uint8Array(this._sQ.buffer,0,this._sQlen)}},{key:"_expandCompactRQ",value:function(n){var s=(this._rQlen-this._rQi+n)*8,e=this._rQbufferSize<s;if(e&&(this._rQbufferSize=Math.max(this._rQbufferSize*2,s)),this._rQbufferSize>u&&(this._rQbufferSize=u,this._rQbufferSize-this.rQlen<n))throw new Error("Receive Queue buffer exceeded "+u+" bytes, and the new message could not fit");if(e){var i=this._rQ.buffer;this._rQ=new Uint8Array(this._rQbufferSize),this._rQ.set(new Uint8Array(i,this._rQi,this._rQlen-this._rQi))}else d?this._rQ.copyWithin(0,this._rQi,this._rQlen):this._rQ.set(new Uint8Array(this._rQ.buffer,this._rQi,this._rQlen-this._rQi));this._rQlen=this._rQlen-this._rQi,this._rQi=0}},{key:"_DecodeMessage",value:function(n){var s=new Uint8Array(n);s.length>this._rQbufferSize-this._rQlen&&this._expandCompactRQ(s.length),this._rQ.set(s,this._rQlen),this._rQlen+=s.length}},{key:"_recvMessage",value:function(n){this._DecodeMessage(n.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):h.Debug("Ignoring empty message")}},{key:"sQ",get:function(){return this._sQ}},{key:"rQ",get:function(){return this._rQ}},{key:"rQi",get:function(){return this._rQi},set:function(n){this._rQi=n}},{key:"rQlen",get:function(){return this._rQlen-this._rQi}}]),r}();F.default=o},"N/zr":function(S,F,v){"use strict";function w(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(d){return typeof d}:w=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},w(a)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var h=m(v("Lo0S"));function I(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return I=function(){return a},a}function m(a){if(a&&a.__esModule)return a;if(a===null||w(a)!=="object"&&typeof a!="function")return{default:a};var f=I();if(f&&f.has(a))return f.get(a);var d={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in a)if(Object.prototype.hasOwnProperty.call(a,o)){var r=u?Object.getOwnPropertyDescriptor(a,o):null;r&&(r.get||r.set)?Object.defineProperty(d,o,r):d[o]=a[o]}return d.default=a,f&&f.set(a,d),d}var g={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(f){"use strict";for(var d="",u=f.length,o=u%3,r=0;r<u-2;r+=3)d+=this.toBase64Table[f[r]>>2],d+=this.toBase64Table[((f[r]&3)<<4)+(f[r+1]>>4)],d+=this.toBase64Table[((f[r+1]&15)<<2)+(f[r+2]>>6)],d+=this.toBase64Table[f[r+2]&63];var l=u-o;return o===2?(d+=this.toBase64Table[f[l]>>2],d+=this.toBase64Table[((f[l]&3)<<4)+(f[l+1]>>4)],d+=this.toBase64Table[(f[l+1]&15)<<2],d+=this.toBase64Table[64]):o===1&&(d+=this.toBase64Table[f[l]>>2],d+=this.toBase64Table[(f[l]&3)<<4],d+=this.toBase64Table[64],d+=this.toBase64Table[64]),d},toBinaryTable:[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1],decode:function(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,u=f.indexOf("=")-d;u<0&&(u=f.length-d);for(var o=(u>>2)*3+Math.floor(u%4/1.5),r=new Array(o),l=0,n=0,s=0,e=d;e<f.length;e++){var i=this.toBinaryTable[f.charCodeAt(e)&127],_=f.charAt(e)===this.base64Pad;if(i===-1){h.Error("Illegal character code "+f.charCodeAt(e)+" at position "+e);continue}n=n<<6|i,l+=6,l>=8&&(l-=8,_||(r[s++]=n>>l&255),n&=(1<<l)-1)}if(l){var b=new Error("Corrupted base64 string");throw b.name="Base64-Error",b}return r}};F.default=g},NBmB:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.encodingName=h,F.encodings=void 0;var w={encodingRaw:0,encodingCopyRect:1,encodingRRE:2,encodingHextile:5,encodingTight:7,encodingTightPNG:-260,pseudoEncodingQualityLevel9:-23,pseudoEncodingQualityLevel0:-32,pseudoEncodingDesktopSize:-223,pseudoEncodingLastRect:-224,pseudoEncodingCursor:-239,pseudoEncodingQEMUExtendedKeyEvent:-258,pseudoEncodingDesktopName:-307,pseudoEncodingExtendedDesktopSize:-308,pseudoEncodingXvp:-309,pseudoEncodingFence:-312,pseudoEncodingContinuousUpdates:-313,pseudoEncodingCompressLevel9:-247,pseudoEncodingCompressLevel0:-256,pseudoEncodingVMwareCursor:1464686180,pseudoEncodingExtendedClipboard:3231835598};F.encodings=w;function h(I){switch(I){case w.encodingRaw:return"Raw";case w.encodingCopyRect:return"CopyRect";case w.encodingRRE:return"RRE";case w.encodingHextile:return"Hextile";case w.encodingTight:return"Tight";case w.encodingTightPNG:return"TightPNG";default:return"[unknown encoding "+I+"]"}}},NFKh:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("MlIO"),v("F+F2"),v("qM6L"),v("ETIr"),v("wbyO"),v("cv67"),v("3y9D"),v("lPiR"),v("GRuw"),v("1uat"),v("uGsb"),v("5hvy"),v("ELcG"),v("WYAk"),v("e7zE"),v("K3mO"),v("OLod"),v("ALsQ"),v("9OqN"),v("qu8F"),v("S6kV"),v("gb/T"),v("qBft"),v("oRuE"),v("jO9C"),v("KmYQ"),v("uGxW"),v("bQjk"),v("wZgz"),v("pA7S"),v("w7YG"),v("E4JC"),v("PVpz"))})(this,function(w){return w})},NLgs:function(S,F,v){"use strict";v.d(F,"d",function(){return E}),v.d(F,"e",function(){return c}),v.d(F,"c",function(){return x}),v.d(F,"b",function(){return M}),v.d(F,"a",function(){return T});var w=v("miYZ"),h=v("tsqr"),I=v("9og8"),m=v("2qtc"),g=v("kLXV"),a=v("WmNS"),f=v.n(a),d=v("cDcd"),u=v.n(d),o=v("9kvl"),r=v("xKgJ"),l=v("1vsH"),n=v("RCxd"),s=v("mOS8"),e=v.n(s),i=v("1ZF9"),_=v.n(i),b=v("NoGO"),y=v.n(b),E=function(P){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(c(P)&&C(B))},c=function(P){return Object(r.f)()?!0:(P({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},C=function(){var P,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,W=Object(o.b)()._store.getState(),z=W.user;return(P=z.userInfo)!==null&&P!==void 0&&P.profile_completed?!0:(g.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:B?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){o.c.push("/account/profile/edit")}}),!1)},x=function(){var P,B=Object(o.b)()._store.getState(),W=B.user;return(P=W.userInfo)!==null&&P!==void 0&&P.professional_certification?!0:(g.a.confirm({title:"\u63D0\u793A",centered:!0,content:u.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(l.w)("/account/certification")}}),!1)},M=function(){return Object(r.a)()?!0:(g.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:u.a.createElement("div",{className:"tc",style:{marginLeft:-38}},u.a.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),u.a.createElement("img",{src:y.a,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},k=function(P,B){return P?!0:(g.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:u.a.createElement("div",null,u.a.createElement("p",null,B||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),u.a.createElement("div",{style:{marginLeft:"110px"}},u.a.createElement("img",{src:_.a,width:200}),u.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(l.w)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},T=function(P){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",W=Object(o.b)()._store.getState(),z=W.shixunsDetail.detail;return(z==null?void 0:z.public)===2||(z==null?void 0:z.public)===1||(z==null?void 0:z.shixun_status)===3?(g.a.info({centered:!0,icon:u.a.createElement(n.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:u.a.createElement("div",{className:"tc",style:{marginLeft:-38}},u.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},u.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(z==null?void 0:z.public)===2?"\u5DF2\u516C\u5F00":(z==null?void 0:z.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",B,"\u3002"),u.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),u.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:e.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(z==null?void 0:z.shixun_status)===2?(g.a.confirm({centered:!0,icon:u.a.createElement(n.a,null),title:"\u63D0\u793A",content:u.a.createElement("div",null,u.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",B,"\u3002"),u.a.createElement("br",null),u.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){g.a.confirm({width:440,centered:!0,icon:u.a.createElement(n.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var ee=Object(I.a)(f.a.mark(function U(){var K;return f.a.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,P({type:"shixunsDetail/cancelRelease",payload:{id:z==null?void 0:z.identifier}});case 2:K=D.sent,K.status!==401&&(h.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),P({type:"shixunsDetail/getShixunsDetail",payload:{id:z==null?void 0:z.identifier}}),P({type:"practiceSetting/getCommonData",payload:{id:z==null?void 0:z.identifier}}));case 4:case"end":return D.stop()}},U)}));function G(){return ee.apply(this,arguments)}return G}()})}}),!0):!1}},Nmxd:function(S,F){S.exports="data:image/png;base64,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"},NoGO:function(S,F,v){S.exports=v.p+"static/newqrcode.9bae6615.png"},NvD2:function(S,F,v){"use strict";v.d(F,"a",function(){return a});var w=v("Kwbf");function h(f,d){var u=new Set;return f.forEach(function(o){d.has(o)||u.add(o)}),u}function I(f){var d=f||{},u=d.disabled,o=d.disableCheckbox,r=d.checkable;return!!(u||o)||r===!1}function m(f,d,u,o){for(var r=new Set(f),l=new Set,n=0;n<=u;n+=1){var s=d.get(n)||new Set;s.forEach(function(b){var y=b.key,E=b.node,c=b.children,C=c===void 0?[]:c;r.has(y)&&!o(E)&&C.filter(function(x){return!o(x.node)}).forEach(function(x){r.add(x.key)})})}for(var e=new Set,i=u;i>=0;i-=1){var _=d.get(i)||new Set;_.forEach(function(b){var y=b.parent,E=b.node;if(o(E)||!b.parent||e.has(b.parent.key))return;if(o(b.parent.node)){e.add(y.key);return}var c=!0,C=!1;(y.children||[]).filter(function(x){return!o(x.node)}).forEach(function(x){var M=x.key,k=r.has(M);c&&!k&&(c=!1),!C&&(k||l.has(M))&&(C=!0)}),c&&r.add(y.key),C&&l.add(y.key),e.add(y.key)})}return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(h(l,r))}}function g(f,d,u,o,r){for(var l=new Set(f),n=new Set(d),s=0;s<=o;s+=1){var e=u.get(s)||new Set;e.forEach(function(y){var E=y.key,c=y.node,C=y.children,x=C===void 0?[]:C;!l.has(E)&&!n.has(E)&&!r(c)&&x.filter(function(M){return!r(M.node)}).forEach(function(M){l.delete(M.key)})})}n=new Set;for(var i=new Set,_=o;_>=0;_-=1){var b=u.get(_)||new Set;b.forEach(function(y){var E=y.parent,c=y.node;if(r(c)||!y.parent||i.has(y.parent.key))return;if(r(y.parent.node)){i.add(E.key);return}var C=!0,x=!1;(E.children||[]).filter(function(M){return!r(M.node)}).forEach(function(M){var k=M.key,T=l.has(k);C&&!T&&(C=!1),!x&&(T||n.has(k))&&(x=!0)}),C||l.delete(E.key),x&&n.add(E.key),i.add(E.key)})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(h(n,l))}}function a(f,d,u,o){var r=[],l;o?l=o:l=I;var n=new Set(f.filter(function(_){var b=!!u[_];return b||r.push(_),b})),s=new Map,e=0;Object.keys(u).forEach(function(_){var b=u[_],y=b.level,E=s.get(y);E||(E=new Set,s.set(y,E)),E.add(b),e=Math.max(e,y)}),Object(w.a)(!r.length,"Tree missing follow keys: ".concat(r.slice(0,100).map(function(_){return"'".concat(_,"'")}).join(", ")));var i;return d===!0?i=m(n,s,e,l):i=g(n,d.halfCheckedKeys,s,e,l),i}},OLod:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("K3mO"))})(this,function(w){w.lib.Cipher||function(h){var I=w,m=I.lib,g=m.Base,a=m.WordArray,f=m.BufferedBlockAlgorithm,d=I.enc,u=d.Utf8,o=d.Base64,r=I.algo,l=r.EvpKDF,n=m.Cipher=f.extend({cfg:g.extend(),createEncryptor:function(P,B){return this.create(this._ENC_XFORM_MODE,P,B)},createDecryptor:function(P,B){return this.create(this._DEC_XFORM_MODE,P,B)},init:function(P,B,W){this.cfg=this.cfg.extend(W),this._xformMode=P,this._key=B,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(P){return this._append(P),this._process()},finalize:function(P){P&&this._append(P);var B=this._doFinalize();return B},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function P(B){return typeof B=="string"?R:M}return function(B){return{encrypt:function(W,z,H){return P(z).encrypt(B,W,z,H)},decrypt:function(W,z,H){return P(z).decrypt(B,W,z,H)}}}}()}),s=m.StreamCipher=n.extend({_doFinalize:function(){var P=this._process(!0);return P},blockSize:1}),e=I.mode={},i=m.BlockCipherMode=g.extend({createEncryptor:function(P,B){return this.Encryptor.create(P,B)},createDecryptor:function(P,B){return this.Decryptor.create(P,B)},init:function(P,B){this._cipher=P,this._iv=B}}),_=e.CBC=function(){var P=i.extend();P.Encryptor=P.extend({processBlock:function(W,z){var H=this._cipher,ee=H.blockSize;B.call(this,W,z,ee),H.encryptBlock(W,z),this._prevBlock=W.slice(z,z+ee)}}),P.Decryptor=P.extend({processBlock:function(W,z){var H=this._cipher,ee=H.blockSize,G=W.slice(z,z+ee);H.decryptBlock(W,z),B.call(this,W,z,ee),this._prevBlock=G}});function B(W,z,H){var ee,G=this._iv;G?(ee=G,this._iv=h):ee=this._prevBlock;for(var U=0;U<H;U++)W[z+U]^=ee[U]}return P}(),b=I.pad={},y=b.Pkcs7={pad:function(P,B){for(var W=B*4,z=W-P.sigBytes%W,H=z<<24|z<<16|z<<8|z,ee=[],G=0;G<z;G+=4)ee.push(H);var U=a.create(ee,z);P.concat(U)},unpad:function(P){var B=P.words[P.sigBytes-1>>>2]&255;P.sigBytes-=B}},E=m.BlockCipher=n.extend({cfg:n.cfg.extend({mode:_,padding:y}),reset:function(){var P;n.reset.call(this);var B=this.cfg,W=B.iv,z=B.mode;this._xformMode==this._ENC_XFORM_MODE?P=z.createEncryptor:(P=z.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==P?this._mode.init(this,W&&W.words):(this._mode=P.call(z,this,W&&W.words),this._mode.__creator=P)},_doProcessBlock:function(P,B){this._mode.processBlock(P,B)},_doFinalize:function(){var P,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),P=this._process(!0)):(P=this._process(!0),B.unpad(P)),P},blockSize:128/32}),c=m.CipherParams=g.extend({init:function(P){this.mixIn(P)},toString:function(P){return(P||this.formatter).stringify(this)}}),C=I.format={},x=C.OpenSSL={stringify:function(P){var B,W=P.ciphertext,z=P.salt;return z?B=a.create([1398893684,1701076831]).concat(z).concat(W):B=W,B.toString(o)},parse:function(P){var B,W=o.parse(P),z=W.words;return z[0]==1398893684&&z[1]==1701076831&&(B=a.create(z.slice(2,4)),z.splice(0,4),W.sigBytes-=16),c.create({ciphertext:W,salt:B})}},M=m.SerializableCipher=g.extend({cfg:g.extend({format:x}),encrypt:function(P,B,W,z){z=this.cfg.extend(z);var H=P.createEncryptor(W,z),ee=H.finalize(B),G=H.cfg;return c.create({ciphertext:ee,key:W,iv:G.iv,algorithm:P,mode:G.mode,padding:G.padding,blockSize:P.blockSize,formatter:z.format})},decrypt:function(P,B,W,z){z=this.cfg.extend(z),B=this._parse(B,z.format);var H=P.createDecryptor(W,z).finalize(B.ciphertext);return H},_parse:function(P,B){return typeof P=="string"?B.parse(P,this):P}}),k=I.kdf={},T=k.OpenSSL={execute:function(P,B,W,z){z||(z=a.random(64/8));var H=l.create({keySize:B+W}).compute(P,z),ee=a.create(H.words.slice(B),W*4);return H.sigBytes=B*4,c.create({key:H,iv:ee,salt:z})}},R=m.PasswordBasedCipher=M.extend({cfg:M.cfg.extend({kdf:T}),encrypt:function(P,B,W,z){z=this.cfg.extend(z);var H=z.kdf.execute(W,P.keySize,P.ivSize);z.iv=H.iv;var ee=M.encrypt.call(this,P,B,H.key,z);return ee.mixIn(H),ee},decrypt:function(P,B,W,z){z=this.cfg.extend(z),B=this._parse(B,z.format);var H=z.kdf.execute(W,P.keySize,P.ivSize,B.salt);z.iv=H.iv;var ee=M.decrypt.call(this,P,B,H.key,z);return ee}})}()})},OZM5:function(S,F,v){"use strict";v.d(F,"b",function(){return o}),v.d(F,"a",function(){return r}),v.d(F,"k",function(){return l}),v.d(F,"h",function(){return n}),v.d(F,"i",function(){return s}),v.d(F,"g",function(){return e}),v.d(F,"c",function(){return i}),v.d(F,"d",function(){return _}),v.d(F,"j",function(){return E}),v.d(F,"e",function(){return c}),v.d(F,"f",function(){return C});var w=v("KQm4"),h=v("U8pU"),I=v("Ff2n"),m=v("cDcd"),g=v.n(m),a=v("Kwbf"),f=v("WaYH"),d=.25,u=2;function o(x,M){var k=x.slice(),T=k.indexOf(M);return T>=0&&k.splice(T,1),k}function r(x,M){var k=x.slice();return k.indexOf(M)===-1&&k.push(M),k}function l(x){return x.split("-")}function n(x,M){return"".concat(x,"-").concat(M)}function s(x){return x&&x.type&&x.type.isTreeNode}function e(x,M){var k=[x],T=M[x];function R(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];P.forEach(function(B){var W=B.key,z=B.children;k.push(W),R(z)})}return R(T.children),k}function i(x,M){var k=x.clientY,T=M.selectHandle.getBoundingClientRect(),R=T.top,P=T.bottom,B=T.height,W=Math.max(B*d,u);return k<=R+W?-1:k>=P-W?1:0}function _(x,M){if(!x)return;var k=M.multiple;return k?x.slice():x.length?[x[0]]:x}var b=function(M){return M};function y(x,M){if(!x)return[];var k=M||{},T=k.processProps,R=T===void 0?b:T,P=Array.isArray(x)?x:[x];return P.map(function(B){var W=B.children,z=Object(I.a)(B,["children"]),H=y(W,M);return g.a.createElement(f.a,Object.assign({},R(z)),H)})}function E(x){if(!x)return null;var M;if(Array.isArray(x))M={checkedKeys:x,halfCheckedKeys:void 0};else if(Object(h.a)(x)==="object")M={checkedKeys:x.checked||void 0,halfCheckedKeys:x.halfChecked||void 0};else return Object(a.a)(!1,"`checkedKeys` is not an array or an object"),null;return M}function c(x,M){var k=new Set;function T(R){if(k.has(R))return;var P=M[R];if(!P)return;k.add(R);var B=P.parent,W=P.node;if(W.disabled)return;B&&T(B.key)}return(x||[]).forEach(function(R){T(R)}),Object(w.a)(k)}function C(x){var M={};return Object.keys(x).forEach(function(k){(k.startsWith("data-")||k.startsWith("aria-"))&&(M[k]=x[k])}),M}},Ohmc:function(S,F,v){S.exports=v.p+"static/certificate.fc32dc1b.jpg"},OoWo:function(S,F,v){},Ot1p:function(S,F,v){"use strict";var w=v("2qtc"),h=v("kLXV"),I=v("rAM+"),m=v("miYZ"),g=v("tsqr"),a=v("9og8"),f=v("tJVT"),d=v("jrin"),u=v("WmNS"),o=v.n(u),r=v("cDcd"),l=v.n(r),n=v("VrN/"),s=v.n(n),e=v("bdgK"),i=v("p77/"),_=v("Bd2K"),b=v("ELLl"),y=v("19Vz"),E=v("lZu9"),c=v("+NIl"),C=v("kSUc"),x=v("9Bee"),M=function(Ne){var Q=Ne.value,Ue=Q===void 0?"":Q,Ze=Ne.className,Te=Ne.showTextOnly,He=Ne.showLines,Ye=Ne.style,st=Ye===void 0?{}:Ye,ut=Object(r.useMemo)(function(){return""},[Ue]);return l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{dangerouslySetInnerHTML:{__html:ut}}))},k=v("0Owb"),T=v("dejd"),R=v("C+DQ"),P=v("1vsH"),B=v("m3rI"),W=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function z(Ne){var Q=Ne.onActionCallback,Ue=Ne.title,Ze=Ne.icon,Te=Ne.actionName,He=Ne.className,Ye=He===void 0?"":He,st=Ne.children;function ut(){Q(Te)}return l.a.createElement("a",{title:Ue,className:Ye,onClick:ut},l.a.createElement("i",{className:"md-iconfont ".concat(Ze)}),st)}var H=function(Ne){var Q=Ne.watch,Ue=Ne.showNullButton,Ze=Ne.onActionCallback,Te=Ne.fullScreen,He=Ne.insertTemp,Ye=Ne.hidetoolBar,st=Ne.uuid,ut=Ne.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(P.n)("_educoder_session_login"),"&_educoder_session=").concat(Object(P.n)("_educoder_session"),"&key=").concat(st,"&api=").concat(encodeURIComponent(B.a.PROXY_SERVER)));var et=[].concat(W,[{title:"".concat(Q?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Q?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return l.a.createElement("ul",{className:"markdown-toolbar-container"},!Ye&&et.map(function(Re,qe){return l.a.createElement("li",{key:qe},Re.actionName?l.a.createElement(z,Object(k.a)({},Re,{onActionCallback:Ze})):l.a.createElement("span",{className:"v-line"}))}),Ue?l.a.createElement("li",null,l.a.createElement(z,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ze},l.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,He&&l.a.createElement("li",null,l.a.createElement(z,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(He),onActionCallback:Ze},l.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),l.a.createElement("li",{className:"btn-full-screen"},l.a.createElement(z,{icon:"".concat(Te?"icon-shrink":"icon-enlarge"),title:Te?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ze})))},ee=v("M8RZ"),G=v("+L6B"),U=v("2/Rp"),K=v("y8nQ"),L=v("Vl3Y"),D=v("5NDa"),j=v("5rEg"),Z={labelCol:{span:4},wrapperCol:{span:20}},ie=function(Ne){var Q=Ne.callback,Ue=Ne.onCancel;function Ze(Te){Q(Te)}return l.a.createElement(L.a,Object(k.a)({},Z,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ze}),l.a.createElement(L.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},l.a.createElement(j.a,null)),l.a.createElement(L.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},l.a.createElement(j.a,null)),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(U.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(U.a,{type:"ghost",onClick:Ue},"\u53D6\u6D88")))},pe=v("7ahc"),Ee=v("HmJG"),De=v("BjJ7"),q=L.a.useForm,be={width:280,marginRight:10},ye={labelCol:{span:5},wrapperCol:{span:19}},le=function(Ne){var Q=Ne.callback,Ue=Ne.onCancel,Ze=q(),Te=Object(f.a)(Ze,1),He=Te[0];function Ye(et){Q(et)}function st(et,Re){if(et.status===-1){g.b.error(et.message);return}He.setFieldsValue({src:"/api/attachments/".concat(et.id),type:Re.type})}function ut(et){var Re=et.target.files[0];ne(Re,st)}return l.a.createElement(L.a,Object(k.a)({form:He},ye,{className:"upload-image-panel",onFinish:Ye}),l.a.createElement(L.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},l.a.createElement("div",{className:"flex-container"},l.a.createElement(L.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},l.a.createElement(j.a,{style:be})),l.a.createElement(ue,{onFileChange:ut}))),l.a.createElement(L.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},l.a.createElement(j.a,{style:{width:264}})),l.a.createElement(L.a.Item,{style:{textAlign:"right"}},l.a.createElement(U.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(U.a,{type:"ghost",onClick:Ue},"\u53D6\u6D88")))};function ue(Ne){var Q=Ne.onFileChange;return l.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",l.a.createElement("input",{type:"file",onChange:Q}))}function ne(Ne,Q){if(!Ne)throw new String("\u6CA1\u6709\u6587\u4EF6");var Ue=new FormData;Ue.append("editormd-image-file",Ne),Ue.append("file_param_name","editormd-image-file"),Ue.append("byxhr","true");var Ze=new window.XMLHttpRequest;Ze.withCredentials=!0,Ze.addEventListener("load",function(Te){Q(JSON.parse(Te.target.responseText),Ne)},!1),Ze.addEventListener("error",function(Te){console.error(Te)},!1),Ze.open("POST","".concat(De.a,"/api/attachments.json")),Ze.send(Ue)}var xe=v("giR+"),$=v("fyUT"),oe=v("7Kak"),Le=v("9yH6"),te=Le.a.Group,Y={margin:"0 8px"},X=function(Ne){var Q=Ne.callback,Ue=Ne.onCancel;function Ze(Te){Q(Te)}return l.a.createElement(L.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ze},l.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},l.a.createElement("span",{style:Y},"\u5355\u5143\u683C\u6570\uFF1A"),l.a.createElement("span",{style:Y},"\u884C\u6570"),l.a.createElement(L.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},l.a.createElement($.a,null)),l.a.createElement("span",{style:Y},"\u5217\u6570"),l.a.createElement(L.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},l.a.createElement($.a,null))),l.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},l.a.createElement("span",{style:Y},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),l.a.createElement(L.a.Item,{name:"align"},l.a.createElement(te,null,l.a.createElement(Le.a,{value:"default"},l.a.createElement("i",{className:"fa fa-align-justify"})),l.a.createElement(Le.a,{value:"left"},l.a.createElement("i",{className:"fa fa-align-left"})),l.a.createElement(Le.a,{value:"center"},l.a.createElement("i",{className:"fa fa-align-center"})),l.a.createElement(Le.a,{value:"right"},l.a.createElement("i",{className:"fa fa-align-right"}))))),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(U.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(U.a,{type:"ghost",onClick:Ue},"\u53D6\u6D88")))},J=v("ErOA"),ve=v("7Cbv"),he="link",Ce="upload-image",Pe="code-block",de="add-table",ke="------------",me={default:ke,left:":".concat(ke),center:":".concat(ke,":"),right:"".concat(ke,":")},Be=v("9VGf"),ft,vt;function Xe(){}var Bt=0,Ae=1e4,We="\u2581",dt=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function Ge(Ne){return/^\d+$/.test(Ne)?"".concat(Ne,"px"):Ne}var je=navigator.platform.toUpperCase().indexOf("MAC")>=0,Fe=je?"Cmd":"Ctrl",ce=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],we=(ft={},Object(d.a)(ft,Fe+"-B","bold"),Object(d.a)(ft,Fe+"-I","italic"),ft),se=(vt={},Object(d.a)(vt,he,"\u6DFB\u52A0\u94FE\u63A5"),Object(d.a)(vt,Pe,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(d.a)(vt,Ce,"\u6DFB\u52A0\u6587\u4EF6"),Object(d.a)(vt,de,"\u6DFB\u52A0\u8868\u683C"),vt),_e=F.a=function(Ne){var Q=Ne.defaultValue,Ue=Q===void 0?"":Q,Ze=Ne.onChange,Te=Ne.width,He=Te===void 0?"100%":Te,Ye=Ne.height,st=Ye===void 0?400:Ye,ut=Ne.miniToolbar,et=ut===void 0?!1:ut,Re=Ne.isFocus,qe=Re===void 0?!1:Re,At=Ne.watch,$e=Ne.insertTemp,ht=Ne.mode,Rt=ht===void 0?"markdown":ht,pt=Ne.id,wt=pt===void 0?"markdown-editor-id":pt,Ct=Ne.showResizeBar,Kt=Ct===void 0?!1:Ct,Vt=Ne.noStorage,dn=Vt===void 0?!1:Vt,cn=Ne.showNullButton,qt=cn===void 0?!1:cn,Lt=Ne.hidetoolBar,Tn=Lt===void 0?!1:Lt,Wt=Ne.fullScreen,gn=Wt===void 0?!1:Wt,ln=Ne.onBlur,Un=Ne.onCMBeforeChange,In=Ne.onFullScreen,Rr=Ne.className,Mt=Rr===void 0?"":Rr,on=Ne.disablePaste,ea=on===void 0?!1:on,Vr=Ne.placeholder,vr=Vr===void 0?"":Vr,jr=Ne.values,wa=jr===void 0?"":jr,An=Object(r.useState)(null),ur=Object(f.a)(An,2),Ut=ur[0],tr=ur[1],Yn=Object(r.useState)(Ue),Xn=Object(f.a)(Yn,2),nr=Xn[0],br=Xn[1],xa=Object(r.useState)(At),Wr=Object(f.a)(xa,2),Ir=Wr[0],hr=Wr[1],Ca=Object(r.useState)(gn),ia=Object(f.a)(Ca,2),Ur=ia[0],Yr=ia[1],zn=Object(r.useState)(""),Gn=Object(f.a)(zn,2),Pn=Gn[0],rr=Gn[1],Ja=Object(r.useState)(0),oa=Object(f.a)(Ja,2),Ar=oa[0],Sa=oa[1],yi=Object(r.useState)(st),Eo=Object(f.a)(yi,2),wo=Eo[0],Ka=Eo[1],zi=Object(r.useState)(!1),Di=Object(f.a)(zi,2),Fo=Di[0],_i=Di[1],fa=Object(r.useRef)(Object(ve.a)()),pr=Object(r.useRef)(!1),ka=Object(r.useRef)(),ui=Object(r.useRef)(),ji=Object(r.useRef)(),gi=Object(r.useRef)(),ei=Object(r.useRef)(),En=function(){var $n=Object(a.a)(o.a.mark(function Cr(){var ar,Kr;return o.a.wrap(function(ca){for(;;)switch(ca.prev=ca.next){case 0:return ca.next=2,Object(J.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:fa.current}});case 2:Kr=ca.sent,Kr!=null&&(ar=Kr.attachments)!==null&&ar!==void 0&&ar.length&&(console.log("cm:",Ut,ui),Kr.attachments.map(function(Zr){Zr.content_type.indexOf("image")>-1?Ut.replaceSelection("![,](/api/attachments/".concat(Zr.id,"?type=").concat(Zr.content_type,")")):Zr.content_type.indexOf("video")>-1?Ut.replaceSelection('<video width="100%" controls src="'.concat(B.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):Zr.content_type.indexOf("pdf")>-1?Ut.replaceSelection('<a href="'.concat(B.a.API_SERVER,"/api/attachments/").concat(Zr.id,"?type=").concat(Zr.content_type,'&disposition=inline" target="_blank">').concat(Zr.name,"</a>")):Ut.replaceSelection("[".concat(Zr.name,"](").concat(B.a.API_SERVER,"/api/attachments/").concat(Zr.id,"?type=").concat(Zr.content_type,")"))}));case 4:case"end":return ca.stop()}},Cr)}));return function(){return $n.apply(this,arguments)}}();Object(r.useEffect)(function(){br(wa),Ut==null||Ut.setValue(wa)},[wa]),Object(r.useEffect)(function(){In==null||In(Ur)},[Ur]),Object(r.useEffect)(function(){if(ui.current){var $n=s.a.fromTextArea(ui.current,{mode:Rt,lineNumbers:!et,lineWrapping:!0,value:Ue,autoCloseTags:!0,autoCloseBrackets:!0});qe&&$n.focus();function Cr(ar,Kr){if(ea){Kr.preventDefault();return}var sa=Kr.clipboardData;if(sa){var ca=sa.types.toString(),Zr=sa.items;if(ca==="Files"||sa.types.indexOf("Files")>-1){if(Kr.preventDefault(),Rt=="stex")return;try{var ti,Ci=Zr[1];((ti=Zr[0])===null||ti===void 0?void 0:ti.kind)==="file"&&(Ci=Zr[0]);var Sr=Ci.getAsFile(),Gi=Sr.name.split(".").pop();ne(Sr,function(ha){if(ha.id){var Si,Ei,Ui;(Sr==null||((Si=Sr.type)===null||Si===void 0)?void 0:Si.indexOf("image"))>-1?$n.replaceSelection("![,](/api/attachments/".concat(ha.id,"?type=").concat(ha.content_type,")")):(Sr==null||((Ei=Sr.type)===null||Ei===void 0)?void 0:Ei.indexOf("video"))>-1?$n.replaceSelection('<video width="100%" controls src="'.concat(B.a.API_SERVER,"/api/attachments/").concat(ha.id,'"></video>')):(Sr==null||((Ui=Sr.type)===null||Ui===void 0)?void 0:Ui.indexOf("pdf"))>-1?$n.replaceSelection('<a href="'.concat(B.a.API_SERVER,"/api/attachments/").concat(ha.id,"?type=").concat(Sr.type,'&disposition=inline" target="_blank">').concat(Sr.name,"</a>")):ce.includes(Gi)?$n.replaceSelection('<a href="'.concat(B.a.API_SERVER,"/api/attachments/").concat(ha.id,'?type=office&disposition=inline" target="_blank">').concat(Sr.name,"</a>")):$n.replaceSelection("[".concat(Sr.name,"](").concat(B.a.API_SERVER,"/api/attachments/").concat(ha.id,"?type=").concat(ha.content_type,")"))}else(ha==null?void 0:ha.status)===401&&(document.location.href="/user/login")})}catch(ha){g.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return $n.on("paste",Cr),$n.on("dragleave",function(ar,Kr){ji.current.classList.remove("mouse-hover-md")}),$n.on("dragover",function(ar,Kr){ji.current.classList.add("mouse-hover-md")}),$n.on("drop",function(ar,Kr){ji.current.classList.add("mouse-hover-md");var sa;if(sa=Kr.dataTransfer.files,sa.length>0){Kr.preventDefault(),Kr.stopPropagation();for(var ca=function(Ci){var Sr=sa[Ci],Gi=Sr.name.split(".").pop();ne(Sr,function(ha){if(ha.id){var Si,Ei,Ui;(Sr==null||((Si=Sr.type)===null||Si===void 0)?void 0:Si.indexOf("image"))>-1?$n.replaceSelection("![,](/api/attachments/".concat(ha.id,"?type=").concat(ha.content_type,")")):(Sr==null||((Ei=Sr.type)===null||Ei===void 0)?void 0:Ei.indexOf("video"))>-1?$n.replaceSelection('<video width="100%" controls src="'.concat(B.a.API_SERVER,"/api/attachments/").concat(ha.id,'"></video>')):(Sr==null||((Ui=Sr.type)===null||Ui===void 0)?void 0:Ui.indexOf("pdf"))>-1?$n.replaceSelection('<a href="'.concat(B.a.API_SERVER,"/api/attachments/").concat(ha.id,"?type=").concat(Sr.type,'&disposition=inline" target="_blank">').concat(Sr.name,"</a>")):ce.includes(Gi)?$n.replaceSelection('<a href="'.concat(B.a.API_SERVER,"/api/attachments/").concat(ha.id,'?type=office&disposition=inline" target="_blank">').concat(Sr.name,"</a>")):$n.replaceSelection("[".concat(Sr.name,"](").concat(B.a.API_SERVER,"/api/attachments/").concat(ha.id,"?type=").concat(ha.content_type,")"))}else(ha==null?void 0:ha.status)===401&&(document.location.href="/user/login")})},Zr=0;Zr<sa.length;Zr++)ca(Zr)}}),tr($n),function(){$n.off("paste",Cr)}}},[]);var ua=Object(r.useCallback)(function(){if(ji.current)try{}catch($n){console.log($n,"---- to set md editor body height")}},[wo,ji,Ur]);Object(r.useEffect)(function(){function $n(){var ar=new e.default(function(Kr){var sa=Object(I.a)(Kr),ca;try{for(sa.s();!(ca=sa.n()).done;){var Zr=ca.value;(Zr.target.offsetHeight>0||Zr.target.offsetWidth>0)&&(ua(),Ut.setSize("100%","100%"),Ut.refresh())}}catch(ti){sa.e(ti)}finally{sa.f()}});return ar.observe(ui.current.parentElement),ar}if(Ut){var Cr=$n();return function(){Cr.unobserve(ui.current.parentElement)}}},[Ut,ua]),Object(r.useEffect)(function(){if(Ut){for(var $n=[],Cr=function(){var Zr=Kr[ar];sa=Object(f.a)(Zr,2);var ti=sa[0],Ci=sa[1],Sr=Object(d.a)({},ti,function(){Mi(Ci)});$n.push(Sr),Ut.addKeyMap(Sr)},ar=0,Kr=Object.entries(we);ar<Kr.length;ar++){var sa;Cr()}return ka.current=setInterval(function(){pr.current&&En()},4e3),function(){clearInterval(ka.current);var ca=Object(I.a)($n),Zr;try{for(ca.s();!(Zr=ca.n()).done;){var ti=Zr.value;Ut.removeKeyMap(ti)}}catch(Ci){ca.e(Ci)}finally{ca.f()}}}},[Ut]),Object(r.useEffect)(function(){gn!==Ur&&Yr(gn)},[gn]),Object(Be.a)(function(){if(!dn&&Ar>0){var $n=new Date().getTime(),Cr=window.sessionStorage.getItem(wt);$n>=Ar+Ae&&(!Cr||Cr!==nr)&&(window.sessionStorage.setItem(wt,nr),_i(!0))}},Ae),Object(r.useEffect)(function(){hr(At)},[Ut,At]),Object(r.useEffect)(function(){Ut&&(qe&&Ut.focus())},[Ut,qe]),Object(r.useEffect)(function(){if(Ir&&Ut){var $n=Ut.getScrollerElement();function Cr(ar){var Kr=ar.target;if(ei.current){var sa=Kr.scrollTop/Kr.scrollHeight;ei.current.scrollTop=ei.current.scrollHeight*sa}}return $n.addEventListener("scroll",Cr),function(){$n.removeEventListener("scroll",Cr)}}},[Ut,Ir]),Object(r.useEffect)(function(){if(Ut&&Un){function $n(Cr,ar){Un(Cr,ar)}return Ut.on("beforeChange",$n),function(){Ut.off("beforeChange",$n)}}},[Ut,Un]),Object(r.useEffect)(function(){if(Ut&&ln){function $n(){ln(Ut.getValue())}return Ut.on("blur",$n),function(){Ut.off("blur",$n)}}},[Ut,ln]),Object(r.useEffect)(function(){if(Ut){function $n(Cr){var ar=Cr.getValue();br(ar),Sa(new Date().getTime()),Cr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ze&&Ze(ar)}return Ut.on("change",$n),function(){Ut.off("change",$n)}}},[Ut,Ze]),Object(r.useEffect)(function(){Ut&&(Ue==null?(Ut.setValue(""),br("")):Ue!==Ut.getValue()&&(Ut.setValue(Ue),br(Ue),Ut.setCursor(Ut.lineCount(),0)))},[Ut,Ue]);var Mi=Object(r.useCallback)(function($n){var Cr=Ut.getCursor(),ar=Ut.getSelection(),Kr=ar.split(`
`);switch($n){case"bold":return Ut.replaceSelection("**"+ar+"**"),ar===""&&Ut.setCursor(Cr.line,Cr.ch+2),Ut.focus();case"italic":return Ut.replaceSelection("*"+ar+"*"),ar===""&&Ut.setCursor(Cr.line,Cr.ch+1),Ut.focus();case"code":return Ut.replaceSelection("`"+ar+"`"),ar===""&&Ut.setCursor(Cr.line,Cr.ch+1),Ut.focus();case"inline-latex":return Ut.replaceSelection("`$$"+ar+"$$`"),ar===""&&Ut.setCursor(Cr.line,Cr.ch+3),Ut.focus();case"latex":return Ut.replaceSelection("```latex\n"+ar+"\n```"),Ut.setCursor(Cr.line+1,ar.length+1),Ut.focus();case"line-break":return Ut.replaceSelection(`<br/>
`),Ut.focus();case"list-ul":return ar===""?Ut.replaceSelection("- "+ar):Ut.replaceSelection(Kr.map(function(sa){return sa===""?"":"- ".concat(sa)}).join(`
`)),Ut.focus();case"list-ol":return ar===""?Ut.replaceSelection("1. "+ar):Ut.replaceSelection(Kr.map(function(sa,ca){return sa===""?"":"".concat(ca+1,". ").concat(sa)}).join(`
`)),Ut.focus();case"add-null-ch":return ar===""&&Ut.setCursor(Cr.line,Cr.ch+1),Ut.replaceSelection(We),Ut.focus();case"inster-template-1":return ar===""&&Ut.setCursor(Cr.line,Cr.ch),Ut.replaceSelection(dt),Ut.focus();case"eraser":return Ut.setValue(""),Ut.focus();case"trigger-watch":return hr(!Ir),Ut.focus();case"trigger-full-screen":return Yr(!Ur),Ut.focus();case he:rr(he);return;case Pe:rr(Pe);return;case Ce:rr(Ce);return;case de:rr(de);return;default:throw new Error}},[Ut,Ir,Ur]),ao=Object(r.useCallback)(function($n){rr("");switch(Pn){case he:var Cr=$n.title,ar=$n.link;return Ut.replaceSelection("[".concat(Cr,"](").concat(ar,")")),Ut.focus();case Pe:var Kr=$n.language,sa=$n.content;return Ut.replaceSelection(["```"+Kr,sa,"```"].join(`
`)),Ut.focus();case Ce:var ca=$n.src,Zr=$n.alt;return Zr?Ut.replaceSelection("![ ".concat(Zr," ]( ").concat(ca,' "').concat(Zr,'" )')):Ut.replaceSelection("![,](".concat(ca,")")),Ut.focus();case de:for(var ti=$n.row,Ci=$n.col,Sr=$n.align,Gi=`
`,ha=0;ha<ti;ha++){for(var Si=[],Ei=[],Ui=0;Ui<Ci;Ui++)ha===1&&Ei.push(me[Sr]),Si.push(" ");ha===1&&(Gi+="| ".concat(Ei.join(" | "),` |
`)),Gi+="| ".concat(Si.join(Ci===1?"":" | "),` |
`)}return Ut.replaceSelection(Gi+`
`),Ut.focus();default:throw new Error}},[Ut,Pn]),hi=Object(r.useMemo)(function(){switch(Pn){case he:return l.a.createElement(ie,{callback:ao,onCancel:Ia});case Pe:return l.a.createElement(pe.b,{callback:ao,onCancel:Ia});case Ce:return l.a.createElement(le,{callback:ao,onCancel:Ia});case de:return l.a.createElement(X,{callback:ao,onCancel:Ia});default:return null}},[Pn]);function Ia(){rr("")}Object(r.useEffect)(function(){if(gi.current){var $n=gi.current,Cr=!1,ar=0;function Kr(Zr){Cr=!0,ar=Zr.pageY}function sa(){Cr=!1}function ca(Zr){if(Cr){var ti=Zr.pageY-ar;ti<0&&(ti=0),ti>300&&(ti=300);var Ci=st+ti+"px";Ka(Ci)}}return $n.addEventListener("mousedown",Kr),document.addEventListener("mousemove",ca),document.addEventListener("mouseup",sa),function(){$n.removeEventListener("mousedown",Kr),document.removeEventListener("mousemove",ca),document.removeEventListener("mouseup",sa)}}},[Ut,gi]),Object(r.useEffect)(function(){Ka(st)},[st]);var La=Ge(He),io=Ge(wo),Ji={width:La,height:io},xo=Object(r.useMemo)(function(){if(Ar){var $n=new Date(Ar),Cr=$n.getHours(),ar=$n.getMinutes(),Kr=$n.getSeconds();return Cr=Cr<10?"0"+Cr:Cr,ar=ar<10?"0"+ar:ar,Kr=Kr<10?"0"+Kr:Kr,"".concat(Cr,":").concat(ar,":").concat(Kr)}return 0},[Ar]);function vo(){window.sessionStorage.removeItem(wt),_i(!1),Sa(0)}function Co(){_i(!1),Sa(0),Ut.setValue(window.sessionStorage.getItem(wt))}function Ho($n,Cr){var ar=Ut.getValue();ar=ar.replace($n,Cr),br(ar),Ut==null||Ut.setValue(ar)}return l.a.createElement(r.Fragment,null,l.a.createElement("div",{className:"markdown-editor-wrapper",ref:ji},l.a.createElement("div",{className:"markdown-editor-container ".concat(Mt," ").concat(Ir?"on-preview":""," ").concat(et?"mini":""," ").concat(Ur?"full-screen":""),style:Ji},l.a.createElement(H,{insertTemp:$e,watch:Ir,fullScreen:Ur,showNullButton:qt,onActionCallback:Mi,hidetoolBar:Tn,uuid:fa.current,setOpenPhones:function(){pr.current=!0}}),l.a.createElement("div",{className:"markdown-editor-body"},l.a.createElement("div",{className:"codemirror-container"},l.a.createElement("textarea",{ref:ui,placeholder:vr})),Ir?l.a.createElement("div",{ref:ei,className:"preview-container"},Rt==="stex"&&l.a.createElement(M,{value:nr}),Rt!=="stex"&&l.a.createElement(x.a,{edit:!0,value:nr,replaces:Ho})):null))),Kt?l.a.createElement("a",{ref:gi,className:"editor-resize"}):null,l.a.createElement(ee.a,null,se[Pn]?l.a.createElement(h.a,{centered:!0,title:se[Pn],visible:!0,onCancel:Ia,footer:null,className:"markdown-popup-form"},hi):null))}},P2ho:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var w={Again:57349,AltLeft:56,AltRight:57400,ArrowDown:57424,ArrowLeft:57419,ArrowRight:57421,ArrowUp:57416,AudioVolumeDown:57390,AudioVolumeMute:57376,AudioVolumeUp:57392,Backquote:41,Backslash:43,Backspace:14,BracketLeft:26,BracketRight:27,BrowserBack:57450,BrowserFavorites:57446,BrowserForward:57449,BrowserHome:57394,BrowserRefresh:57447,BrowserSearch:57445,BrowserStop:57448,CapsLock:58,Comma:51,ContextMenu:57437,ControlLeft:29,ControlRight:57373,Convert:121,Copy:57464,Cut:57404,Delete:57427,Digit0:11,Digit1:2,Digit2:3,Digit3:4,Digit4:5,Digit5:6,Digit6:7,Digit7:8,Digit8:9,Digit9:10,Eject:57469,End:57423,Enter:28,Equal:13,Escape:1,F1:59,F10:68,F11:87,F12:88,F13:93,F14:94,F15:95,F16:85,F17:57347,F18:57463,F19:57348,F2:60,F20:90,F21:116,F22:57465,F23:109,F24:111,F3:61,F4:62,F5:63,F6:64,F7:65,F8:66,F9:67,Find:57409,Help:57461,Hiragana:119,Home:57415,Insert:57426,IntlBackslash:86,IntlRo:115,IntlYen:125,KanaMode:112,Katakana:120,KeyA:30,KeyB:48,KeyC:46,KeyD:32,KeyE:18,KeyF:33,KeyG:34,KeyH:35,KeyI:23,KeyJ:36,KeyK:37,KeyL:38,KeyM:50,KeyN:49,KeyO:24,KeyP:25,KeyQ:16,KeyR:19,KeyS:31,KeyT:20,KeyU:22,KeyV:47,KeyW:17,KeyX:45,KeyY:21,KeyZ:44,Lang3:120,Lang4:119,Lang5:118,LaunchApp1:57451,LaunchApp2:57377,LaunchMail:57452,MediaPlayPause:57378,MediaSelect:57453,MediaStop:57380,MediaTrackNext:57369,MediaTrackPrevious:57360,MetaLeft:57435,MetaRight:57436,Minus:12,NonConvert:123,NumLock:69,Numpad0:82,Numpad1:79,Numpad2:80,Numpad3:81,Numpad4:75,Numpad5:76,Numpad6:77,Numpad7:71,Numpad8:72,Numpad9:73,NumpadAdd:78,NumpadComma:126,NumpadDecimal:83,NumpadDivide:57397,NumpadEnter:57372,NumpadEqual:89,NumpadMultiply:55,NumpadParenLeft:57462,NumpadParenRight:57467,NumpadSubtract:74,Open:100,PageDown:57425,PageUp:57417,Paste:101,Pause:57414,Period:52,Power:57438,PrintScreen:84,Props:57350,Quote:40,ScrollLock:70,Semicolon:39,ShiftLeft:42,ShiftRight:54,Slash:53,Sleep:57439,Space:57,Suspend:57381,Tab:15,Undo:57351,WakeUp:57443};F.default=w},P5Jw:function(S,F,v){"use strict";var w=v("rHrb"),h=w.CopyToClipboard;h.CopyToClipboard=h,S.exports=h},PD8m:function(S,F){S.exports={name:"memoryStorage",read:w,write:h,each:I,remove:m,clearAll:g};var v={};function w(a){return v[a]}function h(a,f){v[a]=f}function I(a){for(var f in v)v.hasOwnProperty(f)&&a(v[f],f)}function m(a){delete v[a]}function g(a){v={}}},PVpz:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("ETIr"),v("cv67"),v("K3mO"),v("OLod"))})(this,function(w){return function(){var h=w,I=h.lib,m=I.StreamCipher,g=h.algo,a=[],f=[],d=[],u=g.RabbitLegacy=m.extend({_doReset:function(){var r=this._key.words,l=this.cfg.iv,n=this._X=[r[0],r[3]<<16|r[2]>>>16,r[1],r[0]<<16|r[3]>>>16,r[2],r[1]<<16|r[0]>>>16,r[3],r[2]<<16|r[1]>>>16],s=this._C=[r[2]<<16|r[2]>>>16,r[0]&4294901760|r[1]&65535,r[3]<<16|r[3]>>>16,r[1]&4294901760|r[2]&65535,r[0]<<16|r[0]>>>16,r[2]&4294901760|r[3]&65535,r[1]<<16|r[1]>>>16,r[3]&4294901760|r[0]&65535];this._b=0;for(var e=0;e<4;e++)o.call(this);for(var e=0;e<8;e++)s[e]^=n[e+4&7];if(l){var i=l.words,_=i[0],b=i[1],y=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,E=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,c=y>>>16|E&4294901760,C=E<<16|y&65535;s[0]^=y,s[1]^=c,s[2]^=E,s[3]^=C,s[4]^=y,s[5]^=c,s[6]^=E,s[7]^=C;for(var e=0;e<4;e++)o.call(this)}},_doProcessBlock:function(r,l){var n=this._X;o.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var s=0;s<4;s++)a[s]=(a[s]<<8|a[s]>>>24)&16711935|(a[s]<<24|a[s]>>>8)&4278255360,r[l+s]^=a[s]},blockSize:128/32,ivSize:64/32});function o(){for(var r=this._X,l=this._C,n=0;n<8;n++)f[n]=l[n];l[0]=l[0]+1295307597+this._b|0,l[1]=l[1]+3545052371+(l[0]>>>0<f[0]>>>0?1:0)|0,l[2]=l[2]+886263092+(l[1]>>>0<f[1]>>>0?1:0)|0,l[3]=l[3]+1295307597+(l[2]>>>0<f[2]>>>0?1:0)|0,l[4]=l[4]+3545052371+(l[3]>>>0<f[3]>>>0?1:0)|0,l[5]=l[5]+886263092+(l[4]>>>0<f[4]>>>0?1:0)|0,l[6]=l[6]+1295307597+(l[5]>>>0<f[5]>>>0?1:0)|0,l[7]=l[7]+3545052371+(l[6]>>>0<f[6]>>>0?1:0)|0,this._b=l[7]>>>0<f[7]>>>0?1:0;for(var n=0;n<8;n++){var s=r[n]+l[n],e=s&65535,i=s>>>16,_=((e*e>>>17)+e*i>>>15)+i*i,b=((s&4294901760)*s|0)+((s&65535)*s|0);d[n]=_^b}r[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,r[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,r[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,r[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,r[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,r[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,r[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,r[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}h.RabbitLegacy=m._createHelper(u)}(),w.RabbitLegacy})},"Q+I+":function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAAA8CAMAAADygAyiAAAAeFBMVEUAAACvv7+nt8elusWmusKnt8OmucKmucGlt8KmuMKlt8GmuMKmuMGluMKmt8KluMKmuMKmt8KluMGmuMKmuMGlt8KluMGmuMGmuMK+y9PQ2d/W3uPb4ubg5unk6ezo7O/r7/Hu8vTx9Pb09/j3+fr6+/z9/f7///9IiVUSAAAAGHRSTlMAECAwP0BQX2BwgI+Qn6Cwv8DP0N/g7/D8rFP8AAACAElEQVRYw+3X2XaCMBAG4CzFYtSgIiRYu7rk/d+wCJwUy8wk0V72v9KjfCdMhoQwNkm22loy64Vk4ci1jciKh5ystlHZBQYlI51Wose0s9HRlJPbhAgCKlKgJQGlOHYzufx5se4y40lQzWb9dYvnfqJ8gVUG/L15Ozrnzl+v05+YGjeD+JlwCNqf3JDTHodsLZi2FNScnc+lwaG2GWoSenejfBLQbjxRANQN6NzsL53U4JANQN31H9Yeuw8vD0LvfwhdHoReBujgwjUqyREN6e/sRMzaZvycolA/MPdGQMV45UChU7ghc8ZNEHqFBzSGTLteqhDU9FN2Jh5aq9qnn/tyKwlCHw6a+xuo7BZwYTwLOXv4QWuv9pAZVl1ZUdARrvR1xgeo8lsT1wNUoZU+WBTS441JanOFCqzSX+Di30JGT3ZKmQk2RyoN3Ji1GRMZtt9KpKcPUPHIndaAPT3kePNTQUIKHBAI5SQkoqEq8FqjY6E8AInIbbYKvmmpOCgLv/ttHn0T8Tdnwk7JWczrqPkbJyyZSCcklZJFhxMV15ylBOsCM2OJERpiFGfpEctfC2Y5v4fprbm3yvxu5bbPFWP/0KS9n67xh8lV91UkMxly4NrKxOHgJ5C0LiDOW2nFqlNOV+y+g1saVOFQkQRpHJonQRxdI8vEPuIavLsSnbNvHF76qBcgeTgAAAAASUVORK5CYII="},Q7Vx:function(S,F,v){},QV2g:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=w;function w(){for(var m,g=[],a=0;a<256;a++){m=a;for(var f=0;f<8;f++)m=m&1?3988292384^m>>>1:m>>>1;g[a]=m}return g}var h=w();function I(m,g,a,f){var d=h,u=f+a;m^=-1;for(var o=f;o<u;o++)m=m>>>8^d[(m^g[o])&255];return m^-1}},RELg:function(S,F,v){var w=v("MFOe"),h=w.Global;S.exports={name:"oldIE-userDataStorage",write:f,read:d,each:u,remove:o,clearAll:r};var I="storejs",m=h.document,g=s(),a=(h.navigator?h.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function f(e,i){if(a)return;var _=n(e);g(function(b){b.setAttribute(_,i),b.save(I)})}function d(e){if(a)return;var i=n(e),_=null;return g(function(b){_=b.getAttribute(i)}),_}function u(e){g(function(i){for(var _=i.XMLDocument.documentElement.attributes,b=_.length-1;b>=0;b--){var y=_[b];e(i.getAttribute(y.name),y.name)}})}function o(e){var i=n(e);g(function(_){_.removeAttribute(i),_.save(I)})}function r(){g(function(e){var i=e.XMLDocument.documentElement.attributes;e.load(I);for(var _=i.length-1;_>=0;_--)e.removeAttribute(i[_].name);e.save(I)})}var l=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function n(e){return e.replace(/^\d/,"___$&").replace(l,"___")}function s(){if(!m||!m.documentElement||!m.documentElement.addBehavior)return null;var e="script",i,_,b;try{_=new ActiveXObject("htmlfile"),_.open(),_.write("<"+e+">document.w=window</"+e+'><iframe src="/favicon.ico"></iframe>'),_.close(),i=_.w.frames[0].document,b=i.createElement("div")}catch(y){b=m.createElement("div"),i=m.body}return function(y){var E=[].slice.call(arguments,0);E.unshift(b),i.appendChild(b),b.addBehavior("#default#userData"),b.load(I),y.apply(this,E),i.removeChild(b);return}}},RMFE:function(S,F){S.exports="data:image/png;base64,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"},RTVd:function(S,F,v){S.exports={"code-area-container":"code-area-container___37oB0","only-view":"only-view___1om7F","monaco-editor-container":"monaco-editor-container___2UFXm",frame:"frame___2B67h"}},"S+dL":function(S,F){S.exports="data:image/gif;base64,R0lGODlhFAAQAOZVAD6Q33p6ezZto2VnaW5vcDuCxiYvNysvM1tdXzNij5eXlyg0QTA0OExOUWZnaS8zN19hYzFYf0Oi/Sg1QoeHh2JjZWZoaTdzrTRmljl5tzFZgDBWez6P3Tl4tjl8uzdxqWBiYys/VCUqL39/gHV2dy4yNScyPDJeiEpNTzk8P0CX6jc7PiYuNWlqaywwNDZtojAzNytDWScrLitAVUGb8Xl6eoWFhTp+wDNgjWRmZ4+QkFdZWzo9QIODgyo/Uzh3syg0QCczPmprbTRllW9wcSotMVJUVjZupDuEylBSVUGb8kxPUZGRkTd0rUGc82JkZUKe9j2M1zg7P4iIiEOj/yUpLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6N0U3Nzk1NkY5QkRGMTFFQUIzQzFDQjY5MEVFODZDMDciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6N0U3Nzk1NzA5QkRGMTFFQUIzQzFDQjY5MEVFODZDMDciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo3RTc3OTU2RDlCREYxMUVBQjNDMUNCNjkwRUU4NkMwNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo3RTc3OTU2RTlCREYxMUVBQjNDMUNCNjkwRUU4NkMwNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUyAFUALAAAAAAUABAAAAd5gFWCg4RSLoSIiVUPFlNEhAwDCIoyST1TUwGCBwM6AweJPCSYmJpVCAMMgykgFRUtFKSlilVCsreZtAS4sqaJu7yzisDBvhAKyBDEvL6Iy7jNhA7BwoklKA0NRiO30bRFOzakpqiqtItPsTWbA0wWoOcrOUuEMA6TgQAh+QQFMgBVACwAAAAAFAAQAAAHeIBVgoOEISaEiIlVExlUSIQLAgmKIidOVFQAggYCNAIGiTFRmJiaVQkCC4MzHxcXHhKkpYpVN7K3mbQFuLKmibu8s4rAwb4YpBjEvL6IyrjMhB3BwolBGxEROCq30LQsQ1CkpqiqtItNsRybAkpHoOY+PxqEQC+TgQA7"},S6kV:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("OLod"))})(this,function(w){return w.mode.OFB=function(){var h=w.lib.BlockCipherMode.extend(),I=h.Encryptor=h.extend({processBlock:function(m,g){var a=this._cipher,f=a.blockSize,d=this._iv,u=this._keystream;d&&(u=this._keystream=d.slice(0),this._iv=void 0),a.encryptBlock(u,0);for(var o=0;o<f;o++)m[g+o]^=u[o]}});return h.Decryptor=I,h}(),w.mode.OFB})},"SA+Z":function(S,F,v){var w=v("wTVA"),h=v("EbDI"),I=v("ZhPi"),m=v("wkBT");function g(a){return w(a)||h(a)||I(a)||m()}S.exports=g,S.exports.__esModule=!0,S.exports.default=S.exports},SJMd:function(S,F){/**
* @license
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var v,w,h,I=!1,m,g;window.PR_SHOULD_USE_CONTINUATION=!0;var a,f;(function(){var d=window,u=["break,continue,do,else,for,if,return,while"],o=[u,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],r=[o,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],l=[r,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],n=[r,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],s=[r,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],e="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",i=[r,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],_="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",b=[u,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],y=[u,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],E=[u,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],c=[l,s,n,i,_,b,y,E],C=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,x="str",M="kwd",k="com",T="typ",R="lit",P="pun",B="pln",W="tag",z="dec",H="src",ee="atn",G="atv",U="nocode",K="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function L(te){for(var Y=0,X=!1,J=!1,ve=0,he=te.length;ve<he;++ve){var Ce=te[ve];if(Ce.ignoreCase)J=!0;else if(/[a-z]/i.test(Ce.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){X=!0,J=!1;break}}var Pe={b:8,t:9,n:10,v:11,f:12,r:13};function de(vt){var Xe=vt.charCodeAt(0);if(Xe!==92)return Xe;var Bt=vt.charAt(1);return Xe=Pe[Bt],Xe||("0"<=Bt&&Bt<="7"?parseInt(vt.substring(1),8):Bt==="u"||Bt==="x"?parseInt(vt.substring(2),16):vt.charCodeAt(1))}function ke(vt){if(vt<32)return(vt<16?"\\x0":"\\x")+vt.toString(16);var Xe=String.fromCharCode(vt);return Xe==="\\"||Xe==="-"||Xe==="]"||Xe==="^"?"\\"+Xe:Xe}function me(vt){var Xe=vt.substring(1,vt.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),Bt=[],Ae=Xe[0]==="^",We=["["];Ae&&We.push("^");for(var dt=Ae?1:0,Ge=Xe.length;dt<Ge;++dt){var je=Xe[dt];if(/\\[bdsw]/i.test(je))We.push(je);else{var Fe=de(je),ce;dt+2<Ge&&Xe[dt+1]==="-"?(ce=de(Xe[dt+2]),dt+=2):ce=Fe,Bt.push([Fe,ce]),ce<65||Fe>122||(ce<65||Fe>90||Bt.push([Math.max(65,Fe)|32,Math.min(ce,90)|32]),ce<97||Fe>122||Bt.push([Math.max(97,Fe)&~32,Math.min(ce,122)&~32]))}}Bt.sort(function(Ne,Q){return Ne[0]-Q[0]||Q[1]-Ne[1]});for(var we=[],se=[],dt=0;dt<Bt.length;++dt){var _e=Bt[dt];_e[0]<=se[1]+1?se[1]=Math.max(se[1],_e[1]):we.push(se=_e)}for(var dt=0;dt<we.length;++dt){var _e=we[dt];We.push(ke(_e[0])),_e[1]>_e[0]&&(_e[1]+1>_e[0]&&We.push("-"),We.push(ke(_e[1])))}return We.push("]"),We.join("")}function Be(vt){for(var Xe=vt.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Bt=Xe.length,Ae=[],We=0,dt=0;We<Bt;++We){var Ge=Xe[We];if(Ge==="(")++dt;else if(Ge.charAt(0)==="\\"){var je=+Ge.substring(1);je&&(je<=dt?Ae[je]=-1:Xe[We]=ke(je))}}for(var We=1;We<Ae.length;++We)Ae[We]===-1&&(Ae[We]=++Y);for(var We=0,dt=0;We<Bt;++We){var Ge=Xe[We];if(Ge==="(")++dt,Ae[dt]||(Xe[We]="(?:");else if(Ge.charAt(0)==="\\"){var je=+Ge.substring(1);je&&je<=dt&&(Xe[We]="\\"+Ae[je])}}for(var We=0;We<Bt;++We)Xe[We]==="^"&&Xe[We+1]!=="^"&&(Xe[We]="");if(vt.ignoreCase&&X)for(var We=0;We<Bt;++We){var Ge=Xe[We],Fe=Ge.charAt(0);Ge.length>=2&&Fe==="["?Xe[We]=me(Ge):Fe!=="\\"&&(Xe[We]=Ge.replace(/[a-zA-Z]/g,function(se){var _e=se.charCodeAt(0);return"["+String.fromCharCode(_e&~32,_e|32)+"]"}))}return Xe.join("")}for(var ft=[],ve=0,he=te.length;ve<he;++ve){var Ce=te[ve];if(Ce.global||Ce.multiline)throw new Error(""+Ce);ft.push("(?:"+Be(Ce)+")")}return new RegExp(ft.join("|"),J?"gi":"g")}function D(te,Y){var X=/(?:^|\s)nocode(?:\s|$)/,J=[],ve=0,he=[],Ce=0;function Pe(de){var ke=de.nodeType;if(ke==1){if(X.test(de.className))return;for(var me=de.firstChild;me;me=me.nextSibling)Pe(me);var Be=de.nodeName.toLowerCase();(Be==="br"||Be==="li")&&(J[Ce]=`
`,he[Ce<<1]=ve++,he[Ce++<<1|1]=de)}else if(ke==3||ke==4){var ft=de.nodeValue;ft.length&&(Y?ft=ft.replace(/\r\n?/g,`
`):ft=ft.replace(/[ \t\r\n]+/g," "),J[Ce]=ft,he[Ce<<1]=ve,ve+=ft.length,he[Ce++<<1|1]=de)}}return Pe(te),{sourceCode:J.join("").replace(/\n$/,""),spans:he}}function j(te,Y,X,J,ve){if(!X)return;var he={sourceNode:te,pre:1,langExtension:null,numberLines:null,sourceCode:X,spans:null,basePos:Y,decorations:null};J(he),ve.push.apply(ve,he.decorations)}var Z=/\S/;function ie(te){for(var Y=void 0,X=te.firstChild;X;X=X.nextSibling){var J=X.nodeType;Y=J===1?Y?te:X:J===3&&Z.test(X.nodeValue)?te:Y}return Y===te?void 0:Y}function pe(te,Y){var X={},J;(function(){for(var Ce=te.concat(Y),Pe=[],de={},ke=0,me=Ce.length;ke<me;++ke){var Be=Ce[ke],ft=Be[3];if(ft)for(var vt=ft.length;--vt>=0;)X[ft.charAt(vt)]=Be;var Xe=Be[1],Bt=""+Xe;de.hasOwnProperty(Bt)||(Pe.push(Xe),de[Bt]=null)}Pe.push(/[\0-\uffff]/),J=L(Pe)})();var ve=Y.length,he=function(Ce){for(var Pe=Ce.sourceCode,de=Ce.basePos,ke=Ce.sourceNode,me=[de,B],Be=0,ft=Pe.match(J)||[],vt={},Xe=0,Bt=ft.length;Xe<Bt;++Xe){var Ae=ft[Xe],We=vt[Ae],dt=void 0,Ge;if(typeof We=="string")Ge=!1;else{var je=X[Ae.charAt(0)];if(je)dt=Ae.match(je[1]),We=je[0];else{for(var Fe=0;Fe<ve;++Fe)if(je=Y[Fe],dt=Ae.match(je[1]),dt){We=je[0];break}dt||(We=B)}Ge=We.length>=5&&We.substring(0,5)==="lang-",Ge&&!(dt&&typeof dt[1]=="string")&&(Ge=!1,We=H),Ge||(vt[Ae]=We)}var ce=Be;if(Be+=Ae.length,!Ge)me.push(de+ce,We);else{var we=dt[1],se=Ae.indexOf(we),_e=se+we.length;dt[2]&&(_e=Ae.length-dt[2].length,se=_e-we.length);var Ne=We.substring(5);j(ke,de+ce,Ae.substring(0,se),he,me),j(ke,de+ce+se,we,ue(Ne,we),me),j(ke,de+ce+_e,Ae.substring(_e),he,me)}}Ce.decorations=me};return he}function Ee(te){var Y=[],X=[];te.tripleQuotedStrings?Y.push([x,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):te.multiLineStrings?Y.push([x,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Y.push([x,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),te.verbatimStrings&&X.push([x,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var J=te.hashComments;J&&(te.cStyleComments?(J>1?Y.push([k,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Y.push([k,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),X.push([x,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Y.push([k,/^#[^\r\n]*/,null,"#"])),te.cStyleComments&&(X.push([k,/^\/\/[^\r\n]*/,null]),X.push([k,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ve=te.regexLiterals;if(ve){var he=ve>1?"":`
\r`,Ce=he?".":"[\\S\\s]",Pe="/(?=[^/*"+he+"])(?:[^/\\x5B\\x5C"+he+"]|\\x5C"+Ce+"|\\x5B(?:[^\\x5C\\x5D"+he+"]|\\x5C"+Ce+")*(?:\\x5D|$))+/";X.push(["lang-regex",RegExp("^"+K+"("+Pe+")")])}var de=te.types;de&&X.push([T,de]);var ke=(""+te.keywords).replace(/^ | $/g,"");ke.length&&X.push([M,new RegExp("^(?:"+ke.replace(/[\s,]+/g,"|")+")\\b"),null]),Y.push([B,/^\s+/,null,` \r
\xA0`]);var me="^.[^\\s\\w.$@'\"`/\\\\]*";return te.regexLiterals&&(me+="(?!s*/)"),X.push([R,/^@[a-z_$][a-z_$@0-9]*/i,null],[T,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[B,/^[a-z_$][a-z_$@0-9]*/i,null],[R,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[B,/^\\[\s\S]?/,null],[P,new RegExp(me),null]),pe(Y,X)}var De=Ee({keywords:c,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function q(te,Y,X){for(var J=/(?:^|\s)nocode(?:\s|$)/,ve=/\r\n?|\n/,he=te.ownerDocument,Ce=he.createElement("li");te.firstChild;)Ce.appendChild(te.firstChild);var Pe=[Ce];function de(Xe){var Bt=Xe.nodeType;if(Bt==1&&!J.test(Xe.className))if(Xe.nodeName==="br")ke(Xe),Xe.parentNode&&Xe.parentNode.removeChild(Xe);else for(var Ae=Xe.firstChild;Ae;Ae=Ae.nextSibling)de(Ae);else if((Bt==3||Bt==4)&&X){var We=Xe.nodeValue,dt=We.match(ve);if(dt){var Ge=We.substring(0,dt.index);Xe.nodeValue=Ge;var je=We.substring(dt.index+dt[0].length);if(je){var Fe=Xe.parentNode;Fe.insertBefore(he.createTextNode(je),Xe.nextSibling)}ke(Xe),Ge||Xe.parentNode.removeChild(Xe)}}}function ke(Xe){for(;!Xe.nextSibling;)if(Xe=Xe.parentNode,!Xe)return;function Bt(dt,Ge){var je=Ge?dt.cloneNode(!1):dt,Fe=dt.parentNode;if(Fe){var ce=Bt(Fe,1),we=dt.nextSibling;ce.appendChild(je);for(var se=we;se;se=we)we=se.nextSibling,ce.appendChild(se)}return je}for(var Ae=Bt(Xe.nextSibling,0),We;(We=Ae.parentNode)&&We.nodeType===1;)Ae=We;Pe.push(Ae)}for(var me=0;me<Pe.length;++me)de(Pe[me]);Y===(Y|0)&&Pe[0].setAttribute("value",Y);var Be=he.createElement("ol");Be.className="linenums";for(var ft=Math.max(0,Y-1|0)||0,me=0,vt=Pe.length;me<vt;++me)Ce=Pe[me],Ce.className="L"+(me+ft)%10,Ce.firstChild||Ce.appendChild(he.createTextNode("\xA0")),Be.appendChild(Ce);te.appendChild(Be)}function be(te){var Y=/\bMSIE\s(\d+)/.exec(navigator.userAgent);Y=Y&&+Y[1]<=8;var X=/\n/g,J=te.sourceCode,ve=J.length,he=0,Ce=te.spans,Pe=Ce.length,de=0,ke=te.decorations,me=ke.length,Be=0;ke[me]=ve;var ft,vt;for(vt=ft=0;vt<me;)ke[vt]!==ke[vt+2]?(ke[ft++]=ke[vt++],ke[ft++]=ke[vt++]):vt+=2;for(me=ft,vt=ft=0;vt<me;){for(var Xe=ke[vt],Bt=ke[vt+1],Ae=vt+2;Ae+2<=me&&ke[Ae+1]===Bt;)Ae+=2;ke[ft++]=Xe,ke[ft++]=Bt,vt=Ae}me=ke.length=ft;var We=te.sourceNode,dt="";We&&(dt=We.style.display,We.style.display="none");try{for(var Ge=null;de<Pe;){var je=Ce[de],Fe=Ce[de+2]||ve,ce=ke[Be+2]||ve,Ae=Math.min(Fe,ce),we=Ce[de+1],se;if(we.nodeType!==1&&(se=J.substring(he,Ae))){Y&&(se=se.replace(X,"\r")),we.nodeValue=se;var _e=we.ownerDocument,Ne=_e.createElement("span");Ne.className=ke[Be+1];var Q=we.parentNode;Q.replaceChild(Ne,we),Ne.appendChild(we),he<Fe&&(Ce[de+1]=we=_e.createTextNode(J.substring(Ae,Fe)),Q.insertBefore(we,Ne.nextSibling))}he=Ae,he>=Fe&&(de+=2),he>=ce&&(Be+=2)}}finally{We&&(We.style.display=dt)}}var ye={};function le(te,Y){for(var X=Y.length;--X>=0;){var J=Y[X];ye.hasOwnProperty(J)?d.console&&console.warn("cannot override language handler %s",J):ye[J]=te}}function ue(te,Y){return te&&ye.hasOwnProperty(te)||(te=/^\s*</.test(Y)?"default-markup":"default-code"),ye[te]}le(De,["default-code"]),le(pe([],[[B,/^[^<?]+/],[z,/^<!\w[^>]*(?:>|$)/],[k,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[P,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),le(pe([[B,/^[\s]+/,null,` \r
`],[G,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[W,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[ee,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[P,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),le(pe([],[[G,/^[\s\S]+/]]),["uq.val"]),le(Ee({keywords:l,hashComments:!0,cStyleComments:!0,types:C}),["c","cc","cpp","cxx","cyc","m"]),le(Ee({keywords:"null,true,false"}),["json"]),le(Ee({keywords:s,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:C}),["cs"]),le(Ee({keywords:n,cStyleComments:!0}),["java"]),le(Ee({keywords:E,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),le(Ee({keywords:b,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),le(Ee({keywords:_,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),le(Ee({keywords:y,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),le(Ee({keywords:i,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),le(Ee({keywords:e,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),le(pe([],[[x,/^[\s\S]+/]]),["regex"]);function ne(te){var Y=te.langExtension;try{var X=D(te.sourceNode,te.pre),J=X.sourceCode;te.sourceCode=J,te.spans=X.spans,te.basePos=0,ue(Y,J)(te),be(te)}catch(ve){d.console&&console.log(ve&&ve.stack||ve)}}function xe(te,Y,X){var J=X||!1,ve=Y||null,he=document.createElement("div");he.innerHTML="<pre>"+te+"</pre>",he=he.firstChild,J&&q(he,J,!0);var Ce={langExtension:ve,numberLines:J,sourceNode:he,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return ne(Ce),he.innerHTML}function $(te,Y){var X=Y||document.body,J=X.ownerDocument||document;function ve(je){return X.getElementsByTagName(je)}for(var he=[ve("pre"),ve("code"),ve("xmp")],Ce=[],Pe=0;Pe<he.length;++Pe)for(var de=0,ke=he[Pe].length;de<ke;++de)Ce.push(he[Pe][de]);he=null;var me=Date;me.now||(me={now:function(){return+new Date}});var Be=0,ft=/\blang(?:uage)?-([\w.]+)(?!\S)/,vt=/\bprettyprint\b/,Xe=/\bprettyprinted\b/,Bt=/pre|xmp/i,Ae=/^code$/i,We=/^(?:pre|code|xmp)$/i,dt={};function Ge(){for(var je=d.PR_SHOULD_USE_CONTINUATION?me.now()+250:Infinity;Be<Ce.length&&me.now()<je;Be++){for(var Fe=Ce[Be],ce=dt,we=Fe;we=we.previousSibling;){var se=we.nodeType,_e=(se===7||se===8)&&we.nodeValue;if(_e?!/^\??prettify\b/.test(_e):se!==3||/\S/.test(we.nodeValue))break;if(_e){ce={},_e.replace(/\b(\w+)=([\w:.%+-]+)/g,function(At,$e,ht){ce[$e]=ht});break}}var Ne=Fe.className;if((ce!==dt||vt.test(Ne))&&!Xe.test(Ne)){for(var Q=!1,Ue=Fe.parentNode;Ue;Ue=Ue.parentNode){var Ze=Ue.tagName;if(We.test(Ze)&&Ue.className&&vt.test(Ue.className)){Q=!0;break}}if(!Q){Fe.className+=" prettyprinted";var Te=ce.lang;if(!Te){Te=Ne.match(ft);var He;!Te&&(He=ie(Fe))&&Ae.test(He.tagName)&&(Te=He.className.match(ft)),Te&&(Te=Te[1])}var Ye;if(Bt.test(Fe.tagName))Ye=1;else{var st=Fe.currentStyle,ut=J.defaultView,et=st?st.whiteSpace:ut&&ut.getComputedStyle?ut.getComputedStyle(Fe,null).getPropertyValue("white-space"):0;Ye=et&&et.substring(0,3)==="pre"}var Re=ce.linenums;(Re=Re==="true"||+Re)||(Re=Ne.match(/\blinenums\b(?::(\d+))?/),Re=Re?Re[1]&&Re[1].length?+Re[1]:!0:!1),Re&&q(Fe,Re,Ye);var qe={langExtension:Te,sourceNode:Fe,numberLines:Re,pre:Ye,sourceCode:null,basePos:null,spans:null,decorations:null};ne(qe)}}}Be<Ce.length?d.setTimeout(Ge,250):typeof te=="function"&&te()}Ge()}var oe=d.PR={createSimpleLexer:pe,registerLangHandler:le,sourceDecorator:Ee,PR_ATTRIB_NAME:ee,PR_ATTRIB_VALUE:G,PR_COMMENT:k,PR_DECLARATION:z,PR_KEYWORD:M,PR_LITERAL:R,PR_NOCODE:U,PR_PLAIN:B,PR_PUNCTUATION:P,PR_SOURCE:H,PR_STRING:x,PR_TAG:W,PR_TYPE:T,prettyPrintOne:I?d.prettyPrintOne=xe:a=xe,prettyPrint:f=I?d.prettyPrint=$:f=$},Le=d.define;typeof Le=="function"&&Le.amd&&Le("google-code-prettify",[],function(){return oe})})()},SMhR:function(S,F){S.exports="data:image/png;base64,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"},SZEN:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.clientToElement=w;function w(h,I,m){var g=m.getBoundingClientRect(),a={x:0,y:0};return h<g.left?a.x=0:h>=g.right?a.x=g.width-1:a.x=h-g.left,I<g.top?a.y=0:I>=g.bottom?a.y=g.height-1:a.y=I-g.top,a}},Sa5k:function(S,F,v){S.exports=v.p+"static/nothing.4d201a0a.png"},Scqh:function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAZ5JREFUWEftmM9Kw0AQxuebJBQJnuxREA+CV+mLeO0DlD6AZ1+gV6tQWqhe2ptUBX0JEQ/iQQ8ieFQshCDBZEdWGglCSVKbdJHmkBxmsvPbb2f/DWjyiAiGw+FaEATVKIpWRIRjWxFfAMqyrI9KpfJar9ffAIiOA/3qdDoOgE0Aq0UET2tTRDwReWo2m5/QynS73a1FwSRGyGs0Go8YDAZV3/c30npRht113Wf0+/3tMAzdMgKmxbBt20ev19spOoHTQGK7TnSdP7WsP5ThtwRKU/lfKFRTSu0DCIjoGMBVWq/z2HMrpJQaEdF6YmbcAmgR0UOewNN8ZwG6/t0YgEhETpn5iIi8v4DNBSgBMAbQtizrTCn1vVnmfeYNFMe/J6IWM9+ZAkST48S5bdvtKIres4IVpVAyvgdgD8BNFqgygDTHCzPvLoGmKGDGkOmkFpELx3EOTEhqY6b9mJkPmXm00IVx0VuHWZsrEf0cP0TkhJkvs6wvWX1yL4xZG57VbwmUppx5Chl3UTTuKm1cscG4cozOeqMKVvE0NKWk9wWBdSawQzyy4QAAAABJRU5ErkJggg=="},SgaC:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;function w(g,a){if(!(g instanceof a))throw new TypeError("Cannot call a class as a function")}function h(g,a){for(var f=0;f<a.length;f++){var d=a[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(g,d.key,d)}}function I(g,a,f){return a&&h(g.prototype,a),f&&h(g,f),g}var m=function(){function g(){w(this,g),this._subrects=0}return I(g,[{key:"decodeRect",value:function(f,d,u,o,r,l,n){if(this._subrects===0){if(r.rQwait("RRE",4+4))return!1;this._subrects=r.rQshift32();var s=r.rQshiftBytes(4);l.fillRect(f,d,u,o,s)}for(;this._subrects>0;){if(r.rQwait("RRE",4+8))return!1;var e=r.rQshiftBytes(4),i=r.rQshift16(),_=r.rQshift16(),b=r.rQshift16(),y=r.rQshift16();l.fillRect(f+i,d+_,b,y,e),this._subrects--}return!0}}]),g}();F.default=m},SzL9:function(S,F,v){S.exports=v.p+"static/appoint2.ec9f16d8.svg"},TGq3:function(S,F,v){S.exports=v.p+"static/lockclose.365036e8.svg"},TXba:function(S,F,v){S.exports={wrap:"wrap___3g908",content:"content___DKfAL",mainPathWrap:"mainPathWrap___1gVR9",colorBlue:"colorBlue___10YHC"}},TXwP:function(S,F,v){var w,h;(function(){var I;(function(){"use strict";var g=[,,function(u){function o(n){this.__parent=n,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}o.prototype.clone_empty=function(){var n=new o(this.__parent);return n.set_indent(this.__indent_count,this.__alignment_count),n},o.prototype.item=function(n){return n<0?this.__items[this.__items.length+n]:this.__items[n]},o.prototype.has_match=function(n){for(var s=this.__items.length-1;s>=0;s--)if(this.__items[s].match(n))return!0;return!1},o.prototype.set_indent=function(n,s){this.is_empty()&&(this.__indent_count=n||0,this.__alignment_count=s||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},o.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var n=this.__parent.current_line;return n.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),n.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),n.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,n.__items[0]===" "&&(n.__items.splice(0,1),n.__character_count-=1),!0}return!1},o.prototype.is_empty=function(){return this.__items.length===0},o.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},o.prototype.push=function(n){this.__items.push(n);var s=n.lastIndexOf(`
`);s!==-1?this.__character_count=n.length-s:this.__character_count+=n.length},o.prototype.pop=function(){var n=null;return this.is_empty()||(n=this.__items.pop(),this.__character_count-=n.length),n},o.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},o.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},o.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},o.prototype.toString=function(){var n="";return this.is_empty()?this.__parent.indent_empty_lines&&(n=this.__parent.get_indent_string(this.__indent_count)):(n=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),n+=this.__items.join("")),n};function r(n,s){this.__cache=[""],this.__indent_size=n.indent_size,this.__indent_string=n.indent_char,n.indent_with_tabs||(this.__indent_string=new Array(n.indent_size+1).join(n.indent_char)),s=s||"",n.indent_level>0&&(s=new Array(n.indent_level+1).join(this.__indent_string)),this.__base_string=s,this.__base_string_length=s.length}r.prototype.get_indent_size=function(n,s){var e=this.__base_string_length;return s=s||0,n<0&&(e=0),e+=n*this.__indent_size,e+=s,e},r.prototype.get_indent_string=function(n,s){var e=this.__base_string;return s=s||0,n<0&&(n=0,e=""),s+=n*this.__indent_size,this.__ensure_cache(s),e+=this.__cache[s],e},r.prototype.__ensure_cache=function(n){for(;n>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var n=this.__cache.length,s=0,e="";this.__indent_size&&n>=this.__indent_size&&(s=Math.floor(n/this.__indent_size),n-=s*this.__indent_size,e=new Array(s+1).join(this.__indent_string)),n&&(e+=new Array(n+1).join(" ")),this.__cache.push(e)};function l(n,s){this.__indent_cache=new r(n,s),this.raw=!1,this._end_with_newline=n.end_with_newline,this.indent_size=n.indent_size,this.wrap_line_length=n.wrap_line_length,this.indent_empty_lines=n.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}l.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},l.prototype.get_line_number=function(){return this.__lines.length},l.prototype.get_indent_string=function(n,s){return this.__indent_cache.get_indent_string(n,s)},l.prototype.get_indent_size=function(n,s){return this.__indent_cache.get_indent_size(n,s)},l.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},l.prototype.add_new_line=function(n){return this.is_empty()||!n&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},l.prototype.get_code=function(n){this.trim(!0);var s=this.current_line.pop();s&&(s[s.length-1]===`
`&&(s=s.replace(/\n+$/g,"")),this.current_line.push(s)),this._end_with_newline&&this.__add_outputline();var e=this.__lines.join(`
`);return n!==`
`&&(e=e.replace(/[\n]/g,n)),e},l.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},l.prototype.set_indent=function(n,s){return n=n||0,s=s||0,this.next_line.set_indent(n,s),this.__lines.length>1?(this.current_line.set_indent(n,s),!0):(this.current_line.set_indent(),!1)},l.prototype.add_raw_token=function(n){for(var s=0;s<n.newlines;s++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(n.whitespace_before),this.current_line.push(n.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},l.prototype.add_token=function(n){this.__add_space_before_token(),this.current_line.push(n),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},l.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},l.prototype.remove_indent=function(n){for(var s=this.__lines.length;n<s;)this.__lines[n]._remove_indent(),n++;this.current_line._remove_wrap_indent()},l.prototype.trim=function(n){for(n=n===void 0?!1:n,this.current_line.trim();n&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},l.prototype.just_added_newline=function(){return this.current_line.is_empty()},l.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},l.prototype.ensure_empty_line_above=function(n,s){for(var e=this.__lines.length-2;e>=0;){var i=this.__lines[e];if(i.is_empty())break;if(i.item(0).indexOf(n)!==0&&i.item(-1)!==s){this.__lines.splice(e+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}e--}},u.exports.Output=l},,,,function(u){function o(n,s){this.raw_options=r(n,s),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}o.prototype._get_array=function(n,s){var e=this.raw_options[n],i=s||[];return typeof e=="object"?e!==null&&typeof e.concat=="function"&&(i=e.concat()):typeof e=="string"&&(i=e.split(/[^a-zA-Z0-9_\/\-]+/)),i},o.prototype._get_boolean=function(n,s){var e=this.raw_options[n],i=e===void 0?!!s:!!e;return i},o.prototype._get_characters=function(n,s){var e=this.raw_options[n],i=s||"";return typeof e=="string"&&(i=e.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),i},o.prototype._get_number=function(n,s){var e=this.raw_options[n];s=parseInt(s,10),isNaN(s)&&(s=0);var i=parseInt(e,10);return isNaN(i)&&(i=s),i},o.prototype._get_selection=function(n,s,e){var i=this._get_selection_list(n,s,e);if(i.length!==1)throw new Error("Invalid Option Value: The option '"+n+`' can only be one of the following values:
`+s+`
You passed in: '`+this.raw_options[n]+"'");return i[0]},o.prototype._get_selection_list=function(n,s,e){if(!s||s.length===0)throw new Error("Selection list cannot be empty.");if(e=e||[s[0]],!this._is_valid_selection(e,s))throw new Error("Invalid Default Value!");var i=this._get_array(n,e);if(!this._is_valid_selection(i,s))throw new Error("Invalid Option Value: The option '"+n+`' can contain only the following values:
`+s+`
You passed in: '`+this.raw_options[n]+"'");return i},o.prototype._is_valid_selection=function(n,s){return n.length&&s.length&&!n.some(function(e){return s.indexOf(e)===-1})};function r(n,s){var e={};n=l(n);var i;for(i in n)i!==s&&(e[i]=n[i]);if(s&&n[s])for(i in n[s])e[i]=n[s][i];return e}function l(n){var s={},e;for(e in n){var i=e.replace(/-/g,"_");s[i]=n[e]}return s}u.exports.Options=o,u.exports.normalizeOpts=l,u.exports.mergeOpts=r},,function(u){var o=RegExp.prototype.hasOwnProperty("sticky");function r(l){this.__input=l||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position<this.__input_length},r.prototype.next=function(){var l=null;return this.hasNext()&&(l=this.__input.charAt(this.__position),this.__position+=1),l},r.prototype.peek=function(l){var n=null;return l=l||0,l+=this.__position,l>=0&&l<this.__input_length&&(n=this.__input.charAt(l)),n},r.prototype.__match=function(l,n){l.lastIndex=n;var s=l.exec(this.__input);return s&&!(o&&l.sticky)&&(s.index!==n&&(s=null)),s},r.prototype.test=function(l,n){return n=n||0,n+=this.__position,n>=0&&n<this.__input_length?!!this.__match(l,n):!1},r.prototype.testChar=function(l,n){var s=this.peek(n);return l.lastIndex=0,s!==null&&l.test(s)},r.prototype.match=function(l){var n=this.__match(l,this.__position);return n?this.__position+=n[0].length:n=null,n},r.prototype.read=function(l,n,s){var e="",i;return l&&(i=this.match(l),i&&(e+=i[0])),n&&(i||!l)&&(e+=this.readUntil(n,s)),e},r.prototype.readUntil=function(l,n){var s="",e=this.__position;l.lastIndex=this.__position;var i=l.exec(this.__input);return i?(e=i.index,n&&(e+=i[0].length)):e=this.__input_length,s=this.__input.substring(this.__position,e),this.__position=e,s},r.prototype.readUntilAfter=function(l){return this.readUntil(l,!0)},r.prototype.get_regexp=function(l,n){var s=null,e="g";return n&&o&&(e="y"),typeof l=="string"&&l!==""?s=new RegExp(l,e):l&&(s=new RegExp(l.source,e)),s},r.prototype.get_literal_regexp=function(l){return RegExp(l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},r.prototype.peekUntilAfter=function(l){var n=this.__position,s=this.readUntilAfter(l);return this.__position=n,s},r.prototype.lookBack=function(l){var n=this.__position-1;return n>=l.length&&this.__input.substring(n-l.length,n).toLowerCase()===l},u.exports.InputScanner=r},,,,,function(u){function o(r,l){r=typeof r=="string"?r:r.source,l=typeof l=="string"?l:l.source,this.__directives_block_pattern=new RegExp(r+/ beautify( \w+[:]\w+)+ /.source+l,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(r+/\sbeautify\signore:end\s/.source+l,"g")}o.prototype.get_directives=function(r){if(!r.match(this.__directives_block_pattern))return null;var l={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(r);n;)l[n[1]]=n[2],n=this.__directive_pattern.exec(r);return l},o.prototype.readIgnored=function(r){return r.readUntilAfter(this.__directives_end_ignore_pattern)},u.exports.Directives=o},,function(u,o,r){var l=r(16).Beautifier,n=r(17).Options;function s(e,i){var _=new l(e,i);return _.beautify()}u.exports=s,u.exports.defaultOptions=function(){return new n}},function(u,o,r){var l=r(17).Options,n=r(2).Output,s=r(8).InputScanner,e=r(13).Directives,i=new e(/\/\*/,/\*\//),_=/\r\n|[\r\n]/,b=/\r\n|[\r\n]/g,y=/\s/,E=/(?:\s|\n)+/g,c=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,C=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function x(M,k){this._source_text=M||"",this._options=new l(k),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}x.prototype.eatString=function(M){var k="";for(this._ch=this._input.next();this._ch;){if(k+=this._ch,this._ch==="\\")k+=this._input.next();else if(M.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return k},x.prototype.eatWhitespace=function(M){for(var k=y.test(this._input.peek()),T=0;y.test(this._input.peek());)this._ch=this._input.next(),M&&this._ch===`
`&&((T===0||T<this._options.max_preserve_newlines)&&(T++,this._output.add_new_line(!0)));return k},x.prototype.foundNestedPseudoClass=function(){for(var M=0,k=1,T=this._input.peek(k);T;){if(T==="{")return!0;if(T==="(")M+=1;else if(T===")"){if(M===0)return!1;M-=1}else if(T===";"||T==="}")return!1;k++,T=this._input.peek(k)}return!1},x.prototype.print_string=function(M){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(M)},x.prototype.preserveSingleSpace=function(M){M&&(this._output.space_before_token=!0)},x.prototype.indent=function(){this._indentLevel++},x.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},x.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var M=this._source_text,k=this._options.eol;k==="auto"&&(k=`
`,M&&_.test(M||"")&&(k=M.match(_)[0])),M=M.replace(b,`
`);var T=M.match(/^[\t ]*/)[0];this._output=new n(this._options,T),this._input=new s(M),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var R=0,P=!1,B=!1,W=!1,z=!1,H=!1,ee=!1,G=this._ch,U=!1,K,L,D;K=this._input.read(E),L=K!=="",D=G,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),G=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var j=this._input.read(c),Z=i.get_directives(j);Z&&Z.ignore==="start"&&(j+=i.readIgnored(this._input)),this.print_string(j),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(C)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(L),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var ie=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ie.match(/[ :]$/)&&(ie=this.eatString(": ").replace(/\s$/,""),this.print_string(ie),this._output.space_before_token=!0),ie=ie.replace(/\s$/,""),ie==="extend"?z=!0:ie==="import"&&(H=!0),ie in this.NESTED_AT_RULE?(this._nestedLevel+=1,ie in this.CONDITIONAL_GROUP_RULE&&(W=!0)):!P&&R===0&&ie.indexOf(":")!==-1&&(B=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(L),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")B&&(B=!1,this.outdent()),W?(W=!1,P=this._indentLevel>=this._nestedLevel):P=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&P&&(this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",",")),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(D==="("?this._output.space_before_token=!1:D!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),D==="{"&&this._output.trim(!0),H=!1,z=!1,B&&(this.outdent(),B=!1),this.print_string(this._ch),P=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&(this._input.peek()!=="}"&&this._output.add_new_line(!0)),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var pe=0;pe<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;pe++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[pe])){U=!0;break}(P||W)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!z&&R===0?(this.print_string(":"),B||(B=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var Ee=D==='"'||D==="'";this.preserveSingleSpace(Ee||L),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")U=!1,R===0?(B&&(this.outdent(),B=!1),z=!1,H=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),R++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),R&&(R--,this.outdent()));else{var De=!1;this._input.lookBack("with")&&(De=!0),this.preserveSingleSpace(L||De),this.print_string(this._ch),B&&D==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),ee=!0):(this.eatWhitespace(),R++,this.indent())}else if(this._ch===")")R&&(R--,this.outdent()),ee&&this._input.peek()===";"&&this._options.selector_separator_newline&&(ee=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!B||ee)&&R===0&&!H&&!z?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!B&&R===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&y.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(L),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),y.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var q=D==='"'||D==="'";this.preserveSingleSpace(q||L),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&U&&this._output.add_new_line()}var be=this._output.get_code(k);return be},u.exports.Beautifier=x},function(u,o,r){var l=r(6).Options;function n(s){l.call(this,s,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var e=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||e;var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var _=0;_<i.length;_++)i[_]!=="expand"?this.brace_style="collapse":this.brace_style=i[_]}n.prototype=new l,u.exports.Options=n}],a={};function f(u){var o=a[u];if(o!==void 0)return o.exports;var r=a[u]={exports:{}};return g[u](r,r.exports,f),r.exports}var d=f(15);I=d})();var m=I;!(w=[],h=function(){return{css_beautify:m}}.apply(F,w),h!==void 0&&(S.exports=h))})()},Tl6Z:function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIsAAABuCAYAAAAXkODOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjY4Qjc0NjM3NTI4RTExRThBQTE0QjdDODQ4MEFBMzdGIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjY4Qjc0NjM4NTI4RTExRThBQTE0QjdDODQ4MEFBMzdGIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NjhCNzQ2MzU1MjhFMTFFOEFBMTRCN0M4NDgwQUEzN0YiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NjhCNzQ2MzY1MjhFMTFFOEFBMTRCN0M4NDgwQUEzN0YiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6LemY3AAAa7klEQVR42uxd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"},UZu5:function(S,F,v){},UbZX:function(S,F,v){S.exports=v.p+"static/success.2e2721eb.svg"},UlFV:function(S,F,v){},VPUa:function(S,F,v){S.exports=v.p+"static/passall.2673ac21.png"},VSMT:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.decodeUTF8=w,F.encodeUTF8=h;function w(I){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(I))}catch(g){if(g instanceof URIError&&m)return I;throw g}}function h(I){return unescape(encodeURIComponent(I))}},Vbye:function(S,F,v){S.exports={"diff-panel-container":"diff-panel-container___APxdS",enter:"enter___2JYCH","line-break":"line-break___1Ly2e",empty:"empty___2h7RZ","diff-panel-container-2":"diff-panel-container-2___GRUnn"}},VjRW:function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjk3RTBEMDM2MDE3ODExRUI4QzEzQUNFNDcxODM2QjJDIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjk3RTBEMDM3MDE3ODExRUI4QzEzQUNFNDcxODM2QjJDIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OTdFMEQwMzQwMTc4MTFFQjhDMTNBQ0U0NzE4MzZCMkMiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6OTdFMEQwMzUwMTc4MTFFQjhDMTNBQ0U0NzE4MzZCMkMiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6ejzPSAAACsUlEQVR42ryYz08TQRTHp9vQQkFPlAAHDXjxR2LwoEbhpCXon1DPpf0PbP8UwOhV/QOM8QIXIIRwASNtYo0RIye9FIF4Yf2O+U7ysmnrzM5uX/JJu7sz730zOzvz3mTCMFSONgOWwAK4Aa6CS3x2Ar6BJtgEH8BXJ+9akAVZUAZb4CK0twv2KdPHf2PZiCmBpghyAt6CGrgPJkCeTPCefvaGbY016Su2oGGwKhx+AVUwZjmqim0r7Gtslb6dBBXBLh2cg+cg5yAkSo4+zulzlzGsBOmGLTEqcx5CosyJ0Wp1ExXtUAA77PARTCYoxjBJ3yFjFfoJesGGnzlBVUoUGSNkzK6CSmLO3ElRjHx9Zk6VooICcMiHjQGIMTTEkpCVgsp80AZDls5WPL88xVhtxi5LQZu8uezgLOQqPOUpqip8/RM0wyVer6qjjoK0/QAPPASNMrbWMBtgO3sCMuAdOFXuNg02wLKKZ6eMrTUsaUHzfLCu4lserIEVkIvR38Se14Ju8WJf+VuNozXl2O+Avzf1O/zJuTDu+O77meu8Gme/X4FIrjoqOXOdVyb2WKDStYxrh4Bpp7bLCQo5Bo840W3MxP6tBX3nxbWExGyDu/y1NRP7SAs65MXtBMSscWSOHfuZ2J8CVgfaHnsI+cNPvsb/rmZib+lPbpbLdsdj63jouXV0zNaRxOY67bm5VqKbq0/6kU8r/ciK2qs+wASt3itBkynsWcKVRr8U9owxF3sl+a9Ekl8cUJL/0rYMOkixDNq3LYMGUSi2XQpFg67J9kRZ1EiglK6LsmevV93Xz8lIl8OGiuPiWWCftu9hg2RRvEJzHPOa1cI9DvsQKfJelW3kcUxLfk0+guSB1bbjgVXIPs9sD6wyMY/0nvJI7zq4IvIZnfkdgRY37feuR3p/BRgAhrFnXQBvMBoAAAAASUVORK5CYII="},"VrN/":function(S,F,v){(function(w,h){S.exports=h()})(this,function(){"use strict";var w=navigator.userAgent,h=navigator.platform,I=/gecko\/\d/i.test(w),m=/MSIE \d/.test(w),g=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(w),a=/Edge\/(\d+)/.exec(w),f=m||g||a,d=f&&(m?document.documentMode||6:+(a||g)[1]),u=!a&&/WebKit\//.test(w),o=u&&/Qt\/\d+\.\d+/.test(w),r=!a&&/Chrome\//.test(w),l=/Opera\//.test(w),n=/Apple Computer/.test(navigator.vendor),s=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(w),e=/PhantomJS/.test(w),i=!a&&/AppleWebKit/.test(w)&&/Mobile\/\w+/.test(w),_=/Android/.test(w),b=i||_||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(w),y=i||/Mac/.test(h),E=/\bCrOS\b/.test(w),c=/win/i.test(h),C=l&&w.match(/Version\/(\d*\.\d*)/);C&&(C=Number(C[1])),C&&C>=15&&(l=!1,u=!0);var x=y&&(o||l&&(C==null||C<12.11)),M=I||f&&d>=9;function k(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var T=function(t,p){var O=t.className,A=k(p).exec(O);if(A){var N=O.slice(A.index+A[0].length);t.className=O.slice(0,A.index)+(N?A[1]+N:"")}};function R(t){for(var p=t.childNodes.length;p>0;--p)t.removeChild(t.firstChild);return t}function P(t,p){return R(t).appendChild(p)}function B(t,p,O,A){var N=document.createElement(t);if(O&&(N.className=O),A&&(N.style.cssText=A),typeof p=="string")N.appendChild(document.createTextNode(p));else if(p)for(var V=0;V<p.length;++V)N.appendChild(p[V]);return N}function W(t,p,O,A){var N=B(t,p,O,A);return N.setAttribute("role","presentation"),N}var z;document.createRange?z=function(t,p,O,A){var N=document.createRange();return N.setEnd(A||t,O),N.setStart(t,p),N}:z=function(t,p,O){var A=document.body.createTextRange();try{A.moveToElementText(t.parentNode)}catch(N){return A}return A.collapse(!0),A.moveEnd("character",O),A.moveStart("character",p),A};function H(t,p){if(p.nodeType==3&&(p=p.parentNode),t.contains)return t.contains(p);do if(p.nodeType==11&&(p=p.host),p==t)return!0;while(p=p.parentNode)}function ee(){var t;try{t=document.activeElement}catch(p){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function G(t,p){var O=t.className;k(p).test(O)||(t.className+=(O?" ":"")+p)}function U(t,p){for(var O=t.split(" "),A=0;A<O.length;A++)O[A]&&!k(O[A]).test(p)&&(p+=" "+O[A]);return p}var K=function(t){t.select()};i?K=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:f&&(K=function(t){try{t.select()}catch(p){}});function L(t){var p=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,p)}}function D(t,p,O){p||(p={});for(var A in t)t.hasOwnProperty(A)&&(O!==!1||!p.hasOwnProperty(A))&&(p[A]=t[A]);return p}function j(t,p,O,A,N){p==null&&(p=t.search(/[^\s\u00a0]/),p==-1&&(p=t.length));for(var V=A||0,re=N||0;;){var fe=t.indexOf(" ",V);if(fe<0||fe>=p)return re+(p-V);re+=fe-V,re+=O-re%O,V=fe+1}}var Z=function(){this.id=null,this.f=null,this.time=0,this.handler=L(this.onTimeout,this)};Z.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Z.prototype.set=function(t,p){this.f=p;var O=+new Date+t;(!this.id||O<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=O)};function ie(t,p){for(var O=0;O<t.length;++O)if(t[O]==p)return O;return-1}var pe=50,Ee={toString:function(){return"CodeMirror.Pass"}},De={scroll:!1},q={origin:"*mouse"},be={origin:"+move"};function ye(t,p,O){for(var A=0,N=0;;){var V=t.indexOf(" ",A);V==-1&&(V=t.length);var re=V-A;if(V==t.length||N+re>=p)return A+Math.min(re,p-N);if(N+=V-A,N+=O-N%O,A=V+1,N>=p)return A}}var le=[""];function ue(t){for(;le.length<=t;)le.push(ne(le)+" ");return le[t]}function ne(t){return t[t.length-1]}function xe(t,p){for(var O=[],A=0;A<t.length;A++)O[A]=p(t[A],A);return O}function $(t,p,O){for(var A=0,N=O(p);A<t.length&&O(t[A])<=N;)A++;t.splice(A,0,p)}function oe(){}function Le(t,p){var O;return Object.create?O=Object.create(t):(oe.prototype=t,O=new oe),p&&D(p,O),O}var te=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Y(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||te.test(t))}function X(t,p){return p?p.source.indexOf("\\w")>-1&&Y(t)?!0:p.test(t):Y(t)}function J(t){for(var p in t)if(t.hasOwnProperty(p)&&t[p])return!1;return!0}var ve=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function he(t){return t.charCodeAt(0)>=768&&ve.test(t)}function Ce(t,p,O){for(;(O<0?p>0:p<t.length)&&he(t.charAt(p));)p+=O;return p}function Pe(t,p,O){for(var A=p>O?-1:1;;){if(p==O)return p;var N=(p+O)/2,V=A<0?Math.ceil(N):Math.floor(N);if(V==p)return t(V)?p:O;t(V)?O=V:p=V+A}}function de(t,p,O,A){if(!t)return A(p,O,"ltr",0);for(var N=!1,V=0;V<t.length;++V){var re=t[V];(re.from<O&&re.to>p||p==O&&re.to==p)&&(A(Math.max(re.from,p),Math.min(re.to,O),re.level==1?"rtl":"ltr",V),N=!0)}N||A(p,O,"ltr")}var ke=null;function me(t,p,O){var A;ke=null;for(var N=0;N<t.length;++N){var V=t[N];if(V.from<p&&V.to>p)return N;V.to==p&&(V.from!=V.to&&O=="before"?A=N:ke=N),V.from==p&&(V.from!=V.to&&O!="before"?A=N:ke=N)}return A!=null?A:ke}var Be=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",p="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function O(Se){return Se<=247?t.charAt(Se):1424<=Se&&Se<=1524?"R":1536<=Se&&Se<=1785?p.charAt(Se-1536):1774<=Se&&Se<=2220?"r":8192<=Se&&Se<=8203?"w":Se==8204?"b":"L"}var A=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,N=/[stwN]/,V=/[LRr]/,re=/[Lb1n]/,fe=/[1n]/;function ge(Se,Je,at){this.level=Se,this.from=Je,this.to=at}return function(Se,Je){var at=Je=="ltr"?"L":"R";if(Se.length==0||Je=="ltr"&&!A.test(Se))return!1;for(var Dt=Se.length,Ot=[],Gt=0;Gt<Dt;++Gt)Ot.push(O(Se.charCodeAt(Gt)));for(var en=0,yn=at;en<Dt;++en){var Sn=Ot[en];Sn=="m"?Ot[en]=yn:yn=Sn}for(var Fn=0,kn=at;Fn<Dt;++Fn){var Zn=Ot[Fn];Zn=="1"&&kn=="r"?Ot[Fn]="n":V.test(Zn)&&(kn=Zn,Zn=="r"&&(Ot[Fn]="R"))}for(var Or=1,cr=Ot[0];Or<Dt-1;++Or){var $r=Ot[Or];$r=="+"&&cr=="1"&&Ot[Or+1]=="1"?Ot[Or]="1":$r==","&&cr==Ot[Or+1]&&(cr=="1"||cr=="n")&&(Ot[Or]=cr),cr=$r}for(var Ua=0;Ua<Dt;++Ua){var pi=Ot[Ua];if(pi==",")Ot[Ua]="N";else if(pi=="%"){var oi=void 0;for(oi=Ua+1;oi<Dt&&Ot[oi]=="%";++oi);for(var eo=Ua&&Ot[Ua-1]=="!"||oi<Dt&&Ot[oi]=="1"?"1":"N",Yi=Ua;Yi<oi;++Yi)Ot[Yi]=eo;Ua=oi-1}}for(var si=0,to=at;si<Dt;++si){var Hi=Ot[si];to=="L"&&Hi=="1"?Ot[si]="L":V.test(Hi)&&(to=Hi)}for(var Ii=0;Ii<Dt;++Ii)if(N.test(Ot[Ii])){var mi=void 0;for(mi=Ii+1;mi<Dt&&N.test(Ot[mi]);++mi);for(var di=(Ii?Ot[Ii-1]:at)=="L",uo=(mi<Dt?Ot[mi]:at)=="L",_s=di==uo?di?"L":"R":at,Mr=Ii;Mr<mi;++Mr)Ot[Mr]=_s;Ii=mi-1}for(var Hr=[],li,Qa=0;Qa<Dt;)if(re.test(Ot[Qa])){var no=Qa;for(++Qa;Qa<Dt&&re.test(Ot[Qa]);++Qa);Hr.push(new ge(0,no,Qa))}else{var ro=Qa,Qi=Hr.length,Ko=Je=="rtl"?1:0;for(++Qa;Qa<Dt&&Ot[Qa]!="L";++Qa);for(var Wi=ro;Wi<Qa;)if(fe.test(Ot[Wi])){ro<Wi&&(Hr.splice(Qi,0,new ge(1,ro,Wi)),Qi+=Ko);var qo=Wi;for(++Wi;Wi<Qa&&fe.test(Ot[Wi]);++Wi);Hr.splice(Qi,0,new ge(2,qo,Wi)),Qi+=Ko,ro=Wi}else++Wi;ro<Qa&&Hr.splice(Qi,0,new ge(1,ro,Qa))}return Je=="ltr"&&(Hr[0].level==1&&(li=Se.match(/^\s+/))&&(Hr[0].from=li[0].length,Hr.unshift(new ge(0,0,li[0].length))),ne(Hr).level==1&&(li=Se.match(/\s+$/))&&(ne(Hr).to-=li[0].length,Hr.push(new ge(0,Dt-li[0].length,Dt)))),Je=="rtl"?Hr.reverse():Hr}}();function ft(t,p){var O=t.order;return O==null&&(O=t.order=Be(t.text,p)),O}var vt=[],Xe=function(t,p,O){if(t.addEventListener)t.addEventListener(p,O,!1);else if(t.attachEvent)t.attachEvent("on"+p,O);else{var A=t._handlers||(t._handlers={});A[p]=(A[p]||vt).concat(O)}};function Bt(t,p){return t._handlers&&t._handlers[p]||vt}function Ae(t,p,O){if(t.removeEventListener)t.removeEventListener(p,O,!1);else if(t.detachEvent)t.detachEvent("on"+p,O);else{var A=t._handlers,N=A&&A[p];if(N){var V=ie(N,O);V>-1&&(A[p]=N.slice(0,V).concat(N.slice(V+1)))}}}function We(t,p){var O=Bt(t,p);if(!O.length)return;for(var A=Array.prototype.slice.call(arguments,2),N=0;N<O.length;++N)O[N].apply(null,A)}function dt(t,p,O){return typeof p=="string"&&(p={type:p,preventDefault:function(){this.defaultPrevented=!0}}),We(t,O||p.type,t,p),se(p)||p.codemirrorIgnore}function Ge(t){var p=t._handlers&&t._handlers.cursorActivity;if(!p)return;for(var O=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),A=0;A<p.length;++A)ie(O,p[A])==-1&&O.push(p[A])}function je(t,p){return Bt(t,p).length>0}function Fe(t){t.prototype.on=function(p,O){Xe(this,p,O)},t.prototype.off=function(p,O){Ae(this,p,O)}}function ce(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function we(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function se(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function _e(t){ce(t),we(t)}function Ne(t){return t.target||t.srcElement}function Q(t){var p=t.which;return p==null&&(t.button&1?p=1:t.button&2?p=3:t.button&4&&(p=2)),y&&t.ctrlKey&&p==1&&(p=3),p}var Ue=function(){if(f&&d<9)return!1;var t=B("div");return"draggable"in t||"dragDrop"in t}(),Ze;function Te(t){if(Ze==null){var p=B("span","\u200B");P(t,B("span",[p,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Ze=p.offsetWidth<=1&&p.offsetHeight>2&&!(f&&d<8))}var O=Ze?B("span","\u200B"):B("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return O.setAttribute("cm-text",""),O}var He;function Ye(t){if(He!=null)return He;var p=P(t,document.createTextNode("A\u062EA")),O=z(p,0,1).getBoundingClientRect(),A=z(p,1,2).getBoundingClientRect();return R(t),!O||O.left==O.right?!1:He=A.right-O.right<3}var st=`
b`.split(/\n/).length!=3?function(t){for(var p=0,O=[],A=t.length;p<=A;){var N=t.indexOf(`
`,p);N==-1&&(N=t.length);var V=t.slice(p,t.charAt(N-1)=="\r"?N-1:N),re=V.indexOf("\r");re!=-1?(O.push(V.slice(0,re)),p+=re+1):(O.push(V),p=N+1)}return O}:function(t){return t.split(/\r\n?|\n/)},ut=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(p){return!1}}:function(t){var p;try{p=t.ownerDocument.selection.createRange()}catch(O){}return!p||p.parentElement()!=t?!1:p.compareEndPoints("StartToEnd",p)!=0},et=function(){var t=B("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),Re=null;function qe(t){if(Re!=null)return Re;var p=P(t,B("span","x")),O=p.getBoundingClientRect(),A=z(p,0,1).getBoundingClientRect();return Re=Math.abs(O.left-A.left)>1}var At={},$e={};function ht(t,p){arguments.length>2&&(p.dependencies=Array.prototype.slice.call(arguments,2)),At[t]=p}function Rt(t,p){$e[t]=p}function pt(t){if(typeof t=="string"&&$e.hasOwnProperty(t))t=$e[t];else if(t&&typeof t.name=="string"&&$e.hasOwnProperty(t.name)){var p=$e[t.name];typeof p=="string"&&(p={name:p}),t=Le(p,t),t.name=p.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return pt("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return pt("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function wt(t,p){p=pt(p);var O=At[p.name];if(!O)return wt(t,"text/plain");var A=O(t,p);if(Ct.hasOwnProperty(p.name)){var N=Ct[p.name];for(var V in N){if(!N.hasOwnProperty(V))continue;A.hasOwnProperty(V)&&(A["_"+V]=A[V]),A[V]=N[V]}}if(A.name=p.name,p.helperType&&(A.helperType=p.helperType),p.modeProps)for(var re in p.modeProps)A[re]=p.modeProps[re];return A}var Ct={};function Kt(t,p){var O=Ct.hasOwnProperty(t)?Ct[t]:Ct[t]={};D(p,O)}function Vt(t,p){if(p===!0)return p;if(t.copyState)return t.copyState(p);var O={};for(var A in p){var N=p[A];N instanceof Array&&(N=N.concat([])),O[A]=N}return O}function dn(t,p){for(var O;t.innerMode&&!(O=t.innerMode(p),!O||O.mode==t);)p=O.state,t=O.mode;return O||{mode:t,state:p}}function cn(t,p,O){return t.startState?t.startState(p,O):!0}var qt=function(t,p,O){this.pos=this.start=0,this.string=t,this.tabSize=p||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=O};qt.prototype.eol=function(){return this.pos>=this.string.length},qt.prototype.sol=function(){return this.pos==this.lineStart},qt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},qt.prototype.eat=function(t){var p=this.string.charAt(this.pos),O;if(typeof t=="string"?O=p==t:O=p&&(t.test?t.test(p):t(p)),O)return++this.pos,p},qt.prototype.eatWhile=function(t){for(var p=this.pos;this.eat(t););return this.pos>p},qt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},qt.prototype.skipToEnd=function(){this.pos=this.string.length},qt.prototype.skipTo=function(t){var p=this.string.indexOf(t,this.pos);if(p>-1)return this.pos=p,!0},qt.prototype.backUp=function(t){this.pos-=t},qt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=j(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?j(this.string,this.lineStart,this.tabSize):0)},qt.prototype.indentation=function(){return j(this.string,null,this.tabSize)-(this.lineStart?j(this.string,this.lineStart,this.tabSize):0)},qt.prototype.match=function(t,p,O){if(typeof t=="string"){var A=function(re){return O?re.toLowerCase():re},N=this.string.substr(this.pos,t.length);if(A(N)==A(t))return p!==!1&&(this.pos+=t.length),!0}else{var V=this.string.slice(this.pos).match(t);return V&&V.index>0?null:(V&&p!==!1&&(this.pos+=V[0].length),V)}},qt.prototype.current=function(){return this.string.slice(this.start,this.pos)},qt.prototype.hideFirstChars=function(t,p){this.lineStart+=t;try{return p()}finally{this.lineStart-=t}},qt.prototype.lookAhead=function(t){var p=this.lineOracle;return p&&p.lookAhead(t)},qt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function Lt(t,p){if(p-=t.first,p<0||p>=t.size)throw new Error("There is no line "+(p+t.first)+" in the document.");for(var O=t;!O.lines;)for(var A=0;;++A){var N=O.children[A],V=N.chunkSize();if(p<V){O=N;break}p-=V}return O.lines[p]}function Tn(t,p,O){var A=[],N=p.line;return t.iter(p.line,O.line+1,function(V){var re=V.text;N==O.line&&(re=re.slice(0,O.ch)),N==p.line&&(re=re.slice(p.ch)),A.push(re),++N}),A}function Wt(t,p,O){var A=[];return t.iter(p,O,function(N){A.push(N.text)}),A}function gn(t,p){var O=p-t.height;if(O)for(var A=t;A;A=A.parent)A.height+=O}function ln(t){if(t.parent==null)return null;for(var p=t.parent,O=ie(p.lines,t),A=p.parent;A;p=A,A=A.parent)for(var N=0;!(A.children[N]==p);++N)O+=A.children[N].chunkSize();return O+p.first}function Un(t,p){var O=t.first;e:do{for(var A=0;A<t.children.length;++A){var N=t.children[A],V=N.height;if(p<V){t=N;continue e}p-=V,O+=N.chunkSize()}return O}while(!t.lines);for(var re=0;re<t.lines.length;++re){var fe=t.lines[re],ge=fe.height;if(p<ge)break;p-=ge}return O+re}function In(t,p){return p>=t.first&&p<t.first+t.size}function Rr(t,p){return String(t.lineNumberFormatter(p+t.firstLineNumber))}function Mt(t,p,O){if(O===void 0&&(O=null),!(this instanceof Mt))return new Mt(t,p,O);this.line=t,this.ch=p,this.sticky=O}function on(t,p){return t.line-p.line||t.ch-p.ch}function ea(t,p){return t.sticky==p.sticky&&on(t,p)==0}function Vr(t){return Mt(t.line,t.ch)}function vr(t,p){return on(t,p)<0?p:t}function jr(t,p){return on(t,p)<0?t:p}function wa(t,p){return Math.max(t.first,Math.min(p,t.first+t.size-1))}function An(t,p){if(p.line<t.first)return Mt(t.first,0);var O=t.first+t.size-1;return p.line>O?Mt(O,Lt(t,O).text.length):ur(p,Lt(t,p.line).text.length)}function ur(t,p){var O=t.ch;return O==null||O>p?Mt(t.line,p):O<0?Mt(t.line,0):t}function Ut(t,p){for(var O=[],A=0;A<p.length;A++)O[A]=An(t,p[A]);return O}var tr=function(t,p){this.state=t,this.lookAhead=p},Yn=function(t,p,O,A){this.state=p,this.doc=t,this.line=O,this.maxLookAhead=A||0,this.baseTokens=null,this.baseTokenPos=1};Yn.prototype.lookAhead=function(t){var p=this.doc.getLine(this.line+t);return p!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),p},Yn.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var p=this.baseTokens[this.baseTokenPos+1];return{type:p&&p.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Yn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Yn.fromSaved=function(t,p,O){return p instanceof tr?new Yn(t,Vt(t.mode,p.state),O,p.lookAhead):new Yn(t,Vt(t.mode,p),O)},Yn.prototype.save=function(t){var p=t!==!1?Vt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new tr(p,this.maxLookAhead):p};function Xn(t,p,O,A){var N=[t.state.modeGen],V={};Ur(t,p.text,t.doc.mode,O,function(Se,Je){return N.push(Se,Je)},V,A);for(var re=O.state,fe=function(Se){O.baseTokens=N;var Je=t.state.overlays[Se],at=1,Dt=0;O.state=!0,Ur(t,p.text,Je.mode,O,function(Ot,Gt){for(var en=at;Dt<Ot;){var yn=N[at];yn>Ot&&N.splice(at,1,Ot,N[at+1],yn),at+=2,Dt=Math.min(Ot,yn)}if(!Gt)return;if(Je.opaque)N.splice(en,at-en,Ot,"overlay "+Gt),at=en+2;else for(;en<at;en+=2){var Sn=N[en+1];N[en+1]=(Sn?Sn+" ":"")+"overlay "+Gt}},V),O.state=re,O.baseTokens=null,O.baseTokenPos=1},ge=0;ge<t.state.overlays.length;++ge)fe(ge);return{styles:N,classes:V.bgClass||V.textClass?V:null}}function nr(t,p,O){if(!p.styles||p.styles[0]!=t.state.modeGen){var A=br(t,ln(p)),N=p.text.length>t.options.maxHighlightLength&&Vt(t.doc.mode,A.state),V=Xn(t,p,A);N&&(A.state=N),p.stateAfter=A.save(!N),p.styles=V.styles,V.classes?p.styleClasses=V.classes:p.styleClasses&&(p.styleClasses=null),O===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return p.styles}function br(t,p,O){var A=t.doc,N=t.display;if(!A.mode.startState)return new Yn(A,!0,p);var V=Yr(t,p,O),re=V>A.first&&Lt(A,V-1).stateAfter,fe=re?Yn.fromSaved(A,re,V):new Yn(A,cn(A.mode),V);return A.iter(V,p,function(ge){xa(t,ge.text,fe);var Se=fe.line;ge.stateAfter=Se==p-1||Se%5==0||Se>=N.viewFrom&&Se<N.viewTo?fe.save():null,fe.nextLine()}),O&&(A.modeFrontier=fe.line),fe}function xa(t,p,O,A){var N=t.doc.mode,V=new qt(p,t.options.tabSize,O);for(V.start=V.pos=A||0,p==""&&Wr(N,O.state);!V.eol();)Ir(N,V,O.state),V.start=V.pos}function Wr(t,p){if(t.blankLine)return t.blankLine(p);if(!t.innerMode)return;var O=dn(t,p);if(O.mode.blankLine)return O.mode.blankLine(O.state)}function Ir(t,p,O,A){for(var N=0;N<10;N++){A&&(A[0]=dn(t,O).mode);var V=t.token(p,O);if(p.pos>p.start)return V}throw new Error("Mode "+t.name+" failed to advance stream.")}var hr=function(t,p,O){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=p||null,this.state=O};function Ca(t,p,O,A){var N=t.doc,V=N.mode,re;p=An(N,p);var fe=Lt(N,p.line),ge=br(t,p.line,O),Se=new qt(fe.text,t.options.tabSize,ge),Je;for(A&&(Je=[]);(A||Se.pos<p.ch)&&!Se.eol();)Se.start=Se.pos,re=Ir(V,Se,ge.state),A&&Je.push(new hr(Se,re,Vt(N.mode,ge.state)));return A?Je:new hr(Se,re,ge.state)}function ia(t,p){if(t)for(;;){var O=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!O)break;t=t.slice(0,O.index)+t.slice(O.index+O[0].length);var A=O[1]?"bgClass":"textClass";p[A]==null?p[A]=O[2]:new RegExp("(?:^|\\s)"+O[2]+"(?:$|\\s)").test(p[A])||(p[A]+=" "+O[2])}return t}function Ur(t,p,O,A,N,V,re){var fe=O.flattenSpans;fe==null&&(fe=t.options.flattenSpans);var ge=0,Se=null,Je=new qt(p,t.options.tabSize,A),at,Dt=t.options.addModeClass&&[null];for(p==""&&ia(Wr(O,A.state),V);!Je.eol();){if(Je.pos>t.options.maxHighlightLength?(fe=!1,re&&xa(t,p,A,Je.pos),Je.pos=p.length,at=null):at=ia(Ir(O,Je,A.state,Dt),V),Dt){var Ot=Dt[0].name;Ot&&(at="m-"+(at?Ot+" "+at:Ot))}if(!fe||Se!=at){for(;ge<Je.start;)ge=Math.min(Je.start,ge+5e3),N(ge,Se);Se=at}Je.start=Je.pos}for(;ge<Je.pos;){var Gt=Math.min(Je.pos,ge+5e3);N(Gt,Se),ge=Gt}}function Yr(t,p,O){for(var A,N,V=t.doc,re=O?-1:p-(t.doc.mode.innerMode?1e3:100),fe=p;fe>re;--fe){if(fe<=V.first)return V.first;var ge=Lt(V,fe-1),Se=ge.stateAfter;if(Se&&(!O||fe+(Se instanceof tr?Se.lookAhead:0)<=V.modeFrontier))return fe;var Je=j(ge.text,null,t.options.tabSize);(N==null||A>Je)&&(N=fe-1,A=Je)}return N}function zn(t,p){if(t.modeFrontier=Math.min(t.modeFrontier,p),t.highlightFrontier<p-10)return;for(var O=t.first,A=p-1;A>O;A--){var N=Lt(t,A).stateAfter;if(N&&(!(N instanceof tr)||A+N.lookAhead<p)){O=A+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,O)}var Gn=!1,Pn=!1;function rr(){Gn=!0}function Ja(){Pn=!0}function oa(t,p,O){this.marker=t,this.from=p,this.to=O}function Ar(t,p){if(t)for(var O=0;O<t.length;++O){var A=t[O];if(A.marker==p)return A}}function Sa(t,p){for(var O,A=0;A<t.length;++A)t[A]!=p&&(O||(O=[])).push(t[A]);return O}function yi(t,p){t.markedSpans=t.markedSpans?t.markedSpans.concat([p]):[p],p.marker.attachLine(t)}function Eo(t,p,O){var A;if(t)for(var N=0;N<t.length;++N){var V=t[N],re=V.marker,fe=V.from==null||(re.inclusiveLeft?V.from<=p:V.from<p);if(fe||V.from==p&&re.type=="bookmark"&&(!O||!V.marker.insertLeft)){var ge=V.to==null||(re.inclusiveRight?V.to>=p:V.to>p);(A||(A=[])).push(new oa(re,V.from,ge?null:V.to))}}return A}function wo(t,p,O){var A;if(t)for(var N=0;N<t.length;++N){var V=t[N],re=V.marker,fe=V.to==null||(re.inclusiveRight?V.to>=p:V.to>p);if(fe||V.from==p&&re.type=="bookmark"&&(!O||V.marker.insertLeft)){var ge=V.from==null||(re.inclusiveLeft?V.from<=p:V.from<p);(A||(A=[])).push(new oa(re,ge?null:V.from-p,V.to==null?null:V.to-p))}}return A}function Ka(t,p){if(p.full)return null;var O=In(t,p.from.line)&&Lt(t,p.from.line).markedSpans,A=In(t,p.to.line)&&Lt(t,p.to.line).markedSpans;if(!O&&!A)return null;var N=p.from.ch,V=p.to.ch,re=on(p.from,p.to)==0,fe=Eo(O,N,re),ge=wo(A,V,re),Se=p.text.length==1,Je=ne(p.text).length+(Se?N:0);if(fe)for(var at=0;at<fe.length;++at){var Dt=fe[at];if(Dt.to==null){var Ot=Ar(ge,Dt.marker);Ot?Se&&(Dt.to=Ot.to==null?null:Ot.to+Je):Dt.to=N}}if(ge)for(var Gt=0;Gt<ge.length;++Gt){var en=ge[Gt];if(en.to!=null&&(en.to+=Je),en.from==null){var yn=Ar(fe,en.marker);yn||(en.from=Je,Se&&(fe||(fe=[])).push(en))}else en.from+=Je,Se&&(fe||(fe=[])).push(en)}fe&&(fe=zi(fe)),ge&&ge!=fe&&(ge=zi(ge));var Sn=[fe];if(!Se){var Fn=p.text.length-2,kn;if(Fn>0&&fe)for(var Zn=0;Zn<fe.length;++Zn)fe[Zn].to==null&&(kn||(kn=[])).push(new oa(fe[Zn].marker,null,null));for(var Or=0;Or<Fn;++Or)Sn.push(kn);Sn.push(ge)}return Sn}function zi(t){for(var p=0;p<t.length;++p){var O=t[p];O.from!=null&&O.from==O.to&&O.marker.clearWhenEmpty!==!1&&t.splice(p--,1)}return t.length?t:null}function Di(t,p,O){var A=null;if(t.iter(p.line,O.line+1,function(Ot){if(Ot.markedSpans)for(var Gt=0;Gt<Ot.markedSpans.length;++Gt){var en=Ot.markedSpans[Gt].marker;en.readOnly&&(!A||ie(A,en)==-1)&&(A||(A=[])).push(en)}}),!A)return null;for(var N=[{from:p,to:O}],V=0;V<A.length;++V)for(var re=A[V],fe=re.find(0),ge=0;ge<N.length;++ge){var Se=N[ge];if(on(Se.to,fe.from)<0||on(Se.from,fe.to)>0)continue;var Je=[ge,1],at=on(Se.from,fe.from),Dt=on(Se.to,fe.to);(at<0||!re.inclusiveLeft&&!at)&&Je.push({from:Se.from,to:fe.from}),(Dt>0||!re.inclusiveRight&&!Dt)&&Je.push({from:fe.to,to:Se.to}),N.splice.apply(N,Je),ge+=Je.length-3}return N}function Fo(t){var p=t.markedSpans;if(!p)return;for(var O=0;O<p.length;++O)p[O].marker.detachLine(t);t.markedSpans=null}function _i(t,p){if(!p)return;for(var O=0;O<p.length;++O)p[O].marker.attachLine(t);t.markedSpans=p}function fa(t){return t.inclusiveLeft?-1:0}function pr(t){return t.inclusiveRight?1:0}function ka(t,p){var O=t.lines.length-p.lines.length;if(O!=0)return O;var A=t.find(),N=p.find(),V=on(A.from,N.from)||fa(t)-fa(p);if(V)return-V;var re=on(A.to,N.to)||pr(t)-pr(p);return re||p.id-t.id}function ui(t,p){var O=Pn&&t.markedSpans,A;if(O)for(var N=void 0,V=0;V<O.length;++V)N=O[V],N.marker.collapsed&&(p?N.from:N.to)==null&&(!A||ka(A,N.marker)<0)&&(A=N.marker);return A}function ji(t){return ui(t,!0)}function gi(t){return ui(t,!1)}function ei(t,p){var O=Pn&&t.markedSpans,A;if(O)for(var N=0;N<O.length;++N){var V=O[N];V.marker.collapsed&&(V.from==null||V.from<p)&&(V.to==null||V.to>p)&&(!A||ka(A,V.marker)<0)&&(A=V.marker)}return A}function En(t,p,O,A,N){var V=Lt(t,p),re=Pn&&V.markedSpans;if(re)for(var fe=0;fe<re.length;++fe){var ge=re[fe];if(!ge.marker.collapsed)continue;var Se=ge.marker.find(0),Je=on(Se.from,O)||fa(ge.marker)-fa(N),at=on(Se.to,A)||pr(ge.marker)-pr(N);if(Je>=0&&at<=0||Je<=0&&at>=0)continue;if(Je<=0&&(ge.marker.inclusiveRight&&N.inclusiveLeft?on(Se.to,O)>=0:on(Se.to,O)>0)||Je>=0&&(ge.marker.inclusiveRight&&N.inclusiveLeft?on(Se.from,A)<=0:on(Se.from,A)<0))return!0}}function ua(t){for(var p;p=ji(t);)t=p.find(-1,!0).line;return t}function Mi(t){for(var p;p=gi(t);)t=p.find(1,!0).line;return t}function ao(t){for(var p,O;p=gi(t);)t=p.find(1,!0).line,(O||(O=[])).push(t);return O}function hi(t,p){var O=Lt(t,p),A=ua(O);return O==A?p:ln(A)}function Ia(t,p){if(p>t.lastLine())return p;var O=Lt(t,p),A;if(!La(t,O))return p;for(;A=gi(O);)O=A.find(1,!0).line;return ln(O)+1}function La(t,p){var O=Pn&&p.markedSpans;if(O)for(var A=void 0,N=0;N<O.length;++N){if(A=O[N],!A.marker.collapsed)continue;if(A.from==null)return!0;if(A.marker.widgetNode)continue;if(A.from==0&&A.marker.inclusiveLeft&&io(t,p,A))return!0}}function io(t,p,O){if(O.to==null){var A=O.marker.find(1,!0);return io(t,A.line,Ar(A.line.markedSpans,O.marker))}if(O.marker.inclusiveRight&&O.to==p.text.length)return!0;for(var N=void 0,V=0;V<p.markedSpans.length;++V)if(N=p.markedSpans[V],N.marker.collapsed&&!N.marker.widgetNode&&N.from==O.to&&(N.to==null||N.to!=O.from)&&(N.marker.inclusiveLeft||O.marker.inclusiveRight)&&io(t,p,N))return!0}function Ji(t){t=ua(t);for(var p=0,O=t.parent,A=0;A<O.lines.length;++A){var N=O.lines[A];if(N==t)break;p+=N.height}for(var V=O.parent;V;O=V,V=O.parent)for(var re=0;re<V.children.length;++re){var fe=V.children[re];if(fe==O)break;p+=fe.height}return p}function xo(t){if(t.height==0)return 0;for(var p=t.text.length,O,A=t;O=ji(A);){var N=O.find(0,!0);A=N.from.line,p+=N.from.ch-N.to.ch}for(A=t;O=gi(A);){var V=O.find(0,!0);p-=A.text.length-V.from.ch,A=V.to.line,p+=A.text.length-V.to.ch}return p}function vo(t){var p=t.display,O=t.doc;p.maxLine=Lt(O,O.first),p.maxLineLength=xo(p.maxLine),p.maxLineChanged=!0,O.iter(function(A){var N=xo(A);N>p.maxLineLength&&(p.maxLineLength=N,p.maxLine=A)})}var Co=function(t,p,O){this.text=t,_i(this,p),this.height=O?O(this):1};Co.prototype.lineNo=function(){return ln(this)},Fe(Co);function Ho(t,p,O,A){t.text=p,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),Fo(t),_i(t,O);var N=A?A(t):1;N!=t.height&&gn(t,N)}function $n(t){t.parent=null,Fo(t)}var Cr={},ar={};function Kr(t,p){if(!t||/^\s*$/.test(t))return null;var O=p.addModeClass?ar:Cr;return O[t]||(O[t]=t.replace(/\S+/g,"cm-$&"))}function sa(t,p){var O=W("span",null,null,u?"padding-right: .1px":null),A={pre:W("pre",[O],"CodeMirror-line"),content:O,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};p.measure={};for(var N=0;N<=(p.rest?p.rest.length:0);N++){var V=N?p.rest[N-1]:p.line,re=void 0;A.pos=0,A.addToken=Zr,Ye(t.display.measure)&&(re=ft(V,t.doc.direction))&&(A.addToken=Ci(A.addToken,re)),A.map=[];var fe=p!=t.display.externalMeasured&&ln(V);Gi(V,A,nr(t,V,fe)),V.styleClasses&&(V.styleClasses.bgClass&&(A.bgClass=U(V.styleClasses.bgClass,A.bgClass||"")),V.styleClasses.textClass&&(A.textClass=U(V.styleClasses.textClass,A.textClass||""))),A.map.length==0&&A.map.push(0,0,A.content.appendChild(Te(t.display.measure))),N==0?(p.measure.map=A.map,p.measure.cache={}):((p.measure.maps||(p.measure.maps=[])).push(A.map),(p.measure.caches||(p.measure.caches=[])).push({}))}if(u){var ge=A.content.lastChild;(/\bcm-tab\b/.test(ge.className)||ge.querySelector&&ge.querySelector(".cm-tab"))&&(A.content.className="cm-tab-wrap-hack")}return We(t,"renderLine",t,p.line,A.pre),A.pre.className&&(A.textClass=U(A.pre.className,A.textClass||"")),A}function ca(t){var p=B("span","\u2022","cm-invalidchar");return p.title="\\u"+t.charCodeAt(0).toString(16),p.setAttribute("aria-label",p.title),p}function Zr(t,p,O,A,N,V,re){if(!p)return;var fe=t.splitSpaces?ti(p,t.trailingSpace):p,ge=t.cm.state.specialChars,Se=!1,Je;if(!ge.test(p))t.col+=p.length,Je=document.createTextNode(fe),t.map.push(t.pos,t.pos+p.length,Je),f&&d<9&&(Se=!0),t.pos+=p.length;else{Je=document.createDocumentFragment();for(var at=0;;){ge.lastIndex=at;var Dt=ge.exec(p),Ot=Dt?Dt.index-at:p.length-at;if(Ot){var Gt=document.createTextNode(fe.slice(at,at+Ot));f&&d<9?Je.appendChild(B("span",[Gt])):Je.appendChild(Gt),t.map.push(t.pos,t.pos+Ot,Gt),t.col+=Ot,t.pos+=Ot}if(!Dt)break;at+=Ot+1;var en=void 0;if(Dt[0]==" "){var yn=t.cm.options.tabSize,Sn=yn-t.col%yn;en=Je.appendChild(B("span",ue(Sn),"cm-tab")),en.setAttribute("role","presentation"),en.setAttribute("cm-text"," "),t.col+=Sn}else Dt[0]=="\r"||Dt[0]==`
`?(en=Je.appendChild(B("span",Dt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),en.setAttribute("cm-text",Dt[0]),t.col+=1):(en=t.cm.options.specialCharPlaceholder(Dt[0]),en.setAttribute("cm-text",Dt[0]),f&&d<9?Je.appendChild(B("span",[en])):Je.appendChild(en),t.col+=1);t.map.push(t.pos,t.pos+1,en),t.pos++}}if(t.trailingSpace=fe.charCodeAt(p.length-1)==32,O||A||N||Se||V||re){var Fn=O||"";A&&(Fn+=A),N&&(Fn+=N);var kn=B("span",[Je],Fn,V);if(re)for(var Zn in re)re.hasOwnProperty(Zn)&&Zn!="style"&&Zn!="class"&&kn.setAttribute(Zn,re[Zn]);return t.content.appendChild(kn)}t.content.appendChild(Je)}function ti(t,p){if(t.length>1&&!/ /.test(t))return t;for(var O=p,A="",N=0;N<t.length;N++){var V=t.charAt(N);V==" "&&O&&(N==t.length-1||t.charCodeAt(N+1)==32)&&(V="\xA0"),A+=V,O=V==" "}return A}function Ci(t,p){return function(O,A,N,V,re,fe,ge){N=N?N+" cm-force-border":"cm-force-border";for(var Se=O.pos,Je=Se+A.length;;){for(var at=void 0,Dt=0;Dt<p.length&&!(at=p[Dt],at.to>Se&&at.from<=Se);Dt++);if(at.to>=Je)return t(O,A,N,V,re,fe,ge);t(O,A.slice(0,at.to-Se),N,V,null,fe,ge),V=null,A=A.slice(at.to-Se),Se=at.to}}}function Sr(t,p,O,A){var N=!A&&O.widgetNode;N&&t.map.push(t.pos,t.pos+p,N),!A&&t.cm.display.input.needsContentAttribute&&(N||(N=t.content.appendChild(document.createElement("span"))),N.setAttribute("cm-marker",O.id)),N&&(t.cm.display.input.setUneditable(N),t.content.appendChild(N)),t.pos+=p,t.trailingSpace=!1}function Gi(t,p,O){var A=t.markedSpans,N=t.text,V=0;if(!A){for(var re=1;re<O.length;re+=2)p.addToken(p,N.slice(V,V=O[re]),Kr(O[re+1],p.cm.options));return}for(var fe=N.length,ge=0,Se=1,Je="",at,Dt,Ot=0,Gt,en,yn,Sn,Fn;;){if(Ot==ge){Gt=en=yn=Dt="",Fn=null,Sn=null,Ot=Infinity;for(var kn=[],Zn=void 0,Or=0;Or<A.length;++Or){var cr=A[Or],$r=cr.marker;if($r.type=="bookmark"&&cr.from==ge&&$r.widgetNode)kn.push($r);else if(cr.from<=ge&&(cr.to==null||cr.to>ge||$r.collapsed&&cr.to==ge&&cr.from==ge)){if(cr.to!=null&&cr.to!=ge&&Ot>cr.to&&(Ot=cr.to,en=""),$r.className&&(Gt+=" "+$r.className),$r.css&&(Dt=(Dt?Dt+";":"")+$r.css),$r.startStyle&&cr.from==ge&&(yn+=" "+$r.startStyle),$r.endStyle&&cr.to==Ot&&(Zn||(Zn=[])).push($r.endStyle,cr.to),$r.title&&((Fn||(Fn={})).title=$r.title),$r.attributes)for(var Ua in $r.attributes)(Fn||(Fn={}))[Ua]=$r.attributes[Ua];$r.collapsed&&(!Sn||ka(Sn.marker,$r)<0)&&(Sn=cr)}else cr.from>ge&&Ot>cr.from&&(Ot=cr.from)}if(Zn)for(var pi=0;pi<Zn.length;pi+=2)Zn[pi+1]==Ot&&(en+=" "+Zn[pi]);if(!Sn||Sn.from==ge)for(var oi=0;oi<kn.length;++oi)Sr(p,0,kn[oi]);if(Sn&&(Sn.from||0)==ge){if(Sr(p,(Sn.to==null?fe+1:Sn.to)-ge,Sn.marker,Sn.from==null),Sn.to==null)return;Sn.to==ge&&(Sn=!1)}}if(ge>=fe)break;for(var eo=Math.min(fe,Ot);;){if(Je){var Yi=ge+Je.length;if(!Sn){var si=Yi>eo?Je.slice(0,eo-ge):Je;p.addToken(p,si,at?at+Gt:Gt,yn,ge+si.length==Ot?en:"",Dt,Fn)}if(Yi>=eo){Je=Je.slice(eo-ge),ge=eo;break}ge=Yi,yn=""}Je=N.slice(V,V=O[Se++]),at=Kr(O[Se++],p.cm.options)}}}function ha(t,p,O){this.line=p,this.rest=ao(p),this.size=this.rest?ln(ne(this.rest))-O+1:1,this.node=this.text=null,this.hidden=La(t,p)}function Si(t,p,O){for(var A=[],N,V=p;V<O;V=N){var re=new ha(t.doc,Lt(t.doc,V),V);N=V+re.size,A.push(re)}return A}var Ei=null;function Ui(t){Ei?Ei.ops.push(t):t.ownsGroup=Ei={ops:[t],delayedCallbacks:[]}}function Do(t){var p=t.delayedCallbacks,O=0;do{for(;O<p.length;O++)p[O].call(null);for(var A=0;A<t.ops.length;A++){var N=t.ops[A];if(N.cursorActivityHandlers)for(;N.cursorActivityCalled<N.cursorActivityHandlers.length;)N.cursorActivityHandlers[N.cursorActivityCalled++].call(null,N.cm)}}while(O<p.length)}function gs(t,p){var O=t.ownsGroup;if(!O)return;try{Do(O)}finally{Ei=null,p(O)}}var Ao=null;function Za(t,p){var O=Bt(t,p);if(!O.length)return;var A=Array.prototype.slice.call(arguments,2),N;Ei?N=Ei.delayedCallbacks:Ao?N=Ao:(N=Ao=[],setTimeout(is,0));for(var V=function(fe){N.push(function(){return O[fe].apply(null,A)})},re=0;re<O.length;++re)V(re)}function is(){var t=Ao;Ao=null;for(var p=0;p<t.length;++p)t[p]()}function Dr(t,p,O,A){for(var N=0;N<p.changes.length;N++){var V=p.changes[N];V=="text"?mr(t,p):V=="gutter"?Aa(t,p,O,A):V=="class"?yr(t,p):V=="widget"&&Da(t,p,A)}p.changes=null}function wn(t){return t.node==t.text&&(t.node=B("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),f&&d<8&&(t.node.style.zIndex=2)),t.node}function Qn(t,p){var O=p.bgClass?p.bgClass+" "+(p.line.bgClass||""):p.line.bgClass;if(O&&(O+=" CodeMirror-linebackground"),p.background)O?p.background.className=O:(p.background.parentNode.removeChild(p.background),p.background=null);else if(O){var A=wn(p);p.background=A.insertBefore(B("div",null,O),A.firstChild),t.display.input.setUneditable(p.background)}}function Cn(t,p){var O=t.display.externalMeasured;return O&&O.line==p.line?(t.display.externalMeasured=null,p.measure=O.measure,O.built):sa(t,p)}function mr(t,p){var O=p.text.className,A=Cn(t,p);p.text==p.node&&(p.node=A.pre),p.text.parentNode.replaceChild(A.pre,p.text),p.text=A.pre,A.bgClass!=p.bgClass||A.textClass!=p.textClass?(p.bgClass=A.bgClass,p.textClass=A.textClass,yr(t,p)):O&&(p.text.className=O)}function yr(t,p){Qn(t,p),p.line.wrapClass?wn(p).className=p.line.wrapClass:p.node!=p.text&&(p.node.className="");var O=p.textClass?p.textClass+" "+(p.line.textClass||""):p.line.textClass;p.text.className=O||""}function Aa(t,p,O,A){if(p.gutter&&(p.node.removeChild(p.gutter),p.gutter=null),p.gutterBackground&&(p.node.removeChild(p.gutterBackground),p.gutterBackground=null),p.line.gutterClass){var N=wn(p);p.gutterBackground=B("div",null,"CodeMirror-gutter-background "+p.line.gutterClass,"left: "+(t.options.fixedGutter?A.fixedPos:-A.gutterTotalWidth)+"px; width: "+A.gutterTotalWidth+"px"),t.display.input.setUneditable(p.gutterBackground),N.insertBefore(p.gutterBackground,p.text)}var V=p.line.gutterMarkers;if(t.options.lineNumbers||V){var re=wn(p),fe=p.gutter=B("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?A.fixedPos:-A.gutterTotalWidth)+"px");if(t.display.input.setUneditable(fe),re.insertBefore(fe,p.text),p.line.gutterClass&&(fe.className+=" "+p.line.gutterClass),t.options.lineNumbers&&(!V||!V["CodeMirror-linenumbers"])&&(p.lineNumber=fe.appendChild(B("div",Rr(t.options,O),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+A.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),V)for(var ge=0;ge<t.display.gutterSpecs.length;++ge){var Se=t.display.gutterSpecs[ge].className,Je=V.hasOwnProperty(Se)&&V[Se];Je&&fe.appendChild(B("div",[Je],"CodeMirror-gutter-elt","left: "+A.gutterLeft[Se]+"px; width: "+A.gutterWidth[Se]+"px"))}}}function Da(t,p,O){p.alignable&&(p.alignable=null);for(var A=k("CodeMirror-linewidget"),N=p.node.firstChild,V=void 0;N;N=V)V=N.nextSibling,A.test(N.className)&&p.node.removeChild(N);fr(t,p,O)}function Er(t,p,O,A){var N=Cn(t,p);return p.text=p.node=N.pre,N.bgClass&&(p.bgClass=N.bgClass),N.textClass&&(p.textClass=N.textClass),yr(t,p),Aa(t,p,O,A),fr(t,p,A),p.node}function fr(t,p,O){if(da(t,p.line,p,O,!0),p.rest)for(var A=0;A<p.rest.length;A++)da(t,p.rest[A],p,O,!1)}function da(t,p,O,A,N){if(!p.widgets)return;for(var V=wn(O),re=0,fe=p.widgets;re<fe.length;++re){var ge=fe[re],Se=B("div",[ge.node],"CodeMirror-linewidget"+(ge.className?" "+ge.className:""));ge.handleMouseEvents||Se.setAttribute("cm-ignore-events","true"),ni(ge,Se,O,A),t.display.input.setUneditable(Se),N&&ge.above?V.insertBefore(Se,O.gutter||O.text):V.appendChild(Se),Za(ge,"redraw")}}function ni(t,p,O,A){if(t.noHScroll){(O.alignable||(O.alignable=[])).push(p);var N=A.wrapperWidth;p.style.left=A.fixedPos+"px",t.coverGutter||(N-=A.gutterTotalWidth,p.style.paddingLeft=A.gutterTotalWidth+"px"),p.style.width=N+"px"}t.coverGutter&&(p.style.zIndex=5,p.style.position="relative",t.noHScroll||(p.style.marginLeft=-A.gutterTotalWidth+"px"))}function qa(t){if(t.height!=null)return t.height;var p=t.doc.cm;if(!p)return 0;if(!H(document.body,t.node)){var O="position: relative;";t.coverGutter&&(O+="margin-left: -"+p.display.gutters.offsetWidth+"px;"),t.noHScroll&&(O+="width: "+p.display.wrapper.clientWidth+"px;"),P(p.display.measure,B("div",[t.node],null,O))}return t.height=t.node.parentNode.offsetHeight}function Fi(t,p){for(var O=Ne(p);O!=t.wrapper;O=O.parentNode)if(!O||O.nodeType==1&&O.getAttribute("cm-ignore-events")=="true"||O.parentNode==t.sizer&&O!=t.mover)return!0}function Mo(t){return t.lineSpace.offsetTop}function Qe(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function _t(t){if(t.cachedPaddingH)return t.cachedPaddingH;var p=P(t.measure,B("pre","x","CodeMirror-line-like")),O=window.getComputedStyle?window.getComputedStyle(p):p.currentStyle,A={left:parseInt(O.paddingLeft),right:parseInt(O.paddingRight)};return!isNaN(A.left)&&!isNaN(A.right)&&(t.cachedPaddingH=A),A}function xt(t){return pe-t.display.nativeBarWidth}function it(t){return t.display.scroller.clientWidth-xt(t)-t.display.barWidth}function Oe(t){return t.display.scroller.clientHeight-xt(t)-t.display.barHeight}function ze(t,p,O){var A=t.options.lineWrapping,N=A&&it(t);if(!p.measure.heights||A&&p.measure.width!=N){var V=p.measure.heights=[];if(A){p.measure.width=N;for(var re=p.text.firstChild.getClientRects(),fe=0;fe<re.length-1;fe++){var ge=re[fe],Se=re[fe+1];Math.abs(ge.bottom-Se.bottom)>2&&V.push((ge.bottom+Se.top)/2-O.top)}}V.push(O.bottom-O.top)}}function Ie(t,p,O){if(t.line==p)return{map:t.measure.map,cache:t.measure.cache};for(var A=0;A<t.rest.length;A++)if(t.rest[A]==p)return{map:t.measure.maps[A],cache:t.measure.caches[A]};for(var N=0;N<t.rest.length;N++)if(ln(t.rest[N])>O)return{map:t.measure.maps[N],cache:t.measure.caches[N],before:!0}}function rt(t,p){p=ua(p);var O=ln(p),A=t.display.externalMeasured=new ha(t.doc,p,O);A.lineN=O;var N=A.built=sa(t,A);return A.text=N.pre,P(t.display.lineMeasure,N.pre),A}function lt(t,p,O,A){return It(t,yt(t,p),O,A)}function St(t,p){if(p>=t.display.viewFrom&&p<t.display.viewTo)return t.display.view[$a(t,p)];var O=t.display.externalMeasured;if(O&&p>=O.lineN&&p<O.lineN+O.size)return O}function yt(t,p){var O=ln(p),A=St(t,O);A&&!A.text?A=null:A&&A.changes&&(Dr(t,A,O,vi(t)),t.curOp.forceUpdate=!0),A||(A=rt(t,p));var N=Ie(A,p,O);return{line:p,view:A,rect:null,map:N.map,cache:N.cache,before:N.before,hasHeights:!1}}function It(t,p,O,A,N){p.before&&(O=-1);var V=O+(A||""),re;return p.cache.hasOwnProperty(V)?re=p.cache[V]:(p.rect||(p.rect=p.view.text.getBoundingClientRect()),p.hasHeights||(ze(t,p.view,p.rect),p.hasHeights=!0),re=Rn(t,p,O,A),re.bogus||(p.cache[V]=re)),{left:re.left,right:re.right,top:N?re.rtop:re.top,bottom:N?re.rbottom:re.bottom}}var zt={left:0,right:0,top:0,bottom:0};function _n(t,p,O){for(var A,N,V,re,fe,ge,Se=0;Se<t.length;Se+=3)if(fe=t[Se],ge=t[Se+1],p<fe?(N=0,V=1,re="left"):p<ge?(N=p-fe,V=N+1):(Se==t.length-3||p==ge&&t[Se+3]>p)&&(V=ge-fe,N=V-1,p>=ge&&(re="right")),N!=null){if(A=t[Se+2],fe==ge&&O==(A.insertLeft?"left":"right")&&(re=O),O=="left"&&N==0)for(;Se&&t[Se-2]==t[Se-3]&&t[Se-1].insertLeft;)A=t[(Se-=3)+2],re="left";if(O=="right"&&N==ge-fe)for(;Se<t.length-3&&t[Se+3]==t[Se+4]&&!t[Se+5].insertLeft;)A=t[(Se+=3)+2],re="right";break}return{node:A,start:N,end:V,collapse:re,coverStart:fe,coverEnd:ge}}function hn(t,p){var O=zt;if(p=="left")for(var A=0;A<t.length&&!((O=t[A]).left!=O.right);A++);else for(var N=t.length-1;N>=0&&!((O=t[N]).left!=O.right);N--);return O}function Rn(t,p,O,A){var N=_n(p.map,O,A),V=N.node,re=N.start,fe=N.end,ge=N.collapse,Se;if(V.nodeType==3){for(var Je=0;Je<4;Je++){for(;re&&he(p.line.text.charAt(N.coverStart+re));)--re;for(;N.coverStart+fe<N.coverEnd&&he(p.line.text.charAt(N.coverStart+fe));)++fe;if(f&&d<9&&re==0&&fe==N.coverEnd-N.coverStart?Se=V.parentNode.getBoundingClientRect():Se=hn(z(V,re,fe).getClientRects(),A),Se.left||Se.right||re==0)break;fe=re,re=re-1,ge="right"}f&&d<11&&(Se=Tr(t.display.measure,Se))}else{re>0&&(ge=A="right");var at;t.options.lineWrapping&&(at=V.getClientRects()).length>1?Se=at[A=="right"?at.length-1:0]:Se=V.getBoundingClientRect()}if(f&&d<9&&!re&&(!Se||!Se.left&&!Se.right)){var Dt=V.parentNode.getClientRects()[0];Dt?Se={left:Dt.left,right:Dt.left+Bi(t.display),top:Dt.top,bottom:Dt.bottom}:Se=zt}for(var Ot=Se.top-p.rect.top,Gt=Se.bottom-p.rect.top,en=(Ot+Gt)/2,yn=p.view.measure.heights,Sn=0;Sn<yn.length-1&&!(en<yn[Sn]);Sn++);var Fn=Sn?yn[Sn-1]:0,kn=yn[Sn],Zn={left:(ge=="right"?Se.right:Se.left)-p.rect.left,right:(ge=="left"?Se.left:Se.right)-p.rect.left,top:Fn,bottom:kn};return!Se.left&&!Se.right&&(Zn.bogus=!0),t.options.singleCursorHeightPerLine||(Zn.rtop=Ot,Zn.rbottom=Gt),Zn}function Tr(t,p){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!qe(t))return p;var O=screen.logicalXDPI/screen.deviceXDPI,A=screen.logicalYDPI/screen.deviceYDPI;return{left:p.left*O,right:p.right*O,top:p.top*A,bottom:p.bottom*A}}function ta(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var p=0;p<t.rest.length;p++)t.measure.caches[p]={}}function zr(t){t.display.externalMeasure=null,R(t.display.lineMeasure);for(var p=0;p<t.display.view.length;p++)ta(t.display.view[p])}function Qr(t){zr(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function na(){return r&&_?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function qr(){return r&&_?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Jr(t){var p=0;if(t.widgets)for(var O=0;O<t.widgets.length;++O)t.widgets[O].above&&(p+=qa(t.widgets[O]));return p}function ba(t,p,O,A,N){if(!N){var V=Jr(p);O.top+=V,O.bottom+=V}if(A=="line")return O;A||(A="local");var re=Ji(p);if(A=="local"?re+=Mo(t.display):re-=t.display.viewOffset,A=="page"||A=="window"){var fe=t.display.lineSpace.getBoundingClientRect();re+=fe.top+(A=="window"?0:qr());var ge=fe.left+(A=="window"?0:na());O.left+=ge,O.right+=ge}return O.top+=re,O.bottom+=re,O}function la(t,p,O){if(O=="div")return p;var A=p.left,N=p.top;if(O=="page")A-=na(),N-=qr();else if(O=="local"||!O){var V=t.display.sizer.getBoundingClientRect();A+=V.left,N+=V.top}var re=t.display.lineSpace.getBoundingClientRect();return{left:A-re.left,top:N-re.top}}function ri(t,p,O,A,N){return A||(A=Lt(t.doc,p.line)),ba(t,A,lt(t,A,p.ch,N),O)}function pa(t,p,O,A,N,V){A=A||Lt(t.doc,p.line),N||(N=yt(t,A));function re(Gt,en){var yn=It(t,N,Gt,en?"right":"left",V);return en?yn.left=yn.right:yn.right=yn.left,ba(t,A,yn,O)}var fe=ft(A,t.doc.direction),ge=p.ch,Se=p.sticky;if(ge>=A.text.length?(ge=A.text.length,Se="before"):ge<=0&&(ge=0,Se="after"),!fe)return re(Se=="before"?ge-1:ge,Se=="before");function Je(Gt,en,yn){var Sn=fe[en],Fn=Sn.level==1;return re(yn?Gt-1:Gt,Fn!=yn)}var at=me(fe,ge,Se),Dt=ke,Ot=Je(ge,at,Se=="before");return Dt!=null&&(Ot.other=Je(ge,Dt,Se!="before")),Ot}function gr(t,p){var O=0;p=An(t.doc,p),t.options.lineWrapping||(O=Bi(t.display)*p.ch);var A=Lt(t.doc,p.line),N=Ji(A)+Mo(t.display);return{left:O,right:O,top:N,bottom:N+A.height}}function wr(t,p,O,A,N){var V=Mt(t,p,O);return V.xRel=N,A&&(V.outside=A),V}function ma(t,p,O){var A=t.doc;if(O+=t.display.viewOffset,O<0)return wr(A.first,0,null,-1,-1);var N=Un(A,O),V=A.first+A.size-1;if(N>V)return wr(A.first+A.size-1,Lt(A,V).text.length,null,1,1);p<0&&(p=0);for(var re=Lt(A,N);;){var fe=ai(t,re,N,p,O),ge=ei(re,fe.ch+(fe.xRel>0||fe.outside>0?1:0));if(!ge)return fe;var Se=ge.find(1);if(Se.line==N)return Se;re=Lt(A,N=Se.line)}}function Ta(t,p,O,A){A-=Jr(p);var N=p.text.length,V=Pe(function(re){return It(t,O,re-1).bottom<=A},N,0);return N=Pe(function(re){return It(t,O,re).top>A},V,N),{begin:V,end:N}}function or(t,p,O,A){O||(O=yt(t,p));var N=ba(t,p,It(t,O,A),"line").top;return Ta(t,p,O,N)}function _a(t,p,O,A){return t.bottom<=O?!1:t.top>O?!0:(A?t.left:t.right)>p}function ai(t,p,O,A,N){N-=Ji(p);var V=yt(t,p),re=Jr(p),fe=0,ge=p.text.length,Se=!0,Je=ft(p,t.doc.direction);if(Je){var at=(t.options.lineWrapping?Ha:ya)(t,p,O,V,Je,A,N);Se=at.level!=1,fe=Se?at.from:at.to-1,ge=Se?at.to:at.from-1}var Dt=null,Ot=null,Gt=Pe(function(Or){var cr=It(t,V,Or);return cr.top+=re,cr.bottom+=re,_a(cr,A,N,!1)?(cr.top<=N&&cr.left<=A&&(Dt=Or,Ot=cr),!0):!1},fe,ge),en,yn,Sn=!1;if(Ot){var Fn=A-Ot.left<Ot.right-A,kn=Fn==Se;Gt=Dt+(kn?0:1),yn=kn?"after":"before",en=Fn?Ot.left:Ot.right}else{!Se&&(Gt==ge||Gt==fe)&&Gt++,yn=Gt==0?"after":Gt==p.text.length?"before":It(t,V,Gt-(Se?1:0)).bottom+re<=N==Se?"after":"before";var Zn=pa(t,Mt(O,Gt,yn),"line",p,V);en=Zn.left,Sn=N<Zn.top?-1:N>=Zn.bottom?1:0}return Gt=Ce(p.text,Gt,1),wr(O,Gt,yn,Sn,A-en)}function ya(t,p,O,A,N,V,re){var fe=Pe(function(at){var Dt=N[at],Ot=Dt.level!=1;return _a(pa(t,Mt(O,Ot?Dt.to:Dt.from,Ot?"before":"after"),"line",p,A),V,re,!0)},0,N.length-1),ge=N[fe];if(fe>0){var Se=ge.level!=1,Je=pa(t,Mt(O,Se?ge.from:ge.to,Se?"after":"before"),"line",p,A);_a(Je,V,re,!0)&&Je.top>re&&(ge=N[fe-1])}return ge}function Ha(t,p,O,A,N,V,re){var fe=Ta(t,p,A,re),ge=fe.begin,Se=fe.end;/\s/.test(p.text.charAt(Se-1))&&Se--;for(var Je=null,at=null,Dt=0;Dt<N.length;Dt++){var Ot=N[Dt];if(Ot.from>=Se||Ot.to<=ge)continue;var Gt=Ot.level!=1,en=It(t,A,Gt?Math.min(Se,Ot.to)-1:Math.max(ge,Ot.from)).right,yn=en<V?V-en+1e9:en-V;(!Je||at>yn)&&(Je=Ot,at=yn)}return Je||(Je=N[N.length-1]),Je.from<ge&&(Je={from:ge,to:Je.to,level:Je.level}),Je.to>Se&&(Je={from:Je.from,to:Se,level:Je.level}),Je}var Xa;function wi(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Xa==null){Xa=B("pre",null,"CodeMirror-line-like");for(var p=0;p<49;++p)Xa.appendChild(document.createTextNode("x")),Xa.appendChild(B("br"));Xa.appendChild(document.createTextNode("x"))}P(t.measure,Xa);var O=Xa.offsetHeight/50;return O>3&&(t.cachedTextHeight=O),R(t.measure),O||1}function Bi(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var p=B("span","xxxxxxxxxx"),O=B("pre",[p],"CodeMirror-line-like");P(t.measure,O);var A=p.getBoundingClientRect(),N=(A.right-A.left)/10;return N>2&&(t.cachedCharWidth=N),N||10}function vi(t){for(var p=t.display,O={},A={},N=p.gutters.clientLeft,V=p.gutters.firstChild,re=0;V;V=V.nextSibling,++re){var fe=t.display.gutterSpecs[re].className;O[fe]=V.offsetLeft+V.clientLeft+N,A[fe]=V.clientWidth}return{fixedPos:oo(p),gutterTotalWidth:p.gutters.offsetWidth,gutterLeft:O,gutterWidth:A,wrapperWidth:p.wrapper.clientWidth}}function oo(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function To(t){var p=wi(t.display),O=t.options.lineWrapping,A=O&&Math.max(5,t.display.scroller.clientWidth/Bi(t.display)-3);return function(N){if(La(t.doc,N))return 0;var V=0;if(N.widgets)for(var re=0;re<N.widgets.length;re++)N.widgets[re].height&&(V+=N.widgets[re].height);return O?V+(Math.ceil(N.text.length/A)||1)*p:V+p}}function fo(t){var p=t.doc,O=To(t);p.iter(function(A){var N=O(A);N!=A.height&&gn(A,N)})}function Ki(t,p,O,A){var N=t.display;if(!O&&Ne(p).getAttribute("cm-not-content")=="true")return null;var V,re,fe=N.lineSpace.getBoundingClientRect();try{V=p.clientX-fe.left,re=p.clientY-fe.top}catch(at){return null}var ge=ma(t,V,re),Se;if(A&&ge.xRel>0&&(Se=Lt(t.doc,ge.line).text).length==ge.ch){var Je=j(Se,Se.length,t.options.tabSize)-Se.length;ge=Mt(ge.line,Math.max(0,Math.round((V-_t(t.display).left)/Bi(t.display))-Je))}return ge}function $a(t,p){if(p>=t.display.viewTo)return null;if(p-=t.display.viewFrom,p<0)return null;for(var O=t.display.view,A=0;A<O.length;A++)if(p-=O[A].size,p<0)return A}function za(t,p,O,A){p==null&&(p=t.doc.first),O==null&&(O=t.doc.first+t.doc.size),A||(A=0);var N=t.display;if(A&&O<N.viewTo&&(N.updateLineNumbers==null||N.updateLineNumbers>p)&&(N.updateLineNumbers=p),t.curOp.viewChanged=!0,p>=N.viewTo)Pn&&hi(t.doc,p)<N.viewTo&&ii(t);else if(O<=N.viewFrom)Pn&&Ia(t.doc,O+A)>N.viewFrom?ii(t):(N.viewFrom+=A,N.viewTo+=A);else if(p<=N.viewFrom&&O>=N.viewTo)ii(t);else if(p<=N.viewFrom){var V=Oo(t,O,O+A,1);V?(N.view=N.view.slice(V.index),N.viewFrom=V.lineN,N.viewTo+=A):ii(t)}else if(O>=N.viewTo){var re=Oo(t,p,p,-1);re?(N.view=N.view.slice(0,re.index),N.viewTo=re.lineN):ii(t)}else{var fe=Oo(t,p,p,-1),ge=Oo(t,O,O+A,1);fe&&ge?(N.view=N.view.slice(0,fe.index).concat(Si(t,fe.lineN,ge.lineN)).concat(N.view.slice(ge.index)),N.viewTo+=A):ii(t)}var Se=N.externalMeasured;Se&&(O<Se.lineN?Se.lineN+=A:p<Se.lineN+Se.size&&(N.externalMeasured=null))}function Ga(t,p,O){t.curOp.viewChanged=!0;var A=t.display,N=t.display.externalMeasured;if(N&&p>=N.lineN&&p<N.lineN+N.size&&(A.externalMeasured=null),p<A.viewFrom||p>=A.viewTo)return;var V=A.view[$a(t,p)];if(V.node==null)return;var re=V.changes||(V.changes=[]);ie(re,O)==-1&&re.push(O)}function ii(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function Oo(t,p,O,A){var N=$a(t,p),V,re=t.display.view;if(!Pn||O==t.doc.first+t.doc.size)return{index:N,lineN:O};for(var fe=t.display.viewFrom,ge=0;ge<N;ge++)fe+=re[ge].size;if(fe!=p){if(A>0){if(N==re.length-1)return null;V=fe+re[N].size-p,N++}else V=fe-p;p+=V,O+=V}for(;hi(t.doc,O)!=O;){if(N==(A<0?0:re.length-1))return null;O+=A*re[N-(A<0?1:0)].size,N+=A}return{index:N,lineN:O}}function Wo(t,p,O){var A=t.display,N=A.view;N.length==0||p>=A.viewTo||O<=A.viewFrom?(A.view=Si(t,p,O),A.viewFrom=p):(A.viewFrom>p?A.view=Si(t,p,A.viewFrom).concat(A.view):A.viewFrom<p&&(A.view=A.view.slice($a(t,p))),A.viewFrom=p,A.viewTo<O?A.view=A.view.concat(Si(t,A.viewTo,O)):A.viewTo>O&&(A.view=A.view.slice(0,$a(t,O)))),A.viewTo=O}function Xo(t){for(var p=t.display.view,O=0,A=0;A<p.length;A++){var N=p[A];!N.hidden&&(!N.node||N.changes)&&++O}return O}function Wa(t){t.display.input.showSelection(t.display.input.prepareSelection())}function No(t,p){p===void 0&&(p=!0);for(var O=t.doc,A={},N=A.cursors=document.createDocumentFragment(),V=A.selection=document.createDocumentFragment(),re=0;re<O.sel.ranges.length;re++){if(!p&&re==O.sel.primIndex)continue;var fe=O.sel.ranges[re];if(fe.from().line>=t.display.viewTo||fe.to().line<t.display.viewFrom)continue;var ge=fe.empty();(ge||t.options.showCursorWhenSelecting)&&zo(t,fe.head,N),ge||Pa(t,fe,V)}return A}function zo(t,p,O){var A=pa(t,p,"div",null,null,!t.options.singleCursorHeightPerLine),N=O.appendChild(B("div","\xA0","CodeMirror-cursor"));if(N.style.left=A.left+"px",N.style.top=A.top+"px",N.style.height=Math.max(0,A.bottom-A.top)*t.options.cursorHeight+"px",A.other){var V=O.appendChild(B("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));V.style.display="",V.style.left=A.other.left+"px",V.style.top=A.other.top+"px",V.style.height=(A.other.bottom-A.other.top)*.85+"px"}}function Va(t,p){return t.top-p.top||t.left-p.left}function Pa(t,p,O){var A=t.display,N=t.doc,V=document.createDocumentFragment(),re=_t(t.display),fe=re.left,ge=Math.max(A.sizerWidth,it(t)-A.sizer.offsetLeft)-re.right,Se=N.direction=="ltr";function Je(kn,Zn,Or,cr){Zn<0&&(Zn=0),Zn=Math.round(Zn),cr=Math.round(cr),V.appendChild(B("div",null,"CodeMirror-selected","position: absolute; left: "+kn+`px;
top: `+Zn+"px; width: "+(Or==null?ge-kn:Or)+`px;
height: `+(cr-Zn)+"px"))}function at(kn,Zn,Or){var cr=Lt(N,kn),$r=cr.text.length,Ua,pi;function oi(si,to){return ri(t,Mt(kn,si),"div",cr,to)}function eo(si,to,Hi){var Ii=or(t,cr,null,si),mi=to=="ltr"==(Hi=="after")?"left":"right",di=Hi=="after"?Ii.begin:Ii.end-(/\s/.test(cr.text.charAt(Ii.end-1))?2:1);return oi(di,mi)[mi]}var Yi=ft(cr,N.direction);return de(Yi,Zn||0,Or==null?$r:Or,function(si,to,Hi,Ii){var mi=Hi=="ltr",di=oi(si,mi?"left":"right"),uo=oi(to-1,mi?"right":"left"),_s=Zn==null&&si==0,Mr=Or==null&&to==$r,Hr=Ii==0,li=!Yi||Ii==Yi.length-1;if(uo.top-di.top<=3){var Qa=(Se?_s:Mr)&&Hr,no=(Se?Mr:_s)&&li,ro=Qa?fe:(mi?di:uo).left,Qi=no?ge:(mi?uo:di).right;Je(ro,di.top,Qi-ro,di.bottom)}else{var Ko,Wi,qo,rs;mi?(Ko=Se&&_s&&Hr?fe:di.left,Wi=Se?ge:eo(si,Hi,"before"),qo=Se?fe:eo(to,Hi,"after"),rs=Se&&Mr&&li?ge:uo.right):(Ko=Se?eo(si,Hi,"before"):fe,Wi=!Se&&_s&&Hr?ge:di.right,qo=!Se&&Mr&&li?fe:uo.left,rs=Se?eo(to,Hi,"after"):ge),Je(Ko,di.top,Wi-Ko,di.bottom),di.bottom<uo.top&&Je(fe,di.bottom,null,uo.top),Je(qo,uo.top,rs-qo,uo.bottom)}(!Ua||Va(di,Ua)<0)&&(Ua=di),Va(uo,Ua)<0&&(Ua=uo),(!pi||Va(di,pi)<0)&&(pi=di),Va(uo,pi)<0&&(pi=uo)}),{start:Ua,end:pi}}var Dt=p.from(),Ot=p.to();if(Dt.line==Ot.line)at(Dt.line,Dt.ch,Ot.ch);else{var Gt=Lt(N,Dt.line),en=Lt(N,Ot.line),yn=ua(Gt)==ua(en),Sn=at(Dt.line,Dt.ch,yn?Gt.text.length+1:null).end,Fn=at(Ot.line,yn?0:null,Ot.ch).start;yn&&(Sn.top<Fn.top-2?(Je(Sn.right,Sn.top,null,Sn.bottom),Je(fe,Fn.top,Fn.left,Fn.bottom)):Je(Sn.right,Sn.top,Fn.left-Sn.right,Sn.bottom)),Sn.bottom<Fn.top&&Je(fe,Sn.bottom,null,Fn.top)}O.appendChild(V)}function Ni(t){if(!t.state.focused)return;var p=t.display;clearInterval(p.blinker);var O=!0;p.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?p.blinker=setInterval(function(){t.hasFocus()||os(t),p.cursorDiv.style.visibility=(O=!O)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(p.cursorDiv.style.visibility="hidden")}function il(t){t.state.focused||(t.display.input.focus(),Go(t))}function ol(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,os(t))},100)}function Go(t,p){if(t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),t.options.readOnly=="nocursor")return;t.state.focused||(We(t,"focus",t,p),t.state.focused=!0,G(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),u&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),Ni(t)}function os(t,p){if(t.state.delayingBlurEvent)return;t.state.focused&&(We(t,"blur",t,p),t.state.focused=!1,T(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150)}function As(t){for(var p=t.display,O=p.lineDiv.offsetTop,A=0;A<p.view.length;A++){var N=p.view[A],V=t.options.lineWrapping,re=void 0,fe=0;if(N.hidden)continue;if(f&&d<8){var ge=N.node.offsetTop+N.node.offsetHeight;re=ge-O,O=ge}else{var Se=N.node.getBoundingClientRect();re=Se.bottom-Se.top,!V&&N.text.firstChild&&(fe=N.text.firstChild.getBoundingClientRect().right-Se.left-1)}var Je=N.line.height-re;if((Je>.005||Je<-.005)&&(gn(N.line,re),ss(N.line),N.rest))for(var at=0;at<N.rest.length;at++)ss(N.rest[at]);if(fe>t.display.sizerWidth){var Dt=Math.ceil(fe/Bi(t.display));Dt>t.display.maxLineLength&&(t.display.maxLineLength=Dt,t.display.maxLine=N.line,t.display.maxLineChanged=!0)}}}function ss(t){if(t.widgets)for(var p=0;p<t.widgets.length;++p){var O=t.widgets[p],A=O.node.parentNode;A&&(O.height=A.offsetHeight)}}function Ts(t,p,O){var A=O&&O.top!=null?Math.max(0,O.top):t.scroller.scrollTop;A=Math.floor(A-Mo(t));var N=O&&O.bottom!=null?O.bottom:A+t.wrapper.clientHeight,V=Un(p,A),re=Un(p,N);if(O&&O.ensure){var fe=O.ensure.from.line,ge=O.ensure.to.line;fe<V?(V=fe,re=Un(p,Ji(Lt(p,fe))+t.wrapper.clientHeight)):Math.min(ge,p.lastLine())>=re&&(V=Un(p,Ji(Lt(p,ge))-t.wrapper.clientHeight),re=ge)}return{from:V,to:Math.max(re,V+1)}}function bl(t,p){if(dt(t,"scrollCursorIntoView"))return;var O=t.display,A=O.sizer.getBoundingClientRect(),N=null;if(p.top+A.top<0?N=!0:p.bottom+A.top>(window.innerHeight||document.documentElement.clientHeight)&&(N=!1),N!=null&&!e){var V=B("div","\u200B",null,`position: absolute;
top: `+(p.top-O.viewOffset-Mo(t.display))+`px;
height: `+(p.bottom-p.top+xt(t)+O.barHeight)+`px;
left: `+p.left+"px; width: "+Math.max(2,p.right-p.left)+"px;");t.display.lineSpace.appendChild(V),V.scrollIntoView(N),t.display.lineSpace.removeChild(V)}}function bi(t,p,O,A){A==null&&(A=0);var N;!t.options.lineWrapping&&p==O&&(p=p.ch?Mt(p.line,p.sticky=="before"?p.ch-1:p.ch,"after"):p,O=p.sticky=="before"?Mt(p.line,p.ch+1,"before"):p);for(var V=0;V<5;V++){var re=!1,fe=pa(t,p),ge=!O||O==p?fe:pa(t,O);N={left:Math.min(fe.left,ge.left),top:Math.min(fe.top,ge.top)-A,right:Math.max(fe.left,ge.left),bottom:Math.max(fe.bottom,ge.bottom)+A};var Se=sl(t,N),Je=t.doc.scrollTop,at=t.doc.scrollLeft;if(Se.scrollTop!=null&&(ys(t,Se.scrollTop),Math.abs(t.doc.scrollTop-Je)>1&&(re=!0)),Se.scrollLeft!=null&&(bo(t,Se.scrollLeft),Math.abs(t.doc.scrollLeft-at)>1&&(re=!0)),!re)break}return N}function yl(t,p){var O=sl(t,p);O.scrollTop!=null&&ys(t,O.scrollTop),O.scrollLeft!=null&&bo(t,O.scrollLeft)}function sl(t,p){var O=t.display,A=wi(t.display);p.top<0&&(p.top=0);var N=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:O.scroller.scrollTop,V=Oe(t),re={};p.bottom-p.top>V&&(p.bottom=p.top+V);var fe=t.doc.height+Qe(O),ge=p.top<A,Se=p.bottom>fe-A;if(p.top<N)re.scrollTop=ge?0:p.top;else if(p.bottom>N+V){var Je=Math.min(p.top,(Se?fe:p.bottom)-V);Je!=N&&(re.scrollTop=Je)}var at=t.options.fixedGutter?0:O.gutters.offsetWidth,Dt=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:O.scroller.scrollLeft-at,Ot=it(t)-O.gutters.offsetWidth,Gt=p.right-p.left>Ot;return Gt&&(p.right=p.left+Ot),p.left<10?re.scrollLeft=0:p.left<Dt?re.scrollLeft=Math.max(0,p.left+at-(Gt?0:10)):p.right>Ot+Dt-3&&(re.scrollLeft=p.right+(Gt?0:10)-Ot),re}function vs(t,p){if(p==null)return;Os(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+p}function ls(t){Os(t);var p=t.getCursor();t.curOp.scrollToPos={from:p,to:p,margin:t.options.cursorScrollMargin}}function us(t,p,O){(p!=null||O!=null)&&Os(t),p!=null&&(t.curOp.scrollLeft=p),O!=null&&(t.curOp.scrollTop=O)}function El(t,p){Os(t),t.curOp.scrollToPos=p}function Os(t){var p=t.curOp.scrollToPos;if(p){t.curOp.scrollToPos=null;var O=gr(t,p.from),A=gr(t,p.to);bs(t,O,A,p.margin)}}function bs(t,p,O,A){var N=sl(t,{left:Math.min(p.left,O.left),top:Math.min(p.top,O.top)-A,right:Math.max(p.right,O.right),bottom:Math.max(p.bottom,O.bottom)+A});us(t,N.scrollLeft,N.scrollTop)}function ys(t,p){if(Math.abs(t.doc.scrollTop-p)<2)return;I||xs(t,{top:p}),cs(t,p,!0),I&&xs(t),ws(t,100)}function cs(t,p,O){if(p=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,p)),t.display.scroller.scrollTop==p&&!O)return;t.doc.scrollTop=p,t.display.scrollbars.setScrollTop(p),t.display.scroller.scrollTop!=p&&(t.display.scroller.scrollTop=p)}function bo(t,p,O,A){if(p=Math.max(0,Math.min(p,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(O?p==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-p)<2)&&!A)return;t.doc.scrollLeft=p,Oa(t),t.display.scroller.scrollLeft!=p&&(t.display.scroller.scrollLeft=p),t.display.scrollbars.setScrollLeft(p)}function $o(t){var p=t.display,O=p.gutters.offsetWidth,A=Math.round(t.doc.height+Qe(t.display));return{clientHeight:p.scroller.clientHeight,viewHeight:p.wrapper.clientHeight,scrollWidth:p.scroller.scrollWidth,clientWidth:p.scroller.clientWidth,viewWidth:p.wrapper.clientWidth,barLeft:t.options.fixedGutter?O:0,docHeight:A,scrollHeight:A+xt(t)+p.barHeight,nativeBarWidth:p.nativeBarWidth,gutterWidth:O}}var So=function(t,p,O){this.cm=O;var A=this.vert=B("div",[B("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),N=this.horiz=B("div",[B("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");A.tabIndex=N.tabIndex=-1,t(A),t(N),Xe(A,"scroll",function(){A.clientHeight&&p(A.scrollTop,"vertical")}),Xe(N,"scroll",function(){N.clientWidth&&p(N.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,f&&d<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};So.prototype.update=function(t){var p=t.scrollWidth>t.clientWidth+1,O=t.scrollHeight>t.clientHeight+1,A=t.nativeBarWidth;if(O){this.vert.style.display="block",this.vert.style.bottom=p?A+"px":"0";var N=t.viewHeight-(p?A:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+N)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(p){this.horiz.style.display="block",this.horiz.style.right=O?A+"px":"0",this.horiz.style.left=t.barLeft+"px";var V=t.viewWidth-t.barLeft-(O?A:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+V)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(A==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:O?A:0,bottom:p?A:0}},So.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},So.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},So.prototype.zeroWidthHack=function(){var t=y&&!s?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Z,this.disableVert=new Z},So.prototype.enableZeroWidthBar=function(t,p,O){t.style.pointerEvents="auto";function A(){var N=t.getBoundingClientRect(),V=O=="vert"?document.elementFromPoint(N.right-1,(N.top+N.bottom)/2):document.elementFromPoint((N.right+N.left)/2,N.bottom-1);V!=t?t.style.pointerEvents="none":p.set(1e3,A)}p.set(1e3,A)},So.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Es=function(){};Es.prototype.update=function(){return{bottom:0,right:0}},Es.prototype.setScrollLeft=function(){},Es.prototype.setScrollTop=function(){},Es.prototype.clear=function(){};function Vo(t,p){p||(p=$o(t));var O=t.display.barWidth,A=t.display.barHeight;Rs(t,p);for(var N=0;N<4&&O!=t.display.barWidth||A!=t.display.barHeight;N++)O!=t.display.barWidth&&t.options.lineWrapping&&As(t),Rs(t,$o(t)),O=t.display.barWidth,A=t.display.barHeight}function Rs(t,p){var O=t.display,A=O.scrollbars.update(p);O.sizer.style.paddingRight=(O.barWidth=A.right)+"px",O.sizer.style.paddingBottom=(O.barHeight=A.bottom)+"px",O.heightForcer.style.borderBottom=A.bottom+"px solid transparent",A.right&&A.bottom?(O.scrollbarFiller.style.display="block",O.scrollbarFiller.style.height=A.bottom+"px",O.scrollbarFiller.style.width=A.right+"px"):O.scrollbarFiller.style.display="",A.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(O.gutterFiller.style.display="block",O.gutterFiller.style.height=A.bottom+"px",O.gutterFiller.style.width=p.gutterWidth+"px"):O.gutterFiller.style.display=""}var Hs={native:So,null:Es};function ks(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&T(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Hs[t.options.scrollbarStyle](function(p){t.display.wrapper.insertBefore(p,t.display.scrollbarFiller),Xe(p,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),p.setAttribute("cm-not-content","true")},function(p,O){O=="horizontal"?bo(t,p):ys(t,p)},t),t.display.scrollbars.addClass&&G(t.display.wrapper,t.display.scrollbars.addClass)}var Lo=0;function Yo(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Lo},Ui(t.curOp)}function es(t){var p=t.curOp;p&&gs(p,function(O){for(var A=0;A<O.ops.length;A++)O.ops[A].cm.curOp=null;Is(O)})}function Is(t){for(var p=t.ops,O=0;O<p.length;O++)wl(p[O]);for(var A=0;A<p.length;A++)xl(p[A]);for(var N=0;N<p.length;N++)Cl(p[N]);for(var V=0;V<p.length;V++)ll(p[V]);for(var re=0;re<p.length;re++)Sl(p[re])}function wl(t){var p=t.cm,O=p.display;Tl(p),t.updateMaxLine&&vo(p),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<O.viewFrom||t.scrollToPos.to.line>=O.viewTo)||O.maxLineChanged&&p.options.lineWrapping,t.update=t.mustUpdate&&new Zi(p,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function xl(t){t.updatedDisplay=t.mustUpdate&&Qo(t.cm,t.update)}function Cl(t){var p=t.cm,O=p.display;t.updatedDisplay&&As(p),t.barMeasure=$o(p),O.maxLineChanged&&!p.options.lineWrapping&&(t.adjustWidthTo=lt(p,O.maxLine,O.maxLine.text.length).left+3,p.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(O.scroller.clientWidth,O.sizer.offsetLeft+t.adjustWidthTo+xt(p)+p.display.barWidth),t.maxScrollLeft=Math.max(0,O.sizer.offsetLeft+t.adjustWidthTo-it(p))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=O.input.prepareSelection())}function ll(t){var p=t.cm;t.adjustWidthTo!=null&&(p.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<p.doc.scrollLeft&&bo(p,Math.min(p.display.scroller.scrollLeft,t.maxScrollLeft),!0),p.display.maxLineChanged=!1);var O=t.focus&&t.focus==ee();t.preparedSelection&&p.display.input.showSelection(t.preparedSelection,O),(t.updatedDisplay||t.startHeight!=p.doc.height)&&Vo(p,t.barMeasure),t.updatedDisplay&&Xr(p,t.barMeasure),t.selectionChanged&&Ni(p),p.state.focused&&t.updateInput&&p.display.input.reset(t.typing),O&&il(t.cm)}function Sl(t){var p=t.cm,O=p.display,A=p.doc;if(t.updatedDisplay&&Ms(p,t.update),O.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(O.wheelStartX=O.wheelStartY=null),t.scrollTop!=null&&cs(p,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&bo(p,t.scrollLeft,!0,!0),t.scrollToPos){var N=bi(p,An(A,t.scrollToPos.from),An(A,t.scrollToPos.to),t.scrollToPos.margin);bl(p,N)}var V=t.maybeHiddenMarkers,re=t.maybeUnhiddenMarkers;if(V)for(var fe=0;fe<V.length;++fe)V[fe].lines.length||We(V[fe],"hide");if(re)for(var ge=0;ge<re.length;++ge)re[ge].lines.length&&We(re[ge],"unhide");O.wrapper.offsetHeight&&(A.scrollTop=p.display.scroller.scrollTop),t.changeObjs&&We(p,"changes",p,t.changeObjs),t.update&&t.update.finish()}function so(t,p){if(t.curOp)return p();Yo(t);try{return p()}finally{es(t)}}function Ai(t,p){return function(){if(t.curOp)return p.apply(t,arguments);Yo(t);try{return p.apply(t,arguments)}finally{es(t)}}}function Vi(t){return function(){if(this.curOp)return t.apply(this,arguments);Yo(this);try{return t.apply(this,arguments)}finally{es(this)}}}function Ti(t){return function(){var p=this.cm;if(!p||p.curOp)return t.apply(this,arguments);Yo(p);try{return t.apply(this,arguments)}finally{es(p)}}}function ws(t,p){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(p,L(Al,t))}function Al(t){var p=t.doc;if(p.highlightFrontier>=t.display.viewTo)return;var O=+new Date+t.options.workTime,A=br(t,p.highlightFrontier),N=[];p.iter(A.line,Math.min(p.first+p.size,t.display.viewTo+500),function(V){if(A.line>=t.display.viewFrom){var re=V.styles,fe=V.text.length>t.options.maxHighlightLength?Vt(p.mode,A.state):null,ge=Xn(t,V,A,!0);fe&&(A.state=fe),V.styles=ge.styles;var Se=V.styleClasses,Je=ge.classes;Je?V.styleClasses=Je:Se&&(V.styleClasses=null);for(var at=!re||re.length!=V.styles.length||Se!=Je&&(!Se||!Je||Se.bgClass!=Je.bgClass||Se.textClass!=Je.textClass),Dt=0;!at&&Dt<re.length;++Dt)at=re[Dt]!=V.styles[Dt];at&&N.push(A.line),V.stateAfter=A.save(),A.nextLine()}else V.text.length<=t.options.maxHighlightLength&&xa(t,V.text,A),V.stateAfter=A.line%5==0?A.save():null,A.nextLine();if(+new Date>O)return ws(t,t.options.workDelay),!0}),p.highlightFrontier=A.line,p.modeFrontier=Math.max(p.modeFrontier,A.line),N.length&&so(t,function(){for(var V=0;V<N.length;V++)Ga(t,N[V],"text")})}var Zi=function(t,p,O){var A=t.display;this.viewport=p,this.visible=Ts(A,t.doc,p),this.editorIsHidden=!A.wrapper.offsetWidth,this.wrapperHeight=A.wrapper.clientHeight,this.wrapperWidth=A.wrapper.clientWidth,this.oldDisplayWidth=it(t),this.force=O,this.dims=vi(t),this.events=[]};Zi.prototype.signal=function(t,p){je(t,p)&&this.events.push(arguments)},Zi.prototype.finish=function(){for(var t=0;t<this.events.length;t++)We.apply(null,this.events[t])};function Tl(t){var p=t.display;!p.scrollbarsClipped&&p.scroller.offsetWidth&&(p.nativeBarWidth=p.scroller.offsetWidth-p.scroller.clientWidth,p.heightForcer.style.height=xt(t)+"px",p.sizer.style.marginBottom=-p.nativeBarWidth+"px",p.sizer.style.borderRightWidth=xt(t)+"px",p.scrollbarsClipped=!0)}function Ds(t){if(t.hasFocus())return null;var p=ee();if(!p||!H(t.display.lineDiv,p))return null;var O={activeElt:p};if(window.getSelection){var A=window.getSelection();A.anchorNode&&A.extend&&H(t.display.lineDiv,A.anchorNode)&&(O.anchorNode=A.anchorNode,O.anchorOffset=A.anchorOffset,O.focusNode=A.focusNode,O.focusOffset=A.focusOffset)}return O}function ul(t){if(!t||!t.activeElt||t.activeElt==ee())return;if(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&H(document.body,t.anchorNode)&&H(document.body,t.focusNode)){var p=window.getSelection(),O=document.createRange();O.setEnd(t.anchorNode,t.anchorOffset),O.collapse(!1),p.removeAllRanges(),p.addRange(O),p.extend(t.focusNode,t.focusOffset)}}function Qo(t,p){var O=t.display,A=t.doc;if(p.editorIsHidden)return ii(t),!1;if(!p.force&&p.visible.from>=O.viewFrom&&p.visible.to<=O.viewTo&&(O.updateLineNumbers==null||O.updateLineNumbers>=O.viewTo)&&O.renderedView==O.view&&Xo(t)==0)return!1;Oi(t)&&(ii(t),p.dims=vi(t));var N=A.first+A.size,V=Math.max(p.visible.from-t.options.viewportMargin,A.first),re=Math.min(N,p.visible.to+t.options.viewportMargin);O.viewFrom<V&&V-O.viewFrom<20&&(V=Math.max(A.first,O.viewFrom)),O.viewTo>re&&O.viewTo-re<20&&(re=Math.min(N,O.viewTo)),Pn&&(V=hi(t.doc,V),re=Ia(t.doc,re));var fe=V!=O.viewFrom||re!=O.viewTo||O.lastWrapHeight!=p.wrapperHeight||O.lastWrapWidth!=p.wrapperWidth;Wo(t,V,re),O.viewOffset=Ji(Lt(t.doc,O.viewFrom)),t.display.mover.style.top=O.viewOffset+"px";var ge=Xo(t);if(!fe&&ge==0&&!p.force&&O.renderedView==O.view&&(O.updateLineNumbers==null||O.updateLineNumbers>=O.viewTo))return!1;var Se=Ds(t);return ge>4&&(O.lineDiv.style.display="none"),cl(t,O.updateLineNumbers,p.dims),ge>4&&(O.lineDiv.style.display=""),O.renderedView=O.view,ul(Se),R(O.cursorDiv),R(O.selectionDiv),O.gutters.style.height=O.sizer.style.minHeight=0,fe&&(O.lastWrapHeight=p.wrapperHeight,O.lastWrapWidth=p.wrapperWidth,ws(t,400)),O.updateLineNumbers=null,!0}function Ms(t,p){for(var O=p.viewport,A=!0;;A=!1){if(!A||!t.options.lineWrapping||p.oldDisplayWidth==it(t)){if(O&&O.top!=null&&(O={top:Math.min(t.doc.height+Qe(t.display)-Oe(t),O.top)}),p.visible=Ts(t.display,t.doc,O),p.visible.from>=t.display.viewFrom&&p.visible.to<=t.display.viewTo)break}else A&&(p.visible=Ts(t.display,t.doc,O));if(!Qo(t,p))break;As(t);var N=$o(t);Wa(t),Vo(t,N),Xr(t,N),p.force=!1}p.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(p.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function xs(t,p){var O=new Zi(t,p);if(Qo(t,O)){As(t),Ms(t,O);var A=$o(t);Wa(t),Vo(t,A),Xr(t,A),O.finish()}}function cl(t,p,O){var A=t.display,N=t.options.lineNumbers,V=A.lineDiv,re=V.firstChild;function fe(Gt){var en=Gt.nextSibling;return u&&y&&t.display.currentWheelTarget==Gt?Gt.style.display="none":Gt.parentNode.removeChild(Gt),en}for(var ge=A.view,Se=A.viewFrom,Je=0;Je<ge.length;Je++){var at=ge[Je];if(!at.hidden)if(!at.node||at.node.parentNode!=V){var Dt=Er(t,at,Se,O);V.insertBefore(Dt,re)}else{for(;re!=at.node;)re=fe(re);var Ot=N&&p!=null&&p<=Se&&at.lineNumber;at.changes&&(ie(at.changes,"gutter")>-1&&(Ot=!1),Dr(t,at,Se,O)),Ot&&(R(at.lineNumber),at.lineNumber.appendChild(document.createTextNode(Rr(t.options,Se)))),re=at.node.nextSibling}Se+=at.size}for(;re;)re=fe(re)}function Ns(t){var p=t.gutters.offsetWidth;t.sizer.style.marginLeft=p+"px"}function Xr(t,p){t.display.sizer.style.minHeight=p.docHeight+"px",t.display.heightForcer.style.top=p.docHeight+"px",t.display.gutters.style.height=p.docHeight+t.display.barHeight+xt(t)+"px"}function Oa(t){var p=t.display,O=p.view;if(!p.alignWidgets&&(!p.gutters.firstChild||!t.options.fixedGutter))return;for(var A=oo(p)-p.scroller.scrollLeft+t.doc.scrollLeft,N=p.gutters.offsetWidth,V=A+"px",re=0;re<O.length;re++)if(!O[re].hidden){t.options.fixedGutter&&(O[re].gutter&&(O[re].gutter.style.left=V),O[re].gutterBackground&&(O[re].gutterBackground.style.left=V));var fe=O[re].alignable;if(fe)for(var ge=0;ge<fe.length;ge++)fe[ge].style.left=V}t.options.fixedGutter&&(p.gutters.style.left=A+N+"px")}function Oi(t){if(!t.options.lineNumbers)return!1;var p=t.doc,O=Rr(t.options,p.first+p.size-1),A=t.display;if(O.length!=A.lineNumChars){var N=A.measure.appendChild(B("div",[B("div",O)],"CodeMirror-linenumber CodeMirror-gutter-elt")),V=N.firstChild.offsetWidth,re=N.offsetWidth-V;return A.lineGutter.style.width="",A.lineNumInnerWidth=Math.max(V,A.lineGutter.offsetWidth-re)+1,A.lineNumWidth=A.lineNumInnerWidth+re,A.lineNumChars=A.lineNumInnerWidth?O.length:-1,A.lineGutter.style.width=A.lineNumWidth+"px",Ns(t.display),!0}return!1}function qi(t,p){for(var O=[],A=!1,N=0;N<t.length;N++){var V=t[N],re=null;if(typeof V!="string"&&(re=V.style,V=V.className),V=="CodeMirror-linenumbers")if(p)A=!0;else continue;O.push({className:V,style:re})}return p&&!A&&O.push({className:"CodeMirror-linenumbers",style:null}),O}function ts(t){var p=t.gutters,O=t.gutterSpecs;R(p),t.lineGutter=null;for(var A=0;A<O.length;++A){var N=O[A],V=N.className,re=N.style,fe=p.appendChild(B("div",null,"CodeMirror-gutter "+V));re&&(fe.style.cssText=re),V=="CodeMirror-linenumbers"&&(t.lineGutter=fe,fe.style.width=(t.lineNumWidth||1)+"px")}p.style.display=O.length?"":"none",Ns(t)}function Po(t){ts(t.display),za(t),Oa(t)}function ds(t,p,O,A){var N=this;this.input=O,N.scrollbarFiller=B("div",null,"CodeMirror-scrollbar-filler"),N.scrollbarFiller.setAttribute("cm-not-content","true"),N.gutterFiller=B("div",null,"CodeMirror-gutter-filler"),N.gutterFiller.setAttribute("cm-not-content","true"),N.lineDiv=W("div",null,"CodeMirror-code"),N.selectionDiv=B("div",null,null,"position: relative; z-index: 1"),N.cursorDiv=B("div",null,"CodeMirror-cursors"),N.measure=B("div",null,"CodeMirror-measure"),N.lineMeasure=B("div",null,"CodeMirror-measure"),N.lineSpace=W("div",[N.measure,N.lineMeasure,N.selectionDiv,N.cursorDiv,N.lineDiv],null,"position: relative; outline: none");var V=W("div",[N.lineSpace],"CodeMirror-lines");N.mover=B("div",[V],null,"position: relative"),N.sizer=B("div",[N.mover],"CodeMirror-sizer"),N.sizerWidth=null,N.heightForcer=B("div",null,null,"position: absolute; height: "+pe+"px; width: 1px;"),N.gutters=B("div",null,"CodeMirror-gutters"),N.lineGutter=null,N.scroller=B("div",[N.sizer,N.heightForcer,N.gutters],"CodeMirror-scroll"),N.scroller.setAttribute("tabIndex","-1"),N.wrapper=B("div",[N.scrollbarFiller,N.gutterFiller,N.scroller],"CodeMirror"),f&&d<8&&(N.gutters.style.zIndex=-1,N.scroller.style.paddingRight=0),!u&&!(I&&b)&&(N.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(N.wrapper):t(N.wrapper)),N.viewFrom=N.viewTo=p.first,N.reportedViewFrom=N.reportedViewTo=p.first,N.view=[],N.renderedView=null,N.externalMeasured=null,N.viewOffset=0,N.lastWrapHeight=N.lastWrapWidth=0,N.updateLineNumbers=null,N.nativeBarWidth=N.barHeight=N.barWidth=0,N.scrollbarsClipped=!1,N.lineNumWidth=N.lineNumInnerWidth=N.lineNumChars=null,N.alignWidgets=!1,N.cachedCharWidth=N.cachedTextHeight=N.cachedPaddingH=null,N.maxLine=null,N.maxLineLength=0,N.maxLineChanged=!1,N.wheelDX=N.wheelDY=N.wheelStartX=N.wheelStartY=null,N.shift=!1,N.selForContextMenu=null,N.activeTouch=null,N.gutterSpecs=qi(A.gutters,A.lineNumbers),ts(N),O.init(N)}var Jo=0,Ya=null;f?Ya=-.53:I?Ya=15:r?Ya=-.7:n&&(Ya=-1/3);function Cs(t){var p=t.wheelDeltaX,O=t.wheelDeltaY;return p==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(p=t.detail),O==null&&t.detail&&t.axis==t.VERTICAL_AXIS?O=t.detail:O==null&&(O=t.wheelDelta),{x:p,y:O}}function Ws(t){var p=Cs(t);return p.x*=Ya,p.y*=Ya,p}function jo(t,p){var O=Cs(p),A=O.x,N=O.y,V=t.display,re=V.scroller,fe=re.scrollWidth>re.clientWidth,ge=re.scrollHeight>re.clientHeight;if(!(A&&fe||N&&ge))return;if(N&&y&&u){e:for(var Se=p.target,Je=V.view;Se!=re;Se=Se.parentNode)for(var at=0;at<Je.length;at++)if(Je[at].node==Se){t.display.currentWheelTarget=Se;break e}}if(A&&!I&&!l&&Ya!=null){N&&ge&&ys(t,Math.max(0,re.scrollTop+N*Ya)),bo(t,Math.max(0,re.scrollLeft+A*Ya)),(!N||N&&ge)&&ce(p),V.wheelStartX=null;return}if(N&&Ya!=null){var Dt=N*Ya,Ot=t.doc.scrollTop,Gt=Ot+V.wrapper.clientHeight;Dt<0?Ot=Math.max(0,Ot+Dt-50):Gt=Math.min(t.doc.height,Gt+Dt+50),xs(t,{top:Ot,bottom:Gt})}Jo<20&&(V.wheelStartX==null?(V.wheelStartX=re.scrollLeft,V.wheelStartY=re.scrollTop,V.wheelDX=A,V.wheelDY=N,setTimeout(function(){if(V.wheelStartX==null)return;var en=re.scrollLeft-V.wheelStartX,yn=re.scrollTop-V.wheelStartY,Sn=yn&&V.wheelDY&&yn/V.wheelDY||en&&V.wheelDX&&en/V.wheelDX;if(V.wheelStartX=V.wheelStartY=null,!Sn)return;Ya=(Ya*Jo+Sn)/(Jo+1),++Jo},200)):(V.wheelDX+=A,V.wheelDY+=N))}var $i=function(t,p){this.ranges=t,this.primIndex=p};$i.prototype.primary=function(){return this.ranges[this.primIndex]},$i.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var p=0;p<this.ranges.length;p++){var O=this.ranges[p],A=t.ranges[p];if(!ea(O.anchor,A.anchor)||!ea(O.head,A.head))return!1}return!0},$i.prototype.deepCopy=function(){for(var t=[],p=0;p<this.ranges.length;p++)t[p]=new Ma(Vr(this.ranges[p].anchor),Vr(this.ranges[p].head));return new $i(t,this.primIndex)},$i.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},$i.prototype.contains=function(t,p){p||(p=t);for(var O=0;O<this.ranges.length;O++){var A=this.ranges[O];if(on(p,A.from())>=0&&on(t,A.to())<=0)return O}return-1};var Ma=function(t,p){this.anchor=t,this.head=p};Ma.prototype.from=function(){return jr(this.anchor,this.head)},Ma.prototype.to=function(){return vr(this.anchor,this.head)},Ma.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ro(t,p,O){var A=t&&t.options.selectionsMayTouch,N=p[O];p.sort(function(Dt,Ot){return on(Dt.from(),Ot.from())}),O=ie(p,N);for(var V=1;V<p.length;V++){var re=p[V],fe=p[V-1],ge=on(fe.to(),re.from());if(A&&!re.empty()?ge>0:ge>=0){var Se=jr(fe.from(),re.from()),Je=vr(fe.to(),re.to()),at=fe.empty()?re.from()==re.head:fe.from()==fe.head;V<=O&&--O,p.splice(--V,2,new Ma(at?Je:Se,at?Se:Je))}}return new $i(p,O)}function Uo(t,p){return new $i([new Ma(t,p||t)],0)}function Bo(t){return t.text?Mt(t.from.line+t.text.length-1,ne(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function Ss(t,p){if(on(t,p.from)<0)return t;if(on(t,p.to)<=0)return Bo(p);var O=t.line+p.text.length-(p.to.line-p.from.line)-1,A=t.ch;return t.line==p.to.line&&(A+=Bo(p).ch-p.to.ch),Mt(O,A)}function Ls(t,p){for(var O=[],A=0;A<t.sel.ranges.length;A++){var N=t.sel.ranges[A];O.push(new Ma(Ss(N.anchor,p),Ss(N.head,p)))}return Ro(t.cm,O,t.sel.primIndex)}function dl(t,p,O){return t.line==p.line?Mt(O.line,t.ch-p.ch+O.ch):Mt(O.line+(t.line-p.line),t.ch)}function Xs(t,p,O){for(var A=[],N=Mt(t.first,0),V=N,re=0;re<p.length;re++){var fe=p[re],ge=dl(fe.from,N,V),Se=dl(Bo(fe),N,V);if(N=fe.to,V=Se,O=="around"){var Je=t.sel.ranges[re],at=on(Je.head,Je.anchor)<0;A[re]=new Ma(at?Se:ge,at?ge:Se)}else A[re]=new Ma(ge,ge)}return new $i(A,t.sel.primIndex)}function ns(t){t.doc.mode=wt(t.options,t.doc.modeOption),Ps(t)}function Ps(t){t.doc.iter(function(p){p.stateAfter&&(p.stateAfter=null),p.styles&&(p.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,ws(t,100),t.state.modeGen++,t.curOp&&za(t)}function Bl(t,p){return p.from.ch==0&&p.to.ch==0&&ne(p.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function fl(t,p,O,A){function N(Fn){return O?O[Fn]:null}function V(Fn,kn,Zn){Ho(Fn,kn,Zn,A),Za(Fn,"change",Fn,p)}function re(Fn,kn){for(var Zn=[],Or=Fn;Or<kn;++Or)Zn.push(new Co(Se[Or],N(Or),A));return Zn}var fe=p.from,ge=p.to,Se=p.text,Je=Lt(t,fe.line),at=Lt(t,ge.line),Dt=ne(Se),Ot=N(Se.length-1),Gt=ge.line-fe.line;if(p.full)t.insert(0,re(0,Se.length)),t.remove(Se.length,t.size-Se.length);else if(Bl(t,p)){var en=re(0,Se.length-1);V(at,at.text,Ot),Gt&&t.remove(fe.line,Gt),en.length&&t.insert(fe.line,en)}else if(Je==at)if(Se.length==1)V(Je,Je.text.slice(0,fe.ch)+Dt+Je.text.slice(ge.ch),Ot);else{var yn=re(1,Se.length-1);yn.push(new Co(Dt+Je.text.slice(ge.ch),Ot,A)),V(Je,Je.text.slice(0,fe.ch)+Se[0],N(0)),t.insert(fe.line+1,yn)}else if(Se.length==1)V(Je,Je.text.slice(0,fe.ch)+Se[0]+at.text.slice(ge.ch),N(0)),t.remove(fe.line+1,Gt);else{V(Je,Je.text.slice(0,fe.ch)+Se[0],N(0)),V(at,Dt+at.text.slice(ge.ch),Ot);var Sn=re(1,Se.length-1);Gt>1&&t.remove(fe.line+1,Gt-1),t.insert(fe.line+1,Sn)}Za(t,"change",t,p)}function fs(t,p,O){function A(N,V,re){if(N.linked)for(var fe=0;fe<N.linked.length;++fe){var ge=N.linked[fe];if(ge.doc==V)continue;var Se=re&&ge.sharedHist;if(O&&!Se)continue;p(ge.doc,Se),A(ge.doc,N,Se)}}A(t,null,!0)}function Kl(t,p){if(p.cm)throw new Error("This document is already in use.");t.doc=p,p.cm=t,fo(t),ns(t),_u(t),t.options.lineWrapping||vo(t),t.options.mode=p.modeOption,za(t)}function _u(t){(t.doc.direction=="rtl"?G:T)(t.display.lineDiv,"CodeMirror-rtl")}function gu(t){so(t,function(){_u(t),za(t)})}function hl(t){this.done=[],this.undone=[],this.undoDepth=Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t||1}function Ol(t,p){var O={from:Vr(p.from),to:Bo(p),text:Tn(t,p.from,p.to)};return Xl(t,O,p.from.line,p.to.line+1),fs(t,function(A){return Xl(A,O,p.from.line,p.to.line+1)},!0),O}function Hl(t){for(;t.length;){var p=ne(t);if(p.ranges)t.pop();else break}}function zs(t,p){if(p)return Hl(t.done),ne(t.done);if(t.done.length&&!ne(t.done).ranges)return ne(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),ne(t.done)}function Wl(t,p,O,A){var N=t.history;N.undone.length=0;var V=+new Date,re,fe;if((N.lastOp==A||N.lastOrigin==p.origin&&p.origin&&(p.origin.charAt(0)=="+"&&N.lastModTime>V-(t.cm?t.cm.options.historyEventDelay:500)||p.origin.charAt(0)=="*"))&&(re=zs(N,N.lastOp==A)))fe=ne(re.changes),on(p.from,p.to)==0&&on(p.from,fe.to)==0?fe.to=Bo(p):re.changes.push(Ol(t,p));else{var ge=ne(N.done);for((!ge||!ge.ranges)&&pl(t.sel,N.done),re={changes:[Ol(t,p)],generation:N.generation},N.done.push(re);N.done.length>N.undoDepth;)N.done.shift(),N.done[0].ranges||N.done.shift()}N.done.push(O),N.generation=++N.maxGeneration,N.lastModTime=N.lastSelTime=V,N.lastOp=N.lastSelOp=A,N.lastOrigin=N.lastSelOrigin=p.origin,fe||We(t,"historyAdded")}function vu(t,p,O,A){var N=p.charAt(0);return N=="*"||N=="+"&&O.ranges.length==A.ranges.length&&O.somethingSelected()==A.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function bu(t,p,O,A){var N=t.history,V=A&&A.origin;O==N.lastSelOp||V&&N.lastSelOrigin==V&&(N.lastModTime==N.lastSelTime&&N.lastOrigin==V||vu(t,V,ne(N.done),p))?N.done[N.done.length-1]=p:pl(p,N.done),N.lastSelTime=+new Date,N.lastSelOrigin=V,N.lastSelOp=O,A&&A.clearRedo!==!1&&Hl(N.undone)}function pl(t,p){var O=ne(p);O&&O.ranges&&O.equals(t)||p.push(t)}function Xl(t,p,O,A){var N=p["spans_"+t.id],V=0;t.iter(Math.max(t.first,O),Math.min(t.first+t.size,A),function(re){re.markedSpans&&((N||(N=p["spans_"+t.id]={}))[V]=re.markedSpans),++V})}function yu(t){if(!t)return null;for(var p,O=0;O<t.length;++O)t[O].marker.explicitlyCleared?p||(p=t.slice(0,O)):p&&p.push(t[O]);return p?p.length?p:null:t}function zu(t,p){var O=p["spans_"+t.id];if(!O)return null;for(var A=[],N=0;N<p.text.length;++N)A.push(yu(O[N]));return A}function zl(t,p){var O=zu(t,p),A=Ka(t,p);if(!O)return A;if(!A)return O;for(var N=0;N<O.length;++N){var V=O[N],re=A[N];if(V&&re){e:for(var fe=0;fe<re.length;++fe){for(var ge=re[fe],Se=0;Se<V.length;++Se)if(V[Se].marker==ge.marker)continue e;V.push(ge)}}else re&&(O[N]=re)}return O}function js(t,p,O){for(var A=[],N=0;N<t.length;++N){var V=t[N];if(V.ranges){A.push(O?$i.prototype.deepCopy.call(V):V);continue}var re=V.changes,fe=[];A.push({changes:fe});for(var ge=0;ge<re.length;++ge){var Se=re[ge],Je=void 0;if(fe.push({from:Se.from,to:Se.to,text:Se.text}),p)for(var at in Se)(Je=at.match(/^spans_(\d+)$/))&&(ie(p,Number(Je[1]))>-1&&(ne(fe)[at]=Se[at],delete Se[at]))}}return A}function Gl(t,p,O,A){if(A){var N=t.anchor;if(O){var V=on(p,N)<0;V!=on(O,N)<0?(N=p,p=O):V!=on(p,O)<0&&(p=O)}return new Ma(N,p)}else return new Ma(O||p,p)}function ml(t,p,O,A,N){N==null&&(N=t.cm&&(t.cm.display.shift||t.extend)),ho(t,new $i([Gl(t.sel.primary(),p,O,N)],0),A)}function Vl(t,p,O){for(var A=[],N=t.cm&&(t.cm.display.shift||t.extend),V=0;V<t.sel.ranges.length;V++)A[V]=Gl(t.sel.ranges[V],p[V],null,N);var re=Ro(t.cm,A,t.sel.primIndex);ho(t,re,O)}function Rl(t,p,O,A){var N=t.sel.ranges.slice(0);N[p]=O,ho(t,Ro(t.cm,N,t.sel.primIndex),A)}function Yl(t,p,O,A){ho(t,Uo(p,O),A)}function Eu(t,p,O){var A={ranges:p.ranges,update:function(N){this.ranges=[];for(var V=0;V<N.length;V++)this.ranges[V]=new Ma(An(t,N[V].anchor),An(t,N[V].head))},origin:O&&O.origin};return We(t,"beforeSelectionChange",t,A),t.cm&&We(t.cm,"beforeSelectionChange",t.cm,A),A.ranges!=p.ranges?Ro(t.cm,A.ranges,A.ranges.length-1):p}function Ql(t,p,O){var A=t.history.done,N=ne(A);N&&N.ranges?(A[A.length-1]=p,_l(t,p,O)):ho(t,p,O)}function ho(t,p,O){_l(t,p,O),bu(t,t.sel,t.cm?t.cm.curOp.id:NaN,O)}function _l(t,p,O){(je(t,"beforeSelectionChange")||t.cm&&je(t.cm,"beforeSelectionChange"))&&(p=Eu(t,p,O));var A=O&&O.bias||(on(p.primary().head,t.sel.primary().head)<0?-1:1);kl(t,Zl(t,p,A,!0)),!(O&&O.scroll===!1)&&t.cm&&ls(t.cm)}function kl(t,p){if(p.equals(t.sel))return;t.sel=p,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,Ge(t.cm)),Za(t,"cursorActivity",t)}function Jl(t){kl(t,Zl(t,t.sel,null,!1))}function Zl(t,p,O,A){for(var N,V=0;V<p.ranges.length;V++){var re=p.ranges[V],fe=p.ranges.length==t.sel.ranges.length&&t.sel.ranges[V],ge=gl(t,re.anchor,fe&&fe.anchor,O,A),Se=gl(t,re.head,fe&&fe.head,O,A);(N||ge!=re.anchor||Se!=re.head)&&(N||(N=p.ranges.slice(0,V)),N[V]=new Ma(ge,Se))}return N?Ro(t.cm,N,p.primIndex):p}function hs(t,p,O,A,N){var V=Lt(t,p.line);if(V.markedSpans)for(var re=0;re<V.markedSpans.length;++re){var fe=V.markedSpans[re],ge=fe.marker,Se="selectLeft"in ge?!ge.selectLeft:ge.inclusiveLeft,Je="selectRight"in ge?!ge.selectRight:ge.inclusiveRight;if((fe.from==null||(Se?fe.from<=p.ch:fe.from<p.ch))&&(fe.to==null||(Je?fe.to>=p.ch:fe.to>p.ch))){if(N&&(We(ge,"beforeCursorEnter"),ge.explicitlyCleared))if(V.markedSpans){--re;continue}else break;if(!ge.atomic)continue;if(O){var at=ge.find(A<0?1:-1),Dt=void 0;if((A<0?Je:Se)&&(at=ql(t,at,-A,at&&at.line==p.line?V:null)),at&&at.line==p.line&&(Dt=on(at,O))&&(A<0?Dt<0:Dt>0))return hs(t,at,p,A,N)}var Ot=ge.find(A<0?-1:1);return(A<0?Se:Je)&&(Ot=ql(t,Ot,A,Ot.line==p.line?V:null)),Ot?hs(t,Ot,p,A,N):null}}return p}function gl(t,p,O,A,N){var V=A||1,re=hs(t,p,O,V,N)||!N&&hs(t,p,O,V,!0)||hs(t,p,O,-V,N)||!N&&hs(t,p,O,-V,!0);return re||(t.cantEdit=!0,Mt(t.first,0))}function ql(t,p,O,A){return O<0&&p.ch==0?p.line>t.first?An(t,Mt(p.line-1)):null:O>0&&p.ch==(A||Lt(t,p.line)).text.length?p.line<t.first+t.size-1?Mt(p.line+1,0):null:new Mt(p.line,p.ch+O)}function Il(t){t.setSelection(Mt(t.firstLine(),0),Mt(t.lastLine()),De)}function $l(t,p,O){var A={canceled:!1,from:p.from,to:p.to,text:p.text,origin:p.origin,cancel:function(){return A.canceled=!0}};return O&&(A.update=function(N,V,re,fe){N&&(A.from=An(t,N)),V&&(A.to=An(t,V)),re&&(A.text=re),fe!==void 0&&(A.origin=fe)}),We(t,"beforeChange",t,A),t.cm&&We(t.cm,"beforeChange",t.cm,A),A.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:A.from,to:A.to,text:A.text,origin:A.origin}}function Gs(t,p,O){if(t.cm){if(!t.cm.curOp)return Ai(t.cm,Gs)(t,p,O);if(t.cm.state.suppressEdits)return}if((je(t,"beforeChange")||t.cm&&je(t.cm,"beforeChange"))&&(p=$l(t,p,!0),!p))return;var A=Gn&&!O&&Di(t,p.from,p.to);if(A)for(var N=A.length-1;N>=0;--N)eu(t,{from:A[N].from,to:A[N].to,text:N?[""]:p.text,origin:p.origin});else eu(t,p)}function eu(t,p){if(p.text.length==1&&p.text[0]==""&&on(p.from,p.to)==0)return;var O=Ls(t,p);Wl(t,p,O,t.cm?t.cm.curOp.id:NaN),Ys(t,p,O,Ka(t,p));var A=[];fs(t,function(N,V){!V&&ie(A,N.history)==-1&&(ru(N.history,p),A.push(N.history)),Ys(N,p,null,Ka(N,p))})}function Vs(t,p,O){var A=t.cm&&t.cm.state.suppressEdits;if(A&&!O)return;for(var N=t.history,V,re=t.sel,fe=p=="undo"?N.done:N.undone,ge=p=="undo"?N.undone:N.done,Se=0;Se<fe.length&&!(V=fe[Se],O?V.ranges&&!V.equals(t.sel):!V.ranges);Se++);if(Se==fe.length)return;for(N.lastOrigin=N.lastSelOrigin=null;;)if(V=fe.pop(),V.ranges){if(pl(V,ge),O&&!V.equals(t.sel)){ho(t,V,{clearRedo:!1});return}re=V}else if(A){fe.push(V);return}else break;var Je=[];pl(re,ge),ge.push({changes:Je,generation:N.generation}),N.generation=V.generation||++N.maxGeneration;for(var at=je(t,"beforeChange")||t.cm&&je(t.cm,"beforeChange"),Dt=function(en){var yn=V.changes[en];if(yn.origin=p,at&&!$l(t,yn,!1))return fe.length=0,{};Je.push(Ol(t,yn));var Sn=en?Ls(t,yn):ne(fe);Ys(t,yn,Sn,zl(t,yn)),!en&&t.cm&&t.cm.scrollIntoView({from:yn.from,to:Bo(yn)});var Fn=[];fs(t,function(kn,Zn){!Zn&&ie(Fn,kn.history)==-1&&(ru(kn.history,yn),Fn.push(kn.history)),Ys(kn,yn,null,zl(kn,yn))})},Ot=V.changes.length-1;Ot>=0;--Ot){var Gt=Dt(Ot);if(Gt)return Gt.v}}function tu(t,p){if(p==0)return;if(t.first+=p,t.sel=new $i(xe(t.sel.ranges,function(N){return new Ma(Mt(N.anchor.line+p,N.anchor.ch),Mt(N.head.line+p,N.head.ch))}),t.sel.primIndex),t.cm){za(t.cm,t.first,t.first-p,p);for(var O=t.cm.display,A=O.viewFrom;A<O.viewTo;A++)Ga(t.cm,A,"gutter")}}function Ys(t,p,O,A){if(t.cm&&!t.cm.curOp)return Ai(t.cm,Ys)(t,p,O,A);if(p.to.line<t.first){tu(t,p.text.length-1-(p.to.line-p.from.line));return}if(p.from.line>t.lastLine())return;if(p.from.line<t.first){var N=p.text.length-1-(t.first-p.from.line);tu(t,N),p={from:Mt(t.first,0),to:Mt(p.to.line+N,p.to.ch),text:[ne(p.text)],origin:p.origin}}var V=t.lastLine();p.to.line>V&&(p={from:p.from,to:Mt(V,Lt(t,V).text.length),text:[p.text[0]],origin:p.origin}),p.removed=Tn(t,p.from,p.to),O||(O=Ls(t,p)),t.cm?wu(t.cm,p,A):fl(t,p,A),_l(t,O,De),t.cantEdit&&gl(t,Mt(t.firstLine(),0))&&(t.cantEdit=!1)}function wu(t,p,O){var A=t.doc,N=t.display,V=p.from,re=p.to,fe=!1,ge=V.line;t.options.lineWrapping||(ge=ln(ua(Lt(A,V.line))),A.iter(ge,re.line+1,function(Ot){if(Ot==N.maxLine)return fe=!0,!0})),A.sel.contains(p.from,p.to)>-1&&Ge(t),fl(A,p,O,To(t)),t.options.lineWrapping||(A.iter(ge,V.line+p.text.length,function(Ot){var Gt=xo(Ot);Gt>N.maxLineLength&&(N.maxLine=Ot,N.maxLineLength=Gt,N.maxLineChanged=!0,fe=!1)}),fe&&(t.curOp.updateMaxLine=!0)),zn(A,V.line),ws(t,400);var Se=p.text.length-(re.line-V.line)-1;p.full?za(t):V.line==re.line&&p.text.length==1&&!Bl(t.doc,p)?Ga(t,V.line,"text"):za(t,V.line,re.line+1,Se);var Je=je(t,"changes"),at=je(t,"change");if(at||Je){var Dt={from:V,to:re,text:p.text,removed:p.removed,origin:p.origin};at&&Za(t,"change",t,Dt),Je&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(Dt)}t.display.selForContextMenu=null}function Us(t,p,O,A,N){var V;A||(A=O),on(A,O)<0&&(V=[A,O],O=V[0],A=V[1]),typeof p=="string"&&(p=t.splitLines(p)),Gs(t,{from:O,to:A,text:p,origin:N})}function nu(t,p,O,A){O<t.line?t.line+=A:p<t.line&&(t.line=p,t.ch=0)}function Dl(t,p,O,A){for(var N=0;N<t.length;++N){var V=t[N],re=!0;if(V.ranges){V.copied||(V=t[N]=V.deepCopy(),V.copied=!0);for(var fe=0;fe<V.ranges.length;fe++)nu(V.ranges[fe].anchor,p,O,A),nu(V.ranges[fe].head,p,O,A);continue}for(var ge=0;ge<V.changes.length;++ge){var Se=V.changes[ge];if(O<Se.from.line)Se.from=Mt(Se.from.line+A,Se.from.ch),Se.to=Mt(Se.to.line+A,Se.to.ch);else if(p<=Se.to.line){re=!1;break}}re||(t.splice(0,N+1),N=0)}}function ru(t,p){var O=p.from.line,A=p.to.line,N=p.text.length-(A-O)-1;Dl(t.done,O,A,N),Dl(t.undone,O,A,N)}function Fs(t,p,O,A){var N=p,V=p;return typeof p=="number"?V=Lt(t,wa(t,p)):N=ln(p),N==null?null:(A(V,N)&&t.cm&&Ga(t.cm,N,O),V)}function Qs(t){this.lines=t,this.parent=null;for(var p=0,O=0;O<t.length;++O)t[O].parent=this,p+=t[O].height;this.height=p}Qs.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,p){for(var O=t,A=t+p;O<A;++O){var N=this.lines[O];this.height-=N.height,$n(N),Za(N,"delete")}this.lines.splice(t,p)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,p,O){this.height+=O,this.lines=this.lines.slice(0,t).concat(p).concat(this.lines.slice(t));for(var A=0;A<p.length;++A)p[A].parent=this},iterN:function(t,p,O){for(var A=t+p;t<A;++t)if(O(this.lines[t]))return!0}};function Bs(t){this.children=t;for(var p=0,O=0,A=0;A<t.length;++A){var N=t[A];p+=N.chunkSize(),O+=N.height,N.parent=this}this.size=p,this.height=O,this.parent=null}Bs.prototype={chunkSize:function(){return this.size},removeInner:function(t,p){this.size-=p;for(var O=0;O<this.children.length;++O){var A=this.children[O],N=A.chunkSize();if(t<N){var V=Math.min(p,N-t),re=A.height;if(A.removeInner(t,V),this.height-=re-A.height,N==V&&(this.children.splice(O--,1),A.parent=null),(p-=V)==0)break;t=0}else t-=N}if(this.size-p<25&&(this.children.length>1||!(this.children[0]instanceof Qs))){var fe=[];this.collapse(fe),this.children=[new Qs(fe)],this.children[0].parent=this}},collapse:function(t){for(var p=0;p<this.children.length;++p)this.children[p].collapse(t)},insertInner:function(t,p,O){this.size+=p.length,this.height+=O;for(var A=0;A<this.children.length;++A){var N=this.children[A],V=N.chunkSize();if(t<=V){if(N.insertInner(t,p,O),N.lines&&N.lines.length>50){for(var re=N.lines.length%25+25,fe=re;fe<N.lines.length;){var ge=new Qs(N.lines.slice(fe,fe+=25));N.height-=ge.height,this.children.splice(++A,0,ge),ge.parent=this}N.lines=N.lines.slice(0,re),this.maybeSpill()}break}t-=V}},maybeSpill:function(){if(this.children.length<=10)return;var t=this;do{var p=t.children.splice(t.children.length-5,5),O=new Bs(p);if(t.parent){t.size-=O.size,t.height-=O.height;var N=ie(t.parent.children,t);t.parent.children.splice(N+1,0,O)}else{var A=new Bs(t.children);A.parent=t,t.children=[A,O],t=A}O.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()},iterN:function(t,p,O){for(var A=0;A<this.children.length;++A){var N=this.children[A],V=N.chunkSize();if(t<V){var re=Math.min(p,V-t);if(N.iterN(t,re,O))return!0;if((p-=re)==0)break;t=0}else t-=V}}};var Js=function(t,p,O){if(O)for(var A in O)O.hasOwnProperty(A)&&(this[A]=O[A]);this.doc=t,this.node=p};Js.prototype.clear=function(){var t=this.doc.cm,p=this.line.widgets,O=this.line,A=ln(O);if(A==null||!p)return;for(var N=0;N<p.length;++N)p[N]==this&&p.splice(N--,1);p.length||(O.widgets=null);var V=qa(this);gn(O,Math.max(0,O.height-V)),t&&(so(t,function(){au(t,O,-V),Ga(t,A,"widget")}),Za(t,"lineWidgetCleared",t,this,A))},Js.prototype.changed=function(){var t=this,p=this.height,O=this.doc.cm,A=this.line;this.height=null;var N=qa(this)-p;if(!N)return;La(this.doc,A)||gn(A,A.height+N),O&&so(O,function(){O.curOp.forceUpdate=!0,au(O,A,N),Za(O,"lineWidgetChanged",O,t,ln(A))})},Fe(Js);function au(t,p,O){Ji(p)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&vs(t,O)}function xu(t,p,O,A){var N=new Js(t,O,A),V=t.cm;return V&&N.noHScroll&&(V.display.alignWidgets=!0),Fs(t,p,"widget",function(re){var fe=re.widgets||(re.widgets=[]);if(N.insertAt==null?fe.push(N):fe.splice(Math.min(fe.length-1,Math.max(0,N.insertAt)),0,N),N.line=re,V&&!La(t,re)){var ge=Ji(re)<t.scrollTop;gn(re,re.height+qa(N)),ge&&vs(V,N.height),V.curOp.forceUpdate=!0}return!0}),V&&Za(V,"lineWidgetAdded",V,N,typeof p=="number"?p:ln(p)),N}var iu=0,Zo=function(t,p){this.lines=[],this.type=p,this.doc=t,this.id=++iu};Zo.prototype.clear=function(){if(this.explicitlyCleared)return;var t=this.doc.cm,p=t&&!t.curOp;if(p&&Yo(t),je(this,"clear")){var O=this.find();O&&Za(this,"clear",O.from,O.to)}for(var A=null,N=null,V=0;V<this.lines.length;++V){var re=this.lines[V],fe=Ar(re.markedSpans,this);t&&!this.collapsed?Ga(t,ln(re),"text"):t&&(fe.to!=null&&(N=ln(re)),fe.from!=null&&(A=ln(re))),re.markedSpans=Sa(re.markedSpans,fe),fe.from==null&&this.collapsed&&!La(this.doc,re)&&t&&gn(re,wi(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var ge=0;ge<this.lines.length;++ge){var Se=ua(this.lines[ge]),Je=xo(Se);Je>t.display.maxLineLength&&(t.display.maxLine=Se,t.display.maxLineLength=Je,t.display.maxLineChanged=!0)}A!=null&&t&&this.collapsed&&za(t,A,N+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Jl(t.doc)),t&&Za(t,"markerCleared",t,this,A,N),p&&es(t),this.parent&&this.parent.clear()},Zo.prototype.find=function(t,p){t==null&&this.type=="bookmark"&&(t=1);for(var O,A,N=0;N<this.lines.length;++N){var V=this.lines[N],re=Ar(V.markedSpans,this);if(re.from!=null&&(O=Mt(p?V:ln(V),re.from),t==-1))return O;if(re.to!=null&&(A=Mt(p?V:ln(V),re.to),t==1))return A}return O&&{from:O,to:A}},Zo.prototype.changed=function(){var t=this,p=this.find(-1,!0),O=this,A=this.doc.cm;if(!p||!A)return;so(A,function(){var N=p.line,V=ln(p.line),re=St(A,V);if(re&&(ta(re),A.curOp.selectionChanged=A.curOp.forceUpdate=!0),A.curOp.updateMaxLine=!0,!La(O.doc,N)&&O.height!=null){var fe=O.height;O.height=null;var ge=qa(O)-fe;ge&&gn(N,N.height+ge)}Za(A,"markerChanged",A,t)})},Zo.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var p=this.doc.cm.curOp;(!p.maybeHiddenMarkers||ie(p.maybeHiddenMarkers,this)==-1)&&(p.maybeUnhiddenMarkers||(p.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Zo.prototype.detachLine=function(t){if(this.lines.splice(ie(this.lines,t),1),!this.lines.length&&this.doc.cm){var p=this.doc.cm.curOp;(p.maybeHiddenMarkers||(p.maybeHiddenMarkers=[])).push(this)}},Fe(Zo);function Zs(t,p,O,A,N){if(A&&A.shared)return Gu(t,p,O,A,N);if(t.cm&&!t.cm.curOp)return Ai(t.cm,Zs)(t,p,O,A,N);var V=new Zo(t,N),re=on(p,O);if(A&&D(A,V,!1),re>0||re==0&&V.clearWhenEmpty!==!1)return V;if(V.replacedWith&&(V.collapsed=!0,V.widgetNode=W("span",[V.replacedWith],"CodeMirror-widget"),A.handleMouseEvents||V.widgetNode.setAttribute("cm-ignore-events","true"),A.insertLeft&&(V.widgetNode.insertLeft=!0)),V.collapsed){if(En(t,p.line,p,O,V)||p.line!=O.line&&En(t,O.line,p,O,V))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ja()}V.addToHistory&&Wl(t,{from:p,to:O,origin:"markText"},t.sel,NaN);var fe=p.line,ge=t.cm,Se;if(t.iter(fe,O.line+1,function(at){ge&&V.collapsed&&!ge.options.lineWrapping&&ua(at)==ge.display.maxLine&&(Se=!0),V.collapsed&&fe!=p.line&&gn(at,0),yi(at,new oa(V,fe==p.line?p.ch:null,fe==O.line?O.ch:null)),++fe}),V.collapsed&&t.iter(p.line,O.line+1,function(at){La(t,at)&&gn(at,0)}),V.clearOnEnter&&Xe(V,"beforeCursorEnter",function(){return V.clear()}),V.readOnly&&(rr(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),V.collapsed&&(V.id=++iu,V.atomic=!0),ge){if(Se&&(ge.curOp.updateMaxLine=!0),V.collapsed)za(ge,p.line,O.line+1);else if(V.className||V.startStyle||V.endStyle||V.css||V.attributes||V.title)for(var Je=p.line;Je<=O.line;Je++)Ga(ge,Je,"text");V.atomic&&Jl(ge.doc),Za(ge,"markerAdded",ge,V)}return V}var $s=function(t,p){this.markers=t,this.primary=p;for(var O=0;O<t.length;++O)t[O].parent=this};$s.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Za(this,"clear")},$s.prototype.find=function(t,p){return this.primary.find(t,p)},Fe($s);function Gu(t,p,O,A,N){A=D(A),A.shared=!1;var V=[Zs(t,p,O,A,N)],re=V[0],fe=A.widgetNode;return fs(t,function(ge){fe&&(A.widgetNode=fe.cloneNode(!0)),V.push(Zs(ge,An(ge,p),An(ge,O),A,N));for(var Se=0;Se<ge.linked.length;++Se)if(ge.linked[Se].isParent)return;re=ne(V)}),new $s(V,re)}function ou(t){return t.findMarks(Mt(t.first,0),t.clipPos(Mt(t.lastLine())),function(p){return p.parent})}function Cu(t,p){for(var O=0;O<p.length;O++){var A=p[O],N=A.find(),V=t.clipPos(N.from),re=t.clipPos(N.to);if(on(V,re)){var fe=Zs(t,V,re,A.primary,A.primary.type);A.markers.push(fe),fe.parent=A}}}function Su(t){for(var p=function(A){var N=t[A],V=[N.primary.doc];fs(N.primary.doc,function(ge){return V.push(ge)});for(var re=0;re<N.markers.length;re++){var fe=N.markers[re];ie(V,fe.doc)==-1&&(fe.parent=null,N.markers.splice(re--,1))}},O=0;O<t.length;O++)p(O)}var Au=0,yo=function(t,p,O,A,N){if(!(this instanceof yo))return new yo(t,p,O,A,N);O==null&&(O=0),Bs.call(this,[new Qs([new Co("",null)])]),this.first=O,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=O;var V=Mt(O,0);this.sel=Uo(V),this.history=new hl(null),this.id=++Au,this.modeOption=p,this.lineSep=A,this.direction=N=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),fl(this,{from:V,to:V,text:t}),ho(this,Uo(V),De)};yo.prototype=Le(Bs.prototype,{constructor:yo,iter:function(t,p,O){O?this.iterN(t-this.first,p-t,O):this.iterN(this.first,this.first+this.size,t)},insert:function(t,p){for(var O=0,A=0;A<p.length;++A)O+=p[A].height;this.insertInner(t-this.first,p,O)},remove:function(t,p){this.removeInner(t-this.first,p)},getValue:function(t){var p=Wt(this,this.first,this.first+this.size);return t===!1?p:p.join(t||this.lineSeparator())},setValue:Ti(function(t){var p=Mt(this.first,0),O=this.first+this.size-1;Gs(this,{from:p,to:Mt(O,Lt(this,O).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&us(this.cm,0,0),ho(this,Uo(p),De)}),replaceRange:function(t,p,O,A){p=An(this,p),O=O?An(this,O):p,Us(this,t,p,O,A)},getRange:function(t,p,O){var A=Tn(this,An(this,t),An(this,p));return O===!1?A:A.join(O||this.lineSeparator())},getLine:function(t){var p=this.getLineHandle(t);return p&&p.text},getLineHandle:function(t){if(In(this,t))return Lt(this,t)},getLineNumber:function(t){return ln(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=Lt(this,t)),ua(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return An(this,t)},getCursor:function(t){var p=this.sel.primary(),O;return t==null||t=="head"?O=p.head:t=="anchor"?O=p.anchor:t=="end"||t=="to"||t===!1?O=p.to():O=p.from(),O},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ti(function(t,p,O){Yl(this,An(this,typeof t=="number"?Mt(t,p||0):t),null,O)}),setSelection:Ti(function(t,p,O){Yl(this,An(this,t),An(this,p||t),O)}),extendSelection:Ti(function(t,p,O){ml(this,An(this,t),p&&An(this,p),O)}),extendSelections:Ti(function(t,p){Vl(this,Ut(this,t),p)}),extendSelectionsBy:Ti(function(t,p){var O=xe(this.sel.ranges,t);Vl(this,Ut(this,O),p)}),setSelections:Ti(function(t,p,O){if(!t.length)return;for(var A=[],N=0;N<t.length;N++)A[N]=new Ma(An(this,t[N].anchor),An(this,t[N].head));p==null&&(p=Math.min(t.length-1,this.sel.primIndex)),ho(this,Ro(this.cm,A,p),O)}),addSelection:Ti(function(t,p,O){var A=this.sel.ranges.slice(0);A.push(new Ma(An(this,t),An(this,p||t))),ho(this,Ro(this.cm,A,A.length-1),O)}),getSelection:function(t){for(var p=this.sel.ranges,O,A=0;A<p.length;A++){var N=Tn(this,p[A].from(),p[A].to());O=O?O.concat(N):N}return t===!1?O:O.join(t||this.lineSeparator())},getSelections:function(t){for(var p=[],O=this.sel.ranges,A=0;A<O.length;A++){var N=Tn(this,O[A].from(),O[A].to());t!==!1&&(N=N.join(t||this.lineSeparator())),p[A]=N}return p},replaceSelection:function(t,p,O){for(var A=[],N=0;N<this.sel.ranges.length;N++)A[N]=t;this.replaceSelections(A,p,O||"+input")},replaceSelections:Ti(function(t,p,O){for(var A=[],N=this.sel,V=0;V<N.ranges.length;V++){var re=N.ranges[V];A[V]={from:re.from(),to:re.to(),text:this.splitLines(t[V]),origin:O}}for(var fe=p&&p!="end"&&Xs(this,A,p),ge=A.length-1;ge>=0;ge--)Gs(this,A[ge]);fe?Ql(this,fe):this.cm&&ls(this.cm)}),undo:Ti(function(){Vs(this,"undo")}),redo:Ti(function(){Vs(this,"redo")}),undoSelection:Ti(function(){Vs(this,"undo",!0)}),redoSelection:Ti(function(){Vs(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,p=0,O=0,A=0;A<t.done.length;A++)t.done[A].ranges||++p;for(var N=0;N<t.undone.length;N++)t.undone[N].ranges||++O;return{undo:p,redo:O}},clearHistory:function(){var t=this;this.history=new hl(this.history.maxGeneration),fs(this,function(p){return p.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:js(this.history.done),undone:js(this.history.undone)}},setHistory:function(t){var p=this.history=new hl(this.history.maxGeneration);p.done=js(t.done.slice(0),null,!0),p.undone=js(t.undone.slice(0),null,!0)},setGutterMarker:Ti(function(t,p,O){return Fs(this,t,"gutter",function(A){var N=A.gutterMarkers||(A.gutterMarkers={});return N[p]=O,!O&&J(N)&&(A.gutterMarkers=null),!0})}),clearGutter:Ti(function(t){var p=this;this.iter(function(O){O.gutterMarkers&&O.gutterMarkers[t]&&Fs(p,O,"gutter",function(){return O.gutterMarkers[t]=null,J(O.gutterMarkers)&&(O.gutterMarkers=null),!0})})}),lineInfo:function(t){var p;if(typeof t=="number"){if(!In(this,t))return null;if(p=t,t=Lt(this,t),!t)return null}else if(p=ln(t),p==null)return null;return{line:p,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Ti(function(t,p,O){return Fs(this,t,p=="gutter"?"gutter":"class",function(A){var N=p=="text"?"textClass":p=="background"?"bgClass":p=="gutter"?"gutterClass":"wrapClass";if(!A[N])A[N]=O;else{if(k(O).test(A[N]))return!1;A[N]+=" "+O}return!0})}),removeLineClass:Ti(function(t,p,O){return Fs(this,t,p=="gutter"?"gutter":"class",function(A){var N=p=="text"?"textClass":p=="background"?"bgClass":p=="gutter"?"gutterClass":"wrapClass",V=A[N];if(V)if(O==null)A[N]=null;else{var re=V.match(k(O));if(!re)return!1;var fe=re.index+re[0].length;A[N]=V.slice(0,re.index)+(!re.index||fe==V.length?"":" ")+V.slice(fe)||null}else return!1;return!0})}),addLineWidget:Ti(function(t,p,O){return xu(this,t,p,O)}),removeLineWidget:function(t){t.clear()},markText:function(t,p,O){return Zs(this,An(this,t),An(this,p),O,O&&O.type||"range")},setBookmark:function(t,p){var O={replacedWith:p&&(p.nodeType==null?p.widget:p),insertLeft:p&&p.insertLeft,clearWhenEmpty:!1,shared:p&&p.shared,handleMouseEvents:p&&p.handleMouseEvents};return t=An(this,t),Zs(this,t,t,O,"bookmark")},findMarksAt:function(t){t=An(this,t);var p=[],O=Lt(this,t.line).markedSpans;if(O)for(var A=0;A<O.length;++A){var N=O[A];(N.from==null||N.from<=t.ch)&&(N.to==null||N.to>=t.ch)&&p.push(N.marker.parent||N.marker)}return p},findMarks:function(t,p,O){t=An(this,t),p=An(this,p);var A=[],N=t.line;return this.iter(t.line,p.line+1,function(V){var re=V.markedSpans;if(re)for(var fe=0;fe<re.length;fe++){var ge=re[fe];!(ge.to!=null&&N==t.line&&t.ch>=ge.to||ge.from==null&&N!=t.line||ge.from!=null&&N==p.line&&ge.from>=p.ch)&&(!O||O(ge.marker))&&A.push(ge.marker.parent||ge.marker)}++N}),A},getAllMarks:function(){var t=[];return this.iter(function(p){var O=p.markedSpans;if(O)for(var A=0;A<O.length;++A)O[A].from!=null&&t.push(O[A].marker)}),t},posFromIndex:function(t){var p,O=this.first,A=this.lineSeparator().length;return this.iter(function(N){var V=N.text.length+A;if(V>t)return p=t,!0;t-=V,++O}),An(this,Mt(O,p))},indexFromPos:function(t){t=An(this,t);var p=t.ch;if(t.line<this.first||t.ch<0)return 0;var O=this.lineSeparator().length;return this.iter(this.first,t.line,function(A){p+=A.text.length+O}),p},copy:function(t){var p=new yo(Wt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return p.scrollTop=this.scrollTop,p.scrollLeft=this.scrollLeft,p.sel=this.sel,p.extend=!1,t&&(p.history.undoDepth=this.history.undoDepth,p.setHistory(this.getHistory())),p},linkedDoc:function(t){t||(t={});var p=this.first,O=this.first+this.size;t.from!=null&&t.from>p&&(p=t.from),t.to!=null&&t.to<O&&(O=t.to);var A=new yo(Wt(this,p,O),t.mode||this.modeOption,p,this.lineSep,this.direction);return t.sharedHist&&(A.history=this.history),(this.linked||(this.linked=[])).push({doc:A,sharedHist:t.sharedHist}),A.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],Cu(A,ou(this)),A},unlinkDoc:function(t){if(t instanceof lr&&(t=t.doc),this.linked)for(var p=0;p<this.linked.length;++p){var O=this.linked[p];if(O.doc!=t)continue;this.linked.splice(p,1),t.unlinkDoc(this),Su(ou(this));break}if(t.history==this.history){var A=[t.id];fs(t,function(N){return A.push(N.id)},!0),t.history=new hl(null),t.history.done=js(this.history.done,A),t.history.undone=js(this.history.undone,A)}},iterLinkedDocs:function(t){fs(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):st(t)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Ti(function(t){if(t!="rtl"&&(t="ltr"),t==this.direction)return;this.direction=t,this.iter(function(p){return p.order=null}),this.cm&&gu(this.cm)})}),yo.prototype.eachLine=yo.prototype.iter;var su=0;function Ml(t){var p=this;if(lu(p),dt(p,t)||Fi(p.display,t))return;ce(t),f&&(su=+new Date);var O=Ki(p,t,!0),A=t.dataTransfer.files;if(!O||p.isReadOnly())return;if(A&&A.length&&window.FileReader&&window.File)for(var N=A.length,V=Array(N),re=0,fe=function(){++re==N&&Ai(p,function(){O=An(p.doc,O);var Ot={from:O,to:O,text:p.doc.splitLines(V.filter(function(Gt){return Gt!=null}).join(p.doc.lineSeparator())),origin:"paste"};Gs(p.doc,Ot),Ql(p.doc,Uo(An(p.doc,O),An(p.doc,Bo(Ot))))})()},ge=function(Ot,Gt){if(p.options.allowDropFileTypes&&ie(p.options.allowDropFileTypes,Ot.type)==-1){fe();return}var en=new FileReader;en.onerror=function(){return fe()},en.onload=function(){var yn=en.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(yn)){fe();return}V[Gt]=yn,fe()},en.readAsText(Ot)},Se=0;Se<A.length;Se++)ge(A[Se],Se);else{if(p.state.draggingText&&p.doc.sel.contains(O)>-1){p.state.draggingText(t),setTimeout(function(){return p.display.input.focus()},20);return}try{var Je=t.dataTransfer.getData("Text");if(Je){var at;if(p.state.draggingText&&!p.state.draggingText.copy&&(at=p.listSelections()),_l(p.doc,Uo(O,O)),at)for(var Dt=0;Dt<at.length;++Dt)Us(p.doc,"",at[Dt].anchor,at[Dt].head,"drag");p.replaceSelection(Je,"around","paste"),p.display.input.focus()}}catch(Ot){}}}function Nl(t,p){if(f&&(!t.state.draggingText||+new Date-su<100)){_e(p);return}if(dt(t,p)||Fi(t.display,p))return;if(p.dataTransfer.setData("Text",t.getSelection()),p.dataTransfer.effectAllowed="copyMove",p.dataTransfer.setDragImage&&!n){var O=B("img",null,null,"position: fixed; left: 0; top: 0;");O.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",l&&(O.width=O.height=1,t.display.wrapper.appendChild(O),O._top=O.offsetTop),p.dataTransfer.setDragImage(O,0,0),l&&O.parentNode.removeChild(O)}}function Tu(t,p){var O=Ki(t,p);if(!O)return;var A=document.createDocumentFragment();zo(t,O,A),t.display.dragCursor||(t.display.dragCursor=B("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),P(t.display.dragCursor,A)}function lu(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function uu(t){if(!document.getElementsByClassName)return;for(var p=document.getElementsByClassName("CodeMirror"),O=[],A=0;A<p.length;A++){var N=p[A].CodeMirror;N&&O.push(N)}O.length&&O[0].operation(function(){for(var V=0;V<O.length;V++)t(O[V])})}var el=!1;function Ou(){if(el)return;Ru(),el=!0}function Ru(){var t;Xe(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,uu(ku)},100))}),Xe(window,"blur",function(){return uu(os)})}function ku(t){var p=t.display;p.cachedCharWidth=p.cachedTextHeight=p.cachedPaddingH=null,p.scrollbarsClipped=!1,t.setSize()}for(var ps={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},tl=0;tl<10;tl++)ps[tl+48]=ps[tl+96]=String(tl);for(var Ll=65;Ll<=90;Ll++)ps[Ll]=String.fromCharCode(Ll);for(var nl=1;nl<=12;nl++)ps[nl+111]=ps[nl+63235]="F"+nl;var ms={};ms.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ms.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ms.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ms.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ms.default=y?ms.macDefault:ms.pcDefault;function Iu(t){var p=t.split(/-(?!$)/);t=p[p.length-1];for(var O,A,N,V,re=0;re<p.length-1;re++){var fe=p[re];if(/^(cmd|meta|m)$/i.test(fe))V=!0;else if(/^a(lt)?$/i.test(fe))O=!0;else if(/^(c|ctrl|control)$/i.test(fe))A=!0;else if(/^s(hift)?$/i.test(fe))N=!0;else throw new Error("Unrecognized modifier name: "+fe)}return O&&(t="Alt-"+t),A&&(t="Ctrl-"+t),V&&(t="Cmd-"+t),N&&(t="Shift-"+t),t}function Du(t){var p={};for(var O in t)if(t.hasOwnProperty(O)){var A=t[O];if(/^(name|fallthrough|(de|at)tach)$/.test(O))continue;if(A=="..."){delete t[O];continue}for(var N=xe(O.split(" "),Iu),V=0;V<N.length;V++){var re=void 0,fe=void 0;V==N.length-1?(fe=N.join(" "),re=A):(fe=N.slice(0,V+1).join(" "),re="...");var ge=p[fe];if(!ge)p[fe]=re;else if(ge!=re)throw new Error("Inconsistent bindings for "+fe)}delete t[O]}for(var Se in p)t[Se]=p[Se];return t}function rl(t,p,O,A){p=Me(p);var N=p.call?p.call(t,A):p[t];if(N===!1)return"nothing";if(N==="...")return"multi";if(N!=null&&O(N))return"handled";if(p.fallthrough){if(Object.prototype.toString.call(p.fallthrough)!="[object Array]")return rl(t,p.fallthrough,O,A);for(var V=0;V<p.fallthrough.length;V++){var re=rl(t,p.fallthrough[V],O,A);if(re)return re}}}function cu(t){var p=typeof t=="string"?t:ps[t.keyCode];return p=="Ctrl"||p=="Alt"||p=="Shift"||p=="Mod"}function du(t,p,O){var A=t;return p.altKey&&A!="Alt"&&(t="Alt-"+t),(x?p.metaKey:p.ctrlKey)&&A!="Ctrl"&&(t="Ctrl-"+t),(x?p.ctrlKey:p.metaKey)&&A!="Mod"&&(t="Cmd-"+t),!O&&p.shiftKey&&A!="Shift"&&(t="Shift-"+t),t}function ae(t,p){if(l&&t.keyCode==34&&t.char)return!1;var O=ps[t.keyCode];return O==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(O=t.code),du(O,t,p))}function Me(t){return typeof t=="string"?ms[t]:t}function Ke(t,p){for(var O=t.doc.sel.ranges,A=[],N=0;N<O.length;N++){for(var V=p(O[N]);A.length&&on(V.from,ne(A).to)<=0;){var re=A.pop();if(on(re.from,V.from)<0){V.from=re.from;break}}A.push(V)}so(t,function(){for(var fe=A.length-1;fe>=0;fe--)Us(t.doc,"",A[fe].from,A[fe].to,"+delete");ls(t)})}function gt(t,p,O){var A=Ce(t.text,p+O,O);return A<0||A>t.text.length?null:A}function Et(t,p,O){var A=gt(t,p.ch,O);return A==null?null:new Mt(p.line,A,O<0?"after":"before")}function tt(t,p,O,A,N){if(t){p.doc.direction=="rtl"&&(N=-N);var V=ft(O,p.doc.direction);if(V){var re=N<0?ne(V):V[0],fe=N<0==(re.level==1),ge=fe?"after":"before",Se;if(re.level>0||p.doc.direction=="rtl"){var Je=yt(p,O);Se=N<0?O.text.length-1:0;var at=It(p,Je,Se).top;Se=Pe(function(Dt){return It(p,Je,Dt).top==at},N<0==(re.level==1)?re.from:re.to-1,Se),ge=="before"&&(Se=gt(O,Se,1))}else Se=N<0?re.to:re.from;return new Mt(A,Se,ge)}}return new Mt(A,N<0?O.text.length:0,N<0?"before":"after")}function Ve(t,p,O,A){var N=ft(p,t.doc.direction);if(!N)return Et(p,O,A);O.ch>=p.text.length?(O.ch=p.text.length,O.sticky="before"):O.ch<=0&&(O.ch=0,O.sticky="after");var V=me(N,O.ch,O.sticky),re=N[V];if(t.doc.direction=="ltr"&&re.level%2==0&&(A>0?re.to>O.ch:re.from<O.ch))return Et(p,O,A);var fe=function(Sn,Fn){return gt(p,Sn instanceof Mt?Sn.ch:Sn,Fn)},ge,Se=function(Sn){return t.options.lineWrapping?(ge=ge||yt(t,p),or(t,p,ge,Sn)):{begin:0,end:p.text.length}},Je=Se(O.sticky=="before"?fe(O,-1):O.ch);if(t.doc.direction=="rtl"||re.level==1){var at=re.level==1==A<0,Dt=fe(O,at?1:-1);if(Dt!=null&&(at?Dt<=re.to&&Dt<=Je.end:Dt>=re.from&&Dt>=Je.begin)){var Ot=at?"before":"after";return new Mt(O.line,Dt,Ot)}}var Gt=function(Sn,Fn,kn){for(var Zn=function(Ua,pi){return pi?new Mt(O.line,fe(Ua,1),"before"):new Mt(O.line,Ua,"after")};Sn>=0&&Sn<N.length;Sn+=Fn){var Or=N[Sn],cr=Fn>0==(Or.level!=1),$r=cr?kn.begin:fe(kn.end,-1);if(Or.from<=$r&&$r<Or.to)return Zn($r,cr);if($r=cr?Or.from:fe(Or.to,-1),kn.begin<=$r&&$r<kn.end)return Zn($r,cr)}},en=Gt(V+A,A,Je);if(en)return en;var yn=A>0?Je.end:fe(Je.begin,-1);return yn!=null&&!(A>0&&yn==p.text.length)&&(en=Gt(A>0?0:N.length-1,A,Se(yn)),en)?en:null}var bt={selectAll:Il,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),De)},killLine:function(t){return Ke(t,function(p){if(p.empty()){var O=Lt(t.doc,p.head.line).text.length;return p.head.ch==O&&p.head.line<t.lastLine()?{from:p.head,to:Mt(p.head.line+1,0)}:{from:p.head,to:Mt(p.head.line,O)}}else return{from:p.from(),to:p.to()}})},deleteLine:function(t){return Ke(t,function(p){return{from:Mt(p.from().line,0),to:An(t.doc,Mt(p.to().line+1,0))}})},delLineLeft:function(t){return Ke(t,function(p){return{from:Mt(p.from().line,0),to:p.from()}})},delWrappedLineLeft:function(t){return Ke(t,function(p){var O=t.charCoords(p.head,"div").top+5,A=t.coordsChar({left:0,top:O},"div");return{from:A,to:p.from()}})},delWrappedLineRight:function(t){return Ke(t,function(p){var O=t.charCoords(p.head,"div").top+5,A=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:O},"div");return{from:p.from(),to:A}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(Mt(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(Mt(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(p){return mt(t,p.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(p){return ct(t,p.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(p){return ot(t,p.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(p){var O=t.cursorCoords(p.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:O},"div")},be)},goLineLeft:function(t){return t.extendSelectionsBy(function(p){var O=t.cursorCoords(p.head,"div").top+5;return t.coordsChar({left:0,top:O},"div")},be)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(p){var O=t.cursorCoords(p.head,"div").top+5,A=t.coordsChar({left:0,top:O},"div");return A.ch<t.getLine(A.line).search(/\S/)?ct(t,p.head):A},be)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var p=[],O=t.listSelections(),A=t.options.tabSize,N=0;N<O.length;N++){var V=O[N].from(),re=j(t.getLine(V.line),V.ch,A);p.push(ue(A-re%A))}t.replaceSelections(p)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return so(t,function(){for(var p=t.listSelections(),O=[],A=0;A<p.length;A++){if(!p[A].empty())continue;var N=p[A].head,V=Lt(t.doc,N.line).text;if(V){if(N.ch==V.length&&(N=new Mt(N.line,N.ch-1)),N.ch>0)N=new Mt(N.line,N.ch+1),t.replaceRange(V.charAt(N.ch-1)+V.charAt(N.ch-2),Mt(N.line,N.ch-2),N,"+transpose");else if(N.line>t.doc.first){var re=Lt(t.doc,N.line-1).text;re&&(N=new Mt(N.line,1),t.replaceRange(V.charAt(0)+t.doc.lineSeparator()+re.charAt(re.length-1),Mt(N.line-1,re.length-1),N,"+transpose"))}}O.push(new Ma(N,N))}t.setSelections(O)})},newlineAndIndent:function(t){return so(t,function(){for(var p=t.listSelections(),O=p.length-1;O>=0;O--)t.replaceRange(t.doc.lineSeparator(),p[O].anchor,p[O].head,"+input");p=t.listSelections();for(var A=0;A<p.length;A++)t.indentLine(p[A].from().line,null,!0);ls(t)})},openLine:function(t){return t.replaceSelection(`
`,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function mt(t,p){var O=Lt(t.doc,p),A=ua(O);return A!=O&&(p=ln(A)),tt(!0,t,A,p,1)}function ot(t,p){var O=Lt(t.doc,p),A=Mi(O);return A!=O&&(p=ln(A)),tt(!0,t,O,p,-1)}function ct(t,p){var O=mt(t,p.line),A=Lt(t.doc,O.line),N=ft(A,t.doc.direction);if(!N||N[0].level==0){var V=Math.max(O.ch,A.text.search(/\S/)),re=p.line==O.line&&p.ch<=V&&p.ch;return Mt(O.line,re?0:V,O.sticky)}return O}function Pt(t,p,O){if(typeof p=="string"&&(p=bt[p],!p))return!1;t.display.input.ensurePolled();var A=t.display.shift,N=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),O&&(t.display.shift=!1),N=p(t)!=Ee}finally{t.display.shift=A,t.state.suppressEdits=!1}return N}function kt(t,p,O){for(var A=0;A<t.state.keyMaps.length;A++){var N=rl(p,t.state.keyMaps[A],O,t);if(N)return N}return t.options.extraKeys&&rl(p,t.options.extraKeys,O,t)||rl(p,t.options.keyMap,O,t)}var Tt=new Z;function Nt(t,p,O,A){var N=t.state.keySeq;if(N){if(cu(p))return"handled";if(/\'$/.test(p)?t.state.keySeq=null:Tt.set(50,function(){t.state.keySeq==N&&(t.state.keySeq=null,t.display.input.reset())}),Ft(t,N+" "+p,O,A))return!0}return Ft(t,p,O,A)}function Ft(t,p,O,A){var N=kt(t,p,A);return N=="multi"&&(t.state.keySeq=p),N=="handled"&&Za(t,"keyHandled",t,p,O),(N=="handled"||N=="multi")&&(ce(O),Ni(t)),!!N}function Yt(t,p){var O=ae(p,!0);return O?p.shiftKey&&!t.state.keySeq?Nt(t,"Shift-"+O,p,function(A){return Pt(t,A,!0)})||Nt(t,O,p,function(A){if(typeof A=="string"?/^go[A-Z]/.test(A):A.motion)return Pt(t,A)}):Nt(t,O,p,function(A){return Pt(t,A)}):!1}function Jt(t,p,O){return Nt(t,"'"+O+"'",p,function(A){return Pt(t,A,!0)})}var pn=null;function xn(t){var p=this;if(t.target&&t.target!=p.display.input.getField())return;if(p.curOp.focus=ee(),dt(p,t))return;f&&d<11&&t.keyCode==27&&(t.returnValue=!1);var O=t.keyCode;p.display.shift=O==16||t.shiftKey;var A=Yt(p,t);l&&(pn=A?O:null,!A&&O==88&&!et&&(y?t.metaKey:t.ctrlKey)&&p.replaceSelection("",null,"cut")),I&&!y&&!A&&O==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),O==18&&!/\bCodeMirror-crosshair\b/.test(p.display.lineDiv.className)&&tn(p)}function tn(t){var p=t.display.lineDiv;G(p,"CodeMirror-crosshair");function O(A){(A.keyCode==18||!A.altKey)&&(T(p,"CodeMirror-crosshair"),Ae(document,"keyup",O),Ae(document,"mouseover",O))}Xe(document,"keyup",O),Xe(document,"mouseover",O)}function nn(t){t.keyCode==16&&(this.doc.sel.shift=!1),dt(this,t)}function jt(t){var p=this;if(t.target&&t.target!=p.display.input.getField())return;if(Fi(p.display,t)||dt(p,t)||t.ctrlKey&&!t.altKey||y&&t.metaKey)return;var O=t.keyCode,A=t.charCode;if(l&&O==pn){pn=null,ce(t);return}if(l&&(!t.which||t.which<10)&&Yt(p,t))return;var N=String.fromCharCode(A==null?O:A);if(N=="\b")return;if(Jt(p,t,N))return;p.display.input.onKeyPress(t)}var vn=400,nt=function(t,p,O){this.time=t,this.pos=p,this.button=O};nt.prototype.compare=function(t,p,O){return this.time+vn>t&&on(p,this.pos)==0&&O==this.button};var Ht,rn;function sn(t,p){var O=+new Date;return rn&&rn.compare(O,t,p)?(Ht=rn=null,"triple"):Ht&&Ht.compare(O,t,p)?(rn=new nt(O,t,p),Ht=null,"double"):(Ht=new nt(O,t,p),rn=null,"single")}function bn(t){var p=this,O=p.display;if(dt(p,t)||O.activeTouch&&O.input.supportsTouch())return;if(O.input.ensurePolled(),O.shift=t.shiftKey,Fi(O,t)){u||(O.scroller.draggable=!1,setTimeout(function(){return O.scroller.draggable=!0},100));return}if(Xt(p,t))return;var A=Ki(p,t),N=Q(t),V=A?sn(A,N):"single";if(window.focus(),N==1&&p.state.selectingText&&p.state.selectingText(t),A&&On(p,N,A,V,t))return;N==1?A?Zt(p,A,V,t):Ne(t)==O.scroller&&ce(t):N==2?(A&&ml(p.doc,A),setTimeout(function(){return O.input.focus()},20)):N==3&&(M?p.display.input.onContextMenu(t):ol(p))}function On(t,p,O,A,N){var V="Click";return A=="double"?V="Double"+V:A=="triple"&&(V="Triple"+V),V=(p==1?"Left":p==2?"Middle":"Right")+V,Nt(t,du(V,N),N,function(re){if(typeof re=="string"&&(re=bt[re]),!re)return!1;var fe=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),fe=re(t,O)!=Ee}finally{t.state.suppressEdits=!1}return fe})}function fn(t,p,O){var A=t.getOption("configureMouse"),N=A?A(t,p,O):{};if(N.unit==null){var V=E?O.shiftKey&&O.metaKey:O.altKey;N.unit=V?"rectangle":p=="single"?"char":p=="double"?"word":"line"}return(N.extend==null||t.doc.extend)&&(N.extend=t.doc.extend||O.shiftKey),N.addNew==null&&(N.addNew=y?O.metaKey:O.ctrlKey),N.moveOnDrag==null&&(N.moveOnDrag=!(y?O.altKey:O.ctrlKey)),N}function Zt(t,p,O,A){f?setTimeout(L(il,t),0):t.curOp.focus=ee();var N=fn(t,O,A),V=t.doc.sel,re;t.options.dragDrop&&Ue&&!t.isReadOnly()&&O=="single"&&(re=V.contains(p))>-1&&(on((re=V.ranges[re]).from(),p)<0||p.xRel>0)&&(on(re.to(),p)>0||p.xRel<0)?$t(t,A,p,N):mn(t,A,p,N)}function $t(t,p,O,A){var N=t.display,V=!1,re=Ai(t,function(Se){u&&(N.scroller.draggable=!1),t.state.draggingText=!1,Ae(N.wrapper.ownerDocument,"mouseup",re),Ae(N.wrapper.ownerDocument,"mousemove",fe),Ae(N.scroller,"dragstart",ge),Ae(N.scroller,"drop",re),V||(ce(Se),A.addNew||ml(t.doc,O,null,null,A.extend),u&&!n||f&&d==9?setTimeout(function(){N.wrapper.ownerDocument.body.focus({preventScroll:!0}),N.input.focus()},20):N.input.focus())}),fe=function(Se){V=V||Math.abs(p.clientX-Se.clientX)+Math.abs(p.clientY-Se.clientY)>=10},ge=function(){return V=!0};u&&(N.scroller.draggable=!0),t.state.draggingText=re,re.copy=!A.moveOnDrag,N.scroller.dragDrop&&N.scroller.dragDrop(),Xe(N.wrapper.ownerDocument,"mouseup",re),Xe(N.wrapper.ownerDocument,"mousemove",fe),Xe(N.scroller,"dragstart",ge),Xe(N.scroller,"drop",re),ol(t),setTimeout(function(){return N.input.focus()},20)}function Qt(t,p,O){if(O=="char")return new Ma(p,p);if(O=="word")return t.findWordAt(p);if(O=="line")return new Ma(Mt(p.line,0),An(t.doc,Mt(p.line+1,0)));var A=O(t,p);return new Ma(A.from,A.to)}function mn(t,p,O,A){var N=t.display,V=t.doc;ce(p);var re,fe,ge=V.sel,Se=ge.ranges;if(A.addNew&&!A.extend?(fe=V.sel.contains(O),fe>-1?re=Se[fe]:re=new Ma(O,O)):(re=V.sel.primary(),fe=V.sel.primIndex),A.unit=="rectangle")A.addNew||(re=new Ma(O,O)),O=Ki(t,p,!0,!0),fe=-1;else{var Je=Qt(t,O,A.unit);A.extend?re=Gl(re,Je.anchor,Je.head,A.extend):re=Je}A.addNew?fe==-1?(fe=Se.length,ho(V,Ro(t,Se.concat([re]),fe),{scroll:!1,origin:"*mouse"})):Se.length>1&&Se[fe].empty()&&A.unit=="char"&&!A.extend?(ho(V,Ro(t,Se.slice(0,fe).concat(Se.slice(fe+1)),0),{scroll:!1,origin:"*mouse"}),ge=V.sel):Rl(V,fe,re,q):(fe=0,ho(V,new $i([re],0),q),ge=V.sel);var at=O;function Dt(kn){if(on(at,kn)==0)return;if(at=kn,A.unit=="rectangle"){for(var Zn=[],Or=t.options.tabSize,cr=j(Lt(V,O.line).text,O.ch,Or),$r=j(Lt(V,kn.line).text,kn.ch,Or),Ua=Math.min(cr,$r),pi=Math.max(cr,$r),oi=Math.min(O.line,kn.line),eo=Math.min(t.lastLine(),Math.max(O.line,kn.line));oi<=eo;oi++){var Yi=Lt(V,oi).text,si=ye(Yi,Ua,Or);Ua==pi?Zn.push(new Ma(Mt(oi,si),Mt(oi,si))):Yi.length>si&&Zn.push(new Ma(Mt(oi,si),Mt(oi,ye(Yi,pi,Or))))}Zn.length||Zn.push(new Ma(O,O)),ho(V,Ro(t,ge.ranges.slice(0,fe).concat(Zn),fe),{origin:"*mouse",scroll:!1}),t.scrollIntoView(kn)}else{var to=re,Hi=Qt(t,kn,A.unit),Ii=to.anchor,mi;on(Hi.anchor,Ii)>0?(mi=Hi.head,Ii=jr(to.from(),Hi.anchor)):(mi=Hi.anchor,Ii=vr(to.to(),Hi.head));var di=ge.ranges.slice(0);di[fe]=jn(t,new Ma(An(V,Ii),mi)),ho(V,Ro(t,di,fe),q)}}var Ot=N.wrapper.getBoundingClientRect(),Gt=0;function en(kn){var Zn=++Gt,Or=Ki(t,kn,!0,A.unit=="rectangle");if(!Or)return;if(on(Or,at)!=0){t.curOp.focus=ee(),Dt(Or);var cr=Ts(N,V);(Or.line>=cr.to||Or.line<cr.from)&&setTimeout(Ai(t,function(){Gt==Zn&&en(kn)}),150)}else{var $r=kn.clientY<Ot.top?-20:kn.clientY>Ot.bottom?20:0;$r&&setTimeout(Ai(t,function(){if(Gt!=Zn)return;N.scroller.scrollTop+=$r,en(kn)}),50)}}function yn(kn){t.state.selectingText=!1,Gt=Infinity,kn&&(ce(kn),N.input.focus()),Ae(N.wrapper.ownerDocument,"mousemove",Sn),Ae(N.wrapper.ownerDocument,"mouseup",Fn),V.history.lastSelOrigin=null}var Sn=Ai(t,function(kn){kn.buttons===0||!Q(kn)?yn(kn):en(kn)}),Fn=Ai(t,yn);t.state.selectingText=Fn,Xe(N.wrapper.ownerDocument,"mousemove",Sn),Xe(N.wrapper.ownerDocument,"mouseup",Fn)}function jn(t,p){var O=p.anchor,A=p.head,N=Lt(t.doc,O.line);if(on(O,A)==0&&O.sticky==A.sticky)return p;var V=ft(N);if(!V)return p;var re=me(V,O.ch,O.sticky),fe=V[re];if(fe.from!=O.ch&&fe.to!=O.ch)return p;var ge=re+(fe.from==O.ch==(fe.level!=1)?0:1);if(ge==0||ge==V.length)return p;var Se;if(A.line!=O.line)Se=(A.line-O.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var Je=me(V,A.ch,A.sticky),at=Je-re||(A.ch-O.ch)*(fe.level==1?-1:1);Je==ge-1||Je==ge?Se=at<0:Se=at>0}var Dt=V[ge+(Se?-1:0)],Ot=Se==(Dt.level==1),Gt=Ot?Dt.from:Dt.to,en=Ot?"after":"before";return O.ch==Gt&&O.sticky==en?p:new Ma(new Mt(O.line,Gt,en),A)}function Dn(t,p,O,A){var N,V;if(p.touches)N=p.touches[0].clientX,V=p.touches[0].clientY;else try{N=p.clientX,V=p.clientY}catch(Dt){return!1}if(N>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;A&&ce(p);var re=t.display,fe=re.lineDiv.getBoundingClientRect();if(V>fe.bottom||!je(t,O))return se(p);V-=fe.top-re.viewOffset;for(var ge=0;ge<t.display.gutterSpecs.length;++ge){var Se=re.gutters.childNodes[ge];if(Se&&Se.getBoundingClientRect().right>=N){var Je=Un(t.doc,V),at=t.display.gutterSpecs[ge];return We(t,O,t,Je,at.className,p),se(p)}}}function Xt(t,p){return Dn(t,p,"gutterClick",!0)}function Mn(t,p){if(Fi(t.display,p)||ir(t,p))return;if(dt(t,p,"contextmenu"))return;M||t.display.input.onContextMenu(p)}function ir(t,p){return je(t,"gutterContextMenu")?Dn(t,p,"gutterContextMenu",!1):!1}function sr(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Qr(t)}var er={toString:function(){return"CodeMirror.Init"}},qn={},an={};function Vn(t){var p=t.optionHandlers;function O(A,N,V,re){t.defaults[A]=N,V&&(p[A]=re?function(fe,ge,Se){Se!=er&&V(fe,ge,Se)}:V)}t.defineOption=O,t.Init=er,O("value","",function(A,N){return A.setValue(N)},!0),O("mode",null,function(A,N){A.doc.modeOption=N,ns(A)},!0),O("indentUnit",2,ns,!0),O("indentWithTabs",!1),O("smartIndent",!0),O("tabSize",4,function(A){Ps(A),Qr(A),za(A)},!0),O("lineSeparator",null,function(A,N){if(A.doc.lineSep=N,!N)return;var V=[],re=A.doc.first;A.doc.iter(function(ge){for(var Se=0;;){var Je=ge.text.indexOf(N,Se);if(Je==-1)break;Se=Je+N.length,V.push(Mt(re,Je))}re++});for(var fe=V.length-1;fe>=0;fe--)Us(A.doc,N,V[fe],Mt(V[fe].line,V[fe].ch+N.length))}),O("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(A,N,V){A.state.specialChars=new RegExp(N.source+(N.test(" ")?"":"| "),"g"),V!=er&&A.refresh()}),O("specialCharPlaceholder",ca,function(A){return A.refresh()},!0),O("electricChars",!0),O("inputStyle",b?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),O("spellcheck",!1,function(A,N){return A.getInputField().spellcheck=N},!0),O("autocorrect",!1,function(A,N){return A.getInputField().autocorrect=N},!0),O("autocapitalize",!1,function(A,N){return A.getInputField().autocapitalize=N},!0),O("rtlMoveVisually",!c),O("wholeLineUpdateBefore",!0),O("theme","default",function(A){sr(A),Po(A)},!0),O("keyMap","default",function(A,N,V){var re=Me(N),fe=V!=er&&Me(V);fe&&fe.detach&&fe.detach(A,re),re.attach&&re.attach(A,fe||null)}),O("extraKeys",null),O("configureMouse",null),O("lineWrapping",!1,Gr,!0),O("gutters",[],function(A,N){A.display.gutterSpecs=qi(N,A.options.lineNumbers),Po(A)},!0),O("fixedGutter",!0,function(A,N){A.display.gutters.style.left=N?oo(A.display)+"px":"0",A.refresh()},!0),O("coverGutterNextToScrollbar",!1,function(A){return Vo(A)},!0),O("scrollbarStyle","native",function(A){ks(A),Vo(A),A.display.scrollbars.setScrollTop(A.doc.scrollTop),A.display.scrollbars.setScrollLeft(A.doc.scrollLeft)},!0),O("lineNumbers",!1,function(A,N){A.display.gutterSpecs=qi(A.options.gutters,N),Po(A)},!0),O("firstLineNumber",1,Po,!0),O("lineNumberFormatter",function(A){return A},Po,!0),O("showCursorWhenSelecting",!1,Wa,!0),O("resetSelectionOnContextMenu",!0),O("lineWiseCopyCut",!0),O("pasteLinesPerSelection",!0),O("selectionsMayTouch",!1),O("readOnly",!1,function(A,N){N=="nocursor"&&(os(A),A.display.input.blur()),A.display.input.readOnlyChanged(N)}),O("screenReaderLabel",null,function(A,N){N=N===""?null:N,A.display.input.screenReaderLabelChanged(N)}),O("disableInput",!1,function(A,N){N||A.display.input.reset()},!0),O("dragDrop",!0,Fr),O("allowDropFileTypes",null),O("cursorBlinkRate",530),O("cursorScrollMargin",0),O("cursorHeight",1,Wa,!0),O("singleCursorHeightPerLine",!0,Wa,!0),O("workTime",100),O("workDelay",100),O("flattenSpans",!0,Ps,!0),O("addModeClass",!1,Ps,!0),O("pollInterval",100),O("undoDepth",200,function(A,N){return A.doc.history.undoDepth=N}),O("historyEventDelay",1250),O("viewportMargin",10,function(A){return A.refresh()},!0),O("maxHighlightLength",1e4,Ps,!0),O("moveInputWithCursor",!0,function(A,N){N||A.display.input.resetPosition()}),O("tabindex",null,function(A,N){return A.display.input.getField().tabIndex=N||""}),O("autofocus",null),O("direction","ltr",function(A,N){return A.doc.setDirection(N)},!0),O("phrases",null)}function Fr(t,p,O){var A=O&&O!=er;if(!p!=!A){var N=t.display.dragFunctions,V=p?Xe:Ae;V(t.display.scroller,"dragstart",N.start),V(t.display.scroller,"dragenter",N.enter),V(t.display.scroller,"dragover",N.over),V(t.display.scroller,"dragleave",N.leave),V(t.display.scroller,"drop",N.drop)}}function Gr(t){t.options.lineWrapping?(G(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(T(t.display.wrapper,"CodeMirror-wrap"),vo(t)),fo(t),za(t),Qr(t),setTimeout(function(){return Vo(t)},100)}function lr(t,p){var O=this;if(!(this instanceof lr))return new lr(t,p);this.options=p=p?D(p):{},D(qn,p,!1);var A=p.value;typeof A=="string"?A=new yo(A,p.mode,null,p.lineSeparator,p.direction):p.mode&&(A.modeOption=p.mode),this.doc=A;var N=new lr.inputStyles[p.inputStyle](this),V=this.display=new ds(t,A,N,p);V.wrapper.CodeMirror=this,sr(this),p.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ks(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Z,keySeq:null,specialChars:null},p.autofocus&&!b&&V.input.focus(),f&&d<11&&setTimeout(function(){return O.display.input.reset(!0)},20),Ra(this),Ou(),Yo(this),this.curOp.forceUpdate=!0,Kl(this,A),p.autofocus&&!b||this.hasFocus()?setTimeout(function(){O.hasFocus()&&!O.state.focused&&Go(O)},20):os(this);for(var re in an)an.hasOwnProperty(re)&&an[re](this,p[re],er);Oi(this),p.finishInit&&p.finishInit(this);for(var fe=0;fe<ja.length;++fe)ja[fe](this);es(this),u&&p.lineWrapping&&getComputedStyle(V.lineDiv).textRendering=="optimizelegibility"&&(V.lineDiv.style.textRendering="auto")}lr.defaults=qn,lr.optionHandlers=an;function Ra(t){var p=t.display;Xe(p.scroller,"mousedown",Ai(t,bn)),f&&d<11?Xe(p.scroller,"dblclick",Ai(t,function(ge){if(dt(t,ge))return;var Se=Ki(t,ge);if(!Se||Xt(t,ge)||Fi(t.display,ge))return;ce(ge);var Je=t.findWordAt(Se);ml(t.doc,Je.anchor,Je.head)})):Xe(p.scroller,"dblclick",function(ge){return dt(t,ge)||ce(ge)}),Xe(p.scroller,"contextmenu",function(ge){return Mn(t,ge)}),Xe(p.input.getField(),"contextmenu",function(ge){p.scroller.contains(ge.target)||Mn(t,ge)});var O,A={end:0};function N(){p.activeTouch&&(O=setTimeout(function(){return p.activeTouch=null},1e3),A=p.activeTouch,A.end=+new Date)}function V(ge){if(ge.touches.length!=1)return!1;var Se=ge.touches[0];return Se.radiusX<=1&&Se.radiusY<=1}function re(ge,Se){if(Se.left==null)return!0;var Je=Se.left-ge.left,at=Se.top-ge.top;return Je*Je+at*at>20*20}Xe(p.scroller,"touchstart",function(ge){if(!dt(t,ge)&&!V(ge)&&!Xt(t,ge)){p.input.ensurePolled(),clearTimeout(O);var Se=+new Date;p.activeTouch={start:Se,moved:!1,prev:Se-A.end<=300?A:null},ge.touches.length==1&&(p.activeTouch.left=ge.touches[0].pageX,p.activeTouch.top=ge.touches[0].pageY)}}),Xe(p.scroller,"touchmove",function(){p.activeTouch&&(p.activeTouch.moved=!0)}),Xe(p.scroller,"touchend",function(ge){var Se=p.activeTouch;if(Se&&!Fi(p,ge)&&Se.left!=null&&!Se.moved&&new Date-Se.start<300){var Je=t.coordsChar(p.activeTouch,"page"),at;!Se.prev||re(Se,Se.prev)?at=new Ma(Je,Je):!Se.prev.prev||re(Se,Se.prev.prev)?at=t.findWordAt(Je):at=new Ma(Mt(Je.line,0),An(t.doc,Mt(Je.line+1,0))),t.setSelection(at.anchor,at.head),t.focus(),ce(ge)}N()}),Xe(p.scroller,"touchcancel",N),Xe(p.scroller,"scroll",function(){p.scroller.clientHeight&&(ys(t,p.scroller.scrollTop),bo(t,p.scroller.scrollLeft,!0),We(t,"scroll",t))}),Xe(p.scroller,"mousewheel",function(ge){return jo(t,ge)}),Xe(p.scroller,"DOMMouseScroll",function(ge){return jo(t,ge)}),Xe(p.wrapper,"scroll",function(){return p.wrapper.scrollTop=p.wrapper.scrollLeft=0}),p.dragFunctions={enter:function(ge){dt(t,ge)||_e(ge)},over:function(ge){dt(t,ge)||(Tu(t,ge),_e(ge))},start:function(ge){return Nl(t,ge)},drop:Ai(t,Ml),leave:function(ge){dt(t,ge)||lu(t)}};var fe=p.input.getField();Xe(fe,"keyup",function(ge){return nn.call(t,ge)}),Xe(fe,"keydown",Ai(t,xn)),Xe(fe,"keypress",Ai(t,jt)),Xe(fe,"focus",function(ge){return Go(t,ge)}),Xe(fe,"blur",function(ge){return os(t,ge)})}var ja=[];lr.defineInitHook=function(t){return ja.push(t)};function ci(t,p,O,A){var N=t.doc,V;O==null&&(O="add"),O=="smart"&&(N.mode.indent?V=br(t,p).state:O="prev");var re=t.options.tabSize,fe=Lt(N,p),ge=j(fe.text,null,re);fe.stateAfter&&(fe.stateAfter=null);var Se=fe.text.match(/^\s*/)[0],Je;if(!A&&!/\S/.test(fe.text))Je=0,O="not";else if(O=="smart"&&(Je=N.mode.indent(V,fe.text.slice(Se.length),fe.text),Je==Ee||Je>150)){if(!A)return;O="prev"}O=="prev"?p>N.first?Je=j(Lt(N,p-1).text,null,re):Je=0:O=="add"?Je=ge+t.options.indentUnit:O=="subtract"?Je=ge-t.options.indentUnit:typeof O=="number"&&(Je=ge+O),Je=Math.max(0,Je);var at="",Dt=0;if(t.options.indentWithTabs)for(var Ot=Math.floor(Je/re);Ot;--Ot)Dt+=re,at+=" ";if(Dt<Je&&(at+=ue(Je-Dt)),at!=Se)return Us(N,at,Mt(p,0),Mt(p,Se.length),"+input"),fe.stateAfter=null,!0;for(var Gt=0;Gt<N.sel.ranges.length;Gt++){var en=N.sel.ranges[Gt];if(en.head.line==p&&en.head.ch<Se.length){var yn=Mt(p,Se.length);Rl(N,Gt,new Ma(yn,yn));break}}}var ra=null;function Na(t){ra=t}function Ri(t,p,O,A,N){var V=t.doc;t.display.shift=!1,A||(A=V.sel);var re=+new Date-200,fe=N=="paste"||t.state.pasteIncoming>re,ge=st(p),Se=null;if(fe&&A.ranges.length>1)if(ra&&ra.text.join(`
`)==p){if(A.ranges.length%ra.text.length==0){Se=[];for(var Je=0;Je<ra.text.length;Je++)Se.push(V.splitLines(ra.text[Je]))}}else ge.length==A.ranges.length&&t.options.pasteLinesPerSelection&&(Se=xe(ge,function(Sn){return[Sn]}));for(var at=t.curOp.updateInput,Dt=A.ranges.length-1;Dt>=0;Dt--){var Ot=A.ranges[Dt],Gt=Ot.from(),en=Ot.to();Ot.empty()&&(O&&O>0?Gt=Mt(Gt.line,Gt.ch-O):t.state.overwrite&&!fe?en=Mt(en.line,Math.min(Lt(V,en.line).text.length,en.ch+ne(ge).length)):fe&&ra&&ra.lineWise&&ra.text.join(`
`)==ge.join(`
`)&&(Gt=en=Mt(Gt.line,0)));var yn={from:Gt,to:en,text:Se?Se[Dt%Se.length]:ge,origin:N||(fe?"paste":t.state.cutIncoming>re?"cut":"+input")};Gs(t.doc,yn),Za(t,"inputRead",t,yn)}p&&!fe&&ki(t,p),ls(t),t.curOp.updateInput<2&&(t.curOp.updateInput=at),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function xi(t,p){var O=t.clipboardData&&t.clipboardData.getData("Text");if(O)return t.preventDefault(),!p.isReadOnly()&&!p.options.disableInput&&so(p,function(){return Ri(p,O,0,null,"paste")}),!0}function ki(t,p){if(!t.options.electricChars||!t.options.smartIndent)return;for(var O=t.doc.sel,A=O.ranges.length-1;A>=0;A--){var N=O.ranges[A];if(N.head.ch>100||A&&O.ranges[A-1].head.line==N.head.line)continue;var V=t.getModeAt(N.head),re=!1;if(V.electricChars){for(var fe=0;fe<V.electricChars.length;fe++)if(p.indexOf(V.electricChars.charAt(fe))>-1){re=ci(t,N.head.line,"smart");break}}else V.electricInput&&(V.electricInput.test(Lt(t.doc,N.head.line).text.slice(0,N.head.ch))&&(re=ci(t,N.head.line,"smart")));re&&Za(t,"electricInput",t,N.head.line)}}function Li(t){for(var p=[],O=[],A=0;A<t.doc.sel.ranges.length;A++){var N=t.doc.sel.ranges[A].head.line,V={anchor:Mt(N,0),head:Mt(N+1,0)};O.push(V),p.push(t.getRange(V.anchor,V.head))}return{text:p,ranges:O}}function ga(t,p,O,A){t.setAttribute("autocorrect",O?"":"off"),t.setAttribute("autocapitalize",A?"":"off"),t.setAttribute("spellcheck",!!p)}function po(){var t=B("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),p=B("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return u?t.style.width="1000px":t.setAttribute("wrap","off"),i&&(t.style.border="1px solid black"),ga(t),p}function mo(t){var p=t.optionHandlers,O=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(A,N){var V=this.options,re=V[A];if(V[A]==N&&A!="mode")return;V[A]=N,p.hasOwnProperty(A)&&Ai(this,p[A])(this,N,re),We(this,"optionChange",this,A)},getOption:function(A){return this.options[A]},getDoc:function(){return this.doc},addKeyMap:function(A,N){this.state.keyMaps[N?"push":"unshift"](Me(A))},removeKeyMap:function(A){for(var N=this.state.keyMaps,V=0;V<N.length;++V)if(N[V]==A||N[V].name==A)return N.splice(V,1),!0},addOverlay:Vi(function(A,N){var V=A.token?A:t.getMode(this.options,A);if(V.startState)throw new Error("Overlays may not be stateful.");$(this.state.overlays,{mode:V,modeSpec:A,opaque:N&&N.opaque,priority:N&&N.priority||0},function(re){return re.priority}),this.state.modeGen++,za(this)}),removeOverlay:Vi(function(A){for(var N=this.state.overlays,V=0;V<N.length;++V){var re=N[V].modeSpec;if(re==A||typeof A=="string"&&re.name==A){N.splice(V,1),this.state.modeGen++,za(this);return}}}),indentLine:Vi(function(A,N,V){typeof N!="string"&&typeof N!="number"&&(N==null?N=this.options.smartIndent?"smart":"prev":N=N?"add":"subtract"),In(this.doc,A)&&ci(this,A,N,V)}),indentSelection:Vi(function(A){for(var N=this.doc.sel.ranges,V=-1,re=0;re<N.length;re++){var fe=N[re];if(fe.empty())fe.head.line>V&&(ci(this,fe.head.line,A,!0),V=fe.head.line,re==this.doc.sel.primIndex&&ls(this));else{var ge=fe.from(),Se=fe.to(),Je=Math.max(V,ge.line);V=Math.min(this.lastLine(),Se.line-(Se.ch?0:1))+1;for(var at=Je;at<V;++at)ci(this,at,A);var Dt=this.doc.sel.ranges;ge.ch==0&&N.length==Dt.length&&Dt[re].from().ch>0&&Rl(this.doc,re,new Ma(ge,Dt[re].to()),De)}}}),getTokenAt:function(A,N){return Ca(this,A,N)},getLineTokens:function(A,N){return Ca(this,Mt(A),N,!0)},getTokenTypeAt:function(A){A=An(this.doc,A);var N=nr(this,Lt(this.doc,A.line)),V=0,re=(N.length-1)/2,fe=A.ch,ge;if(fe==0)ge=N[2];else for(;;){var Se=V+re>>1;if((Se?N[Se*2-1]:0)>=fe)re=Se;else if(N[Se*2+1]<fe)V=Se+1;else{ge=N[Se*2+2];break}}var Je=ge?ge.indexOf("overlay "):-1;return Je<0?ge:Je==0?null:ge.slice(0,Je-1)},getModeAt:function(A){var N=this.doc.mode;return N.innerMode?t.innerMode(N,this.getTokenAt(A).state).mode:N},getHelper:function(A,N){return this.getHelpers(A,N)[0]},getHelpers:function(A,N){var V=[];if(!O.hasOwnProperty(N))return V;var re=O[N],fe=this.getModeAt(A);if(typeof fe[N]=="string")re[fe[N]]&&V.push(re[fe[N]]);else if(fe[N])for(var ge=0;ge<fe[N].length;ge++){var Se=re[fe[N][ge]];Se&&V.push(Se)}else fe.helperType&&re[fe.helperType]?V.push(re[fe.helperType]):re[fe.name]&&V.push(re[fe.name]);for(var Je=0;Je<re._global.length;Je++){var at=re._global[Je];at.pred(fe,this)&&ie(V,at.val)==-1&&V.push(at.val)}return V},getStateAfter:function(A,N){var V=this.doc;return A=wa(V,A==null?V.first+V.size-1:A),br(this,A+1,N).state},cursorCoords:function(A,N){var V,re=this.doc.sel.primary();return A==null?V=re.head:typeof A=="object"?V=An(this.doc,A):V=A?re.from():re.to(),pa(this,V,N||"page")},charCoords:function(A,N){return ri(this,An(this.doc,A),N||"page")},coordsChar:function(A,N){return A=la(this,A,N||"page"),ma(this,A.left,A.top)},lineAtHeight:function(A,N){return A=la(this,{top:A,left:0},N||"page").top,Un(this.doc,A+this.display.viewOffset)},heightAtLine:function(A,N,V){var re=!1,fe;if(typeof A=="number"){var ge=this.doc.first+this.doc.size-1;A<this.doc.first?A=this.doc.first:A>ge&&(A=ge,re=!0),fe=Lt(this.doc,A)}else fe=A;return ba(this,fe,{top:0,left:0},N||"page",V||re).top+(re?this.doc.height-Ji(fe):0)},defaultTextHeight:function(){return wi(this.display)},defaultCharWidth:function(){return Bi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(A,N,V,re,fe){var ge=this.display;A=pa(this,An(this.doc,A));var Se=A.bottom,Je=A.left;if(N.style.position="absolute",N.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(N),ge.sizer.appendChild(N),re=="over")Se=A.top;else if(re=="above"||re=="near"){var at=Math.max(ge.wrapper.clientHeight,this.doc.height),Dt=Math.max(ge.sizer.clientWidth,ge.lineSpace.clientWidth);(re=="above"||A.bottom+N.offsetHeight>at)&&A.top>N.offsetHeight?Se=A.top-N.offsetHeight:A.bottom+N.offsetHeight<=at&&(Se=A.bottom),Je+N.offsetWidth>Dt&&(Je=Dt-N.offsetWidth)}N.style.top=Se+"px",N.style.left=N.style.right="",fe=="right"?(Je=ge.sizer.clientWidth-N.offsetWidth,N.style.right="0px"):(fe=="left"?Je=0:fe=="middle"&&(Je=(ge.sizer.clientWidth-N.offsetWidth)/2),N.style.left=Je+"px"),V&&yl(this,{left:Je,top:Se,right:Je+N.offsetWidth,bottom:Se+N.offsetHeight})},triggerOnKeyDown:Vi(xn),triggerOnKeyPress:Vi(jt),triggerOnKeyUp:nn,triggerOnMouseDown:Vi(bn),execCommand:function(A){if(bt.hasOwnProperty(A))return bt[A].call(null,this)},triggerElectric:Vi(function(A){ki(this,A)}),findPosH:function(A,N,V,re){var fe=1;N<0&&(fe=-1,N=-N);for(var ge=An(this.doc,A),Se=0;Se<N&&!(ge=dr(this.doc,ge,fe,V,re),ge.hitSide);++Se);return ge},moveH:Vi(function(A,N){var V=this;this.extendSelectionsBy(function(re){return V.display.shift||V.doc.extend||re.empty()?dr(V.doc,re.head,A,N,V.options.rtlMoveVisually):A<0?re.from():re.to()},be)}),deleteH:Vi(function(A,N){var V=this.doc.sel,re=this.doc;V.somethingSelected()?re.replaceSelection("",null,"+delete"):Ke(this,function(fe){var ge=dr(re,fe.head,A,N,!1);return A<0?{from:ge,to:fe.head}:{from:fe.head,to:ge}})}),findPosV:function(A,N,V,re){var fe=1,ge=re;N<0&&(fe=-1,N=-N);for(var Se=An(this.doc,A),Je=0;Je<N;++Je){var at=pa(this,Se,"div");if(ge==null?ge=at.left:at.left=ge,Se=Nn(this,at,fe,V),Se.hitSide)break}return Se},moveV:Vi(function(A,N){var V=this,re=this.doc,fe=[],ge=!this.display.shift&&!re.extend&&re.sel.somethingSelected();if(re.extendSelectionsBy(function(Je){if(ge)return A<0?Je.from():Je.to();var at=pa(V,Je.head,"div");Je.goalColumn!=null&&(at.left=Je.goalColumn),fe.push(at.left);var Dt=Nn(V,at,A,N);return N=="page"&&Je==re.sel.primary()&&vs(V,ri(V,Dt,"div").top-at.top),Dt},be),fe.length)for(var Se=0;Se<re.sel.ranges.length;Se++)re.sel.ranges[Se].goalColumn=fe[Se]}),findWordAt:function(A){var N=this.doc,V=Lt(N,A.line).text,re=A.ch,fe=A.ch;if(V){var ge=this.getHelper(A,"wordChars");(A.sticky=="before"||fe==V.length)&&re?--re:++fe;for(var Se=V.charAt(re),Je=X(Se,ge)?function(at){return X(at,ge)}:/\s/.test(Se)?function(at){return/\s/.test(at)}:function(at){return!/\s/.test(at)&&!X(at)};re>0&&Je(V.charAt(re-1));)--re;for(;fe<V.length&&Je(V.charAt(fe));)++fe}return new Ma(Mt(A.line,re),Mt(A.line,fe))},toggleOverwrite:function(A){if(A!=null&&A==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?G(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),We(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==ee()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Vi(function(A,N){us(this,A,N)}),getScrollInfo:function(){var A=this.display.scroller;return{left:A.scrollLeft,top:A.scrollTop,height:A.scrollHeight-xt(this)-this.display.barHeight,width:A.scrollWidth-xt(this)-this.display.barWidth,clientHeight:Oe(this),clientWidth:it(this)}},scrollIntoView:Vi(function(A,N){A==null?(A={from:this.doc.sel.primary().head,to:null},N==null&&(N=this.options.cursorScrollMargin)):typeof A=="number"?A={from:Mt(A,0),to:null}:A.from==null&&(A={from:A,to:null}),A.to||(A.to=A.from),A.margin=N||0,A.from.line!=null?El(this,A):bs(this,A.from,A.to,A.margin)}),setSize:Vi(function(A,N){var V=this,re=function(ge){return typeof ge=="number"||/^\d+$/.test(String(ge))?ge+"px":ge};A!=null&&(this.display.wrapper.style.width=re(A)),N!=null&&(this.display.wrapper.style.height=re(N)),this.options.lineWrapping&&zr(this);var fe=this.display.viewFrom;this.doc.iter(fe,this.display.viewTo,function(ge){if(ge.widgets){for(var Se=0;Se<ge.widgets.length;Se++)if(ge.widgets[Se].noHScroll){Ga(V,fe,"widget");break}}++fe}),this.curOp.forceUpdate=!0,We(this,"refresh",this)}),operation:function(A){return so(this,A)},startOperation:function(){return Yo(this)},endOperation:function(){return es(this)},refresh:Vi(function(){var A=this.display.cachedTextHeight;za(this),this.curOp.forceUpdate=!0,Qr(this),us(this,this.doc.scrollLeft,this.doc.scrollTop),Ns(this.display),(A==null||Math.abs(A-wi(this.display))>.5||this.options.lineWrapping)&&fo(this),We(this,"refresh",this)}),swapDoc:Vi(function(A){var N=this.doc;return N.cm=null,this.state.selectingText&&this.state.selectingText(),Kl(this,A),Qr(this),this.display.input.reset(),us(this,A.scrollLeft,A.scrollTop),this.curOp.forceScroll=!0,Za(this,"swapDoc",this,N),N}),phrase:function(A){var N=this.options.phrases;return N&&Object.prototype.hasOwnProperty.call(N,A)?N[A]:A},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Fe(t),t.registerHelper=function(A,N,V){O.hasOwnProperty(A)||(O[A]=t[A]={_global:[]}),O[A][N]=V},t.registerGlobalHelper=function(A,N,V,re){t.registerHelper(A,N,re),O[A]._global.push({pred:V,val:re})}}function dr(t,p,O,A,N){var V=p,re=O,fe=Lt(t,p.line),ge=N&&t.direction=="rtl"?-O:O;function Se(){var Fn=p.line+ge;return Fn<t.first||Fn>=t.first+t.size?!1:(p=new Mt(Fn,p.ch,p.sticky),fe=Lt(t,Fn))}function Je(Fn){var kn;if(A=="codepoint"){var Zn=fe.text.charCodeAt(p.ch+(A>0?0:-1));isNaN(Zn)?kn=null:kn=new Mt(p.line,Math.max(0,Math.min(fe.text.length,p.ch+O*(Zn>=55296&&Zn<56320?2:1))),-O)}else N?kn=Ve(t.cm,fe,p,O):kn=Et(fe,p,O);if(kn==null)if(!Fn&&Se())p=tt(N,t.cm,fe,p.line,ge);else return!1;else p=kn;return!0}if(A=="char"||A=="codepoint")Je();else if(A=="column")Je(!0);else if(A=="word"||A=="group")for(var at=null,Dt=A=="group",Ot=t.cm&&t.cm.getHelper(p,"wordChars"),Gt=!0;!(O<0&&!Je(!Gt));Gt=!1){var en=fe.text.charAt(p.ch)||`
`,yn=X(en,Ot)?"w":Dt&&en==`
`?"n":!Dt||/\s/.test(en)?null:"p";if(Dt&&!Gt&&!yn&&(yn="s"),at&&at!=yn){O<0&&(O=1,Je(),p.sticky="after");break}if(yn&&(at=yn),O>0&&!Je(!Gt))break}var Sn=gl(t,p,V,re,!0);return ea(V,Sn)&&(Sn.hitSide=!0),Sn}function Nn(t,p,O,A){var N=t.doc,V=p.left,re;if(A=="page"){var fe=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ge=Math.max(fe-.5*wi(t.display),3);re=(O>0?p.bottom:p.top)+O*ge}else A=="line"&&(re=O>0?p.bottom+3:p.top-3);for(var Se;!(Se=ma(t,V,re),!Se.outside);){if(O<0?re<=0:re>=N.height){Se.hitSide=!0;break}re+=O*5}return Se}var un=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Z,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};un.prototype.init=function(t){var p=this,O=this,A=O.cm,N=O.div=t.lineDiv;ga(N,A.options.spellcheck,A.options.autocorrect,A.options.autocapitalize);function V(fe){for(var ge=fe.target;ge;ge=ge.parentNode){if(ge==N)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ge.className))break}return!1}Xe(N,"paste",function(fe){if(!V(fe)||dt(A,fe)||xi(fe,A))return;d<=11&&setTimeout(Ai(A,function(){return p.updateFromDOM()}),20)}),Xe(N,"compositionstart",function(fe){p.composing={data:fe.data,done:!1}}),Xe(N,"compositionupdate",function(fe){p.composing||(p.composing={data:fe.data,done:!1})}),Xe(N,"compositionend",function(fe){p.composing&&(fe.data!=p.composing.data&&p.readFromDOMSoon(),p.composing.done=!0)}),Xe(N,"touchstart",function(){return O.forceCompositionEnd()}),Xe(N,"input",function(){p.composing||p.readFromDOMSoon()});function re(fe){if(!V(fe)||dt(A,fe))return;if(A.somethingSelected())Na({lineWise:!1,text:A.getSelections()}),fe.type=="cut"&&A.replaceSelection("",null,"cut");else if(A.options.lineWiseCopyCut){var ge=Li(A);Na({lineWise:!0,text:ge.text}),fe.type=="cut"&&A.operation(function(){A.setSelections(ge.ranges,0,De),A.replaceSelection("",null,"cut")})}else return;if(fe.clipboardData){fe.clipboardData.clearData();var Se=ra.text.join(`
`);if(fe.clipboardData.setData("Text",Se),fe.clipboardData.getData("Text")==Se){fe.preventDefault();return}}var Je=po(),at=Je.firstChild;A.display.lineSpace.insertBefore(Je,A.display.lineSpace.firstChild),at.value=ra.text.join(`
`);var Dt=document.activeElement;K(at),setTimeout(function(){A.display.lineSpace.removeChild(Je),Dt.focus(),Dt==N&&O.showPrimarySelection()},50)}Xe(N,"copy",re),Xe(N,"cut",re)},un.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},un.prototype.prepareSelection=function(){var t=No(this.cm,!1);return t.focus=document.activeElement==this.div,t},un.prototype.showSelection=function(t,p){if(!t||!this.cm.display.view.length)return;(t.focus||p)&&this.showPrimarySelection(),this.showMultipleSelections(t)},un.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},un.prototype.showPrimarySelection=function(){var t=this.getSelection(),p=this.cm,O=p.doc.sel.primary(),A=O.from(),N=O.to();if(p.display.viewTo==p.display.viewFrom||A.line>=p.display.viewTo||N.line<p.display.viewFrom){t.removeAllRanges();return}var V=xr(p,t.anchorNode,t.anchorOffset),re=xr(p,t.focusNode,t.focusOffset);if(V&&!V.bad&&re&&!re.bad&&on(jr(V,re),A)==0&&on(vr(V,re),N)==0)return;var fe=p.display.view,ge=A.line>=p.display.viewFrom&&kr(p,A)||{node:fe[0].measure.map[2],offset:0},Se=N.line<p.display.viewTo&&kr(p,N);if(!Se){var Je=fe[fe.length-1].measure,at=Je.maps?Je.maps[Je.maps.length-1]:Je.map;Se={node:at[at.length-1],offset:at[at.length-2]-at[at.length-3]}}if(!ge||!Se){t.removeAllRanges();return}var Dt=t.rangeCount&&t.getRangeAt(0),Ot;try{Ot=z(ge.node,ge.offset,Se.offset,Se.node)}catch(Gt){}Ot&&(!I&&p.state.focused?(t.collapse(ge.node,ge.offset),Ot.collapsed||(t.removeAllRanges(),t.addRange(Ot))):(t.removeAllRanges(),t.addRange(Ot)),Dt&&t.anchorNode==null?t.addRange(Dt):I&&this.startGracePeriod()),this.rememberSelection()},un.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},un.prototype.showMultipleSelections=function(t){P(this.cm.display.cursorDiv,t.cursors),P(this.cm.display.selectionDiv,t.selection)},un.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},un.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var p=t.getRangeAt(0).commonAncestorContainer;return H(this.div,p)},un.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},un.prototype.blur=function(){this.div.blur()},un.prototype.getField=function(){return this.div},un.prototype.supportsTouch=function(){return!0},un.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():so(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function p(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,p))}this.polling.set(this.cm.options.pollInterval,p)},un.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},un.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var t=this.getSelection(),p=this.cm;if(_&&r&&this.cm.display.gutterSpecs.length&&va(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var O=xr(p,t.anchorNode,t.anchorOffset),A=xr(p,t.focusNode,t.focusOffset);O&&A&&so(p,function(){ho(p.doc,Uo(O,A),De),(O.bad||A.bad)&&(p.curOp.selectionChanged=!0)})},un.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,p=t.display,O=t.doc.sel.primary(),A=O.from(),N=O.to();if(A.ch==0&&A.line>t.firstLine()&&(A=Mt(A.line-1,Lt(t.doc,A.line-1).length)),N.ch==Lt(t.doc,N.line).text.length&&N.line<t.lastLine()&&(N=Mt(N.line+1,0)),A.line<p.viewFrom||N.line>p.viewTo-1)return!1;var V,re,fe;A.line==p.viewFrom||(V=$a(t,A.line))==0?(re=ln(p.view[0].line),fe=p.view[0].node):(re=ln(p.view[V].line),fe=p.view[V-1].node.nextSibling);var ge=$a(t,N.line),Se,Je;if(ge==p.view.length-1?(Se=p.viewTo-1,Je=p.lineDiv.lastChild):(Se=ln(p.view[ge+1].line)-1,Je=p.view[ge+1].node.previousSibling),!fe)return!1;for(var at=t.doc.splitLines(Hn(t,fe,Je,re,Se)),Dt=Tn(t.doc,Mt(re,0),Mt(Se,Lt(t.doc,Se).text.length));at.length>1&&Dt.length>1;)if(ne(at)==ne(Dt))at.pop(),Dt.pop(),Se--;else if(at[0]==Dt[0])at.shift(),Dt.shift(),re++;else break;for(var Ot=0,Gt=0,en=at[0],yn=Dt[0],Sn=Math.min(en.length,yn.length);Ot<Sn&&en.charCodeAt(Ot)==yn.charCodeAt(Ot);)++Ot;for(var Fn=ne(at),kn=ne(Dt),Zn=Math.min(Fn.length-(at.length==1?Ot:0),kn.length-(Dt.length==1?Ot:0));Gt<Zn&&Fn.charCodeAt(Fn.length-Gt-1)==kn.charCodeAt(kn.length-Gt-1);)++Gt;if(at.length==1&&Dt.length==1&&re==A.line)for(;Ot&&Ot>A.ch&&Fn.charCodeAt(Fn.length-Gt-1)==kn.charCodeAt(kn.length-Gt-1);)Ot--,Gt++;at[at.length-1]=Fn.slice(0,Fn.length-Gt).replace(/^\u200b+/,""),at[0]=at[0].slice(Ot).replace(/\u200b+$/,"");var Or=Mt(re,Ot),cr=Mt(Se,Dt.length?ne(Dt).length-Gt:0);if(at.length>1||at[0]||on(Or,cr))return Us(t.doc,at,Or,cr,"+input"),!0},un.prototype.ensurePolled=function(){this.forceCompositionEnd()},un.prototype.reset=function(){this.forceCompositionEnd()},un.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},un.prototype.readFromDOMSoon=function(){var t=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80)},un.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&so(this.cm,function(){return za(t.cm)})},un.prototype.setUneditable=function(t){t.contentEditable="false"},un.prototype.onKeyPress=function(t){if(t.charCode==0||this.composing)return;t.preventDefault(),this.cm.isReadOnly()||Ai(this.cm,Ri)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0)},un.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},un.prototype.onContextMenu=function(){},un.prototype.resetPosition=function(){},un.prototype.needsContentAttribute=!0;function kr(t,p){var O=St(t,p.line);if(!O||O.hidden)return null;var A=Lt(t.doc,p.line),N=Ie(O,A,p.line),V=ft(A,t.doc.direction),re="left";if(V){var fe=me(V,p.ch);re=fe%2?"right":"left"}var ge=_n(N.map,p.ch,re);return ge.offset=ge.collapse=="right"?ge.end:ge.start,ge}function va(t){for(var p=t;p;p=p.parentNode)if(/CodeMirror-gutter-wrapper/.test(p.className))return!0;return!1}function Jn(t,p){return p&&(t.bad=!0),t}function Hn(t,p,O,A,N){var V="",re=!1,fe=t.doc.lineSeparator(),ge=!1;function Se(Ot){return function(Gt){return Gt.id==Ot}}function Je(){re&&(V+=fe,ge&&(V+=fe),re=ge=!1)}function at(Ot){Ot&&(Je(),V+=Ot)}function Dt(Ot){if(Ot.nodeType==1){var Gt=Ot.getAttribute("cm-text");if(Gt){at(Gt);return}var en=Ot.getAttribute("cm-marker"),yn;if(en){var Sn=t.findMarks(Mt(A,0),Mt(N+1,0),Se(+en));Sn.length&&(yn=Sn[0].find(0))&&at(Tn(t.doc,yn.from,yn.to).join(fe));return}if(Ot.getAttribute("contenteditable")=="false")return;var Fn=/^(pre|div|p|li|table|br)$/i.test(Ot.nodeName);if(!/^br$/i.test(Ot.nodeName)&&Ot.textContent.length==0)return;Fn&&Je();for(var kn=0;kn<Ot.childNodes.length;kn++)Dt(Ot.childNodes[kn]);/^(pre|p)$/i.test(Ot.nodeName)&&(ge=!0),Fn&&(re=!0)}else Ot.nodeType==3&&at(Ot.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Dt(p),p==O);)p=p.nextSibling,ge=!1;return V}function xr(t,p,O){var A;if(p==t.display.lineDiv){if(A=t.display.lineDiv.childNodes[O],!A)return Jn(t.clipPos(Mt(t.display.viewTo-1)),!0);p=null,O=0}else for(A=p;;A=A.parentNode){if(!A||A==t.display.lineDiv)return null;if(A.parentNode&&A.parentNode==t.display.lineDiv)break}for(var N=0;N<t.display.view.length;N++){var V=t.display.view[N];if(V.node==A)return aa(V,p,O)}}function aa(t,p,O){var A=t.text.firstChild,N=!1;if(!p||!H(A,p))return Jn(Mt(ln(t.line),0),!0);if(p==A&&(N=!0,p=A.childNodes[O],O=0,!p)){var V=t.rest?ne(t.rest):t.line;return Jn(Mt(ln(V),V.text.length),N)}var re=p.nodeType==3?p:null,fe=p;for(!re&&p.childNodes.length==1&&p.firstChild.nodeType==3&&(re=p.firstChild,O&&(O=re.nodeValue.length));fe.parentNode!=A;)fe=fe.parentNode;var ge=t.measure,Se=ge.maps;function Je(yn,Sn,Fn){for(var kn=-1;kn<(Se?Se.length:0);kn++)for(var Zn=kn<0?ge.map:Se[kn],Or=0;Or<Zn.length;Or+=3){var cr=Zn[Or+2];if(cr==yn||cr==Sn){var $r=ln(kn<0?t.line:t.rest[kn]),Ua=Zn[Or]+Fn;return(Fn<0||cr!=yn)&&(Ua=Zn[Or+(Fn?1:0)]),Mt($r,Ua)}}}var at=Je(re,fe,O);if(at)return Jn(at,N);for(var Dt=fe.nextSibling,Ot=re?re.nodeValue.length-O:0;Dt;Dt=Dt.nextSibling){if(at=Je(Dt,Dt.firstChild,0),at)return Jn(Mt(at.line,at.ch-Ot),N);Ot+=Dt.textContent.length}for(var Gt=fe.previousSibling,en=O;Gt;Gt=Gt.previousSibling){if(at=Je(Gt,Gt.firstChild,-1),at)return Jn(Mt(at.line,at.ch+en),N);en+=Gt.textContent.length}}var Pr=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Z,this.hasSelection=!1,this.composing=null};Pr.prototype.init=function(t){var p=this,O=this,A=this.cm;this.createField(t);var N=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),i&&(N.style.width="0px"),Xe(N,"input",function(){f&&d>=9&&p.hasSelection&&(p.hasSelection=null),O.poll()}),Xe(N,"paste",function(re){if(dt(A,re)||xi(re,A))return;A.state.pasteIncoming=+new Date,O.fastPoll()});function V(re){if(dt(A,re))return;if(A.somethingSelected())Na({lineWise:!1,text:A.getSelections()});else if(A.options.lineWiseCopyCut){var fe=Li(A);Na({lineWise:!0,text:fe.text}),re.type=="cut"?A.setSelections(fe.ranges,null,De):(O.prevInput="",N.value=fe.text.join(`
`),K(N))}else return;re.type=="cut"&&(A.state.cutIncoming=+new Date)}Xe(N,"cut",V),Xe(N,"copy",V),Xe(t.scroller,"paste",function(re){if(Fi(t,re)||dt(A,re))return;if(!N.dispatchEvent){A.state.pasteIncoming=+new Date,O.focus();return}var fe=new Event("paste");fe.clipboardData=re.clipboardData,N.dispatchEvent(fe)}),Xe(t.lineSpace,"selectstart",function(re){Fi(t,re)||ce(re)}),Xe(N,"compositionstart",function(){var re=A.getCursor("from");O.composing&&O.composing.range.clear(),O.composing={start:re,range:A.markText(re,A.getCursor("to"),{className:"CodeMirror-composing"})}}),Xe(N,"compositionend",function(){O.composing&&(O.poll(),O.composing.range.clear(),O.composing=null)})},Pr.prototype.createField=function(t){this.wrapper=po(),this.textarea=this.wrapper.firstChild},Pr.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Pr.prototype.prepareSelection=function(){var t=this.cm,p=t.display,O=t.doc,A=No(t);if(t.options.moveInputWithCursor){var N=pa(t,O.sel.primary().head,"div"),V=p.wrapper.getBoundingClientRect(),re=p.lineDiv.getBoundingClientRect();A.teTop=Math.max(0,Math.min(p.wrapper.clientHeight-10,N.top+re.top-V.top)),A.teLeft=Math.max(0,Math.min(p.wrapper.clientWidth-10,N.left+re.left-V.left))}return A},Pr.prototype.showSelection=function(t){var p=this.cm,O=p.display;P(O.cursorDiv,t.cursors),P(O.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Pr.prototype.reset=function(t){if(this.contextMenuPending||this.composing)return;var p=this.cm;if(p.somethingSelected()){this.prevInput="";var O=p.getSelection();this.textarea.value=O,p.state.focused&&K(this.textarea),f&&d>=9&&(this.hasSelection=O)}else t||(this.prevInput=this.textarea.value="",f&&d>=9&&(this.hasSelection=null))},Pr.prototype.getField=function(){return this.textarea},Pr.prototype.supportsTouch=function(){return!1},Pr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!b||ee()!=this.textarea))try{this.textarea.focus()}catch(t){}},Pr.prototype.blur=function(){this.textarea.blur()},Pr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Pr.prototype.receivedFocus=function(){this.slowPoll()},Pr.prototype.slowPoll=function(){var t=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},Pr.prototype.fastPoll=function(){var t=!1,p=this;p.pollingFast=!0;function O(){var A=p.poll();!A&&!t?(t=!0,p.polling.set(60,O)):(p.pollingFast=!1,p.slowPoll())}p.polling.set(20,O)},Pr.prototype.poll=function(){var t=this,p=this.cm,O=this.textarea,A=this.prevInput;if(this.contextMenuPending||!p.state.focused||ut(O)&&!A&&!this.composing||p.isReadOnly()||p.options.disableInput||p.state.keySeq)return!1;var N=O.value;if(N==A&&!p.somethingSelected())return!1;if(f&&d>=9&&this.hasSelection===N||y&&/[\uf700-\uf7ff]/.test(N))return p.display.input.reset(),!1;if(p.doc.sel==p.display.selForContextMenu){var V=N.charCodeAt(0);if(V==8203&&!A&&(A="\u200B"),V==8666)return this.reset(),this.cm.execCommand("undo")}for(var re=0,fe=Math.min(A.length,N.length);re<fe&&A.charCodeAt(re)==N.charCodeAt(re);)++re;return so(p,function(){Ri(p,N.slice(re),A.length-re,null,t.composing?"*compose":null),N.length>1e3||N.indexOf(`
`)>-1?O.value=t.prevInput="":t.prevInput=N,t.composing&&(t.composing.range.clear(),t.composing.range=p.markText(t.composing.start,p.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Pr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Pr.prototype.onKeyPress=function(){f&&d>=9&&(this.hasSelection=null),this.fastPoll()},Pr.prototype.onContextMenu=function(t){var p=this,O=p.cm,A=O.display,N=p.textarea;p.contextMenuPending&&p.contextMenuPending();var V=Ki(O,t),re=A.scroller.scrollTop;if(!V||l)return;var fe=O.options.resetSelectionOnContextMenu;fe&&O.doc.sel.contains(V)==-1&&Ai(O,ho)(O.doc,Uo(V),De);var ge=N.style.cssText,Se=p.wrapper.style.cssText,Je=p.wrapper.offsetParent.getBoundingClientRect();p.wrapper.style.cssText="position: static",N.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(t.clientY-Je.top-5)+"px; left: "+(t.clientX-Je.left-5)+`px;
z-index: 1000; background: `+(f?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var at;u&&(at=window.scrollY),A.input.focus(),u&&window.scrollTo(null,at),A.input.reset(),O.somethingSelected()||(N.value=p.prevInput=" "),p.contextMenuPending=Ot,A.selForContextMenu=O.doc.sel,clearTimeout(A.detectingSelectAll);function Dt(){if(N.selectionStart!=null){var en=O.somethingSelected(),yn="\u200B"+(en?N.value:"");N.value="\u21DA",N.value=yn,p.prevInput=en?"":"\u200B",N.selectionStart=1,N.selectionEnd=yn.length,A.selForContextMenu=O.doc.sel}}function Ot(){if(p.contextMenuPending!=Ot)return;if(p.contextMenuPending=!1,p.wrapper.style.cssText=Se,N.style.cssText=ge,f&&d<9&&A.scrollbars.setScrollTop(A.scroller.scrollTop=re),N.selectionStart!=null){(!f||f&&d<9)&&Dt();var en=0,yn=function(){A.selForContextMenu==O.doc.sel&&N.selectionStart==0&&N.selectionEnd>0&&p.prevInput=="\u200B"?Ai(O,Il)(O):en++<10?A.detectingSelectAll=setTimeout(yn,500):(A.selForContextMenu=null,A.input.reset())};A.detectingSelectAll=setTimeout(yn,200)}}if(f&&d>=9&&Dt(),M){_e(t);var Gt=function(){Ae(window,"mouseup",Gt),setTimeout(Ot,20)};Xe(window,"mouseup",Gt)}else setTimeout(Ot,50)},Pr.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},Pr.prototype.setUneditable=function(){},Pr.prototype.needsContentAttribute=!1;function Fa(t,p){if(p=p?D(p):{},p.value=t.value,!p.tabindex&&t.tabIndex&&(p.tabindex=t.tabIndex),!p.placeholder&&t.placeholder&&(p.placeholder=t.placeholder),p.autofocus==null){var O=ee();p.autofocus=O==t||t.getAttribute("autofocus")!=null&&O==document.body}function A(){t.value=fe.getValue()}var N;if(t.form&&(Xe(t.form,"submit",A),!p.leaveSubmitMethodAlone)){var V=t.form;N=V.submit;try{var re=V.submit=function(){A(),V.submit=N,V.submit(),V.submit=re}}catch(ge){}}p.finishInit=function(ge){ge.save=A,ge.getTextArea=function(){return t},ge.toTextArea=function(){ge.toTextArea=isNaN,A(),t.parentNode.removeChild(ge.getWrapperElement()),t.style.display="",t.form&&(Ae(t.form,"submit",A),!p.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=N))}},t.style.display="none";var fe=lr(function(ge){return t.parentNode.insertBefore(ge,t.nextSibling)},p);return fe}function ko(t){t.off=Ae,t.on=Xe,t.wheelEventPixels=Ws,t.Doc=yo,t.splitLines=st,t.countColumn=j,t.findColumn=ye,t.isWordChar=Y,t.Pass=Ee,t.signal=We,t.Line=Co,t.changeEnd=Bo,t.scrollbarModel=Hs,t.Pos=Mt,t.cmpPos=on,t.modes=At,t.mimeModes=$e,t.resolveMode=pt,t.getMode=wt,t.modeExtensions=Ct,t.extendMode=Kt,t.copyState=Vt,t.startState=cn,t.innerMode=dn,t.commands=bt,t.keyMap=ms,t.keyName=ae,t.isModifierKey=cu,t.lookupKey=rl,t.normalizeKeyMap=Du,t.StringStream=qt,t.SharedTextMarker=$s,t.TextMarker=Zo,t.LineWidget=Js,t.e_preventDefault=ce,t.e_stopPropagation=we,t.e_stop=_e,t.addClass=G,t.contains=H,t.rmClass=T,t.keyNames=ps}Vn(lr),mo(lr);var lo="iter insert remove copy getEditor constructor".split(" ");for(var Pi in yo.prototype)yo.prototype.hasOwnProperty(Pi)&&ie(lo,Pi)<0&&(lr.prototype[Pi]=function(t){return function(){return t.apply(this.doc,arguments)}}(yo.prototype[Pi]));return Fe(yo),lr.inputStyles={textarea:Pr,contenteditable:un},lr.defineMode=function(t){!lr.defaults.mode&&t!="null"&&(lr.defaults.mode=t),ht.apply(this,arguments)},lr.defineMIME=Rt,lr.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),lr.defineMIME("text/plain","null"),lr.defineExtension=function(t,p){lr.prototype[t]=p},lr.defineDocExtension=function(t,p){yo.prototype[t]=p},lr.fromTextArea=Fa,ko(lr),lr.version="5.58.2",lr})},W6BS:function(S,F){S.exports="data:image/png;base64,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"},WYAk:function(S,F,v){(function(w,h){S.exports=F=h(v("Ib8C"))})(this,function(w){(function(){var h=w,I=h.lib,m=I.Base,g=h.enc,a=g.Utf8,f=h.algo,d=f.HMAC=m.extend({init:function(u,o){u=this._hasher=new u.init,typeof o=="string"&&(o=a.parse(o));var r=u.blockSize,l=r*4;o.sigBytes>l&&(o=u.finalize(o)),o.clamp();for(var n=this._oKey=o.clone(),s=this._iKey=o.clone(),e=n.words,i=s.words,_=0;_<r;_++)e[_]^=1549556828,i[_]^=909522486;n.sigBytes=s.sigBytes=l,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var o=this._hasher,r=o.finalize(u);o.reset();var l=o.finalize(this._oKey.clone().concat(r));return l}})})()})},WaYH:function(S,F,v){"use strict";var w=v("rePB"),h=v("Ff2n"),I=v("VTBJ"),m=v("1OyB"),g=v("vuIU"),a=v("JX7q"),f=v("Ji7U"),d=v("LK+K"),u=v("cDcd"),o=v("TSYQ"),r=v.n(o),l=v("sboe"),n=v("OZM5"),s=function(M){var k=M.prefixCls,T=M.level,R=M.isStart,P=M.isEnd;if(!T)return null;for(var B="".concat(k,"-indent-unit"),W=[],z=0;z<T;z+=1){var H;W.push(u.createElement("span",{key:z,className:r()(B,(H={},Object(w.a)(H,"".concat(B,"-start"),R[z+1]),Object(w.a)(H,"".concat(B,"-end"),P[z+1]),Object(w.a)(H,"".concat(B,"-end-first-level"),!z&&P[0]),H))}))}return u.createElement("span",{"aria-hidden":"true",className:"".concat(k,"-indent")},W)},e=s,i=v("815F"),_="open",b="close",y="---",E=function(x){Object(f.a)(k,x);var M=Object(d.a)(k);function k(){var T;return Object(m.a)(this,k),T=M.apply(this,arguments),T.state={dragNodeHighlight:!1},T.onSelectorClick=function(R){var P=T.props.context.onNodeClick;P(R,Object(i.b)(T.props)),T.isSelectable()?T.onSelect(R):T.onCheck(R)},T.onSelectorDoubleClick=function(R){var P=T.props.context.onNodeDoubleClick;P(R,Object(i.b)(T.props))},T.onSelect=function(R){if(T.isDisabled())return;var P=T.props.context.onNodeSelect;R.preventDefault(),P(R,Object(i.b)(T.props))},T.onCheck=function(R){if(T.isDisabled())return;var P=T.props,B=P.disableCheckbox,W=P.checked,z=T.props.context.onNodeCheck;if(!T.isCheckable()||B)return;R.preventDefault();var H=!W;z(R,Object(i.b)(T.props),H)},T.onMouseEnter=function(R){var P=T.props.context.onNodeMouseEnter;P(R,Object(i.b)(T.props))},T.onMouseLeave=function(R){var P=T.props.context.onNodeMouseLeave;P(R,Object(i.b)(T.props))},T.onContextMenu=function(R){var P=T.props.context.onNodeContextMenu;P(R,Object(i.b)(T.props))},T.onDragStart=function(R){var P=T.props.context.onNodeDragStart;R.stopPropagation(),T.setState({dragNodeHighlight:!0}),P(R,Object(a.a)(T));try{R.dataTransfer.setData("text/plain","")}catch(B){}},T.onDragEnter=function(R){var P=T.props.context.onNodeDragEnter;R.preventDefault(),R.stopPropagation(),P(R,Object(a.a)(T))},T.onDragOver=function(R){var P=T.props.context.onNodeDragOver;R.preventDefault(),R.stopPropagation(),P(R,Object(a.a)(T))},T.onDragLeave=function(R){var P=T.props.context.onNodeDragLeave;R.stopPropagation(),P(R,Object(a.a)(T))},T.onDragEnd=function(R){var P=T.props.context.onNodeDragEnd;R.stopPropagation(),T.setState({dragNodeHighlight:!1}),P(R,Object(a.a)(T))},T.onDrop=function(R){var P=T.props.context.onNodeDrop;R.preventDefault(),R.stopPropagation(),T.setState({dragNodeHighlight:!1}),P(R,Object(a.a)(T))},T.onExpand=function(R){var P=T.props.context.onNodeExpand;P(R,Object(i.b)(T.props))},T.setSelectHandle=function(R){T.selectHandle=R},T.getNodeState=function(){var R=T.props.expanded;return T.isLeaf()?null:R?_:b},T.hasChildren=function(){var R=T.props.eventKey,P=T.props.context.keyEntities,B=P[R]||{},W=B.children;return!!(W||[]).length},T.isLeaf=function(){var R=T.props,P=R.isLeaf,B=R.loaded,W=T.props.context.loadData,z=T.hasChildren();return P===!1?!1:P||!W&&!z||W&&B&&!z},T.isDisabled=function(){var R=T.props.disabled,P=T.props.context.disabled;return!!(P||R)},T.isCheckable=function(){var R=T.props.checkable,P=T.props.context.checkable;return!P||R===!1?!1:P},T.syncLoadData=function(R){var P=R.expanded,B=R.loading,W=R.loaded,z=T.props.context,H=z.loadData,ee=z.onNodeLoad;if(B)return;H&&P&&!T.isLeaf()&&(!T.hasChildren()&&!W&&ee(Object(i.b)(T.props)))},T.renderSwitcher=function(){var R=T.props,P=R.expanded,B=R.switcherIcon,W=T.props.context,z=W.prefixCls,H=W.switcherIcon,ee=B||H;if(T.isLeaf())return u.createElement("span",{className:r()("".concat(z,"-switcher"),"".concat(z,"-switcher-noop"))},typeof ee=="function"?ee(Object(I.a)(Object(I.a)({},T.props),{},{isLeaf:!0})):ee);var G=r()("".concat(z,"-switcher"),"".concat(z,"-switcher_").concat(P?_:b));return u.createElement("span",{onClick:T.onExpand,className:G},typeof ee=="function"?ee(Object(I.a)(Object(I.a)({},T.props),{},{isLeaf:!1})):ee)},T.renderCheckbox=function(){var R=T.props,P=R.checked,B=R.halfChecked,W=R.disableCheckbox,z=T.props.context.prefixCls,H=T.isDisabled(),ee=T.isCheckable();if(!ee)return null;var G=typeof ee!="boolean"?ee:null;return u.createElement("span",{className:r()("".concat(z,"-checkbox"),P&&"".concat(z,"-checkbox-checked"),!P&&B&&"".concat(z,"-checkbox-indeterminate"),(H||W)&&"".concat(z,"-checkbox-disabled")),onClick:T.onCheck},G)},T.renderIcon=function(){var R=T.props.loading,P=T.props.context.prefixCls;return u.createElement("span",{className:r()("".concat(P,"-iconEle"),"".concat(P,"-icon__").concat(T.getNodeState()||"docu"),R&&"".concat(P,"-icon_loading"))})},T.renderSelector=function(){var R=T.state.dragNodeHighlight,P=T.props,B=P.title,W=P.selected,z=P.icon,H=P.loading,ee=P.data,G=T.props.context,U=G.prefixCls,K=G.showIcon,L=G.icon,D=G.draggable,j=G.loadData,Z=G.titleRender,ie=T.isDisabled(),pe="".concat(U,"-node-content-wrapper"),Ee;if(K){var De=z||L;Ee=De?u.createElement("span",{className:r()("".concat(U,"-iconEle"),"".concat(U,"-icon__customize"))},typeof De=="function"?De(T.props):De):T.renderIcon()}else j&&H&&(Ee=T.renderIcon());var q;typeof B=="function"?q=B(ee):Z?q=Z(ee):q=B;var be=u.createElement("span",{className:"".concat(U,"-title")},q);return u.createElement("span",{ref:T.setSelectHandle,title:typeof B=="string"?B:"",className:r()("".concat(pe),"".concat(pe,"-").concat(T.getNodeState()||"normal"),!ie&&(W||R)&&"".concat(U,"-node-selected"),!ie&&D&&"draggable"),draggable:!ie&&D||void 0,"aria-grabbed":!ie&&D||void 0,onMouseEnter:T.onMouseEnter,onMouseLeave:T.onMouseLeave,onContextMenu:T.onContextMenu,onClick:T.onSelectorClick,onDoubleClick:T.onSelectorDoubleClick,onDragStart:D?T.onDragStart:void 0},Ee,be)},T}return Object(g.a)(k,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var R=this.props.selectable,P=this.props.context.selectable;return typeof R=="boolean"?R:P}},{key:"render",value:function(){var R,P=this.props,B=P.eventKey,W=P.className,z=P.style,H=P.dragOver,ee=P.dragOverGapTop,G=P.dragOverGapBottom,U=P.isLeaf,K=P.isStart,L=P.isEnd,D=P.expanded,j=P.selected,Z=P.checked,ie=P.halfChecked,pe=P.loading,Ee=P.domRef,De=P.active,q=P.onMouseMove,be=Object(h.a)(P,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),ye=this.props.context,le=ye.prefixCls,ue=ye.filterTreeNode,ne=ye.draggable,xe=ye.keyEntities,$=this.isDisabled(),oe=Object(n.f)(be),Le=xe[B]||{},te=Le.level,Y=L[L.length-1];return u.createElement("div",Object.assign({ref:Ee,className:r()(W,"".concat(le,"-treenode"),(R={},Object(w.a)(R,"".concat(le,"-treenode-disabled"),$),Object(w.a)(R,"".concat(le,"-treenode-switcher-").concat(D?"open":"close"),!U),Object(w.a)(R,"".concat(le,"-treenode-checkbox-checked"),Z),Object(w.a)(R,"".concat(le,"-treenode-checkbox-indeterminate"),ie),Object(w.a)(R,"".concat(le,"-treenode-selected"),j),Object(w.a)(R,"".concat(le,"-treenode-loading"),pe),Object(w.a)(R,"".concat(le,"-treenode-active"),De),Object(w.a)(R,"".concat(le,"-treenode-leaf-last"),Y),Object(w.a)(R,"drag-over",!$&&H),Object(w.a)(R,"drag-over-gap-top",!$&&ee),Object(w.a)(R,"drag-over-gap-bottom",!$&&G),Object(w.a)(R,"filter-node",ue&&ue(Object(i.b)(this.props))),R)),style:z,onDragEnter:ne?this.onDragEnter:void 0,onDragOver:ne?this.onDragOver:void 0,onDragLeave:ne?this.onDragLeave:void 0,onDrop:ne?this.onDrop:void 0,onDragEnd:ne?this.onDragEnd:void 0,onMouseMove:q},oe),u.createElement(e,{prefixCls:le,level:te,isStart:K,isEnd:L}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),k}(u.Component),c=function(M){return u.createElement(l.a.Consumer,null,function(k){return u.createElement(E,Object.assign({},M,{context:k}))})};c.displayName="TreeNode",c.defaultProps={title:y},c.isTreeNode=1;var C=F.a=c},X9zl:function(S,F,v){},XIdC:function(S,F,v){"use strict";var w=v("rePB"),h=v("ODXe"),I=v("Ff2n"),m=v("cDcd"),g=v.n(m),a=v("TSYQ"),f=v.n(a),d=v("6cGi"),u=v("4IlW"),o=m.forwardRef(function(r,l){var n,s=r.prefixCls,e=s===void 0?"rc-switch":s,i=r.className,_=r.checked,b=r.defaultChecked,y=r.disabled,E=r.loadingIcon,c=r.checkedChildren,C=r.unCheckedChildren,x=r.onClick,M=r.onChange,k=r.onKeyDown,T=Object(I.a)(r,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),R=Object(d.a)(!1,{value:_,defaultValue:b}),P=Object(h.a)(R,2),B=P[0],W=P[1];function z(U,K){var L=B;return y||(L=U,W(L),M==null||M(L,K)),L}function H(U){U.which===u.a.LEFT?z(!1,U):U.which===u.a.RIGHT&&z(!0,U),k==null||k(U)}function ee(U){var K=z(!B,U);x==null||x(K,U)}var G=f()(e,i,(n={},Object(w.a)(n,"".concat(e,"-checked"),B),Object(w.a)(n,"".concat(e,"-disabled"),y),n));return m.createElement("button",Object.assign({},T,{type:"button",role:"switch","aria-checked":B,disabled:y,className:G,ref:l,onKeyDown:H,onClick:ee}),E,m.createElement("span",{className:"".concat(e,"-inner")},B?c:C))});o.displayName="Switch",F.a=o},XZCF:function(S,F,v){},Xsq0:function(S,F,v){S.exports=v.p+"static/mainbanner.0a951716.jpg"},Y1PL:function(S,F,v){"use strict";var w=v("wx14"),h=v("1OyB"),I=v("vuIU"),m=v("Ji7U"),g=v("LK+K"),a=v("cDcd"),f=v("VTBJ"),d=v("rePB"),u=v("Zm9Q"),o=v("Kwbf"),r=v("c+Xe"),l=v("m+aA"),n=v("bdgK"),s=new Map;function e(De){De.forEach(function(q){var be,ye=q.target;(be=s.get(ye))===null||be===void 0||be.forEach(function(le){return le(ye)})})}var i=new n.default(e),_=null,b=null;function y(De,q){s.has(De)||(s.set(De,new Set),i.observe(De)),s.get(De).add(q)}function E(De,q){s.has(De)&&(s.get(De).delete(q),s.get(De).size||(i.unobserve(De),s.delete(De)))}var c=function(De){Object(m.a)(be,De);var q=Object(g.a)(be);function be(){return Object(h.a)(this,be),q.apply(this,arguments)}return Object(I.a)(be,[{key:"render",value:function(){return this.props.children}}]),be}(a.Component),C=a.createContext(null);function x(De){var q=De.children,be=De.onBatchResize,ye=a.useRef(0),le=a.useRef([]),ue=a.useContext(C),ne=a.useCallback(function(xe,$,oe){ye.current+=1;var Le=ye.current;le.current.push({size:xe,element:$,data:oe}),Promise.resolve().then(function(){Le===ye.current&&(be==null||be(le.current),le.current=[])}),ue==null||ue(xe,$,oe)},[be,ue]);return a.createElement(C.Provider,{value:ne},q)}function M(De){var q=De.children,be=De.disabled,ye=a.useRef(null),le=a.useRef(null),ue=a.useContext(C),ne=a.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),xe=a.isValidElement(q)&&Object(r.c)(q),$=xe?q.ref:null,oe=a.useMemo(function(){return Object(r.a)($,ye)},[$,ye]),Le=a.useRef(De);Le.current=De;var te=a.useCallback(function(Y){var X=Le.current,J=X.onResize,ve=X.data,he=Y.getBoundingClientRect(),Ce=he.width,Pe=he.height,de=Y.offsetWidth,ke=Y.offsetHeight,me=Math.floor(Ce),Be=Math.floor(Pe);if(ne.current.width!==me||ne.current.height!==Be||ne.current.offsetWidth!==de||ne.current.offsetHeight!==ke){var ft={width:me,height:Be,offsetWidth:de,offsetHeight:ke};ne.current=ft;var vt=de===Math.round(Ce)?Ce:de,Xe=ke===Math.round(Pe)?Pe:ke,Bt=Object(f.a)(Object(f.a)({},ft),{},{offsetWidth:vt,offsetHeight:Xe});ue==null||ue(Bt,Y,ve),J&&Promise.resolve().then(function(){J(Bt,Y)})}},[]);return a.useEffect(function(){var Y=Object(l.a)(ye.current)||Object(l.a)(le.current);return Y&&!be&&y(Y,te),function(){return E(Y,te)}},[ye.current,be]),a.createElement(c,{ref:le},xe?a.cloneElement(q,{ref:oe}):q)}var k="rc-observer-key";function T(De){var q=De.children,be=Object(u.a)(q);return be.map(function(ye,le){var ue=(ye==null?void 0:ye.key)||"".concat(k,"-").concat(le);return a.createElement(M,Object(w.a)({},De,{key:ue}),ye)})}T.Collection=x;var R=T,P=v("bT9E"),B=v("TSYQ"),W=v.n(B),z=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,H=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],ee={},G;function U(De){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,be=De.getAttribute("id")||De.getAttribute("data-reactid")||De.getAttribute("name");if(q&&ee[be])return ee[be];var ye=window.getComputedStyle(De),le=ye.getPropertyValue("box-sizing")||ye.getPropertyValue("-moz-box-sizing")||ye.getPropertyValue("-webkit-box-sizing"),ue=parseFloat(ye.getPropertyValue("padding-bottom"))+parseFloat(ye.getPropertyValue("padding-top")),ne=parseFloat(ye.getPropertyValue("border-bottom-width"))+parseFloat(ye.getPropertyValue("border-top-width")),xe=H.map(function(oe){return"".concat(oe,":").concat(ye.getPropertyValue(oe))}).join(";"),$={sizingStyle:xe,paddingSize:ue,borderSize:ne,boxSizing:le};return q&&be&&(ee[be]=$),$}function K(De){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;G||(G=document.createElement("textarea"),G.setAttribute("tab-index","-1"),G.setAttribute("aria-hidden","true"),document.body.appendChild(G)),De.getAttribute("wrap")?G.setAttribute("wrap",De.getAttribute("wrap")):G.removeAttribute("wrap");var le=U(De,q),ue=le.paddingSize,ne=le.borderSize,xe=le.boxSizing,$=le.sizingStyle;G.setAttribute("style","".concat($,";").concat(z)),G.value=De.value||De.placeholder||"";var oe=Number.MIN_SAFE_INTEGER,Le=Number.MAX_SAFE_INTEGER,te=G.scrollHeight,Y;if(xe==="border-box"?te+=ne:xe==="content-box"&&(te-=ue),be!==null||ye!==null){G.value=" ";var X=G.scrollHeight-ue;be!==null&&(oe=X*be,xe==="border-box"&&(oe=oe+ue+ne),te=Math.max(oe,te)),ye!==null&&(Le=X*ye,xe==="border-box"&&(Le=Le+ue+ne),Y=te>Le?"":"hidden",te=Math.min(Le,te))}return{height:te,minHeight:oe,maxHeight:Le,overflowY:Y,resize:"none"}}var L=v("Gytx"),D=v.n(L),j;(function(De){De[De.NONE=0]="NONE",De[De.RESIZING=1]="RESIZING",De[De.RESIZED=2]="RESIZED"})(j||(j={}));var Z=function(De){Object(m.a)(be,De);var q=Object(g.a)(be);function be(ye){var le;return Object(h.a)(this,be),le=q.call(this,ye),le.nextFrameActionId=void 0,le.resizeFrameId=void 0,le.textArea=void 0,le.saveTextArea=function(ue){le.textArea=ue},le.handleResize=function(ue){var ne=le.state.resizeStatus,xe=le.props,$=xe.autoSize,oe=xe.onResize;if(ne!==j.NONE)return;typeof oe=="function"&&oe(ue),$&&le.resizeOnNextFrame()},le.resizeOnNextFrame=function(){cancelAnimationFrame(le.nextFrameActionId),le.nextFrameActionId=requestAnimationFrame(le.resizeTextarea)},le.resizeTextarea=function(){var ue=le.props.autoSize;if(!ue||!le.textArea)return;var ne=ue.minRows,xe=ue.maxRows,$=K(le.textArea,!1,ne,xe);le.setState({textareaStyles:$,resizeStatus:j.RESIZING},function(){cancelAnimationFrame(le.resizeFrameId),le.resizeFrameId=requestAnimationFrame(function(){le.setState({resizeStatus:j.RESIZED},function(){le.resizeFrameId=requestAnimationFrame(function(){le.setState({resizeStatus:j.NONE}),le.fixFirefoxAutoScroll()})})})})},le.renderTextArea=function(){var ue=le.props,ne=ue.prefixCls,xe=ne===void 0?"rc-textarea":ne,$=ue.autoSize,oe=ue.onResize,Le=ue.className,te=ue.disabled,Y=le.state,X=Y.textareaStyles,J=Y.resizeStatus,ve=Object(P.a)(le.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),he=W()(xe,Le,Object(d.a)({},"".concat(xe,"-disabled"),te));"value"in ve&&(ve.value=ve.value||"");var Ce=Object(f.a)(Object(f.a)(Object(f.a)({},le.props.style),X),J===j.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return a.createElement(R,{onResize:le.handleResize,disabled:!($||oe)},a.createElement("textarea",Object(w.a)({},ve,{className:he,style:Ce,ref:le.saveTextArea})))},le.state={textareaStyles:{},resizeStatus:j.NONE},le}return Object(I.a)(be,[{key:"componentDidUpdate",value:function(le){(le.value!==this.props.value||!D()(le.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var le=this.textArea.selectionStart,ue=this.textArea.selectionEnd;this.textArea.setSelectionRange(le,ue)}}catch(ne){}}},{key:"render",value:function(){return this.renderTextArea()}}]),be}(a.Component),ie=Z,pe=function(De){Object(m.a)(be,De);var q=Object(g.a)(be);function be(ye){var le;Object(h.a)(this,be),le=q.call(this,ye),le.resizableTextArea=void 0,le.focus=function(){le.resizableTextArea.textArea.focus()},le.saveTextArea=function(ne){le.resizableTextArea=ne},le.handleChange=function(ne){var xe=le.props.onChange;le.setValue(ne.target.value,function(){le.resizableTextArea.resizeTextarea()}),xe&&xe(ne)},le.handleKeyDown=function(ne){var xe=le.props,$=xe.onPressEnter,oe=xe.onKeyDown;ne.keyCode===13&&$&&$(ne),oe&&oe(ne)};var ue=typeof ye.value=="undefined"||ye.value===null?ye.defaultValue:ye.value;return le.state={value:ue},le}return Object(I.a)(be,[{key:"setValue",value:function(le,ue){"value"in this.props||this.setState({value:le},ue)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return a.createElement(ie,Object(w.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(le){return"value"in le?{value:le.value}:null}}]),be}(a.Component),Ee=F.a=pe},YJ9k:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;function w(g,a){if(!(g instanceof a))throw new TypeError("Cannot call a class as a function")}function h(g,a){for(var f=0;f<a.length;f++){var d=a[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(g,d.key,d)}}function I(g,a,f){return a&&h(g.prototype,a),f&&h(g,f),g}var m=function(){function g(){w(this,g),this._listeners=new Map}return I(g,[{key:"addEventListener",value:function(f,d){this._listeners.has(f)||this._listeners.set(f,new Set),this._listeners.get(f).add(d)}},{key:"removeEventListener",value:function(f,d){this._listeners.has(f)&&this._listeners.get(f).delete(d)}},{key:"dispatchEvent",value:function(f){var d=this;return this._listeners.has(f.type)?(this._listeners.get(f.type).forEach(function(u){return u.call(d,f)}),!f.defaultPrevented):!0}}]),g}();F.default=m},Ypxr:function(S,F,v){},Yr8L:function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAAA8CAMAAADygAyiAAAAe1BMVEUAAAC/j1C3l1i1lVq2llmzl1i2llm0llm1lVi0llm1lVi0llm1lVm1lVi0lli1lVi0lli1llm1lVm0lli1lli1lVm0lVm1lli1llnJs4fSvpnYx6fdzrLh1Lzl2sTo38zs49Pu59nx6+D07+X28uv59vD7+fX9/Pr///9SRDJsAAAAGHRSTlMAECAwP0BQX2BwgI+Qn6Cwv8DP0N/g7/D8rFP8AAAB+klEQVRYw+3X2VbCMBAG4EliEQqkQGgTEBFRlvd/QksLMV0yyVQvvPC/4XCg38kyzQLQSTJfGTSLqYBwxMJEZM5CTlKYqKwDjRKRTinhbVqb6EjMGRtCOAJlFGiGQBTHLDuPP08XVUaMBBUwqp+bPtcTZQc4TXr+vv84Xcucjq+dnyB1i4F/T3gPtKmUOp8bL2QKDtJg0OHq5OiHymIoUOjkQtetH1q7E9UD1cDBfFSfb37IREG7excPfwBqDvrPoW096C8YpILQ7jFpe2T6l+57GoAOBoEyd+UItQgryDEwHQ21++ZAulwv0/Bgb/aXvia5j5ZvP7PDnQrv9B/r19YHqWoB59qygYJsQspC+r7qinwQtHxAud2amLxD+RBIuhuTkPoGZRRodoO07OyUIuEwaUMXBEqAJ779tjNtnxXwbj8bk4ZFt6D3xgq5c3/KUChtl+LFcZo9G6MQb/ft5ezZRfLAsUb2bGznal/bGUKDeprkSR48aaVxUBI++y1/ehKxndNhRzGIOY7q33HCko50QpISEB2GjLhkQImvCvQIiOGyj0kZ0MNnrQVTTYYwtTWxlhoPVpp1ngL8Q53yfrrFXibn1VdOZhLPhWsliM3x30BoVYDct2iDVVBuVzDs4kaDcj+UkSDphyYkiHnXSEWsIyZ7e6e8c/YFAVX9WNqVSc8AAAAASUVORK5CYII="},ZBwS:function(S,F){var v=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},w=-1,h=1,I=0;v.Diff=function(m,g){return[m,g]},v.prototype.diff_main=function(m,g,a,f){typeof f=="undefined"&&(this.Diff_Timeout<=0?f=Number.MAX_VALUE:f=new Date().getTime()+this.Diff_Timeout*1e3);var d=f;if(m==null||g==null)throw new Error("Null input. (diff_main)");if(m==g)return m?[new v.Diff(I,m)]:[];typeof a=="undefined"&&(a=!0);var u=a,o=this.diff_commonPrefix(m,g),r=m.substring(0,o);m=m.substring(o),g=g.substring(o),o=this.diff_commonSuffix(m,g);var l=m.substring(m.length-o);m=m.substring(0,m.length-o),g=g.substring(0,g.length-o);var n=this.diff_compute_(m,g,u,d);return r&&n.unshift(new v.Diff(I,r)),l&&n.push(new v.Diff(I,l)),this.diff_cleanupMerge(n),n},v.prototype.diff_compute_=function(m,g,a,f){var d;if(!m)return[new v.Diff(h,g)];if(!g)return[new v.Diff(w,m)];var u=m.length>g.length?m:g,o=m.length>g.length?g:m,r=u.indexOf(o);if(r!=-1)return d=[new v.Diff(h,u.substring(0,r)),new v.Diff(I,o),new v.Diff(h,u.substring(r+o.length))],m.length>g.length&&(d[0][0]=d[2][0]=w),d;if(o.length==1)return[new v.Diff(w,m),new v.Diff(h,g)];var l=this.diff_halfMatch_(m,g);if(l){var n=l[0],s=l[1],e=l[2],i=l[3],_=l[4],b=this.diff_main(n,e,a,f),y=this.diff_main(s,i,a,f);return b.concat([new v.Diff(I,_)],y)}return a&&m.length>100&&g.length>100?this.diff_lineMode_(m,g,f):this.diff_bisect_(m,g,f)},v.prototype.diff_lineMode_=function(m,g,a){var f=this.diff_linesToChars_(m,g);m=f.chars1,g=f.chars2;var d=f.lineArray,u=this.diff_main(m,g,!1,a);this.diff_charsToLines_(u,d),this.diff_cleanupSemantic(u),u.push(new v.Diff(I,""));for(var o=0,r=0,l=0,n="",s="";o<u.length;){switch(u[o][0]){case h:l++,s+=u[o][1];break;case w:r++,n+=u[o][1];break;case I:if(r>=1&&l>=1){u.splice(o-r-l,r+l),o=o-r-l;for(var e=this.diff_main(n,s,!1,a),i=e.length-1;i>=0;i--)u.splice(o,0,e[i]);o=o+e.length}l=0,r=0,n="",s="";break}o++}return u.pop(),u},v.prototype.diff_bisect_=function(m,g,a){for(var f=m.length,d=g.length,u=Math.ceil((f+d)/2),o=u,r=2*u,l=new Array(r),n=new Array(r),s=0;s<r;s++)l[s]=-1,n[s]=-1;l[o+1]=0,n[o+1]=0;for(var e=f-d,i=e%2!=0,_=0,b=0,y=0,E=0,c=0;c<u&&!(new Date().getTime()>a);c++){for(var C=-c+_;C<=c-b;C+=2){var x=o+C,M;C==-c||C!=c&&l[x-1]<l[x+1]?M=l[x+1]:M=l[x-1]+1;for(var k=M-C;M<f&&k<d&&m.charAt(M)==g.charAt(k);)M++,k++;if(l[x]=M,M>f)b+=2;else if(k>d)_+=2;else if(i){var T=o+e-C;if(T>=0&&T<r&&n[T]!=-1){var R=f-n[T];if(M>=R)return this.diff_bisectSplit_(m,g,M,k,a)}}}for(var P=-c+y;P<=c-E;P+=2){var T=o+P,R;P==-c||P!=c&&n[T-1]<n[T+1]?R=n[T+1]:R=n[T-1]+1;for(var B=R-P;R<f&&B<d&&m.charAt(f-R-1)==g.charAt(d-B-1);)R++,B++;if(n[T]=R,R>f)E+=2;else if(B>d)y+=2;else if(!i){var x=o+e-P;if(x>=0&&x<r&&l[x]!=-1){var M=l[x],k=o+M-x;if(R=f-R,M>=R)return this.diff_bisectSplit_(m,g,M,k,a)}}}}return[new v.Diff(w,m),new v.Diff(h,g)]},v.prototype.diff_bisectSplit_=function(m,g,a,f,d){var u=m.substring(0,a),o=g.substring(0,f),r=m.substring(a),l=g.substring(f),n=this.diff_main(u,o,!1,d),s=this.diff_main(r,l,!1,d);return n.concat(s)},v.prototype.diff_linesToChars_=function(m,g){var a=[],f={};a[0]="";function d(l){for(var n="",s=0,e=-1,i=a.length;e<l.length-1;){e=l.indexOf(`
`,s),e==-1&&(e=l.length-1);var _=l.substring(s,e+1);(f.hasOwnProperty?f.hasOwnProperty(_):f[_]!==void 0)?n+=String.fromCharCode(f[_]):(i==u&&(_=l.substring(s),e=l.length),n+=String.fromCharCode(i),f[_]=i,a[i++]=_),s=e+1}return n}var u=4e4,o=d(m);u=65535;var r=d(g);return{chars1:o,chars2:r,lineArray:a}},v.prototype.diff_charsToLines_=function(m,g){for(var a=0;a<m.length;a++){for(var f=m[a][1],d=[],u=0;u<f.length;u++)d[u]=g[f.charCodeAt(u)];m[a][1]=d.join("")}},v.prototype.diff_commonPrefix=function(m,g){if(!m||!g||m.charAt(0)!=g.charAt(0))return 0;for(var a=0,f=Math.min(m.length,g.length),d=f,u=0;a<d;)m.substring(u,d)==g.substring(u,d)?(a=d,u=a):f=d,d=Math.floor((f-a)/2+a);return d},v.prototype.diff_commonSuffix=function(m,g){if(!m||!g||m.charAt(m.length-1)!=g.charAt(g.length-1))return 0;for(var a=0,f=Math.min(m.length,g.length),d=f,u=0;a<d;)m.substring(m.length-d,m.length-u)==g.substring(g.length-d,g.length-u)?(a=d,u=a):f=d,d=Math.floor((f-a)/2+a);return d},v.prototype.diff_commonOverlap_=function(m,g){var a=m.length,f=g.length;if(a==0||f==0)return 0;a>f?m=m.substring(a-f):a<f&&(g=g.substring(0,a));var d=Math.min(a,f);if(m==g)return d;for(var u=0,o=1;;){var r=m.substring(d-o),l=g.indexOf(r);if(l==-1)return u;o+=l,(l==0||m.substring(d-o)==g.substring(0,o))&&(u=o,o++)}},v.prototype.diff_halfMatch_=function(m,g){if(this.Diff_Timeout<=0)return null;var a=m.length>g.length?m:g,f=m.length>g.length?g:m;if(a.length<4||f.length*2<a.length)return null;var d=this;function u(b,y,E){for(var c=b.substring(E,E+Math.floor(b.length/4)),C=-1,x="",M,k,T,R;(C=y.indexOf(c,C+1))!=-1;){var P=d.diff_commonPrefix(b.substring(E),y.substring(C)),B=d.diff_commonSuffix(b.substring(0,E),y.substring(0,C));x.length<B+P&&(x=y.substring(C-B,C)+y.substring(C,C+P),M=b.substring(0,E-B),k=b.substring(E+P),T=y.substring(0,C-B),R=y.substring(C+P))}return x.length*2>=b.length?[M,k,T,R,x]:null}var o=u(a,f,Math.ceil(a.length/4)),r=u(a,f,Math.ceil(a.length/2)),l;if(!o&&!r)return null;r?o?l=o[4].length>r[4].length?o:r:l=r:l=o;var n,s,e,i;m.length>g.length?(n=l[0],s=l[1],e=l[2],i=l[3]):(e=l[0],i=l[1],n=l[2],s=l[3]);var _=l[4];return[n,s,e,i,_]},v.prototype.diff_cleanupSemantic=function(m){for(var g=!1,a=[],f=0,d=null,u=0,o=0,r=0,l=0,n=0;u<m.length;)m[u][0]==I?(a[f++]=u,o=l,r=n,l=0,n=0,d=m[u][1]):(m[u][0]==h?l+=m[u][1].length:n+=m[u][1].length,d&&d.length<=Math.max(o,r)&&d.length<=Math.max(l,n)&&(m.splice(a[f-1],0,new v.Diff(w,d)),m[a[f-1]+1][0]=h,f--,f--,u=f>0?a[f-1]:-1,o=0,r=0,l=0,n=0,d=null,g=!0)),u++;for(g&&this.diff_cleanupMerge(m),this.diff_cleanupSemanticLossless(m),u=1;u<m.length;){if(m[u-1][0]==w&&m[u][0]==h){var s=m[u-1][1],e=m[u][1],i=this.diff_commonOverlap_(s,e),_=this.diff_commonOverlap_(e,s);i>=_?(i>=s.length/2||i>=e.length/2)&&(m.splice(u,0,new v.Diff(I,e.substring(0,i))),m[u-1][1]=s.substring(0,s.length-i),m[u+1][1]=e.substring(i),u++):(_>=s.length/2||_>=e.length/2)&&(m.splice(u,0,new v.Diff(I,s.substring(0,_))),m[u-1][0]=h,m[u-1][1]=e.substring(0,e.length-_),m[u+1][0]=w,m[u+1][1]=s.substring(_),u++),u++}u++}},v.prototype.diff_cleanupSemanticLossless=function(m){function g(_,b){if(!_||!b)return 6;var y=_.charAt(_.length-1),E=b.charAt(0),c=y.match(v.nonAlphaNumericRegex_),C=E.match(v.nonAlphaNumericRegex_),x=c&&y.match(v.whitespaceRegex_),M=C&&E.match(v.whitespaceRegex_),k=x&&y.match(v.linebreakRegex_),T=M&&E.match(v.linebreakRegex_),R=k&&_.match(v.blanklineEndRegex_),P=T&&b.match(v.blanklineStartRegex_);return R||P?5:k||T?4:c&&!x&&M?3:x||M?2:c||C?1:0}for(var a=1;a<m.length-1;){if(m[a-1][0]==I&&m[a+1][0]==I){var f=m[a-1][1],d=m[a][1],u=m[a+1][1],o=this.diff_commonSuffix(f,d);if(o){var r=d.substring(d.length-o);f=f.substring(0,f.length-o),d=r+d.substring(0,d.length-o),u=r+u}for(var l=f,n=d,s=u,e=g(f,d)+g(d,u);d.charAt(0)===u.charAt(0);){f+=d.charAt(0),d=d.substring(1)+u.charAt(0),u=u.substring(1);var i=g(f,d)+g(d,u);i>=e&&(e=i,l=f,n=d,s=u)}m[a-1][1]!=l&&(l?m[a-1][1]=l:(m.splice(a-1,1),a--),m[a][1]=n,s?m[a+1][1]=s:(m.splice(a+1,1),a--))}a++}},v.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,v.whitespaceRegex_=/\s/,v.linebreakRegex_=/[\r\n]/,v.blanklineEndRegex_=/\n\r?\n$/,v.blanklineStartRegex_=/^\r?\n\r?\n/,v.prototype.diff_cleanupEfficiency=function(m){for(var g=!1,a=[],f=0,d=null,u=0,o=!1,r=!1,l=!1,n=!1;u<m.length;)m[u][0]==I?(m[u][1].length<this.Diff_EditCost&&(l||n)?(a[f++]=u,o=l,r=n,d=m[u][1]):(f=0,d=null),l=n=!1):(m[u][0]==w?n=!0:l=!0,d&&(o&&r&&l&&n||d.length<this.Diff_EditCost/2&&o+r+l+n==3)&&(m.splice(a[f-1],0,new v.Diff(w,d)),m[a[f-1]+1][0]=h,f--,d=null,o&&r?(l=n=!0,f=0):(f--,u=f>0?a[f-1]:-1,l=n=!1),g=!0)),u++;g&&this.diff_cleanupMerge(m)},v.prototype.diff_cleanupMerge=function(m){m.push(new v.Diff(I,""));for(var g=0,a=0,f=0,d="",u="",o;g<m.length;)switch(m[g][0]){case h:f++,u+=m[g][1],g++;break;case w:a++,d+=m[g][1],g++;break;case I:a+f>1?(a!==0&&f!==0&&(o=this.diff_commonPrefix(u,d),o!==0&&(g-a-f>0&&m[g-a-f-1][0]==I?m[g-a-f-1][1]+=u.substring(0,o):(m.splice(0,0,new v.Diff(I,u.substring(0,o))),g++),u=u.substring(o),d=d.substring(o)),o=this.diff_commonSuffix(u,d),o!==0&&(m[g][1]=u.substring(u.length-o)+m[g][1],u=u.substring(0,u.length-o),d=d.substring(0,d.length-o))),g-=a+f,m.splice(g,a+f),d.length&&(m.splice(g,0,new v.Diff(w,d)),g++),u.length&&(m.splice(g,0,new v.Diff(h,u)),g++),g++):g!==0&&m[g-1][0]==I?(m[g-1][1]+=m[g][1],m.splice(g,1)):g++,f=0,a=0,d="",u="";break}m[m.length-1][1]===""&&m.pop();var r=!1;for(g=1;g<m.length-1;)m[g-1][0]==I&&m[g+1][0]==I&&(m[g][1].substring(m[g][1].length-m[g-1][1].length)==m[g-1][1]?(m[g][1]=m[g-1][1]+m[g][1].substring(0,m[g][1].length-m[g-1][1].length),m[g+1][1]=m[g-1][1]+m[g+1][1],m.splice(g-1,1),r=!0):m[g][1].substring(0,m[g+1][1].length)==m[g+1][1]&&(m[g-1][1]+=m[g+1][1],m[g][1]=m[g][1].substring(m[g+1][1].length)+m[g+1][1],m.splice(g+1,1),r=!0)),g++;r&&this.diff_cleanupMerge(m)},v.prototype.diff_xIndex=function(m,g){var a=0,f=0,d=0,u=0,o;for(o=0;o<m.length&&!(m[o][0]!==h&&(a+=m[o][1].length),m[o][0]!==w&&(f+=m[o][1].length),a>g);o++)d=a,u=f;return m.length!=o&&m[o][0]===w?u:u+(g-d)},v.prototype.diff_prettyHtml=function(m){for(var g=[],a=/&/g,f=/</g,d=/>/g,u=/\n/g,o=0;o<m.length;o++){var r=m[o][0],l=m[o][1],n=l.replace(a,"&amp;").replace(f,"&lt;").replace(d,"&gt;").replace(u,"&para;<br>");switch(r){case h:g[o]='<ins style="background:#e6ffe6;">'+n+"</ins>";break;case w:g[o]='<del style="background:#ffe6e6;">'+n+"</del>";break;case I:g[o]="<span>"+n+"</span>";break}}return g.join("")},v.prototype.diff_text1=function(m){for(var g=[],a=0;a<m.length;a++)m[a][0]!==h&&(g[a]=m[a][1]);return g.join("")},v.prototype.diff_text2=function(m){for(var g=[],a=0;a<m.length;a++)m[a][0]!==w&&(g[a]=m[a][1]);return g.join("")},v.prototype.diff_levenshtein=function(m){for(var g=0,a=0,f=0,d=0;d<m.length;d++){var u=m[d][0],o=m[d][1];switch(u){case h:a+=o.length;break;case w:f+=o.length;break;case I:g+=Math.max(a,f),a=0,f=0;break}}return g+=Math.max(a,f),g},v.prototype.diff_toDelta=function(m){for(var g=[],a=0;a<m.length;a++)switch(m[a][0]){case h:g[a]="+"+encodeURI(m[a][1]);break;case w:g[a]="-"+m[a][1].length;break;case I:g[a]="="+m[a][1].length;break}return g.join(" ").replace(/%20/g," ")},v.prototype.diff_fromDelta=function(m,g){for(var a=[],f=0,d=0,u=g.split(/\t/g),o=0;o<u.length;o++){var r=u[o].substring(1);switch(u[o].charAt(0)){case"+":try{a[f++]=new v.Diff(h,decodeURI(r))}catch(s){throw new Error("Illegal escape in diff_fromDelta: "+r)}break;case"-":case"=":var l=parseInt(r,10);if(isNaN(l)||l<0)throw new Error("Invalid number in diff_fromDelta: "+r);var n=m.substring(d,d+=l);u[o].charAt(0)=="="?a[f++]=new v.Diff(I,n):a[f++]=new v.Diff(w,n);break;default:if(u[o])throw new Error("Invalid diff operation in diff_fromDelta: "+u[o])}}if(d!=m.length)throw new Error("Delta length ("+d+") does not equal source text length ("+m.length+").");return a},v.prototype.match_main=function(m,g,a){if(m==null||g==null||a==null)throw new Error("Null input. (match_main)");return a=Math.max(0,Math.min(a,m.length)),m==g?0:m.length?m.substring(a,a+g.length)==g?a:this.match_bitap_(m,g,a):-1},v.prototype.match_bitap_=function(m,g,a){if(g.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var f=this.match_alphabet_(g),d=this;function u(M,k){var T=M/g.length,R=Math.abs(a-k);return d.Match_Distance?T+R/d.Match_Distance:R?1:T}var o=this.Match_Threshold,r=m.indexOf(g,a);r!=-1&&(o=Math.min(u(0,r),o),r=m.lastIndexOf(g,a+g.length),r!=-1&&(o=Math.min(u(0,r),o)));var l=1<<g.length-1;r=-1;for(var n,s,e=g.length+m.length,i,_=0;_<g.length;_++){for(n=0,s=e;n<s;)u(_,a+s)<=o?n=s:e=s,s=Math.floor((e-n)/2+n);e=s;var b=Math.max(1,a-s+1),y=Math.min(a+s,m.length)+g.length,E=Array(y+2);E[y+1]=(1<<_)-1;for(var c=y;c>=b;c--){var C=f[m.charAt(c-1)];if(_===0?E[c]=(E[c+1]<<1|1)&C:E[c]=(E[c+1]<<1|1)&C|((i[c+1]|i[c])<<1|1)|i[c+1],E[c]&l){var x=u(_,c-1);if(x<=o)if(o=x,r=c-1,r>a)b=Math.max(1,2*a-r);else break}}if(u(_+1,a)>o)break;i=E}return r},v.prototype.match_alphabet_=function(m){for(var g={},a=0;a<m.length;a++)g[m.charAt(a)]=0;for(var a=0;a<m.length;a++)g[m.charAt(a)]|=1<<m.length-a-1;return g},v.prototype.patch_addContext_=function(m,g){if(g.length==0)return;if(m.start2===null)throw Error("patch not initialized");for(var a=g.substring(m.start2,m.start2+m.length1),f=0;g.indexOf(a)!=g.lastIndexOf(a)&&a.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)f+=this.Patch_Margin,a=g.substring(m.start2-f,m.start2+m.length1+f);f+=this.Patch_Margin;var d=g.substring(m.start2-f,m.start2);d&&m.diffs.unshift(new v.Diff(I,d));var u=g.substring(m.start2+m.length1,m.start2+m.length1+f);u&&m.diffs.push(new v.Diff(I,u)),m.start1-=d.length,m.start2-=d.length,m.length1+=d.length+u.length,m.length2+=d.length+u.length},v.prototype.patch_make=function(m,g,a){var f,d;if(typeof m=="string"&&typeof g=="string"&&typeof a=="undefined")f=m,d=this.diff_main(f,g,!0),d.length>2&&(this.diff_cleanupSemantic(d),this.diff_cleanupEfficiency(d));else if(m&&typeof m=="object"&&typeof g=="undefined"&&typeof a=="undefined")d=m,f=this.diff_text1(d);else if(typeof m=="string"&&g&&typeof g=="object"&&typeof a=="undefined")f=m,d=g;else if(typeof m=="string"&&typeof g=="string"&&a&&typeof a=="object")f=m,d=a;else throw new Error("Unknown call format to patch_make.");if(d.length===0)return[];for(var u=[],o=new v.patch_obj,r=0,l=0,n=0,s=f,e=f,i=0;i<d.length;i++){var _=d[i][0],b=d[i][1];!r&&_!==I&&(o.start1=l,o.start2=n);switch(_){case h:o.diffs[r++]=d[i],o.length2+=b.length,e=e.substring(0,n)+b+e.substring(n);break;case w:o.length1+=b.length,o.diffs[r++]=d[i],e=e.substring(0,n)+e.substring(n+b.length);break;case I:b.length<=2*this.Patch_Margin&&r&&d.length!=i+1?(o.diffs[r++]=d[i],o.length1+=b.length,o.length2+=b.length):b.length>=2*this.Patch_Margin&&(r&&(this.patch_addContext_(o,s),u.push(o),o=new v.patch_obj,r=0,s=e,l=n));break}_!==h&&(l+=b.length),_!==w&&(n+=b.length)}return r&&(this.patch_addContext_(o,s),u.push(o)),u},v.prototype.patch_deepCopy=function(m){for(var g=[],a=0;a<m.length;a++){var f=m[a],d=new v.patch_obj;d.diffs=[];for(var u=0;u<f.diffs.length;u++)d.diffs[u]=new v.Diff(f.diffs[u][0],f.diffs[u][1]);d.start1=f.start1,d.start2=f.start2,d.length1=f.length1,d.length2=f.length2,g[a]=d}return g},v.prototype.patch_apply=function(m,g){if(m.length==0)return[g,[]];m=this.patch_deepCopy(m);var a=this.patch_addPadding(m);g=a+g+a,this.patch_splitMax(m);for(var f=0,d=[],u=0;u<m.length;u++){var o=m[u].start2+f,r=this.diff_text1(m[u].diffs),l,n=-1;if(r.length>this.Match_MaxBits?(l=this.match_main(g,r.substring(0,this.Match_MaxBits),o),l!=-1&&(n=this.match_main(g,r.substring(r.length-this.Match_MaxBits),o+r.length-this.Match_MaxBits),(n==-1||l>=n)&&(l=-1))):l=this.match_main(g,r,o),l==-1)d[u]=!1,f-=m[u].length2-m[u].length1;else{d[u]=!0,f=l-o;var s;if(n==-1?s=g.substring(l,l+r.length):s=g.substring(l,n+this.Match_MaxBits),r==s)g=g.substring(0,l)+this.diff_text2(m[u].diffs)+g.substring(l+r.length);else{var e=this.diff_main(r,s,!1);if(r.length>this.Match_MaxBits&&this.diff_levenshtein(e)/r.length>this.Patch_DeleteThreshold)d[u]=!1;else{this.diff_cleanupSemanticLossless(e);for(var i=0,_,b=0;b<m[u].diffs.length;b++){var y=m[u].diffs[b];y[0]!==I&&(_=this.diff_xIndex(e,i)),y[0]===h?g=g.substring(0,l+_)+y[1]+g.substring(l+_):y[0]===w&&(g=g.substring(0,l+_)+g.substring(l+this.diff_xIndex(e,i+y[1].length))),y[0]!==w&&(i+=y[1].length)}}}}}return g=g.substring(a.length,g.length-a.length),[g,d]},v.prototype.patch_addPadding=function(m){for(var g=this.Patch_Margin,a="",f=1;f<=g;f++)a+=String.fromCharCode(f);for(var f=0;f<m.length;f++)m[f].start1+=g,m[f].start2+=g;var d=m[0],u=d.diffs;if(u.length==0||u[0][0]!=I)u.unshift(new v.Diff(I,a)),d.start1-=g,d.start2-=g,d.length1+=g,d.length2+=g;else if(g>u[0][1].length){var o=g-u[0][1].length;u[0][1]=a.substring(u[0][1].length)+u[0][1],d.start1-=o,d.start2-=o,d.length1+=o,d.length2+=o}if(d=m[m.length-1],u=d.diffs,u.length==0||u[u.length-1][0]!=I)u.push(new v.Diff(I,a)),d.length1+=g,d.length2+=g;else if(g>u[u.length-1][1].length){var o=g-u[u.length-1][1].length;u[u.length-1][1]+=a.substring(0,o),d.length1+=o,d.length2+=o}return a},v.prototype.patch_splitMax=function(m){for(var g=this.Match_MaxBits,a=0;a<m.length;a++){if(m[a].length1<=g)continue;var f=m[a];m.splice(a--,1);for(var d=f.start1,u=f.start2,o="";f.diffs.length!==0;){var r=new v.patch_obj,l=!0;for(r.start1=d-o.length,r.start2=u-o.length,o!==""&&(r.length1=r.length2=o.length,r.diffs.push(new v.Diff(I,o)));f.diffs.length!==0&&r.length1<g-this.Patch_Margin;){var n=f.diffs[0][0],s=f.diffs[0][1];n===h?(r.length2+=s.length,u+=s.length,r.diffs.push(f.diffs.shift()),l=!1):n===w&&r.diffs.length==1&&r.diffs[0][0]==I&&s.length>2*g?(r.length1+=s.length,d+=s.length,l=!1,r.diffs.push(new v.Diff(n,s)),f.diffs.shift()):(s=s.substring(0,g-r.length1-this.Patch_Margin),r.length1+=s.length,d+=s.length,n===I?(r.length2+=s.length,u+=s.length):l=!1,r.diffs.push(new v.Diff(n,s)),s==f.diffs[0][1]?f.diffs.shift():f.diffs[0][1]=f.diffs[0][1].substring(s.length))}o=this.diff_text2(r.diffs),o=o.substring(o.length-this.Patch_Margin);var e=this.diff_text1(f.diffs).substring(0,this.Patch_Margin);e!==""&&(r.length1+=e.length,r.length2+=e.length,r.diffs.length!==0&&r.diffs[r.diffs.length-1][0]===I?r.diffs[r.diffs.length-1][1]+=e:r.diffs.push(new v.Diff(I,e))),l||m.splice(++a,0,r)}}},v.prototype.patch_toText=function(m){for(var g=[],a=0;a<m.length;a++)g[a]=m[a];return g.join("")},v.prototype.patch_fromText=function(m){var g=[];if(!m)return g;for(var a=m.split(`
`),f=0,d=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;f<a.length;){var u=a[f].match(d);if(!u)throw new Error("Invalid patch string: "+a[f]);var o=new v.patch_obj;for(g.push(o),o.start1=parseInt(u[1],10),u[2]===""?(o.start1--,o.length1=1):u[2]=="0"?o.length1=0:(o.start1--,o.length1=parseInt(u[2],10)),o.start2=parseInt(u[3],10),u[4]===""?(o.start2--,o.length2=1):u[4]=="0"?o.length2=0:(o.start2--,o.length2=parseInt(u[4],10)),f++;f<a.length;){var r=a[f].charAt(0);try{var l=decodeURI(a[f].substring(1))}catch(n){throw new Error("Illegal escape in patch_fromText: "+l)}if(r=="-")o.diffs.push(new v.Diff(w,l));else if(r=="+")o.diffs.push(new v.Diff(h,l));else if(r==" ")o.diffs.push(new v.Diff(I,l));else{if(r=="@")break;if(!(r===""))throw new Error('Invalid patch mode "'+r+'" in: '+l)}f++}}return g},v.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},v.patch_obj.prototype.toString=function(){var m,g;this.length1===0?m=this.start1+",0":this.length1==1?m=this.start1+1:m=this.start1+1+","+this.length1,this.length2===0?g=this.start2+",0":this.length2==1?g=this.start2+1:g=this.start2+1+","+this.length2;for(var a=["@@ -"+m+" +"+g+` @@
`],f,d=0;d<this.diffs.length;d++){switch(this.diffs[d][0]){case h:f="+";break;case w:f="-";break;case I:f=" ";break}a[d+1]=f+encodeURI(this.diffs[d][1])+`
`}return a.join("").replace(/%20/g," ")},S.exports=v,S.exports.diff_match_patch=v,S.exports.DIFF_DELETE=w,S.exports.DIFF_INSERT=h,S.exports.DIFF_EQUAL=I},ZD9Y:function(S,F,v){"use strict";var w=v("BoS7"),h=v("Sdc0"),I=v("OaEy"),m=v("2fM7"),g=v("cDcd"),a=v.n(g),f=v("lOMy"),d=v.n(f),u=m.a.Option;F.a=function(o){var r=o.onFontSizeChange,l=o.cmFontSize,n=o.cmCodeMode,s=o.onCodeModeChange,e=o.onTabToSpace,i=o.className,_=i===void 0?"":i,b=o.tabToSpace,y=o.children;return a.a.createElement("div",{className:"tpi-code-setting ".concat(_)},a.a.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),a.a.createElement("section",null,a.a.createElement("div",{className:"file-item"},a.a.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),a.a.createElement(m.a,{bordered:!1,size:"small",value:n,onChange:s},a.a.createElement(u,{value:"vs"},"\u767D\u8272\u80CC\u666F"),a.a.createElement(u,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),a.a.createElement("div",{className:"file-item"},a.a.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),a.a.createElement(m.a,{bordered:!1,size:"small",value:l,onChange:r},a.a.createElement(u,{value:12},"12px"),a.a.createElement(u,{value:14},"14px"),a.a.createElement(u,{value:16},"16px"),a.a.createElement(u,{value:18},"18px"),a.a.createElement(u,{value:20},"20px"),a.a.createElement(u,{value:22},"22px"))),a.a.createElement("div",{className:"file-item"},a.a.createElement("b",null,"Tab\u8F6C\u6362"),a.a.createElement(h.a,{checked:b,onChange:e}))),a.a.createElement("h3",null,"\u5FEB\u6377\u952E"),a.a.createElement("section",null,a.a.createElement("div",{className:"file-item"},a.a.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),a.a.createElement("span",null,"Ctrl + S")),a.a.createElement("div",{className:"file-item"},a.a.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),a.a.createElement("span",null,"F1 / Alt + F1")),a.a.createElement("div",{className:"file-item"},a.a.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),a.a.createElement("span",null,"Ctrl + ]/[")),a.a.createElement("div",{className:"file-item"},a.a.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),a.a.createElement("span",null,"Ctrl + Shift + \\")),a.a.createElement("div",{className:"file-item"},a.a.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),a.a.createElement("span",null,"Home")),a.a.createElement("div",{className:"file-item"},a.a.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),a.a.createElement("span",null,"End"))),y)}},ZW9T:function(S,F,v){"use strict";var w=v("k1fw"),h=v("miYZ"),I=v("tsqr"),m=v("rAM+"),g=v("tJVT"),a=v("PpiC"),f=v("cDcd"),d=v.n(f),u=v("bdgK"),o=v("oBTY"),r=v("9og8"),l=v("WmNS"),n=v.n(l),s={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},e={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},i={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"#include",content:'include "$0"'},{label:"printf",content:"print($0)"},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"for",content:["for( ; ; ){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"#include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"#include <vector>",content:["#include <vector>"].join(`
`)},{label:"#include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"#include <string>",content:["#include <string>"].join(`
`)},{label:"#include <cmath>",content:["#include <cmath>"].join(`
`)}]},_={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},b=v("5VLF"),y=v.n(b),E={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},c=function(D,j){return j.map(function(Z){return{label:Z,kind:D.languages.CompletionItemKind.Keyword,insertText:Z}})},C=function(D){return Object.keys(E.tables).map(function(j){return{label:j,kind:D.languages.CompletionItemKind.Variable,insertText:j}})},x=function(D,j){var Z=E.tables[D];return Z?Z.map(function(ie){return{label:ie,kind:j.languages.CompletionItemKind.Field,insertText:ie}}):[]};function M(L,D,j,Z,ie){var pe=D.getWordUntilPosition(j),Ee={startLineNumber:j.lineNumber,endLineNumber:j.lineNumber,startColumn:pe.startColumn,endColumn:pe.endColumn},De=Z.map(function(q){return{label:q,kind:L.languages.CompletionItemKind.Keyword,insertText:q,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ee}});return ie.map(function(q){De.push(Object(w.a)(Object(w.a)({},q),{},{range:Ee}))}),De}var k=function(L){E.languages.map(function(ie){return L.languages.registerDocumentFormattingEditProvider(ie,{provideDocumentFormattingEdits:function(Ee,De,q){return Object(r.a)(n.a.mark(function be(){var ye;return n.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ye=y()(Ee.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),ue.abrupt("return",[{range:Ee.getFullModelRange(),text:ye}]);case 2:case"end":return ue.stop()}},be)}))()}}),ie});var D=i.quickKey.map(function(ie){return{label:ie.label,kind:L.languages.CompletionItemKind.Method,insertText:ie.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),j=_.quickKey.map(function(ie){return{label:ie.label,kind:L.languages.CompletionItemKind.Method,insertText:ie.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),Z=e.quickKey.map(function(ie){return{label:ie.label,kind:L.languages.CompletionItemKind.Method,insertText:ie.content,insertTextRules:L.languages.CompletionItemInsertTextRule.InsertAsSnippet}});L.languages.registerCompletionItemProvider("cpp",{triggerCharacters:["."," ","#"].concat(Object(o.a)(i.keywords),Object(o.a)(i.quickKey.map(function(ie){return ie.label}))),provideCompletionItems:function(pe,Ee){var De=pe.getValueInRange({startLineNumber:Ee.lineNumber,startColumn:1,endLineNumber:Ee.lineNumber,endColumn:Ee.column}),q=De.match(/cu/gim);console.log("match:",q,Ee,De,pe);var be=[],ye=Ee.lineNumber,le=Ee.column,ue=pe.getValueInRange({startLineNumber:ye,startColumn:0,endLineNumber:ye,endColumn:le}),ne=ue.trim().split(/\s+/),xe=ne[ne.length-1];if(xe.endsWith(".")){var $=xe.slice(0,xe.length-1);Object.keys(E.tables).includes($)&&(be=Object(o.a)(x($,L)))}else xe==="."?be=[]:be=[].concat(Object(o.a)(C(L)),Object(o.a)(c(L,i.keywords)),Object(o.a)(D));return{suggestions:be}}}),L.languages.registerCompletionItemProvider("c",{triggerCharacters:["."," ","#"].concat(Object(o.a)(s.keywords)),provideCompletionItems:function(pe,Ee){var De=pe.getValueInRange({startLineNumber:Ee.lineNumber,startColumn:1,endLineNumber:Ee.lineNumber,endColumn:Ee.column}),q=De.match(/cu/gim);console.log("match:",q,Ee,De,pe);var be=[],ye=Ee.lineNumber,le=Ee.column,ue=pe.getValueInRange({startLineNumber:ye,startColumn:0,endLineNumber:ye,endColumn:le}),ne=ue.trim().split(/\s+/),xe=ne[ne.length-1];if(xe.endsWith(".")){var $=xe.slice(0,xe.length-1);Object.keys(E.tables).includes($)&&(be=Object(o.a)(x($,L)))}else xe==="."?be=[]:be=[].concat(Object(o.a)(C(L)),Object(o.a)(c(L,s.keywords)));return{suggestions:be}}}),L.languages.registerCompletionItemProvider("java",{triggerCharacters:["."," "].concat(Object(o.a)(e.keywords)),provideCompletionItems:function(pe,Ee){var De=[],q=Ee.lineNumber,be=Ee.column,ye=pe.getValueInRange({startLineNumber:q,startColumn:0,endLineNumber:q,endColumn:be}),le=ye.trim().split(/\s+/),ue=le[le.length-1];if(ue.endsWith(".")){var ne=ue.slice(0,ue.length-1);Object.keys(E.tables).includes(ne)&&(De=Object(o.a)(x(ne,L)))}else ue==="."?De=[]:De=[].concat(Object(o.a)(C(L)),Object(o.a)(c(L,e.keywords)),Object(o.a)(Z));return{suggestions:De}}}),L.languages.registerCompletionItemProvider("python",{triggerCharacters:["."," "].concat(Object(o.a)(_.keywords)),provideCompletionItems:function(pe,Ee){var De=[],q=Ee.lineNumber,be=Ee.column,ye=pe.getValueInRange({startLineNumber:q,startColumn:0,endLineNumber:q,endColumn:be}),le=ye.trim().split(/\s+/),ue=le[le.length-1];if(ue.endsWith(".")){var ne=ue.slice(0,ue.length-1);Object.keys(E.tables).includes(ne)&&(De=Object(o.a)(x(ne,L)))}else ue==="."?De=[]:De=[].concat(Object(o.a)(C(L)),Object(o.a)(c(L,_.keywords)),Object(o.a)(j));return{suggestions:De}}})},T="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",R=v("LvDl"),P=v("+ua5");function B(L){return/^\d+$/.test(L)?"".concat(L,"px"):L}function W(){}var z=!1,H={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function ee(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=L;if(Array.isArray(L)){for(var j=0;j<L.length;j++){var Z=H[L[j]];if(Z)return Z}return D[0]}return H[D]||D}var G=null,U=F.a=function(L){var D=L.width,j=D===void 0?"100%":D,Z=L.height,ie=Z===void 0?"100%":Z,pe=L.value,Ee=L.language,De=Ee===void 0?"javascript":Ee,q=L.style,be=q===void 0?{}:q,ye=L.options,le=ye===void 0?{}:ye,ue=L.overrideServices,ne=ue===void 0?{}:ue,xe=L.theme,$=xe===void 0?"vs-dark":xe,oe=L.onEditBlur,Le=L.onSave,te=L.autoHeight,Y=te===void 0?!1:te,X=L.forbidCopy,J=X===void 0?!1:X,ve=L.onChange,he=ve===void 0?W:ve,Ce=L.editorDidMount,Pe=Ce===void 0?W:Ce,de=L.onFocus,ke=de===void 0?W:de,me=L.filename,Be=me===void 0?"educoder.txt":me,ft=L.errorLine,vt=L.errorContent,Xe=vt===void 0?"":vt,Bt=Object(a.a)(L,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),Ae=Object(f.useRef)(),We=Object(f.useRef)({}),dt=Object(f.useRef)(),Ge=Object(f.useRef)(!1),je=Object(f.useRef)(),Fe=Object(f.useState)(!1),ce=Object(g.a)(Fe,2),we=ce[0],se=ce[1];function _e(){var pt;return Ae.current&&(pt=new u.default(function(wt){var Ct=Object(m.a)(wt),Kt;try{for(Ct.s();!(Kt=Ct.n()).done;){var Vt=Kt.value;(Vt.target.offsetHeight>0||Vt.target.offsetWidth>0)&&We.current.instance.layout()}}catch(dn){Ct.e(dn)}finally{Ct.f()}}),pt.observe(Ae.current)),pt}function Ne(){I.b.warn(decodeURIComponent(T))}var Q=function(){var wt=We.current.instance;if(pe!=null&&wt&&we){var Ct=wt.getModel();Ct&&pe!==Ct.getValue()&&(z=!0,Ct.setValue(pe),wt.layout(),z=!1)}};Object(f.useEffect)(function(){dt.current&&clearTimeout(dt.current),dt.current=setTimeout(function(){Q()},500)},[pe,we,We.current]),Object(f.useEffect)(function(){if(ft&&We.current&&We.current.instance){var pt=We.current.instance;pt.changeViewZones(function(Ct){var Kt=document.createElement("div");Kt.style.padding="10px 20px",Kt.style.width="calc(100% - 20px)",Kt.className="my-error-line-wrp",Kt.innerHTML=Xe,Ct.addZone({afterLineNumber:ft||11,heightInLines:3,domNode:Kt})});var wt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};pt.addOverlayWidget(wt),pt.revealPositionInCenter({lineNumber:20,column:1})}},[ft,We.current,we]);function Ue(){var pt=We.current.instance;if(pt){var wt=pt.getSelection(),Ct=We.current.pastePos||{},Kt=new G.Range(Ct.startLineNumber||wt.endLineNumber,Ct.startColumn||wt.endColumn,Ct.endLineNumber||wt.endLineNumber,Ct.endColumn||wt.endColumn);setTimeout(function(){pt.executeEdits("",[{range:Kt,text:""}])},300)}}function Ze(pt){(window.navigator.platform.match("Mac")?pt.metaKey:pt.ctrlKey)&&pt.keyCode==83&&(pt.preventDefault(),Le())}var Te=function(){if(Y&&We.current.instance){var wt=We.current.instance.getContentHeight();ht(wt<ie?ie:wt)}else ht(ie)};function He(pt){var wt=document.createEvent("MouseEvents");wt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),pt.dispatchEvent(wt)}function Ye(pt,wt){var Ct=window.URL||window.webkitURL||window,Kt=new Blob([wt]),Vt=document.createElementNS("http://www.w3.org/1999/xhtml","a");Vt.href=Ct.createObjectURL(Kt),Vt.download=pt,He(Vt)}Object(f.useEffect)(function(){Te()},[Te]),Object(f.useEffect)(function(){Ae.current&&!we&&v.e(18).then(v.t.bind(null,"M/lh",7)).then(function(pt){try{G=pt,We.current.instance=G.editor.create(Ae.current,{value:pe,language:ee(De),theme:$,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0},ne);var wt=We.current.instance;if(Pe(wt,G),setTimeout(function(){Te(),We.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){Ye(Be||"educoder.txt",wt.getValue())}})},500),We.current.subscription=wt.onDidChangeModelContent(function(Kt){Ge.current?clearTimeout(je.current):(Te(),he(wt.getValue(),Kt)),je.current=setTimeout(function(){Ge.current=!1},500)}),window.Monaco||k(G),J&&(wt.addCommand(G.KeyMod.CtrlCmd|G.KeyMod.Shift|G.KeyCode.KEY_V,function(){return Ne(),null}),wt.addCommand(G.KeyMod.CtrlCmd|G.KeyCode.KEY_C,function(){return Ne(),null})),window.Monaco=G,oe&&wt.onDidBlurEditorWidget(function(){oe(wt.getValue())}),ke&&wt.onDidFocusEditorText(function(){ke(wt.getValue())}),J){wt.addCommand(G.KeyMod.CtrlCmd|G.KeyCode.KEY_V,function(){return Ne(),null}),wt.onDidPaste(function(Kt){We.current.pastePos=Kt});try{window.addEventListener("paste",Ue)}catch(Kt){}}var Ct=_e();return se(!0),function(){var Kt=We.current.instance;Kt.dispose();var Vt=Kt.getModel();Vt&&Vt.dispose(),We.current.subscription&&We.current.subscription.dispose(),J&&window.removeEventListener("paste",Ue),Ct.unobserve(Ae.current)}}catch(Kt){}})},[]),Object(f.useEffect)(function(){var pt=We.current.instance;if(pt&&we)return document.addEventListener("keydown",Ze,!1),function(){document.removeEventListener("keydown",Ze)}},[Le,we]),Object(f.useEffect)(function(){var pt=We.current.instance;if(pt&&we){var wt=ee(De);G.editor.setModelLanguage(pt.getModel(),wt),console.log("language:",De,pt.getModel(),wt)}},[De,we]),Object(f.useEffect)(function(){var pt=We.current.instance;pt&&we&&G.editor.setTheme($)},[$,we]),Object(f.useEffect)(function(){var pt=We.current.instance;pt&&we&&(pt.updateOptions(Object(w.a)({},le)),setTimeout(function(){pt.getModel().updateOptions(Object(w.a)({},le))},200))},[JSON.stringify(le),we]),Object(f.useEffect)(function(){var pt=We.current.instance;pt&&we&&pt.layout()},[j,ie,we]);var st=Object(f.useState)(B(j)),ut=Object(g.a)(st,2),et=ut[0],Re=ut[1],qe=Object(f.useState)(B(ie)),At=Object(g.a)(qe,2),$e=At[0],ht=At[1],Rt=Object(w.a)(Object(w.a)({},be),{},{width:et,height:$e});return d.a.createElement("div",{className:"my-monaco-editor",ref:Ae,style:Rt})};function K(L){var D=L.width,j=D===void 0?"100%":D,Z=L.height,ie=Z===void 0?"100%":Z,pe=L.original,Ee=L.modified,De=L.language,q=L.options,be=q===void 0?{}:q,ye=Object(f.useRef)(),le=Object(f.useState)(null),ue=Object(g.a)(le,2),ne=ue[0],xe=ue[1];function $(Y){var X;return ye.current&&(X=new u.default(function(J){var ve=Object(m.a)(J),he;try{for(ve.s();!(he=ve.n()).done;){var Ce=he.value;(Ce.target.offsetHeight>0||Ce.target.offsetWidth>0)&&Y.layout()}}catch(Pe){ve.e(Pe)}finally{ve.f()}}),X.observe(ye.current)),X}Object(f.useEffect)(function(){ye.current&&v.e(18).then(v.t.bind(null,"M/lh",7)).then(function(Y){G=Y;var X=G.editor.createDiffEditor(ye.current,Object(w.a)(Object(w.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},be),{},{wordWrap:!0}));xe(X);var J=$(X);return function(){X.dispose();var ve=X.getModel();ve&&ve.dispose(),J.unobserve(ye.current)}})},[]),Object(f.useEffect)(function(){ne&&ne.setModel({original:G.editor.createModel(pe,De),modified:G.editor.createModel(Ee,De)})},[pe,Ee,De,ne]);var oe=B(j),Le=B(ie),te={width:oe,height:Le};return d.a.createElement("div",{className:"my-diff-editor",ref:ye,style:te})}},ZpRC:function(S,F,v){"use strict";function w(r){return typeof r=="object"&&r!=null&&r.nodeType===1}function h(r,l){return(!l||r!=="hidden")&&r!=="visible"&&r!=="clip"}function I(r,l){if(r.clientHeight<r.scrollHeight||r.clientWidth<r.scrollWidth){var n=getComputedStyle(r,null);return h(n.overflowY,l)||h(n.overflowX,l)||function(s){var e=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch(_){return null}}(s);return!!e&&(e.clientHeight<s.scrollHeight||e.clientWidth<s.scrollWidth)}(r)}return!1}function m(r,l,n,s,e,i,_,b){return i<r&&_>l||i>r&&_<l?0:i<=r&&b<=n||_>=l&&b>=n?i-r-s:_>l&&b<n||i<r&&b>n?_-l+e:0}var g=function(r,l){var n=window,s=l.scrollMode,e=l.block,i=l.inline,_=l.boundary,b=l.skipOverflowHiddenElements,y=typeof _=="function"?_:function(X){return X!==_};if(!w(r))throw new TypeError("Invalid target");for(var E=document.scrollingElement||document.documentElement,c=[],C=r;w(C)&&y(C);){if((C=C.parentElement)===E){c.push(C);break}C!=null&&C===document.body&&I(C)&&!I(document.documentElement)||C!=null&&I(C,b)&&c.push(C)}for(var x=n.visualViewport?n.visualViewport.width:innerWidth,M=n.visualViewport?n.visualViewport.height:innerHeight,k=window.scrollX||pageXOffset,T=window.scrollY||pageYOffset,R=r.getBoundingClientRect(),P=R.height,B=R.width,W=R.top,z=R.right,H=R.bottom,ee=R.left,G=e==="start"||e==="nearest"?W:e==="end"?H:W+P/2,U=i==="center"?ee+B/2:i==="end"?z:ee,K=[],L=0;L<c.length;L++){var D=c[L],j=D.getBoundingClientRect(),Z=j.height,ie=j.width,pe=j.top,Ee=j.right,De=j.bottom,q=j.left;if(s==="if-needed"&&W>=0&&ee>=0&&H<=M&&z<=x&&W>=pe&&H<=De&&ee>=q&&z<=Ee)return K;var be=getComputedStyle(D),ye=parseInt(be.borderLeftWidth,10),le=parseInt(be.borderTopWidth,10),ue=parseInt(be.borderRightWidth,10),ne=parseInt(be.borderBottomWidth,10),xe=0,$=0,oe="offsetWidth"in D?D.offsetWidth-D.clientWidth-ye-ue:0,Le="offsetHeight"in D?D.offsetHeight-D.clientHeight-le-ne:0;if(E===D)xe=e==="start"?G:e==="end"?G-M:e==="nearest"?m(T,T+M,M,le,ne,T+G,T+G+P,P):G-M/2,$=i==="start"?U:i==="center"?U-x/2:i==="end"?U-x:m(k,k+x,x,ye,ue,k+U,k+U+B,B),xe=Math.max(0,xe+T),$=Math.max(0,$+k);else{xe=e==="start"?G-pe-le:e==="end"?G-De+ne+Le:e==="nearest"?m(pe,De,Z,le,ne+Le,G,G+P,P):G-(pe+Z/2)+Le/2,$=i==="start"?U-q-ye:i==="center"?U-(q+ie/2)+oe/2:i==="end"?U-Ee+ue+oe:m(q,Ee,ie,ye,ue+oe,U,U+B,B);var te=D.scrollLeft,Y=D.scrollTop;G+=Y-(xe=Math.max(0,Math.min(Y+xe,D.scrollHeight-Z+Le))),U+=te-($=Math.max(0,Math.min(te+$,D.scrollWidth-ie+oe)))}K.push({el:D,top:xe,left:$})}return K};function a(r){return r===Object(r)&&Object.keys(r).length!==0}function f(r,l){l===void 0&&(l="auto");var n="scrollBehavior"in document.body.style;r.forEach(function(s){var e=s.el,i=s.top,_=s.left;e.scroll&&n?e.scroll({top:i,left:_,behavior:l}):(e.scrollTop=i,e.scrollLeft=_)})}function d(r){return r===!1?{block:"end",inline:"nearest"}:a(r)?r:{block:"start",inline:"nearest"}}function u(r,l){var n=!r.ownerDocument.documentElement.contains(r);if(a(l)&&typeof l.behavior=="function")return l.behavior(n?[]:g(r,l));if(n)return;var s=d(l);return f(g(r,s),s.behavior)}var o=F.a=u},Zss7:function(S,F,v){var w;(function(h){var I=/^\s+/,m=/\s+$/,g=0,a=h.round,f=h.min,d=h.max,u=h.random;function o(ne,xe){if(ne=ne||"",xe=xe||{},ne instanceof o)return ne;if(!(this instanceof o))return new o(ne,xe);var $=r(ne);this._originalInput=ne,this._r=$.r,this._g=$.g,this._b=$.b,this._a=$.a,this._roundA=a(100*this._a)/100,this._format=xe.format||$.format,this._gradientType=xe.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=$.ok,this._tc_id=g++}o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ne=this.toRgb();return(ne.r*299+ne.g*587+ne.b*114)/1e3},getLuminance:function(){var ne=this.toRgb(),xe,$,oe,Le,te,Y;return xe=ne.r/255,$=ne.g/255,oe=ne.b/255,xe<=.03928?Le=xe/12.92:Le=h.pow((xe+.055)/1.055,2.4),$<=.03928?te=$/12.92:te=h.pow(($+.055)/1.055,2.4),oe<=.03928?Y=oe/12.92:Y=h.pow((oe+.055)/1.055,2.4),.2126*Le+.7152*te+.0722*Y},setAlpha:function(ne){return this._a=K(ne),this._roundA=a(100*this._a)/100,this},toHsv:function(){var ne=e(this._r,this._g,this._b);return{h:ne.h*360,s:ne.s,v:ne.v,a:this._a}},toHsvString:function(){var ne=e(this._r,this._g,this._b),xe=a(ne.h*360),$=a(ne.s*100),oe=a(ne.v*100);return this._a==1?"hsv("+xe+", "+$+"%, "+oe+"%)":"hsva("+xe+", "+$+"%, "+oe+"%, "+this._roundA+")"},toHsl:function(){var ne=n(this._r,this._g,this._b);return{h:ne.h*360,s:ne.s,l:ne.l,a:this._a}},toHslString:function(){var ne=n(this._r,this._g,this._b),xe=a(ne.h*360),$=a(ne.s*100),oe=a(ne.l*100);return this._a==1?"hsl("+xe+", "+$+"%, "+oe+"%)":"hsla("+xe+", "+$+"%, "+oe+"%, "+this._roundA+")"},toHex:function(ne){return _(this._r,this._g,this._b,ne)},toHexString:function(ne){return"#"+this.toHex(ne)},toHex8:function(ne){return b(this._r,this._g,this._b,this._a,ne)},toHex8String:function(ne){return"#"+this.toHex8(ne)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(L(this._r,255)*100)+"%",g:a(L(this._g,255)*100)+"%",b:a(L(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(L(this._r,255)*100)+"%, "+a(L(this._g,255)*100)+"%, "+a(L(this._b,255)*100)+"%)":"rgba("+a(L(this._r,255)*100)+"%, "+a(L(this._g,255)*100)+"%, "+a(L(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:G[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(ne){var xe="#"+y(this._r,this._g,this._b,this._a),$=xe,oe=this._gradientType?"GradientType = 1, ":"";if(ne){var Le=o(ne);$="#"+y(Le._r,Le._g,Le._b,Le._a)}return"progid:DXImageTransform.Microsoft.gradient("+oe+"startColorstr="+xe+",endColorstr="+$+")"},toString:function(ne){var xe=!!ne;ne=ne||this._format;var $=!1,oe=this._a<1&&this._a>=0,Le=!xe&&oe&&(ne==="hex"||ne==="hex6"||ne==="hex3"||ne==="hex4"||ne==="hex8"||ne==="name");return Le?ne==="name"&&this._a===0?this.toName():this.toRgbString():(ne==="rgb"&&($=this.toRgbString()),ne==="prgb"&&($=this.toPercentageRgbString()),(ne==="hex"||ne==="hex6")&&($=this.toHexString()),ne==="hex3"&&($=this.toHexString(!0)),ne==="hex4"&&($=this.toHex8String(!0)),ne==="hex8"&&($=this.toHex8String()),ne==="name"&&($=this.toName()),ne==="hsl"&&($=this.toHslString()),ne==="hsv"&&($=this.toHsvString()),$||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(ne,xe){var $=ne.apply(null,[this].concat([].slice.call(xe)));return this._r=$._r,this._g=$._g,this._b=$._b,this.setAlpha($._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(M,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(C,arguments)},spin:function(){return this._applyModification(T,arguments)},_applyCombination:function(ne,xe){return ne.apply(null,[this].concat([].slice.call(xe)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(R,arguments)},monochromatic:function(){return this._applyCombination(H,arguments)},splitcomplement:function(){return this._applyCombination(W,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(B,arguments)}},o.fromRatio=function(ne,xe){if(typeof ne=="object"){var $={};for(var oe in ne)ne.hasOwnProperty(oe)&&(oe==="a"?$[oe]=ne[oe]:$[oe]=Ee(ne[oe]));ne=$}return o(ne,xe)};function r(ne){var xe={r:0,g:0,b:0},$=1,oe=null,Le=null,te=null,Y=!1,X=!1;return typeof ne=="string"&&(ne=le(ne)),typeof ne=="object"&&(ye(ne.r)&&ye(ne.g)&&ye(ne.b)?(xe=l(ne.r,ne.g,ne.b),Y=!0,X=String(ne.r).substr(-1)==="%"?"prgb":"rgb"):ye(ne.h)&&ye(ne.s)&&ye(ne.v)?(oe=Ee(ne.s),Le=Ee(ne.v),xe=i(ne.h,oe,Le),Y=!0,X="hsv"):ye(ne.h)&&ye(ne.s)&&ye(ne.l)&&(oe=Ee(ne.s),te=Ee(ne.l),xe=s(ne.h,oe,te),Y=!0,X="hsl"),ne.hasOwnProperty("a")&&($=ne.a)),$=K($),{ok:Y,format:ne.format||X,r:f(255,d(xe.r,0)),g:f(255,d(xe.g,0)),b:f(255,d(xe.b,0)),a:$}}function l(ne,xe,$){return{r:L(ne,255)*255,g:L(xe,255)*255,b:L($,255)*255}}function n(ne,xe,$){ne=L(ne,255),xe=L(xe,255),$=L($,255);var oe=d(ne,xe,$),Le=f(ne,xe,$),te,Y,X=(oe+Le)/2;if(oe==Le)te=Y=0;else{var J=oe-Le;Y=X>.5?J/(2-oe-Le):J/(oe+Le);switch(oe){case ne:te=(xe-$)/J+(xe<$?6:0);break;case xe:te=($-ne)/J+2;break;case $:te=(ne-xe)/J+4;break}te/=6}return{h:te,s:Y,l:X}}function s(ne,xe,$){var oe,Le,te;ne=L(ne,360),xe=L(xe,100),$=L($,100);function Y(ve,he,Ce){return Ce<0&&(Ce+=1),Ce>1&&(Ce-=1),Ce<1/6?ve+(he-ve)*6*Ce:Ce<1/2?he:Ce<2/3?ve+(he-ve)*(2/3-Ce)*6:ve}if(xe===0)oe=Le=te=$;else{var X=$<.5?$*(1+xe):$+xe-$*xe,J=2*$-X;oe=Y(J,X,ne+1/3),Le=Y(J,X,ne),te=Y(J,X,ne-1/3)}return{r:oe*255,g:Le*255,b:te*255}}function e(ne,xe,$){ne=L(ne,255),xe=L(xe,255),$=L($,255);var oe=d(ne,xe,$),Le=f(ne,xe,$),te,Y,X=oe,J=oe-Le;if(Y=oe===0?0:J/oe,oe==Le)te=0;else{switch(oe){case ne:te=(xe-$)/J+(xe<$?6:0);break;case xe:te=($-ne)/J+2;break;case $:te=(ne-xe)/J+4;break}te/=6}return{h:te,s:Y,v:X}}function i(ne,xe,$){ne=L(ne,360)*6,xe=L(xe,100),$=L($,100);var oe=h.floor(ne),Le=ne-oe,te=$*(1-xe),Y=$*(1-Le*xe),X=$*(1-(1-Le)*xe),J=oe%6,ve=[$,Y,te,te,X,$][J],he=[X,$,$,Y,te,te][J],Ce=[te,te,X,$,$,Y][J];return{r:ve*255,g:he*255,b:Ce*255}}function _(ne,xe,$,oe){var Le=[pe(a(ne).toString(16)),pe(a(xe).toString(16)),pe(a($).toString(16))];return oe&&Le[0].charAt(0)==Le[0].charAt(1)&&Le[1].charAt(0)==Le[1].charAt(1)&&Le[2].charAt(0)==Le[2].charAt(1)?Le[0].charAt(0)+Le[1].charAt(0)+Le[2].charAt(0):Le.join("")}function b(ne,xe,$,oe,Le){var te=[pe(a(ne).toString(16)),pe(a(xe).toString(16)),pe(a($).toString(16)),pe(De(oe))];return Le&&te[0].charAt(0)==te[0].charAt(1)&&te[1].charAt(0)==te[1].charAt(1)&&te[2].charAt(0)==te[2].charAt(1)&&te[3].charAt(0)==te[3].charAt(1)?te[0].charAt(0)+te[1].charAt(0)+te[2].charAt(0)+te[3].charAt(0):te.join("")}function y(ne,xe,$,oe){var Le=[pe(De(oe)),pe(a(ne).toString(16)),pe(a(xe).toString(16)),pe(a($).toString(16))];return Le.join("")}o.equals=function(ne,xe){return!ne||!xe?!1:o(ne).toRgbString()==o(xe).toRgbString()},o.random=function(){return o.fromRatio({r:u(),g:u(),b:u()})};function E(ne,xe){xe=xe===0?0:xe||10;var $=o(ne).toHsl();return $.s-=xe/100,$.s=D($.s),o($)}function c(ne,xe){xe=xe===0?0:xe||10;var $=o(ne).toHsl();return $.s+=xe/100,$.s=D($.s),o($)}function C(ne){return o(ne).desaturate(100)}function x(ne,xe){xe=xe===0?0:xe||10;var $=o(ne).toHsl();return $.l+=xe/100,$.l=D($.l),o($)}function M(ne,xe){xe=xe===0?0:xe||10;var $=o(ne).toRgb();return $.r=d(0,f(255,$.r-a(255*-(xe/100)))),$.g=d(0,f(255,$.g-a(255*-(xe/100)))),$.b=d(0,f(255,$.b-a(255*-(xe/100)))),o($)}function k(ne,xe){xe=xe===0?0:xe||10;var $=o(ne).toHsl();return $.l-=xe/100,$.l=D($.l),o($)}function T(ne,xe){var $=o(ne).toHsl(),oe=($.h+xe)%360;return $.h=oe<0?360+oe:oe,o($)}function R(ne){var xe=o(ne).toHsl();return xe.h=(xe.h+180)%360,o(xe)}function P(ne){var xe=o(ne).toHsl(),$=xe.h;return[o(ne),o({h:($+120)%360,s:xe.s,l:xe.l}),o({h:($+240)%360,s:xe.s,l:xe.l})]}function B(ne){var xe=o(ne).toHsl(),$=xe.h;return[o(ne),o({h:($+90)%360,s:xe.s,l:xe.l}),o({h:($+180)%360,s:xe.s,l:xe.l}),o({h:($+270)%360,s:xe.s,l:xe.l})]}function W(ne){var xe=o(ne).toHsl(),$=xe.h;return[o(ne),o({h:($+72)%360,s:xe.s,l:xe.l}),o({h:($+216)%360,s:xe.s,l:xe.l})]}function z(ne,xe,$){xe=xe||6,$=$||30;var oe=o(ne).toHsl(),Le=360/$,te=[o(ne)];for(oe.h=(oe.h-(Le*xe>>1)+720)%360;--xe;)oe.h=(oe.h+Le)%360,te.push(o(oe));return te}function H(ne,xe){xe=xe||6;for(var $=o(ne).toHsv(),oe=$.h,Le=$.s,te=$.v,Y=[],X=1/xe;xe--;)Y.push(o({h:oe,s:Le,v:te})),te=(te+X)%1;return Y}o.mix=function(ne,xe,$){$=$===0?0:$||50;var oe=o(ne).toRgb(),Le=o(xe).toRgb(),te=$/100,Y={r:(Le.r-oe.r)*te+oe.r,g:(Le.g-oe.g)*te+oe.g,b:(Le.b-oe.b)*te+oe.b,a:(Le.a-oe.a)*te+oe.a};return o(Y)},o.readability=function(ne,xe){var $=o(ne),oe=o(xe);return(h.max($.getLuminance(),oe.getLuminance())+.05)/(h.min($.getLuminance(),oe.getLuminance())+.05)},o.isReadable=function(ne,xe,$){var oe=o.readability(ne,xe),Le,te;te=!1,Le=ue($);switch(Le.level+Le.size){case"AAsmall":case"AAAlarge":te=oe>=4.5;break;case"AAlarge":te=oe>=3;break;case"AAAsmall":te=oe>=7;break}return te},o.mostReadable=function(ne,xe,$){var oe=null,Le=0,te,Y,X,J;$=$||{},Y=$.includeFallbackColors,X=$.level,J=$.size;for(var ve=0;ve<xe.length;ve++)te=o.readability(ne,xe[ve]),te>Le&&(Le=te,oe=o(xe[ve]));return o.isReadable(ne,oe,{level:X,size:J})||!Y?oe:($.includeFallbackColors=!1,o.mostReadable(ne,["#fff","#000"],$))};var ee=o.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},G=o.hexNames=U(ee);function U(ne){var xe={};for(var $ in ne)ne.hasOwnProperty($)&&(xe[ne[$]]=$);return xe}function K(ne){return ne=parseFloat(ne),(isNaN(ne)||ne<0||ne>1)&&(ne=1),ne}function L(ne,xe){Z(ne)&&(ne="100%");var $=ie(ne);return ne=f(xe,d(0,parseFloat(ne))),$&&(ne=parseInt(ne*xe,10)/100),h.abs(ne-xe)<1e-6?1:ne%xe/parseFloat(xe)}function D(ne){return f(1,d(0,ne))}function j(ne){return parseInt(ne,16)}function Z(ne){return typeof ne=="string"&&ne.indexOf(".")!=-1&&parseFloat(ne)===1}function ie(ne){return typeof ne=="string"&&ne.indexOf("%")!=-1}function pe(ne){return ne.length==1?"0"+ne:""+ne}function Ee(ne){return ne<=1&&(ne=ne*100+"%"),ne}function De(ne){return h.round(parseFloat(ne)*255).toString(16)}function q(ne){return j(ne)/255}var be=function(){var ne="[-\\+]?\\d+%?",xe="[-\\+]?\\d*\\.\\d+%?",$="(?:"+xe+")|(?:"+ne+")",oe="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?",Le="[\\s|\\(]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")[,|\\s]+("+$+")\\s*\\)?";return{CSS_UNIT:new RegExp($),rgb:new RegExp("rgb"+oe),rgba:new RegExp("rgba"+Le),hsl:new RegExp("hsl"+oe),hsla:new RegExp("hsla"+Le),hsv:new RegExp("hsv"+oe),hsva:new RegExp("hsva"+Le),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ye(ne){return!!be.CSS_UNIT.exec(ne)}function le(ne){ne=ne.replace(I,"").replace(m,"").toLowerCase();var xe=!1;if(ee[ne])ne=ee[ne],xe=!0;else if(ne=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $;return($=be.rgb.exec(ne))?{r:$[1],g:$[2],b:$[3]}:($=be.rgba.exec(ne))?{r:$[1],g:$[2],b:$[3],a:$[4]}:($=be.hsl.exec(ne))?{h:$[1],s:$[2],l:$[3]}:($=be.hsla.exec(ne))?{h:$[1],s:$[2],l:$[3],a:$[4]}:($=be.hsv.exec(ne))?{h:$[1],s:$[2],v:$[3]}:($=be.hsva.exec(ne))?{h:$[1],s:$[2],v:$[3],a:$[4]}:($=be.hex8.exec(ne))?{r:j($[1]),g:j($[2]),b:j($[3]),a:q($[4]),format:xe?"name":"hex8"}:($=be.hex6.exec(ne))?{r:j($[1]),g:j($[2]),b:j($[3]),format:xe?"name":"hex"}:($=be.hex4.exec(ne))?{r:j($[1]+""+$[1]),g:j($[2]+""+$[2]),b:j($[3]+""+$[3]),a:q($[4]+""+$[4]),format:xe?"name":"hex8"}:($=be.hex3.exec(ne))?{r:j($[1]+""+$[1]),g:j($[2]+""+$[2]),b:j($[3]+""+$[3]),format:xe?"name":"hex"}:!1}function ue(ne){var xe,$;return ne=ne||{level:"AA",size:"small"},xe=(ne.level||"AA").toUpperCase(),$=(ne.size||"small").toLowerCase(),xe!=="AA"&&xe!=="AAA"&&(xe="AA"),$!=="small"&&$!=="large"&&($="small"),{level:xe,size:$}}S.exports?S.exports=o:!(w=function(){return o}.call(F,v,F,S),w!==void 0&&(S.exports=w))})(Math)},aVK0:function(S,F,v){S.exports={flex_box_center:"flex_box_center___21Vfj",flex_space_between:"flex_space_between___uZYuI",flex_box_vertical_center:"flex_box_vertical_center___YbtWj",flex_box_center_end:"flex_box_center_end_____Dod",flex_box_column:"flex_box_column___38gQH",headLeft:"headLeft___2agg1",colorBlue:"colorBlue___3Vx0N",wrap:"wrap___2WfDC",nodata:"nodata___2f07p",nodataText:"nodataText___3TEWn",content:"content___2_atz",gitCode:"gitCode___3gBXU",ellipsis:"ellipsis___1HiNM",menu:"menu___1DQOO",overlayClass:"overlayClass___2EPCd",tips:"tips___3g6oq"}},b1fT:function(S,F,v){S.exports={"choose-game-item":"choose-game-item___3Vmdr","output-title-container":"output-title-container___15c7x","output-title":"output-title___wqGBh","test-case-list":"test-case-list___134lr","test-header":"test-header___3YSEo",active:"active___3o9Hq","test-result":"test-result___2OIUv","markdown-body":"markdown-body___1mq0e",success:"success___2M7U8",failer:"failer___3JK5X",count:"count___3ViIk","test-case-item":"test-case-item___JBhkJ","case-header":"case-header___27Lc0",iconfont:"iconfont___3UAOT",description:"description___1SgkG","item-desc":"item-desc___29cRg",show:"show___3qunF","item-tip":"item-tip___1pJqj","arrow-down":"arrow-down___3rUfL","test-title":"test-title___1eTn_","arrow-right":"arrow-right___36G7Q","case-info":"case-info___21-4n","test-case-run-header":"test-case-run-header___1BrpP","test-case-run-wrp":"test-case-run-wrp___2T5BC","diff-panel-container":"diff-panel-container___CQu-S","line-break":"line-break___1hJQp",empty:"empty___19Ozf"}},bCnd:function(S,F,v){"use strict";v.d(F,"b",function(){return m}),v.d(F,"a",function(){return g});var w=v("je13"),h=v.n(w),I=!1;function m(a,f){var d=h.a.get("__ec");d||(d={}),d[a]=f,h.a.set("__ec",d)}function g(a,f){var d=h.a.get("__ec");return d?d[a]===void 0?f:d[a]:f}},bQjk:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("OLod"))})(this,function(w){return function(h){var I=w,m=I.lib,g=m.CipherParams,a=I.enc,f=a.Hex,d=I.format,u=d.Hex={stringify:function(o){return o.ciphertext.toString(f)},parse:function(o){var r=f.parse(o);return g.create({ciphertext:r})}}}(),w.format.Hex})},bT9E:function(S,F,v){"use strict";v.d(F,"a",function(){return h});var w=v("VTBJ");function h(I,m){var g=Object(w.a)({},I);return Array.isArray(m)&&m.forEach(function(a){delete g[a]}),g}},biw7:function(S,F,v){"use strict";var w=v("cDcd"),h=v.n(w),I=w.createContext(null);F.a=I},c5Ni:function(S,F,v){},c5fP:function(S,F,v){"use strict";function w(Ae){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(dt){return typeof dt}:w=function(dt){return dt&&typeof Symbol=="function"&&dt.constructor===Symbol&&dt!==Symbol.prototype?"symbol":typeof dt},w(Ae)}Object.defineProperty(F,"__esModule",{value:!0}),F._tr_init=Be,F._tr_stored_block=ft,F._tr_flush_block=Xe,F._tr_tally=Bt,F._tr_align=vt;var h=m(v("6BzB"));function I(){if(typeof WeakMap!="function")return null;var Ae=new WeakMap;return I=function(){return Ae},Ae}function m(Ae){if(Ae&&Ae.__esModule)return Ae;if(Ae===null||w(Ae)!=="object"&&typeof Ae!="function")return{default:Ae};var We=I();if(We&&We.has(Ae))return We.get(Ae);var dt={},Ge=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var je in Ae)if(Object.prototype.hasOwnProperty.call(Ae,je)){var Fe=Ge?Object.getOwnPropertyDescriptor(Ae,je):null;Fe&&(Fe.get||Fe.set)?Object.defineProperty(dt,je,Fe):dt[je]=Ae[je]}return dt.default=Ae,We&&We.set(Ae,dt),dt}var g=4,a=0,f=1,d=2;function u(Ae){for(var We=Ae.length;--We>=0;)Ae[We]=0}var o=0,r=1,l=2,n=3,s=258,e=29,i=256,_=i+1+e,b=30,y=19,E=2*_+1,c=15,C=16,x=7,M=256,k=16,T=17,R=18,P=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],B=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],W=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=512,ee=new Array((_+2)*2);u(ee);var G=new Array(b*2);u(G);var U=new Array(H);u(U);var K=new Array(s-n+1);u(K);var L=new Array(e);u(L);var D=new Array(b);u(D);function j(Ae,We,dt,Ge,je){this.static_tree=Ae,this.extra_bits=We,this.extra_base=dt,this.elems=Ge,this.max_length=je,this.has_stree=Ae&&Ae.length}var Z,ie,pe;function Ee(Ae,We){this.dyn_tree=Ae,this.max_code=0,this.stat_desc=We}function De(Ae){return Ae<256?U[Ae]:U[256+(Ae>>>7)]}function q(Ae,We){Ae.pending_buf[Ae.pending++]=We&255,Ae.pending_buf[Ae.pending++]=We>>>8&255}function be(Ae,We,dt){Ae.bi_valid>C-dt?(Ae.bi_buf|=We<<Ae.bi_valid&65535,q(Ae,Ae.bi_buf),Ae.bi_buf=We>>C-Ae.bi_valid,Ae.bi_valid+=dt-C):(Ae.bi_buf|=We<<Ae.bi_valid&65535,Ae.bi_valid+=dt)}function ye(Ae,We,dt){be(Ae,dt[We*2],dt[We*2+1])}function le(Ae,We){var dt=0;do dt|=Ae&1,Ae>>>=1,dt<<=1;while(--We>0);return dt>>>1}function ue(Ae){Ae.bi_valid===16?(q(Ae,Ae.bi_buf),Ae.bi_buf=0,Ae.bi_valid=0):Ae.bi_valid>=8&&(Ae.pending_buf[Ae.pending++]=Ae.bi_buf&255,Ae.bi_buf>>=8,Ae.bi_valid-=8)}function ne(Ae,We){var dt=We.dyn_tree,Ge=We.max_code,je=We.stat_desc.static_tree,Fe=We.stat_desc.has_stree,ce=We.stat_desc.extra_bits,we=We.stat_desc.extra_base,se=We.stat_desc.max_length,_e,Ne,Q,Ue,Ze,Te,He=0;for(Ue=0;Ue<=c;Ue++)Ae.bl_count[Ue]=0;for(dt[Ae.heap[Ae.heap_max]*2+1]=0,_e=Ae.heap_max+1;_e<E;_e++){if(Ne=Ae.heap[_e],Ue=dt[dt[Ne*2+1]*2+1]+1,Ue>se&&(Ue=se,He++),dt[Ne*2+1]=Ue,Ne>Ge)continue;Ae.bl_count[Ue]++,Ze=0,Ne>=we&&(Ze=ce[Ne-we]),Te=dt[Ne*2],Ae.opt_len+=Te*(Ue+Ze),Fe&&(Ae.static_len+=Te*(je[Ne*2+1]+Ze))}if(He===0)return;do{for(Ue=se-1;Ae.bl_count[Ue]===0;)Ue--;Ae.bl_count[Ue]--,Ae.bl_count[Ue+1]+=2,Ae.bl_count[se]--,He-=2}while(He>0);for(Ue=se;Ue!==0;Ue--)for(Ne=Ae.bl_count[Ue];Ne!==0;){if(Q=Ae.heap[--_e],Q>Ge)continue;dt[Q*2+1]!==Ue&&(Ae.opt_len+=(Ue-dt[Q*2+1])*dt[Q*2],dt[Q*2+1]=Ue),Ne--}}function xe(Ae,We,dt){var Ge=new Array(c+1),je=0,Fe,ce;for(Fe=1;Fe<=c;Fe++)Ge[Fe]=je=je+dt[Fe-1]<<1;for(ce=0;ce<=We;ce++){var we=Ae[ce*2+1];if(we===0)continue;Ae[ce*2]=le(Ge[we]++,we)}}function $(){var Ae,We,dt,Ge,je,Fe=new Array(c+1);for(dt=0,Ge=0;Ge<e-1;Ge++)for(L[Ge]=dt,Ae=0;Ae<1<<P[Ge];Ae++)K[dt++]=Ge;for(K[dt-1]=Ge,je=0,Ge=0;Ge<16;Ge++)for(D[Ge]=je,Ae=0;Ae<1<<B[Ge];Ae++)U[je++]=Ge;for(je>>=7;Ge<b;Ge++)for(D[Ge]=je<<7,Ae=0;Ae<1<<B[Ge]-7;Ae++)U[256+je++]=Ge;for(We=0;We<=c;We++)Fe[We]=0;for(Ae=0;Ae<=143;)ee[Ae*2+1]=8,Ae++,Fe[8]++;for(;Ae<=255;)ee[Ae*2+1]=9,Ae++,Fe[9]++;for(;Ae<=279;)ee[Ae*2+1]=7,Ae++,Fe[7]++;for(;Ae<=287;)ee[Ae*2+1]=8,Ae++,Fe[8]++;for(xe(ee,_+1,Fe),Ae=0;Ae<b;Ae++)G[Ae*2+1]=5,G[Ae*2]=le(Ae,5);Z=new j(ee,P,i+1,_,c),ie=new j(G,B,0,b,c),pe=new j(new Array(0),W,0,y,x)}function oe(Ae){var We;for(We=0;We<_;We++)Ae.dyn_ltree[We*2]=0;for(We=0;We<b;We++)Ae.dyn_dtree[We*2]=0;for(We=0;We<y;We++)Ae.bl_tree[We*2]=0;Ae.dyn_ltree[M*2]=1,Ae.opt_len=Ae.static_len=0,Ae.last_lit=Ae.matches=0}function Le(Ae){Ae.bi_valid>8?q(Ae,Ae.bi_buf):Ae.bi_valid>0&&(Ae.pending_buf[Ae.pending++]=Ae.bi_buf),Ae.bi_buf=0,Ae.bi_valid=0}function te(Ae,We,dt,Ge){Le(Ae),Ge&&(q(Ae,dt),q(Ae,~dt)),h.arraySet(Ae.pending_buf,Ae.window,We,dt,Ae.pending),Ae.pending+=dt}function Y(Ae,We,dt,Ge){var je=We*2,Fe=dt*2;return Ae[je]<Ae[Fe]||Ae[je]===Ae[Fe]&&Ge[We]<=Ge[dt]}function X(Ae,We,dt){for(var Ge=Ae.heap[dt],je=dt<<1;je<=Ae.heap_len&&!(je<Ae.heap_len&&Y(We,Ae.heap[je+1],Ae.heap[je],Ae.depth)&&je++,Y(We,Ge,Ae.heap[je],Ae.depth));)Ae.heap[dt]=Ae.heap[je],dt=je,je<<=1;Ae.heap[dt]=Ge}function J(Ae,We,dt){var Ge,je,Fe=0,ce,we;if(Ae.last_lit!==0)do Ge=Ae.pending_buf[Ae.d_buf+Fe*2]<<8|Ae.pending_buf[Ae.d_buf+Fe*2+1],je=Ae.pending_buf[Ae.l_buf+Fe],Fe++,Ge===0?ye(Ae,je,We):(ce=K[je],ye(Ae,ce+i+1,We),we=P[ce],we!==0&&(je-=L[ce],be(Ae,je,we)),Ge--,ce=De(Ge),ye(Ae,ce,dt),we=B[ce],we!==0&&(Ge-=D[ce],be(Ae,Ge,we)));while(Fe<Ae.last_lit);ye(Ae,M,We)}function ve(Ae,We){var dt=We.dyn_tree,Ge=We.stat_desc.static_tree,je=We.stat_desc.has_stree,Fe=We.stat_desc.elems,ce,we,se=-1,_e;for(Ae.heap_len=0,Ae.heap_max=E,ce=0;ce<Fe;ce++)dt[ce*2]!==0?(Ae.heap[++Ae.heap_len]=se=ce,Ae.depth[ce]=0):dt[ce*2+1]=0;for(;Ae.heap_len<2;)_e=Ae.heap[++Ae.heap_len]=se<2?++se:0,dt[_e*2]=1,Ae.depth[_e]=0,Ae.opt_len--,je&&(Ae.static_len-=Ge[_e*2+1]);for(We.max_code=se,ce=Ae.heap_len>>1;ce>=1;ce--)X(Ae,dt,ce);_e=Fe;do ce=Ae.heap[1],Ae.heap[1]=Ae.heap[Ae.heap_len--],X(Ae,dt,1),we=Ae.heap[1],Ae.heap[--Ae.heap_max]=ce,Ae.heap[--Ae.heap_max]=we,dt[_e*2]=dt[ce*2]+dt[we*2],Ae.depth[_e]=(Ae.depth[ce]>=Ae.depth[we]?Ae.depth[ce]:Ae.depth[we])+1,dt[ce*2+1]=dt[we*2+1]=_e,Ae.heap[1]=_e++,X(Ae,dt,1);while(Ae.heap_len>=2);Ae.heap[--Ae.heap_max]=Ae.heap[1],ne(Ae,We),xe(dt,se,Ae.bl_count)}function he(Ae,We,dt){var Ge,je=-1,Fe,ce=We[0*2+1],we=0,se=7,_e=4;for(ce===0&&(se=138,_e=3),We[(dt+1)*2+1]=65535,Ge=0;Ge<=dt;Ge++){if(Fe=ce,ce=We[(Ge+1)*2+1],++we<se&&Fe===ce)continue;we<_e?Ae.bl_tree[Fe*2]+=we:Fe!==0?(Fe!==je&&Ae.bl_tree[Fe*2]++,Ae.bl_tree[k*2]++):we<=10?Ae.bl_tree[T*2]++:Ae.bl_tree[R*2]++,we=0,je=Fe,ce===0?(se=138,_e=3):Fe===ce?(se=6,_e=3):(se=7,_e=4)}}function Ce(Ae,We,dt){var Ge,je=-1,Fe,ce=We[0*2+1],we=0,se=7,_e=4;for(ce===0&&(se=138,_e=3),Ge=0;Ge<=dt;Ge++){if(Fe=ce,ce=We[(Ge+1)*2+1],++we<se&&Fe===ce)continue;if(we<_e)do ye(Ae,Fe,Ae.bl_tree);while(--we!==0);else Fe!==0?(Fe!==je&&(ye(Ae,Fe,Ae.bl_tree),we--),ye(Ae,k,Ae.bl_tree),be(Ae,we-3,2)):we<=10?(ye(Ae,T,Ae.bl_tree),be(Ae,we-3,3)):(ye(Ae,R,Ae.bl_tree),be(Ae,we-11,7));we=0,je=Fe,ce===0?(se=138,_e=3):Fe===ce?(se=6,_e=3):(se=7,_e=4)}}function Pe(Ae){var We;for(he(Ae,Ae.dyn_ltree,Ae.l_desc.max_code),he(Ae,Ae.dyn_dtree,Ae.d_desc.max_code),ve(Ae,Ae.bl_desc),We=y-1;We>=3&&!(Ae.bl_tree[z[We]*2+1]!==0);We--);return Ae.opt_len+=3*(We+1)+5+5+4,We}function de(Ae,We,dt,Ge){var je;for(be(Ae,We-257,5),be(Ae,dt-1,5),be(Ae,Ge-4,4),je=0;je<Ge;je++)be(Ae,Ae.bl_tree[z[je]*2+1],3);Ce(Ae,Ae.dyn_ltree,We-1),Ce(Ae,Ae.dyn_dtree,dt-1)}function ke(Ae){var We=4093624447,dt;for(dt=0;dt<=31;dt++,We>>>=1)if(We&1&&Ae.dyn_ltree[dt*2]!==0)return a;if(Ae.dyn_ltree[9*2]!==0||Ae.dyn_ltree[10*2]!==0||Ae.dyn_ltree[13*2]!==0)return f;for(dt=32;dt<i;dt++)if(Ae.dyn_ltree[dt*2]!==0)return f;return a}var me=!1;function Be(Ae){me||($(),me=!0),Ae.l_desc=new Ee(Ae.dyn_ltree,Z),Ae.d_desc=new Ee(Ae.dyn_dtree,ie),Ae.bl_desc=new Ee(Ae.bl_tree,pe),Ae.bi_buf=0,Ae.bi_valid=0,oe(Ae)}function ft(Ae,We,dt,Ge){be(Ae,(o<<1)+(Ge?1:0),3),te(Ae,We,dt,!0)}function vt(Ae){be(Ae,r<<1,3),ye(Ae,M,ee),ue(Ae)}function Xe(Ae,We,dt,Ge){var je,Fe,ce=0;Ae.level>0?(Ae.strm.data_type===d&&(Ae.strm.data_type=ke(Ae)),ve(Ae,Ae.l_desc),ve(Ae,Ae.d_desc),ce=Pe(Ae),je=Ae.opt_len+3+7>>>3,Fe=Ae.static_len+3+7>>>3,Fe<=je&&(je=Fe)):je=Fe=dt+5,dt+4<=je&&We!==-1?ft(Ae,We,dt,Ge):Ae.strategy===g||Fe===je?(be(Ae,(r<<1)+(Ge?1:0),3),J(Ae,ee,G)):(be(Ae,(l<<1)+(Ge?1:0),3),de(Ae,Ae.l_desc.max_code+1,Ae.d_desc.max_code+1,ce+1),J(Ae,Ae.dyn_ltree,Ae.dyn_dtree)),oe(Ae),Ge&&Le(Ae)}function Bt(Ae,We,dt){return Ae.pending_buf[Ae.d_buf+Ae.last_lit*2]=We>>>8&255,Ae.pending_buf[Ae.d_buf+Ae.last_lit*2+1]=We&255,Ae.pending_buf[Ae.l_buf+Ae.last_lit]=dt&255,Ae.last_lit++,We===0?Ae.dyn_ltree[dt*2]++:(Ae.matches++,We--,Ae.dyn_ltree[(K[dt]+i+1)*2]++,Ae.dyn_dtree[De(We)*2]++),Ae.last_lit===Ae.lit_bufsize-1}},cRFk:function(S,F,v){S.exports=v.p+"static/RepositoryNoneData.828085a8.png"},"cf+g":function(S,F,v){S.exports=v.p+"static/mark.ad150797.svg"},csWT:function(S,F,v){S.exports=v.p+"static/choose.4ad1045f.svg"},cv67:function(S,F,v){(function(w,h){S.exports=F=h(v("Ib8C"))})(this,function(w){return function(h){var I=w,m=I.lib,g=m.WordArray,a=m.Hasher,f=I.algo,d=[];(function(){for(var s=0;s<64;s++)d[s]=h.abs(h.sin(s+1))*4294967296|0})();var u=f.MD5=a.extend({_doReset:function(){this._hash=new g.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(s,e){for(var i=0;i<16;i++){var _=e+i,b=s[_];s[_]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var y=this._hash.words,E=s[e+0],c=s[e+1],C=s[e+2],x=s[e+3],M=s[e+4],k=s[e+5],T=s[e+6],R=s[e+7],P=s[e+8],B=s[e+9],W=s[e+10],z=s[e+11],H=s[e+12],ee=s[e+13],G=s[e+14],U=s[e+15],K=y[0],L=y[1],D=y[2],j=y[3];K=o(K,L,D,j,E,7,d[0]),j=o(j,K,L,D,c,12,d[1]),D=o(D,j,K,L,C,17,d[2]),L=o(L,D,j,K,x,22,d[3]),K=o(K,L,D,j,M,7,d[4]),j=o(j,K,L,D,k,12,d[5]),D=o(D,j,K,L,T,17,d[6]),L=o(L,D,j,K,R,22,d[7]),K=o(K,L,D,j,P,7,d[8]),j=o(j,K,L,D,B,12,d[9]),D=o(D,j,K,L,W,17,d[10]),L=o(L,D,j,K,z,22,d[11]),K=o(K,L,D,j,H,7,d[12]),j=o(j,K,L,D,ee,12,d[13]),D=o(D,j,K,L,G,17,d[14]),L=o(L,D,j,K,U,22,d[15]),K=r(K,L,D,j,c,5,d[16]),j=r(j,K,L,D,T,9,d[17]),D=r(D,j,K,L,z,14,d[18]),L=r(L,D,j,K,E,20,d[19]),K=r(K,L,D,j,k,5,d[20]),j=r(j,K,L,D,W,9,d[21]),D=r(D,j,K,L,U,14,d[22]),L=r(L,D,j,K,M,20,d[23]),K=r(K,L,D,j,B,5,d[24]),j=r(j,K,L,D,G,9,d[25]),D=r(D,j,K,L,x,14,d[26]),L=r(L,D,j,K,P,20,d[27]),K=r(K,L,D,j,ee,5,d[28]),j=r(j,K,L,D,C,9,d[29]),D=r(D,j,K,L,R,14,d[30]),L=r(L,D,j,K,H,20,d[31]),K=l(K,L,D,j,k,4,d[32]),j=l(j,K,L,D,P,11,d[33]),D=l(D,j,K,L,z,16,d[34]),L=l(L,D,j,K,G,23,d[35]),K=l(K,L,D,j,c,4,d[36]),j=l(j,K,L,D,M,11,d[37]),D=l(D,j,K,L,R,16,d[38]),L=l(L,D,j,K,W,23,d[39]),K=l(K,L,D,j,ee,4,d[40]),j=l(j,K,L,D,E,11,d[41]),D=l(D,j,K,L,x,16,d[42]),L=l(L,D,j,K,T,23,d[43]),K=l(K,L,D,j,B,4,d[44]),j=l(j,K,L,D,H,11,d[45]),D=l(D,j,K,L,U,16,d[46]),L=l(L,D,j,K,C,23,d[47]),K=n(K,L,D,j,E,6,d[48]),j=n(j,K,L,D,R,10,d[49]),D=n(D,j,K,L,G,15,d[50]),L=n(L,D,j,K,k,21,d[51]),K=n(K,L,D,j,H,6,d[52]),j=n(j,K,L,D,x,10,d[53]),D=n(D,j,K,L,W,15,d[54]),L=n(L,D,j,K,c,21,d[55]),K=n(K,L,D,j,P,6,d[56]),j=n(j,K,L,D,U,10,d[57]),D=n(D,j,K,L,T,15,d[58]),L=n(L,D,j,K,ee,21,d[59]),K=n(K,L,D,j,M,6,d[60]),j=n(j,K,L,D,z,10,d[61]),D=n(D,j,K,L,C,15,d[62]),L=n(L,D,j,K,B,21,d[63]),y[0]=y[0]+K|0,y[1]=y[1]+L|0,y[2]=y[2]+D|0,y[3]=y[3]+j|0},_doFinalize:function(){var s=this._data,e=s.words,i=this._nDataBytes*8,_=s.sigBytes*8;e[_>>>5]|=128<<24-_%32;var b=h.floor(i/4294967296),y=i;e[(_+64>>>9<<4)+15]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,e[(_+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,s.sigBytes=(e.length+1)*4,this._process();for(var E=this._hash,c=E.words,C=0;C<4;C++){var x=c[C];c[C]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}return E},clone:function(){var s=a.clone.call(this);return s._hash=this._hash.clone(),s}});function o(s,e,i,_,b,y,E){var c=s+(e&i|~e&_)+b+E;return(c<<y|c>>>32-y)+e}function r(s,e,i,_,b,y,E){var c=s+(e&_|i&~_)+b+E;return(c<<y|c>>>32-y)+e}function l(s,e,i,_,b,y,E){var c=s+(e^i^_)+b+E;return(c<<y|c>>>32-y)+e}function n(s,e,i,_,b,y,E){var c=s+(i^(e|~_))+b+E;return(c<<y|c>>>32-y)+e}I.MD5=a._createHelper(u),I.HmacMD5=a._createHmacHelper(u)}(Math),w.MD5})},dPi7:function(S,F,v){S.exports=v.p+"static/appoint1.9457cf22.svg"},dTJi:function(S,F,v){},dViP:function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAATxJREFUWEftmE9Kw1AQxr8ZYqhYoWL34kJwW/QIeoku2q7SI/QMPUK76z16BG/gQtxXurBiScMbeWIQxDLTQOITXhbJ4s2f7/0yYfKG8HWJCGE8Pkeed+HcMYqCy7VankniwPyONF1hNnshIvF5yN8ky46w3V6iKE5rSa4FTZJXtFpPNJ/v6JPMcHj1Z2JKsV7UYvFIkmVdbDYX2iYaWW+3n0lGo2vk+UkjCbUkafpGMhj0ai9gTcj3a3Mk/f6N1b4JuyhIo/yPCTl3B2AC4Ezb5Y/1NYApmJcWPzshkSVEOpagv9iswXxv8bULcu7BEnCvDfOtxT8K0ihFQpFQ/Mq0GoiEIqG9BIJrriK+W08qdPyafj8qF89hjvZedljcytZRkIYuwINicEfp4IYNoY1jfJEFNbAqqz6Ukd4H/d3NFUaXf7AAAAAASUVORK5CYII="},dejd:function(S,F,v){},djh8:function(S,F,v){S.exports=v.p+"static/qrCode.42927872.png"},dmUQ:function(S,F,v){"use strict";var w=v("Ff2n"),h=v("rePB"),I=v("1OyB"),m=v("vuIU"),g=v("Ji7U"),a=v("md7G"),f=v("foSv"),d=v("cDcd"),u=v.n(d),o=v("TSYQ"),r=v.n(o),l=v("4IlW");function n(P,B){var W=Object.keys(P);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(P);B&&(z=z.filter(function(H){return Object.getOwnPropertyDescriptor(P,H).enumerable})),W.push.apply(W,z)}return W}function s(P){for(var B=1;B<arguments.length;B++){var W=arguments[B]!=null?arguments[B]:{};B%2?n(Object(W),!0).forEach(function(z){Object(h.a)(P,z,W[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(W)):n(Object(W)).forEach(function(z){Object.defineProperty(P,z,Object.getOwnPropertyDescriptor(W,z))})}return P}function e(P){var B=i();return function(){var z=Object(f.a)(P),H;if(B){var ee=Object(f.a)(this).constructor;H=Reflect.construct(z,arguments,ee)}else H=z.apply(this,arguments);return Object(a.a)(this,H)}}function i(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(P){return!1}}function _(){}function b(P){P.preventDefault()}var y=function(B){return B.replace(/[^\w.-]+/g,"")},E=200,c=600,C=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,x=function(B){return B!=null},M=function(B,W){return W===B||typeof W=="number"&&typeof B=="number"&&isNaN(W)&&isNaN(B)},k=function(P){Object(g.a)(W,P);var B=e(W);function W(z){var H;Object(I.a)(this,W),H=B.call(this,z),H.onKeyDown=function(U){var K=H.props,L=K.onKeyDown,D=K.onPressEnter;if(U.keyCode===l.a.UP){var j=H.getRatio(U);H.up(U,j,null),H.stop()}else if(U.keyCode===l.a.DOWN){var Z=H.getRatio(U);H.down(U,Z,null),H.stop()}else U.keyCode===l.a.ENTER&&D&&D(U);if(H.recordCursorPosition(),H.lastKeyCode=U.keyCode,L){for(var ie=arguments.length,pe=new Array(ie>1?ie-1:0),Ee=1;Ee<ie;Ee++)pe[Ee-1]=arguments[Ee];L.apply(void 0,[U].concat(pe))}},H.onKeyUp=function(U){var K=H.props.onKeyUp;if(H.stop(),H.recordCursorPosition(),K){for(var L=arguments.length,D=new Array(L>1?L-1:0),j=1;j<L;j++)D[j-1]=arguments[j];K.apply(void 0,[U].concat(D))}},H.onChange=function(U){var K=H.props.onChange;H.state.focused&&(H.inputting=!0),H.rawInput=H.props.parser(H.getValueFromEvent(U)),H.setState({inputValue:H.rawInput}),K(H.toNumber(H.rawInput))},H.onMouseUp=function(){var U=H.props.onMouseUp;H.recordCursorPosition(),U&&U.apply(void 0,arguments)},H.onFocus=function(){var U;H.setState({focused:!0}),(U=H.props).onFocus.apply(U,arguments)},H.onBlur=function(){var U=H.props.onBlur;H.inputting=!1,H.setState({focused:!1});var K=H.getCurrentValidValue(H.state.inputValue),L=H.setValue(K,_);if(U){var D=H.input.value,j=H.getInputDisplayValue({focus:!1,value:L});H.input.value=j&&Number(j),U.apply(void 0,arguments),H.input.value=D}},H.getRatio=function(U){var K=1;return U.metaKey||U.ctrlKey?K=.1:U.shiftKey&&(K=10),K},H.getFullNum=function(U){return isNaN(U)?U:/e/i.test(String(U))?Number(U).toFixed(18).replace(/\.?0+$/,""):U},H.getPrecision=function(U){if(x(H.props.precision))return H.props.precision;var K=String(U);if(K.indexOf("e-")>=0)return parseInt(K.slice(K.indexOf("e-")+2),10);var L=0;return K.indexOf(".")>=0&&(L=K.length-K.indexOf(".")-1),L},H.getInputDisplayValue=function(U){var K=U||H.state,L=K.focused,D=K.inputValue,j=K.value,Z;L?Z=D:Z=H.toPrecisionAsStep(j),Z==null&&(Z="");var ie=H.formatWrapper(Z);return x(H.props.decimalSeparator)&&(ie=ie.toString().replace(".",H.props.decimalSeparator)),ie},H.recordCursorPosition=function(){try{H.cursorStart=H.input.selectionStart,H.cursorEnd=H.input.selectionEnd,H.currentValue=H.input.value,H.cursorBefore=H.input.value.substring(0,H.cursorStart),H.cursorAfter=H.input.value.substring(H.cursorEnd)}catch(U){}},H.restoreByAfter=function(U){if(U===void 0)return!1;var K=H.input.value,L=K.lastIndexOf(U);if(L===-1)return!1;var D=H.cursorBefore.length;return H.lastKeyCode===l.a.DELETE&&H.cursorBefore.charAt(D-1)===U[0]?(H.fixCaret(D,D),!0):L+U.length===K.length?(H.fixCaret(L,L),!0):!1},H.partRestoreByAfter=function(U){return U===void 0?!1:Array.prototype.some.call(U,function(K,L){var D=U.substring(L);return H.restoreByAfter(D)})},H.isNotCompleteNumber=function(U){return isNaN(U)||U===""||U===null||U&&U.toString().indexOf(".")===U.toString().length-1},H.stop=function(){H.autoStepTimer&&clearTimeout(H.autoStepTimer)},H.down=function(U,K,L){H.pressingUpOrDown=!0,H.step("down",U,K,L)},H.up=function(U,K,L){H.pressingUpOrDown=!0,H.step("up",U,K,L)},H.saveInput=function(U){H.input=U};var ee=z.value;ee===void 0&&(ee=z.defaultValue),H.state={focused:z.autoFocus};var G=H.getValidValue(H.toNumber(ee));return H.state=s(s({},H.state),{},{inputValue:H.toPrecisionAsStep(G),value:G}),H}return Object(m.a)(W,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(H){var ee=this.props,G=ee.value,U=ee.onChange,K=ee.max,L=ee.min,D=this.state.focused;if(H){if(!M(H.value,G)||!M(H.max,K)||!M(H.min,L)){var j=D?G:this.getValidValue(G),Z;this.pressingUpOrDown?Z=j:this.inputting?Z=this.rawInput:Z=this.toPrecisionAsStep(j),this.setState({value:j,inputValue:Z})}var ie="value"in this.props?G:this.state.value;"max"in this.props&&H.max!==K&&typeof ie=="number"&&ie>K&&U&&U(K),"min"in this.props&&H.min!==L&&typeof ie=="number"&&ie<L&&U&&U(L)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var pe=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===l.a.BACKSPACE?pe=this.cursorStart-1:this.lastKeyCode===l.a.DELETE&&(pe=this.cursorStart):pe=this.input.value.length,this.fixCaret(pe,pe)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case l.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case l.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(Ee){}if(this.lastKeyCode=null,!this.pressingUpOrDown)return;this.props.focusOnUpDown&&this.state.focused&&(document.activeElement!==this.input&&this.focus())}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(H){var ee=H;return ee===""?ee="":this.isNotCompleteNumber(parseFloat(ee))?ee=this.state.value:ee=this.getValidValue(ee),this.toNumber(ee)}},{key:"getValueFromEvent",value:function(H){var ee=H.target.value.trim().replace(/。/g,".");return x(this.props.decimalSeparator)&&(ee=ee.replace(this.props.decimalSeparator,".")),ee}},{key:"getValidValue",value:function(H){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,U=parseFloat(H);return isNaN(U)?H:(U<ee&&(U=ee),U>G&&(U=G),U)}},{key:"setValue",value:function(H,ee){var G=this.props.precision,U=this.isNotCompleteNumber(parseFloat(H))?null:parseFloat(H),K=this.state.value,L=K===void 0?null:K,D=this.state.inputValue,j=D===void 0?null:D,Z=typeof U=="number"?U.toFixed(G):"".concat(U),ie=U!==L||Z!=="".concat(j);return"value"in this.props?(j=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:j},ee)):this.setState({value:U,inputValue:this.toPrecisionAsStep(H)},ee),ie&&this.props.onChange(U),U}},{key:"getMaxPrecision",value:function(H){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,G=this.props,U=G.precision,K=G.step;if(x(U))return U;var L=this.getPrecision(ee),D=this.getPrecision(K),j=this.getPrecision(H);return H?Math.max(j,L+D):L+D}},{key:"getPrecisionFactor",value:function(H){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,G=this.getMaxPrecision(H,ee);return Math.pow(10,G)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(H){return this.props.formatter?this.props.formatter(H):H}},{key:"toPrecisionAsStep",value:function(H){if(this.isNotCompleteNumber(H)||H==="")return H;var ee=Math.abs(this.getMaxPrecision(H));return isNaN(ee)?H.toString():Number(H).toFixed(ee)}},{key:"toNumber",value:function(H){var ee=this.props.precision,G=this.state.focused,U=H&&H.length>16&&G;return this.isNotCompleteNumber(H)||U?H:x(ee)?Math.round(H*Math.pow(10,ee))/Math.pow(10,ee):Number(H)}},{key:"upStep",value:function(H,ee){var G=this.props.step,U=this.getPrecisionFactor(H,ee),K=Math.abs(this.getMaxPrecision(H,ee)),L=((U*H+U*G*ee)/U).toFixed(K);return this.toNumber(L)}},{key:"downStep",value:function(H,ee){var G=this.props.step,U=this.getPrecisionFactor(H,ee),K=Math.abs(this.getMaxPrecision(H,ee)),L=((U*H-U*G*ee)/U).toFixed(K);return this.toNumber(L)}},{key:"step",value:function(H,ee){var G=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,K=arguments.length>3?arguments[3]:void 0;this.stop(),ee&&(ee.persist(),ee.preventDefault());var L=this.props;if(L.disabled)return;var D=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(D))return;var j=this["".concat(H,"Step")](D,U),Z=j>L.max||j<L.min;if(j>L.max?j=L.max:j<L.min&&(j=L.min),this.setValue(j,null),this.setState({focused:!0},function(){G.pressingUpOrDown=!1}),Z)return;this.autoStepTimer=setTimeout(function(){G[H](ee,U,!0)},K?E:c)}},{key:"fixCaret",value:function(H,ee){if(H===void 0||ee===void 0||!this.input||!this.input.value)return;try{var G=this.input.selectionStart,U=this.input.selectionEnd;(H!==G||ee!==U)&&this.input.setSelectionRange(H,ee)}catch(K){}}},{key:"render",value:function(){var H,ee=this.props,G=ee.prefixCls,U=ee.disabled,K=ee.readOnly,L=ee.useTouch,D=ee.autoComplete,j=ee.upHandler,Z=ee.downHandler,ie=ee.className,pe=ee.max,Ee=ee.min,De=ee.style,q=ee.title,be=ee.onMouseEnter,ye=ee.onMouseLeave,le=ee.onMouseOver,ue=ee.onMouseOut,ne=ee.required,xe=ee.onClick,$=ee.tabIndex,oe=ee.type,Le=ee.placeholder,te=ee.id,Y=ee.inputMode,X=ee.pattern,J=ee.step,ve=ee.maxLength,he=ee.autoFocus,Ce=ee.name,Pe=ee.onPaste,de=ee.onInput,ke=Object(w.a)(ee,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),me=this.state,Be=me.value,ft=me.focused,vt=r()(G,(H={},Object(h.a)(H,ie,!!ie),Object(h.a)(H,"".concat(G,"-disabled"),U),Object(h.a)(H,"".concat(G,"-focused"),ft),H)),Xe={};Object.keys(ke).forEach(function(_e){(_e.substr(0,5)==="data-"||_e.substr(0,5)==="aria-"||_e==="role")&&(Xe[_e]=ke[_e])});var Bt=!K&&!U,Ae=this.getInputDisplayValue(null),We=(Be||Be===0)&&(isNaN(Be)||Number(Be)>=pe),dt=(Be||Be===0)&&(isNaN(Be)||Number(Be)<=Ee),Ge=We||U||K,je=dt||U||K,Fe=r()("".concat(G,"-handler"),"".concat(G,"-handler-up"),Object(h.a)({},"".concat(G,"-handler-up-disabled"),Ge)),ce=r()("".concat(G,"-handler"),"".concat(G,"-handler-down"),Object(h.a)({},"".concat(G,"-handler-down-disabled"),je)),we=L?{onTouchStart:Ge?_:this.up,onTouchEnd:this.stop}:{onMouseDown:Ge?_:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},se=L?{onTouchStart:je?_:this.down,onTouchEnd:this.stop}:{onMouseDown:je?_:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return u.a.createElement("div",{className:vt,style:De,title:q,onMouseEnter:be,onMouseLeave:ye,onMouseOver:le,onMouseOut:ue,onFocus:function(){return null},onBlur:function(){return null}},u.a.createElement("div",{className:"".concat(G,"-handler-wrap")},u.a.createElement("span",Object.assign({unselectable:"on"},we,{role:"button","aria-label":"Increase Value","aria-disabled":Ge,className:Fe}),j||u.a.createElement("span",{unselectable:"on",className:"".concat(G,"-handler-up-inner"),onClick:b})),u.a.createElement("span",Object.assign({unselectable:"on"},se,{role:"button","aria-label":"Decrease Value","aria-disabled":je,className:ce}),Z||u.a.createElement("span",{unselectable:"on",className:"".concat(G,"-handler-down-inner"),onClick:b}))),u.a.createElement("div",{className:"".concat(G,"-input-wrap")},u.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ee,"aria-valuemax":pe,"aria-valuenow":Be,required:ne,type:oe,placeholder:Le,onPaste:Pe,onClick:xe,onMouseUp:this.onMouseUp,className:"".concat(G,"-input"),tabIndex:$,autoComplete:D,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Bt?this.onKeyDown:_,onKeyUp:Bt?this.onKeyUp:_,autoFocus:he,maxLength:ve,readOnly:K,disabled:U,max:pe,min:Ee,step:J,name:Ce,title:q,id:te,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Ae),pattern:X,inputMode:Y,onInput:de},Xe))))}}]),W}(u.a.Component);k.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:C,min:-C,step:1,style:{},onChange:_,onKeyDown:_,onPressEnter:_,onFocus:_,onBlur:_,parser:y,required:!1,autoComplete:"off"};var T=k,R=F.a=T},e7zE:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("3y9D"),v("WYAk"))})(this,function(w){return function(){var h=w,I=h.lib,m=I.Base,g=I.WordArray,a=h.algo,f=a.SHA1,d=a.HMAC,u=a.PBKDF2=m.extend({cfg:m.extend({keySize:128/32,hasher:f,iterations:1}),init:function(o){this.cfg=this.cfg.extend(o)},compute:function(o,r){for(var l=this.cfg,n=d.create(l.hasher,o),s=g.create(),e=g.create([1]),i=s.words,_=e.words,b=l.keySize,y=l.iterations;i.length<b;){var E=n.update(r).finalize(e);n.reset();for(var c=E.words,C=c.length,x=E,M=1;M<y;M++){x=n.finalize(x),n.reset();for(var k=x.words,T=0;T<C;T++)c[T]^=k[T]}s.concat(E),_[0]++}return s.sigBytes=b*4,s}});h.PBKDF2=function(o,r,l){return u.create(l).compute(o,r)}}(),w.PBKDF2})},eP3c:function(S,F,v){"use strict";function w(ce){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(se){return typeof se}:w=function(se){return se&&typeof Symbol=="function"&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se},w(ce)}Object.defineProperty(F,"__esModule",{value:!0}),F.inflateReset=de,F.inflateReset2=ke,F.inflateResetKeep=Pe,F.inflateInit=Be,F.inflateInit2=me,F.inflate=We,F.inflateEnd=dt,F.inflateGetHeader=Ge,F.inflateSetDictionary=je,F.inflateInfo=F.Z_DEFLATED=F.Z_BUF_ERROR=F.Z_MEM_ERROR=F.Z_DATA_ERROR=F.Z_STREAM_ERROR=F.Z_NEED_DICT=F.Z_STREAM_END=F.Z_OK=F.Z_TREES=F.Z_BLOCK=F.Z_FINISH=void 0;var h=u(v("6BzB")),I=f(v("xlC8")),m=f(v("QV2g")),g=f(v("sjKO")),a=f(v("JSwD"));function f(ce){return ce&&ce.__esModule?ce:{default:ce}}function d(){if(typeof WeakMap!="function")return null;var ce=new WeakMap;return d=function(){return ce},ce}function u(ce){if(ce&&ce.__esModule)return ce;if(ce===null||w(ce)!=="object"&&typeof ce!="function")return{default:ce};var we=d();if(we&&we.has(ce))return we.get(ce);var se={},_e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ne in ce)if(Object.prototype.hasOwnProperty.call(ce,Ne)){var Q=_e?Object.getOwnPropertyDescriptor(ce,Ne):null;Q&&(Q.get||Q.set)?Object.defineProperty(se,Ne,Q):se[Ne]=ce[Ne]}return se.default=ce,we&&we.set(ce,se),se}var o=0,r=1,l=2,n=4;F.Z_FINISH=n;var s=5;F.Z_BLOCK=s;var e=6;F.Z_TREES=e;var i=0;F.Z_OK=i;var _=1;F.Z_STREAM_END=_;var b=2;F.Z_NEED_DICT=b;var y=-2;F.Z_STREAM_ERROR=y;var E=-3;F.Z_DATA_ERROR=E;var c=-4;F.Z_MEM_ERROR=c;var C=-5;F.Z_BUF_ERROR=C;var x=8;F.Z_DEFLATED=x;var M=1,k=2,T=3,R=4,P=5,B=6,W=7,z=8,H=9,ee=10,G=11,U=12,K=13,L=14,D=15,j=16,Z=17,ie=18,pe=19,Ee=20,De=21,q=22,be=23,ye=24,le=25,ue=26,ne=27,xe=28,$=29,oe=30,Le=31,te=32,Y=852,X=592,J=15,ve=J;function he(ce){return(ce>>>24&255)+(ce>>>8&65280)+((ce&65280)<<8)+((ce&255)<<24)}function Ce(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new h.Buf16(320),this.work=new h.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Pe(ce){var we;return!ce||!ce.state?y:(we=ce.state,ce.total_in=ce.total_out=we.total=0,ce.msg="",we.wrap&&(ce.adler=we.wrap&1),we.mode=M,we.last=0,we.havedict=0,we.dmax=32768,we.head=null,we.hold=0,we.bits=0,we.lencode=we.lendyn=new h.Buf32(Y),we.distcode=we.distdyn=new h.Buf32(X),we.sane=1,we.back=-1,i)}function de(ce){var we;return!ce||!ce.state?y:(we=ce.state,we.wsize=0,we.whave=0,we.wnext=0,Pe(ce))}function ke(ce,we){var se,_e;return!ce||!ce.state?y:(_e=ce.state,we<0?(se=0,we=-we):(se=(we>>4)+1,we<48&&(we&=15)),we&&(we<8||we>15)?y:(_e.window!==null&&_e.wbits!==we&&(_e.window=null),_e.wrap=se,_e.wbits=we,de(ce)))}function me(ce,we){var se,_e;return ce?(_e=new Ce,ce.state=_e,_e.window=null,se=ke(ce,we),se!==i&&(ce.state=null),se):y}function Be(ce){return me(ce,ve)}var ft=!0,vt,Xe;function Bt(ce){if(ft){var we;for(vt=new h.Buf32(512),Xe=new h.Buf32(32),we=0;we<144;)ce.lens[we++]=8;for(;we<256;)ce.lens[we++]=9;for(;we<280;)ce.lens[we++]=7;for(;we<288;)ce.lens[we++]=8;for((0,a.default)(r,ce.lens,0,288,vt,0,ce.work,{bits:9}),we=0;we<32;)ce.lens[we++]=5;(0,a.default)(l,ce.lens,0,32,Xe,0,ce.work,{bits:5}),ft=!1}ce.lencode=vt,ce.lenbits=9,ce.distcode=Xe,ce.distbits=5}function Ae(ce,we,se,_e){var Ne,Q=ce.state;return Q.window===null&&(Q.wsize=1<<Q.wbits,Q.wnext=0,Q.whave=0,Q.window=new h.Buf8(Q.wsize)),_e>=Q.wsize?(h.arraySet(Q.window,we,se-Q.wsize,Q.wsize,0),Q.wnext=0,Q.whave=Q.wsize):(Ne=Q.wsize-Q.wnext,Ne>_e&&(Ne=_e),h.arraySet(Q.window,we,se-_e,Ne,Q.wnext),_e-=Ne,_e?(h.arraySet(Q.window,we,se-_e,_e,0),Q.wnext=_e,Q.whave=Q.wsize):(Q.wnext+=Ne,Q.wnext===Q.wsize&&(Q.wnext=0),Q.whave<Q.wsize&&(Q.whave+=Ne))),0}function We(ce,we){var se,_e,Ne,Q,Ue,Ze,Te,He,Ye,st,ut,et,Re,qe,At=0,$e,ht,Rt,pt,wt,Ct,Kt,Vt,dn=new h.Buf8(4),cn,qt,Lt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!ce||!ce.state||!ce.output||!ce.input&&ce.avail_in!==0)return y;se=ce.state,se.mode===U&&(se.mode=K),Ue=ce.next_out,Ne=ce.output,Te=ce.avail_out,Q=ce.next_in,_e=ce.input,Ze=ce.avail_in,He=se.hold,Ye=se.bits,st=Ze,ut=Te,Vt=i;e:for(;;)switch(se.mode){case M:if(se.wrap===0){se.mode=K;break}for(;Ye<16;){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}if(se.wrap&2&&He===35615){se.check=0,dn[0]=He&255,dn[1]=He>>>8&255,se.check=(0,m.default)(se.check,dn,2,0),He=0,Ye=0,se.mode=k;break}if(se.flags=0,se.head&&(se.head.done=!1),!(se.wrap&1)||(((He&255)<<8)+(He>>8))%31){ce.msg="incorrect header check",se.mode=oe;break}if((He&15)!==x){ce.msg="unknown compression method",se.mode=oe;break}if(He>>>=4,Ye-=4,Kt=(He&15)+8,se.wbits===0)se.wbits=Kt;else if(Kt>se.wbits){ce.msg="invalid window size",se.mode=oe;break}se.dmax=1<<Kt,ce.adler=se.check=1,se.mode=He&512?ee:U,He=0,Ye=0;break;case k:for(;Ye<16;){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}if(se.flags=He,(se.flags&255)!==x){ce.msg="unknown compression method",se.mode=oe;break}if(se.flags&57344){ce.msg="unknown header flags set",se.mode=oe;break}se.head&&(se.head.text=He>>8&1),se.flags&512&&(dn[0]=He&255,dn[1]=He>>>8&255,se.check=(0,m.default)(se.check,dn,2,0)),He=0,Ye=0,se.mode=T;case T:for(;Ye<32;){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}se.head&&(se.head.time=He),se.flags&512&&(dn[0]=He&255,dn[1]=He>>>8&255,dn[2]=He>>>16&255,dn[3]=He>>>24&255,se.check=(0,m.default)(se.check,dn,4,0)),He=0,Ye=0,se.mode=R;case R:for(;Ye<16;){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}se.head&&(se.head.xflags=He&255,se.head.os=He>>8),se.flags&512&&(dn[0]=He&255,dn[1]=He>>>8&255,se.check=(0,m.default)(se.check,dn,2,0)),He=0,Ye=0,se.mode=P;case P:if(se.flags&1024){for(;Ye<16;){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}se.length=He,se.head&&(se.head.extra_len=He),se.flags&512&&(dn[0]=He&255,dn[1]=He>>>8&255,se.check=(0,m.default)(se.check,dn,2,0)),He=0,Ye=0}else se.head&&(se.head.extra=null);se.mode=B;case B:if(se.flags&1024&&(et=se.length,et>Ze&&(et=Ze),et&&(se.head&&(Kt=se.head.extra_len-se.length,se.head.extra||(se.head.extra=new Array(se.head.extra_len)),h.arraySet(se.head.extra,_e,Q,et,Kt)),se.flags&512&&(se.check=(0,m.default)(se.check,_e,et,Q)),Ze-=et,Q+=et,se.length-=et),se.length))break e;se.length=0,se.mode=W;case W:if(se.flags&2048){if(Ze===0)break e;et=0;do Kt=_e[Q+et++],se.head&&Kt&&se.length<65536&&(se.head.name+=String.fromCharCode(Kt));while(Kt&&et<Ze);if(se.flags&512&&(se.check=(0,m.default)(se.check,_e,et,Q)),Ze-=et,Q+=et,Kt)break e}else se.head&&(se.head.name=null);se.length=0,se.mode=z;case z:if(se.flags&4096){if(Ze===0)break e;et=0;do Kt=_e[Q+et++],se.head&&Kt&&se.length<65536&&(se.head.comment+=String.fromCharCode(Kt));while(Kt&&et<Ze);if(se.flags&512&&(se.check=(0,m.default)(se.check,_e,et,Q)),Ze-=et,Q+=et,Kt)break e}else se.head&&(se.head.comment=null);se.mode=H;case H:if(se.flags&512){for(;Ye<16;){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}if(He!==(se.check&65535)){ce.msg="header crc mismatch",se.mode=oe;break}He=0,Ye=0}se.head&&(se.head.hcrc=se.flags>>9&1,se.head.done=!0),ce.adler=se.check=0,se.mode=U;break;case ee:for(;Ye<32;){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}ce.adler=se.check=he(He),He=0,Ye=0,se.mode=G;case G:if(se.havedict===0)return ce.next_out=Ue,ce.avail_out=Te,ce.next_in=Q,ce.avail_in=Ze,se.hold=He,se.bits=Ye,b;ce.adler=se.check=1,se.mode=U;case U:if(we===s||we===e)break e;case K:if(se.last){He>>>=Ye&7,Ye-=Ye&7,se.mode=ne;break}for(;Ye<3;){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}se.last=He&1,He>>>=1,Ye-=1;switch(He&3){case 0:se.mode=L;break;case 1:if(Bt(se),se.mode=Ee,we===e){He>>>=2,Ye-=2;break e}break;case 2:se.mode=Z;break;case 3:ce.msg="invalid block type",se.mode=oe}He>>>=2,Ye-=2;break;case L:for(He>>>=Ye&7,Ye-=Ye&7;Ye<32;){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}if((He&65535)!==(He>>>16^65535)){ce.msg="invalid stored block lengths",se.mode=oe;break}if(se.length=He&65535,He=0,Ye=0,se.mode=D,we===e)break e;case D:se.mode=j;case j:if(et=se.length,et){if(et>Ze&&(et=Ze),et>Te&&(et=Te),et===0)break e;h.arraySet(Ne,_e,Q,et,Ue),Ze-=et,Q+=et,Te-=et,Ue+=et,se.length-=et;break}se.mode=U;break;case Z:for(;Ye<14;){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}if(se.nlen=(He&31)+257,He>>>=5,Ye-=5,se.ndist=(He&31)+1,He>>>=5,Ye-=5,se.ncode=(He&15)+4,He>>>=4,Ye-=4,se.nlen>286||se.ndist>30){ce.msg="too many length or distance symbols",se.mode=oe;break}se.have=0,se.mode=ie;case ie:for(;se.have<se.ncode;){for(;Ye<3;){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}se.lens[Lt[se.have++]]=He&7,He>>>=3,Ye-=3}for(;se.have<19;)se.lens[Lt[se.have++]]=0;if(se.lencode=se.lendyn,se.lenbits=7,cn={bits:se.lenbits},Vt=(0,a.default)(o,se.lens,0,19,se.lencode,0,se.work,cn),se.lenbits=cn.bits,Vt){ce.msg="invalid code lengths set",se.mode=oe;break}se.have=0,se.mode=pe;case pe:for(;se.have<se.nlen+se.ndist;){for(;!(At=se.lencode[He&(1<<se.lenbits)-1],$e=At>>>24,ht=At>>>16&255,Rt=At&65535,$e<=Ye);){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}if(Rt<16)He>>>=$e,Ye-=$e,se.lens[se.have++]=Rt;else{if(Rt===16){for(qt=$e+2;Ye<qt;){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}if(He>>>=$e,Ye-=$e,se.have===0){ce.msg="invalid bit length repeat",se.mode=oe;break}Kt=se.lens[se.have-1],et=3+(He&3),He>>>=2,Ye-=2}else if(Rt===17){for(qt=$e+3;Ye<qt;){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}He>>>=$e,Ye-=$e,Kt=0,et=3+(He&7),He>>>=3,Ye-=3}else{for(qt=$e+7;Ye<qt;){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}He>>>=$e,Ye-=$e,Kt=0,et=11+(He&127),He>>>=7,Ye-=7}if(se.have+et>se.nlen+se.ndist){ce.msg="invalid bit length repeat",se.mode=oe;break}for(;et--;)se.lens[se.have++]=Kt}}if(se.mode===oe)break;if(se.lens[256]===0){ce.msg="invalid code -- missing end-of-block",se.mode=oe;break}if(se.lenbits=9,cn={bits:se.lenbits},Vt=(0,a.default)(r,se.lens,0,se.nlen,se.lencode,0,se.work,cn),se.lenbits=cn.bits,Vt){ce.msg="invalid literal/lengths set",se.mode=oe;break}if(se.distbits=6,se.distcode=se.distdyn,cn={bits:se.distbits},Vt=(0,a.default)(l,se.lens,se.nlen,se.ndist,se.distcode,0,se.work,cn),se.distbits=cn.bits,Vt){ce.msg="invalid distances set",se.mode=oe;break}if(se.mode=Ee,we===e)break e;case Ee:se.mode=De;case De:if(Ze>=6&&Te>=258){ce.next_out=Ue,ce.avail_out=Te,ce.next_in=Q,ce.avail_in=Ze,se.hold=He,se.bits=Ye,(0,g.default)(ce,ut),Ue=ce.next_out,Ne=ce.output,Te=ce.avail_out,Q=ce.next_in,_e=ce.input,Ze=ce.avail_in,He=se.hold,Ye=se.bits,se.mode===U&&(se.back=-1);break}for(se.back=0;!(At=se.lencode[He&(1<<se.lenbits)-1],$e=At>>>24,ht=At>>>16&255,Rt=At&65535,$e<=Ye);){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}if(ht&&(ht&240)===0){for(pt=$e,wt=ht,Ct=Rt;!(At=se.lencode[Ct+((He&(1<<pt+wt)-1)>>pt)],$e=At>>>24,ht=At>>>16&255,Rt=At&65535,pt+$e<=Ye);){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}He>>>=pt,Ye-=pt,se.back+=pt}if(He>>>=$e,Ye-=$e,se.back+=$e,se.length=Rt,ht===0){se.mode=ue;break}if(ht&32){se.back=-1,se.mode=U;break}if(ht&64){ce.msg="invalid literal/length code",se.mode=oe;break}se.extra=ht&15,se.mode=q;case q:if(se.extra){for(qt=se.extra;Ye<qt;){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}se.length+=He&(1<<se.extra)-1,He>>>=se.extra,Ye-=se.extra,se.back+=se.extra}se.was=se.length,se.mode=be;case be:for(;!(At=se.distcode[He&(1<<se.distbits)-1],$e=At>>>24,ht=At>>>16&255,Rt=At&65535,$e<=Ye);){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}if((ht&240)===0){for(pt=$e,wt=ht,Ct=Rt;!(At=se.distcode[Ct+((He&(1<<pt+wt)-1)>>pt)],$e=At>>>24,ht=At>>>16&255,Rt=At&65535,pt+$e<=Ye);){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}He>>>=pt,Ye-=pt,se.back+=pt}if(He>>>=$e,Ye-=$e,se.back+=$e,ht&64){ce.msg="invalid distance code",se.mode=oe;break}se.offset=Rt,se.extra=ht&15,se.mode=ye;case ye:if(se.extra){for(qt=se.extra;Ye<qt;){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}se.offset+=He&(1<<se.extra)-1,He>>>=se.extra,Ye-=se.extra,se.back+=se.extra}if(se.offset>se.dmax){ce.msg="invalid distance too far back",se.mode=oe;break}se.mode=le;case le:if(Te===0)break e;if(et=ut-Te,se.offset>et){if(et=se.offset-et,et>se.whave&&se.sane){ce.msg="invalid distance too far back",se.mode=oe;break}et>se.wnext?(et-=se.wnext,Re=se.wsize-et):Re=se.wnext-et,et>se.length&&(et=se.length),qe=se.window}else qe=Ne,Re=Ue-se.offset,et=se.length;et>Te&&(et=Te),Te-=et,se.length-=et;do Ne[Ue++]=qe[Re++];while(--et);se.length===0&&(se.mode=De);break;case ue:if(Te===0)break e;Ne[Ue++]=se.length,Te--,se.mode=De;break;case ne:if(se.wrap){for(;Ye<32;){if(Ze===0)break e;Ze--,He|=_e[Q++]<<Ye,Ye+=8}if(ut-=Te,ce.total_out+=ut,se.total+=ut,ut&&(ce.adler=se.check=se.flags?(0,m.default)(se.check,Ne,ut,Ue-ut):(0,I.default)(se.check,Ne,ut,Ue-ut)),ut=Te,(se.flags?He:he(He))!==se.check){ce.msg="incorrect data check",se.mode=oe;break}He=0,Ye=0}se.mode=xe;case xe:if(se.wrap&&se.flags){for(;Ye<32;){if(Ze===0)break e;Ze--,He+=_e[Q++]<<Ye,Ye+=8}if(He!==(se.total&4294967295)){ce.msg="incorrect length check",se.mode=oe;break}He=0,Ye=0}se.mode=$;case $:Vt=_;break e;case oe:Vt=E;break e;case Le:return c;case te:default:return y}return ce.next_out=Ue,ce.avail_out=Te,ce.next_in=Q,ce.avail_in=Ze,se.hold=He,se.bits=Ye,(se.wsize||ut!==ce.avail_out&&se.mode<oe&&(se.mode<ne||we!==n))&&Ae(ce,ce.output,ce.next_out,ut-ce.avail_out)?(se.mode=Le,c):(st-=ce.avail_in,ut-=ce.avail_out,ce.total_in+=st,ce.total_out+=ut,se.total+=ut,se.wrap&&ut&&(ce.adler=se.check=se.flags?(0,m.default)(se.check,Ne,ut,ce.next_out-ut):(0,I.default)(se.check,Ne,ut,ce.next_out-ut)),ce.data_type=se.bits+(se.last?64:0)+(se.mode===U?128:0)+(se.mode===Ee||se.mode===D?256:0),(st===0&&ut===0||we===n)&&Vt===i&&(Vt=C),Vt)}function dt(ce){if(!ce||!ce.state)return y;var we=ce.state;return we.window&&(we.window=null),ce.state=null,i}function Ge(ce,we){var se;return!ce||!ce.state?y:(se=ce.state,(se.wrap&2)===0?y:(se.head=we,we.done=!1,i))}function je(ce,we){var se=we.length,_e,Ne,Q;return!ce||!ce.state?y:(_e=ce.state,_e.wrap!==0&&_e.mode!==G?y:_e.mode===G&&(Ne=1,Ne=(0,I.default)(Ne,we,se,0),Ne!==_e.check)?E:(Q=Ae(ce,we,se,se),Q?(_e.mode=Le,c):(_e.havedict=1,i)))}var Fe="pako inflate (from Nodeca project)";F.inflateInfo=Fe},"f+oW":function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAA4qEECAAABz0lEQVR4Xu3csU7DQBRE0V1+LNCn5DNT0mN+DCNoQzNjfBVWl/o9T3wYNiiyMq+3fR/+nC4whT7d+CdAaMZZaMhZaKEpASjHM1poSACKsdFCQwJQjI0WGhKAYmy00JAAFGOjhYYEoBgbLTQkAMXYaKEhASjGRgsNCUAxNlpoSACKsdFCQwJQjI0WGhKAYmz0YtDb2+t8ge4pirne9vcxxnO0VAxTjRYaeppUaAq6+GsjV5Y5Oki0h8yizuiHvHnyRQkNaQstNCQAxdhooSEBKMZGCw0JQDE2ejHobezj49A9PY19fI556Bq/Lc9x8dO7P1e9v6AfkwLI3xHLQR8+Os6CX+zoOIvp31zX/zqgX5XQQkMCUIyNFhoSgGJstNCQABRjo4WGBKAYqtEbdD9tzDIP0PhIGPVImE+TMt9NaqOhRrdn5zJ71JvhMmDtjQjdyoV7Qodg7bjQrVy4J3QI1o4L3cqFe0KHYO240K1cuCd0CNaOC93KhXtCh2DtuNCtXLgndAjWjgvdyoV7Qodg7bjQrVy4J3QI1o4L3cqFe0KHYO240K1cuCd0CNaOC93KhXtCh2DtuNCtXLgndAjWjgvdyoV7Qodg7bjQrVy49wXyQzzmd6RVpQAAAABJRU5ErkJggg=="},fAei:function(S,F,v){"use strict";v.d(F,"a",function(){return E.a});var w=v("rePB"),h=v("VTBJ"),I=v("KQm4"),m=v("1OyB"),g=v("vuIU"),a=v("Ji7U"),f=v("LK+K"),d=v("cDcd"),u=v("4IlW"),o=v("Kwbf"),r=v("TSYQ"),l=v.n(r),n=v("sboe"),s=v("OZM5"),e=v("815F"),i=v("ODXe"),_=v("Ff2n"),b=v("+nKL"),y=v("8XRh"),E=v("WaYH"),c=function(Ee,De){var q=Ee.className,be=Ee.style,ye=Ee.motion,le=Ee.motionNodes,ue=Ee.motionType,ne=Ee.onMotionStart,xe=Ee.onMotionEnd,$=Ee.active,oe=Ee.treeNodeRequiredProps,Le=Object(_.a)(Ee,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),te=d.useState(!0),Y=Object(i.a)(te,2),X=Y[0],J=Y[1],ve=d.useContext(n.a),he=ve.prefixCls,Ce=d.useRef(!1),Pe=function(){Ce.current||xe(),Ce.current=!0};return Object(d.useEffect)(function(){le&&ue==="hide"&&X&&J(!1)},[le]),Object(d.useEffect)(function(){return le&&ne(),function(){le&&Pe()}},[]),le?d.createElement(y.b,Object.assign({ref:De,visible:X},ye,{motionAppear:ue==="show",onAppearEnd:Pe,onLeaveEnd:Pe}),function(de,ke){var me=de.className,Be=de.style;return d.createElement("div",{ref:ke,className:l()("".concat(he,"-treenode-motion"),me),style:Be},le.map(function(ft){var vt=ft.data,Xe=vt.key,Bt=Object(_.a)(vt,["key"]),Ae=ft.isStart,We=ft.isEnd;delete Bt.children;var dt=Object(e.f)(Xe,oe);return d.createElement(E.a,Object.assign({},Bt,dt,{active:$,data:ft.data,key:Xe,isStart:Ae,isEnd:We}))}))}):d.createElement(E.a,Object.assign({domRef:De,className:q,style:be},Le,{active:$}))};c.displayName="MotionTreeNode";var C=d.forwardRef(c),x=C;function M(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],De=pe.length,q=Ee.length;if(Math.abs(De-q)!==1)return{add:!1,key:null};function be(ye,le){var ue=new Map;ye.forEach(function(xe){ue.set(xe,!0)});var ne=le.filter(function(xe){return!ue.has(xe)});return ne.length===1?ne[0]:null}return De<q?{add:!0,key:be(pe,Ee)}:{add:!1,key:be(Ee,pe)}}function k(pe,Ee,De){var q=pe.findIndex(function(ue){var ne=ue.data;return ne.key===De}),be=pe[q+1],ye=Ee.findIndex(function(ue){var ne=ue.data;return ne.key===De});if(be){var le=Ee.findIndex(function(ue){var ne=ue.data;return ne.key===be.data.key});return Ee.slice(ye+1,le)}return Ee.slice(ye+1)}var T={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},R=function(){},P="RC_TREE_MOTION_".concat(Math.random()),B={key:P},W={key:P,level:0,index:0,pos:"0",node:B},z={parent:null,children:[],pos:W.pos,data:B,isStart:[],isEnd:[]};function H(pe,Ee,De,q){return Ee===!1||!De?pe:pe.slice(0,Math.ceil(De/q)+1)}function ee(pe){var Ee=pe.data.key,De=pe.pos;return Object(e.e)(Ee,De)}function G(pe){for(var Ee=String(pe.data.key),De=pe;De.parent;)De=De.parent,Ee="".concat(De.data.key," > ").concat(Ee);return Ee}var U=function(Ee,De){var q=Ee.prefixCls,be=Ee.data,ye=Ee.selectable,le=Ee.checkable,ue=Ee.expandedKeys,ne=Ee.selectedKeys,xe=Ee.checkedKeys,$=Ee.loadedKeys,oe=Ee.loadingKeys,Le=Ee.halfCheckedKeys,te=Ee.keyEntities,Y=Ee.disabled,X=Ee.dragging,J=Ee.dragOverNodeKey,ve=Ee.dropPosition,he=Ee.motion,Ce=Ee.height,Pe=Ee.itemHeight,de=Ee.virtual,ke=Ee.focusable,me=Ee.activeItem,Be=Ee.focused,ft=Ee.tabIndex,vt=Ee.onKeyDown,Xe=Ee.onFocus,Bt=Ee.onBlur,Ae=Ee.onActiveChange,We=Ee.onListChangeStart,dt=Ee.onListChangeEnd,Ge=Object(_.a)(Ee,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),je=d.useRef(null);d.useImperativeHandle(De,function(){return{scrollTo:function(Kt){je.current.scrollTo(Kt)}}});var Fe=d.useState(ue),ce=Object(i.a)(Fe,2),we=ce[0],se=ce[1],_e=d.useState(be),Ne=Object(i.a)(_e,2),Q=Ne[0],Ue=Ne[1],Ze=d.useState(be),Te=Object(i.a)(Ze,2),He=Te[0],Ye=Te[1],st=d.useState([]),ut=Object(i.a)(st,2),et=ut[0],Re=ut[1],qe=d.useState(null),At=Object(i.a)(qe,2),$e=At[0],ht=At[1];function Rt(){Ue(be),Ye(be),Re([]),ht(null),dt()}d.useEffect(function(){se(ue);var Ct=M(we,ue);if(Ct.key!==null)if(Ct.add){var Kt=Q.findIndex(function(Tn){var Wt=Tn.data.key;return Wt===Ct.key}),Vt=H(k(Q,be,Ct.key),de,Ce,Pe),dn=Q.slice();dn.splice(Kt+1,0,z),Ye(dn),Re(Vt),ht("show")}else{var cn=be.findIndex(function(Tn){var Wt=Tn.data.key;return Wt===Ct.key}),qt=H(k(be,Q,Ct.key),de,Ce,Pe),Lt=be.slice();Lt.splice(cn+1,0,z),Ye(Lt),Re(qt),ht("hide")}else Q!==be&&(Ue(be),Ye(be))},[ue,be]),d.useEffect(function(){X||Rt()},[X]);var pt=he?He:be,wt={expandedKeys:ue,selectedKeys:ne,loadedKeys:$,loadingKeys:oe,checkedKeys:xe,halfCheckedKeys:Le,dragOverNodeKey:J,dropPosition:ve,keyEntities:te};return d.createElement(d.Fragment,null,Be&&me&&d.createElement("span",{style:T,"aria-live":"assertive"},G(me)),d.createElement("div",{role:"tree"},d.createElement("input",{style:T,disabled:ke===!1||Y,tabIndex:ke!==!1?ft:null,onKeyDown:vt,onFocus:Xe,onBlur:Bt,value:"",onChange:R})),d.createElement(b.a,Object.assign({},Ge,{data:pt,itemKey:ee,height:Ce,fullHeight:!1,virtual:de,itemHeight:Pe,prefixCls:"".concat(q,"-list"),ref:je}),function(Ct){var Kt=Ct.pos,Vt=Ct.data,dn=Vt.key,cn=Object(_.a)(Vt,["key"]),qt=Ct.isStart,Lt=Ct.isEnd,Tn=Object(e.e)(dn,Kt);delete cn.children;var Wt=Object(e.f)(Tn,wt);return d.createElement(x,Object.assign({},cn,Wt,{active:me&&dn===me.data.key,pos:Kt,data:Ct.data,isStart:qt,isEnd:Lt,motion:he,motionNodes:dn===P?et:null,motionType:$e,onMotionStart:We,onMotionEnd:Rt,treeNodeRequiredProps:wt,onMouseMove:function(){Ae(null)}}))}))},K=d.forwardRef(U);K.displayName="NodeList";var L=K,D=v("NvD2"),j=function(pe){Object(a.a)(De,pe);var Ee=Object(f.a)(De);function De(){var q;return Object(m.a)(this,De),q=Ee.apply(this,arguments),q.destroyed=!1,q.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},q.listRef=d.createRef(),q.onNodeDragStart=function(be,ye){var le=q.state,ue=le.expandedKeys,ne=le.keyEntities,xe=q.props.onDragStart,$=ye.props.eventKey;q.dragNode=ye;var oe=Object(s.b)(ue,$);q.setState({dragging:!0,dragNodesKeys:Object(s.g)($,ne)}),q.setExpandedKeys(oe),xe&&xe({event:be,node:Object(e.b)(ye.props)})},q.onNodeDragEnter=function(be,ye){var le=q.state,ue=le.expandedKeys,ne=le.keyEntities,xe=le.dragNodesKeys,$=q.props.onDragEnter,oe=ye.props,Le=oe.pos,te=oe.eventKey;if(!q.dragNode||xe.indexOf(te)!==-1)return;var Y=Object(s.c)(be,ye);if(q.dragNode.props.eventKey===te&&Y===0){q.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){q.setState({dragOverNodeKey:te,dropPosition:Y}),q.delayedDragEnterLogic||(q.delayedDragEnterLogic={}),Object.keys(q.delayedDragEnterLogic).forEach(function(X){clearTimeout(q.delayedDragEnterLogic[X])}),q.delayedDragEnterLogic[Le]=window.setTimeout(function(){if(!q.state.dragging)return;var X=Object(I.a)(ue),J=ne[te];J&&(J.children||[]).length&&(X=Object(s.a)(ue,te)),"expandedKeys"in q.props||q.setExpandedKeys(X),$&&$({event:be,node:Object(e.b)(ye.props),expandedKeys:X})},400)},0)},q.onNodeDragOver=function(be,ye){var le=q.state.dragNodesKeys,ue=q.props.onDragOver,ne=ye.props.eventKey;if(le.indexOf(ne)!==-1)return;if(q.dragNode&&ne===q.state.dragOverNodeKey){var xe=Object(s.c)(be,ye);if(xe===q.state.dropPosition)return;q.setState({dropPosition:xe})}ue&&ue({event:be,node:Object(e.b)(ye.props)})},q.onNodeDragLeave=function(be,ye){var le=q.props.onDragLeave;q.setState({dragOverNodeKey:""}),le&&le({event:be,node:Object(e.b)(ye.props)})},q.onNodeDragEnd=function(be,ye){var le=q.props.onDragEnd;q.setState({dragOverNodeKey:""}),q.cleanDragState(),le&&le({event:be,node:Object(e.b)(ye.props)}),q.dragNode=null},q.onNodeDrop=function(be,ye){var le=q.state,ue=le.dragNodesKeys,ne=ue===void 0?[]:ue,xe=le.dropPosition,$=q.props.onDrop,oe=ye.props,Le=oe.eventKey,te=oe.pos;if(q.setState({dragOverNodeKey:""}),q.cleanDragState(),ne.indexOf(Le)!==-1){Object(o.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Y=Object(s.k)(te),X={event:be,node:Object(e.b)(ye.props),dragNode:q.dragNode?Object(e.b)(q.dragNode.props):null,dragNodesKeys:ne.slice(),dropPosition:xe+Number(Y[Y.length-1]),dropToGap:!1};xe!==0&&(X.dropToGap=!0),$&&$(X),q.dragNode=null},q.cleanDragState=function(){var be=q.state.dragging;be&&q.setState({dragging:!1})},q.onNodeClick=function(be,ye){var le=q.props.onClick;le&&le(be,ye)},q.onNodeDoubleClick=function(be,ye){var le=q.props.onDoubleClick;le&&le(be,ye)},q.onNodeSelect=function(be,ye){var le=q.state.selectedKeys,ue=q.state.keyEntities,ne=q.props,xe=ne.onSelect,$=ne.multiple,oe=ye.selected,Le=ye.key,te=!oe;te?$?le=Object(s.a)(le,Le):le=[Le]:le=Object(s.b)(le,Le);var Y=le.map(function(X){var J=ue[X];return J?J.node:null}).filter(function(X){return X});q.setUncontrolledState({selectedKeys:le}),xe&&xe(le,{event:"select",selected:te,node:ye,selectedNodes:Y,nativeEvent:be.nativeEvent})},q.onNodeCheck=function(be,ye,le){var ue=q.state,ne=ue.keyEntities,xe=ue.checkedKeys,$=ue.halfCheckedKeys,oe=q.props,Le=oe.checkStrictly,te=oe.onCheck,Y=ye.key,X,J={event:"check",node:ye,checked:le,nativeEvent:be.nativeEvent};if(Le){var ve=le?Object(s.a)(xe,Y):Object(s.b)(xe,Y),he=Object(s.b)($,Y);X={checked:ve,halfChecked:he},J.checkedNodes=ve.map(function(Be){return ne[Be]}).filter(function(Be){return Be}).map(function(Be){return Be.node}),q.setUncontrolledState({checkedKeys:ve})}else{var Ce=Object(D.a)([].concat(Object(I.a)(xe),[Y]),!0,ne),Pe=Ce.checkedKeys,de=Ce.halfCheckedKeys;if(!le){var ke=new Set(Pe);ke.delete(Y);var me=Object(D.a)(Array.from(ke),{checked:!1,halfCheckedKeys:de},ne);Pe=me.checkedKeys,de=me.halfCheckedKeys}X=Pe,J.checkedNodes=[],J.checkedNodesPositions=[],J.halfCheckedKeys=de,Pe.forEach(function(Be){var ft=ne[Be];if(!ft)return;var vt=ft.node,Xe=ft.pos;J.checkedNodes.push(vt),J.checkedNodesPositions.push({node:vt,pos:Xe})}),q.setUncontrolledState({checkedKeys:Pe},!1,{halfCheckedKeys:de})}te&&te(X,J)},q.onNodeLoad=function(be){return new Promise(function(ye){q.setState(function(le){var ue=le.loadedKeys,ne=ue===void 0?[]:ue,xe=le.loadingKeys,$=xe===void 0?[]:xe,oe=q.props,Le=oe.loadData,te=oe.onLoad,Y=be.key;if(!Le||ne.indexOf(Y)!==-1||$.indexOf(Y)!==-1)return{};var X=Le(be);return X.then(function(){var J=q.state,ve=J.loadedKeys,he=J.loadingKeys,Ce=Object(s.a)(ve,Y),Pe=Object(s.b)(he,Y);te&&te(Ce,{event:"load",node:be}),q.setUncontrolledState({loadedKeys:Ce}),q.setState({loadingKeys:Pe}),ye()}),{loadingKeys:Object(s.a)($,Y)}})})},q.onNodeMouseEnter=function(be,ye){var le=q.props.onMouseEnter;le&&le({event:be,node:ye})},q.onNodeMouseLeave=function(be,ye){var le=q.props.onMouseLeave;le&&le({event:be,node:ye})},q.onNodeContextMenu=function(be,ye){var le=q.props.onRightClick;le&&(be.preventDefault(),le({event:be,node:ye}))},q.onFocus=function(){var be=q.props.onFocus;q.setState({focused:!0}),be&&be.apply(void 0,arguments)},q.onBlur=function(){var be=q.props.onBlur;q.setState({focused:!1}),q.onActiveChange(null),be&&be.apply(void 0,arguments)},q.getTreeNodeRequiredProps=function(){var be=q.state,ye=be.expandedKeys,le=be.selectedKeys,ue=be.loadedKeys,ne=be.loadingKeys,xe=be.checkedKeys,$=be.halfCheckedKeys,oe=be.dragOverNodeKey,Le=be.dropPosition,te=be.keyEntities;return{expandedKeys:ye||[],selectedKeys:le||[],loadedKeys:ue||[],loadingKeys:ne||[],checkedKeys:xe||[],halfCheckedKeys:$||[],dragOverNodeKey:oe,dropPosition:Le,keyEntities:te}},q.setExpandedKeys=function(be){var ye=q.state.treeData,le=Object(e.d)(ye,be);q.setUncontrolledState({expandedKeys:be,flattenNodes:le},!0)},q.onNodeExpand=function(be,ye){var le=q.state.expandedKeys,ue=q.state.listChanging,ne=q.props,xe=ne.onExpand,$=ne.loadData,oe=ye.key,Le=ye.expanded;if(ue)return;var te=le.indexOf(oe),Y=!Le;if(Object(o.a)(Le&&te!==-1||!Le&&te===-1,"Expand state not sync with index check"),Y?le=Object(s.a)(le,oe):le=Object(s.b)(le,oe),q.setExpandedKeys(le),xe&&xe(le,{node:ye,expanded:Y,nativeEvent:be.nativeEvent}),Y&&$){var X=q.onNodeLoad(ye);X&&X.then(function(){var J=Object(e.d)(q.state.treeData,le);q.setUncontrolledState({flattenNodes:J})})}},q.onListChangeStart=function(){q.setUncontrolledState({listChanging:!0})},q.onListChangeEnd=function(){setTimeout(function(){q.setUncontrolledState({listChanging:!1})})},q.onActiveChange=function(be){var ye=q.state.activeKey,le=q.props.onActiveChange;if(ye===be)return;q.setState({activeKey:be}),be!==null&&q.scrollTo({key:be}),le&&le(be)},q.getActiveItem=function(){var be=q.state,ye=be.activeKey,le=be.flattenNodes;return ye===null?null:le.find(function(ue){var ne=ue.data.key;return ne===ye})||null},q.offsetActiveKey=function(be){var ye=q.state,le=ye.flattenNodes,ue=ye.activeKey,ne=le.findIndex(function(oe){var Le=oe.data.key;return Le===ue});ne===-1&&be<0&&(ne=le.length),ne=(ne+be+le.length)%le.length;var xe=le[ne];if(xe){var $=xe.data.key;q.onActiveChange($)}else q.onActiveChange(null)},q.onKeyDown=function(be){var ye=q.state,le=ye.activeKey,ue=ye.expandedKeys,ne=ye.checkedKeys,xe=q.props,$=xe.onKeyDown,oe=xe.checkable,Le=xe.selectable;switch(be.which){case u.a.UP:{q.offsetActiveKey(-1),be.preventDefault();break}case u.a.DOWN:{q.offsetActiveKey(1),be.preventDefault();break}}var te=q.getActiveItem();if(te&&te.data){var Y=q.getTreeNodeRequiredProps(),X=te.data.isLeaf===!1||!!(te.data.children||[]).length,J=Object(e.b)(Object(h.a)(Object(h.a)({},Object(e.f)(le,Y)),{},{data:te.data,active:!0}));switch(be.which){case u.a.LEFT:{X&&ue.includes(le)?q.onNodeExpand({},J):te.parent&&q.onActiveChange(te.parent.data.key),be.preventDefault();break}case u.a.RIGHT:{X&&!ue.includes(le)?q.onNodeExpand({},J):te.children&&te.children.length&&q.onActiveChange(te.children[0].data.key),be.preventDefault();break}case u.a.ENTER:case u.a.SPACE:{oe&&!J.disabled&&J.checkable!==!1&&!J.disableCheckbox?q.onNodeCheck({},J,!ne.includes(le)):!oe&&Le&&!J.disabled&&J.selectable!==!1&&q.onNodeSelect({},J);break}}}$&&$(be)},q.setUncontrolledState=function(be){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(q.destroyed)return;var ue=!1,ne=!0,xe={};Object.keys(be).forEach(function($){if($ in q.props){ne=!1;return}ue=!0,xe[$]=be[$]}),ue&&(!ye||ne)&&q.setState(Object(h.a)(Object(h.a)({},xe),le))},q.scrollTo=function(be){q.listRef.current.scrollTo(be)},q}return Object(g.a)(De,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var be,ye=this.state,le=ye.focused,ue=ye.flattenNodes,ne=ye.keyEntities,xe=ye.dragging,$=ye.activeKey,oe=this.props,Le=oe.prefixCls,te=oe.className,Y=oe.style,X=oe.showLine,J=oe.focusable,ve=oe.tabIndex,he=ve===void 0?0:ve,Ce=oe.selectable,Pe=oe.showIcon,de=oe.icon,ke=oe.switcherIcon,me=oe.draggable,Be=oe.checkable,ft=oe.checkStrictly,vt=oe.disabled,Xe=oe.motion,Bt=oe.loadData,Ae=oe.filterTreeNode,We=oe.height,dt=oe.itemHeight,Ge=oe.virtual,je=oe.titleRender,Fe=oe.onContextMenu,ce=Object(s.f)(this.props);return d.createElement(n.a.Provider,{value:{prefixCls:Le,selectable:Ce,showIcon:Pe,icon:de,switcherIcon:ke,draggable:me,checkable:Be,checkStrictly:ft,disabled:vt,keyEntities:ne,loadData:Bt,filterTreeNode:Ae,titleRender:je,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},d.createElement("div",{className:l()(Le,te,(be={},Object(w.a)(be,"".concat(Le,"-show-line"),X),Object(w.a)(be,"".concat(Le,"-focused"),le),Object(w.a)(be,"".concat(Le,"-active-focused"),$!==null),be))},d.createElement(L,Object.assign({ref:this.listRef,prefixCls:Le,style:Y,data:ue,disabled:vt,selectable:Ce,checkable:!!Be,motion:Xe,dragging:xe,height:We,itemHeight:dt,virtual:Ge,focusable:J,focused:le,tabIndex:he,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Fe},this.getTreeNodeRequiredProps(),ce))))}}],[{key:"getDerivedStateFromProps",value:function(be,ye){var le=ye.prevProps,ue={prevProps:be};function ne(de){return!le&&de in be||le&&le[de]!==be[de]}var xe;if(ne("treeData")?xe=be.treeData:ne("children")&&(Object(o.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),xe=Object(e.c)(be.children)),xe){ue.treeData=xe;var $=Object(e.a)(xe);ue.keyEntities=Object(h.a)(Object(w.a)({},P,W),$.keyEntities)}var oe=ue.keyEntities||ye.keyEntities;if(ne("expandedKeys")||le&&ne("autoExpandParent"))ue.expandedKeys=be.autoExpandParent||!le&&be.defaultExpandParent?Object(s.e)(be.expandedKeys,oe):be.expandedKeys;else if(!le&&be.defaultExpandAll){var Le=Object(h.a)({},oe);delete Le[P],ue.expandedKeys=Object.keys(Le).map(function(de){return Le[de].key})}else!le&&be.defaultExpandedKeys&&(ue.expandedKeys=be.autoExpandParent||be.defaultExpandParent?Object(s.e)(be.defaultExpandedKeys,oe):be.defaultExpandedKeys);if(ue.expandedKeys||delete ue.expandedKeys,xe||ue.expandedKeys){var te=Object(e.d)(xe||ye.treeData,ue.expandedKeys||ye.expandedKeys);ue.flattenNodes=te}if(be.selectable&&(ne("selectedKeys")?ue.selectedKeys=Object(s.d)(be.selectedKeys,be):!le&&be.defaultSelectedKeys&&(ue.selectedKeys=Object(s.d)(be.defaultSelectedKeys,be))),be.checkable){var Y;if(ne("checkedKeys")?Y=Object(s.j)(be.checkedKeys)||{}:!le&&be.defaultCheckedKeys?Y=Object(s.j)(be.defaultCheckedKeys)||{}:xe&&(Y=Object(s.j)(be.checkedKeys)||{checkedKeys:ye.checkedKeys,halfCheckedKeys:ye.halfCheckedKeys}),Y){var X=Y,J=X.checkedKeys,ve=J===void 0?[]:J,he=X.halfCheckedKeys,Ce=he===void 0?[]:he;if(!be.checkStrictly){var Pe=Object(D.a)(ve,!0,oe);ve=Pe.checkedKeys,Ce=Pe.halfCheckedKeys}ue.checkedKeys=ve,ue.halfCheckedKeys=Ce}}return ne("loadedKeys")&&(ue.loadedKeys=be.loadedKeys),ue}}]),De}(d.Component);j.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},j.TreeNode=E.a;var Z=j,ie=F.b=Z},fcSX:function(S,F,v){"use strict";var w=v("Ff2n"),h=v("1OyB"),I=v("vuIU"),m=v("Ji7U"),g=v("md7G"),a=v("foSv"),f=v("1W/9"),d=v("cDcd"),u=v("rePB"),o=v("JX7q"),r=v("TSYQ"),l=v.n(r),n=v("qx4F"),s=v("4IlW");function e(U){return Array.isArray(U)?U:[U]}var i={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},_=Object.keys(i).filter(function(U){if(typeof document=="undefined")return!1;var K=document.getElementsByTagName("html")[0];return U in(K?K.style:{})})[0],b=i[_];function y(U,K,L,D){U.addEventListener?U.addEventListener(K,L,D):U.attachEvent&&U.attachEvent("on".concat(K),L)}function E(U,K,L,D){U.removeEventListener?U.removeEventListener(K,L,D):U.attachEvent&&U.detachEvent("on".concat(K),L)}function c(U,K){var L=typeof U=="function"?U(K):U;return Array.isArray(L)?L.length===2?L:[L[0],L[1]]:[L]}var C=function(K){return!isNaN(parseFloat(K))&&isFinite(K)},x=!(typeof window!="undefined"&&window.document&&window.document.createElement),M=function U(K,L,D,j){if(!L||L===document||L instanceof Document)return!1;if(L===K.parentNode)return!0;var Z=Math.max(Math.abs(D),Math.abs(j))===Math.abs(j),ie=Math.max(Math.abs(D),Math.abs(j))===Math.abs(D),pe=L.scrollHeight-L.clientHeight,Ee=L.scrollWidth-L.clientWidth,De=document.defaultView.getComputedStyle(L),q=De.overflowY==="auto"||De.overflowY==="scroll",be=De.overflowX==="auto"||De.overflowX==="scroll",ye=pe&&q,le=Ee&&be;return Z&&(!ye||ye&&(L.scrollTop>=pe&&j<0||L.scrollTop<=0&&j>0))||ie&&(!le||le&&(L.scrollLeft>=Ee&&D<0||L.scrollLeft<=0&&D>0))?U(K,L.parentNode,D,j):!1};function k(U){var K=T();return function(){var D=Object(a.a)(U),j;if(K){var Z=Object(a.a)(this).constructor;j=Reflect.construct(D,arguments,Z)}else j=D.apply(this,arguments);return Object(g.a)(this,j)}}function T(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(U){return!1}}var R={},P=function(U){Object(m.a)(L,U);var K=k(L);function L(D){var j;return Object(h.a)(this,L),j=K.call(this,D),j.domFocus=function(){j.dom&&j.dom.focus()},j.removeStartHandler=function(Z){if(Z.touches.length>1)return;j.startPos={x:Z.touches[0].clientX,y:Z.touches[0].clientY}},j.removeMoveHandler=function(Z){if(Z.changedTouches.length>1)return;var ie=Z.currentTarget,pe=Z.changedTouches[0].clientX-j.startPos.x,Ee=Z.changedTouches[0].clientY-j.startPos.y;(ie===j.maskDom||ie===j.handlerDom||ie===j.contentDom&&M(ie,Z.target,pe,Ee))&&Z.cancelable&&Z.preventDefault()},j.transitionEnd=function(Z){var ie=Z.target;E(ie,b,j.transitionEnd),ie.style.transition=""},j.onKeyDown=function(Z){if(Z.keyCode===s.a.ESC){var ie=j.props.onClose;Z.stopPropagation(),ie&&ie(Z)}},j.onWrapperTransitionEnd=function(Z){var ie=j.props,pe=ie.open,Ee=ie.afterVisibleChange;Z.target===j.contentWrapper&&Z.propertyName.match(/transform$/)&&(j.dom.style.transition="",!pe&&j.getCurrentDrawerSome()&&(document.body.style.overflowX="",j.maskDom&&(j.maskDom.style.left="",j.maskDom.style.width="")),Ee&&Ee(!!pe))},j.openLevelTransition=function(){var Z=j.props,ie=Z.open,pe=Z.width,Ee=Z.height,De=j.getHorizontalBoolAndPlacementName(),q=De.isHorizontal,be=De.placementName,ye=j.contentDom?j.contentDom.getBoundingClientRect()[q?"width":"height"]:0,le=(q?pe:Ee)||ye;j.setLevelAndScrolling(ie,be,le)},j.setLevelTransform=function(Z,ie,pe,Ee){var De=j.props,q=De.placement,be=De.levelMove,ye=De.duration,le=De.ease,ue=De.showMask;j.levelDom.forEach(function(ne){ne.style.transition="transform ".concat(ye," ").concat(le),y(ne,b,j.transitionEnd);var xe=Z?pe:0;if(be){var $=c(be,{target:ne,open:Z});xe=Z?$[0]:$[1]||0}var oe=typeof xe=="number"?"".concat(xe,"px"):xe,Le=q==="left"||q==="top"?oe:"-".concat(oe);Le=ue&&q==="right"&&Ee?"calc(".concat(Le," + ").concat(Ee,"px)"):Le,ne.style.transform=xe?"".concat(ie,"(").concat(Le,")"):""})},j.setLevelAndScrolling=function(Z,ie,pe){var Ee=j.props.onChange;if(!x){var De=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(n.a)(!0):0;j.setLevelTransform(Z,ie,pe,De),j.toggleScrollingToDrawerAndBody(De)}Ee&&Ee(Z)},j.toggleScrollingToDrawerAndBody=function(Z){var ie=j.props,pe=ie.getOpenCount,Ee=ie.getContainer,De=ie.showMask,q=ie.open,be=Ee&&Ee(),ye=pe&&pe();if(be&&be.parentNode===document.body&&De){var le=["touchstart"],ue=[document.body,j.maskDom,j.handlerDom,j.contentDom];q&&document.body.style.overflow!=="hidden"?(Z&&j.addScrollingEffect(Z),ye===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",ue.forEach(function(ne,xe){if(!ne)return;y(ne,le[xe]||"touchmove",xe?j.removeMoveHandler:j.removeStartHandler,j.passive)})):j.getCurrentDrawerSome()&&(ye||(document.body.style.overflow=""),document.body.style.touchAction="",Z&&j.remScrollingEffect(Z),ue.forEach(function(ne,xe){if(!ne)return;E(ne,le[xe]||"touchmove",xe?j.removeMoveHandler:j.removeStartHandler,j.passive)}))}},j.addScrollingEffect=function(Z){var ie=j.props,pe=ie.placement,Ee=ie.duration,De=ie.ease,q=ie.getOpenCount,be=ie.switchScrollingEffect,ye=q&&q();ye===1&&be();var le="width ".concat(Ee," ").concat(De),ue="transform ".concat(Ee," ").concat(De);j.dom.style.transition="none";switch(pe){case"right":j.dom.style.transform="translateX(-".concat(Z,"px)");break;case"top":case"bottom":j.dom.style.width="calc(100% - ".concat(Z,"px)"),j.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(j.timeout),j.timeout=setTimeout(function(){j.dom&&(j.dom.style.transition="".concat(ue,",").concat(le),j.dom.style.width="",j.dom.style.transform="")})},j.remScrollingEffect=function(Z){var ie=j.props,pe=ie.placement,Ee=ie.duration,De=ie.ease,q=ie.getOpenCount,be=ie.switchScrollingEffect,ye=q&&q();ye||be(!0),_&&(document.body.style.overflowX="hidden"),j.dom.style.transition="none";var le,ue="width ".concat(Ee," ").concat(De),ne="transform ".concat(Ee," ").concat(De);switch(pe){case"left":{j.dom.style.width="100%",ue="width 0s ".concat(De," ").concat(Ee);break}case"right":{j.dom.style.transform="translateX(".concat(Z,"px)"),j.dom.style.width="100%",ue="width 0s ".concat(De," ").concat(Ee),j.maskDom&&(j.maskDom.style.left="-".concat(Z,"px"),j.maskDom.style.width="calc(100% + ".concat(Z,"px)"));break}case"top":case"bottom":{j.dom.style.width="calc(100% + ".concat(Z,"px)"),j.dom.style.height="100%",j.dom.style.transform="translateZ(0)",le="height 0s ".concat(De," ").concat(Ee);break}default:break}clearTimeout(j.timeout),j.timeout=setTimeout(function(){j.dom&&(j.dom.style.transition="".concat(ne,",").concat(le?"".concat(le,","):"").concat(ue),j.dom.style.transform="",j.dom.style.width="",j.dom.style.height="")})},j.getCurrentDrawerSome=function(){return!Object.keys(R).some(function(Z){return R[Z]})},j.getLevelDom=function(Z){var ie=Z.level,pe=Z.getContainer;if(x)return;var Ee=pe&&pe(),De=Ee?Ee.parentNode:null;if(j.levelDom=[],ie==="all"){var q=De?Array.prototype.slice.call(De.children):[];q.forEach(function(be){be.nodeName!=="SCRIPT"&&be.nodeName!=="STYLE"&&be.nodeName!=="LINK"&&be!==Ee&&j.levelDom.push(be)})}else ie&&e(ie).forEach(function(be){document.querySelectorAll(be).forEach(function(ye){j.levelDom.push(ye)})})},j.getHorizontalBoolAndPlacementName=function(){var Z=j.props.placement,ie=Z==="left"||Z==="right",pe="translate".concat(ie?"X":"Y");return{isHorizontal:ie,placementName:pe}},j.state={_self:Object(o.a)(j)},j}return Object(I.a)(L,[{key:"componentDidMount",value:function(){var j=this;if(!x){var Z=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Z=!0,null}}))}catch(q){}this.passive=Z?{passive:!1}:!1}var ie=this.props,pe=ie.open,Ee=ie.getContainer,De=Ee&&Ee();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),pe&&(De&&De.parentNode===document.body&&(R[this.drawerId]=pe),this.openLevelTransition(),this.forceUpdate(function(){j.domFocus()}))}},{key:"componentDidUpdate",value:function(j){var Z=this.props,ie=Z.open,pe=Z.getContainer,Ee=pe&&pe();ie!==j.open&&(ie&&this.domFocus(),Ee&&Ee.parentNode===document.body&&(R[this.drawerId]=!!ie),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var j=this.props,Z=j.getOpenCount,ie=j.open,pe=j.switchScrollingEffect,Ee=typeof Z=="function"&&Z();delete R[this.drawerId],ie&&(this.setLevelTransform(!1),document.body.style.touchAction=""),Ee||(document.body.style.overflow="",pe(!0))}},{key:"render",value:function(){var j,Z=this,ie=this.props,pe=ie.className,Ee=ie.children,De=ie.style,q=ie.width,be=ie.height,ye=ie.defaultOpen,le=ie.open,ue=ie.prefixCls,ne=ie.placement,xe=ie.level,$=ie.levelMove,oe=ie.ease,Le=ie.duration,te=ie.getContainer,Y=ie.handler,X=ie.onChange,J=ie.afterVisibleChange,ve=ie.showMask,he=ie.maskClosable,Ce=ie.maskStyle,Pe=ie.onClose,de=ie.onHandleClick,ke=ie.keyboard,me=ie.getOpenCount,Be=ie.switchScrollingEffect,ft=Object(w.a)(ie,["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","switchScrollingEffect"]),vt=this.dom?le:!1,Xe=l()(ue,(j={},Object(u.a)(j,"".concat(ue,"-").concat(ne),!0),Object(u.a)(j,"".concat(ue,"-open"),vt),Object(u.a)(j,pe||"",!!pe),Object(u.a)(j,"no-mask",!ve),j)),Bt=this.getHorizontalBoolAndPlacementName(),Ae=Bt.placementName,We=ne==="left"||ne==="top"?"-100%":"100%",dt=vt?"":"".concat(Ae,"(").concat(We,")"),Ge=Y&&d.cloneElement(Y,{onClick:function(Fe){Y.props.onClick&&Y.props.onClick(),de&&de(Fe)},ref:function(Fe){Z.handlerDom=Fe}});return d.createElement("div",Object.assign({},ft,{tabIndex:-1,className:Xe,style:De,ref:function(Fe){Z.dom=Fe},onKeyDown:vt&&ke?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),ve&&d.createElement("div",{className:"".concat(ue,"-mask"),onClick:he?Pe:void 0,style:Ce,ref:function(Fe){Z.maskDom=Fe}}),d.createElement("div",{className:"".concat(ue,"-content-wrapper"),style:{transform:dt,msTransform:dt,width:C(q)?"".concat(q,"px"):q,height:C(be)?"".concat(be,"px"):be},ref:function(Fe){Z.contentWrapper=Fe}},d.createElement("div",{className:"".concat(ue,"-content"),ref:function(Fe){Z.contentDom=Fe},onTouchStart:vt&&ve?this.removeStartHandler:void 0,onTouchMove:vt&&ve?this.removeMoveHandler:void 0},Ee),Ge))}}],[{key:"getDerivedStateFromProps",value:function(j,Z){var ie=Z.prevProps,pe=Z._self,Ee={prevProps:j};if(ie!==void 0){var De=j.placement,q=j.level;De!==ie.placement&&(pe.contentDom=null),q!==ie.level&&pe.getLevelDom(j)}return Ee}}]),L}(d.Component);P.defaultProps={switchScrollingEffect:function(){}};var B=P;function W(U){var K=z();return function(){var D=Object(a.a)(U),j;if(K){var Z=Object(a.a)(this).constructor;j=Reflect.construct(D,arguments,Z)}else j=D.apply(this,arguments);return Object(g.a)(this,j)}}function z(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(U){return!1}}var H=function(U){Object(m.a)(L,U);var K=W(L);function L(D){var j;Object(h.a)(this,L),j=K.call(this,D),j.onHandleClick=function(ie){var pe=j.props,Ee=pe.onHandleClick,De=pe.open;if(Ee&&Ee(ie),typeof De=="undefined"){var q=j.state.open;j.setState({open:!q})}},j.onClose=function(ie){var pe=j.props,Ee=pe.onClose,De=pe.open;Ee&&Ee(ie),typeof De=="undefined"&&j.setState({open:!1})};var Z=typeof D.open!="undefined"?D.open:!!D.defaultOpen;return j.state={open:Z},"onMaskClick"in D&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),j}return Object(I.a)(L,[{key:"render",value:function(){var j=this,Z=this.props,ie=Z.defaultOpen,pe=Z.getContainer,Ee=Z.wrapperClassName,De=Z.forceRender,q=Z.handler,be=Object(w.a)(Z,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),ye=this.state.open;if(!pe)return d.createElement("div",{className:Ee,ref:function(ne){j.dom=ne}},d.createElement(B,Object.assign({},be,{open:ye,handler:q,getContainer:function(){return j.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var le=!!q||De;return d.createElement(f.a,{visible:ye,forceRender:le,getContainer:pe,wrapperClassName:Ee},function(ue){var ne=ue.visible,xe=ue.afterClose,$=Object(w.a)(ue,["visible","afterClose"]);return d.createElement(B,Object.assign({},be,$,{open:ne!==void 0?ne:ye,afterVisibleChange:xe!==void 0?xe:be.afterVisibleChange,handler:q,onClose:j.onClose,onHandleClick:j.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(j,Z){var ie=Z.prevProps,pe={prevProps:j};return typeof ie!="undefined"&&j.open!==ie.open&&(pe.open=j.open),pe}}]),L}(d.Component);H.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:d.createElement("div",{className:"drawer-handle"},d.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var ee=H,G=F.a=ee},fxth:function(S,F,v){S.exports={"action-bar-container":"action-bar-container___3Et9N","edit-status":"edit-status___1BgGg","action-bar":"action-bar___Q-6Wi",iconfont:"iconfont___3Ar9E"}},fyJ8:function(S,F,v){"use strict";var w=v("rePB"),h=v("VTBJ"),I=v("Ff2n"),m=v("U8pU"),g=v("cDcd"),a=v.n(g),f=v("TSYQ"),d=v.n(f),u=v("c+Xe"),o=v("sR1s");function r(i){return i&&Object(m.a)(i)==="object"&&!Array.isArray(i)&&!g.isValidElement(i)}function l(i){return typeof i=="string"?!0:Object(u.c)(i)}function n(i,_){var b,y=i.prefixCls,E=i.className,c=i.record,C=i.index,x=i.dataIndex,M=i.render,k=i.children,T=i.component,R=T===void 0?"td":T,P=i.colSpan,B=i.rowSpan,W=i.fixLeft,z=i.fixRight,H=i.firstFixLeft,ee=i.lastFixLeft,G=i.firstFixRight,U=i.lastFixRight,K=i.appendNode,L=i.additionalProps,D=L===void 0?{}:L,j=i.ellipsis,Z=i.align,ie=i.rowType,pe=i.isSticky,Ee="".concat(y,"-cell"),De,q;if(k)q=k;else{var be=Object(o.b)(c,x);if(q=be,M){var ye=M(be,c,C);r(ye)?(q=ye.children,De=ye.props):q=ye}}Object(m.a)(q)==="object"&&!Array.isArray(q)&&!g.isValidElement(q)&&(q=null),j&&(ee||G)&&(q=g.createElement("span",{className:"".concat(Ee,"-content")},q));var le=De||{},ue=le.colSpan,ne=le.rowSpan,xe=le.style,$=le.className,oe=Object(I.a)(le,["colSpan","rowSpan","style","className"]),Le=ue!==void 0?ue:P,te=ne!==void 0?ne:B;if(Le===0||te===0)return null;var Y={},X=typeof W=="number",J=typeof z=="number";X&&(Y.position="sticky",Y.left=W),J&&(Y.position="sticky",Y.right=z);var ve={};Z&&(ve.textAlign=Z);var he,Ce=j===!0?{showTitle:!0}:j;Ce&&(Ce.showTitle||ie==="header")&&(typeof q=="string"||typeof q=="number"?he=q.toString():g.isValidElement(q)&&typeof q.props.children=="string"&&(he=q.props.children));var Pe=Object(h.a)(Object(h.a)(Object(h.a)({title:he},oe),D),{},{colSpan:Le&&Le!==1?Le:null,rowSpan:te&&te!==1?te:null,className:d()(Ee,E,(b={},Object(w.a)(b,"".concat(Ee,"-fix-left"),X),Object(w.a)(b,"".concat(Ee,"-fix-left-first"),H),Object(w.a)(b,"".concat(Ee,"-fix-left-last"),ee),Object(w.a)(b,"".concat(Ee,"-fix-right"),J),Object(w.a)(b,"".concat(Ee,"-fix-right-first"),G),Object(w.a)(b,"".concat(Ee,"-fix-right-last"),U),Object(w.a)(b,"".concat(Ee,"-ellipsis"),j),Object(w.a)(b,"".concat(Ee,"-with-append"),K),Object(w.a)(b,"".concat(Ee,"-fix-sticky"),(X||J)&&pe),b),D.className,$),style:Object(h.a)(Object(h.a)(Object(h.a)(Object(h.a)({},D.style),ve),Y),xe),ref:l(R)?_:null});return g.createElement(R,Object.assign({},Pe),K,q)}var s=g.forwardRef(n);s.displayName="Cell";var e=g.memo(s,function(i,_){return _.shouldCellUpdate?!_.shouldCellUpdate(_.record,i.record):!1});F.a=e},gIYZ:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var w={Backspace:"Backspace",AltLeft:"Alt",AltRight:"Alt",CapsLock:"CapsLock",ContextMenu:"ContextMenu",ControlLeft:"Control",ControlRight:"Control",Enter:"Enter",MetaLeft:"Meta",MetaRight:"Meta",ShiftLeft:"Shift",ShiftRight:"Shift",Tab:"Tab",Delete:"Delete",End:"End",Help:"Help",Home:"Home",Insert:"Insert",PageDown:"PageDown",PageUp:"PageUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",NumLock:"NumLock",NumpadBackspace:"Backspace",NumpadClear:"Clear",Escape:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",F13:"F13",F14:"F14",F15:"F15",F16:"F16",F17:"F17",F18:"F18",F19:"F19",F20:"F20",F21:"F21",F22:"F22",F23:"F23",F24:"F24",F25:"F25",F26:"F26",F27:"F27",F28:"F28",F29:"F29",F30:"F30",F31:"F31",F32:"F32",F33:"F33",F34:"F34",F35:"F35",PrintScreen:"PrintScreen",ScrollLock:"ScrollLock",Pause:"Pause",BrowserBack:"BrowserBack",BrowserFavorites:"BrowserFavorites",BrowserForward:"BrowserForward",BrowserHome:"BrowserHome",BrowserRefresh:"BrowserRefresh",BrowserSearch:"BrowserSearch",BrowserStop:"BrowserStop",Eject:"Eject",LaunchApp1:"LaunchMyComputer",LaunchApp2:"LaunchCalendar",LaunchMail:"LaunchMail",MediaPlayPause:"MediaPlay",MediaStop:"MediaStop",MediaTrackNext:"MediaTrackNext",MediaTrackPrevious:"MediaTrackPrevious",Power:"Power",Sleep:"Sleep",AudioVolumeDown:"AudioVolumeDown",AudioVolumeMute:"AudioVolumeMute",AudioVolumeUp:"AudioVolumeUp",WakeUp:"WakeUp"};F.default=w},gRFJ:function(S,F,v){S.exports=[v("rdUC"),v("ynwM"),v("RELg"),v("DlR+"),v("CrYA"),v("PD8m")]},gaXo:function(module,exports){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(S){return S<10?"0"+S:S}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(S){return rx_escapable.lastIndex=0,rx_escapable.test(S)?'"'+S.replace(rx_escapable,function(F){var v=meta[F];return typeof v=="string"?v:"\\u"+("0000"+F.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+S+'"'}function str(S,F){var v,w,h,I,m=gap,g,a=F[S];a&&typeof a=="object"&&typeof a.toJSON=="function"&&(a=a.toJSON(S)),typeof rep=="function"&&(a=rep.call(F,S,a));switch(typeof a){case"string":return quote(a);case"number":return isFinite(a)?String(a):"null";case"boolean":case"null":return String(a);case"object":if(!a)return"null";if(gap+=indent,g=[],Object.prototype.toString.apply(a)==="[object Array]"){for(I=a.length,v=0;v<I;v+=1)g[v]=str(v,a)||"null";return h=g.length===0?"[]":gap?`[
`+gap+g.join(`,
`+gap)+`
`+m+"]":"["+g.join(",")+"]",gap=m,h}if(rep&&typeof rep=="object")for(I=rep.length,v=0;v<I;v+=1)typeof rep[v]=="string"&&(w=rep[v],h=str(w,a),h&&g.push(quote(w)+(gap?": ":":")+h));else for(w in a)Object.prototype.hasOwnProperty.call(a,w)&&(h=str(w,a),h&&g.push(quote(w)+(gap?": ":":")+h));return h=g.length===0?"{}":gap?`{
`+gap+g.join(`,
`+gap)+`
`+m+"}":"{"+g.join(",")+"}",gap=m,h}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(S,F,v){var w;if(gap="",indent="",typeof v=="number")for(w=0;w<v;w+=1)indent+=" ";else typeof v=="string"&&(indent=v);if(rep=F,F&&typeof F!="function"&&(typeof F!="object"||typeof F.length!="number"))throw new Error("JSON.stringify");return str("",{"":S})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(S,F){var v,w,h=S[F];if(h&&typeof h=="object")for(v in h)Object.prototype.hasOwnProperty.call(h,v)&&(w=walk(h,v),w!==void 0?h[v]=w:delete h[v]);return reviver.call(S,F,h)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(S){return"\\u"+("0000"+S.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},"gb/T":function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("OLod"))})(this,function(w){return w.mode.ECB=function(){var h=w.lib.BlockCipherMode.extend();return h.Encryptor=h.extend({processBlock:function(I,m){this._cipher.encryptBlock(I,m)}}),h.Decryptor=h.extend({processBlock:function(I,m){this._cipher.decryptBlock(I,m)}}),h}(),w.mode.ECB})},gflZ:function(S,F,v){},gp9y:function(S,F,v){},h78n:function(S,F,v){"use strict";v.d(F,"a",function(){return H});var w=v("cDcd"),h=v.n(w),I=v("TSYQ"),m=v.n(I),g={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},a=function(U){var K=U.map(function(){return Object(w.useRef)()}),L=Object(w.useRef)();return Object(w.useEffect)(function(){var D=Date.now(),j=!1;Object.keys(K).forEach(function(Z){var ie=K[Z].current;if(!ie)return;j=!0;var pe=ie.style;pe.transitionDuration=".3s, .3s, .3s, .06s",L.current&&D-L.current<100&&(pe.transitionDuration="0s, 0s")}),j&&(L.current=Date.now())}),[K]};function f(){return f=Object.assign||function(G){for(var U=1;U<arguments.length;U++){var K=arguments[U];for(var L in K)Object.prototype.hasOwnProperty.call(K,L)&&(G[L]=K[L])}return G},f.apply(this,arguments)}function d(G,U){return n(G)||l(G,U)||o(G,U)||u()}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(G,U){if(!G)return;if(typeof G=="string")return r(G,U);var K=Object.prototype.toString.call(G).slice(8,-1);if(K==="Object"&&G.constructor&&(K=G.constructor.name),K==="Map"||K==="Set")return Array.from(G);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return r(G,U)}function r(G,U){(U==null||U>G.length)&&(U=G.length);for(var K=0,L=new Array(U);K<U;K++)L[K]=G[K];return L}function l(G,U){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(G)))return;var K=[],L=!0,D=!1,j=void 0;try{for(var Z=G[Symbol.iterator](),ie;!(L=(ie=Z.next()).done)&&!(K.push(ie.value),U&&K.length===U);L=!0);}catch(pe){D=!0,j=pe}finally{try{!L&&Z.return!=null&&Z.return()}finally{if(D)throw j}}return K}function n(G){if(Array.isArray(G))return G}function s(G,U){if(G==null)return{};var K=e(G,U),L,D;if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(G);for(D=0;D<j.length;D++){if(L=j[D],U.indexOf(L)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(G,L))continue;K[L]=G[L]}}return K}function e(G,U){if(G==null)return{};var K={},L=Object.keys(G),D,j;for(j=0;j<L.length;j++){if(D=L[j],U.indexOf(D)>=0)continue;K[D]=G[D]}return K}var i=function(U){var K=U.className,L=U.percent,D=U.prefixCls,j=U.strokeColor,Z=U.strokeLinecap,ie=U.strokeWidth,pe=U.style,Ee=U.trailColor,De=U.trailWidth,q=U.transition,be=s(U,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete be.gapPosition;var ye=Array.isArray(L)?L:[L],le=Array.isArray(j)?j:[j],ue=a(ye),ne=d(ue,1),xe=ne[0],$=ie/2,oe=100-ie/2,Le="M ".concat(Z==="round"?$:0,",").concat($,`
L `).concat(Z==="round"?oe:100,",").concat($),te="0 0 100 ".concat(ie),Y=0;return h.a.createElement("svg",f({className:m()("".concat(D,"-line"),K),viewBox:te,preserveAspectRatio:"none",style:pe},be),h.a.createElement("path",{className:"".concat(D,"-line-trail"),d:Le,strokeLinecap:Z,stroke:Ee,strokeWidth:De||ie,fillOpacity:"0"}),ye.map(function(X,J){var ve={strokeDasharray:"".concat(X,"px, 100px"),strokeDashoffset:"-".concat(Y,"px"),transition:q||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},he=le[J]||le[le.length-1];return Y+=X,h.a.createElement("path",{key:J,className:"".concat(D,"-line-path"),d:Le,strokeLinecap:Z,stroke:he,strokeWidth:ie,fillOpacity:"0",ref:xe[J],style:ve})}))};i.defaultProps=g;var _=i;function b(){return b=Object.assign||function(G){for(var U=1;U<arguments.length;U++){var K=arguments[U];for(var L in K)Object.prototype.hasOwnProperty.call(K,L)&&(G[L]=K[L])}return G},b.apply(this,arguments)}function y(G,U){return M(G)||x(G,U)||c(G,U)||E()}function E(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(G,U){if(!G)return;if(typeof G=="string")return C(G,U);var K=Object.prototype.toString.call(G).slice(8,-1);if(K==="Object"&&G.constructor&&(K=G.constructor.name),K==="Map"||K==="Set")return Array.from(G);if(K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return C(G,U)}function C(G,U){(U==null||U>G.length)&&(U=G.length);for(var K=0,L=new Array(U);K<U;K++)L[K]=G[K];return L}function x(G,U){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(G)))return;var K=[],L=!0,D=!1,j=void 0;try{for(var Z=G[Symbol.iterator](),ie;!(L=(ie=Z.next()).done)&&!(K.push(ie.value),U&&K.length===U);L=!0);}catch(pe){D=!0,j=pe}finally{try{!L&&Z.return!=null&&Z.return()}finally{if(D)throw j}}return K}function M(G){if(Array.isArray(G))return G}function k(G,U){if(G==null)return{};var K=T(G,U),L,D;if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(G);for(D=0;D<j.length;D++){if(L=j[D],U.indexOf(L)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(G,L))continue;K[L]=G[L]}}return K}function T(G,U){if(G==null)return{};var K={},L=Object.keys(G),D,j;for(j=0;j<L.length;j++){if(D=L[j],U.indexOf(D)>=0)continue;K[D]=G[D]}return K}var R=0;function P(G){return+G.replace("%","")}function B(G){return Array.isArray(G)?G:[G]}function W(G,U,K,L){var D=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,j=arguments.length>5?arguments[5]:void 0,Z=50-L/2,ie=0,pe=-Z,Ee=0,De=-2*Z;switch(j){case"left":ie=-Z,pe=0,Ee=2*Z,De=0;break;case"right":ie=Z,pe=0,Ee=-2*Z,De=0;break;case"bottom":pe=Z,De=2*Z;break;default:}var q="M 50,50 m ".concat(ie,",").concat(pe,`
a `).concat(Z,",").concat(Z," 0 1 1 ").concat(Ee,",").concat(-De,`
a `).concat(Z,",").concat(Z," 0 1 1 ").concat(-Ee,",").concat(De),be=Math.PI*2*Z,ye={stroke:K,strokeDasharray:"".concat(U/100*(be-D),"px ").concat(be,"px"),strokeDashoffset:"-".concat(D/2+G/100*(be-D),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:q,pathStyle:ye}}var z=function(U){var K=U.prefixCls,L=U.strokeWidth,D=U.trailWidth,j=U.gapDegree,Z=U.gapPosition,ie=U.trailColor,pe=U.strokeLinecap,Ee=U.style,De=U.className,q=U.strokeColor,be=U.percent,ye=k(U,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),le=Object(w.useMemo)(function(){return R+=1,R},[]),ue=W(0,100,ie,L,j,Z),ne=ue.pathString,xe=ue.pathStyle,$=B(be),oe=B(q),Le=oe.find(function(ve){return Object.prototype.toString.call(ve)==="[object Object]"}),te=a($),Y=y(te,1),X=Y[0],J=function(){var he=0;return $.map(function(Ce,Pe){var de=oe[Pe]||oe[oe.length-1],ke=Object.prototype.toString.call(de)==="[object Object]"?"url(#".concat(K,"-gradient-").concat(le,")"):"",me=W(he,Ce,de,L,j,Z);return he+=Ce,h.a.createElement("path",{key:Pe,className:"".concat(K,"-circle-path"),d:me.pathString,stroke:ke,strokeLinecap:pe,strokeWidth:L,opacity:Ce===0?0:1,fillOpacity:"0",style:me.pathStyle,ref:X[Pe]})})};return h.a.createElement("svg",b({className:m()("".concat(K,"-circle"),De),viewBox:"0 0 100 100",style:Ee},ye),Le&&h.a.createElement("defs",null,h.a.createElement("linearGradient",{id:"".concat(K,"-gradient-").concat(le),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Le).sort(function(ve,he){return P(ve)-P(he)}).map(function(ve,he){return h.a.createElement("stop",{key:he,offset:ve,stopColor:Le[ve]})}))),h.a.createElement("path",{className:"".concat(K,"-circle-trail"),d:ne,stroke:ie,strokeLinecap:pe,strokeWidth:D||L,fillOpacity:"0",style:xe}),J().reverse())};z.defaultProps=g;var H=z,ee={Line:_,Circle:H}},hW8S:function(S,F,v){"use strict";v.d(F,"a",function(){return m}),v.d(F,"c",function(){return g}),v.d(F,"b",function(){return a});var w=v("VTBJ"),h=v("Ff2n"),I=v("Kwbf"),m="RC_TABLE_INTERNAL_COL_DEFINE";function g(f){var d=f.expandable,u=Object(h.a)(f,["expandable"]);return"expandable"in f?Object(w.a)(Object(w.a)({},u),d):u}function a(f){return Object.keys(f).reduce(function(d,u){return(u.substr(0,5)==="data-"||u.substr(0,5)==="aria-")&&(d[u]=f[u]),d},{})}},hXwI:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;function w(g,a){if(!(g instanceof a))throw new TypeError("Cannot call a class as a function")}function h(g,a){for(var f=0;f<a.length;f++){var d=a[f];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(g,d.key,d)}}function I(g,a,f){return a&&h(g.prototype,a),f&&h(g,f),g}var m=function(){function g(){w(this,g)}return I(g,[{key:"decodeRect",value:function(f,d,u,o,r,l,n){if(r.rQwait("COPYRECT",4))return!1;var s=r.rQshift16(),e=r.rQshift16();return l.copyImage(s,e,f,d,u,o),!0}}]),g}();F.default=m},i72Y:function(S,F,v){S.exports={selectImage:"selectImage___3j6A8",container:"container___2tvXa"}},iNZB:function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAACgCAYAAAB+HS7YAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjc0MDQ0OTA3MDE3NzExRUJCNjY1QzBDMDY3NUI5QTQ3IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjc0MDQ0OTA4MDE3NzExRUJCNjY1QzBDMDY3NUI5QTQ3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NzQwNDQ5MDUwMTc3MTFFQkI2NjVDMEMwNjc1QjlBNDciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzQwNDQ5MDYwMTc3MTFFQkI2NjVDMEMwNjc1QjlBNDciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4CEd39AAACAklEQVR42uzYvyuFURjA8Yf7TpSw+BHbvSTZrXTFX6AMRLiLySSE8ismg8FAIsKAwcCA/eqSbEqJrEgMd7pxzi3iUgbn8KTvU0/37b7Lp/Oe5+k5JygoC4uJiMkpk1GTeaIoApOVJuMm80VhZJuc1Ip7BUZFcWRr23NfAQUgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQL8FWAoFJLpseFP/+9ur8v9zUU67fN3kVVQFn52jcvNzZH52RlpaqiXwvLIh3cW9j4y32dG4BpXUlwkG0vzUlNdpe8TW9T+zqYznFNgY7ROdrc2pLSkWF+RdLe3yurCXHrvuY7gp5U6MTIgsY42b20mcFGpPiPQUKlO96CPSnUG9FWpToA+K9UJsLIinK5atcNC39Co7O0f6gWmUinp6umVk9MzveNWMpmUlo6YXF5d650Hb+/upbm1M/2rdmC1K2hX0q6o2ona7kW7J+3eVDvy26ruHxnXfSZZWF6VxZU13Ycmnz3SCdBnj3Q28vvqkU4PTT56pPODu+se6eVmwWWP9Hb1YavaVndmxBPHb89HiZO/ufpQWyQAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECPD/AB+1Aw+0AwdNPmgGnpusNblt8kkb8EWAAQAq85VNhqprywAAAABJRU5ErkJggg=="},iUHT:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;function w(C,x){if(!(C instanceof x))throw new TypeError("Cannot call a class as a function")}function h(C,x){for(var M=0;M<x.length;M++){var k=x[M];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(C,k.key,k)}}function I(C,x,M){return x&&h(C.prototype,x),M&&h(C,M),C}var m=[13,16,10,23,0,4,2,27,14,5,20,9,22,18,11,3,25,7,15,6,26,19,12,1,40,51,30,36,46,54,29,39,50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31],g=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],a=0,f,d,u,o,r,l;f=1<<16,d=1<<24,u=f|d,o=1<<2,r=1<<10,l=o|r;var n=[u|r,a|a,f|a,u|l,u|o,f|l,a|o,f|a,a|r,u|r,u|l,a|r,d|l,u|o,d|a,a|o,a|l,d|r,d|r,f|r,f|r,u|a,u|a,d|l,f|o,d|o,d|o,f|o,a|a,a|l,f|l,d|a,f|a,u|l,a|o,u|a,u|r,d|a,d|a,a|r,u|o,f|a,f|r,d|o,a|r,a|o,d|l,f|l,u|l,f|o,u|a,d|l,d|o,a|l,f|l,u|r,a|l,d|r,d|r,a|a,f|o,f|r,a|a,u|o];f=1<<20,d=1<<31,u=f|d,o=1<<5,r=1<<15,l=o|r;var s=[u|l,d|r,a|r,f|l,f|a,a|o,u|o,d|l,d|o,u|l,u|r,d|a,d|r,f|a,a|o,u|o,f|r,f|o,d|l,a|a,d|a,a|r,f|l,u|a,f|o,d|o,a|a,f|r,a|l,u|r,u|a,a|l,a|a,f|l,u|o,f|a,d|l,u|a,u|r,a|r,u|a,d|r,a|o,u|l,f|l,a|o,a|r,d|a,a|l,u|r,f|a,d|o,f|o,d|l,d|o,f|o,f|r,a|a,d|r,a|l,d|a,u|o,u|l,f|r];f=1<<17,d=1<<27,u=f|d,o=1<<3,r=1<<9,l=o|r;var e=[a|l,u|r,a|a,u|o,d|r,a|a,f|l,d|r,f|o,d|o,d|o,f|a,u|l,f|o,u|a,a|l,d|a,a|o,u|r,a|r,f|r,u|a,u|o,f|l,d|l,f|r,f|a,d|l,a|o,u|l,a|r,d|a,u|r,d|a,f|o,a|l,f|a,u|r,d|r,a|a,a|r,f|o,u|l,d|r,d|o,a|r,a|a,u|o,d|l,f|a,d|a,u|l,a|o,f|l,f|r,d|o,u|a,d|l,a|l,u|a,f|l,a|o,u|o,f|r];f=1<<13,d=1<<23,u=f|d,o=1<<0,r=1<<7,l=o|r;var i=[u|o,f|l,f|l,a|r,u|r,d|l,d|o,f|o,a|a,u|a,u|a,u|l,a|l,a|a,d|r,d|o,a|o,f|a,d|a,u|o,a|r,d|a,f|o,f|r,d|l,a|o,f|r,d|r,f|a,u|r,u|l,a|l,d|r,d|o,u|a,u|l,a|l,a|a,a|a,u|a,f|r,d|r,d|l,a|o,u|o,f|l,f|l,a|r,u|l,a|l,a|o,f|a,d|o,f|o,u|r,d|l,f|o,f|r,d|a,u|o,a|r,d|a,f|a,u|r];f=1<<25,d=1<<30,u=f|d,o=1<<8,r=1<<19,l=o|r;var _=[a|o,f|l,f|r,u|o,a|r,a|o,d|a,f|r,d|l,a|r,f|o,d|l,u|o,u|r,a|l,d|a,f|a,d|r,d|r,a|a,d|o,u|l,u|l,f|o,u|r,d|o,a|a,u|a,f|l,f|a,u|a,a|l,a|r,u|o,a|o,f|a,d|a,f|r,u|o,d|l,f|o,d|a,u|r,f|l,d|l,a|o,f|a,u|r,u|l,a|l,u|a,u|l,f|r,a|a,d|r,u|a,a|l,f|o,d|o,a|r,a|a,d|r,f|l,d|o];f=1<<22,d=1<<29,u=f|d,o=1<<4,r=1<<14,l=o|r;var b=[d|o,u|a,a|r,u|l,u|a,a|o,u|l,f|a,d|r,f|l,f|a,d|o,f|o,d|r,d|a,a|l,a|a,f|o,d|l,a|r,f|r,d|l,a|o,u|o,u|o,a|a,f|l,u|r,a|l,f|r,u|r,d|a,d|r,a|o,u|o,f|r,u|l,f|a,a|l,d|o,f|a,d|r,d|a,a|l,d|o,u|l,f|r,u|a,f|l,u|r,a|a,u|o,a|o,a|r,u|a,f|l,a|r,f|o,d|l,a|a,u|r,d|a,f|o,d|l];f=1<<21,d=1<<26,u=f|d,o=1<<1,r=1<<11,l=o|r;var y=[f|a,u|o,d|l,a|a,a|r,d|l,f|l,u|r,u|l,f|a,a|a,d|o,a|o,d|a,u|o,a|l,d|r,f|l,f|o,d|r,d|o,u|a,u|r,f|o,u|a,a|r,a|l,u|l,f|r,a|o,d|a,f|r,d|a,f|r,f|a,d|l,d|l,u|o,u|o,a|o,f|o,d|a,d|r,f|a,u|r,a|l,f|l,u|r,a|l,d|o,u|l,u|a,f|r,a|a,a|o,u|l,a|a,f|l,u|a,a|r,d|o,d|r,a|r,f|o];f=1<<18,d=1<<28,u=f|d,o=1<<6,r=1<<12,l=o|r;var E=[d|l,a|r,f|a,u|l,d|a,d|l,a|o,d|a,f|o,u|a,u|l,f|r,u|r,f|l,a|r,a|o,u|a,d|o,d|r,a|l,f|r,f|o,u|o,u|r,a|l,a|a,a|a,u|o,d|o,d|r,f|l,f|a,f|l,f|a,u|r,a|r,a|o,u|o,a|r,f|l,d|r,a|o,d|o,u|a,u|o,d|a,f|a,d|l,a|a,u|l,f|o,d|o,u|a,d|r,d|l,a|a,u|l,f|r,f|r,a|l,a|l,f|o,d|a,u|r],c=function(){function C(x){w(this,C),this.keys=[];for(var M=[],k=[],T=[],R=0,P=56;R<56;++R,P-=8){P+=P<-5?65:P<-3?31:P<-1?63:P===27?35:0;var B=P&7;M[R]=(x[P>>>3]&1<<B)!==0?1:0}for(var W=0;W<16;++W){var z=W<<1,H=z+1;T[z]=T[H]=0;for(var ee=28;ee<59;ee+=28)for(var G=ee-28;G<ee;++G){var U=G+g[W];k[G]=U<ee?M[U]:M[U-28]}for(var K=0;K<24;++K)k[m[K]]!==0&&(T[z]|=1<<23-K),k[m[K+24]]!==0&&(T[H]|=1<<23-K)}for(var L=0,D=0,j=0;L<16;++L){var Z=T[D++],ie=T[D++];this.keys[j]=(Z&16515072)<<6,this.keys[j]|=(Z&4032)<<10,this.keys[j]|=(ie&16515072)>>>10,this.keys[j]|=(ie&4032)>>>6,++j,this.keys[j]=(Z&258048)<<12,this.keys[j]|=(Z&63)<<16,this.keys[j]|=(ie&258048)>>>4,this.keys[j]|=ie&63,++j}}return I(C,[{key:"enc8",value:function(M){var k=M.slice(),T=0,R,P,B;R=k[T++]<<24|k[T++]<<16|k[T++]<<8|k[T++],P=k[T++]<<24|k[T++]<<16|k[T++]<<8|k[T++],B=(R>>>4^P)&252645135,P^=B,R^=B<<4,B=(R>>>16^P)&65535,P^=B,R^=B<<16,B=(P>>>2^R)&858993459,R^=B,P^=B<<2,B=(P>>>8^R)&16711935,R^=B,P^=B<<8,P=P<<1|P>>>31&1,B=(R^P)&2863311530,R^=B,P^=B,R=R<<1|R>>>31&1;for(var W=0,z=0;W<8;++W){B=P<<28|P>>>4,B^=this.keys[z++];var H=y[B&63];H|=_[B>>>8&63],H|=e[B>>>16&63],H|=n[B>>>24&63],B=P^this.keys[z++],H|=E[B&63],H|=b[B>>>8&63],H|=i[B>>>16&63],H|=s[B>>>24&63],R^=H,B=R<<28|R>>>4,B^=this.keys[z++],H=y[B&63],H|=_[B>>>8&63],H|=e[B>>>16&63],H|=n[B>>>24&63],B=R^this.keys[z++],H|=E[B&63],H|=b[B>>>8&63],H|=i[B>>>16&63],H|=s[B>>>24&63],P^=H}for(P=P<<31|P>>>1,B=(R^P)&2863311530,R^=B,P^=B,R=R<<31|R>>>1,B=(R>>>8^P)&16711935,P^=B,R^=B<<8,B=(R>>>2^P)&858993459,P^=B,R^=B<<2,B=(P>>>16^R)&65535,R^=B,P^=B<<16,B=(P>>>4^R)&252645135,R^=B,P^=B<<4,B=[P,R],T=0;T<8;T++)k[T]=(B[T>>>2]>>>8*(3-T%4))%256,k[T]<0&&(k[T]+=256);return k}},{key:"encrypt",value:function(M){return this.enc8(M.slice(0,8)).concat(this.enc8(M.slice(8,16)))}}]),C}();F.default=c},jO9C:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("OLod"))})(this,function(w){return w.pad.Iso97971={pad:function(h,I){h.concat(w.lib.WordArray.create([2147483648],1)),w.pad.ZeroPadding.pad(h,I)},unpad:function(h){w.pad.ZeroPadding.unpad(h),h.sigBytes--}},w.pad.Iso97971})},je13:function(S,F,v){var w=v("5nXd"),h=v("gRFJ"),I=[v("uQRt")];S.exports=w.createStore(h,I)},ji0R:function(S,F,v){S.exports=v.p+"static/douyu.3e6df9ee.jpg"},k3GJ:function(S,F,v){"use strict";v.d(F,"a",function(){return Er});var w=v("rePB"),h=v("ODXe"),I=v("Ff2n"),m=v("VTBJ"),g=v("cDcd"),a=v("TSYQ"),f=v.n(a),d=v("Zm9Q"),u=v("6cGi"),o=v("KQm4"),r=v("xEkU"),l=v.n(r),n=v("t23M");function s(Qe){var _t=Object(g.useRef)(),xt=Object(g.useRef)(!1);function it(){for(var Oe=arguments.length,ze=new Array(Oe),Ie=0;Ie<Oe;Ie++)ze[Ie]=arguments[Ie];xt.current||(l.a.cancel(_t.current),_t.current=l()(function(){Qe.apply(void 0,ze)}))}return Object(g.useEffect)(function(){return function(){xt.current=!0,l.a.cancel(_t.current)}},[]),it}function e(Qe){var _t=Object(g.useRef)([]),xt=Object(g.useState)({}),it=Object(h.a)(xt,2),Oe=it[1],ze=Object(g.useRef)(typeof Qe=="function"?Qe():Qe),Ie=s(function(){var lt=ze.current;_t.current.forEach(function(St){lt=St(lt)}),_t.current=[],ze.current=lt,Oe({})});function rt(lt){_t.current.push(lt),Ie()}return[ze.current,rt]}var i=v("4IlW");function _(Qe,_t){var xt,it=Qe.prefixCls,Oe=Qe.id,ze=Qe.active,Ie=Qe.rtl,rt=Qe.tab,lt=rt.key,St=rt.tab,yt=rt.disabled,It=rt.closeIcon,zt=Qe.tabBarGutter,_n=Qe.tabPosition,hn=Qe.closable,Rn=Qe.renderWrapper,Tr=Qe.removeAriaLabel,ta=Qe.editable,zr=Qe.onClick,Qr=Qe.onRemove,na=Qe.onFocus,qr="".concat(it,"-tab");g.useEffect(function(){return Qr},[]);var Jr={};_n==="top"||_n==="bottom"?Jr[Ie?"marginLeft":"marginRight"]=zt:Jr.marginBottom=zt;var ba=ta&&hn!==!1&&!yt;function la(gr){if(yt)return;zr(gr)}function ri(gr){gr.preventDefault(),gr.stopPropagation(),ta.onEdit("remove",{key:lt,event:gr})}var pa=g.createElement("div",{key:lt,ref:_t,className:f()(qr,(xt={},Object(w.a)(xt,"".concat(qr,"-with-remove"),ba),Object(w.a)(xt,"".concat(qr,"-active"),ze),Object(w.a)(xt,"".concat(qr,"-disabled"),yt),xt)),style:Jr,onClick:la},g.createElement("div",{role:"tab","aria-selected":ze,id:Oe&&"".concat(Oe,"-tab-").concat(lt),className:"".concat(qr,"-btn"),"aria-controls":Oe&&"".concat(Oe,"-panel-").concat(lt),"aria-disabled":yt,tabIndex:yt?null:0,onClick:function(wr){wr.stopPropagation(),la(wr)},onKeyDown:function(wr){[i.a.SPACE,i.a.ENTER].includes(wr.which)&&(wr.preventDefault(),la(wr))},onFocus:na},St),ba&&g.createElement("button",{type:"button","aria-label":Tr||"remove",tabIndex:0,className:"".concat(qr,"-remove"),onClick:function(wr){wr.stopPropagation(),ri(wr)}},It||ta.removeIcon||"\xD7"));return Rn&&(pa=Rn(pa)),pa}var b=g.forwardRef(_),y={width:0,height:0,left:0,top:0};function E(Qe,_t,xt){return Object(g.useMemo)(function(){for(var it,Oe=new Map,ze=_t.get((it=Qe[0])===null||it===void 0?void 0:it.key)||y,Ie=ze.left+ze.width,rt=0;rt<Qe.length;rt+=1){var lt=Qe[rt].key,St=_t.get(lt);if(!St){var yt;St=_t.get((yt=Qe[rt-1])===null||yt===void 0?void 0:yt.key)||y}var It=Oe.get(lt)||Object(m.a)({},St);It.right=Ie-It.left-It.width,Oe.set(lt,It)}return Oe},[Qe.map(function(it){return it.key}).join("_"),_t,xt])}var c={width:0,height:0,left:0,top:0,right:0};function C(Qe,_t,xt,it,Oe){var ze=Oe.tabs,Ie=Oe.tabPosition,rt=Oe.rtl,lt,St,yt;["top","bottom"].includes(Ie)?(lt="width",St=rt?"right":"left",yt=Math.abs(_t.left)):(lt="height",St="top",yt=-_t.top);var It=_t[lt],zt=xt[lt],_n=it[lt],hn=It;return zt+_n>It&&(hn=It-_n),Object(g.useMemo)(function(){if(!ze.length)return[0,0];for(var Rn=ze.length,Tr=Rn,ta=0;ta<Rn;ta+=1){var zr=Qe.get(ze[ta].key)||c;if(zr[St]+zr[lt]>yt+hn){Tr=ta-1;break}}for(var Qr=0,na=Rn-1;na>=0;na-=1){var qr=Qe.get(ze[na].key)||c;if(qr[St]<yt){Qr=na+1;break}}return[Qr,Tr]},[Qe,yt,hn,Ie,ze.map(function(Rn){return Rn.key}).join("_"),rt])}var x=v("wx14"),M=v("1OyB"),k=v("vuIU"),T=v("JX7q"),R=v("Ji7U"),P=v("LK+K"),B=v("I8Z2"),W=v("bT9E"),z=v("2GS6"),H=v("Gytx"),ee=v.n(H),G=v("U8pU"),U=/iPhone/i,K=/iPod/i,L=/iPad/i,D=/\bAndroid(?:.+)Mobile\b/i,j=/Android/i,Z=/\bAndroid(?:.+)SD4930UR\b/i,ie=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,pe=/Windows Phone/i,Ee=/\bWindows(?:.+)ARM\b/i,De=/BlackBerry/i,q=/BB10/i,be=/Opera Mini/i,ye=/\b(CriOS|Chrome)(?:.+)Mobile/i,le=/Mobile(?:.+)Firefox\b/i;function ue(Qe,_t){return Qe.test(_t)}function ne(Qe){var _t=Qe||(typeof navigator!="undefined"?navigator.userAgent:""),xt=(_t||"").split("[FBAN");if(typeof xt[1]!="undefined"){var it=xt,Oe=Object(h.a)(it,1);_t=Oe[0]}if(xt=_t.split("Twitter"),typeof xt[1]!="undefined"){var ze=xt,Ie=Object(h.a)(ze,1);_t=Ie[0]}var rt={apple:{phone:ue(U,_t)&&!ue(pe,_t),ipod:ue(K,_t),tablet:!ue(U,_t)&&ue(L,_t)&&!ue(pe,_t),device:(ue(U,_t)||ue(K,_t)||ue(L,_t))&&!ue(pe,_t)},amazon:{phone:ue(Z,_t),tablet:!ue(Z,_t)&&ue(ie,_t),device:ue(Z,_t)||ue(ie,_t)},android:{phone:!ue(pe,_t)&&ue(Z,_t)||!ue(pe,_t)&&ue(D,_t),tablet:!ue(pe,_t)&&!ue(Z,_t)&&!ue(D,_t)&&(ue(ie,_t)||ue(j,_t)),device:!ue(pe,_t)&&(ue(Z,_t)||ue(ie,_t)||ue(D,_t)||ue(j,_t))||ue(/\bokhttp\b/i,_t)},windows:{phone:ue(pe,_t),tablet:ue(Ee,_t),device:ue(pe,_t)||ue(Ee,_t)},other:{blackberry:ue(De,_t),blackberry10:ue(q,_t),opera:ue(be,_t),firefox:ue(le,_t),chrome:ue(ye,_t),device:ue(De,_t)||ue(q,_t)||ue(be,_t)||ue(le,_t)||ue(ye,_t)},any:null,phone:null,tablet:null};return rt.any=rt.apple.device||rt.android.device||rt.windows.device||rt.other.device,rt.phone=rt.apple.phone||rt.android.phone||rt.windows.phone,rt.tablet=rt.apple.tablet||rt.android.tablet||rt.windows.tablet,rt}var xe=Object(m.a)(Object(m.a)({},ne()),{},{isMobile:ne}),$=xe;function oe(){}function Le(Qe,_t,xt){var it=_t||"";return Qe.key||"".concat(it,"item_").concat(xt)}function te(Qe){return"".concat(Qe,"-menu-")}function Y(Qe,_t){var xt=-1;g.Children.forEach(Qe,function(it){xt+=1,it&&it.type&&it.type.isMenuItemGroup?g.Children.forEach(it.props.children,function(Oe){xt+=1,_t(Oe,xt)}):_t(it,xt)})}function X(Qe,_t,xt){if(!Qe||xt.find)return;g.Children.forEach(Qe,function(it){if(it){var Oe=it.type;if(!Oe||!(Oe.isSubMenu||Oe.isMenuItem||Oe.isMenuItemGroup))return;_t.indexOf(it.key)!==-1?xt.find=!0:it.props.children&&X(it.props.children,_t,xt)}})}var J=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],ve=function(_t){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=_t&&typeof _t.getBoundingClientRect=="function"&&_t.getBoundingClientRect().width;if(it){if(xt){var Oe=getComputedStyle(_t),ze=Oe.marginLeft,Ie=Oe.marginRight;it+=+ze.replace("px","")+ +Ie.replace("px","")}it=+it.toFixed(6)}return it||0},he=function(_t,xt,it){_t&&Object(G.a)(_t.style)==="object"&&(_t.style[xt]=it)},Ce=function(){return $.any},Pe=v("bdgK"),de=v("faye"),ke=v.n(de),me=v("wgJM"),Be=v("l4aY"),ft=v("m+aA"),vt=v("c+Xe"),Xe=v("zT1h"),Bt=v("QC+M");function Ae(Qe,_t,xt){return xt?Qe[0]===_t[0]:Qe[0]===_t[0]&&Qe[1]===_t[1]}function We(Qe,_t,xt){var it=Qe[_t]||{};return Object(m.a)(Object(m.a)({},it),xt)}function dt(Qe,_t,xt,it){for(var Oe=xt.points,ze=Object.keys(Qe),Ie=0;Ie<ze.length;Ie+=1){var rt=ze[Ie];if(Ae(Qe[rt].points,Oe,it))return"".concat(_t,"-placement-").concat(rt)}return""}var Ge=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Qe=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Qe)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Qe==null?void 0:Qe.substr(0,4)))},je=v("MNnm");function Fe(Qe,_t){var xt={};return xt[Qe.toLowerCase()]=_t.toLowerCase(),xt["Webkit".concat(Qe)]="webkit".concat(_t),xt["Moz".concat(Qe)]="moz".concat(_t),xt["ms".concat(Qe)]="MS".concat(_t),xt["O".concat(Qe)]="o".concat(_t.toLowerCase()),xt}function ce(Qe,_t){var xt={animationend:Fe("Animation","AnimationEnd"),transitionend:Fe("Transition","TransitionEnd")};return Qe&&("AnimationEvent"in _t||delete xt.animationend.animation,"TransitionEvent"in _t||delete xt.transitionend.transition),xt}var we=ce(Object(je.a)(),typeof window!="undefined"?window:{}),se={};if(Object(je.a)()){var _e=document.createElement("div");se=_e.style}var Ne={};function Q(Qe){if(Ne[Qe])return Ne[Qe];var _t=we[Qe];if(_t)for(var xt=Object.keys(_t),it=xt.length,Oe=0;Oe<it;Oe+=1){var ze=xt[Oe];if(Object.prototype.hasOwnProperty.call(_t,ze)&&ze in se)return Ne[Qe]=_t[ze],Ne[Qe]}return""}var Ue=Q("animationend"),Ze=Q("transitionend"),Te=!!(Ue&&Ze),He=Ue||"animationend",Ye=Ze||"transitionend";function st(Qe,_t){if(!Qe)return null;if(Object(G.a)(Qe)==="object"){var xt=_t.replace(/-\w/g,function(it){return it[1].toUpperCase()});return Qe[xt]}return"".concat(Qe,"-").concat(_t)}var ut="none",et="appear",Re="enter",qe="leave",At="none",$e="prepare",ht="start",Rt="active",pt="end";function wt(Qe){var _t=Object(g.useRef)(!1),xt=Object(g.useState)(Qe),it=Object(h.a)(xt,2),Oe=it[0],ze=it[1];function Ie(rt){_t.current||ze(rt)}return Object(g.useEffect)(function(){return function(){_t.current=!0}},[]),[Oe,Ie]}var Ct=Object(je.a)()?g.useLayoutEffect:g.useEffect,Kt=Ct,Vt=function(){var Qe=g.useRef(null);function _t(){me.a.cancel(Qe.current)}function xt(it){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;_t();var ze=Object(me.a)(function(){Oe<=1?it({isCanceled:function(){return ze!==Qe.current}}):xt(it,Oe-1)});Qe.current=ze}return g.useEffect(function(){return function(){_t()}},[]),[xt,_t]},dn=[$e,ht,Rt,pt],cn=!1,qt=!0;function Lt(Qe){return Qe===Rt||Qe===pt}var Tn=function(Qe,_t){var xt=g.useState(At),it=Object(h.a)(xt,2),Oe=it[0],ze=it[1],Ie=Vt(),rt=Object(h.a)(Ie,2),lt=rt[0],St=rt[1];function yt(){ze($e)}return Kt(function(){if(Oe!==At&&Oe!==pt){var It=dn.indexOf(Oe),zt=dn[It+1],_n=_t(Oe);_n===cn?ze(zt):lt(function(hn){function Rn(){if(hn.isCanceled())return;ze(zt)}_n===!0?Rn():Promise.resolve(_n).then(Rn)})}},[Qe,Oe]),g.useEffect(function(){return function(){St()}},[]),[yt,Oe]},Wt=function(Qe){var _t=Object(g.useRef)(),xt=Object(g.useRef)(Qe);xt.current=Qe;var it=g.useCallback(function(Ie){xt.current(Ie)},[]);function Oe(Ie){Ie&&(Ie.removeEventListener(Ye,it),Ie.removeEventListener(He,it))}function ze(Ie){_t.current&&_t.current!==Ie&&Oe(_t.current),Ie&&Ie!==_t.current&&(Ie.addEventListener(Ye,it),Ie.addEventListener(He,it),_t.current=Ie)}return g.useEffect(function(){return function(){Oe(_t.current)}},[]),[ze,Oe]};function gn(Qe,_t,xt,it){var Oe=it.motionEnter,ze=Oe===void 0?!0:Oe,Ie=it.motionAppear,rt=Ie===void 0?!0:Ie,lt=it.motionLeave,St=lt===void 0?!0:lt,yt=it.motionDeadline,It=it.motionLeaveImmediately,zt=it.onAppearPrepare,_n=it.onEnterPrepare,hn=it.onLeavePrepare,Rn=it.onAppearStart,Tr=it.onEnterStart,ta=it.onLeaveStart,zr=it.onAppearActive,Qr=it.onEnterActive,na=it.onLeaveActive,qr=it.onAppearEnd,Jr=it.onEnterEnd,ba=it.onLeaveEnd,la=it.onVisibleChanged,ri=wt(),pa=Object(h.a)(ri,2),gr=pa[0],wr=pa[1],ma=wt(ut),Ta=Object(h.a)(ma,2),or=Ta[0],_a=Ta[1],ai=wt(null),ya=Object(h.a)(ai,2),Ha=ya[0],Xa=ya[1],wi=Object(g.useRef)(!1),Bi=Object(g.useRef)(null),vi=Object(g.useRef)(!1),oo=Object(g.useRef)(null);function To(){var Va=xt();return Va||oo.current}var fo=Object(g.useRef)(!1);function Ki(Va){var Pa=To();if(Va&&!Va.deadline&&Va.target!==Pa)return;var Ni;or===et&&fo.current?Ni=qr==null?void 0:qr(Pa,Va):or===Re&&fo.current?Ni=Jr==null?void 0:Jr(Pa,Va):or===qe&&fo.current&&(Ni=ba==null?void 0:ba(Pa,Va)),Ni!==!1&&!vi.current&&(_a(ut),Xa(null))}var $a=Wt(Ki),za=Object(h.a)($a,1),Ga=za[0],ii=g.useMemo(function(){var Va,Pa,Ni;switch(or){case"appear":return Va={},Object(w.a)(Va,$e,zt),Object(w.a)(Va,ht,Rn),Object(w.a)(Va,Rt,zr),Va;case"enter":return Pa={},Object(w.a)(Pa,$e,_n),Object(w.a)(Pa,ht,Tr),Object(w.a)(Pa,Rt,Qr),Pa;case"leave":return Ni={},Object(w.a)(Ni,$e,hn),Object(w.a)(Ni,ht,ta),Object(w.a)(Ni,Rt,na),Ni;default:return{}}},[or]),Oo=Tn(or,function(Va){if(Va===$e){var Pa=ii[$e];return Pa?Pa(To()):cn}if(Wa in ii){var Ni;Xa(((Ni=ii[Wa])===null||Ni===void 0?void 0:Ni.call(ii,To(),null))||null)}return Wa===Rt&&(Ga(To()),yt>0&&(clearTimeout(Bi.current),Bi.current=setTimeout(function(){Ki({deadline:!0})},yt))),qt}),Wo=Object(h.a)(Oo,2),Xo=Wo[0],Wa=Wo[1],No=Lt(Wa);fo.current=No,Kt(function(){wr(_t);var Va=wi.current;if(wi.current=!0,!Qe)return;var Pa;!Va&&_t&&rt&&(Pa=et),Va&&_t&&ze&&(Pa=Re),(Va&&!_t&&St||!Va&&It&&!_t&&St)&&(Pa=qe),Pa&&(_a(Pa),Xo())},[_t]),Object(g.useEffect)(function(){(or===et&&!rt||or===Re&&!ze||or===qe&&!St)&&_a(ut)},[rt,ze,St]),Object(g.useEffect)(function(){return function(){clearTimeout(Bi.current),vi.current=!0}},[]),Object(g.useEffect)(function(){gr!==void 0&&or===ut&&(la==null||la(gr))},[gr,or]);var zo=Ha;return ii[$e]&&Wa===ht&&(zo=Object(m.a)({transition:"none"},zo)),[or,Wa,zo,gr!=null?gr:_t]}var ln=function(Qe){Object(R.a)(xt,Qe);var _t=Object(P.a)(xt);function xt(){return Object(M.a)(this,xt),_t.apply(this,arguments)}return Object(k.a)(xt,[{key:"render",value:function(){return this.props.children}}]),xt}(g.Component),Un=ln;function In(Qe){var _t=Qe;Object(G.a)(Qe)==="object"&&(_t=Qe.transitionSupport);function xt(Oe){return!!(Oe.motionName&&_t)}var it=g.forwardRef(function(Oe,ze){var Ie=Oe.visible,rt=Ie===void 0?!0:Ie,lt=Oe.removeOnLeave,St=lt===void 0?!0:lt,yt=Oe.forceRender,It=Oe.children,zt=Oe.motionName,_n=Oe.leavedClassName,hn=Oe.eventProps,Rn=xt(Oe),Tr=Object(g.useRef)(),ta=Object(g.useRef)();function zr(){try{return Object(ft.a)(Tr.current||ta.current)}catch(_a){return null}}var Qr=gn(Rn,rt,zr,Oe),na=Object(h.a)(Qr,4),qr=na[0],Jr=na[1],ba=na[2],la=na[3],ri=g.useRef(la);la&&(ri.current=!0);var pa=Object(g.useRef)(ze);pa.current=ze;var gr=g.useCallback(function(_a){Tr.current=_a,Object(vt.b)(pa.current,_a)},[]),wr,ma=Object(m.a)(Object(m.a)({},hn),{},{visible:rt});if(!It)wr=null;else if(qr===ut||!xt(Oe))la?wr=It(Object(m.a)({},ma),gr):!St&&ri.current?wr=It(Object(m.a)(Object(m.a)({},ma),{},{className:_n}),gr):yt?wr=It(Object(m.a)(Object(m.a)({},ma),{},{style:{display:"none"}}),gr):wr=null;else{var Ta,or;Jr===$e?or="prepare":Lt(Jr)?or="active":Jr===ht&&(or="start"),wr=It(Object(m.a)(Object(m.a)({},ma),{},{className:f()(st(zt,qr),(Ta={},Object(w.a)(Ta,st(zt,"".concat(qr,"-").concat(or)),or),Object(w.a)(Ta,zt,typeof zt=="string"),Ta)),style:ba}),gr)}return g.createElement(Un,{ref:ta},wr)});return it.displayName="CSSMotion",it}var Rr=In(Te),Mt="add",on="keep",ea="remove",Vr="removed";function vr(Qe){var _t;return Qe&&Object(G.a)(Qe)==="object"&&"key"in Qe?_t=Qe:_t={key:Qe},Object(m.a)(Object(m.a)({},_t),{},{key:String(_t.key)})}function jr(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Qe.map(vr)}function wa(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],xt=[],it=0,Oe=_t.length,ze=jr(Qe),Ie=jr(_t);ze.forEach(function(St){for(var yt=!1,It=it;It<Oe;It+=1){var zt=Ie[It];if(zt.key===St.key){it<It&&(xt=xt.concat(Ie.slice(it,It).map(function(_n){return Object(m.a)(Object(m.a)({},_n),{},{status:Mt})})),it=It),xt.push(Object(m.a)(Object(m.a)({},zt),{},{status:on})),it+=1,yt=!0;break}}yt||xt.push(Object(m.a)(Object(m.a)({},St),{},{status:ea}))}),it<Oe&&(xt=xt.concat(Ie.slice(it).map(function(St){return Object(m.a)(Object(m.a)({},St),{},{status:Mt})})));var rt={};xt.forEach(function(St){var yt=St.key;rt[yt]=(rt[yt]||0)+1});var lt=Object.keys(rt).filter(function(St){return rt[St]>1});return lt.forEach(function(St){xt=xt.filter(function(yt){var It=yt.key,zt=yt.status;return It!==St||zt!==ea}),xt.forEach(function(yt){yt.key===St&&(yt.status=on)})}),xt}var An=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ur(Qe){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rr,xt=function(it){Object(R.a)(ze,it);var Oe=Object(P.a)(ze);function ze(){var Ie;return Object(M.a)(this,ze),Ie=Oe.apply(this,arguments),Ie.state={keyEntities:[]},Ie.removeKey=function(rt){Ie.setState(function(lt){var St=lt.keyEntities;return{keyEntities:St.map(function(yt){return yt.key!==rt?yt:Object(m.a)(Object(m.a)({},yt),{},{status:Vr})})}})},Ie}return Object(k.a)(ze,[{key:"render",value:function(){var rt=this,lt=this.state.keyEntities,St=this.props,yt=St.component,It=St.children,zt=St.onVisibleChanged,_n=Object(I.a)(St,["component","children","onVisibleChanged"]),hn=yt||g.Fragment,Rn={};return An.forEach(function(Tr){Rn[Tr]=_n[Tr],delete _n[Tr]}),delete _n.keys,g.createElement(hn,_n,lt.map(function(Tr){var ta=Tr.status,zr=Object(I.a)(Tr,["status"]),Qr=ta===Mt||ta===on;return g.createElement(_t,Object(x.a)({},Rn,{key:zr.key,visible:Qr,eventProps:zr,onVisibleChanged:function(qr){zt==null||zt(qr,{key:zr.key}),qr||rt.removeKey(zr.key)}}),It)}))}}],[{key:"getDerivedStateFromProps",value:function(rt,lt){var St=rt.keys,yt=lt.keyEntities,It=jr(St),zt=wa(yt,It);return{keyEntities:zt.filter(function(_n){var hn=yt.find(function(Rn){var Tr=Rn.key;return _n.key===Tr});return!(hn&&hn.status===Vr&&_n.status===ea)})}}}]),ze}(g.Component);return xt.defaultProps={component:"div"},xt}var Ut=ur(Te),tr=Rr;function Yn(Qe){var _t=Qe.prefixCls,xt=Qe.motion,it=Qe.animation,Oe=Qe.transitionName;return xt||(it?{motionName:"".concat(_t,"-").concat(it)}:Oe?{motionName:Oe}:null)}function Xn(Qe){var _t=Qe.prefixCls,xt=Qe.visible,it=Qe.zIndex,Oe=Qe.mask,ze=Qe.maskMotion,Ie=Qe.maskAnimation,rt=Qe.maskTransitionName;if(!Oe)return null;var lt={};return(ze||rt||Ie)&&(lt=Object(m.a)({motionAppear:!0},Yn({motion:ze,prefixCls:_t,transitionName:rt,animation:Ie}))),g.createElement(tr,Object(x.a)({},lt,{visible:xt,removeOnLeave:!0}),function(St){var yt=St.className;return g.createElement("div",{style:{zIndex:it},className:f()("".concat(_t,"-mask"),yt)})})}var nr=v("9mu1"),br=v("o0o1"),xa=v.n(br),Wr=v("HaE+"),Ir=["measure","align",null,"motion"],hr=function(Qe,_t){var xt=Object(g.useState)(null),it=Object(h.a)(xt,2),Oe=it[0],ze=it[1],Ie=Object(g.useRef)(),rt=Object(g.useRef)(!1);function lt(It){rt.current||ze(It)}function St(){me.a.cancel(Ie.current)}function yt(It){St(),Ie.current=Object(me.a)(function(){lt(function(zt){switch(Oe){case"align":return"motion";case"motion":return"stable";default:}return zt}),It==null||It()})}return Object(g.useEffect)(function(){lt("measure")},[Qe]),Object(g.useEffect)(function(){switch(Oe){case"measure":_t();break;default:}Oe&&(Ie.current=Object(me.a)(Object(Wr.a)(xa.a.mark(function It(){var zt,_n;return xa.a.wrap(function(Rn){for(;;)switch(Rn.prev=Rn.next){case 0:zt=Ir.indexOf(Oe),_n=Ir[zt+1],_n&&zt!==-1&&lt(_n);case 3:case"end":return Rn.stop()}},It)}))))},[Oe]),Object(g.useEffect)(function(){return function(){rt.current=!0,St()}},[]),[Oe,yt]},Ca=function(Qe){var _t=g.useState({width:0,height:0}),xt=Object(h.a)(_t,2),it=xt[0],Oe=xt[1];function ze(rt){Oe({width:rt.offsetWidth,height:rt.offsetHeight})}var Ie=g.useMemo(function(){var rt={};if(Qe){var lt=it.width,St=it.height;Qe.indexOf("height")!==-1&&St?rt.height=St:Qe.indexOf("minHeight")!==-1&&St&&(rt.minHeight=St),Qe.indexOf("width")!==-1&&lt?rt.width=lt:Qe.indexOf("minWidth")!==-1&&lt&&(rt.minWidth=lt)}return rt},[Qe,it]);return[Ie,ze]},ia=g.forwardRef(function(Qe,_t){var xt=Qe.visible,it=Qe.prefixCls,Oe=Qe.className,ze=Qe.style,Ie=Qe.children,rt=Qe.zIndex,lt=Qe.stretch,St=Qe.destroyPopupOnHide,yt=Qe.forceRender,It=Qe.align,zt=Qe.point,_n=Qe.getRootDomNode,hn=Qe.getClassNameFromAlign,Rn=Qe.onAlign,Tr=Qe.onMouseEnter,ta=Qe.onMouseLeave,zr=Qe.onMouseDown,Qr=Qe.onTouchStart,na=Object(g.useRef)(),qr=Object(g.useRef)(),Jr=Object(g.useState)(),ba=Object(h.a)(Jr,2),la=ba[0],ri=ba[1],pa=Ca(lt),gr=Object(h.a)(pa,2),wr=gr[0],ma=gr[1];function Ta(){lt&&ma(_n())}var or=hr(xt,Ta),_a=Object(h.a)(or,2),ai=_a[0],ya=_a[1],Ha=Object(g.useRef)();function Xa(){return zt||_n}function wi(){var $a;($a=na.current)===null||$a===void 0||$a.forceAlign()}function Bi($a,za){var Ga=hn(za);la!==Ga&&ri(Ga),ai==="align"&&(la!==Ga?Promise.resolve().then(function(){wi()}):ya(function(){var ii;(ii=Ha.current)===null||ii===void 0||ii.call(Ha)}),Rn==null||Rn($a,za))}var vi=Object(m.a)({},Yn(Qe));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function($a){var za=vi[$a];vi[$a]=function(Ga,ii){return ya(),za==null?void 0:za(Ga,ii)}});function oo(){return new Promise(function($a){Ha.current=$a})}g.useEffect(function(){!vi.motionName&&ai==="motion"&&ya()},[vi.motionName,ai]),g.useImperativeHandle(_t,function(){return{forceAlign:wi,getElement:function(){return qr.current}}});var To=Object(m.a)(Object(m.a)({},wr),{},{zIndex:rt,opacity:ai==="motion"||ai==="stable"||!xt?void 0:0,pointerEvents:ai==="stable"?void 0:"none"},ze),fo=!0;(It==null?void 0:It.points)&&(ai==="align"||ai==="stable")&&(fo=!1);var Ki=Ie;return g.Children.count(Ie)>1&&(Ki=g.createElement("div",{className:"".concat(it,"-content")},Ie)),g.createElement(tr,Object(x.a)({visible:xt,ref:qr,leavedClassName:"".concat(it,"-hidden")},vi,{onAppearPrepare:oo,onEnterPrepare:oo,removeOnLeave:St,forceRender:yt}),function($a,za){var Ga=$a.className,ii=$a.style,Oo=f()(it,Oe,la,Ga);return g.createElement(nr.a,{target:Xa(),key:"popup",ref:na,monitorWindowResize:!0,disabled:fo,align:It,onAlign:Bi},g.createElement("div",{ref:za,className:Oo,onMouseEnter:Tr,onMouseLeave:ta,onMouseDownCapture:zr,onTouchStartCapture:Qr,style:Object(m.a)(Object(m.a)({},ii),To)},Ki))})});ia.displayName="PopupInner";var Ur=ia,Yr=g.forwardRef(function(Qe,_t){var xt=Qe.prefixCls,it=Qe.visible,Oe=Qe.zIndex,ze=Qe.children,Ie=Qe.mobile;Ie=Ie===void 0?{}:Ie;var rt=Ie.popupClassName,lt=Ie.popupStyle,St=Ie.popupMotion,yt=St===void 0?{}:St,It=Ie.popupRender,zt=g.useRef();g.useImperativeHandle(_t,function(){return{forceAlign:function(){},getElement:function(){return zt.current}}});var _n=Object(m.a)({zIndex:Oe},lt),hn=ze;return g.Children.count(ze)>1&&(hn=g.createElement("div",{className:"".concat(xt,"-content")},ze)),It&&(hn=It(hn)),g.createElement(tr,Object(x.a)({visible:it,ref:zt,removeOnLeave:!0},yt),function(Rn,Tr){var ta=Rn.className,zr=Rn.style,Qr=f()(xt,rt,ta);return g.createElement("div",{ref:Tr,className:Qr,style:Object(m.a)(Object(m.a)({},zr),_n)},hn)})});Yr.displayName="MobilePopupInner";var zn=Yr,Gn=["visible","mobile"],Pn=g.forwardRef(function(Qe,_t){var xt=Qe.visible,it=Qe.mobile,Oe=Object(I.a)(Qe,Gn),ze=Object(g.useState)(xt),Ie=Object(h.a)(ze,2),rt=Ie[0],lt=Ie[1],St=Object(g.useState)(!1),yt=Object(h.a)(St,2),It=yt[0],zt=yt[1],_n=Object(m.a)(Object(m.a)({},Oe),{},{visible:rt});Object(g.useEffect)(function(){lt(xt),xt&&it&&zt(Ge())},[xt,it]);var hn=It?g.createElement(zn,Object(x.a)({},_n,{mobile:it,ref:_t})):g.createElement(Ur,Object(x.a)({},_n,{ref:_t}));return g.createElement("div",null,g.createElement(Xn,_n),hn)});Pn.displayName="Popup";var rr=Pn,Ja=g.createContext(null),oa=Ja;function Ar(){}function Sa(){return""}function yi(Qe){return Qe?Qe.ownerDocument:window.document}var Eo=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function wo(Qe){var _t=function(xt){Object(R.a)(Oe,xt);var it=Object(P.a)(Oe);function Oe(ze){var Ie;Object(M.a)(this,Oe),Ie=it.call(this,ze),Ie.popupRef=g.createRef(),Ie.triggerRef=g.createRef(),Ie.attachId=void 0,Ie.clickOutsideHandler=void 0,Ie.touchOutsideHandler=void 0,Ie.contextMenuOutsideHandler1=void 0,Ie.contextMenuOutsideHandler2=void 0,Ie.mouseDownTimeout=void 0,Ie.focusTime=void 0,Ie.preClickTime=void 0,Ie.preTouchTime=void 0,Ie.delayTimer=void 0,Ie.hasPopupMouseDown=void 0,Ie.onMouseEnter=function(lt){var St=Ie.props.mouseEnterDelay;Ie.fireEvents("onMouseEnter",lt),Ie.delaySetPopupVisible(!0,St,St?null:lt)},Ie.onMouseMove=function(lt){Ie.fireEvents("onMouseMove",lt),Ie.setPoint(lt)},Ie.onMouseLeave=function(lt){Ie.fireEvents("onMouseLeave",lt),Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onPopupMouseEnter=function(){Ie.clearDelayTimer()},Ie.onPopupMouseLeave=function(lt){var St;if(lt.relatedTarget&&!lt.relatedTarget.setTimeout&&Object(Be.a)((St=Ie.popupRef.current)===null||St===void 0?void 0:St.getElement(),lt.relatedTarget))return;Ie.delaySetPopupVisible(!1,Ie.props.mouseLeaveDelay)},Ie.onFocus=function(lt){Ie.fireEvents("onFocus",lt),Ie.clearDelayTimer(),Ie.isFocusToShow()&&(Ie.focusTime=Date.now(),Ie.delaySetPopupVisible(!0,Ie.props.focusDelay))},Ie.onMouseDown=function(lt){Ie.fireEvents("onMouseDown",lt),Ie.preClickTime=Date.now()},Ie.onTouchStart=function(lt){Ie.fireEvents("onTouchStart",lt),Ie.preTouchTime=Date.now()},Ie.onBlur=function(lt){Ie.fireEvents("onBlur",lt),Ie.clearDelayTimer(),Ie.isBlurToHide()&&Ie.delaySetPopupVisible(!1,Ie.props.blurDelay)},Ie.onContextMenu=function(lt){lt.preventDefault(),Ie.fireEvents("onContextMenu",lt),Ie.setPopupVisible(!0,lt)},Ie.onContextMenuClose=function(){Ie.isContextMenuToShow()&&Ie.close()},Ie.onClick=function(lt){if(Ie.fireEvents("onClick",lt),Ie.focusTime){var St;if(Ie.preClickTime&&Ie.preTouchTime?St=Math.min(Ie.preClickTime,Ie.preTouchTime):Ie.preClickTime?St=Ie.preClickTime:Ie.preTouchTime&&(St=Ie.preTouchTime),Math.abs(St-Ie.focusTime)<20)return;Ie.focusTime=0}Ie.preClickTime=0,Ie.preTouchTime=0,Ie.isClickToShow()&&(Ie.isClickToHide()||Ie.isBlurToHide())&&lt&&lt.preventDefault&&lt.preventDefault();var yt=!Ie.state.popupVisible;(Ie.isClickToHide()&&!yt||yt&&Ie.isClickToShow())&&Ie.setPopupVisible(!Ie.state.popupVisible,lt)},Ie.onPopupMouseDown=function(){if(Ie.hasPopupMouseDown=!0,clearTimeout(Ie.mouseDownTimeout),Ie.mouseDownTimeout=window.setTimeout(function(){Ie.hasPopupMouseDown=!1},0),Ie.context){var lt;(lt=Ie.context).onPopupMouseDown.apply(lt,arguments)}},Ie.onDocumentClick=function(lt){if(Ie.props.mask&&!Ie.props.maskClosable)return;var St=lt.target,yt=Ie.getRootDomNode(),It=Ie.getPopupDomNode();(!Object(Be.a)(yt,St)||Ie.isContextMenuOnly())&&!Object(Be.a)(It,St)&&!Ie.hasPopupMouseDown&&Ie.close()},Ie.getRootDomNode=function(){var lt=Ie.props.getTriggerDOMNode;if(lt)return lt(Ie.triggerRef.current);try{var St=Object(ft.a)(Ie.triggerRef.current);if(St)return St}catch(yt){}return ke.a.findDOMNode(Object(T.a)(Ie))},Ie.getPopupClassNameFromAlign=function(lt){var St=[],yt=Ie.props,It=yt.popupPlacement,zt=yt.builtinPlacements,_n=yt.prefixCls,hn=yt.alignPoint,Rn=yt.getPopupClassNameFromAlign;return It&&zt&&St.push(dt(zt,_n,lt,hn)),Rn&&St.push(Rn(lt)),St.join(" ")},Ie.getComponent=function(){var lt=Ie.props,St=lt.prefixCls,yt=lt.destroyPopupOnHide,It=lt.popupClassName,zt=lt.onPopupAlign,_n=lt.popupMotion,hn=lt.popupAnimation,Rn=lt.popupTransitionName,Tr=lt.popupStyle,ta=lt.mask,zr=lt.maskAnimation,Qr=lt.maskTransitionName,na=lt.maskMotion,qr=lt.zIndex,Jr=lt.popup,ba=lt.stretch,la=lt.alignPoint,ri=lt.mobile,pa=lt.forceRender,gr=Ie.state,wr=gr.popupVisible,ma=gr.point,Ta=Ie.getPopupAlign(),or={};return Ie.isMouseEnterToShow()&&(or.onMouseEnter=Ie.onPopupMouseEnter),Ie.isMouseLeaveToHide()&&(or.onMouseLeave=Ie.onPopupMouseLeave),or.onMouseDown=Ie.onPopupMouseDown,or.onTouchStart=Ie.onPopupMouseDown,g.createElement(rr,Object(x.a)({prefixCls:St,destroyPopupOnHide:yt,visible:wr,point:la&&ma,className:It,align:Ta,onAlign:zt,animation:hn,getClassNameFromAlign:Ie.getPopupClassNameFromAlign},or,{stretch:ba,getRootDomNode:Ie.getRootDomNode,style:Tr,mask:ta,zIndex:qr,transitionName:Rn,maskAnimation:zr,maskTransitionName:Qr,maskMotion:na,ref:Ie.popupRef,motion:_n,mobile:ri,forceRender:pa}),typeof Jr=="function"?Jr():Jr)},Ie.attachParent=function(lt){me.a.cancel(Ie.attachId);var St=Ie.props,yt=St.getPopupContainer,It=St.getDocument,zt=Ie.getRootDomNode(),_n;yt?(zt||yt.length===0)&&(_n=yt(zt)):_n=It(Ie.getRootDomNode()).body,_n?_n.appendChild(lt):Ie.attachId=Object(me.a)(function(){Ie.attachParent(lt)})},Ie.getContainer=function(){var lt=Ie.props.getDocument,St=lt(Ie.getRootDomNode()).createElement("div");return St.style.position="absolute",St.style.top="0",St.style.left="0",St.style.width="100%",Ie.attachParent(St),St},Ie.setPoint=function(lt){var St=Ie.props.alignPoint;if(!St||!lt)return;Ie.setState({point:{pageX:lt.pageX,pageY:lt.pageY}})},Ie.handlePortalUpdate=function(){Ie.state.prevPopupVisible!==Ie.state.popupVisible&&Ie.props.afterPopupVisibleChange(Ie.state.popupVisible)},Ie.triggerContextValue={onPopupMouseDown:Ie.onPopupMouseDown};var rt;return"popupVisible"in ze?rt=!!ze.popupVisible:rt=!!ze.defaultPopupVisible,Ie.state={prevPopupVisible:rt,popupVisible:rt},Eo.forEach(function(lt){Ie["fire".concat(lt)]=function(St){Ie.fireEvents(lt,St)}}),Ie}return Object(k.a)(Oe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ie=this.props,rt=this.state;if(rt.popupVisible){var lt;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(lt=Ie.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Xe.a)(lt,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(lt=lt||Ie.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Xe.a)(lt,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(lt=lt||Ie.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Xe.a)(lt,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Xe.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),me.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Ie;return((Ie=this.popupRef.current)===null||Ie===void 0?void 0:Ie.getElement())||null}},{key:"getPopupAlign",value:function(){var Ie=this.props,rt=Ie.popupPlacement,lt=Ie.popupAlign,St=Ie.builtinPlacements;return rt&&St?We(St,rt,lt):lt}},{key:"setPopupVisible",value:function(Ie,rt){var lt=this.props.alignPoint,St=this.state.popupVisible;this.clearDelayTimer(),St!==Ie&&("popupVisible"in this.props||this.setState({popupVisible:Ie,prevPopupVisible:St}),this.props.onPopupVisibleChange(Ie)),lt&&rt&&Ie&&this.setPoint(rt)}},{key:"delaySetPopupVisible",value:function(Ie,rt,lt){var St=this,yt=rt*1e3;if(this.clearDelayTimer(),yt){var It=lt?{pageX:lt.pageX,pageY:lt.pageY}:null;this.delayTimer=window.setTimeout(function(){St.setPopupVisible(Ie,It),St.clearDelayTimer()},yt)}else this.setPopupVisible(Ie,lt)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Ie){var rt=this.props.children.props,lt=this.props;return rt[Ie]&&lt[Ie]?this["fire".concat(Ie)]:rt[Ie]||lt[Ie]}},{key:"isClickToShow",value:function(){var Ie=this.props,rt=Ie.action,lt=Ie.showAction;return rt.indexOf("click")!==-1||lt.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Ie=this.props.action;return Ie==="contextMenu"||Ie.length===1&&Ie[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Ie=this.props,rt=Ie.action,lt=Ie.showAction;return rt.indexOf("contextMenu")!==-1||lt.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Ie=this.props,rt=Ie.action,lt=Ie.hideAction;return rt.indexOf("click")!==-1||lt.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Ie=this.props,rt=Ie.action,lt=Ie.showAction;return rt.indexOf("hover")!==-1||lt.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Ie=this.props,rt=Ie.action,lt=Ie.hideAction;return rt.indexOf("hover")!==-1||lt.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Ie=this.props,rt=Ie.action,lt=Ie.showAction;return rt.indexOf("focus")!==-1||lt.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Ie=this.props,rt=Ie.action,lt=Ie.hideAction;return rt.indexOf("focus")!==-1||lt.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Ie;(Ie=this.popupRef.current)===null||Ie===void 0||Ie.forceAlign()}}},{key:"fireEvents",value:function(Ie,rt){var lt=this.props.children.props[Ie];lt&&lt(rt);var St=this.props[Ie];St&&St(rt)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Ie=this.state.popupVisible,rt=this.props,lt=rt.children,St=rt.forceRender,yt=rt.alignPoint,It=rt.className,zt=rt.autoDestroy,_n=g.Children.only(lt),hn={key:"trigger"};this.isContextMenuToShow()?hn.onContextMenu=this.onContextMenu:hn.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(hn.onClick=this.onClick,hn.onMouseDown=this.onMouseDown,hn.onTouchStart=this.onTouchStart):(hn.onClick=this.createTwoChains("onClick"),hn.onMouseDown=this.createTwoChains("onMouseDown"),hn.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(hn.onMouseEnter=this.onMouseEnter,yt&&(hn.onMouseMove=this.onMouseMove)):hn.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?hn.onMouseLeave=this.onMouseLeave:hn.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(hn.onFocus=this.onFocus,hn.onBlur=this.onBlur):(hn.onFocus=this.createTwoChains("onFocus"),hn.onBlur=this.createTwoChains("onBlur"));var Rn=f()(_n&&_n.props&&_n.props.className,It);Rn&&(hn.className=Rn);var Tr=Object(m.a)({},hn);Object(vt.c)(_n)&&(Tr.ref=Object(vt.a)(this.triggerRef,_n.ref));var ta=g.cloneElement(_n,Tr),zr;return(Ie||this.popupRef.current||St)&&(zr=g.createElement(Qe,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Ie&&zt&&(zr=null),g.createElement(oa.Provider,{value:this.triggerContextValue},ta,zr)}}],[{key:"getDerivedStateFromProps",value:function(Ie,rt){var lt=Ie.popupVisible,St={};return lt!==void 0&&rt.popupVisible!==lt&&(St.popupVisible=lt,St.prevPopupVisible=rt.popupVisible),St}}]),Oe}(g.Component);return _t.contextType=oa,_t.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Sa,getDocument:yi,onPopupVisibleChange:Ar,afterPopupVisibleChange:Ar,onPopupAlign:Ar,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},_t}var Ka=wo(Bt.a),zi={adjustX:1,adjustY:1},Di={topLeft:{points:["bl","tl"],overflow:zi,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:zi,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:zi,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:zi,offset:[4,0]}},Fo={topLeft:{points:["bl","tl"],overflow:zi,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:zi,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:zi,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:zi,offset:[4,0]}},_i=Di,fa=0,pr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ka=function(_t,xt,it){var Oe=te(xt),ze=_t.getState();_t.setState({defaultActiveFirst:Object(m.a)(Object(m.a)({},ze.defaultActiveFirst),{},Object(w.a)({},Oe,it))})},ui=function(Qe){Object(R.a)(xt,Qe);var _t=Object(P.a)(xt);function xt(it){var Oe;Object(M.a)(this,xt),Oe=_t.call(this,it),Oe.onDestroy=function(yt){Oe.props.onDestroy(yt)},Oe.onKeyDown=function(yt){var It=yt.keyCode,zt=Oe.menuInstance,_n=Oe.props.store,hn=Oe.getVisible();if(It===i.a.ENTER)return Oe.onTitleClick(yt),ka(_n,Oe.props.eventKey,!0),!0;if(It===i.a.RIGHT)return hn?zt.onKeyDown(yt):(Oe.triggerOpenChange(!0),ka(_n,Oe.props.eventKey,!0)),!0;if(It===i.a.LEFT){var Rn;if(hn)Rn=zt.onKeyDown(yt);else return;return Rn||(Oe.triggerOpenChange(!1),Rn=!0),Rn}return hn&&(It===i.a.UP||It===i.a.DOWN)?zt.onKeyDown(yt):void 0},Oe.onOpenChange=function(yt){Oe.props.onOpenChange(yt)},Oe.onPopupVisibleChange=function(yt){Oe.triggerOpenChange(yt,yt?"mouseenter":"mouseleave")},Oe.onMouseEnter=function(yt){var It=Oe.props,zt=It.eventKey,_n=It.onMouseEnter,hn=It.store;ka(hn,Oe.props.eventKey,!1),_n({key:zt,domEvent:yt})},Oe.onMouseLeave=function(yt){var It=Oe.props,zt=It.parentMenu,_n=It.eventKey,hn=It.onMouseLeave;zt.subMenuInstance=Object(T.a)(Oe),hn({key:_n,domEvent:yt})},Oe.onTitleMouseEnter=function(yt){var It=Oe.props,zt=It.eventKey,_n=It.onItemHover,hn=It.onTitleMouseEnter;_n({key:zt,hover:!0}),hn({key:zt,domEvent:yt})},Oe.onTitleMouseLeave=function(yt){var It=Oe.props,zt=It.parentMenu,_n=It.eventKey,hn=It.onItemHover,Rn=It.onTitleMouseLeave;zt.subMenuInstance=Object(T.a)(Oe),hn({key:_n,hover:!1}),Rn({key:_n,domEvent:yt})},Oe.onTitleClick=function(yt){var It=Object(T.a)(Oe),zt=It.props;if(zt.onTitleClick({key:zt.eventKey,domEvent:yt}),zt.triggerSubMenuAction==="hover")return;Oe.triggerOpenChange(!Oe.getVisible(),"click"),ka(zt.store,Oe.props.eventKey,!1)},Oe.onSubMenuClick=function(yt){typeof Oe.props.onClick=="function"&&Oe.props.onClick(Oe.addKeyPath(yt))},Oe.onSelect=function(yt){Oe.props.onSelect(yt)},Oe.onDeselect=function(yt){Oe.props.onDeselect(yt)},Oe.getPrefixCls=function(){return"".concat(Oe.props.rootPrefixCls,"-submenu")},Oe.getActiveClassName=function(){return"".concat(Oe.getPrefixCls(),"-active")},Oe.getDisabledClassName=function(){return"".concat(Oe.getPrefixCls(),"-disabled")},Oe.getSelectedClassName=function(){return"".concat(Oe.getPrefixCls(),"-selected")},Oe.getOpenClassName=function(){return"".concat(Oe.props.rootPrefixCls,"-submenu-open")},Oe.getVisible=function(){return Oe.state.isOpen},Oe.getMode=function(){return Oe.state.mode},Oe.saveMenuInstance=function(yt){Oe.menuInstance=yt},Oe.addKeyPath=function(yt){return Object(m.a)(Object(m.a)({},yt),{},{keyPath:(yt.keyPath||[]).concat(Oe.props.eventKey)})},Oe.triggerOpenChange=function(yt,It){var zt=Oe.props.eventKey,_n=function(){Oe.onOpenChange({key:zt,item:Object(T.a)(Oe),trigger:It,open:yt})};It==="mouseenter"?Oe.mouseenterTimeout=setTimeout(function(){_n()},0):_n()},Oe.isChildrenSelected=function(){var yt={find:!1};return X(Oe.props.children,Oe.props.selectedKeys,yt),yt.find},Oe.isInlineMode=function(){return Oe.getMode()==="inline"},Oe.adjustWidth=function(){if(!Oe.subMenuTitle||!Oe.menuInstance)return;var yt=de.findDOMNode(Oe.menuInstance);if(yt.offsetWidth>=Oe.subMenuTitle.offsetWidth)return;yt.style.minWidth="".concat(Oe.subMenuTitle.offsetWidth,"px")},Oe.saveSubMenuTitle=function(yt){Oe.subMenuTitle=yt},Oe.getBaseProps=function(){var yt=Object(T.a)(Oe),It=yt.props,zt=Oe.getMode();return{mode:zt==="horizontal"?"vertical":zt,visible:Oe.getVisible(),level:It.level+1,inlineIndent:It.inlineIndent,focusable:!1,onClick:Oe.onSubMenuClick,onSelect:Oe.onSelect,onDeselect:Oe.onDeselect,onDestroy:Oe.onDestroy,selectedKeys:It.selectedKeys,eventKey:"".concat(It.eventKey,"-menu-"),openKeys:It.openKeys,motion:It.motion,onOpenChange:Oe.onOpenChange,subMenuOpenDelay:It.subMenuOpenDelay,parentMenu:Object(T.a)(Oe),subMenuCloseDelay:It.subMenuCloseDelay,forceSubMenuRender:It.forceSubMenuRender,triggerSubMenuAction:It.triggerSubMenuAction,builtinPlacements:It.builtinPlacements,defaultActiveFirst:It.store.getState().defaultActiveFirst[te(It.eventKey)],multiple:It.multiple,prefixCls:It.rootPrefixCls,id:Oe.internalMenuId,manualRef:Oe.saveMenuInstance,itemIcon:It.itemIcon,expandIcon:It.expandIcon,direction:It.direction}},Oe.getMotion=function(yt,It){var zt=Object(T.a)(Oe),_n=zt.haveRendered,hn=Oe.props,Rn=hn.motion,Tr=hn.rootPrefixCls,ta=Object(m.a)(Object(m.a)({},Rn),{},{leavedClassName:"".concat(Tr,"-hidden"),removeOnLeave:!1,motionAppear:_n||!It||yt!=="inline"});return ta};var ze=it.store,Ie=it.eventKey,rt=ze.getState(),lt=rt.defaultActiveFirst;Oe.isRootMenu=!1;var St=!1;return lt&&(St=lt[Ie]),ka(ze,Ie,St),Oe.state={mode:it.mode,isOpen:it.isOpen},Oe}return Object(k.a)(xt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Oe=this,ze=this.props,Ie=ze.mode,rt=ze.parentMenu,lt=ze.manualRef,St=ze.isOpen,yt=function(){Oe.setState({mode:Ie,isOpen:St})},It=St!==this.state.isOpen,zt=Ie!==this.state.mode;if((zt||It)&&(me.a.cancel(this.updateStateRaf),zt?this.updateStateRaf=Object(me.a)(yt):yt()),lt&&lt(this),Ie!=="horizontal"||!(rt==null?void 0:rt.isRootMenu)||!St)return;this.minWidthTimeout=setTimeout(function(){return Oe.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Oe=this.props,ze=Oe.onDestroy,Ie=Oe.eventKey;ze&&ze(Ie),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),me.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(Oe,ze){var Ie=this.getBaseProps();return g.createElement(vo,Object(x.a)({},Ie,{id:this.internalMenuId,className:Oe,style:ze}),this.props.children)}},{key:"renderChildren",value:function(){var Oe=this,ze=this.getBaseProps(),Ie=ze.mode,rt=ze.visible,lt=ze.forceSubMenuRender,St=ze.direction,yt=this.getMotion(Ie,rt);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||rt||lt,!this.haveOpened)return g.createElement("div",null);var It=f()("".concat(ze.prefixCls,"-sub"),Object(w.a)({},"".concat(ze.prefixCls,"-rtl"),St==="rtl"));return this.isInlineMode()?g.createElement(tr,Object(x.a)({visible:ze.visible,forceRender:lt},yt),function(zt){var _n=zt.className,hn=zt.style,Rn=f()(It,_n);return Oe.renderPopupMenu(Rn,hn)}):this.renderPopupMenu(It)}},{key:"render",value:function(){var Oe,ze,Ie,rt=Object(m.a)({},this.props),lt=this.getVisible(),St=this.getPrefixCls(),yt=this.isInlineMode(),It=this.getMode(),zt=f()(St,"".concat(St,"-").concat(It),(Oe={},Object(w.a)(Oe,rt.className,!!rt.className),Object(w.a)(Oe,this.getOpenClassName(),lt),Object(w.a)(Oe,this.getActiveClassName(),rt.active||lt&&!yt),Object(w.a)(Oe,this.getDisabledClassName(),rt.disabled),Object(w.a)(Oe,this.getSelectedClassName(),this.isChildrenSelected()),Oe));this.internalMenuId||(rt.eventKey?this.internalMenuId="".concat(rt.eventKey,"$Menu"):(fa+=1,this.internalMenuId="$__$".concat(fa,"$Menu")));var _n={},hn={},Rn={};rt.disabled||(_n={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},hn={onClick:this.onTitleClick},Rn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Tr={},ta=rt.direction,zr=ta==="rtl";yt&&(zr?Tr.paddingRight=rt.inlineIndent*rt.level:Tr.paddingLeft=rt.inlineIndent*rt.level);var Qr={};this.getVisible()&&(Qr={"aria-owns":this.internalMenuId});var na=null;It!=="horizontal"&&(na=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(na=g.createElement(this.props.expandIcon,Object(m.a)({},this.props))));var qr=g.createElement("div",Object(x.a)({ref:this.saveSubMenuTitle,style:Tr,className:"".concat(St,"-title"),role:"button"},Rn,hn,{"aria-expanded":lt},Qr,{"aria-haspopup":"true",title:typeof rt.title=="string"?rt.title:void 0}),rt.title,na||g.createElement("i",{className:"".concat(St,"-arrow")})),Jr=this.renderChildren(),ba=((ze=rt.parentMenu)===null||ze===void 0?void 0:ze.isRootMenu)?rt.parentMenu.props.getPopupContainer:function(Xa){return Xa.parentNode},la=pr[It],ri=rt.popupOffset?{offset:rt.popupOffset}:{},pa=f()((Ie={},Object(w.a)(Ie,rt.popupClassName,rt.popupClassName&&!yt),Object(w.a)(Ie,"".concat(St,"-rtl"),zr),Ie)),gr=rt.disabled,wr=rt.triggerSubMenuAction,ma=rt.subMenuOpenDelay,Ta=rt.forceSubMenuRender,or=rt.subMenuCloseDelay,_a=rt.builtinPlacements;J.forEach(function(Xa){return delete rt[Xa]}),delete rt.onClick;var ai=zr?Object(m.a)(Object(m.a)({},Fo),_a):Object(m.a)(Object(m.a)({},Di),_a);delete rt.direction;var ya=this.getBaseProps(),Ha=yt?null:this.getMotion(ya.mode,ya.visible);return g.createElement("li",Object(x.a)({},rt,_n,{className:zt,role:"menuitem"}),g.createElement(Ka,{prefixCls:St,popupClassName:f()("".concat(St,"-popup"),pa),getPopupContainer:ba,builtinPlacements:ai,popupPlacement:la,popupVisible:yt?!1:lt,popupAlign:ri,popup:yt?null:Jr,action:gr||yt?[]:[wr],mouseEnterDelay:ma,mouseLeaveDelay:or,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Ta,popupMotion:Ha},qr),yt?Jr:null)}}]),xt}(g.Component);ui.defaultProps={onMouseEnter:oe,onMouseLeave:oe,onTitleMouseEnter:oe,onTitleMouseLeave:oe,onTitleClick:oe,manualRef:oe,mode:"vertical",title:""};var ji=Object(B.b)(function(Qe,_t){var xt=Qe.openKeys,it=Qe.activeKey,Oe=Qe.selectedKeys,ze=_t.eventKey,Ie=_t.subMenuKey;return{isOpen:xt.indexOf(ze)>-1,active:it[Ie]===ze,selectedKeys:Oe}})(ui);ji.isSubMenu=!0;var gi=ji,ei="menuitem-overflowed",En=.5,ua=function(Qe){Object(R.a)(xt,Qe);var _t=Object(P.a)(xt);function xt(){var it;return Object(M.a)(this,xt),it=_t.apply(this,arguments),it.resizeObserver=null,it.mutationObserver=null,it.originalTotalWidth=0,it.overflowedItems=[],it.menuItemSizes=[],it.cancelFrameId=null,it.state={lastVisibleIndex:void 0},it.childRef=g.createRef(),it.getMenuItemNodes=function(){var Oe=it.props.prefixCls,ze=it.childRef.current;return ze?[].slice.call(ze.children).filter(function(Ie){return Ie.className.split(" ").indexOf("".concat(Oe,"-overflowed-submenu"))<0}):[]},it.getOverflowedSubMenuItem=function(Oe,ze,Ie){var rt=it.props,lt=rt.overflowedIndicator,St=rt.level,yt=rt.mode,It=rt.prefixCls,zt=rt.theme;if(St!==1||yt!=="horizontal")return null;var _n=it.props.children[0],hn=_n.props,Rn=hn.children,Tr=hn.title,ta=hn.style,zr=Object(I.a)(hn,["children","title","style"]),Qr=Object(m.a)({},ta),na="".concat(Oe,"-overflowed-indicator"),qr="".concat(Oe,"-overflowed-indicator");ze.length===0&&Ie!==!0?Qr=Object(m.a)(Object(m.a)({},Qr),{},{display:"none"}):Ie&&(Qr=Object(m.a)(Object(m.a)({},Qr),{},{visibility:"hidden",position:"absolute"}),na="".concat(na,"-placeholder"),qr="".concat(qr,"-placeholder"));var Jr=zt?"".concat(It,"-").concat(zt):"",ba={};return J.forEach(function(la){zr[la]!==void 0&&(ba[la]=zr[la])}),g.createElement(gi,Object(x.a)({title:lt,className:"".concat(It,"-overflowed-submenu"),popupClassName:Jr},ba,{key:na,eventKey:qr,disabled:!1,style:Qr}),ze)},it.setChildrenWidthAndResize=function(){if(it.props.mode!=="horizontal")return;var Oe=it.childRef.current;if(!Oe)return;var ze=Oe.children;if(!ze||ze.length===0)return;var Ie=Oe.children[ze.length-1];he(Ie,"display","inline-block");var rt=it.getMenuItemNodes(),lt=rt.filter(function(St){return St.className.split(" ").indexOf(ei)>=0});lt.forEach(function(St){he(St,"display","inline-block")}),it.menuItemSizes=rt.map(function(St){return ve(St,!0)}),lt.forEach(function(St){he(St,"display","none")}),it.overflowedIndicatorWidth=ve(Oe.children[Oe.children.length-1],!0),it.originalTotalWidth=it.menuItemSizes.reduce(function(St,yt){return St+yt},0),it.handleResize(),he(Ie,"display","none")},it.handleResize=function(){if(it.props.mode!=="horizontal")return;var Oe=it.childRef.current;if(!Oe)return;var ze=ve(Oe);it.overflowedItems=[];var Ie=0,rt;it.originalTotalWidth>ze+En&&(rt=-1,it.menuItemSizes.forEach(function(lt){Ie+=lt,Ie+it.overflowedIndicatorWidth<=ze&&(rt+=1)})),it.setState({lastVisibleIndex:rt})},it}return Object(k.a)(xt,[{key:"componentDidMount",value:function(){var Oe=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var ze=this.childRef.current;if(!ze)return;this.resizeObserver=new Pe.default(function(Ie){Ie.forEach(function(){var rt=Oe.cancelFrameId;cancelAnimationFrame(rt),Oe.cancelFrameId=requestAnimationFrame(Oe.setChildrenWidthAndResize)})}),[].slice.call(ze.children).concat(ze).forEach(function(Ie){Oe.resizeObserver.observe(Ie)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Oe.resizeObserver.disconnect(),[].slice.call(ze.children).concat(ze).forEach(function(Ie){Oe.resizeObserver.observe(Ie)}),Oe.setChildrenWidthAndResize()}),this.mutationObserver.observe(ze,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(Oe){var ze=this,Ie=this.state.lastVisibleIndex;return(Oe||[]).reduce(function(rt,lt,St){var yt=lt;if(ze.props.mode==="horizontal"){var It=ze.getOverflowedSubMenuItem(lt.props.eventKey,[]);Ie!==void 0&&ze.props.className.indexOf("".concat(ze.props.prefixCls,"-root"))!==-1&&(St>Ie&&(yt=g.cloneElement(lt,{style:{display:"none"},eventKey:"".concat(lt.props.eventKey,"-hidden"),className:"".concat(ei)})),St===Ie+1&&(ze.overflowedItems=Oe.slice(Ie+1).map(function(_n){return g.cloneElement(_n,{key:_n.props.eventKey,mode:"vertical-left"})}),It=ze.getOverflowedSubMenuItem(lt.props.eventKey,ze.overflowedItems)));var zt=[].concat(Object(o.a)(rt),[It,yt]);return St===Oe.length-1&&zt.push(ze.getOverflowedSubMenuItem(lt.props.eventKey,[],!0)),zt}return[].concat(Object(o.a)(rt),[yt])},[])}},{key:"render",value:function(){var Oe=this.props,ze=Oe.visible,Ie=Oe.prefixCls,rt=Oe.overflowedIndicator,lt=Oe.mode,St=Oe.level,yt=Oe.tag,It=Oe.children,zt=Oe.theme,_n=Object(I.a)(Oe,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),hn=yt;return g.createElement(hn,Object(x.a)({ref:this.childRef},_n),this.renderChildren(It))}}]),xt}(g.Component);ua.defaultProps={tag:"div",className:""};var Mi=ua;function ao(Qe){return Qe.length?Qe.every(function(_t){return!!_t.props.disabled}):!0}function hi(Qe,_t,xt){var it=Qe.getState();Qe.setState({activeKey:Object(m.a)(Object(m.a)({},it.activeKey),{},Object(w.a)({},_t,xt))})}function Ia(Qe){return Qe.eventKey||"0-menu-"}function La(Qe,_t){var xt=_t,it=Qe.children,Oe=Qe.eventKey;if(xt){var ze;if(Y(it,function(Ie,rt){Ie&&Ie.props&&!Ie.props.disabled&&xt===Le(Ie,Oe,rt)&&(ze=!0)}),ze)return xt}return xt=null,Qe.defaultActiveFirst&&Y(it,function(Ie,rt){!xt&&Ie&&!Ie.props.disabled&&(xt=Le(Ie,Oe,rt))}),xt}function io(Qe){if(!Qe)return;var _t=this.instanceArray.indexOf(Qe);_t!==-1?this.instanceArray[_t]=Qe:this.instanceArray.push(Qe)}var Ji=function(Qe){Object(R.a)(xt,Qe);var _t=Object(P.a)(xt);function xt(it){var Oe;return Object(M.a)(this,xt),Oe=_t.call(this,it),Oe.onKeyDown=function(ze,Ie){var rt=ze.keyCode,lt;if(Oe.getFlatInstanceArray().forEach(function(yt){yt&&yt.props.active&&yt.onKeyDown&&(lt=yt.onKeyDown(ze))}),lt)return 1;var St=null;return(rt===i.a.UP||rt===i.a.DOWN)&&(St=Oe.step(rt===i.a.UP?-1:1)),St?(ze.preventDefault(),hi(Oe.props.store,Ia(Oe.props),St.props.eventKey),typeof Ie=="function"&&Ie(St),1):void 0},Oe.onItemHover=function(ze){var Ie=ze.key,rt=ze.hover;hi(Oe.props.store,Ia(Oe.props),rt?Ie:null)},Oe.onDeselect=function(ze){Oe.props.onDeselect(ze)},Oe.onSelect=function(ze){Oe.props.onSelect(ze)},Oe.onClick=function(ze){Oe.props.onClick(ze)},Oe.onOpenChange=function(ze){Oe.props.onOpenChange(ze)},Oe.onDestroy=function(ze){Oe.props.onDestroy(ze)},Oe.getFlatInstanceArray=function(){return Oe.instanceArray},Oe.step=function(ze){var Ie=Oe.getFlatInstanceArray(),rt=Oe.props.store.getState().activeKey[Ia(Oe.props)],lt=Ie.length;if(!lt)return null;ze<0&&(Ie=Ie.concat().reverse());var St=-1;if(Ie.every(function(_n,hn){return _n&&_n.props.eventKey===rt?(St=hn,!1):!0}),!Oe.props.defaultActiveFirst&&St!==-1&&ao(Ie.slice(St,lt-1)))return;var yt=(St+1)%lt,It=yt;do{var zt=Ie[It];if(!zt||zt.props.disabled)It=(It+1)%lt;else return zt}while(It!==yt);return null},Oe.renderCommonMenuItem=function(ze,Ie,rt){var lt=Oe.props.store.getState(),St=Object(T.a)(Oe),yt=St.props,It=Le(ze,yt.eventKey,Ie),zt=ze.props;if(!zt||typeof ze.type=="string")return ze;var _n=It===lt.activeKey,hn=Object(m.a)(Object(m.a)({mode:zt.mode||yt.mode,level:yt.level,inlineIndent:yt.inlineIndent,renderMenuItem:Oe.renderMenuItem,rootPrefixCls:yt.prefixCls,index:Ie,parentMenu:yt.parentMenu,manualRef:zt.disabled?void 0:Object(z.a)(ze.ref,io.bind(Object(T.a)(Oe))),eventKey:It,active:!zt.disabled&&_n,multiple:yt.multiple,onClick:function(Tr){(zt.onClick||oe)(Tr),Oe.onClick(Tr)},onItemHover:Oe.onItemHover,motion:yt.motion,subMenuOpenDelay:yt.subMenuOpenDelay,subMenuCloseDelay:yt.subMenuCloseDelay,forceSubMenuRender:yt.forceSubMenuRender,onOpenChange:Oe.onOpenChange,onDeselect:Oe.onDeselect,onSelect:Oe.onSelect,builtinPlacements:yt.builtinPlacements,itemIcon:zt.itemIcon||Oe.props.itemIcon,expandIcon:zt.expandIcon||Oe.props.expandIcon},rt),{},{direction:yt.direction});return(yt.mode==="inline"||Ce())&&(hn.triggerSubMenuAction="click"),g.cloneElement(ze,Object(m.a)(Object(m.a)({},hn),{},{key:It||Ie}))},Oe.renderMenuItem=function(ze,Ie,rt){if(!ze)return null;var lt=Oe.props.store.getState(),St={openKeys:lt.openKeys,selectedKeys:lt.selectedKeys,triggerSubMenuAction:Oe.props.triggerSubMenuAction,subMenuKey:rt};return Oe.renderCommonMenuItem(ze,Ie,St)},it.store.setState({activeKey:Object(m.a)(Object(m.a)({},it.store.getState().activeKey),{},Object(w.a)({},it.eventKey,La(it,it.activeKey)))}),Oe.instanceArray=[],Oe}return Object(k.a)(xt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(Oe){return this.props.visible||Oe.visible||this.props.className!==Oe.className||!ee()(this.props.style,Oe.style)}},{key:"componentDidUpdate",value:function(Oe){var ze=this.props,Ie="activeKey"in ze?ze.activeKey:ze.store.getState().activeKey[Ia(ze)],rt=La(ze,Ie);if(rt!==Ie)hi(ze.store,Ia(ze),rt);else if("activeKey"in Oe){var lt=La(Oe,Oe.activeKey);rt!==lt&&hi(ze.store,Ia(ze),rt)}}},{key:"render",value:function(){var Oe=this,ze=Object(x.a)({},this.props);this.instanceArray=[];var Ie=f()(ze.prefixCls,ze.className,"".concat(ze.prefixCls,"-").concat(ze.mode)),rt={className:Ie,role:ze.role||"menu"};ze.id&&(rt.id=ze.id),ze.focusable&&(rt.tabIndex=0,rt.onKeyDown=this.onKeyDown);var lt=ze.prefixCls,St=ze.eventKey,yt=ze.visible,It=ze.level,zt=ze.mode,_n=ze.overflowedIndicator,hn=ze.theme;return J.forEach(function(Rn){return delete ze[Rn]}),delete ze.onClick,g.createElement(Mi,Object(x.a)({},ze,{prefixCls:lt,mode:zt,tag:"ul",level:It,theme:hn,visible:yt,overflowedIndicator:_n},rt),Object(d.a)(ze.children).map(function(Rn,Tr){return Oe.renderMenuItem(Rn,Tr,St||"0-menu-")}))}}]),xt}(g.Component);Ji.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:oe};var xo=Object(B.b)()(Ji),vo=xo,Co=v("Kwbf");function Ho(Qe,_t,xt){var it=Qe.prefixCls,Oe=Qe.motion,ze=Qe.defaultMotions,Ie=ze===void 0?{}:ze,rt=Qe.openAnimation,lt=Qe.openTransitionName,St=_t.switchingModeFromInline;if(Oe)return Oe;if(Object(G.a)(rt)==="object"&&rt)Object(Co.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof rt=="string")return{motionName:"".concat(it,"-open-").concat(rt)};if(lt)return{motionName:lt};var yt=Ie[xt];return yt||(St?null:Ie.other)}var $n=function(Qe){Object(R.a)(xt,Qe);var _t=Object(P.a)(xt);function xt(it){var Oe;Object(M.a)(this,xt),Oe=_t.call(this,it),Oe.onSelect=function(rt){var lt=Object(T.a)(Oe),St=lt.props;if(St.selectable){var yt=Oe.store.getState(),It=yt.selectedKeys,zt=rt.key;St.multiple?It=It.concat([zt]):It=[zt],"selectedKeys"in St||Oe.store.setState({selectedKeys:It}),St.onSelect(Object(m.a)(Object(m.a)({},rt),{},{selectedKeys:It}))}},Oe.onClick=function(rt){var lt=Oe.getRealMenuMode(),St=Object(T.a)(Oe),yt=St.store,It=St.props.onOpenChange;lt!=="inline"&&!("openKeys"in Oe.props)&&(yt.setState({openKeys:[]}),It([])),Oe.props.onClick(rt)},Oe.onKeyDown=function(rt,lt){Oe.innerMenu.getWrappedInstance().onKeyDown(rt,lt)},Oe.onOpenChange=function(rt){var lt=Object(T.a)(Oe),St=lt.props,yt=Oe.store.getState().openKeys.concat(),It=!1,zt=function(hn){var Rn=!1;if(hn.open)Rn=yt.indexOf(hn.key)===-1,Rn&&yt.push(hn.key);else{var Tr=yt.indexOf(hn.key);Rn=Tr!==-1,Rn&&yt.splice(Tr,1)}It=It||Rn};Array.isArray(rt)?rt.forEach(zt):zt(rt),It&&("openKeys"in Oe.props||Oe.store.setState({openKeys:yt}),St.onOpenChange(yt))},Oe.onDeselect=function(rt){var lt=Object(T.a)(Oe),St=lt.props;if(St.selectable){var yt=Oe.store.getState().selectedKeys.concat(),It=rt.key,zt=yt.indexOf(It);zt!==-1&&yt.splice(zt,1),"selectedKeys"in St||Oe.store.setState({selectedKeys:yt}),St.onDeselect(Object(m.a)(Object(m.a)({},rt),{},{selectedKeys:yt}))}},Oe.onMouseEnter=function(rt){Oe.restoreModeVerticalFromInline();var lt=Oe.props.onMouseEnter;lt&&lt(rt)},Oe.onTransitionEnd=function(rt){var lt=rt.propertyName==="width"&&rt.target===rt.currentTarget,St=rt.target.className,yt=Object.prototype.toString.call(St)==="[object SVGAnimatedString]"?St.animVal:St,It=rt.propertyName==="font-size"&&yt.indexOf("anticon")>=0;(lt||It)&&Oe.restoreModeVerticalFromInline()},Oe.setInnerMenu=function(rt){Oe.innerMenu=rt},Oe.isRootMenu=!0;var ze=it.defaultSelectedKeys,Ie=it.defaultOpenKeys;return"selectedKeys"in it&&(ze=it.selectedKeys||[]),"openKeys"in it&&(Ie=it.openKeys||[]),Oe.store=Object(B.c)({selectedKeys:ze,openKeys:Ie,activeKey:{"0-menu-":La(it,it.activeKey)}}),Oe.state={switchingModeFromInline:!1,prevProps:it,inlineOpenKeys:[],store:Oe.store},Oe}return Object(k.a)(xt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Oe){var ze=this.props,Ie=ze.siderCollapsed,rt=ze.inlineCollapsed,lt=ze.onOpenChange;(!Oe.inlineCollapsed&&rt||!Oe.siderCollapsed&&Ie)&&lt([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var Oe=this.props.collapsedWidth,ze=this.store,Ie=this.prevOpenKeys,rt=this.getInlineCollapsed()&&(Oe===0||Oe==="0"||Oe==="0px");rt?(this.prevOpenKeys=ze.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Ie&&(this.store.setState({openKeys:Ie}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Oe=this.props.mode,ze=this.state.switchingModeFromInline,Ie=this.getInlineCollapsed();return ze&&Ie?"inline":Ie?"vertical":Oe}},{key:"getInlineCollapsed",value:function(){var Oe=this.props,ze=Oe.inlineCollapsed,Ie=Oe.siderCollapsed;return Ie!==void 0?Ie:ze}},{key:"restoreModeVerticalFromInline",value:function(){var Oe=this.state.switchingModeFromInline;Oe&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var Oe=Object(m.a)({},Object(W.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),ze=this.getRealMenuMode();return Oe.className+=" ".concat(Oe.prefixCls,"-root"),Oe.direction==="rtl"&&(Oe.className+=" ".concat(Oe.prefixCls,"-rtl")),Oe=Object(m.a)(Object(m.a)({},Oe),{},{mode:ze,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ho(this.props,this.state,ze)}),delete Oe.openAnimation,delete Oe.openTransitionName,g.createElement(B.a,{store:this.store},g.createElement(vo,Object(x.a)({},Oe,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(Oe,ze){var Ie=ze.prevProps,rt=ze.store,lt=rt.getState(),St={},yt={prevProps:Oe};return Ie.mode==="inline"&&Oe.mode!=="inline"&&(yt.switchingModeFromInline=!0),"openKeys"in Oe?St.openKeys=Oe.openKeys||[]:((Oe.inlineCollapsed&&!Ie.inlineCollapsed||Oe.siderCollapsed&&!Ie.siderCollapsed)&&(yt.switchingModeFromInline=!0,yt.inlineOpenKeys=lt.openKeys,St.openKeys=[]),(!Oe.inlineCollapsed&&Ie.inlineCollapsed||!Oe.siderCollapsed&&Ie.siderCollapsed)&&(St.openKeys=ze.inlineOpenKeys,yt.inlineOpenKeys=[])),Object.keys(St).length&&rt.setState(St),yt}}]),xt}(g.Component);$n.defaultProps={selectable:!0,onClick:oe,onSelect:oe,onOpenChange:oe,onDeselect:oe,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:g.createElement("span",null,"\xB7\xB7\xB7")};var Cr=$n,ar=function(Qe){Object(R.a)(xt,Qe);var _t=Object(P.a)(xt);function xt(){var it;return Object(M.a)(this,xt),it=_t.apply(this,arguments),it.onKeyDown=function(Oe){var ze=Oe.keyCode;return ze===i.a.ENTER?(it.onClick(Oe),!0):void 0},it.onMouseLeave=function(Oe){var ze=it.props,Ie=ze.eventKey,rt=ze.onItemHover,lt=ze.onMouseLeave;rt({key:Ie,hover:!1}),lt({key:Ie,domEvent:Oe})},it.onMouseEnter=function(Oe){var ze=it.props,Ie=ze.eventKey,rt=ze.onItemHover,lt=ze.onMouseEnter;rt({key:Ie,hover:!0}),lt({key:Ie,domEvent:Oe})},it.onClick=function(Oe){var ze=it.props,Ie=ze.eventKey,rt=ze.multiple,lt=ze.onClick,St=ze.onSelect,yt=ze.onDeselect,It=ze.isSelected,zt={key:Ie,keyPath:[Ie],item:Object(T.a)(it),domEvent:Oe};lt(zt),rt?It?yt(zt):St(zt):It||St(zt)},it.saveNode=function(Oe){it.node=Oe},it}return Object(k.a)(xt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var Oe=this.props;Oe.onDestroy&&Oe.onDestroy(Oe.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var Oe,ze=Object(m.a)({},this.props),Ie=f()(this.getPrefixCls(),ze.className,(Oe={},Object(w.a)(Oe,this.getActiveClassName(),!ze.disabled&&ze.active),Object(w.a)(Oe,this.getSelectedClassName(),ze.isSelected),Object(w.a)(Oe,this.getDisabledClassName(),ze.disabled),Oe)),rt=Object(m.a)(Object(m.a)({},ze.attribute),{},{title:typeof ze.title=="string"?ze.title:void 0,className:Ie,role:ze.role||"menuitem","aria-disabled":ze.disabled});ze.role==="option"?rt=Object(m.a)(Object(m.a)({},rt),{},{role:"option","aria-selected":ze.isSelected}):(ze.role===null||ze.role==="none")&&(rt.role="none");var lt={onClick:ze.disabled?null:this.onClick,onMouseLeave:ze.disabled?null:this.onMouseLeave,onMouseEnter:ze.disabled?null:this.onMouseEnter},St=Object(m.a)({},ze.style);ze.mode==="inline"&&(ze.direction==="rtl"?St.paddingRight=ze.inlineIndent*ze.level:St.paddingLeft=ze.inlineIndent*ze.level),J.forEach(function(It){return delete ze[It]}),delete ze.direction;var yt=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(yt=g.createElement(this.props.itemIcon,this.props)),g.createElement("li",Object(x.a)({},Object(W.a)(ze,["onClick","onMouseEnter","onMouseLeave","onSelect"]),rt,lt,{style:St,ref:this.saveNode}),ze.children,yt)}}]),xt}(g.Component);ar.isMenuItem=!0,ar.defaultProps={onSelect:oe,onMouseEnter:oe,onMouseLeave:oe,manualRef:oe};var Kr=Object(B.b)(function(Qe,_t){var xt=Qe.activeKey,it=Qe.selectedKeys,Oe=_t.eventKey,ze=_t.subMenuKey;return{active:xt[ze]===Oe,isSelected:Array.isArray(it)?it.indexOf(Oe)!==-1:it===Oe}})(ar),sa=Kr,ca=function(Qe){Object(R.a)(xt,Qe);var _t=Object(P.a)(xt);function xt(){var it;return Object(M.a)(this,xt),it=_t.apply(this,arguments),it.renderInnerMenuItem=function(Oe){var ze=it.props,Ie=ze.renderMenuItem,rt=ze.index;return Ie(Oe,rt,it.props.subMenuKey)},it}return Object(k.a)(xt,[{key:"render",value:function(){var Oe=Object(x.a)({},this.props),ze=Oe.className,Ie=ze===void 0?"":ze,rt=Oe.rootPrefixCls,lt="".concat(rt,"-item-group-title"),St="".concat(rt,"-item-group-list"),yt=Oe.title,It=Oe.children;return J.forEach(function(zt){return delete Oe[zt]}),delete Oe.direction,g.createElement("li",Object(x.a)({},Oe,{onClick:function(_n){return _n.stopPropagation()},className:"".concat(Ie," ").concat(rt,"-item-group")}),g.createElement("div",{className:lt,title:typeof yt=="string"?yt:void 0},yt),g.createElement("ul",{className:St},g.Children.map(It,this.renderInnerMenuItem)))}}]),xt}(g.Component);ca.isMenuItemGroup=!0,ca.defaultProps={disabled:!0};var Zr=ca,ti=function(_t){var xt=_t.className,it=_t.rootPrefixCls,Oe=_t.style;return g.createElement("li",{className:"".concat(xt," ").concat(it,"-item-divider"),style:Oe})};ti.defaultProps={disabled:!0,className:"",style:{}};var Ci=ti,Sr=Cr,Gi=v("eDIo");function ha(Qe,_t){var xt=Qe.prefixCls,it=Qe.editable,Oe=Qe.locale,ze=Qe.style;return!it||it.showAdd===!1?null:g.createElement("button",{ref:_t,type:"button",className:"".concat(xt,"-nav-add"),style:ze,"aria-label":(Oe==null?void 0:Oe.addAriaLabel)||"Add tab",onClick:function(rt){it.onEdit("add",{event:rt})}},it.addIcon||"+")}var Si=g.forwardRef(ha);function Ei(Qe,_t){var xt=Qe.prefixCls,it=Qe.id,Oe=Qe.tabs,ze=Qe.locale,Ie=Qe.mobile,rt=Qe.moreIcon,lt=rt===void 0?"More":rt,St=Qe.moreTransitionName,yt=Qe.style,It=Qe.className,zt=Qe.editable,_n=Qe.tabBarGutter,hn=Qe.rtl,Rn=Qe.onTabClick,Tr=Object(g.useState)(!1),ta=Object(h.a)(Tr,2),zr=ta[0],Qr=ta[1],na=Object(g.useState)(null),qr=Object(h.a)(na,2),Jr=qr[0],ba=qr[1],la="".concat(it,"-more-popup"),ri="".concat(xt,"-dropdown"),pa=Jr!==null?"".concat(la,"-").concat(Jr):null,gr=ze==null?void 0:ze.dropdownAriaLabel,wr=g.createElement(Sr,{onClick:function(Ha){var Xa=Ha.key,wi=Ha.domEvent;Rn(Xa,wi),Qr(!1)},id:la,tabIndex:-1,role:"listbox","aria-activedescendant":pa,selectedKeys:[Jr],"aria-label":gr!==void 0?gr:"expanded dropdown"},Oe.map(function(ya){return g.createElement(sa,{key:ya.key,id:"".concat(la,"-").concat(ya.key),role:"option","aria-controls":it&&"".concat(it,"-panel-").concat(ya.key),disabled:ya.disabled},ya.tab)}));function ma(ya){for(var Ha=Oe.filter(function(oo){return!oo.disabled}),Xa=Ha.findIndex(function(oo){return oo.key===Jr})||0,wi=Ha.length,Bi=0;Bi<wi;Bi+=1){Xa=(Xa+ya+wi)%wi;var vi=Ha[Xa];if(!vi.disabled){ba(vi.key);return}}}function Ta(ya){var Ha=ya.which;if(!zr){[i.a.DOWN,i.a.SPACE,i.a.ENTER].includes(Ha)&&(Qr(!0),ya.preventDefault());return}switch(Ha){case i.a.UP:ma(-1),ya.preventDefault();break;case i.a.DOWN:ma(1),ya.preventDefault();break;case i.a.ESC:Qr(!1);break;case i.a.SPACE:case i.a.ENTER:Jr!==null&&Rn(Jr,ya);break}}Object(g.useEffect)(function(){var ya=document.getElementById(pa);ya&&ya.scrollIntoView&&ya.scrollIntoView(!1)},[Jr]),Object(g.useEffect)(function(){zr||ba(null)},[zr]);var or=Object(w.a)({},hn?"marginLeft":"marginRight",_n);Oe.length||(or.visibility="hidden",or.order=1);var _a=f()(Object(w.a)({},"".concat(ri,"-rtl"),hn)),ai=Ie?null:g.createElement(Gi.a,{prefixCls:ri,overlay:wr,trigger:["hover"],visible:zr,transitionName:St,onVisibleChange:Qr,overlayClassName:_a,mouseEnterDelay:.1,mouseLeaveDelay:.1},g.createElement("button",{type:"button",className:"".concat(xt,"-nav-more"),style:or,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":la,id:"".concat(it,"-more"),"aria-expanded":zr,onKeyDown:Ta},lt));return g.createElement("div",{className:f()("".concat(xt,"-nav-operations"),It),style:yt,ref:_t},ai,g.createElement(Si,{prefixCls:xt,locale:ze,editable:zt}))}var Ui=g.forwardRef(Ei),Do=Object(g.createContext)(null),gs=.1,Ao=.01,Za=20,is=Math.pow(.995,Za);function Dr(){var Qe=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Qe)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Qe.substr(0,4)))}function wn(Qe,_t){var xt=Object(g.useState)(),it=Object(h.a)(xt,2),Oe=it[0],ze=it[1],Ie=Object(g.useState)(0),rt=Object(h.a)(Ie,2),lt=rt[0],St=rt[1],yt=Object(g.useState)(0),It=Object(h.a)(yt,2),zt=It[0],_n=It[1],hn=Object(g.useState)(),Rn=Object(h.a)(hn,2),Tr=Rn[0],ta=Rn[1],zr=Object(g.useRef)();function Qr(gr){var wr=gr.touches[0],ma=wr.screenX,Ta=wr.screenY;ze({x:ma,y:Ta}),window.clearInterval(zr.current)}function na(gr){if(!Oe)return;gr.preventDefault();var wr=gr.touches[0],ma=wr.screenX,Ta=wr.screenY;ze({x:ma,y:Ta});var or=ma-Oe.x,_a=Ta-Oe.y;_t(or,_a);var ai=Date.now();St(ai),_n(ai-lt),ta({x:or,y:_a})}function qr(){if(!Oe)return;if(ze(null),ta(null),Tr){var gr=Tr.x/zt,wr=Tr.y/zt,ma=Math.abs(gr),Ta=Math.abs(wr);if(Math.max(ma,Ta)<gs)return;var or=gr,_a=wr;zr.current=window.setInterval(function(){if(Math.abs(or)<Ao&&Math.abs(_a)<Ao){window.clearInterval(zr.current);return}or*=is,_a*=is,_t(or*Za,_a*Za)},Za)}}var Jr=Object(g.useRef)(0),ba=Object(g.useRef)(!1),la=Object(g.useRef)();function ri(gr){var wr=gr.deltaX,ma=gr.deltaY,Ta=0,or=Math.abs(wr),_a=Math.abs(ma);or===_a?Ta=la.current==="x"?wr:ma:or>_a?(Ta=wr,la.current="x"):(Ta=ma,la.current="y");var ai=Date.now();ai-Jr.current>100&&(ba.current=!1),(_t(-Ta,-Ta)||ba.current)&&(gr.preventDefault(),ba.current=!0),Jr.current=ai}var pa=Object(g.useRef)(null);pa.current={onTouchStart:Qr,onTouchMove:na,onTouchEnd:qr,onWheel:ri},g.useEffect(function(){function gr(or){pa.current.onTouchStart(or)}function wr(or){pa.current.onTouchMove(or)}function ma(or){pa.current.onTouchEnd(or)}function Ta(or){pa.current.onWheel(or)}return document.addEventListener("touchmove",wr,{passive:!1}),document.addEventListener("touchend",ma,{passive:!1}),Qe.current.addEventListener("touchstart",gr,{passive:!1}),Qe.current.addEventListener("wheel",Ta),function(){document.removeEventListener("touchmove",wr),document.removeEventListener("touchend",ma)}},[])}function Qn(){var Qe=Object(g.useRef)(new Map);function _t(it){return Qe.current.has(it)||Qe.current.set(it,g.createRef()),Qe.current.get(it)}function xt(it){Qe.current.delete(it)}return[_t,xt]}function Cn(Qe,_t){var xt=g.useRef(Qe),it=g.useState({}),Oe=Object(h.a)(it,2),ze=Oe[1];function Ie(rt){var lt=typeof rt=="function"?rt(xt.current):rt;lt!==xt.current&&_t(lt,xt.current),xt.current=lt,ze({})}return[xt.current,Ie]}var mr=function(_t){var xt=_t.position,it=_t.prefixCls,Oe=_t.extra;if(!Oe)return null;var ze,Ie=Oe;return xt==="right"&&(ze=Ie.right||!Ie.left&&Ie||null),xt==="left"&&(ze=Ie.left||null),ze?g.createElement("div",{className:"".concat(it,"-extra-content")},ze):null};function yr(Qe,_t){var xt,it=g.useContext(Do),Oe=it.prefixCls,ze=it.tabs,Ie=Qe.className,rt=Qe.style,lt=Qe.id,St=Qe.animated,yt=Qe.activeKey,It=Qe.rtl,zt=Qe.extra,_n=Qe.editable,hn=Qe.locale,Rn=Qe.tabPosition,Tr=Qe.tabBarGutter,ta=Qe.children,zr=Qe.onTabClick,Qr=Qe.onTabScroll,na=Object(g.useRef)(),qr=Object(g.useRef)(),Jr=Object(g.useRef)(),ba=Object(g.useRef)(),la=Qn(),ri=Object(h.a)(la,2),pa=ri[0],gr=ri[1],wr=Rn==="top"||Rn==="bottom",ma=Cn(0,function(Xr,Oa){wr&&Qr&&Qr({direction:Xr>Oa?"left":"right"})}),Ta=Object(h.a)(ma,2),or=Ta[0],_a=Ta[1],ai=Cn(0,function(Xr,Oa){!wr&&Qr&&Qr({direction:Xr>Oa?"top":"bottom"})}),ya=Object(h.a)(ai,2),Ha=ya[0],Xa=ya[1],wi=Object(g.useState)(0),Bi=Object(h.a)(wi,2),vi=Bi[0],oo=Bi[1],To=Object(g.useState)(0),fo=Object(h.a)(To,2),Ki=fo[0],$a=fo[1],za=Object(g.useState)(0),Ga=Object(h.a)(za,2),ii=Ga[0],Oo=Ga[1],Wo=Object(g.useState)(0),Xo=Object(h.a)(Wo,2),Wa=Xo[0],No=Xo[1],zo=Object(g.useState)(null),Va=Object(h.a)(zo,2),Pa=Va[0],Ni=Va[1],il=Object(g.useState)(null),ol=Object(h.a)(il,2),Go=ol[0],os=ol[1],As=Object(g.useState)(0),ss=Object(h.a)(As,2),Ts=ss[0],bl=ss[1],bi=Object(g.useState)(0),yl=Object(h.a)(bi,2),sl=yl[0],vs=yl[1],ls=e(new Map),us=Object(h.a)(ls,2),El=us[0],Os=us[1],bs=E(ze,El,vi),ys="".concat(Oe,"-nav-operations-hidden"),cs=0,bo=0;wr?It?(cs=0,bo=Math.max(0,vi-Pa)):(cs=Math.min(0,Pa-vi),bo=0):(cs=Math.min(0,Go-Ki),bo=0);function $o(Xr){return Xr<cs?[cs,!1]:Xr>bo?[bo,!1]:[Xr,!0]}var So=Object(g.useRef)(),Es=Object(g.useState)(),Vo=Object(h.a)(Es,2),Rs=Vo[0],Hs=Vo[1];function ks(){Hs(Date.now())}function Lo(){window.clearTimeout(So.current)}wn(na,function(Xr,Oa){var Oi=!1;function qi(ts,Po){ts(function(ds){var Jo=$o(ds+Po),Ya=Object(h.a)(Jo,2),Cs=Ya[0],Ws=Ya[1];return Oi=Ws,Cs})}if(wr){if(Pa>=vi)return Oi;qi(_a,Xr)}else{if(Go>=Ki)return Oi;qi(Xa,Oa)}return Lo(),ks(),Oi}),Object(g.useEffect)(function(){return Lo(),Rs&&(So.current=window.setTimeout(function(){Hs(0)},100)),Lo},[Rs]);function Yo(){var Xr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yt,Oa=bs.get(Xr);if(!Oa)return;if(wr){var Oi=or;It?Oa.right<or?Oi=Oa.right:Oa.right+Oa.width>or+Pa&&(Oi=Oa.right+Oa.width-Pa):Oa.left<-or?Oi=-Oa.left:Oa.left+Oa.width>-or+Pa&&(Oi=-(Oa.left+Oa.width-Pa)),Xa(0),_a($o(Oi)[0])}else{var qi=Ha;Oa.top<-Ha?qi=-Oa.top:Oa.top+Oa.height>-Ha+Go&&(qi=-(Oa.top+Oa.height-Go)),_a(0),Xa($o(qi)[0])}}var es=C(bs,{width:Pa,height:Go,left:or,top:Ha},{width:ii,height:Wa},{width:Ts,height:sl},Object(m.a)(Object(m.a)({},Qe),{},{tabs:ze})),Is=Object(h.a)(es,2),wl=Is[0],xl=Is[1],Cl=ze.map(function(Xr){var Oa=Xr.key;return g.createElement(b,{id:lt,prefixCls:Oe,key:Oa,rtl:It,tab:Xr,closable:Xr.closable,editable:_n,active:Oa===yt,tabPosition:Rn,tabBarGutter:Tr,renderWrapper:ta,removeAriaLabel:hn==null?void 0:hn.removeAriaLabel,ref:pa(Oa),onClick:function(qi){zr(Oa,qi)},onRemove:function(){gr(Oa)},onFocus:function(){Yo(Oa),ks(),It||(na.current.scrollLeft=0),na.current.scrollTop=0}})}),ll=s(function(){var Xr,Oa,Oi,qi,ts,Po,ds,Jo,Ya,Cs=((Xr=na.current)===null||Xr===void 0?void 0:Xr.offsetWidth)||0,Ws=((Oa=na.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0,jo=((Oi=ba.current)===null||Oi===void 0?void 0:Oi.offsetWidth)||0,$i=((qi=ba.current)===null||qi===void 0?void 0:qi.offsetHeight)||0,Ma=((ts=Jr.current)===null||ts===void 0?void 0:ts.offsetWidth)||0,Ro=((Po=Jr.current)===null||Po===void 0?void 0:Po.offsetHeight)||0;Ni(Cs),os(Ws),bl(jo),vs($i);var Uo=(((ds=qr.current)===null||ds===void 0?void 0:ds.offsetWidth)||0)-jo,Bo=(((Jo=qr.current)===null||Jo===void 0?void 0:Jo.offsetHeight)||0)-$i;oo(Uo),$a(Bo);var Ss=(Ya=Jr.current)===null||Ya===void 0?void 0:Ya.className.includes(ys);Oo(Uo-(Ss?0:Ma)),No(Bo-(Ss?0:Ro)),Os(function(){var Ls=new Map;return ze.forEach(function(dl){var Xs=dl.key,ns=pa(Xs).current;ns&&Ls.set(Xs,{width:ns.offsetWidth,height:ns.offsetHeight,left:ns.offsetLeft,top:ns.offsetTop})}),Ls})}),Sl=ze.slice(0,wl),so=ze.slice(xl+1),Ai=[].concat(Object(o.a)(Sl),Object(o.a)(so)),Vi=Object(g.useState)(),Ti=Object(h.a)(Vi,2),ws=Ti[0],Al=Ti[1],Zi=bs.get(yt),Tl=Object(g.useRef)();function Ds(){l.a.cancel(Tl.current)}Object(g.useEffect)(function(){var Xr={};return Zi&&(wr?(It?Xr.right=Zi.right:Xr.left=Zi.left,Xr.width=Zi.width):(Xr.top=Zi.top,Xr.height=Zi.height)),Ds(),Tl.current=l()(function(){Al(Xr)}),Ds},[Zi,wr,It]),Object(g.useEffect)(function(){Yo()},[yt,Zi,bs,wr]),Object(g.useEffect)(function(){ll()},[It,Tr,yt,ze.map(function(Xr){return Xr.key}).join("_")]);var ul=!!Ai.length,Qo="".concat(Oe,"-nav-wrap"),Ms,xs,cl,Ns;return wr?It?(xs=or>0,Ms=or+Pa<vi):(Ms=or<0,xs=-or+Pa<vi):(cl=Ha<0,Ns=-Ha+Go<Ki),g.createElement("div",{ref:_t,role:"tablist",className:f()("".concat(Oe,"-nav"),Ie),style:rt,onKeyDown:function(){ks()}},g.createElement(mr,{position:"left",extra:zt,prefixCls:Oe}),g.createElement(n.a,{onResize:ll},g.createElement("div",{className:f()(Qo,(xt={},Object(w.a)(xt,"".concat(Qo,"-ping-left"),Ms),Object(w.a)(xt,"".concat(Qo,"-ping-right"),xs),Object(w.a)(xt,"".concat(Qo,"-ping-top"),cl),Object(w.a)(xt,"".concat(Qo,"-ping-bottom"),Ns),xt)),ref:na},g.createElement(n.a,{onResize:ll},g.createElement("div",{ref:qr,className:"".concat(Oe,"-nav-list"),style:{transform:"translate(".concat(or,"px, ").concat(Ha,"px)"),transition:Rs?"none":void 0}},Cl,g.createElement(Si,{ref:ba,prefixCls:Oe,locale:hn,editable:_n,style:{visibility:ul?"hidden":null}}),g.createElement("div",{className:f()("".concat(Oe,"-ink-bar"),Object(w.a)({},"".concat(Oe,"-ink-bar-animated"),St.inkBar)),style:ws}))))),g.createElement(Ui,Object.assign({},Qe,{ref:Jr,prefixCls:Oe,tabs:Ai,className:!ul&&ys})),g.createElement(mr,{position:"right",extra:zt,prefixCls:Oe}))}var Aa=g.forwardRef(yr);function Da(Qe){var _t=Qe.id,xt=Qe.activeKey,it=Qe.animated,Oe=Qe.tabPosition,ze=Qe.rtl,Ie=Qe.destroyInactiveTabPane,rt=g.useContext(Do),lt=rt.prefixCls,St=rt.tabs,yt=it.tabPane,It=St.findIndex(function(zt){return zt.key===xt});return g.createElement("div",{className:f()("".concat(lt,"-content-holder"))},g.createElement("div",{className:f()("".concat(lt,"-content"),"".concat(lt,"-content-").concat(Oe),Object(w.a)({},"".concat(lt,"-content-animated"),yt)),style:It&&yt?Object(w.a)({},ze?"marginRight":"marginLeft","-".concat(It,"00%")):null},St.map(function(zt){return g.cloneElement(zt.node,{key:zt.key,prefixCls:lt,tabKey:zt.key,id:_t,animated:yt,active:zt.key===xt,destroyInactiveTabPane:Ie})})))}function Er(Qe){var _t=Qe.prefixCls,xt=Qe.forceRender,it=Qe.className,Oe=Qe.style,ze=Qe.id,Ie=Qe.active,rt=Qe.animated,lt=Qe.destroyInactiveTabPane,St=Qe.tabKey,yt=Qe.children,It=g.useState(xt),zt=Object(h.a)(It,2),_n=zt[0],hn=zt[1];g.useEffect(function(){Ie?hn(!0):lt&&hn(!1)},[Ie,lt]);var Rn={};return Ie||(rt?(Rn.visibility="hidden",Rn.height=0,Rn.overflowY="hidden"):Rn.display="none"),g.createElement("div",{id:ze&&"".concat(ze,"-panel-").concat(St),role:"tabpanel",tabIndex:Ie?0:-1,"aria-labelledby":ze&&"".concat(ze,"-tab-").concat(St),"aria-hidden":!Ie,style:Object(m.a)(Object(m.a)({},Rn),Oe),className:f()("".concat(_t,"-tabpane"),Ie&&"".concat(_t,"-tabpane-active"),it)},(Ie||_n||xt)&&yt)}var fr=0;function da(Qe){return Object(d.a)(Qe).map(function(_t){if(g.isValidElement(_t)){var xt=_t.key!==void 0?String(_t.key):void 0;return Object(m.a)(Object(m.a)({key:xt},_t.props),{},{node:_t})}return null}).filter(function(_t){return _t})}function ni(Qe,_t){var xt,it=Qe.id,Oe=Qe.prefixCls,ze=Oe===void 0?"rc-tabs":Oe,Ie=Qe.className,rt=Qe.children,lt=Qe.direction,St=Qe.activeKey,yt=Qe.defaultActiveKey,It=Qe.editable,zt=Qe.animated,_n=Qe.tabPosition,hn=_n===void 0?"top":_n,Rn=Qe.tabBarGutter,Tr=Qe.tabBarStyle,ta=Qe.tabBarExtraContent,zr=Qe.locale,Qr=Qe.moreIcon,na=Qe.moreTransitionName,qr=Qe.destroyInactiveTabPane,Jr=Qe.renderTabBar,ba=Qe.onChange,la=Qe.onTabClick,ri=Qe.onTabScroll,pa=Object(I.a)(Qe,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),gr=da(rt),wr=lt==="rtl",ma;zt===!1?ma={inkBar:!1,tabPane:!1}:ma=Object(m.a)({inkBar:!0,tabPane:!1},zt!==!0?zt:null);var Ta=Object(g.useState)(!1),or=Object(h.a)(Ta,2),_a=or[0],ai=or[1];Object(g.useEffect)(function(){ai(Dr())},[]);var ya=Object(u.a)(function(){var Wa;return(Wa=gr[0])===null||Wa===void 0?void 0:Wa.key},{value:St,defaultValue:yt}),Ha=Object(h.a)(ya,2),Xa=Ha[0],wi=Ha[1],Bi=Object(g.useState)(function(){return gr.findIndex(function(Wa){return Wa.key===Xa})}),vi=Object(h.a)(Bi,2),oo=vi[0],To=vi[1];Object(g.useEffect)(function(){var Wa=gr.findIndex(function(zo){return zo.key===Xa});if(Wa===-1){var No;Wa=Math.max(0,Math.min(oo,gr.length-1)),wi((No=gr[Wa])===null||No===void 0?void 0:No.key)}To(Wa)},[gr.map(function(Wa){return Wa.key}).join("_"),Xa,oo]);var fo=Object(u.a)(null,{value:it}),Ki=Object(h.a)(fo,2),$a=Ki[0],za=Ki[1],Ga=hn;_a&&!["left","right"].includes(hn)&&(Ga="top"),Object(g.useEffect)(function(){it||(za("rc-tabs-".concat(fr)),fr+=1)},[]);function ii(Wa,No){la==null||la(Wa,No),wi(Wa),ba==null||ba(Wa)}var Oo={id:$a,activeKey:Xa,animated:ma,tabPosition:Ga,rtl:wr,mobile:_a},Wo,Xo=Object(m.a)(Object(m.a)({},Oo),{},{editable:It,locale:zr,moreIcon:Qr,moreTransitionName:na,tabBarGutter:Rn,onTabClick:ii,onTabScroll:ri,extra:ta,style:Tr,panes:rt});return Jr?Wo=Jr(Xo,Aa):Wo=g.createElement(Aa,Object.assign({},Xo)),g.createElement(Do.Provider,{value:{tabs:gr,prefixCls:ze}},g.createElement("div",Object.assign({ref:_t,id:it,className:f()(ze,"".concat(ze,"-").concat(Ga),(xt={},Object(w.a)(xt,"".concat(ze,"-mobile"),_a),Object(w.a)(xt,"".concat(ze,"-editable"),It),Object(w.a)(xt,"".concat(ze,"-rtl"),wr),xt),Ie)},pa),Wo,g.createElement(Da,Object.assign({destroyInactiveTabPane:qr},Oo,{animated:ma}))))}var qa=g.forwardRef(ni);qa.TabPane=Er;var Fi=qa,Mo=F.b=Fi},kPWJ:function(S,F,v){S.exports=v.p+"static/question.cb52bef9.gif"},kPYp:function(S,F){S.exports="data:image/png;base64,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"},kSUc:function(S,F,v){},"kaH+":function(S,F,v){"use strict";var w=v("+L6B"),h=v("2/Rp"),I=v("tJVT"),m=v("cDcd"),g=v.n(m),a=v("UZu5"),f=v.n(a),d=v("dhSg"),u=v("rLCj"),o=v("dF/Y"),r=v("4i/N");F.a=function(){var l=Object(m.useState)(""),n=Object(I.a)(l,2),s=n[0],e=n[1],i=Object(m.useState)(0),_=Object(I.a)(i,2),b=_[0],y=_[1],E=Object(m.useRef)("");Object(m.useEffect)(function(){var R=d.a.subscribe("preview-image",function(P){e(P),document.body.style.overflow="hidden"});return R},[]),Object(m.useEffect)(function(){return document.addEventListener("keydown",c),function(){document.removeEventListener("keydown",c)}},[]),Object(m.useEffect)(function(){E.current=s},[s]);function c(R){R.keyCode==27&&E.current&&C()}function C(){document.body.style.overflow="auto",e("")}function x(){y(b+90)}var M=Object(m.useRef)(),k=Object(m.useRef)(),T=function(P){(P.nativeEvent.target===M.current||P.nativeEvent.target===k.current)&&C()};return g.a.createElement(m.Fragment,null,s?g.a.createElement("div",{className:"image-preview-container",ref:M,onClick:T},g.a.createElement("div",{className:"button-group"},g.a.createElement(h.a,{onClick:x},"\u65CB\u8F6C",g.a.createElement(u.a,null)),g.a.createElement(h.a,{href:s},"\u4E0B\u8F7D",g.a.createElement(o.a,null)),g.a.createElement(h.a,{onClick:C},"\u5173\u95ED",g.a.createElement(r.a,null))),g.a.createElement("div",{className:"preview-wrp-group",ref:k},g.a.createElement("img",{className:"image-preview",src:s,alt:"\u9884\u89C8\u5927\u56FE",style:{transform:"rotate(".concat(b,"deg)")}}))):null)}},"l/DK":function(S,F,v){S.exports={"path-container":"path-container___pFrW9",active:"active___38ez8"}},l2Kq:function(S,F,v){S.exports=v.p+"static/match_ad.24dc22fd.jpg"},l9Ud:function(S,F,v){S.exports={flex_box_center:"flex_box_center___1siF3",flex_space_between:"flex_space_between___1LIBe",flex_box_vertical_center:"flex_box_vertical_center___1SENm",flex_box_center_end:"flex_box_center_end___aKcm8",flex_box_column:"flex_box_column___3xSXM",wrap:"wrap___1JpHn",list:"list___eeGJr",page:"page___2LktT"}},lNSK:function(S,F,v){"use strict";function w(Q){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(Ze){return typeof Ze}:w=function(Ze){return Ze&&typeof Symbol=="function"&&Ze.constructor===Symbol&&Ze!==Symbol.prototype?"symbol":typeof Ze},w(Q)}Object.defineProperty(F,"__esModule",{value:!0}),F.deflateInit=ce,F.deflateInit2=Fe,F.deflateReset=Ge,F.deflateResetKeep=dt,F.deflateSetHeader=je,F.deflate=we,F.deflateEnd=se,F.deflateSetDictionary=_e,F.deflateInfo=F.Z_DEFLATED=F.Z_UNKNOWN=F.Z_DEFAULT_STRATEGY=F.Z_FIXED=F.Z_RLE=F.Z_HUFFMAN_ONLY=F.Z_FILTERED=F.Z_DEFAULT_COMPRESSION=F.Z_BUF_ERROR=F.Z_DATA_ERROR=F.Z_STREAM_ERROR=F.Z_STREAM_END=F.Z_OK=F.Z_BLOCK=F.Z_FINISH=F.Z_FULL_FLUSH=F.Z_PARTIAL_FLUSH=F.Z_NO_FLUSH=void 0;var h=u(v("6BzB")),I=u(v("c5fP")),m=f(v("xlC8")),g=f(v("QV2g")),a=f(v("xSIq"));function f(Q){return Q&&Q.__esModule?Q:{default:Q}}function d(){if(typeof WeakMap!="function")return null;var Q=new WeakMap;return d=function(){return Q},Q}function u(Q){if(Q&&Q.__esModule)return Q;if(Q===null||w(Q)!=="object"&&typeof Q!="function")return{default:Q};var Ue=d();if(Ue&&Ue.has(Q))return Ue.get(Q);var Ze={},Te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var He in Q)if(Object.prototype.hasOwnProperty.call(Q,He)){var Ye=Te?Object.getOwnPropertyDescriptor(Q,He):null;Ye&&(Ye.get||Ye.set)?Object.defineProperty(Ze,He,Ye):Ze[He]=Q[He]}return Ze.default=Q,Ue&&Ue.set(Q,Ze),Ze}var o=0;F.Z_NO_FLUSH=o;var r=1;F.Z_PARTIAL_FLUSH=r;var l=3;F.Z_FULL_FLUSH=l;var n=4;F.Z_FINISH=n;var s=5;F.Z_BLOCK=s;var e=0;F.Z_OK=e;var i=1;F.Z_STREAM_END=i;var _=-2;F.Z_STREAM_ERROR=_;var b=-3;F.Z_DATA_ERROR=b;var y=-5;F.Z_BUF_ERROR=y;var E=-1;F.Z_DEFAULT_COMPRESSION=E;var c=1;F.Z_FILTERED=c;var C=2;F.Z_HUFFMAN_ONLY=C;var x=3;F.Z_RLE=x;var M=4;F.Z_FIXED=M;var k=0;F.Z_DEFAULT_STRATEGY=k;var T=2;F.Z_UNKNOWN=T;var R=8;F.Z_DEFLATED=R;var P=9,B=15,W=8,z=29,H=256,ee=H+1+z,G=30,U=19,K=2*ee+1,L=15,D=3,j=258,Z=j+D+1,ie=32,pe=42,Ee=69,De=73,q=91,be=103,ye=113,le=666,ue=1,ne=2,xe=3,$=4,oe=3;function Le(Q,Ue){return Q.msg=a.default[Ue],Ue}function te(Q){return(Q<<1)-(Q>4?9:0)}function Y(Q){for(var Ue=Q.length;--Ue>=0;)Q[Ue]=0}function X(Q){var Ue=Q.state,Ze=Ue.pending;if(Ze>Q.avail_out&&(Ze=Q.avail_out),Ze===0)return;h.arraySet(Q.output,Ue.pending_buf,Ue.pending_out,Ze,Q.next_out),Q.next_out+=Ze,Ue.pending_out+=Ze,Q.total_out+=Ze,Q.avail_out-=Ze,Ue.pending-=Ze,Ue.pending===0&&(Ue.pending_out=0)}function J(Q,Ue){I._tr_flush_block(Q,Q.block_start>=0?Q.block_start:-1,Q.strstart-Q.block_start,Ue),Q.block_start=Q.strstart,X(Q.strm)}function ve(Q,Ue){Q.pending_buf[Q.pending++]=Ue}function he(Q,Ue){Q.pending_buf[Q.pending++]=Ue>>>8&255,Q.pending_buf[Q.pending++]=Ue&255}function Ce(Q,Ue,Ze,Te){var He=Q.avail_in;return He>Te&&(He=Te),He===0?0:(Q.avail_in-=He,h.arraySet(Ue,Q.input,Q.next_in,He,Ze),Q.state.wrap===1?Q.adler=(0,m.default)(Q.adler,Ue,He,Ze):Q.state.wrap===2&&(Q.adler=(0,g.default)(Q.adler,Ue,He,Ze)),Q.next_in+=He,Q.total_in+=He,He)}function Pe(Q,Ue){var Ze=Q.max_chain_length,Te=Q.strstart,He,Ye,st=Q.prev_length,ut=Q.nice_match,et=Q.strstart>Q.w_size-Z?Q.strstart-(Q.w_size-Z):0,Re=Q.window,qe=Q.w_mask,At=Q.prev,$e=Q.strstart+j,ht=Re[Te+st-1],Rt=Re[Te+st];Q.prev_length>=Q.good_match&&(Ze>>=2),ut>Q.lookahead&&(ut=Q.lookahead);do{if(He=Ue,Re[He+st]!==Rt||Re[He+st-1]!==ht||Re[He]!==Re[Te]||Re[++He]!==Re[Te+1])continue;Te+=2,He++;do;while(Re[++Te]===Re[++He]&&Re[++Te]===Re[++He]&&Re[++Te]===Re[++He]&&Re[++Te]===Re[++He]&&Re[++Te]===Re[++He]&&Re[++Te]===Re[++He]&&Re[++Te]===Re[++He]&&Re[++Te]===Re[++He]&&Te<$e);if(Ye=j-($e-Te),Te=$e-j,Ye>st){if(Q.match_start=Ue,st=Ye,Ye>=ut)break;ht=Re[Te+st-1],Rt=Re[Te+st]}}while((Ue=At[Ue&qe])>et&&--Ze!==0);return st<=Q.lookahead?st:Q.lookahead}function de(Q){var Ue=Q.w_size,Ze,Te,He,Ye,st;do{if(Ye=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=Ue+(Ue-Z)){h.arraySet(Q.window,Q.window,Ue,Ue,0),Q.match_start-=Ue,Q.strstart-=Ue,Q.block_start-=Ue,Te=Q.hash_size,Ze=Te;do He=Q.head[--Ze],Q.head[Ze]=He>=Ue?He-Ue:0;while(--Te);Te=Ue,Ze=Te;do He=Q.prev[--Ze],Q.prev[Ze]=He>=Ue?He-Ue:0;while(--Te);Ye+=Ue}if(Q.strm.avail_in===0)break;if(Te=Ce(Q.strm,Q.window,Q.strstart+Q.lookahead,Ye),Q.lookahead+=Te,Q.lookahead+Q.insert>=D)for(st=Q.strstart-Q.insert,Q.ins_h=Q.window[st],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[st+1])&Q.hash_mask;Q.insert&&!(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[st+D-1])&Q.hash_mask,Q.prev[st&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=st,st++,Q.insert--,Q.lookahead+Q.insert<D););}while(Q.lookahead<Z&&Q.strm.avail_in!==0)}function ke(Q,Ue){var Ze=65535;for(Ze>Q.pending_buf_size-5&&(Ze=Q.pending_buf_size-5);;){if(Q.lookahead<=1){if(de(Q),Q.lookahead===0&&Ue===o)return ue;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var Te=Q.block_start+Ze;if((Q.strstart===0||Q.strstart>=Te)&&(Q.lookahead=Q.strstart-Te,Q.strstart=Te,J(Q,!1),Q.strm.avail_out===0))return ue;if(Q.strstart-Q.block_start>=Q.w_size-Z&&(J(Q,!1),Q.strm.avail_out===0))return ue}return Q.insert=0,Ue===n?(J(Q,!0),Q.strm.avail_out===0?xe:$):(Q.strstart>Q.block_start&&(J(Q,!1),Q.strm.avail_out===0),ue)}function me(Q,Ue){for(var Ze,Te;;){if(Q.lookahead<Z){if(de(Q),Q.lookahead<Z&&Ue===o)return ue;if(Q.lookahead===0)break}if(Ze=0,Q.lookahead>=D&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+D-1])&Q.hash_mask,Ze=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart),Ze!==0&&Q.strstart-Ze<=Q.w_size-Z&&(Q.match_length=Pe(Q,Ze)),Q.match_length>=D)if(Te=I._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-D),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=D){Q.match_length--;do Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+D-1])&Q.hash_mask,Ze=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;while(--Q.match_length!==0);Q.strstart++}else Q.strstart+=Q.match_length,Q.match_length=0,Q.ins_h=Q.window[Q.strstart],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+1])&Q.hash_mask;else Te=I._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(Te&&(J(Q,!1),Q.strm.avail_out===0))return ue}return Q.insert=Q.strstart<D-1?Q.strstart:D-1,Ue===n?(J(Q,!0),Q.strm.avail_out===0?xe:$):Q.last_lit&&(J(Q,!1),Q.strm.avail_out===0)?ue:ne}function Be(Q,Ue){for(var Ze,Te,He;;){if(Q.lookahead<Z){if(de(Q),Q.lookahead<Z&&Ue===o)return ue;if(Q.lookahead===0)break}if(Ze=0,Q.lookahead>=D&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+D-1])&Q.hash_mask,Ze=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart),Q.prev_length=Q.match_length,Q.prev_match=Q.match_start,Q.match_length=D-1,Ze!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-Ze<=Q.w_size-Z&&(Q.match_length=Pe(Q,Ze),Q.match_length<=5&&(Q.strategy===c||Q.match_length===D&&Q.strstart-Q.match_start>4096)&&(Q.match_length=D-1)),Q.prev_length>=D&&Q.match_length<=Q.prev_length){He=Q.strstart+Q.lookahead-D,Te=I._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-D),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;do++Q.strstart<=He&&(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+D-1])&Q.hash_mask,Ze=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart);while(--Q.prev_length!==0);if(Q.match_available=0,Q.match_length=D-1,Q.strstart++,Te&&(J(Q,!1),Q.strm.avail_out===0))return ue}else if(Q.match_available){if(Te=I._tr_tally(Q,0,Q.window[Q.strstart-1]),Te&&J(Q,!1),Q.strstart++,Q.lookahead--,Q.strm.avail_out===0)return ue}else Q.match_available=1,Q.strstart++,Q.lookahead--}return Q.match_available&&(Te=I._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0),Q.insert=Q.strstart<D-1?Q.strstart:D-1,Ue===n?(J(Q,!0),Q.strm.avail_out===0?xe:$):Q.last_lit&&(J(Q,!1),Q.strm.avail_out===0)?ue:ne}function ft(Q,Ue){for(var Ze,Te,He,Ye,st=Q.window;;){if(Q.lookahead<=j){if(de(Q),Q.lookahead<=j&&Ue===o)return ue;if(Q.lookahead===0)break}if(Q.match_length=0,Q.lookahead>=D&&Q.strstart>0&&(He=Q.strstart-1,Te=st[He],Te===st[++He]&&Te===st[++He]&&Te===st[++He])){Ye=Q.strstart+j;do;while(Te===st[++He]&&Te===st[++He]&&Te===st[++He]&&Te===st[++He]&&Te===st[++He]&&Te===st[++He]&&Te===st[++He]&&Te===st[++He]&&He<Ye);Q.match_length=j-(Ye-He),Q.match_length>Q.lookahead&&(Q.match_length=Q.lookahead)}if(Q.match_length>=D?(Ze=I._tr_tally(Q,1,Q.match_length-D),Q.lookahead-=Q.match_length,Q.strstart+=Q.match_length,Q.match_length=0):(Ze=I._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++),Ze&&(J(Q,!1),Q.strm.avail_out===0))return ue}return Q.insert=0,Ue===n?(J(Q,!0),Q.strm.avail_out===0?xe:$):Q.last_lit&&(J(Q,!1),Q.strm.avail_out===0)?ue:ne}function vt(Q,Ue){for(var Ze;;){if(Q.lookahead===0&&(de(Q),Q.lookahead===0)){if(Ue===o)return ue;break}if(Q.match_length=0,Ze=I._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++,Ze&&(J(Q,!1),Q.strm.avail_out===0))return ue}return Q.insert=0,Ue===n?(J(Q,!0),Q.strm.avail_out===0?xe:$):Q.last_lit&&(J(Q,!1),Q.strm.avail_out===0)?ue:ne}function Xe(Q,Ue,Ze,Te,He){this.good_length=Q,this.max_lazy=Ue,this.nice_length=Ze,this.max_chain=Te,this.func=He}var Bt;Bt=[new Xe(0,0,0,0,ke),new Xe(4,4,8,4,me),new Xe(4,5,16,8,me),new Xe(4,6,32,32,me),new Xe(4,4,16,16,Be),new Xe(8,16,32,32,Be),new Xe(8,16,128,128,Be),new Xe(8,32,128,256,Be),new Xe(32,128,258,1024,Be),new Xe(32,258,258,4096,Be)];function Ae(Q){Q.window_size=2*Q.w_size,Y(Q.head),Q.max_lazy_match=Bt[Q.level].max_lazy,Q.good_match=Bt[Q.level].good_length,Q.nice_match=Bt[Q.level].nice_length,Q.max_chain_length=Bt[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=D-1,Q.match_available=0,Q.ins_h=0}function We(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=R,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new h.Buf16(K*2),this.dyn_dtree=new h.Buf16((2*G+1)*2),this.bl_tree=new h.Buf16((2*U+1)*2),Y(this.dyn_ltree),Y(this.dyn_dtree),Y(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new h.Buf16(L+1),this.heap=new h.Buf16(2*ee+1),Y(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new h.Buf16(2*ee+1),Y(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function dt(Q){var Ue;return!Q||!Q.state?Le(Q,_):(Q.total_in=Q.total_out=0,Q.data_type=T,Ue=Q.state,Ue.pending=0,Ue.pending_out=0,Ue.wrap<0&&(Ue.wrap=-Ue.wrap),Ue.status=Ue.wrap?pe:ye,Q.adler=Ue.wrap===2?0:1,Ue.last_flush=o,I._tr_init(Ue),e)}function Ge(Q){var Ue=dt(Q);return Ue===e&&Ae(Q.state),Ue}function je(Q,Ue){return!Q||!Q.state||Q.state.wrap!==2?_:(Q.state.gzhead=Ue,e)}function Fe(Q,Ue,Ze,Te,He,Ye){if(!Q)return _;var st=1;if(Ue===E&&(Ue=6),Te<0?(st=0,Te=-Te):Te>15&&(st=2,Te-=16),He<1||He>P||Ze!==R||Te<8||Te>15||Ue<0||Ue>9||Ye<0||Ye>M)return Le(Q,_);Te===8&&(Te=9);var ut=new We;return Q.state=ut,ut.strm=Q,ut.wrap=st,ut.gzhead=null,ut.w_bits=Te,ut.w_size=1<<ut.w_bits,ut.w_mask=ut.w_size-1,ut.hash_bits=He+7,ut.hash_size=1<<ut.hash_bits,ut.hash_mask=ut.hash_size-1,ut.hash_shift=~~((ut.hash_bits+D-1)/D),ut.window=new h.Buf8(ut.w_size*2),ut.head=new h.Buf16(ut.hash_size),ut.prev=new h.Buf16(ut.w_size),ut.lit_bufsize=1<<He+6,ut.pending_buf_size=ut.lit_bufsize*4,ut.pending_buf=new h.Buf8(ut.pending_buf_size),ut.d_buf=1*ut.lit_bufsize,ut.l_buf=(1+2)*ut.lit_bufsize,ut.level=Ue,ut.strategy=Ye,ut.method=Ze,Ge(Q)}function ce(Q,Ue){return Fe(Q,Ue,R,B,W,k)}function we(Q,Ue){var Ze,Te,He,Ye;if(!Q||!Q.state||Ue>s||Ue<0)return Q?Le(Q,_):_;if(Te=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||Te.status===le&&Ue!==n)return Le(Q,Q.avail_out===0?y:_);if(Te.strm=Q,Ze=Te.last_flush,Te.last_flush=Ue,Te.status===pe)if(Te.wrap===2)Q.adler=0,ve(Te,31),ve(Te,139),ve(Te,8),Te.gzhead?(ve(Te,(Te.gzhead.text?1:0)+(Te.gzhead.hcrc?2:0)+(Te.gzhead.extra?4:0)+(Te.gzhead.name?8:0)+(Te.gzhead.comment?16:0)),ve(Te,Te.gzhead.time&255),ve(Te,Te.gzhead.time>>8&255),ve(Te,Te.gzhead.time>>16&255),ve(Te,Te.gzhead.time>>24&255),ve(Te,Te.level===9?2:Te.strategy>=C||Te.level<2?4:0),ve(Te,Te.gzhead.os&255),Te.gzhead.extra&&Te.gzhead.extra.length&&(ve(Te,Te.gzhead.extra.length&255),ve(Te,Te.gzhead.extra.length>>8&255)),Te.gzhead.hcrc&&(Q.adler=(0,g.default)(Q.adler,Te.pending_buf,Te.pending,0)),Te.gzindex=0,Te.status=Ee):(ve(Te,0),ve(Te,0),ve(Te,0),ve(Te,0),ve(Te,0),ve(Te,Te.level===9?2:Te.strategy>=C||Te.level<2?4:0),ve(Te,oe),Te.status=ye);else{var st=R+(Te.w_bits-8<<4)<<8,ut=-1;Te.strategy>=C||Te.level<2?ut=0:Te.level<6?ut=1:Te.level===6?ut=2:ut=3,st|=ut<<6,Te.strstart!==0&&(st|=ie),st+=31-st%31,Te.status=ye,he(Te,st),Te.strstart!==0&&(he(Te,Q.adler>>>16),he(Te,Q.adler&65535)),Q.adler=1}if(Te.status===Ee)if(Te.gzhead.extra){for(He=Te.pending;Te.gzindex<(Te.gzhead.extra.length&65535)&&!(Te.pending===Te.pending_buf_size&&(Te.gzhead.hcrc&&Te.pending>He&&(Q.adler=(0,g.default)(Q.adler,Te.pending_buf,Te.pending-He,He)),X(Q),He=Te.pending,Te.pending===Te.pending_buf_size));)ve(Te,Te.gzhead.extra[Te.gzindex]&255),Te.gzindex++;Te.gzhead.hcrc&&Te.pending>He&&(Q.adler=(0,g.default)(Q.adler,Te.pending_buf,Te.pending-He,He)),Te.gzindex===Te.gzhead.extra.length&&(Te.gzindex=0,Te.status=De)}else Te.status=De;if(Te.status===De)if(Te.gzhead.name){He=Te.pending;do{if(Te.pending===Te.pending_buf_size&&(Te.gzhead.hcrc&&Te.pending>He&&(Q.adler=(0,g.default)(Q.adler,Te.pending_buf,Te.pending-He,He)),X(Q),He=Te.pending,Te.pending===Te.pending_buf_size)){Ye=1;break}Te.gzindex<Te.gzhead.name.length?Ye=Te.gzhead.name.charCodeAt(Te.gzindex++)&255:Ye=0,ve(Te,Ye)}while(Ye!==0);Te.gzhead.hcrc&&Te.pending>He&&(Q.adler=(0,g.default)(Q.adler,Te.pending_buf,Te.pending-He,He)),Ye===0&&(Te.gzindex=0,Te.status=q)}else Te.status=q;if(Te.status===q)if(Te.gzhead.comment){He=Te.pending;do{if(Te.pending===Te.pending_buf_size&&(Te.gzhead.hcrc&&Te.pending>He&&(Q.adler=(0,g.default)(Q.adler,Te.pending_buf,Te.pending-He,He)),X(Q),He=Te.pending,Te.pending===Te.pending_buf_size)){Ye=1;break}Te.gzindex<Te.gzhead.comment.length?Ye=Te.gzhead.comment.charCodeAt(Te.gzindex++)&255:Ye=0,ve(Te,Ye)}while(Ye!==0);Te.gzhead.hcrc&&Te.pending>He&&(Q.adler=(0,g.default)(Q.adler,Te.pending_buf,Te.pending-He,He)),Ye===0&&(Te.status=be)}else Te.status=be;if(Te.status===be&&(Te.gzhead.hcrc?(Te.pending+2>Te.pending_buf_size&&X(Q),Te.pending+2<=Te.pending_buf_size&&(ve(Te,Q.adler&255),ve(Te,Q.adler>>8&255),Q.adler=0,Te.status=ye)):Te.status=ye),Te.pending!==0){if(X(Q),Q.avail_out===0)return Te.last_flush=-1,e}else if(Q.avail_in===0&&te(Ue)<=te(Ze)&&Ue!==n)return Le(Q,y);if(Te.status===le&&Q.avail_in!==0)return Le(Q,y);if(Q.avail_in!==0||Te.lookahead!==0||Ue!==o&&Te.status!==le){var et=Te.strategy===C?vt(Te,Ue):Te.strategy===x?ft(Te,Ue):Bt[Te.level].func(Te,Ue);if((et===xe||et===$)&&(Te.status=le),et===ue||et===xe)return Q.avail_out===0&&(Te.last_flush=-1),e;if(et===ne&&(Ue===r?I._tr_align(Te):Ue!==s&&(I._tr_stored_block(Te,0,0,!1),Ue===l&&(Y(Te.head),Te.lookahead===0&&(Te.strstart=0,Te.block_start=0,Te.insert=0))),X(Q),Q.avail_out===0))return Te.last_flush=-1,e}return Ue!==n?e:Te.wrap<=0?i:(Te.wrap===2?(ve(Te,Q.adler&255),ve(Te,Q.adler>>8&255),ve(Te,Q.adler>>16&255),ve(Te,Q.adler>>24&255),ve(Te,Q.total_in&255),ve(Te,Q.total_in>>8&255),ve(Te,Q.total_in>>16&255),ve(Te,Q.total_in>>24&255)):(he(Te,Q.adler>>>16),he(Te,Q.adler&65535)),X(Q),Te.wrap>0&&(Te.wrap=-Te.wrap),Te.pending!==0?e:i)}function se(Q){var Ue;return!Q||!Q.state?_:(Ue=Q.state.status,Ue!==pe&&Ue!==Ee&&Ue!==De&&Ue!==q&&Ue!==be&&Ue!==ye&&Ue!==le?Le(Q,_):(Q.state=null,Ue===ye?Le(Q,b):e))}function _e(Q,Ue){var Ze=Ue.length,Te,He,Ye,st,ut,et,Re,qe;if(!Q||!Q.state)return _;if(Te=Q.state,st=Te.wrap,st===2||st===1&&Te.status!==pe||Te.lookahead)return _;for(st===1&&(Q.adler=(0,m.default)(Q.adler,Ue,Ze,0)),Te.wrap=0,Ze>=Te.w_size&&(st===0&&(Y(Te.head),Te.strstart=0,Te.block_start=0,Te.insert=0),qe=new h.Buf8(Te.w_size),h.arraySet(qe,Ue,Ze-Te.w_size,Te.w_size,0),Ue=qe,Ze=Te.w_size),ut=Q.avail_in,et=Q.next_in,Re=Q.input,Q.avail_in=Ze,Q.next_in=0,Q.input=Ue,de(Te);Te.lookahead>=D;){He=Te.strstart,Ye=Te.lookahead-(D-1);do Te.ins_h=(Te.ins_h<<Te.hash_shift^Te.window[He+D-1])&Te.hash_mask,Te.prev[He&Te.w_mask]=Te.head[Te.ins_h],Te.head[Te.ins_h]=He,He++;while(--Ye);Te.strstart=He,Te.lookahead=D-1,de(Te)}return Te.strstart+=Te.lookahead,Te.block_start=Te.strstart,Te.insert=Te.lookahead,Te.lookahead=0,Te.match_length=Te.prev_length=D-1,Te.match_available=0,Q.next_in=et,Q.input=Re,Q.avail_in=ut,Te.wrap=st,e}var Ne="pako deflate (from Nodeca project)";F.deflateInfo=Ne},lOMy:function(S,F,v){},lPiR:function(S,F,v){(function(w,h){S.exports=F=h(v("Ib8C"))})(this,function(w){return function(h){var I=w,m=I.lib,g=m.WordArray,a=m.Hasher,f=I.algo,d=[],u=[];(function(){function l(i){for(var _=h.sqrt(i),b=2;b<=_;b++)if(!(i%b))return!1;return!0}function n(i){return(i-(i|0))*4294967296|0}for(var s=2,e=0;e<64;)l(s)&&(e<8&&(d[e]=n(h.pow(s,1/2))),u[e]=n(h.pow(s,1/3)),e++),s++})();var o=[],r=f.SHA256=a.extend({_doReset:function(){this._hash=new g.init(d.slice(0))},_doProcessBlock:function(l,n){for(var s=this._hash.words,e=s[0],i=s[1],_=s[2],b=s[3],y=s[4],E=s[5],c=s[6],C=s[7],x=0;x<64;x++){if(x<16)o[x]=l[n+x]|0;else{var M=o[x-15],k=(M<<25|M>>>7)^(M<<14|M>>>18)^M>>>3,T=o[x-2],R=(T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10;o[x]=k+o[x-7]+R+o[x-16]}var P=y&E^~y&c,B=e&i^e&_^i&_,W=(e<<30|e>>>2)^(e<<19|e>>>13)^(e<<10|e>>>22),z=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),H=C+z+P+u[x]+o[x],ee=W+B;C=c,c=E,E=y,y=b+H|0,b=_,_=i,i=e,e=H+ee|0}s[0]=s[0]+e|0,s[1]=s[1]+i|0,s[2]=s[2]+_|0,s[3]=s[3]+b|0,s[4]=s[4]+y|0,s[5]=s[5]+E|0,s[6]=s[6]+c|0,s[7]=s[7]+C|0},_doFinalize:function(){var l=this._data,n=l.words,s=this._nDataBytes*8,e=l.sigBytes*8;return n[e>>>5]|=128<<24-e%32,n[(e+64>>>9<<4)+14]=h.floor(s/4294967296),n[(e+64>>>9<<4)+15]=s,l.sigBytes=n.length*4,this._process(),this._hash},clone:function(){var l=a.clone.call(this);return l._hash=this._hash.clone(),l}});I.SHA256=a._createHelper(r),I.HmacSHA256=a._createHmacHelper(r)}(Math),w.SHA256})},lZu9:function(S,F,v){(function(w){w(v("VrN/"),v("1eCo"),v("8EBN"))})(function(w){"use strict";w.defineMode("markdown",function(h,I){var m=w.getMode(h,"text/html"),g=m.name=="null";function a(L){if(w.findModeByName){var D=w.findModeByName(L);D&&(L=D.mime||D.mimes[0])}var j=w.getMode(h,L);return j.name=="null"?null:j}I.highlightFormatting===void 0&&(I.highlightFormatting=!1),I.maxBlockquoteDepth===void 0&&(I.maxBlockquoteDepth=0),I.taskLists===void 0&&(I.taskLists=!1),I.strikethrough===void 0&&(I.strikethrough=!1),I.emoji===void 0&&(I.emoji=!1),I.fencedCodeBlockHighlighting===void 0&&(I.fencedCodeBlockHighlighting=!0),I.fencedCodeBlockDefaultMode===void 0&&(I.fencedCodeBlockDefaultMode="text/plain"),I.xml===void 0&&(I.xml=!0),I.tokenTypeOverrides===void 0&&(I.tokenTypeOverrides={});var f={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var d in f)f.hasOwnProperty(d)&&I.tokenTypeOverrides[d]&&(f[d]=I.tokenTypeOverrides[d]);var u=/^([*\-_])(?:\s*\1){2,}\s*$/,o=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,r=/^\[(x| )\](?=\s)/i,l=I.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,n=/^ {0,3}(?:\={1,}|-{2,})\s*$/,s=/^[^#!\[\]*_\\<>` "'(~:]+/,e=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,i=/^\s*\[[^\]]+?\]:.*$/,_=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,b=" ";function y(L,D,j){return D.f=D.inline=j,j(L,D)}function E(L,D,j){return D.f=D.block=j,j(L,D)}function c(L){return!L||!/\S/.test(L.string)}function C(L){if(L.linkTitle=!1,L.linkHref=!1,L.linkText=!1,L.em=!1,L.strong=!1,L.strikethrough=!1,L.quote=0,L.indentedCode=!1,L.f==M){var D=g;if(!D){var j=w.innerMode(m,L.htmlState);D=j.mode.name=="xml"&&j.state.tagStart===null&&!j.state.context&&j.state.tokenize.isInText}D&&(L.f=P,L.block=x,L.htmlState=null)}return L.trailingSpace=0,L.trailingSpaceNewLine=!1,L.prevLine=L.thisLine,L.thisLine={stream:null},null}function x(L,D){var j=L.column()===D.indentation,Z=c(D.prevLine.stream),ie=D.indentedCode,pe=D.prevLine.hr,Ee=D.list!==!1,De=(D.listStack[D.listStack.length-1]||0)+3;D.indentedCode=!1;var q=D.indentation;if(D.indentationDiff===null&&(D.indentationDiff=D.indentation,Ee)){for(D.list=null;q<D.listStack[D.listStack.length-1];)D.listStack.pop(),D.listStack.length?D.indentation=D.listStack[D.listStack.length-1]:D.list=!1;D.list!==!1&&(D.indentationDiff=q-D.listStack[D.listStack.length-1])}var be=!Z&&!pe&&!D.prevLine.header&&(!Ee||!ie)&&!D.prevLine.fencedCodeEnd,ye=(D.list===!1||pe||Z)&&D.indentation<=De&&L.match(u),le=null;if(D.indentationDiff>=4&&(ie||D.prevLine.fencedCodeEnd||D.prevLine.header||Z))return L.skipToEnd(),D.indentedCode=!0,f.code;if(L.eatSpace())return null;if(j&&D.indentation<=De&&(le=L.match(l))&&le[1].length<=6)return D.quote=0,D.header=le[1].length,D.thisLine.header=!0,I.highlightFormatting&&(D.formatting="header"),D.f=D.inline,T(D);if(D.indentation<=De&&L.eat(">"))return D.quote=j?1:D.quote+1,I.highlightFormatting&&(D.formatting="quote"),L.eatSpace(),T(D);if(!ye&&!D.setext&&j&&D.indentation<=De&&(le=L.match(o))){var ue=le[1]?"ol":"ul";return D.indentation=q+L.current().length,D.list=!0,D.quote=0,D.listStack.push(D.indentation),D.em=!1,D.strong=!1,D.code=!1,D.strikethrough=!1,I.taskLists&&L.match(r,!1)&&(D.taskList=!0),D.f=D.inline,I.highlightFormatting&&(D.formatting=["list","list-"+ue]),T(D)}else{if(j&&D.indentation<=De&&(le=L.match(e,!0)))return D.quote=0,D.fencedEndRE=new RegExp(le[1]+"+ *$"),D.localMode=I.fencedCodeBlockHighlighting&&a(le[2]||I.fencedCodeBlockDefaultMode),D.localMode&&(D.localState=w.startState(D.localMode)),D.f=D.block=k,I.highlightFormatting&&(D.formatting="code-block"),D.code=-1,T(D);if(D.setext||(!be||!Ee)&&!D.quote&&D.list===!1&&!D.code&&!ye&&!i.test(L.string)&&(le=L.lookAhead(1))&&(le=le.match(n)))return D.setext?(D.header=D.setext,D.setext=0,L.skipToEnd(),I.highlightFormatting&&(D.formatting="header")):(D.header=le[0].charAt(0)=="="?1:2,D.setext=D.header),D.thisLine.header=!0,D.f=D.inline,T(D);if(ye)return L.skipToEnd(),D.hr=!0,D.thisLine.hr=!0,f.hr;if(L.peek()==="[")return y(L,D,ee)}return y(L,D,D.inline)}function M(L,D){var j=m.token(L,D.htmlState);if(!g){var Z=w.innerMode(m,D.htmlState);(Z.mode.name=="xml"&&Z.state.tagStart===null&&!Z.state.context&&Z.state.tokenize.isInText||D.md_inside&&L.current().indexOf(">")>-1)&&(D.f=P,D.block=x,D.htmlState=null)}return j}function k(L,D){var j=D.listStack[D.listStack.length-1]||0,Z=D.indentation<j,ie=j+3;if(D.fencedEndRE&&D.indentation<=ie&&(Z||L.match(D.fencedEndRE))){I.highlightFormatting&&(D.formatting="code-block");var pe;return Z||(pe=T(D)),D.localMode=D.localState=null,D.block=x,D.f=P,D.fencedEndRE=null,D.code=0,D.thisLine.fencedCodeEnd=!0,Z?E(L,D,D.block):pe}else return D.localMode?D.localMode.token(L,D.localState):(L.skipToEnd(),f.code)}function T(L){var D=[];if(L.formatting){D.push(f.formatting),typeof L.formatting=="string"&&(L.formatting=[L.formatting]);for(var j=0;j<L.formatting.length;j++)D.push(f.formatting+"-"+L.formatting[j]),L.formatting[j]==="header"&&D.push(f.formatting+"-"+L.formatting[j]+"-"+L.header),L.formatting[j]==="quote"&&(!I.maxBlockquoteDepth||I.maxBlockquoteDepth>=L.quote?D.push(f.formatting+"-"+L.formatting[j]+"-"+L.quote):D.push("error"))}if(L.taskOpen)return D.push("meta"),D.length?D.join(" "):null;if(L.taskClosed)return D.push("property"),D.length?D.join(" "):null;if(L.linkHref?D.push(f.linkHref,"url"):(L.strong&&D.push(f.strong),L.em&&D.push(f.em),L.strikethrough&&D.push(f.strikethrough),L.emoji&&D.push(f.emoji),L.linkText&&D.push(f.linkText),L.code&&D.push(f.code),L.image&&D.push(f.image),L.imageAltText&&D.push(f.imageAltText,"link"),L.imageMarker&&D.push(f.imageMarker)),L.header&&D.push(f.header,f.header+"-"+L.header),L.quote&&(D.push(f.quote),!I.maxBlockquoteDepth||I.maxBlockquoteDepth>=L.quote?D.push(f.quote+"-"+L.quote):D.push(f.quote+"-"+I.maxBlockquoteDepth)),L.list!==!1){var Z=(L.listStack.length-1)%3;Z?Z===1?D.push(f.list2):D.push(f.list3):D.push(f.list1)}return L.trailingSpaceNewLine?D.push("trailing-space-new-line"):L.trailingSpace&&D.push("trailing-space-"+(L.trailingSpace%2?"a":"b")),D.length?D.join(" "):null}function R(L,D){return L.match(s,!0)?T(D):void 0}function P(L,D){var j=D.text(L,D);if(typeof j!="undefined")return j;if(D.list)return D.list=null,T(D);if(D.taskList){var Z=L.match(r,!0)[1]===" ";return Z?D.taskOpen=!0:D.taskClosed=!0,I.highlightFormatting&&(D.formatting="task"),D.taskList=!1,T(D)}if(D.taskOpen=!1,D.taskClosed=!1,D.header&&L.match(/^#+$/,!0))return I.highlightFormatting&&(D.formatting="header"),T(D);var ie=L.next();if(D.linkTitle){D.linkTitle=!1;var pe=ie;ie==="("&&(pe=")"),pe=(pe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ee="^\\s*(?:[^"+pe+"\\\\]+|\\\\\\\\|\\\\.)"+pe;if(L.match(new RegExp(Ee),!0))return f.linkHref}if(ie==="`"){var De=D.formatting;I.highlightFormatting&&(D.formatting="code"),L.eatWhile("`");var q=L.current().length;if(D.code==0&&(!D.quote||q==1))return D.code=q,T(D);if(q==D.code){var be=T(D);return D.code=0,be}else return D.formatting=De,T(D)}else if(D.code)return T(D);if(ie==="\\"&&(L.next(),I.highlightFormatting)){var ye=T(D),le=f.formatting+"-escape";return ye?ye+" "+le:le}if(ie==="!"&&L.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return D.imageMarker=!0,D.image=!0,I.highlightFormatting&&(D.formatting="image"),T(D);if(ie==="["&&D.imageMarker&&L.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return D.imageMarker=!1,D.imageAltText=!0,I.highlightFormatting&&(D.formatting="image"),T(D);if(ie==="]"&&D.imageAltText){I.highlightFormatting&&(D.formatting="image");var ye=T(D);return D.imageAltText=!1,D.image=!1,D.inline=D.f=W,ye}if(ie==="["&&!D.image)return D.linkText&&L.match(/^.*?\]/)||(D.linkText=!0,I.highlightFormatting&&(D.formatting="link")),T(D);if(ie==="]"&&D.linkText){I.highlightFormatting&&(D.formatting="link");var ye=T(D);return D.linkText=!1,D.inline=D.f=L.match(/\(.*?\)| ?\[.*?\]/,!1)?W:P,ye}if(ie==="<"&&L.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){D.f=D.inline=B,I.highlightFormatting&&(D.formatting="link");var ye=T(D);return ye?ye+=" ":ye="",ye+f.linkInline}if(ie==="<"&&L.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){D.f=D.inline=B,I.highlightFormatting&&(D.formatting="link");var ye=T(D);return ye?ye+=" ":ye="",ye+f.linkEmail}if(I.xml&&ie==="<"&&L.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ue=L.string.indexOf(">",L.pos);if(ue!=-1){var ne=L.string.substring(L.start,ue);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ne)&&(D.md_inside=!0)}return L.backUp(1),D.htmlState=w.startState(m),E(L,D,M)}if(I.xml&&ie==="<"&&L.match(/^\/\w*?>/))return D.md_inside=!1,"tag";if(ie==="*"||ie==="_"){for(var xe=1,$=L.pos==1?" ":L.string.charAt(L.pos-2);xe<3&&L.eat(ie);)xe++;var oe=L.peek()||" ",Le=!/\s/.test(oe)&&(!_.test(oe)||/\s/.test($)||_.test($)),te=!/\s/.test($)&&(!_.test($)||/\s/.test(oe)||_.test(oe)),Y=null,X=null;if(xe%2&&(!D.em&&Le&&(ie==="*"||!te||_.test($))?Y=!0:D.em==ie&&te&&(ie==="*"||!Le||_.test(oe))&&(Y=!1)),xe>1&&(!D.strong&&Le&&(ie==="*"||!te||_.test($))?X=!0:D.strong==ie&&te&&(ie==="*"||!Le||_.test(oe))&&(X=!1)),X!=null||Y!=null){I.highlightFormatting&&(D.formatting=Y==null?"strong":X==null?"em":"strong em"),Y===!0&&(D.em=ie),X===!0&&(D.strong=ie);var be=T(D);return Y===!1&&(D.em=!1),X===!1&&(D.strong=!1),be}}else if(ie===" "&&(L.eat("*")||L.eat("_"))){if(L.peek()===" ")return T(D);L.backUp(1)}if(I.strikethrough){if(ie==="~"&&L.eatWhile(ie)){if(D.strikethrough){I.highlightFormatting&&(D.formatting="strikethrough");var be=T(D);return D.strikethrough=!1,be}else if(L.match(/^[^\s]/,!1))return D.strikethrough=!0,I.highlightFormatting&&(D.formatting="strikethrough"),T(D)}else if(ie===" "&&L.match(/^~~/,!0)){if(L.peek()===" ")return T(D);L.backUp(2)}}if(I.emoji&&ie===":"&&L.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){D.emoji=!0,I.highlightFormatting&&(D.formatting="emoji");var J=T(D);return D.emoji=!1,J}return ie===" "&&(L.match(/^ +$/,!1)?D.trailingSpace++:D.trailingSpace&&(D.trailingSpaceNewLine=!0)),T(D)}function B(L,D){var j=L.next();if(j===">"){D.f=D.inline=P,I.highlightFormatting&&(D.formatting="link");var Z=T(D);return Z?Z+=" ":Z="",Z+f.linkInline}return L.match(/^[^>]+/,!0),f.linkInline}function W(L,D){if(L.eatSpace())return null;var j=L.next();return j==="("||j==="["?(D.f=D.inline=H(j==="("?")":"]"),I.highlightFormatting&&(D.formatting="link-string"),D.linkHref=!0,T(D)):"error"}var z={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function H(L){return function(D,j){var Z=D.next();if(Z===L){j.f=j.inline=P,I.highlightFormatting&&(j.formatting="link-string");var ie=T(j);return j.linkHref=!1,ie}return D.match(z[L]),j.linkHref=!0,T(j)}}function ee(L,D){return L.match(/^([^\]\\]|\\.)*\]:/,!1)?(D.f=G,L.next(),I.highlightFormatting&&(D.formatting="link"),D.linkText=!0,T(D)):y(L,D,P)}function G(L,D){if(L.match(/^\]:/,!0)){D.f=D.inline=U,I.highlightFormatting&&(D.formatting="link");var j=T(D);return D.linkText=!1,j}return L.match(/^([^\]\\]|\\.)+/,!0),f.linkText}function U(L,D){return L.eatSpace()?null:(L.match(/^[^\s]+/,!0),L.peek()===void 0?D.linkTitle=!0:L.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),D.f=D.inline=P,f.linkHref+" url")}var K={startState:function(){return{f:x,prevLine:{stream:null},thisLine:{stream:null},block:x,htmlState:null,indentation:0,inline:P,text:R,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(L){return{f:L.f,prevLine:L.prevLine,thisLine:L.thisLine,block:L.block,htmlState:L.htmlState&&w.copyState(m,L.htmlState),indentation:L.indentation,localMode:L.localMode,localState:L.localMode?w.copyState(L.localMode,L.localState):null,inline:L.inline,text:L.text,formatting:!1,linkText:L.linkText,linkTitle:L.linkTitle,linkHref:L.linkHref,code:L.code,em:L.em,strong:L.strong,strikethrough:L.strikethrough,emoji:L.emoji,header:L.header,setext:L.setext,hr:L.hr,taskList:L.taskList,list:L.list,listStack:L.listStack.slice(0),quote:L.quote,indentedCode:L.indentedCode,trailingSpace:L.trailingSpace,trailingSpaceNewLine:L.trailingSpaceNewLine,md_inside:L.md_inside,fencedEndRE:L.fencedEndRE}},token:function(L,D){if(D.formatting=!1,L!=D.thisLine.stream){if(D.header=0,D.hr=!1,L.match(/^\s*$/,!0))return C(D),null;if(D.prevLine=D.thisLine,D.thisLine={stream:L},D.taskList=!1,D.trailingSpace=0,D.trailingSpaceNewLine=!1,!D.localState&&(D.f=D.block,D.f!=M)){var j=L.match(/^\s*/,!0)[0].replace(/\t/g,b).length;if(D.indentation=j,D.indentationDiff=null,j>0)return null}}return D.f(L,D)},innerMode:function(L){return L.block==M?{state:L.htmlState,mode:m}:L.localState?{state:L.localState,mode:L.localMode}:{state:L,mode:K}},indent:function(L,D,j){return L.block==M&&m.indent?m.indent(L.htmlState,D,j):L.localState&&L.localMode.indent?L.localMode.indent(L.localState,D,j):w.Pass},blankLine:C,getType:T,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return K},"xml"),w.defineMIME("text/markdown","markdown"),w.defineMIME("text/x-markdown","markdown")})},lzim:function(S,F,v){"use strict";var w=v("E7E6"),h=v.n(w),I=v("/GNS"),m=v.n(I),g=v("FOrL"),a=v.n(g),f=v("HpTS"),d=v.n(f),u=v("tWlo"),o=v.n(u),r=v("7ZXX"),l=v.n(r),n=v("GABl"),s=v.n(n),e=v("onxn"),i=v.n(e),_=v("nKGa"),b=v.n(_),y=v("4qgm"),E=v.n(y),c=v("JeFH"),C=v.n(c),x=v("ji0R"),M=v.n(x),k=v("W6BS"),T=v.n(k),R=v("kPYp"),P=v.n(R),B=v("nukY"),W=v.n(B),z=v("4u4S"),H=v.n(z),ee=v("yslc"),G=v.n(ee),U=v("l2Kq"),K=v.n(U),L=v("RMFE"),D=v.n(L),j=v("TGq3"),Z=v.n(j),ie=v("SMhR"),pe=v.n(ie);v.d(F,"j",function(){return pe.a});var Ee=v("8/bI"),De=v.n(Ee);v.d(F,"d",function(){return De.a});var q=v("JWDV"),be=v.n(q),ye=v("Xsq0"),le=v.n(ye);v.d(F,"f",function(){return le.a});var ue=v("Ohmc"),ne=v.n(ue),xe=v("csWT"),$=v.n(xe),oe=v("7v3h"),Le=v.n(oe);v.d(F,"e",function(){return Le.a});var te=v("cRFk"),Y=v.n(te);v.d(F,"i",function(){return Y.a});var X=v("kPWJ"),J=v.n(X),ve=v("qgvg"),he=v.n(ve);v.d(F,"g",function(){return he.a});var Ce=v("FPkq"),Pe=v.n(Ce);v.d(F,"h",function(){return Pe.a});var de=v("A/g1"),ke=v.n(de);v.d(F,"a",function(){return ke.a});var me=v("Nmxd"),Be=v.n(me);v.d(F,"b",function(){return Be.a});var ft=v("5D2P"),vt=v.n(ft);v.d(F,"c",function(){return vt.a});var Xe=v("djh8"),Bt=v.n(Xe),Ae=v("Jq4h"),We=v.n(Ae)},mHUz:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var w={XK_VoidSymbol:16777215,XK_BackSpace:65288,XK_Tab:65289,XK_Linefeed:65290,XK_Clear:65291,XK_Return:65293,XK_Pause:65299,XK_Scroll_Lock:65300,XK_Sys_Req:65301,XK_Escape:65307,XK_Delete:65535,XK_Multi_key:65312,XK_Codeinput:65335,XK_SingleCandidate:65340,XK_MultipleCandidate:65341,XK_PreviousCandidate:65342,XK_Kanji:65313,XK_Muhenkan:65314,XK_Henkan_Mode:65315,XK_Henkan:65315,XK_Romaji:65316,XK_Hiragana:65317,XK_Katakana:65318,XK_Hiragana_Katakana:65319,XK_Zenkaku:65320,XK_Hankaku:65321,XK_Zenkaku_Hankaku:65322,XK_Touroku:65323,XK_Massyo:65324,XK_Kana_Lock:65325,XK_Kana_Shift:65326,XK_Eisu_Shift:65327,XK_Eisu_toggle:65328,XK_Kanji_Bangou:65335,XK_Zen_Koho:65341,XK_Mae_Koho:65342,XK_Home:65360,XK_Left:65361,XK_Up:65362,XK_Right:65363,XK_Down:65364,XK_Prior:65365,XK_Page_Up:65365,XK_Next:65366,XK_Page_Down:65366,XK_End:65367,XK_Begin:65368,XK_Select:65376,XK_Print:65377,XK_Execute:65378,XK_Insert:65379,XK_Undo:65381,XK_Redo:65382,XK_Menu:65383,XK_Find:65384,XK_Cancel:65385,XK_Help:65386,XK_Break:65387,XK_Mode_switch:65406,XK_script_switch:65406,XK_Num_Lock:65407,XK_KP_Space:65408,XK_KP_Tab:65417,XK_KP_Enter:65421,XK_KP_F1:65425,XK_KP_F2:65426,XK_KP_F3:65427,XK_KP_F4:65428,XK_KP_Home:65429,XK_KP_Left:65430,XK_KP_Up:65431,XK_KP_Right:65432,XK_KP_Down:65433,XK_KP_Prior:65434,XK_KP_Page_Up:65434,XK_KP_Next:65435,XK_KP_Page_Down:65435,XK_KP_End:65436,XK_KP_Begin:65437,XK_KP_Insert:65438,XK_KP_Delete:65439,XK_KP_Equal:65469,XK_KP_Multiply:65450,XK_KP_Add:65451,XK_KP_Separator:65452,XK_KP_Subtract:65453,XK_KP_Decimal:65454,XK_KP_Divide:65455,XK_KP_0:65456,XK_KP_1:65457,XK_KP_2:65458,XK_KP_3:65459,XK_KP_4:65460,XK_KP_5:65461,XK_KP_6:65462,XK_KP_7:65463,XK_KP_8:65464,XK_KP_9:65465,XK_F1:65470,XK_F2:65471,XK_F3:65472,XK_F4:65473,XK_F5:65474,XK_F6:65475,XK_F7:65476,XK_F8:65477,XK_F9:65478,XK_F10:65479,XK_F11:65480,XK_L1:65480,XK_F12:65481,XK_L2:65481,XK_F13:65482,XK_L3:65482,XK_F14:65483,XK_L4:65483,XK_F15:65484,XK_L5:65484,XK_F16:65485,XK_L6:65485,XK_F17:65486,XK_L7:65486,XK_F18:65487,XK_L8:65487,XK_F19:65488,XK_L9:65488,XK_F20:65489,XK_L10:65489,XK_F21:65490,XK_R1:65490,XK_F22:65491,XK_R2:65491,XK_F23:65492,XK_R3:65492,XK_F24:65493,XK_R4:65493,XK_F25:65494,XK_R5:65494,XK_F26:65495,XK_R6:65495,XK_F27:65496,XK_R7:65496,XK_F28:65497,XK_R8:65497,XK_F29:65498,XK_R9:65498,XK_F30:65499,XK_R10:65499,XK_F31:65500,XK_R11:65500,XK_F32:65501,XK_R12:65501,XK_F33:65502,XK_R13:65502,XK_F34:65503,XK_R14:65503,XK_F35:65504,XK_R15:65504,XK_Shift_L:65505,XK_Shift_R:65506,XK_Control_L:65507,XK_Control_R:65508,XK_Caps_Lock:65509,XK_Shift_Lock:65510,XK_Meta_L:65511,XK_Meta_R:65512,XK_Alt_L:65513,XK_Alt_R:65514,XK_Super_L:65515,XK_Super_R:65516,XK_Hyper_L:65517,XK_Hyper_R:65518,XK_ISO_Level3_Shift:65027,XK_ISO_Next_Group:65032,XK_ISO_Prev_Group:65034,XK_ISO_First_Group:65036,XK_ISO_Last_Group:65038,XK_space:32,XK_exclam:33,XK_quotedbl:34,XK_numbersign:35,XK_dollar:36,XK_percent:37,XK_ampersand:38,XK_apostrophe:39,XK_quoteright:39,XK_parenleft:40,XK_parenright:41,XK_asterisk:42,XK_plus:43,XK_comma:44,XK_minus:45,XK_period:46,XK_slash:47,XK_0:48,XK_1:49,XK_2:50,XK_3:51,XK_4:52,XK_5:53,XK_6:54,XK_7:55,XK_8:56,XK_9:57,XK_colon:58,XK_semicolon:59,XK_less:60,XK_equal:61,XK_greater:62,XK_question:63,XK_at:64,XK_A:65,XK_B:66,XK_C:67,XK_D:68,XK_E:69,XK_F:70,XK_G:71,XK_H:72,XK_I:73,XK_J:74,XK_K:75,XK_L:76,XK_M:77,XK_N:78,XK_O:79,XK_P:80,XK_Q:81,XK_R:82,XK_S:83,XK_T:84,XK_U:85,XK_V:86,XK_W:87,XK_X:88,XK_Y:89,XK_Z:90,XK_bracketleft:91,XK_backslash:92,XK_bracketright:93,XK_asciicircum:94,XK_underscore:95,XK_grave:96,XK_quoteleft:96,XK_a:97,XK_b:98,XK_c:99,XK_d:100,XK_e:101,XK_f:102,XK_g:103,XK_h:104,XK_i:105,XK_j:106,XK_k:107,XK_l:108,XK_m:109,XK_n:110,XK_o:111,XK_p:112,XK_q:113,XK_r:114,XK_s:115,XK_t:116,XK_u:117,XK_v:118,XK_w:119,XK_x:120,XK_y:121,XK_z:122,XK_braceleft:123,XK_bar:124,XK_braceright:125,XK_asciitilde:126,XK_nobreakspace:160,XK_exclamdown:161,XK_cent:162,XK_sterling:163,XK_currency:164,XK_yen:165,XK_brokenbar:166,XK_section:167,XK_diaeresis:168,XK_copyright:169,XK_ordfeminine:170,XK_guillemotleft:171,XK_notsign:172,XK_hyphen:173,XK_registered:174,XK_macron:175,XK_degree:176,XK_plusminus:177,XK_twosuperior:178,XK_threesuperior:179,XK_acute:180,XK_mu:181,XK_paragraph:182,XK_periodcentered:183,XK_cedilla:184,XK_onesuperior:185,XK_masculine:186,XK_guillemotright:187,XK_onequarter:188,XK_onehalf:189,XK_threequarters:190,XK_questiondown:191,XK_Agrave:192,XK_Aacute:193,XK_Acircumflex:194,XK_Atilde:195,XK_Adiaeresis:196,XK_Aring:197,XK_AE:198,XK_Ccedilla:199,XK_Egrave:200,XK_Eacute:201,XK_Ecircumflex:202,XK_Ediaeresis:203,XK_Igrave:204,XK_Iacute:205,XK_Icircumflex:206,XK_Idiaeresis:207,XK_ETH:208,XK_Eth:208,XK_Ntilde:209,XK_Ograve:210,XK_Oacute:211,XK_Ocircumflex:212,XK_Otilde:213,XK_Odiaeresis:214,XK_multiply:215,XK_Oslash:216,XK_Ooblique:216,XK_Ugrave:217,XK_Uacute:218,XK_Ucircumflex:219,XK_Udiaeresis:220,XK_Yacute:221,XK_THORN:222,XK_Thorn:222,XK_ssharp:223,XK_agrave:224,XK_aacute:225,XK_acircumflex:226,XK_atilde:227,XK_adiaeresis:228,XK_aring:229,XK_ae:230,XK_ccedilla:231,XK_egrave:232,XK_eacute:233,XK_ecircumflex:234,XK_ediaeresis:235,XK_igrave:236,XK_iacute:237,XK_icircumflex:238,XK_idiaeresis:239,XK_eth:240,XK_ntilde:241,XK_ograve:242,XK_oacute:243,XK_ocircumflex:244,XK_otilde:245,XK_odiaeresis:246,XK_division:247,XK_oslash:248,XK_ooblique:248,XK_ugrave:249,XK_uacute:250,XK_ucircumflex:251,XK_udiaeresis:252,XK_yacute:253,XK_thorn:254,XK_ydiaeresis:255,XK_Hangul:65329,XK_Hangul_Hanja:65332,XK_Hangul_Jeonja:65336,XF86XK_ModeLock:269025025,XF86XK_MonBrightnessUp:269025026,XF86XK_MonBrightnessDown:269025027,XF86XK_KbdLightOnOff:269025028,XF86XK_KbdBrightnessUp:269025029,XF86XK_KbdBrightnessDown:269025030,XF86XK_Standby:269025040,XF86XK_AudioLowerVolume:269025041,XF86XK_AudioMute:269025042,XF86XK_AudioRaiseVolume:269025043,XF86XK_AudioPlay:269025044,XF86XK_AudioStop:269025045,XF86XK_AudioPrev:269025046,XF86XK_AudioNext:269025047,XF86XK_HomePage:269025048,XF86XK_Mail:269025049,XF86XK_Start:269025050,XF86XK_Search:269025051,XF86XK_AudioRecord:269025052,XF86XK_Calculator:269025053,XF86XK_Memo:269025054,XF86XK_ToDoList:269025055,XF86XK_Calendar:269025056,XF86XK_PowerDown:269025057,XF86XK_ContrastAdjust:269025058,XF86XK_RockerUp:269025059,XF86XK_RockerDown:269025060,XF86XK_RockerEnter:269025061,XF86XK_Back:269025062,XF86XK_Forward:269025063,XF86XK_Stop:269025064,XF86XK_Refresh:269025065,XF86XK_PowerOff:269025066,XF86XK_WakeUp:269025067,XF86XK_Eject:269025068,XF86XK_ScreenSaver:269025069,XF86XK_WWW:269025070,XF86XK_Sleep:269025071,XF86XK_Favorites:269025072,XF86XK_AudioPause:269025073,XF86XK_AudioMedia:269025074,XF86XK_MyComputer:269025075,XF86XK_VendorHome:269025076,XF86XK_LightBulb:269025077,XF86XK_Shop:269025078,XF86XK_History:269025079,XF86XK_OpenURL:269025080,XF86XK_AddFavorite:269025081,XF86XK_HotLinks:269025082,XF86XK_BrightnessAdjust:269025083,XF86XK_Finance:269025084,XF86XK_Community:269025085,XF86XK_AudioRewind:269025086,XF86XK_BackForward:269025087,XF86XK_Launch0:269025088,XF86XK_Launch1:269025089,XF86XK_Launch2:269025090,XF86XK_Launch3:269025091,XF86XK_Launch4:269025092,XF86XK_Launch5:269025093,XF86XK_Launch6:269025094,XF86XK_Launch7:269025095,XF86XK_Launch8:269025096,XF86XK_Launch9:269025097,XF86XK_LaunchA:269025098,XF86XK_LaunchB:269025099,XF86XK_LaunchC:269025100,XF86XK_LaunchD:269025101,XF86XK_LaunchE:269025102,XF86XK_LaunchF:269025103,XF86XK_ApplicationLeft:269025104,XF86XK_ApplicationRight:269025105,XF86XK_Book:269025106,XF86XK_CD:269025107,XF86XK_Calculater:269025108,XF86XK_Clear:269025109,XF86XK_Close:269025110,XF86XK_Copy:269025111,XF86XK_Cut:269025112,XF86XK_Display:269025113,XF86XK_DOS:269025114,XF86XK_Documents:269025115,XF86XK_Excel:269025116,XF86XK_Explorer:269025117,XF86XK_Game:269025118,XF86XK_Go:269025119,XF86XK_iTouch:269025120,XF86XK_LogOff:269025121,XF86XK_Market:269025122,XF86XK_Meeting:269025123,XF86XK_MenuKB:269025125,XF86XK_MenuPB:269025126,XF86XK_MySites:269025127,XF86XK_New:269025128,XF86XK_News:269025129,XF86XK_OfficeHome:269025130,XF86XK_Open:269025131,XF86XK_Option:269025132,XF86XK_Paste:269025133,XF86XK_Phone:269025134,XF86XK_Q:269025136,XF86XK_Reply:269025138,XF86XK_Reload:269025139,XF86XK_RotateWindows:269025140,XF86XK_RotationPB:269025141,XF86XK_RotationKB:269025142,XF86XK_Save:269025143,XF86XK_ScrollUp:269025144,XF86XK_ScrollDown:269025145,XF86XK_ScrollClick:269025146,XF86XK_Send:269025147,XF86XK_Spell:269025148,XF86XK_SplitScreen:269025149,XF86XK_Support:269025150,XF86XK_TaskPane:269025151,XF86XK_Terminal:269025152,XF86XK_Tools:269025153,XF86XK_Travel:269025154,XF86XK_UserPB:269025156,XF86XK_User1KB:269025157,XF86XK_User2KB:269025158,XF86XK_Video:269025159,XF86XK_WheelButton:269025160,XF86XK_Word:269025161,XF86XK_Xfer:269025162,XF86XK_ZoomIn:269025163,XF86XK_ZoomOut:269025164,XF86XK_Away:269025165,XF86XK_Messenger:269025166,XF86XK_WebCam:269025167,XF86XK_MailForward:269025168,XF86XK_Pictures:269025169,XF86XK_Music:269025170,XF86XK_Battery:269025171,XF86XK_Bluetooth:269025172,XF86XK_WLAN:269025173,XF86XK_UWB:269025174,XF86XK_AudioForward:269025175,XF86XK_AudioRepeat:269025176,XF86XK_AudioRandomPlay:269025177,XF86XK_Subtitle:269025178,XF86XK_AudioCycleTrack:269025179,XF86XK_CycleAngle:269025180,XF86XK_FrameBack:269025181,XF86XK_FrameForward:269025182,XF86XK_Time:269025183,XF86XK_Select:269025184,XF86XK_View:269025185,XF86XK_TopMenu:269025186,XF86XK_Red:269025187,XF86XK_Green:269025188,XF86XK_Yellow:269025189,XF86XK_Blue:269025190,XF86XK_Suspend:269025191,XF86XK_Hibernate:269025192,XF86XK_TouchpadToggle:269025193,XF86XK_TouchpadOn:269025200,XF86XK_TouchpadOff:269025201,XF86XK_AudioMicMute:269025202,XF86XK_Switch_VT_1:269024769,XF86XK_Switch_VT_2:269024770,XF86XK_Switch_VT_3:269024771,XF86XK_Switch_VT_4:269024772,XF86XK_Switch_VT_5:269024773,XF86XK_Switch_VT_6:269024774,XF86XK_Switch_VT_7:269024775,XF86XK_Switch_VT_8:269024776,XF86XK_Switch_VT_9:269024777,XF86XK_Switch_VT_10:269024778,XF86XK_Switch_VT_11:269024779,XF86XK_Switch_VT_12:269024780,XF86XK_Ungrab:269024800,XF86XK_ClearGrab:269024801,XF86XK_Next_VMode:269024802,XF86XK_Prev_VMode:269024803,XF86XK_LogWindowTree:269024804,XF86XK_LogGrabInfo:269024805};F.default=w},mOS8:function(S,F,v){S.exports=v.p+"static/403Qrcode.6c17b6f4.png"},mTgk:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var w=h(v("mHUz"));function h(d){return d&&d.__esModule?d:{default:d}}var I={};function m(d,u){if(u===void 0)throw new Error('Undefined keysym for key "'+d+'"');if(d in I)throw new Error('Duplicate entry for key "'+d+'"');I[d]=[u,u,u,u]}function g(d,u,o){if(u===void 0)throw new Error('Undefined keysym for key "'+d+'"');if(o===void 0)throw new Error('Undefined keysym for key "'+d+'"');if(d in I)throw new Error('Duplicate entry for key "'+d+'"');I[d]=[u,u,o,u]}function a(d,u,o){if(u===void 0)throw new Error('Undefined keysym for key "'+d+'"');if(o===void 0)throw new Error('Undefined keysym for key "'+d+'"');if(d in I)throw new Error('Duplicate entry for key "'+d+'"');I[d]=[u,u,u,o]}g("Alt",w.default.XK_Alt_L,w.default.XK_Alt_R),m("AltGraph",w.default.XK_ISO_Level3_Shift),m("CapsLock",w.default.XK_Caps_Lock),g("Control",w.default.XK_Control_L,w.default.XK_Control_R),g("Meta",w.default.XK_Super_L,w.default.XK_Super_R),m("NumLock",w.default.XK_Num_Lock),m("ScrollLock",w.default.XK_Scroll_Lock),g("Shift",w.default.XK_Shift_L,w.default.XK_Shift_R),a("Enter",w.default.XK_Return,w.default.XK_KP_Enter),m("Tab",w.default.XK_Tab),a(" ",w.default.XK_space,w.default.XK_KP_Space),a("ArrowDown",w.default.XK_Down,w.default.XK_KP_Down),a("ArrowUp",w.default.XK_Up,w.default.XK_KP_Up),a("ArrowLeft",w.default.XK_Left,w.default.XK_KP_Left),a("ArrowRight",w.default.XK_Right,w.default.XK_KP_Right),a("End",w.default.XK_End,w.default.XK_KP_End),a("Home",w.default.XK_Home,w.default.XK_KP_Home),a("PageDown",w.default.XK_Next,w.default.XK_KP_Next),a("PageUp",w.default.XK_Prior,w.default.XK_KP_Prior),m("Backspace",w.default.XK_BackSpace),a("Clear",w.default.XK_Clear,w.default.XK_KP_Begin),m("Copy",w.default.XF86XK_Copy),m("Cut",w.default.XF86XK_Cut),a("Delete",w.default.XK_Delete,w.default.XK_KP_Delete),a("Insert",w.default.XK_Insert,w.default.XK_KP_Insert),m("Paste",w.default.XF86XK_Paste),m("Redo",w.default.XK_Redo),m("Undo",w.default.XK_Undo),m("Cancel",w.default.XK_Cancel),m("ContextMenu",w.default.XK_Menu),m("Escape",w.default.XK_Escape),m("Execute",w.default.XK_Execute),m("Find",w.default.XK_Find),m("Help",w.default.XK_Help),m("Pause",w.default.XK_Pause),m("Select",w.default.XK_Select),m("ZoomIn",w.default.XF86XK_ZoomIn),m("ZoomOut",w.default.XF86XK_ZoomOut),m("BrightnessDown",w.default.XF86XK_MonBrightnessDown),m("BrightnessUp",w.default.XF86XK_MonBrightnessUp),m("Eject",w.default.XF86XK_Eject),m("LogOff",w.default.XF86XK_LogOff),m("Power",w.default.XF86XK_PowerOff),m("PowerOff",w.default.XF86XK_PowerDown),m("PrintScreen",w.default.XK_Print),m("Hibernate",w.default.XF86XK_Hibernate),m("Standby",w.default.XF86XK_Standby),m("WakeUp",w.default.XF86XK_WakeUp),m("AllCandidates",w.default.XK_MultipleCandidate),m("Alphanumeric",w.default.XK_Eisu_Shift),m("CodeInput",w.default.XK_Codeinput),m("Compose",w.default.XK_Multi_key),m("Convert",w.default.XK_Henkan),m("GroupFirst",w.default.XK_ISO_First_Group),m("GroupLast",w.default.XK_ISO_Last_Group),m("GroupNext",w.default.XK_ISO_Next_Group),m("GroupPrevious",w.default.XK_ISO_Prev_Group),m("NonConvert",w.default.XK_Muhenkan),m("PreviousCandidate",w.default.XK_PreviousCandidate),m("SingleCandidate",w.default.XK_SingleCandidate),m("HangulMode",w.default.XK_Hangul),m("HanjaMode",w.default.XK_Hangul_Hanja),m("JunjuaMode",w.default.XK_Hangul_Jeonja),m("Eisu",w.default.XK_Eisu_toggle),m("Hankaku",w.default.XK_Hankaku),m("Hiragana",w.default.XK_Hiragana),m("HiraganaKatakana",w.default.XK_Hiragana_Katakana),m("KanaMode",w.default.XK_Kana_Shift),m("KanjiMode",w.default.XK_Kanji),m("Katakana",w.default.XK_Katakana),m("Romaji",w.default.XK_Romaji),m("Zenkaku",w.default.XK_Zenkaku),m("ZenkakuHanaku",w.default.XK_Zenkaku_Hankaku),m("F1",w.default.XK_F1),m("F2",w.default.XK_F2),m("F3",w.default.XK_F3),m("F4",w.default.XK_F4),m("F5",w.default.XK_F5),m("F6",w.default.XK_F6),m("F7",w.default.XK_F7),m("F8",w.default.XK_F8),m("F9",w.default.XK_F9),m("F10",w.default.XK_F10),m("F11",w.default.XK_F11),m("F12",w.default.XK_F12),m("F13",w.default.XK_F13),m("F14",w.default.XK_F14),m("F15",w.default.XK_F15),m("F16",w.default.XK_F16),m("F17",w.default.XK_F17),m("F18",w.default.XK_F18),m("F19",w.default.XK_F19),m("F20",w.default.XK_F20),m("F21",w.default.XK_F21),m("F22",w.default.XK_F22),m("F23",w.default.XK_F23),m("F24",w.default.XK_F24),m("F25",w.default.XK_F25),m("F26",w.default.XK_F26),m("F27",w.default.XK_F27),m("F28",w.default.XK_F28),m("F29",w.default.XK_F29),m("F30",w.default.XK_F30),m("F31",w.default.XK_F31),m("F32",w.default.XK_F32),m("F33",w.default.XK_F33),m("F34",w.default.XK_F34),m("F35",w.default.XK_F35),m("Close",w.default.XF86XK_Close),m("MailForward",w.default.XF86XK_MailForward),m("MailReply",w.default.XF86XK_Reply),m("MailSend",w.default.XF86XK_Send),m("MediaFastForward",w.default.XF86XK_AudioForward),m("MediaPause",w.default.XF86XK_AudioPause),m("MediaPlay",w.default.XF86XK_AudioPlay),m("MediaRecord",w.default.XF86XK_AudioRecord),m("MediaRewind",w.default.XF86XK_AudioRewind),m("MediaStop",w.default.XF86XK_AudioStop),m("MediaTrackNext",w.default.XF86XK_AudioNext),m("MediaTrackPrevious",w.default.XF86XK_AudioPrev),m("New",w.default.XF86XK_New),m("Open",w.default.XF86XK_Open),m("Print",w.default.XK_Print),m("Save",w.default.XF86XK_Save),m("SpellCheck",w.default.XF86XK_Spell),m("AudioVolumeDown",w.default.XF86XK_AudioLowerVolume),m("AudioVolumeUp",w.default.XF86XK_AudioRaiseVolume),m("AudioVolumeMute",w.default.XF86XK_AudioMute),m("MicrophoneVolumeMute",w.default.XF86XK_AudioMicMute),m("LaunchApplication1",w.default.XF86XK_MyComputer),m("LaunchApplication2",w.default.XF86XK_Calculator),m("LaunchCalendar",w.default.XF86XK_Calendar),m("LaunchMail",w.default.XF86XK_Mail),m("LaunchMediaPlayer",w.default.XF86XK_AudioMedia),m("LaunchMusicPlayer",w.default.XF86XK_Music),m("LaunchPhone",w.default.XF86XK_Phone),m("LaunchScreenSaver",w.default.XF86XK_ScreenSaver),m("LaunchSpreadsheet",w.default.XF86XK_Excel),m("LaunchWebBrowser",w.default.XF86XK_WWW),m("LaunchWebCam",w.default.XF86XK_WebCam),m("LaunchWordProcessor",w.default.XF86XK_Word),m("BrowserBack",w.default.XF86XK_Back),m("BrowserFavorites",w.default.XF86XK_Favorites),m("BrowserForward",w.default.XF86XK_Forward),m("BrowserHome",w.default.XF86XK_HomePage),m("BrowserRefresh",w.default.XF86XK_Refresh),m("BrowserSearch",w.default.XF86XK_Search),m("BrowserStop",w.default.XF86XK_Stop),m("Dimmer",w.default.XF86XK_BrightnessAdjust),m("MediaAudioTrack",w.default.XF86XK_AudioCycleTrack),m("RandomToggle",w.default.XF86XK_AudioRandomPlay),m("SplitScreenToggle",w.default.XF86XK_SplitScreen),m("Subtitle",w.default.XF86XK_Subtitle),m("VideoModeNext",w.default.XF86XK_Next_VMode),a("=",w.default.XK_equal,w.default.XK_KP_Equal),a("+",w.default.XK_plus,w.default.XK_KP_Add),a("-",w.default.XK_minus,w.default.XK_KP_Subtract),a("*",w.default.XK_asterisk,w.default.XK_KP_Multiply),a("/",w.default.XK_slash,w.default.XK_KP_Divide),a(".",w.default.XK_period,w.default.XK_KP_Decimal),a(",",w.default.XK_comma,w.default.XK_KP_Separator),a("0",w.default.XK_0,w.default.XK_KP_0),a("1",w.default.XK_1,w.default.XK_KP_1),a("2",w.default.XK_2,w.default.XK_KP_2),a("3",w.default.XK_3,w.default.XK_KP_3),a("4",w.default.XK_4,w.default.XK_KP_4),a("5",w.default.XK_5,w.default.XK_KP_5),a("6",w.default.XK_6,w.default.XK_KP_6),a("7",w.default.XK_7,w.default.XK_KP_7),a("8",w.default.XK_8,w.default.XK_KP_8),a("9",w.default.XK_9,w.default.XK_KP_9);var f=I;F.default=f},mdZa:function(S,F,v){"use strict";typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(h,I){"use strict";if(h==null)throw new TypeError("Cannot convert undefined or null to object");for(var m=Object(h),g=1;g<arguments.length;g++){var a=arguments[g];if(a!=null)for(var f in a)Object.prototype.hasOwnProperty.call(a,f)&&(m[f]=a[f])}return m},writable:!0,configurable:!0}),function(){function w(h,I){I=I||{bubbles:!1,cancelable:!1,detail:void 0};var m=document.createEvent("CustomEvent");return m.initCustomEvent(h,I.bubbles,I.cancelable,I.detail),m}w.prototype=window.Event.prototype,typeof window.CustomEvent!="function"&&(window.CustomEvent=w)}(),Number.isInteger=Number.isInteger||function(h){return typeof h=="number"&&isFinite(h)&&Math.floor(h)===h}},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(S){if(!0)module.exports=S();else var F})(function(){var define,module,exports;return function(){function S(F,v,w){function h(g,a){if(!v[g]){if(!F[g]){var f=typeof require=="function"&&require;if(!a&&f)return require(g,!0);if(I)return I(g,!0);var d=new Error("Cannot find module '"+g+"'");throw d.code="MODULE_NOT_FOUND",d}var u=v[g]={exports:{}};F[g][0].call(u.exports,function(o){var r=F[g][1][o];return h(r||o)},u,u.exports,S,F,v,w)}return v[g].exports}for(var I=typeof require=="function"&&require,m=0;m<w.length;m++)h(w[m]);return h}return S}()({1:[function(S,F,v){"use strict";var w=S("./browser/client");w.Buffer=S("buffer").Buffer,w.urllib=S("../shims/xhr"),w.version=S("./browser/version").version,F.exports=w},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(S,F,v){(function(w,h){"use strict";var I=S("babel-runtime/core-js/promise"),m=u(I),g=S("babel-runtime/regenerator"),a=u(g),f=S("babel-runtime/core-js/object/assign"),d=u(f);function u(ee){return ee&&ee.__esModule?ee:{default:ee}}var o=S("debug")("ali-oss"),r=S("copy-to"),l=S("xml2js"),n=S("agentkeepalive"),s=S("merge-descriptors"),e=S("url"),i=S("is-type-of"),_=S("platform"),b=S("utility"),y=S("urllib"),E=S("./version"),c=S("bowser"),C=S("../common/signUtils"),x=S("../common/utils/isIP"),M=x.isIP,k=S("../common/client/initOptions"),T=S("../common/utils/createRequest"),R=T.createRequest,P=new n;function B(){var ee=_.name,G=_.version;ee&&ee.toLowerCase&&ee.toLowerCase()==="ie"&&G.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function W(){return location&&location.protocol==="https:"}function z(ee,G){if(B(),!(this instanceof z))return new z(ee,G);ee&&ee.inited?this.options=ee:this.options=z.initOptions(ee),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=y,this.agent=this.options.agent||P),this.ctx=G,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}F.exports=z,z.initOptions=function(G){G.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var U=(0,d.default)({secure:W(),useFetch:!1},G);return k(U)};var H=z.prototype;H.debug=o,s(H,S("./object")),s(H,S("../common/bucket/getBucketWebsite")),s(H,S("../common/bucket/putBucketWebsite")),s(H,S("../common/bucket/deleteBucketWebsite")),s(H,S("../common/bucket/getBucketLifecycle")),s(H,S("../common/bucket/putBucketLifecycle")),s(H,S("../common/bucket/deleteBucketLifecycle")),s(H,S("../common/bucket/putBucketVersioning")),s(H,S("../common/bucket/getBucketVersioning")),s(H,S("./managed-upload")),s(H,S("../common/multipart")),s(H,S("../common/parallel")),H.signature=function(G){return this.debug("authorization stringToSign: %s",G,"info"),C.computeSignature(this.options.accessKeySecret,G)},H.authorization=function(G,U,K,L){var D=C.buildCanonicalString(G.toUpperCase(),U,{headers:L,parameters:K});return C.authorization(this.options.accessKeyId,this.options.accessKeySecret,D)},H.request=function(G){var U,K,L,D,j,Z;return a.default.async(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return U=R.call(this,G),this.options.useFetch||(U.params.mode="disable-fetch"),K=void 0,L=void 0,D=!!G.stream,pe.prev=5,pe.next=8,a.default.awrap(this.urllib.request(U.url,U.params));case 8:K=pe.sent,this.debug("response %s %s, got %s, headers: %j",G.method,U.url,K.status,K.headers,"info"),pe.next=15;break;case 12:pe.prev=12,pe.t0=pe.catch(5),L=pe.t0;case 15:if(j=void 0,!(K&&G.successStatuses&&G.successStatuses.indexOf(K.status)===-1)){pe.next=28;break}return pe.next=19,a.default.awrap(this.requestError(K));case 19:if(j=pe.sent,!(j.code==="RequestTimeTooSkewed"&&!D)){pe.next=25;break}return this.options.amendTimeSkewed=+new Date(j.serverTime)-new Date,pe.next=24,a.default.awrap(this.request(G));case 24:return pe.abrupt("return",pe.sent);case 25:j.params=G,pe.next=32;break;case 28:if(!L){pe.next=32;break}return pe.next=31,a.default.awrap(this.requestError(L));case 31:j=pe.sent;case 32:if(!j){pe.next=34;break}throw j;case 34:if(!G.xmlResponse){pe.next=39;break}return pe.next=37,a.default.awrap(this.parseXML(K.data));case 37:Z=pe.sent,K.data=Z;case 39:return pe.abrupt("return",K);case 40:case"end":return pe.stop()}},null,this,[[5,12]])},H._getResource=function(G){var U="/";return G.bucket&&(U+=G.bucket+"/"),G.object&&(U+=G.object),U},H._isIP=M,H._escape=function(G){return b.encodeURIComponent(G).replace(/%2F/g,"/")},H._getReqUrl=function(G){var U={};r(this.options.endpoint).to(U);var K=this._isIP(U.hostname),L=this.options.cname;G.bucket&&!L&&!K&&(U.host=G.bucket+"."+U.host);var D="/";G.bucket&&K&&(D+=G.bucket+"/"),G.object&&(D+=this._escape(G.object).replace(/\+/g,"%2B")),U.pathname=D;var j={};if(G.query&&s(j,G.query),G.subres){var Z={};i.string(G.subres)?Z[G.subres]="":i.array(G.subres)?G.subres.forEach(function(ie){Z[ie]=""}):Z=G.subres,s(j,Z)}return U.query=j,e.format(U)},H._getUserAgent=function(){var G=h&&h.browser?"js":"nodejs",U="aliyun-sdk-"+G+"/"+E.version,K=_.description;return!K&&h&&(K="Node.js "+h.version.slice(1)+" on "+h.platform+" "+h.arch),this._checkUserAgent(U+" "+K)},H._checkUserAgent=function(G){var U=G.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return U},H.checkBrowserAndVersion=function(G,U){return c.name===G&&c.version.split(".")[0]===U},H.parseXML=function(G){return new m.default(function(U,K){w.isBuffer(G)&&(G=G.toString()),l.parseString(G,{explicitRoot:!1,explicitArray:!1},function(L,D){L?K(L):U(D)})})},H.requestError=function(G){var U,K,L,D;return a.default.async(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(U=null,!(!G.data||!G.data.length)){Z.next=5;break}G.status===-1||G.status===-2?(U=new Error(G.message),U.name=G.name,U.status=G.status,U.code=G.name):(G.status===404?(U=new Error("Object not exists"),U.name="NoSuchKeyError",U.status=404,U.code="NoSuchKey"):G.status===412?(U=new Error("Pre condition failed"),U.name="PreconditionFailedError",U.status=412,U.code="PreconditionFailed"):(U=new Error("Unknow error, status: "+G.status),U.name="UnknowError",U.status=G.status),U.requestId=G.headers["x-oss-request-id"],U.host=""),Z.next=33;break;case 5:return K=String(G.data),this.debug("request response error data: %s",K,"error"),L=void 0,Z.prev=8,Z.next=11,a.default.awrap(this.parseXML(K));case 11:if(Z.t0=Z.sent,Z.t0){Z.next=14;break}Z.t0={};case 14:L=Z.t0,Z.next=24;break;case 17:return Z.prev=17,Z.t1=Z.catch(8),this.debug(K,"error"),Z.t1.message+=`
raw xml: `+K,Z.t1.status=G.status,Z.t1.requestId=G.headers["x-oss-request-id"],Z.abrupt("return",Z.t1);case 24:D=L.Message||"unknow request error, status: "+G.status,L.Condition&&(D+=" (condition: "+L.Condition+")"),U=new Error(D),U.name=L.Code?L.Code+"Error":"UnknowError",U.status=G.status,U.code=L.Code,U.requestId=L.RequestId,U.hostId=L.HostId,U.serverTime=L.ServerTime;case 33:return this.debug("generate error %j",U,"error"),Z.abrupt("return",U);case 35:case"end":return Z.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:S("../../node_modules/is-buffer/index.js")},S("_process"))},{"../../node_modules/is-buffer/index.js":197,"../common/bucket/deleteBucketLifecycle":6,"../common/bucket/deleteBucketWebsite":7,"../common/bucket/getBucketLifecycle":8,"../common/bucket/getBucketVersioning":9,"../common/bucket/getBucketWebsite":10,"../common/bucket/putBucketLifecycle":11,"../common/bucket/putBucketVersioning":12,"../common/bucket/putBucketWebsite":13,"../common/client/initOptions":15,"../common/multipart":18,"../common/parallel":33,"../common/signUtils":34,"../common/utils/createRequest":38,"../common/utils/isIP":45,"./managed-upload":3,"./object":4,"./version":5,_process:208,agentkeepalive:48,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,bowser:70,"copy-to":76,debug:288,"is-type-of":289,"merge-descriptors":200,platform:206,url:238,urllib:291,utility:290,xml2js:249}],3:[function(S,F,v){(function(w){"use strict";var h=S("babel-runtime/core-js/array/from"),I=d(h),m=S("babel-runtime/core-js/promise"),g=d(m),a=S("babel-runtime/regenerator"),f=d(a);function d(C){return C&&C.__esModule?C:{default:C}}var u=S("is-type-of"),o=S("util"),r=S("path"),l=S("mime"),n=S("copy-to"),s=S("../common/utils/isBlob"),e=s.isBlob,i=S("../common/utils/isFile"),_=i.isFile,b=v;b.multipartUpload=function(x,M,k){var T,R,P,B,W,z,H,ee,G;return f.default.async(function(K){for(;;)switch(K.prev=K.next){case 0:if(this.resetCancelFlag(),k=k||{},!(k.checkpoint&&k.checkpoint.uploadId)){K.next=6;break}return K.next=5,f.default.awrap(this._resumeMultipart(k.checkpoint,k));case 5:return K.abrupt("return",K.sent);case 6:return T=100*1024,k.mime||(_(M)?k.mime=l.getType(r.extname(M.name)):e(M)?k.mime=M.type:k.mime=l.getType(r.extname(M))),k.headers=k.headers||{},this._convertMetaToHeaders(k.meta,k.headers),K.next=12,f.default.awrap(this._getFileSize(M));case 12:if(R=K.sent,!(R<T)){K.next=25;break}return P=this._createStream(M,0,R),k.contentLength=R,K.next=18,f.default.awrap(this.putStream(x,P,k));case 18:if(B=K.sent,!(k&&k.progress)){K.next=22;break}return K.next=22,f.default.awrap(k.progress(1));case 22:return W={res:B.res,bucket:this.options.bucket,name:x,etag:B.res.headers.etag},(k.headers&&k.headers["x-oss-callback"]||k.callback)&&(W.data=B.data),K.abrupt("return",W);case 25:if(!(k.partSize&&!(parseInt(k.partSize,10)===k.partSize))){K.next=27;break}throw new Error("partSize must be int number");case 27:if(!(k.partSize&&k.partSize<T)){K.next=29;break}throw new Error("partSize must not be smaller than "+T);case 29:return K.next=31,f.default.awrap(this.initMultipartUpload(x,k));case 31:if(z=K.sent,H=z.uploadId,ee=this._getPartSize(R,k.partSize),G={file:M,name:x,fileSize:R,partSize:ee,uploadId:H,doneParts:[]},!(k&&k.progress)){K.next=38;break}return K.next=38,f.default.awrap(k.progress(0,G,z.res));case 38:return K.next=40,f.default.awrap(this._resumeMultipart(G,k));case 40:return K.abrupt("return",K.sent);case 41:case"end":return K.stop()}},null,this)},b._resumeMultipart=function(x,M){var k,T,R,P,B,W,z,H,ee,G,U,K,L,D,j,Z,ie,pe;return f.default.async(function(De){for(;;)switch(De.prev=De.next){case 0:if(k=this,!this.isCancel()){De.next=3;break}throw this._makeCancelEvent();case 3:return T=x.file,R=x.fileSize,P=x.partSize,B=x.uploadId,W=x.doneParts,z=x.name,H=[],W.length>0&&n(W).to(H),ee=this._divideParts(R,P),G=ee.length,U=!1,K=function(be,ye){var le=this;return new g.default(function(ne,xe){var $,oe,Le,te;return f.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:if(X.prev=0,be.isCancel()){X.next=18;break}return $=ee[ye-1],oe={stream:be._createStream(T,$.start,$.end),size:$.end-$.start},X.next=6,f.default.awrap(be._uploadPart(z,B,ye,oe));case 6:if(Le=X.sent,!(!be.isCancel()&&!U)){X.next=15;break}if(x.doneParts.push({number:ye,etag:Le.res.headers.etag}),!M.progress){X.next=12;break}return X.next=12,f.default.awrap(M.progress(W.length/G,x,Le.res));case 12:ne({number:ye,etag:Le.res.headers.etag}),X.next=16;break;case 15:ne();case 16:X.next=19;break;case 18:ne();case 19:X.next=30;break;case 21:X.prev=21,X.t0=X.catch(0),te=new Error,te.name=X.t0.name,te.message=X.t0.message,te.stack=X.t0.stack,te.partNum=ye,n(X.t0).to(te),xe(te);case 30:case"end":return X.stop()}},null,le,[[0,21]])})},L=(0,I.default)(new Array(G),function(q,be){return be+1}),D=H.map(function(q){return q.number}),j=L.filter(function(q){return D.indexOf(q)<0}),Z=5,ie=M.parallel||Z,De.next=17,f.default.awrap(this._parallel(j,ie,function(q){return new g.default(function(be,ye){K(k,q).then(function(le){le&&H.push(le),be()}).catch(function(le){ye(le)})})}));case 17:if(pe=De.sent,U=!0,!this.isCancel()){De.next=22;break}throw K=null,this._makeCancelEvent();case 22:if(!(pe&&pe.length>0)){De.next=25;break}throw pe[0].message="Failed to upload some parts with error: "+pe[0].toString()+" part_num: "+pe[0].partNum,pe[0];case 25:return De.next=27,f.default.awrap(this.completeMultipartUpload(z,B,H,M));case 27:return De.abrupt("return",De.sent);case 28:case"end":return De.stop()}},null,this)},b._getFileSize=function(x){return f.default.async(function(k){for(;;)switch(k.prev=k.next){case 0:if(!u.buffer(x)){k.next=4;break}return k.abrupt("return",x.length);case 4:if(!(e(x)||_(x))){k.next=6;break}return k.abrupt("return",x.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return k.stop()}},null,this)};var y=S("stream"),E=y.Readable;function c(C,x){if(!(this instanceof c))return new c(C,x);E.call(this,x),this.file=C,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}o.inherits(c,E),c.prototype.readFileAndPush=function(x){if(this.fileBuffer)for(var M=!0;M&&this.fileBuffer&&this.start<this.fileBuffer.length;){var k=this.start,T=k+x;T=T>this.fileBuffer.length?this.fileBuffer.length:T,this.start=T,M=this.push(this.fileBuffer.slice(k,T))}},c.prototype._read=function(x){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var M=16*1024;x=x||M;var k=this;this.reader.onload=function(R){k.fileBuffer=w.from(new Uint8Array(R.target.result)),k.file=null,k.readFileAndPush(x)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(x)},b._createStream=function(x,M,k){if(e(x)||_(x))return new c(x.slice(M,k));throw new Error("_createStream requires File/Blob.")},b._getPartSize=function(x,M){var k=10*1e3,T=1024*1024;return M?Math.max(Math.ceil(x/k),M):T},b._divideParts=function(x,M){for(var k=Math.ceil(x/M),T=[],R=0;R<k;R++){var P=M*R,B=Math.min(P+M,x);T.push({start:P,end:B})}return T}}).call(this,S("buffer").Buffer)},{"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/array/from":52,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,buffer:73,"copy-to":76,"is-type-of":289,mime:202,path:205,stream:230,util:243}],4:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/promise"),h=u(w),I=S("babel-runtime/core-js/object/keys"),m=u(I),g=S("babel-runtime/core-js/object/assign"),a=u(g),f=S("babel-runtime/regenerator"),d=u(f);function u(k){return k&&k.__esModule?k:{default:k}}var o=S("utility"),r=S("fs"),l=S("is-type-of"),n=S("url"),s=S("copy-to"),e=S("path"),i=S("mime"),_=S("../common/callback"),b=S("../common/signUtils"),y=S("merge-descriptors"),E=S("../common/utils/isBlob"),c=E.isBlob,C=S("../common/utils/isFile"),x=C.isFile,M=v;M.append=function(T,R,P){var B;return d.default.async(function(z){for(;;)switch(z.prev=z.next){case 0:return P=P||{},P.position===void 0&&(P.position="0"),P.subres={append:"",position:P.position},P.method="POST",z.next=6,d.default.awrap(this.put(T,R,P));case 6:return B=z.sent,B.nextAppendPosition=B.res.headers["x-oss-next-append-position"],z.abrupt("return",B);case 9:case"end":return z.stop()}},null,this)},M.put=function(T,R,P){var B,W,z,H,ee,G,U;return d.default.async(function(L){for(;;)switch(L.prev=L.next){case 0:if(B=void 0,P=P||{},T=this._objectName(T),!l.buffer(R)){L.next=7;break}B=R,L.next=33;break;case 7:if(!(c(R)||x(R))){L.next=32;break}return P.mime||(x(R)?P.mime=i.getType(e.extname(R.name)):P.mime=R.type),W=this._createStream(R,0,R.size),L.next=12,d.default.awrap(this._getFileSize(R));case 12:return P.contentLength=L.sent,L.prev=13,L.next=16,d.default.awrap(this.putStream(T,W,P));case 16:return z=L.sent,L.abrupt("return",z);case 20:if(L.prev=20,L.t0=L.catch(13),!(L.t0.code==="RequestTimeTooSkewed")){L.next=29;break}return this.options.amendTimeSkewed=+new Date(L.t0.serverTime)-new Date,L.next=26,d.default.awrap(this.put(T,R,P));case 26:return L.abrupt("return",L.sent);case 29:throw L.t0;case 30:L.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return P.headers=P.headers||{},this._convertMetaToHeaders(P.meta,P.headers),H=P.method||"PUT",ee=this._objectRequestParams(H,T,P),_.encodeCallback(ee,P),ee.mime=P.mime,ee.content=B,ee.successStatuses=[200],L.next=43,d.default.awrap(this.request(ee));case 43:return G=L.sent,U={name:T,url:this._objectUrl(T),res:G.res},ee.headers&&ee.headers["x-oss-callback"]&&(U.data=JSON.parse(G.data.toString())),L.abrupt("return",U);case 47:case"end":return L.stop()}},null,this,[[13,20]])},M.putStream=function(T,R,P){var B,W,z,H;return d.default.async(function(G){for(;;)switch(G.prev=G.next){case 0:return P=P||{},P.headers=P.headers||{},T=this._objectName(T),P.contentLength?P.headers["Content-Length"]=P.contentLength:P.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(P.meta,P.headers),B=P.method||"PUT",W=this._objectRequestParams(B,T,P),_.encodeCallback(W,P),W.mime=P.mime,W.stream=R,W.successStatuses=[200],G.next=13,d.default.awrap(this.request(W));case 13:return z=G.sent,H={name:T,url:this._objectUrl(T),res:z.res},W.headers&&W.headers["x-oss-callback"]&&(H.data=JSON.parse(z.data.toString())),G.abrupt("return",H);case 17:case"end":return G.stop()}},null,this)},y(M,S("../common/object/copyObject")),y(M,S("../common/object/getObjectTagging")),y(M,S("../common/object/putObjectTagging")),y(M,S("../common/object/deleteObjectTagging")),y(M,S("../common/image")),y(M,S("../common/object/getBucketVersions")),y(M,S("../common/object/getACL")),y(M,S("../common/object/putACL")),y(M,S("../common/object/head")),y(M,S("../common/object/delete")),y(M,S("../common/object/get")),y(M,S("../common/object/putSymlink")),y(M,S("../common/object/getSymlink")),y(M,S("../common/object/deleteMulti")),y(M,S("../common/object/getObjectMeta")),M.putMeta=function(T,R,P){var B;return d.default.async(function(z){for(;;)switch(z.prev=z.next){case 0:return z.next=2,d.default.awrap(this.copy(T,T,{meta:R||{},timeout:P&&P.timeout,ctx:P&&P.ctx}));case 2:return B=z.sent,z.abrupt("return",B);case 4:case"end":return z.stop()}},null,this)},M.list=function(T,R){var P,B,W,z,H;return d.default.async(function(G){for(;;)switch(G.prev=G.next){case 0:return P=this._objectRequestParams("GET","",R),P.query=T,P.xmlResponse=!0,P.successStatuses=[200],G.next=6,d.default.awrap(this.request(P));case 6:return B=G.sent,W=B.data.Contents,z=this,W&&(Array.isArray(W)||(W=[W]),W=W.map(function(U){return{name:U.Key,url:z._objectUrl(U.Key),lastModified:U.LastModified,etag:U.ETag,type:U.Type,size:Number(U.Size),storageClass:U.StorageClass,owner:{id:U.Owner.ID,displayName:U.Owner.DisplayName}}})),H=B.data.CommonPrefixes||null,H&&(Array.isArray(H)||(H=[H]),H=H.map(function(U){return U.Prefix})),G.abrupt("return",{res:B.res,objects:W,prefixes:H,nextMarker:B.data.NextMarker||null,isTruncated:B.data.IsTruncated==="true"});case 13:case"end":return G.stop()}},null,this)},M.restore=function(T,R){var P,B;return d.default.async(function(z){for(;;)switch(z.prev=z.next){case 0:return R=R||{},R.subres=(0,a.default)({restore:""},R.subres),R.versionId&&(R.subres.versionId=R.versionId),P=this._objectRequestParams("POST",T,R),P.successStatuses=[202],z.next=7,d.default.awrap(this.request(P));case 7:return B=z.sent,z.abrupt("return",{res:B.res});case 9:case"end":return z.stop()}},null,this)},M.signatureUrl=function(T,R){R=R||{},T=this._objectName(T),R.method=R.method||"GET";var P=o.timestamp()+(R.expires||1800),B={bucket:this.options.bucket,object:T},W=this._getResource(B);this.options.stsToken&&(R["security-token"]=this.options.stsToken);var z=b._signatureForURL(this.options.accessKeySecret,R,W,P),H=n.parse(this._getReqUrl(B));return H.query={OSSAccessKeyId:this.options.accessKeyId,Expires:P,Signature:z.Signature},s(z.subResource).to(H.query),H.format()},M.getObjectUrl=function(T,R){return R?R[R.length-1]!=="/"&&(R+="/"):R=this.options.endpoint.format(),R+this._escape(this._objectName(T))},M._objectUrl=function(T){return this._getReqUrl({bucket:this.options.bucket,object:T})},M.generateObjectUrl=function(k,T){if(T)T[T.length-1]!=="/"&&(T+="/");else{T=this.options.endpoint.format();var R=n.parse(T),P=this.options.bucket;R.hostname=P+"."+R.hostname,R.host=P+"."+R.host,T=R.format()}return T+this._escape(this._objectName(k))},M._objectRequestParams=function(T,R,P){if(!this.options.bucket)throw new Error("Please create a bucket first");P=P||{},R=this._objectName(R);var B={object:R,bucket:this.options.bucket,method:T,subres:P&&P.subres,timeout:P&&P.timeout,ctx:P&&P.ctx};return P.headers&&(B.headers={},s(P.headers).to(B.headers)),B},M._objectName=function(T){return T.replace(/^\/+/,"")},M._convertMetaToHeaders=function(T,R){if(!T)return;(0,m.default)(T).forEach(function(P){R["x-oss-meta-"+P]=T[P]})},M._deleteFileSafe=function(T){var R=this;return new h.default(function(P){r.exists(T,function(B){B?r.unlink(T,function(W){W&&R.debug("unlink %j error: %s",T,W,"error"),P()}):P()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(S,F,v){"use strict";v.version="6.10.0"},{}],6:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=I(w);function I(f){return f&&f.__esModule?f:{default:f}}var m=S("../utils/checkBucketName"),g=m.checkBucketName,a=v;a.deleteBucketLifecycle=function(d,u){var o,r;return h.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return g(d),o=this._bucketRequestParams("DELETE",d,"lifecycle",u),o.successStatuses=[204],n.next=5,h.default.awrap(this.request(o));case 5:return r=n.sent,n.abrupt("return",{res:r.res});case 7:case"end":return n.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=I(w);function I(f){return f&&f.__esModule?f:{default:f}}var m=S("../utils/checkBucketName"),g=m.checkBucketName,a=v;a.deleteBucketWebsite=function(d,u){var o,r;return h.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return g(d),o=this._bucketRequestParams("DELETE",d,"website",u),o.successStatuses=[204],n.next=5,h.default.awrap(this.request(o));case 5:return r=n.sent,n.abrupt("return",{res:r.res});case 7:case"end":return n.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=I(w);function I(r){return r&&r.__esModule?r:{default:r}}var m=S("../utils/checkBucketName"),g=m.checkBucketName,a=S("../utils/isArray"),f=a.isArray,d=S("../utils/formatObjKey"),u=d.formatObjKey,o=v;o.getBucketLifecycle=function(l,n){var s,e,i;return h.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return g(l),s=this._bucketRequestParams("GET",l,"lifecycle",n),s.successStatuses=[200],s.xmlResponse=!0,b.next=6,h.default.awrap(this.request(s));case 6:return e=b.sent,i=e.data.Rule||null,i&&(f(i)||(i=[i]),i=i.map(function(y){return y.ID&&(y.id=y.ID,delete y.ID),y.Tag&&!f(y.Tag)&&(y.Tag=[y.Tag]),u(y,"firstLowerCase")})),b.abrupt("return",{rules:i,res:e.res});case 10:case"end":return b.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=I(w);function I(f){return f&&f.__esModule?f:{default:f}}var m=S("../utils/checkBucketName"),g=m.checkBucketName,a=v;a.getBucketVersioning=function(d,u){var o,r,l;return h.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return g(d),o=this._bucketRequestParams("GET",d,"versioning",u),o.xmlResponse=!0,o.successStatuses=[200],s.next=6,h.default.awrap(this.request(o));case 6:return r=s.sent,l=r.data.Status,s.abrupt("return",{status:r.status,versionStatus:l,res:r.res});case 9:case"end":return s.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=I(w);function I(u){return u&&u.__esModule?u:{default:u}}var m=S("../utils/checkBucketName"),g=m.checkBucketName,a=S("../utils/isObject"),f=a.isObject,d=v;d.getBucketWebsite=function(o,r){var l,n,s;return h.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return g(o),l=this._bucketRequestParams("GET",o,"website",r),l.successStatuses=[200],l.xmlResponse=!0,i.next=6,h.default.awrap(this.request(l));case 6:return n=i.sent,s=[],n.data.RoutingRules&&n.data.RoutingRules.RoutingRule&&(f(n.data.RoutingRules.RoutingRule)?s=[n.data.RoutingRules.RoutingRule]:s=n.data.RoutingRules.RoutingRule),i.abrupt("return",{index:n.data.IndexDocument&&n.data.IndexDocument.Suffix||"",supportSubDir:n.data.IndexDocument&&n.data.IndexDocument.SupportSubDir||"false",type:n.data.IndexDocument&&n.data.IndexDocument.Type,routingRules:s,error:n.data.ErrorDocument&&n.data.ErrorDocument.Key||null,res:n.res});case 10:case"end":return i.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=I(w);function I(x){return x&&x.__esModule?x:{default:x}}var m=S("../utils/checkBucketName"),g=m.checkBucketName,a=S("../utils/isArray"),f=a.isArray,d=S("../utils/deepCopy"),u=d.deepCopy,o=S("../utils/isObject"),r=o.isObject,l=S("../utils/obj2xml"),n=l.obj2xml,s=S("../utils/checkObjectTag"),e=s.checkObjectTag,i=S("../utils/getStrBytesCount"),_=i.getStrBytesCount,b=v;b.putBucketLifecycle=function(M,k,T){var R,P,B,W,z;return h.default.async(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(g(M),f(k)){ee.next=3;break}throw new Error("rules must be Array");case 3:return R=this._bucketRequestParams("PUT",M,"lifecycle",T),P=[],B={LifecycleConfiguration:{Rule:P}},k.forEach(function(G){y(G),C(G),G.id&&(G.ID=G.id,delete G.id),P.push(G)}),W=n(B,{headers:!0,firstUpperCase:!0}),R.content=W,R.mime="xml",R.successStatuses=[200],ee.next=13,h.default.awrap(this.request(R));case 13:return z=ee.sent,ee.abrupt("return",{res:z.res});case 15:case"end":return ee.stop()}},null,this)};function y(x){x.days&&(x.expiration={days:x.days}),x.date&&(x.expiration={createdBeforeDate:x.date})}function E(x,M){var k=x.days,T=x.createdBeforeDate;if(!k&&!T)throw new Error(M+" must includes days or createdBeforeDate");if(k&&!/^[1-9][0-9]*$/.test(k))throw new Error("days must be a positive integer");if(T&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(T))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function c(x){if(!f(x)&&!r(x))throw new Error("tag must be Object or Array");x=r(x)?[x]:x;var M={},k=u(x);k.forEach(function(T){M[T.key]=T.value}),e(M)}function C(x){if(x.id&&_(x.id)>255)throw new Error("ID is composed of 255 bytes at most");if(x.prefix===""||x.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(x.status))throw new Error("Status must be Enabled or Disabled");if(x.transition){if(!["IA","Archive"].includes(x.transition.storageClass))throw new Error("StorageClass must be IA or Archive");E(x.transition,"Transition")}if(x.expiration){if(!x.expiration.expiredObjectDeleteMarker)E(x.expiration,"Expiration");else if(x.expiration.days||x.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(x.abortMultipartUpload&&E(x.abortMultipartUpload,"AbortMultipartUpload"),!x.expiration&&!x.abortMultipartUpload&&!x.transition&&!x.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(x.tag){if(x.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");c(x.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=I(w);function I(u){return u&&u.__esModule?u:{default:u}}var m=S("../utils/checkBucketName"),g=m.checkBucketName,a=S("../utils/obj2xml"),f=a.obj2xml,d=v;d.putBucketVersioning=function(o,r){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,s,e;return h.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:if(g(o),["Enabled","Suspended"].includes(r)){_.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return n=this._bucketRequestParams("PUT",o,"versioning",l),s={VersioningConfiguration:{Status:r}},n.mime="xml",n.content=f(s,{headers:!0}),_.next=9,h.default.awrap(this.request(n));case 9:return e=_.sent,_.abrupt("return",{res:e.res,status:e.status});case 11:case"end":return _.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=I(w);function I(r){return r&&r.__esModule?r:{default:r}}var m=S("../utils/checkBucketName"),g=m.checkBucketName,a=S("../utils/obj2xml"),f=a.obj2xml,d=S("../utils/isArray"),u=d.isArray,o=v;o.putBucketWebsite=function(l){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments[2],e,i,_,b,y;return h.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:if(g(l),e=this._bucketRequestParams("PUT",l,"website",s),i={Suffix:n.index||"index.html"},_={IndexDocument:i},b={WebsiteConfiguration:_},n.supportSubDir&&(i.SupportSubDir=n.supportSubDir),n.type&&(i.Type=n.type),n.error&&(_.ErrorDocument={Key:n.error}),!(n.routingRules!==void 0)){c.next=12;break}if(u(n.routingRules)){c.next=11;break}throw new Error("RoutingRules must be Array");case 11:_.RoutingRules={RoutingRule:n.routingRules};case 12:return b=f(b),e.content=b,e.mime="xml",e.successStatuses=[200],c.next=18,h.default.awrap(this.request(e));case 18:return y=c.sent,c.abrupt("return",{res:y.res});case 20:case"end":return c.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(S,F,v){(function(w){"use strict";var h=S("babel-runtime/core-js/object/keys"),I=a(h),m=S("babel-runtime/core-js/json/stringify"),g=a(m);function a(f){return f&&f.__esModule?f:{default:f}}v.encodeCallback=function(d,u){if(d.headers=d.headers||{},!Object.prototype.hasOwnProperty.call(d.headers,"x-oss-callback")&&u.callback){var o={callbackUrl:encodeURI(u.callback.url),callbackBody:u.callback.body};u.callback.host&&(o.callbackHost=u.callback.host),u.callback.contentType&&(o.callbackBodyType=u.callback.contentType);var r=w.from((0,g.default)(o)).toString("base64");if(d.headers["x-oss-callback"]=r,u.callback.customValue){var l={};(0,I.default)(u.callback.customValue).forEach(function(n){l["x:"+n]=u.callback.customValue[n]}),d.headers["x-oss-callback-var"]=w.from((0,g.default)(l)).toString("base64")}}}}).call(this,S("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/assign"),h=I(w);function I(o){return o&&o.__esModule?o:{default:o}}var m=S("humanize-ms"),g=S("url"),a=S("../utils/checkBucketName"),f=a.checkBucketName;function d(o,r){var l=g.parse(o);if(l.protocol||(l=g.parse("http"+(r?"s":"")+"://"+o)),l.protocol!=="http:"&&l.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return l}function u(o,r,l){var n=l?"https://":"http://",s=r?"-internal.aliyuncs.com":".aliyuncs.com",e="vpc100-oss-cn-";return o.substr(0,e.length)===e&&(s=".aliyuncs.com"),g.parse(n+o+s)}F.exports=function(o){if(!o||!o.accessKeyId||!o.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");o.bucket&&f(o.bucket);var r=(0,h.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},o);if(r.accessKeyId=r.accessKeyId.trim(),r.accessKeySecret=r.accessKeySecret.trim(),r.timeout&&(r.timeout=m(r.timeout)),r.endpoint)r.endpoint=d(r.endpoint,r.secure);else if(r.region)r.endpoint=u(r.region,r.internal,r.secure);else throw new Error("require options.endpoint or options.region");return r.inited=!0,r}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(S,F,v){"use strict";var w=S("merge-descriptors"),h=v;w(h,S("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=I(w);function I(r){return r&&r.__esModule?r:{default:r}}var m=S("../utils/checkBucketName"),g=m.checkBucketName,a=S("querystring"),f=S("js-base64"),d=f.Base64.encode,u=v;u.processObjectSave=function(l,n,s,e){var i,_,b,y;return h.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return o(l,"sourceObject"),o(n,"targetObject"),o(s,"process"),n=this._objectName(n),e&&g(e),i=this._objectRequestParams("POST",l,{subres:"x-oss-process"}),_=e?",b_"+d(e):"",n=d(n),b={"x-oss-process":s+"|sys/saveas,o_"+n+_},i.content=a.stringify(b),c.next=12,h.default.awrap(this.request(i));case 12:return y=c.sent,c.abrupt("return",{res:y.res,status:y.res.status});case 14:case"end":return c.stop()}},null,this)};function o(r,l){if(!r)throw new Error(l+" is required");if(typeof r!="string")throw new Error(l+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=I(w);function I(u){return u&&u.__esModule?u:{default:u}}var m=S("copy-to"),g=S("./callback"),a=S("./utils/deepCopy"),f=a.deepCopy,d=v;d.listUploads=function(o,r){var l,n,s,e;return h.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:return r=r||{},l={},m(r).to(l),l.subres="uploads",n=this._objectRequestParams("GET","",l),n.query=o,n.xmlResponse=!0,n.successStatuses=[200],_.next=10,h.default.awrap(this.request(n));case 10:return s=_.sent,e=s.data.Upload||[],Array.isArray(e)||(e=[e]),e=e.map(function(b){return{name:b.Key,uploadId:b.UploadId,initiated:b.Initiated}}),_.abrupt("return",{res:s.res,uploads:e,bucket:s.data.Bucket,nextKeyMarker:s.data.NextKeyMarker,nextUploadIdMarker:s.data.NextUploadIdMarker,isTruncated:s.data.IsTruncated==="true"});case 15:case"end":return _.stop()}},null,this)},d.listParts=function(o,r,l,n){var s,e,i;return h.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return n=n||{},s={},m(n).to(s),s.subres={uploadId:r},e=this._objectRequestParams("GET",o,s),e.query=l,e.xmlResponse=!0,e.successStatuses=[200],b.next=10,h.default.awrap(this.request(e));case 10:return i=b.sent,b.abrupt("return",{res:i.res,uploadId:i.data.UploadId,bucket:i.data.Bucket,name:i.data.Key,partNumberMarker:i.data.PartNumberMarker,nextPartNumberMarker:i.data.NextPartNumberMarker,maxParts:i.data.MaxParts,isTruncated:i.data.IsTruncated,parts:i.data.Part||[]});case 12:case"end":return b.stop()}},null,this)},d.abortMultipartUpload=function(o,r,l){var n,s,e;return h.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:return this._stop(),l=l||{},n={},m(l).to(n),n.subres={uploadId:r},s=this._objectRequestParams("DELETE",o,n),s.successStatuses=[204],_.next=9,h.default.awrap(this.request(s));case 9:return e=_.sent,_.abrupt("return",{res:e.res});case 11:case"end":return _.stop()}},null,this)},d.initMultipartUpload=function(o,r){var l,n,s;return h.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return r=r||{},l={},m(r).to(l),l.headers=l.headers||{},this._convertMetaToHeaders(r.meta,l.headers),l.subres="uploads",n=this._objectRequestParams("POST",o,l),n.mime=r.mime,n.xmlResponse=!0,n.successStatuses=[200],i.next=12,h.default.awrap(this.request(n));case 12:return s=i.sent,i.abrupt("return",{res:s.res,bucket:s.data.Bucket,name:s.data.Key,uploadId:s.data.UploadId});case 14:case"end":return i.stop()}},null,this)},d.uploadPart=function(o,r,l,n,s,e,i){var _;return h.default.async(function(y){for(;;)switch(y.prev=y.next){case 0:return _={stream:this._createStream(n,s,e),size:e-s},y.next=3,h.default.awrap(this._uploadPart(o,r,l,_,i));case 3:return y.abrupt("return",y.sent);case 4:case"end":return y.stop()}},null,this)},d.completeMultipartUpload=function(o,r,l,n){var s,e,i,_,b,y,E,c;return h.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:for(s=l.concat().sort(function(M,k){return M.number-k.number}).filter(function(M,k,T){return!k||M.number!==T[k-1].number}),e=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,i=0;i<s.length;i++)_=s[i],e+=`<Part>
`,e+="<PartNumber>"+_.number+`</PartNumber>
`,e+="<ETag>"+_.etag+`</ETag>
`,e+=`</Part>
`;return e+="</CompleteMultipartUpload>",n=n||{},b={},b=f(n),b.headers&&delete b.headers["x-oss-server-side-encryption"],b.subres={uploadId:r},y=this._objectRequestParams("POST",o,b),g.encodeCallback(y,b),y.mime="xml",y.content=e,y.headers&&y.headers["x-oss-callback"]||(y.xmlResponse=!0),y.successStatuses=[200],x.next=17,h.default.awrap(this.request(y));case 17:return E=x.sent,c={res:E.res,bucket:y.bucket,name:o,etag:E.res.headers.etag},y.headers&&y.headers["x-oss-callback"]&&(c.data=JSON.parse(E.data.toString())),x.abrupt("return",c);case 21:case"end":return x.stop()}},null,this)},d._uploadPart=function(o,r,l,n,s){var e,i,_;return h.default.async(function(y){for(;;)switch(y.prev=y.next){case 0:return s=s||{},e={},m(s).to(e),e.headers={"Content-Length":n.size},e.subres={partNumber:l,uploadId:r},i=this._objectRequestParams("PUT",o,e),i.mime=e.mime,i.stream=n.stream,i.successStatuses=[200],y.next=11,h.default.awrap(this.request(i));case 11:if(_=y.sent,_.res.headers.etag){y.next=14;break}throw new Error(`Please set the etag of expose-headers in OSS
https://help.aliyun.com/document_detail/32069.html`);case 14:return n.stream=null,i.stream=null,y.abrupt("return",{name:o,etag:_.res.headers.etag,res:_.res});case 17:case"end":return y.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=f(w),I=S("babel-runtime/core-js/object/keys"),m=f(I),g=S("babel-runtime/helpers/typeof"),a=f(g);function f(r){return r&&r.__esModule?r:{default:r}}var d=S("../utils/checkBucketName"),u=d.checkBucketName,o=v;o.copy=function(l,n,s,e){var i,_,b;return h.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:return(typeof s=="undefined"?"undefined":(0,a.default)(s))==="object"&&(e=s),e=e||{},e.headers=e.headers||{},(0,m.default)(e.headers).forEach(function(c){e.headers["x-oss-copy-source-"+c.toLowerCase()]=e.headers[c]}),e.meta&&(e.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(e.meta,e.headers),n=this._getSourceName(n,s),e.versionId&&(n=n+"?versionId="+e.versionId),e.headers["x-oss-copy-source"]=n,i=this._objectRequestParams("PUT",l,e),i.xmlResponse=!0,i.successStatuses=[200,304],E.next=14,h.default.awrap(this.request(i));case 14:return _=E.sent,b=_.data,b&&(b={etag:b.ETag,lastModified:b.LastModified}),E.abrupt("return",{data:b,res:_.res});case 18:case"end":return E.stop()}},null,this)},o._getSourceName=function(l,n){return typeof n=="string"?l=this._objectName(l):l[0]!=="/"?n=this.options.bucket:(n=l.replace(/\/(.+?)(\/.*)/,"$1"),l=l.replace(/(\/.+?\/)(.*)/,"$2")),u(n),l=encodeURI(l),l="/"+n+"/"+l,l}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=g(w),I=S("babel-runtime/core-js/object/assign"),m=g(I);function g(f){return f&&f.__esModule?f:{default:f}}var a=v;a.delete=function(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,r;return h.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return u.subres=(0,m.default)({},u.subres),u.versionId&&(u.subres.versionId=u.versionId),o=this._objectRequestParams("DELETE",d,u),o.successStatuses=[204],n.next=6,h.default.awrap(this.request(o));case 6:return r=n.sent,n.abrupt("return",{res:r.res});case 8:case"end":return n.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=g(w),I=S("babel-runtime/core-js/object/assign"),m=g(I);function g(o){return o&&o.__esModule?o:{default:o}}var a=S("utility"),f=S("../utils/obj2xml"),d=f.obj2xml,u=v;u.deleteMulti=function(r){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,s,e,i,_,b,y,E,c,C,x,M;return h.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:if(n=[],!(!r||!r.length)){T.next=3;break}throw new Error("names is required");case 3:for(s=0;s<r.length;s++)e={},typeof r[s]=="string"?e.Key=a.escape(this._objectName(r[s])):(i=r[s],_=i.key,b=i.versionId,e.Key=a.escape(this._objectName(_)),e.VersionId=b),n.push(e);return y={Delete:{Quiet:!!l.quiet,Object:n}},E=d(y,{headers:!0}),l.subres=(0,m.default)({delete:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),c=this._objectRequestParams("POST","",l),c.mime="xml",c.content=E,c.xmlResponse=!0,c.successStatuses=[200],T.next=15,h.default.awrap(this.request(c));case 15:return C=T.sent,x=C.data,M=x&&x.Deleted||null,M&&(Array.isArray(M)||(M=[M])),T.abrupt("return",{res:C.res,deleted:M||[]});case 20:case"end":return T.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=g(w),I=S("babel-runtime/core-js/object/assign"),m=g(I);function g(f){return f&&f.__esModule?f:{default:f}}var a=v;a.deleteObjectTagging=function(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,r;return h.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return u.subres=(0,m.default)({tagging:""},u.subres),u.versionId&&(u.subres.versionId=u.versionId),d=this._objectName(d),o=this._objectRequestParams("DELETE",d,u),o.successStatuses=[204],n.next=7,h.default.awrap(this.request(o));case 7:return r=n.sent,n.abrupt("return",{status:r.status,res:r.res});case 9:case"end":return n.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=g(w),I=S("babel-runtime/core-js/object/assign"),m=g(I);function g(u){return u&&u.__esModule?u:{default:u}}var a=S("fs"),f=S("is-type-of"),d=v;d.get=function(o,r){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,s,e,i;return h.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return n=null,s=!1,f.writableStream(r)?n=r:f.string(r)?(n=a.createWriteStream(r),s=!0):l=r,l=l||{},l.subres=(0,m.default)({},l.subres),l.versionId&&(l.subres.versionId=l.versionId),l.process&&(l.subres["x-oss-process"]=l.process),e=void 0,b.prev=8,i=this._objectRequestParams("GET",o,l),i.writeStream=n,i.successStatuses=[200,206,304],b.next=14,h.default.awrap(this.request(i));case 14:e=b.sent,s&&n.destroy(),b.next=25;break;case 18:if(b.prev=18,b.t0=b.catch(8),!s){b.next=24;break}return n.destroy(),b.next=24,h.default.awrap(this._deleteFileSafe(r));case 24:throw b.t0;case 25:return b.abrupt("return",{res:e.res,content:e.data});case 26:case"end":return b.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=g(w),I=S("babel-runtime/core-js/object/assign"),m=g(I);function g(f){return f&&f.__esModule?f:{default:f}}var a=v;a.getACL=function(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,r;return h.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return u.subres=(0,m.default)({acl:""},u.subres),u.versionId&&(u.subres.versionId=u.versionId),d=this._objectName(d),o=this._objectRequestParams("GET",d,u),o.successStatuses=[200],o.xmlResponse=!0,n.next=8,h.default.awrap(this.request(o));case 8:return r=n.sent,n.abrupt("return",{acl:r.data.AccessControlList.Grant,owner:{id:r.data.Owner.ID,displayName:r.data.Owner.DisplayName},res:r.res});case 10:case"end":return n.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/keys"),h=f(w),I=S("babel-runtime/regenerator"),m=f(I),g=S("babel-runtime/core-js/object/assign"),a=f(g);function f(i){return i&&i.__esModule?i:{default:i}}var d=v,u=S("../utils/isObject"),o=u.isObject,r=S("../utils/isArray"),l=r.isArray;d.getBucketVersions=n,d.listObjectVersions=n;function n(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b,y,E,c,C,x;return m.default.async(function(k){for(;;)switch(k.prev=k.next){case 0:if(!(i.versionIdMarker&&i.keyMarker===void 0)){k.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return _.subres=(0,a.default)({versions:""},_.subres),_.versionId&&(_.subres.versionId=_.versionId),b=this._objectRequestParams("GET","",_),b.xmlResponse=!0,b.successStatuses=[200],b.query=e(i),k.next=10,m.default.awrap(this.request(b));case 10:return y=k.sent,E=y.data.Version||[],c=y.data.DeleteMarker||[],C=this,E&&(Array.isArray(E)||(E=[E]),E=E.map(function(T){return{name:T.Key,url:C._objectUrl(T.Key),lastModified:T.LastModified,isLatest:T.IsLatest==="true",versionId:T.VersionId,etag:T.ETag,type:T.Type,size:Number(T.Size),storageClass:T.StorageClass,owner:{id:T.Owner.ID,displayName:T.Owner.DisplayName}}})),c&&(l(c)||(c=[c]),c=c.map(function(T){return{name:T.Key,lastModified:T.LastModified,versionId:T.VersionId,owner:{id:T.Owner.ID,displayName:T.Owner.DisplayName}}})),x=y.data.CommonPrefixes||null,x&&(l(x)||(x=[x]),x=x.map(function(T){return T.Prefix})),k.abrupt("return",{res:y.res,objects:E,deleteMarker:c,prefixes:x,nextMarker:y.data.NextMarker||null,NextVersionIdMarker:y.data.NextVersionIdMarker||null,isTruncated:y.data.IsTruncated==="true"});case 19:case"end":return k.stop()}},null,this)}function s(i){return i.replace(/([A-Z])/g,"-$1").toLowerCase()}function e(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_={};return o(i)&&(0,h.default)(i).forEach(function(b){_[s(b)]=i[b]}),_}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=g(w),I=S("babel-runtime/core-js/object/assign"),m=g(I);function g(f){return f&&f.__esModule?f:{default:f}}var a=v;a.getObjectMeta=function(d,u){var o,r;return h.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return u=u||{},d=this._objectName(d),u.subres=(0,m.default)({objectMeta:""},u.subres),u.versionId&&(u.subres.versionId=u.versionId),o=this._objectRequestParams("HEAD",d,u),o.successStatuses=[200],n.next=8,h.default.awrap(this.request(o));case 8:return r=n.sent,n.abrupt("return",{status:r.status,res:r.res});case 10:case"end":return n.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=g(w),I=S("babel-runtime/core-js/object/assign"),m=g(I);function g(u){return u&&u.__esModule?u:{default:u}}var a=v,f=S("../utils/isObject"),d=f.isObject;a.getObjectTagging=function(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,n,s,e,i;return h.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return r.subres=(0,m.default)({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),o=this._objectName(o),l=this._objectRequestParams("GET",o,r),l.successStatuses=[200],b.next=7,h.default.awrap(this.request(l));case 7:return n=b.sent,b.next=10,h.default.awrap(this.parseXML(n.data));case 10:return s=b.sent,e=s.TagSet.Tag,e=e&&d(e)?[e]:e||[],i={},e.forEach(function(y){i[y.Key]=y.Value}),b.abrupt("return",{status:n.status,res:n.res,tag:i});case 16:case"end":return b.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=g(w),I=S("babel-runtime/core-js/object/assign"),m=g(I);function g(f){return f&&f.__esModule?f:{default:f}}var a=v;a.getSymlink=function(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,r,l;return h.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return u.subres=(0,m.default)({symlink:""},u.subres),u.versionId&&(u.subres.versionId=u.versionId),d=this._objectName(d),o=this._objectRequestParams("GET",d,u),o.successStatuses=[200],s.next=7,h.default.awrap(this.request(o));case 7:return r=s.sent,l=r.res.headers["x-oss-symlink-target"],s.abrupt("return",{targetName:decodeURIComponent(l),res:r.res});case 10:case"end":return s.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=f(w),I=S("babel-runtime/core-js/object/keys"),m=f(I),g=S("babel-runtime/core-js/object/assign"),a=f(g);function f(u){return u&&u.__esModule?u:{default:u}}var d=v;d.head=function(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,n,s;return h.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return r.subres=(0,a.default)({},r.subres),r.versionId&&(r.subres.versionId=r.versionId),l=this._objectRequestParams("HEAD",o,r),l.successStatuses=[200,304],i.next=6,h.default.awrap(this.request(l));case 6:return n=i.sent,s={meta:null,res:n.res,status:n.status},n.status===200&&(0,m.default)(n.headers).forEach(function(_){_.indexOf("x-oss-meta-")===0&&(s.meta||(s.meta={}),s.meta[_.substring(11)]=n.headers[_])}),i.abrupt("return",s);case 10:case"end":return i.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=g(w),I=S("babel-runtime/core-js/object/assign"),m=g(I);function g(f){return f&&f.__esModule?f:{default:f}}var a=v;a.putACL=function(d,u,o){var r,l;return h.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return o=o||{},o.subres=(0,m.default)({acl:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),o.headers=o.headers||{},o.headers["x-oss-object-acl"]=u,d=this._objectName(d),r=this._objectRequestParams("PUT",d,o),r.successStatuses=[200],s.next=10,h.default.awrap(this.request(r));case 10:return l=s.sent,s.abrupt("return",{res:l.res});case 12:case"end":return s.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=f(w),I=S("babel-runtime/core-js/object/keys"),m=f(I),g=S("babel-runtime/core-js/object/assign"),a=f(g);function f(n){return n&&n.__esModule?n:{default:n}}var d=S("../utils/obj2xml"),u=d.obj2xml,o=S("../utils/checkObjectTag"),r=o.checkObjectTag,l=v;l.putObjectTagging=function(s,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_,b,y;return h.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return r(e),i.subres=(0,a.default)({tagging:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),s=this._objectName(s),_=this._objectRequestParams("PUT",s,i),_.successStatuses=[200],e=(0,m.default)(e).map(function(C){return{Key:C,Value:e[C]}}),b={Tagging:{TagSet:{Tag:e}}},_.mime="xml",_.content=u(b),c.next=12,h.default.awrap(this.request(_));case 12:return y=c.sent,c.abrupt("return",{res:y.res,status:y.status});case 14:case"end":return c.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=g(w),I=S("babel-runtime/core-js/object/assign"),m=g(I);function g(f){return f&&f.__esModule?f:{default:f}}var a=v;a.putSymlink=function(d,u,o){var r,l;return h.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return o=o||{},o.headers=o.headers||{},u=this._escape(this._objectName(u)),this._convertMetaToHeaders(o.meta,o.headers),o.headers["x-oss-symlink-target"]=u,o.subres=(0,m.default)({symlink:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),o.storageClass&&(o.headers["x-oss-storage-class"]=o.storageClass),d=this._objectName(d),r=this._objectRequestParams("PUT",d,o),r.successStatuses=[200],s.next=13,h.default.awrap(this.request(r));case 13:return l=s.sent,s.abrupt("return",{res:l.res});case 15:case"end":return s.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(S,F,v){"use strict";var w=S("babel-runtime/regenerator"),h=g(w),I=S("babel-runtime/core-js/promise"),m=g(I);function g(f){return f&&f.__esModule?f:{default:f}}var a=v;a._parallelNode=function(d,u,o,r){var l,n,s,e,i,_,b,y;return h.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:l=this,n=[],s=[],e=d.length/u,i=d.length%u,_=i===0?e:(d.length-i)/u+1,b=1,y=0;case 8:if(!(y<d.length)){c.next=26;break}if(!l.isCancel()){c.next=11;break}return c.abrupt("break",26);case 11:if(r?s.push(o(l,d[y],r)):s.push(o(l,d[y])),!(s.length===u||b===_&&y===d.length-1)){c.next=23;break}return c.prev=13,b+=1,c.next=17,h.default.awrap(m.default.all(s));case 17:c.next=22;break;case 19:c.prev=19,c.t0=c.catch(13),n.push(c.t0);case 22:s=[];case 23:y++,c.next=8;break;case 26:return c.abrupt("return",n);case 27:case"end":return c.stop()}},null,this,[[13,19]])},a._parallel=function(d,u,o){var r=this;return new m.default(function(l){var n=[];if(u<=0||!d){l(n);return}function s(x){return function(){if(x===null)throw new Error("Callback was already called.");var M=x;x=null;for(var k=arguments.length,T=Array(k),R=0;R<k;R++)T[R]=arguments[R];M.apply(this,T)}}function e(x){var M=-1,k=x.length;return function(){return++M<k&&!r.isCancel()?{value:x[M],key:M}:null}}var i=e(d),_=!1,b=0,y=!1;function E(x,M){b-=1,x?(_=!0,n.push(x),l(n)):M==={}||_&&b<=0?(_=!0,l(n)):y||(r.isCancel()?l(n):C())}function c(x,M){o(x).then(function(k){M(null,k)}).catch(function(k){M(k)})}function C(){for(y=!0;b<u&&!_&&!r.isCancel();){var x=i();if(x===null||n.length>0){_=!0,b<=0&&l(n);return}b+=1,c(x.value,s(E))}y=!1}C()})},a.cancel=function(d){this.options.cancelFlag=!0,d&&this.abortMultipartUpload(d.name,d.uploadId,d.options)},a.isCancel=function(){return this.options.cancelFlag},a.resetCancelFlag=function(){this.options.cancelFlag=!1},a._stop=function(){this.options.cancelFlag=!0},a._makeCancelEvent=function(){var d={status:0,name:"cancel"};return d}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(S,F,v){(function(w){"use strict";var h=S("babel-runtime/core-js/json/stringify"),I=a(h),m=S("babel-runtime/core-js/object/keys"),g=a(m);function a(u){return u&&u.__esModule?u:{default:u}}var f=S("./../../shims/crypto/crypto.js"),d=S("is-type-of");v.buildCanonicalizedResource=function(o,r){var l=""+o,n="?";if(d.string(r)&&r.trim()!=="")l+=n+r;else if(d.array(r))r.sort(),l+=n+r.join("&");else if(r){var s=function(_,b){return _[0]>b[0]?1:_[0]<b[0]?-1:0},e=function(_){l+=n+_,r[_]&&(l+="="+r[_]),n="&"};(0,g.default)(r).sort(s).forEach(e)}return l},v.buildCanonicalString=function(o,r,l,n){l=l||{};var s=l.headers||{},e="x-oss-",i=[],_={},b=[o.toUpperCase(),s["Content-Md5"]||"",s["Content-Type"]||s["Content-Type".toLowerCase()],n||s["x-oss-date"]];return(0,g.default)(s).forEach(function(y){var E=y.toLowerCase();E.indexOf(e)===0&&(_[E]=String(s[y]).trim())}),(0,g.default)(_).sort().forEach(function(y){i.push(y+":"+_[y])}),b=b.concat(i),b.push(this.buildCanonicalizedResource(r,l.parameters)),b.join(`
`)},v.computeSignature=function(o,r){var l=f.createHmac("sha1",o);return l.update(w.from(r,"utf8")).digest("base64")},v.authorization=function(o,r,l){return"OSS "+o+":"+this.computeSignature(r,l)},v._signatureForURL=function(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments[2],n=arguments[3],s={},e=r.subResource,i=e===void 0?{}:e;if(r.process){var _="x-oss-process";i[_]=r.process}if(r.trafficLimit){var b="x-oss-traffic-limit";i[b]=r.trafficLimit}if(r.response&&(0,g.default)(r.response).forEach(function(C){var x="response-"+C.toLowerCase();i[x]=r.response[C]}),(0,g.default)(r).forEach(function(C){var x=C.toLowerCase(),M=r[C];x.indexOf("x-oss-")===0?s[x]=M:(x.indexOf("content-md5")===0||x.indexOf("content-type")===0)&&(s[C]=M)}),Object.prototype.hasOwnProperty.call(r,"security-token")&&(i["security-token"]=r["security-token"]),Object.prototype.hasOwnProperty.call(r,"callback")){var y={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body};if(r.callback.host&&(y.callbackHost=r.callback.host),r.callback.contentType&&(y.callbackBodyType=r.callback.contentType),i.callback=w.from((0,I.default)(y)).toString("base64"),r.callback.customValue){var E={};(0,g.default)(r.callback.customValue).forEach(function(C){E["x:"+C]=r.callback.customValue[C]}),i["callback-var"]=w.from((0,I.default)(E)).toString("base64")}}var c=this.buildCanonicalString(r.method,l,{headers:s,parameters:i},n.toString());return{Signature:this.computeSignature(o,c),subResource:i}}}).call(this,S("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(S,F,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.checkBucketName=void 0,v.checkBucketName=function(w,h){var I=h?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!I.test(w))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/entries"),h=I(w);function I(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(v,"__esModule",{value:!0}),v.checkObjectTag=void 0;var m=S("./checkValid"),g=m.checkValid,a=S("./isObject"),f=a.isObject,d=[{validator:function(l){if(typeof l!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],u={key:[].concat(d,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(d,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function o(r){if(!f(r))throw new Error("tag must be Object");var l=(0,h.default)(r);if(l.length>10)throw new Error("maximum of 10 tags for a object");var n=["key","value"];l.forEach(function(s){s.forEach(function(e,i){g(e,u[n[i]])})})}v.checkObjectTag=o},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(S,F,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.checkValid=void 0;function w(h,I){I.forEach(function(m){if(m.validator)m.validator(h);else if(m.pattern&&!m.pattern.test(h))throw new Error(m.msg)})}v.checkValid=w},{}],38:[function(S,F,v){(function(w){"use strict";var h=S("babel-runtime/core-js/object/assign"),I=m(h);function m(s){return s&&s.__esModule?s:{default:s}}Object.defineProperty(v,"__esModule",{value:!0}),v.createRequest=void 0;var g=S("./../../../shims/crypto/crypto.js"),a=S("debug")("ali-oss"),f=S("mime"),d=S("dateformat"),u=S("copy-to"),o=S("path");function r(s,e){return s[e]||s[e.toLowerCase()]}function l(s,e){delete s[e],delete s[e.toLowerCase()]}function n(s){var e=new Date;this.options.amendTimeSkewed&&(e=+new Date+this.options.amendTimeSkewed);var i={"x-oss-date":d(e,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(i["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,I.default)(i,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(i["x-oss-security-token"]=this.options.stsToken),u(s.headers).to(i),r(i,"Content-Type")||(s.mime&&s.mime.indexOf("/")>0?i["Content-Type"]=s.mime:i["Content-Type"]=f.getType(s.mime||o.extname(s.object||""))),r(i,"Content-Type")||l(i,"Content-Type"),s.content&&(i["Content-Md5"]=g.createHash("md5").update(w.from(s.content,"utf8")).digest("base64"),i["Content-Length"]||(i["Content-Length"]=s.content.length));var _=this._getResource(s);i.authorization=this.authorization(s.method,_,s.subres,i);var b=this._getReqUrl(s);a("request %s %s, with headers %j, !!stream: %s",s.method,b,i,!!s.stream);var y=s.timeout||this.options.timeout,E={method:s.method,content:s.content,stream:s.stream,headers:i,timeout:y,writeStream:s.writeStream,customResponse:s.customResponse,ctx:s.ctx||this.ctx};return this.agent&&(E.agent=this.agent),this.httpsAgent&&(E.httpsAgent=this.httpsAgent),{url:b,params:E}}v.createRequest=n}).call(this,S("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/keys"),h=g(w),I=S("babel-runtime/helpers/typeof"),m=g(I);function g(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(v,"__esModule",{value:!0}),v.deepCopy=void 0,v.deepCopy=function(a){if(a===null||(typeof a=="undefined"?"undefined":(0,m.default)(a))!=="object")return a;var f=Array.isArray(a)?[]:{};return(0,h.default)(a).forEach(function(d){f[d]=v.deepCopy(a[d])}),f}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/keys"),h=g(w),I=S("babel-runtime/helpers/typeof"),m=g(I);function g(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(v,"__esModule",{value:!0}),v.formatObjKey=void 0;function a(d,u){if(d===null||(typeof d=="undefined"?"undefined":(0,m.default)(d))!=="object")return d;var o=void 0;if(Array.isArray(d)){o=[];for(var r=0;r<d.length;r++)o.push(a(d[r],u))}else o={},(0,h.default)(d).forEach(function(l){o[f(l,u)]=a(d[l],u)});return o}v.formatObjKey=a;function f(d,u){return u==="firstUpperCase"?d=d.replace(/^./,function(o){return o.toUpperCase()}):u==="firstLowerCase"&&(d=d.replace(/^./,function(o){return o.toLowerCase()})),d}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(S,F,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.getStrBytesCount=void 0;function w(h){for(var I=0,m=0;m<h.length;m++){var g=h.charAt(m);/^[\u00-\uff]$/.test(g)?I+=1:I+=2}return I}v.getStrBytesCount=w},{}],42:[function(S,F,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.isArray=void 0,v.isArray=function(w){return Object.prototype.toString.call(w)==="[object Array]"}},{}],43:[function(S,F,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.isBlob=void 0;function w(h){return typeof Blob!="undefined"&&h instanceof Blob}v.isBlob=w},{}],44:[function(S,F,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.isFile=void 0,v.isFile=function(w){return typeof File!="undefined"&&w instanceof File}},{}],45:[function(S,F,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.isIP=void 0,v.isIP=function(w){var h=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,I=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return h.test(w)||I.test(w)}},{}],46:[function(S,F,v){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.isObject=void 0,v.isObject=function(w){return Object.prototype.toString.call(w)==="[object Object]"}},{}],47:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/keys"),h=I(w);function I(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(v,"__esModule",{value:!0}),v.obj2xml=void 0;var m=S("./formatObjKey");function g(f){return Object.prototype.toString.call(f).replace(/(.*? |])/g,"").toLowerCase()}function a(f,d){var u="";return d&&d.headers&&(u=`<?xml version="1.0" encoding="UTF-8"?>
`),d&&d.firstUpperCase&&(f=m.formatObjKey(f,"firstUpperCase")),g(f)==="object"?(0,h.default)(f).forEach(function(o){g(f[o])==="string"||g(f[o])==="number"?u+="<"+o+">"+f[o]+"</"+o+">":g(f[o])==="object"?u+="<"+o+">"+a(f[o])+"</"+o+">":g(f[o])==="array"?u+=f[o].map(function(r){return"<"+o+">"+a(r)+"</"+o+">"}).join(""):u+="<"+o+">"+f[o].toString()+"</"+o+">"}):u+=f.toString(),u}v.obj2xml=a},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(S,F,v){F.exports=w,F.exports.HttpsAgent=w;function w(){}},{}],49:[function(S,F,v){F.exports=S("./register")().Promise},{"./register":51}],50:[function(S,F,v){"use strict";var w="@@any-promise/REGISTRATION",h=null;F.exports=function(I,m){return function(a,f){a=a||null,f=f||{};var d=f.global!==!1;if(h===null&&d&&(h=I[w]||null),h!==null&&a!==null&&h.implementation!==a)throw new Error('any-promise already defined as "'+h.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return h===null&&(a!==null&&typeof f.Promise!="undefined"?h={Promise:f.Promise,implementation:a}:h=m(a),d&&(I[w]=h)),h}}},{}],51:[function(S,F,v){"use strict";F.exports=S("./loader")(window,w);function w(){if(typeof window.Promise=="undefined")throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}},{"./loader":50}],52:[function(S,F,v){F.exports={default:S("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(S,F,v){F.exports={default:S("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(S,F,v){F.exports={default:S("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(S,F,v){F.exports={default:S("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(S,F,v){F.exports={default:S("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(S,F,v){F.exports={default:S("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(S,F,v){F.exports={default:S("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(S,F,v){F.exports={default:S("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(S,F,v){F.exports={default:S("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(S,F,v){F.exports={default:S("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(S,F,v){F.exports={default:S("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(S,F,v){F.exports={default:S("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(S,F,v){F.exports={default:S("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(S,F,v){F.exports={default:S("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(S,F,v){F.exports={default:S("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(S,F,v){"use strict";v.__esModule=!0;var w=S("../core-js/symbol/iterator"),h=a(w),I=S("../core-js/symbol"),m=a(I),g=typeof m.default=="function"&&typeof h.default=="symbol"?function(f){return typeof f}:function(f){return f&&typeof m.default=="function"&&f.constructor===m.default&&f!==m.default.prototype?"symbol":typeof f};function a(f){return f&&f.__esModule?f:{default:f}}v.default=typeof m.default=="function"&&g(h.default)==="symbol"?function(f){return typeof f=="undefined"?"undefined":g(f)}:function(f){return f&&typeof m.default=="function"&&f.constructor===m.default&&f!==m.default.prototype?"symbol":typeof f=="undefined"?"undefined":g(f)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(S,F,v){F.exports=S("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(S,F,v){"use strict";v.byteLength=d,v.toByteArray=o,v.fromByteArray=n;for(var w=[],h=[],I=typeof Uint8Array!="undefined"?Uint8Array:Array,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,a=m.length;g<a;++g)w[g]=m[g],h[m.charCodeAt(g)]=g;h["-".charCodeAt(0)]=62,h["_".charCodeAt(0)]=63;function f(s){var e=s.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=s.indexOf("=");i===-1&&(i=e);var _=i===e?0:4-i%4;return[i,_]}function d(s){var e=f(s),i=e[0],_=e[1];return(i+_)*3/4-_}function u(s,e,i){return(e+i)*3/4-i}function o(s){var e,i=f(s),_=i[0],b=i[1],y=new I(u(s,_,b)),E=0,c=b>0?_-4:_,C;for(C=0;C<c;C+=4)e=h[s.charCodeAt(C)]<<18|h[s.charCodeAt(C+1)]<<12|h[s.charCodeAt(C+2)]<<6|h[s.charCodeAt(C+3)],y[E++]=e>>16&255,y[E++]=e>>8&255,y[E++]=e&255;return b===2&&(e=h[s.charCodeAt(C)]<<2|h[s.charCodeAt(C+1)]>>4,y[E++]=e&255),b===1&&(e=h[s.charCodeAt(C)]<<10|h[s.charCodeAt(C+1)]<<4|h[s.charCodeAt(C+2)]>>2,y[E++]=e>>8&255,y[E++]=e&255),y}function r(s){return w[s>>18&63]+w[s>>12&63]+w[s>>6&63]+w[s&63]}function l(s,e,i){for(var _,b=[],y=e;y<i;y+=3)_=(s[y]<<16&16711680)+(s[y+1]<<8&65280)+(s[y+2]&255),b.push(r(_));return b.join("")}function n(s){for(var e,i=s.length,_=i%3,b=[],y=16383,E=0,c=i-_;E<c;E+=y)b.push(l(s,E,E+y>c?c:E+y));return _===1?(e=s[i-1],b.push(w[e>>2]+w[e<<4&63]+"==")):_===2&&(e=(s[i-2]<<8)+s[i-1],b.push(w[e>>10]+w[e>>4&63]+w[e<<2&63]+"=")),b.join("")}},{}],70:[function(S,F,v){/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2015
*/!function(w,h,I){typeof F!="undefined"&&F.exports?F.exports=I():typeof define=="function"&&define.amd?define(h,I):w[h]=I()}(this,"bowser",function(){var w=!0;function h(u){function o(K){var L=u.match(K);return L&&L.length>1&&L[1]||""}function r(K){var L=u.match(K);return L&&L.length>1&&L[2]||""}var l=o(/(ipod|iphone|ipad)/i).toLowerCase(),n=/like android/i.test(u),s=!n&&/android/i.test(u),e=/nexus\s*[0-6]\s*/i.test(u),i=!e&&/nexus\s*[0-9]+/i.test(u),_=/CrOS/.test(u),b=/silk/i.test(u),y=/sailfish/i.test(u),E=/tizen/i.test(u),c=/(web|hpw)(o|0)s/i.test(u),C=/windows phone/i.test(u),x=/SamsungBrowser/i.test(u),M=!C&&/windows/i.test(u),k=!l&&!b&&/macintosh/i.test(u),T=!s&&!y&&!E&&!c&&/linux/i.test(u),R=r(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),P=o(/version\/(\d+(\.\d+)?)/i),B=/tablet/i.test(u)&&!/tablet pc/i.test(u),W=!B&&/[^-]mobi/i.test(u),z=/xbox/i.test(u),H;/opera/i.test(u)?H={name:"Opera",opera:w,version:P||o(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(u)?H={name:"Opera",opera:w,version:o(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||P}:/SamsungBrowser/i.test(u)?H={name:"Samsung Internet for Android",samsungBrowser:w,version:P||o(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(u)?H={name:"NAVER Whale browser",whale:w,version:o(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(u)?H={name:"MZ Browser",mzbrowser:w,version:o(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(u)?H={name:"Opera Coast",coast:w,version:P||o(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(u)?H={name:"Focus",focus:w,version:o(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(u)?H={name:"Yandex Browser",yandexbrowser:w,version:P||o(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(u)?H={name:"UC Browser",ucbrowser:w,version:o(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(u)?H={name:"Maxthon",maxthon:w,version:o(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(u)?H={name:"Epiphany",epiphany:w,version:o(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(u)?H={name:"Puffin",puffin:w,version:o(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(u)?H={name:"Sleipnir",sleipnir:w,version:o(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(u)?H={name:"K-Meleon",kMeleon:w,version:o(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:C?(H={name:"Windows Phone",osname:"Windows Phone",windowsphone:w},R?(H.msedge=w,H.version=R):(H.msie=w,H.version=o(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(u)?H={name:"Internet Explorer",msie:w,version:o(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:_?H={name:"Chrome",osname:"Chrome OS",chromeos:w,chromeBook:w,chrome:w,version:o(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(u)?H={name:"Microsoft Edge",msedge:w,version:R}:/vivaldi/i.test(u)?H={name:"Vivaldi",vivaldi:w,version:o(/vivaldi\/(\d+(\.\d+)?)/i)||P}:y?H={name:"Sailfish",osname:"Sailfish OS",sailfish:w,version:o(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(u)?H={name:"SeaMonkey",seamonkey:w,version:o(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(u)?(H={name:"Firefox",firefox:w,version:o(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(u)&&(H.firefoxos=w,H.osname="Firefox OS")):b?H={name:"Amazon Silk",silk:w,version:o(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(u)?H={name:"PhantomJS",phantom:w,version:o(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(u)?H={name:"SlimerJS",slimer:w,version:o(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(u)||/rim\stablet/i.test(u)?H={name:"BlackBerry",osname:"BlackBerry OS",blackberry:w,version:P||o(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:c?(H={name:"WebOS",osname:"WebOS",webos:w,version:P||o(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(u)&&(H.touchpad=w)):/bada/i.test(u)?H={name:"Bada",osname:"Bada",bada:w,version:o(/dolfin\/(\d+(\.\d+)?)/i)}:E?H={name:"Tizen",osname:"Tizen",tizen:w,version:o(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||P}:/qupzilla/i.test(u)?H={name:"QupZilla",qupzilla:w,version:o(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||P}:/chromium/i.test(u)?H={name:"Chromium",chromium:w,version:o(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||P}:/chrome|crios|crmo/i.test(u)?H={name:"Chrome",chrome:w,version:o(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:s?H={name:"Android",version:P}:/safari|applewebkit/i.test(u)?(H={name:"Safari",safari:w},P&&(H.version=P)):l?(H={name:l=="iphone"?"iPhone":l=="ipad"?"iPad":"iPod"},P&&(H.version=P)):/googlebot/i.test(u)?H={name:"Googlebot",googlebot:w,version:o(/googlebot\/(\d+(\.\d+))/i)||P}:H={name:o(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!H.msedge&&/(apple)?webkit/i.test(u)?(/(apple)?webkit\/537\.36/i.test(u)?(H.name=H.name||"Blink",H.blink=w):(H.name=H.name||"Webkit",H.webkit=w),!H.version&&P&&(H.version=P)):!H.opera&&/gecko\//i.test(u)&&(H.name=H.name||"Gecko",H.gecko=w,H.version=H.version||o(/gecko\/(\d+(\.\d+)?)/i)),!H.windowsphone&&(s||H.silk)?(H.android=w,H.osname="Android"):!H.windowsphone&&l?(H[l]=w,H.ios=w,H.osname="iOS"):k?(H.mac=w,H.osname="macOS"):z?(H.xbox=w,H.osname="Xbox"):M?(H.windows=w,H.osname="Windows"):T&&(H.linux=w,H.osname="Linux");function ee(K){switch(K){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var G="";H.windows?G=ee(o(/Windows ((NT|XP)( \d\d?.\d)?)/i)):H.windowsphone?G=o(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):H.mac?(G=o(/Mac OS X (\d+([_\.\s]\d+)*)/i),G=G.replace(/[_\s]/g,".")):l?(G=o(/os (\d+([_\s]\d+)*) like mac os x/i),G=G.replace(/[_\s]/g,".")):s?G=o(/android[ \/-](\d+(\.\d+)*)/i):H.webos?G=o(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):H.blackberry?G=o(/rim\stablet\sos\s(\d+(\.\d+)*)/i):H.bada?G=o(/bada\/(\d+(\.\d+)*)/i):H.tizen&&(G=o(/tizen[\/\s](\d+(\.\d+)*)/i)),G&&(H.osversion=G);var U=!H.windows&&G.split(".")[0];return B||i||l=="ipad"||s&&(U==3||U>=4&&!W)||H.silk?H.tablet=w:(W||l=="iphone"||l=="ipod"||s||e||H.blackberry||H.webos||H.bada)&&(H.mobile=w),H.msedge||H.msie&&H.version>=10||H.yandexbrowser&&H.version>=15||H.vivaldi&&H.version>=1||H.chrome&&H.version>=20||H.samsungBrowser&&H.version>=4||H.whale&&a([H.version,"1.0"])===1||H.mzbrowser&&a([H.version,"6.0"])===1||H.focus&&a([H.version,"1.0"])===1||H.firefox&&H.version>=20||H.safari&&H.version>=6||H.opera&&H.version>=10||H.ios&&H.osversion&&H.osversion.split(".")[0]>=6||H.blackberry&&H.version>=10.1||H.chromium&&H.version>=20?H.a=w:H.msie&&H.version<10||H.chrome&&H.version<20||H.firefox&&H.version<20||H.safari&&H.version<6||H.opera&&H.version<10||H.ios&&H.osversion&&H.osversion.split(".")[0]<6||H.chromium&&H.version<20?H.c=w:H.x=w,H}var I=h(typeof navigator!="undefined"&&navigator.userAgent||"");I.test=function(u){for(var o=0;o<u.length;++o){var r=u[o];if(typeof r=="string"&&r in I)return!0}return!1};function m(u){return u.split(".").length}function g(u,o){var r=[],l;if(Array.prototype.map)return Array.prototype.map.call(u,o);for(l=0;l<u.length;l++)r.push(o(u[l]));return r}function a(u){for(var o=Math.max(m(u[0]),m(u[1])),r=g(u,function(l){var n=o-m(l);return l=l+new Array(n+1).join(".0"),g(l.split("."),function(s){return new Array(20-s.length).join("0")+s}).reverse()});--o>=0;){if(r[0][o]>r[1][o])return 1;if(r[0][o]===r[1][o]){if(o===0)return 0}else return-1}}function f(u,o,r){var l=I;typeof o=="string"&&(r=o,o=void 0),o===void 0&&(o=!1),r&&(l=h(r));var n=""+l.version;for(var s in u)if(u.hasOwnProperty(s)&&l[s]){if(typeof u[s]!="string")throw new Error("Browser version in the minVersion map should be a string: "+s+": "+String(u));return a([n,u[s]])<0}return o}function d(u,o,r){return!f(u,o,r)}return I.isUnsupportedBrowser=f,I.compareVersions=a,I.check=d,I._detect=h,I.detect=h,I})},{}],71:[function(S,F,v){},{}],72:[function(S,F,v){var w=S("buffer").Buffer,h=w.isEncoding||function(d){switch(d&&d.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function I(d){if(d&&!h(d))throw new Error("Unknown encoding: "+d)}var m=v.StringDecoder=function(d){this.encoding=(d||"utf8").toLowerCase().replace(/[-_]/,""),I(d);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=a;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=f;break;default:this.write=g;return}this.charBuffer=new w(6),this.charReceived=0,this.charLength=0};m.prototype.write=function(d){for(var u="";this.charLength;){var o=d.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:d.length;if(d.copy(this.charBuffer,this.charReceived,0,o),this.charReceived+=o,this.charReceived<this.charLength)return"";d=d.slice(o,d.length),u=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var l=u.charCodeAt(u.length-1);if(l>=55296&&l<=56319){this.charLength+=this.surrogateSize,u="";continue}if(this.charReceived=this.charLength=0,d.length===0)return u;break}this.detectIncompleteChar(d);var r=d.length;this.charLength&&(d.copy(this.charBuffer,0,d.length-this.charReceived,r),r-=this.charReceived),u+=d.toString(this.encoding,0,r);var r=u.length-1,l=u.charCodeAt(r);if(l>=55296&&l<=56319){var n=this.surrogateSize;return this.charLength+=n,this.charReceived+=n,this.charBuffer.copy(this.charBuffer,n,0,n),d.copy(this.charBuffer,0,0,n),u.substring(0,r)}return u},m.prototype.detectIncompleteChar=function(d){for(var u=d.length>=3?3:d.length;u>0;u--){var o=d[d.length-u];if(u==1&&o>>5==6){this.charLength=2;break}if(u<=2&&o>>4==14){this.charLength=3;break}if(u<=3&&o>>3==30){this.charLength=4;break}}this.charReceived=u},m.prototype.end=function(d){var u="";if(d&&d.length&&(u=this.write(d)),this.charReceived){var o=this.charReceived,r=this.charBuffer,l=this.encoding;u+=r.slice(0,o).toString(l)}return u};function g(d){return d.toString(this.encoding)}function a(d){this.charReceived=d.length%2,this.charLength=this.charReceived?2:0}function f(d){this.charReceived=d.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(S,F,v){(function(w,h){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/"use strict";var I=S("base64-js"),m=S("ieee754"),g=S("isarray");v.Buffer=h,v.SlowBuffer=b,v.INSPECT_MAX_BYTES=50,h.TYPED_ARRAY_SUPPORT=w.TYPED_ARRAY_SUPPORT!==void 0?w.TYPED_ARRAY_SUPPORT:a(),v.kMaxLength=f();function a(){try{var te=new Uint8Array(1);return te.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},te.foo()===42&&typeof te.subarray=="function"&&te.subarray(1,1).byteLength===0}catch(Y){return!1}}function f(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(te,Y){if(f()<Y)throw new RangeError("Invalid typed array length");return h.TYPED_ARRAY_SUPPORT?(te=new Uint8Array(Y),te.__proto__=h.prototype):(te===null&&(te=new h(Y)),te.length=Y),te}function h(te,Y,X){if(!h.TYPED_ARRAY_SUPPORT&&!(this instanceof h))return new h(te,Y,X);if(typeof te=="number"){if(typeof Y=="string")throw new Error("If encoding is specified then the first argument must be a string");return l(this,te)}return u(this,te,Y,X)}h.poolSize=8192,h._augment=function(te){return te.__proto__=h.prototype,te};function u(te,Y,X,J){if(typeof Y=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&Y instanceof ArrayBuffer?e(te,Y,X,J):typeof Y=="string"?n(te,Y,X):i(te,Y)}h.from=function(te,Y,X){return u(null,te,Y,X)},h.TYPED_ARRAY_SUPPORT&&(h.prototype.__proto__=Uint8Array.prototype,h.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0}));function o(te){if(typeof te!="number")throw new TypeError('"size" argument must be a number');if(te<0)throw new RangeError('"size" argument must not be negative')}function r(te,Y,X,J){return o(Y),Y<=0?d(te,Y):X!==void 0?typeof J=="string"?d(te,Y).fill(X,J):d(te,Y).fill(X):d(te,Y)}h.alloc=function(te,Y,X){return r(null,te,Y,X)};function l(te,Y){if(o(Y),te=d(te,Y<0?0:_(Y)|0),!h.TYPED_ARRAY_SUPPORT)for(var X=0;X<Y;++X)te[X]=0;return te}h.allocUnsafe=function(te){return l(null,te)},h.allocUnsafeSlow=function(te){return l(null,te)};function n(te,Y,X){if((typeof X!="string"||X==="")&&(X="utf8"),!h.isEncoding(X))throw new TypeError('"encoding" must be a valid string encoding');var J=y(Y,X)|0;te=d(te,J);var ve=te.write(Y,X);return ve!==J&&(te=te.slice(0,ve)),te}function s(te,Y){var X=Y.length<0?0:_(Y.length)|0;te=d(te,X);for(var J=0;J<X;J+=1)te[J]=Y[J]&255;return te}function e(te,Y,X,J){if(Y.byteLength,X<0||Y.byteLength<X)throw new RangeError("'offset' is out of bounds");if(Y.byteLength<X+(J||0))throw new RangeError("'length' is out of bounds");return X===void 0&&J===void 0?Y=new Uint8Array(Y):J===void 0?Y=new Uint8Array(Y,X):Y=new Uint8Array(Y,X,J),h.TYPED_ARRAY_SUPPORT?(te=Y,te.__proto__=h.prototype):te=s(te,Y),te}function i(te,Y){if(h.isBuffer(Y)){var X=_(Y.length)|0;return te=d(te,X),te.length===0||Y.copy(te,0,0,X),te}if(Y){if(typeof ArrayBuffer!="undefined"&&Y.buffer instanceof ArrayBuffer||"length"in Y)return typeof Y.length!="number"||Le(Y.length)?d(te,0):s(te,Y);if(Y.type==="Buffer"&&g(Y.data))return s(te,Y.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function _(te){if(te>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return te|0}function b(te){return+te!=te&&(te=0),h.alloc(+te)}h.isBuffer=function(Y){return!!(Y!=null&&Y._isBuffer)},h.compare=function(Y,X){if(!h.isBuffer(Y)||!h.isBuffer(X))throw new TypeError("Arguments must be Buffers");if(Y===X)return 0;for(var J=Y.length,ve=X.length,he=0,Ce=Math.min(J,ve);he<Ce;++he)if(Y[he]!==X[he]){J=Y[he],ve=X[he];break}return J<ve?-1:ve<J?1:0},h.isEncoding=function(Y){switch(String(Y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(Y,X){if(!g(Y))throw new TypeError('"list" argument must be an Array of Buffers');if(Y.length===0)return h.alloc(0);var J;if(X===void 0)for(X=0,J=0;J<Y.length;++J)X+=Y[J].length;var ve=h.allocUnsafe(X),he=0;for(J=0;J<Y.length;++J){var Ce=Y[J];if(!h.isBuffer(Ce))throw new TypeError('"list" argument must be an Array of Buffers');Ce.copy(ve,he),he+=Ce.length}return ve};function y(te,Y){if(h.isBuffer(te))return te.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(te)||te instanceof ArrayBuffer))return te.byteLength;typeof te!="string"&&(te=""+te);var X=te.length;if(X===0)return 0;for(var J=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return X;case"utf8":case"utf-8":case void 0:return ue(te).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X*2;case"hex":return X>>>1;case"base64":return $(te).length;default:if(J)return ue(te).length;Y=(""+Y).toLowerCase(),J=!0}}h.byteLength=y;function E(te,Y,X){var J=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length)return"";if((X===void 0||X>this.length)&&(X=this.length),X<=0)return"";if(X>>>=0,Y>>>=0,X<=Y)return"";for(te||(te="utf8");;)switch(te){case"hex":return K(this,Y,X);case"utf8":case"utf-8":return z(this,Y,X);case"ascii":return G(this,Y,X);case"latin1":case"binary":return U(this,Y,X);case"base64":return W(this,Y,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,Y,X);default:if(J)throw new TypeError("Unknown encoding: "+te);te=(te+"").toLowerCase(),J=!0}}h.prototype._isBuffer=!0;function c(te,Y,X){var J=te[Y];te[Y]=te[X],te[X]=J}h.prototype.swap16=function(){var Y=this.length;if(Y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var X=0;X<Y;X+=2)c(this,X,X+1);return this},h.prototype.swap32=function(){var Y=this.length;if(Y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var X=0;X<Y;X+=4)c(this,X,X+3),c(this,X+1,X+2);return this},h.prototype.swap64=function(){var Y=this.length;if(Y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var X=0;X<Y;X+=8)c(this,X,X+7),c(this,X+1,X+6),c(this,X+2,X+5),c(this,X+3,X+4);return this},h.prototype.toString=function(){var Y=this.length|0;return Y===0?"":arguments.length===0?z(this,0,Y):E.apply(this,arguments)},h.prototype.equals=function(Y){if(!h.isBuffer(Y))throw new TypeError("Argument must be a Buffer");return this===Y?!0:h.compare(this,Y)===0},h.prototype.inspect=function(){var Y="",X=v.INSPECT_MAX_BYTES;return this.length>0&&(Y=this.toString("hex",0,X).match(/.{2}/g).join(" "),this.length>X&&(Y+=" ... ")),"<Buffer "+Y+">"},h.prototype.compare=function(Y,X,J,ve,he){if(!h.isBuffer(Y))throw new TypeError("Argument must be a Buffer");if(X===void 0&&(X=0),J===void 0&&(J=Y?Y.length:0),ve===void 0&&(ve=0),he===void 0&&(he=this.length),X<0||J>Y.length||ve<0||he>this.length)throw new RangeError("out of range index");if(ve>=he&&X>=J)return 0;if(ve>=he)return-1;if(X>=J)return 1;if(X>>>=0,J>>>=0,ve>>>=0,he>>>=0,this===Y)return 0;for(var Ce=he-ve,Pe=J-X,de=Math.min(Ce,Pe),ke=this.slice(ve,he),me=Y.slice(X,J),Be=0;Be<de;++Be)if(ke[Be]!==me[Be]){Ce=ke[Be],Pe=me[Be];break}return Ce<Pe?-1:Pe<Ce?1:0};function C(te,Y,X,J,ve){if(te.length===0)return-1;if(typeof X=="string"?(J=X,X=0):X>2147483647?X=2147483647:X<-2147483648&&(X=-2147483648),X=+X,isNaN(X)&&(X=ve?0:te.length-1),X<0&&(X=te.length+X),X>=te.length){if(ve)return-1;X=te.length-1}else if(X<0)if(ve)X=0;else return-1;if(typeof Y=="string"&&(Y=h.from(Y,J)),h.isBuffer(Y))return Y.length===0?-1:x(te,Y,X,J,ve);if(typeof Y=="number")return Y=Y&255,h.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ve?Uint8Array.prototype.indexOf.call(te,Y,X):Uint8Array.prototype.lastIndexOf.call(te,Y,X):x(te,[Y],X,J,ve);throw new TypeError("val must be string, number or Buffer")}function x(te,Y,X,J,ve){var he=1,Ce=te.length,Pe=Y.length;if(J!==void 0&&(J=String(J).toLowerCase(),J==="ucs2"||J==="ucs-2"||J==="utf16le"||J==="utf-16le")){if(te.length<2||Y.length<2)return-1;he=2,Ce/=2,Pe/=2,X/=2}function de(vt,Xe){return he===1?vt[Xe]:vt.readUInt16BE(Xe*he)}var ke;if(ve){var me=-1;for(ke=X;ke<Ce;ke++)if(de(te,ke)===de(Y,me===-1?0:ke-me)){if(me===-1&&(me=ke),ke-me+1===Pe)return me*he}else me!==-1&&(ke-=ke-me),me=-1}else for(X+Pe>Ce&&(X=Ce-Pe),ke=X;ke>=0;ke--){for(var Be=!0,ft=0;ft<Pe;ft++)if(de(te,ke+ft)!==de(Y,ft)){Be=!1;break}if(Be)return ke}return-1}h.prototype.includes=function(Y,X,J){return this.indexOf(Y,X,J)!==-1},h.prototype.indexOf=function(Y,X,J){return C(this,Y,X,J,!0)},h.prototype.lastIndexOf=function(Y,X,J){return C(this,Y,X,J,!1)};function M(te,Y,X,J){X=Number(X)||0;var ve=te.length-X;J?(J=Number(J),J>ve&&(J=ve)):J=ve;var he=Y.length;if(he%2!==0)throw new TypeError("Invalid hex string");J>he/2&&(J=he/2);for(var Ce=0;Ce<J;++Ce){var Pe=parseInt(Y.substr(Ce*2,2),16);if(isNaN(Pe))return Ce;te[X+Ce]=Pe}return Ce}function k(te,Y,X,J){return oe(ue(Y,te.length-X),te,X,J)}function T(te,Y,X,J){return oe(ne(Y),te,X,J)}function R(te,Y,X,J){return T(te,Y,X,J)}function P(te,Y,X,J){return oe($(Y),te,X,J)}function B(te,Y,X,J){return oe(xe(Y,te.length-X),te,X,J)}h.prototype.write=function(Y,X,J,ve){if(X===void 0)ve="utf8",J=this.length,X=0;else if(J===void 0&&typeof X=="string")ve=X,J=this.length,X=0;else if(isFinite(X))X=X|0,isFinite(J)?(J=J|0,ve===void 0&&(ve="utf8")):(ve=J,J=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var he=this.length-X;if((J===void 0||J>he)&&(J=he),Y.length>0&&(J<0||X<0)||X>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");for(var Ce=!1;;)switch(ve){case"hex":return M(this,Y,X,J);case"utf8":case"utf-8":return k(this,Y,X,J);case"ascii":return T(this,Y,X,J);case"latin1":case"binary":return R(this,Y,X,J);case"base64":return P(this,Y,X,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,Y,X,J);default:if(Ce)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),Ce=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function W(te,Y,X){return Y===0&&X===te.length?I.fromByteArray(te):I.fromByteArray(te.slice(Y,X))}function z(te,Y,X){X=Math.min(te.length,X);for(var J=[],ve=Y;ve<X;){var he=te[ve],Ce=null,Pe=he>239?4:he>223?3:he>191?2:1;if(ve+Pe<=X){var de,ke,me,Be;switch(Pe){case 1:he<128&&(Ce=he);break;case 2:de=te[ve+1],(de&192)===128&&(Be=(he&31)<<6|de&63,Be>127&&(Ce=Be));break;case 3:de=te[ve+1],ke=te[ve+2],(de&192)===128&&(ke&192)===128&&(Be=(he&15)<<12|(de&63)<<6|ke&63,Be>2047&&(Be<55296||Be>57343)&&(Ce=Be));break;case 4:de=te[ve+1],ke=te[ve+2],me=te[ve+3],(de&192)===128&&(ke&192)===128&&(me&192)===128&&(Be=(he&15)<<18|(de&63)<<12|(ke&63)<<6|me&63,Be>65535&&Be<1114112&&(Ce=Be))}}Ce===null?(Ce=65533,Pe=1):Ce>65535&&(Ce-=65536,J.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),J.push(Ce),ve+=Pe}return ee(J)}var H=4096;function ee(te){var Y=te.length;if(Y<=H)return String.fromCharCode.apply(String,te);for(var X="",J=0;J<Y;)X+=String.fromCharCode.apply(String,te.slice(J,J+=H));return X}function G(te,Y,X){var J="";X=Math.min(te.length,X);for(var ve=Y;ve<X;++ve)J+=String.fromCharCode(te[ve]&127);return J}function U(te,Y,X){var J="";X=Math.min(te.length,X);for(var ve=Y;ve<X;++ve)J+=String.fromCharCode(te[ve]);return J}function K(te,Y,X){var J=te.length;(!Y||Y<0)&&(Y=0),(!X||X<0||X>J)&&(X=J);for(var ve="",he=Y;he<X;++he)ve+=le(te[he]);return ve}function L(te,Y,X){for(var J=te.slice(Y,X),ve="",he=0;he<J.length;he+=2)ve+=String.fromCharCode(J[he]+J[he+1]*256);return ve}h.prototype.slice=function(Y,X){var J=this.length;Y=~~Y,X=X===void 0?J:~~X,Y<0?(Y+=J,Y<0&&(Y=0)):Y>J&&(Y=J),X<0?(X+=J,X<0&&(X=0)):X>J&&(X=J),X<Y&&(X=Y);var ve;if(h.TYPED_ARRAY_SUPPORT)ve=this.subarray(Y,X),ve.__proto__=h.prototype;else{var he=X-Y;ve=new h(he,void 0);for(var Ce=0;Ce<he;++Ce)ve[Ce]=this[Ce+Y]}return ve};function D(te,Y,X){if(te%1!==0||te<0)throw new RangeError("offset is not uint");if(te+Y>X)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUIntLE=function(Y,X,J){Y=Y|0,X=X|0,J||D(Y,X,this.length);for(var ve=this[Y],he=1,Ce=0;++Ce<X&&(he*=256);)ve+=this[Y+Ce]*he;return ve},h.prototype.readUIntBE=function(Y,X,J){Y=Y|0,X=X|0,J||D(Y,X,this.length);for(var ve=this[Y+--X],he=1;X>0&&(he*=256);)ve+=this[Y+--X]*he;return ve},h.prototype.readUInt8=function(Y,X){return X||D(Y,1,this.length),this[Y]},h.prototype.readUInt16LE=function(Y,X){return X||D(Y,2,this.length),this[Y]|this[Y+1]<<8},h.prototype.readUInt16BE=function(Y,X){return X||D(Y,2,this.length),this[Y]<<8|this[Y+1]},h.prototype.readUInt32LE=function(Y,X){return X||D(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+this[Y+3]*16777216},h.prototype.readUInt32BE=function(Y,X){return X||D(Y,4,this.length),this[Y]*16777216+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},h.prototype.readIntLE=function(Y,X,J){Y=Y|0,X=X|0,J||D(Y,X,this.length);for(var ve=this[Y],he=1,Ce=0;++Ce<X&&(he*=256);)ve+=this[Y+Ce]*he;return he*=128,ve>=he&&(ve-=Math.pow(2,8*X)),ve},h.prototype.readIntBE=function(Y,X,J){Y=Y|0,X=X|0,J||D(Y,X,this.length);for(var ve=X,he=1,Ce=this[Y+--ve];ve>0&&(he*=256);)Ce+=this[Y+--ve]*he;return he*=128,Ce>=he&&(Ce-=Math.pow(2,8*X)),Ce},h.prototype.readInt8=function(Y,X){return X||D(Y,1,this.length),this[Y]&128?(255-this[Y]+1)*-1:this[Y]},h.prototype.readInt16LE=function(Y,X){X||D(Y,2,this.length);var J=this[Y]|this[Y+1]<<8;return J&32768?J|4294901760:J},h.prototype.readInt16BE=function(Y,X){X||D(Y,2,this.length);var J=this[Y+1]|this[Y]<<8;return J&32768?J|4294901760:J},h.prototype.readInt32LE=function(Y,X){return X||D(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},h.prototype.readInt32BE=function(Y,X){return X||D(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},h.prototype.readFloatLE=function(Y,X){return X||D(Y,4,this.length),m.read(this,Y,!0,23,4)},h.prototype.readFloatBE=function(Y,X){return X||D(Y,4,this.length),m.read(this,Y,!1,23,4)},h.prototype.readDoubleLE=function(Y,X){return X||D(Y,8,this.length),m.read(this,Y,!0,52,8)},h.prototype.readDoubleBE=function(Y,X){return X||D(Y,8,this.length),m.read(this,Y,!1,52,8)};function j(te,Y,X,J,ve,he){if(!h.isBuffer(te))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>ve||Y<he)throw new RangeError('"value" argument is out of bounds');if(X+J>te.length)throw new RangeError("Index out of range")}h.prototype.writeUIntLE=function(Y,X,J,ve){if(Y=+Y,X=X|0,J=J|0,!ve){var he=Math.pow(2,8*J)-1;j(this,Y,X,J,he,0)}var Ce=1,Pe=0;for(this[X]=Y&255;++Pe<J&&(Ce*=256);)this[X+Pe]=Y/Ce&255;return X+J},h.prototype.writeUIntBE=function(Y,X,J,ve){if(Y=+Y,X=X|0,J=J|0,!ve){var he=Math.pow(2,8*J)-1;j(this,Y,X,J,he,0)}var Ce=J-1,Pe=1;for(this[X+Ce]=Y&255;--Ce>=0&&(Pe*=256);)this[X+Ce]=Y/Pe&255;return X+J},h.prototype.writeUInt8=function(Y,X,J){return Y=+Y,X=X|0,J||j(this,Y,X,1,255,0),h.TYPED_ARRAY_SUPPORT||(Y=Math.floor(Y)),this[X]=Y&255,X+1};function Z(te,Y,X,J){Y<0&&(Y=65535+Y+1);for(var ve=0,he=Math.min(te.length-X,2);ve<he;++ve)te[X+ve]=(Y&255<<8*(J?ve:1-ve))>>>(J?ve:1-ve)*8}h.prototype.writeUInt16LE=function(Y,X,J){return Y=+Y,X=X|0,J||j(this,Y,X,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[X]=Y&255,this[X+1]=Y>>>8):Z(this,Y,X,!0),X+2},h.prototype.writeUInt16BE=function(Y,X,J){return Y=+Y,X=X|0,J||j(this,Y,X,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[X]=Y>>>8,this[X+1]=Y&255):Z(this,Y,X,!1),X+2};function ie(te,Y,X,J){Y<0&&(Y=4294967295+Y+1);for(var ve=0,he=Math.min(te.length-X,4);ve<he;++ve)te[X+ve]=Y>>>(J?ve:3-ve)*8&255}h.prototype.writeUInt32LE=function(Y,X,J){return Y=+Y,X=X|0,J||j(this,Y,X,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[X+3]=Y>>>24,this[X+2]=Y>>>16,this[X+1]=Y>>>8,this[X]=Y&255):ie(this,Y,X,!0),X+4},h.prototype.writeUInt32BE=function(Y,X,J){return Y=+Y,X=X|0,J||j(this,Y,X,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[X]=Y>>>24,this[X+1]=Y>>>16,this[X+2]=Y>>>8,this[X+3]=Y&255):ie(this,Y,X,!1),X+4},h.prototype.writeIntLE=function(Y,X,J,ve){if(Y=+Y,X=X|0,!ve){var he=Math.pow(2,8*J-1);j(this,Y,X,J,he-1,-he)}var Ce=0,Pe=1,de=0;for(this[X]=Y&255;++Ce<J&&(Pe*=256);)Y<0&&de===0&&this[X+Ce-1]!==0&&(de=1),this[X+Ce]=(Y/Pe>>0)-de&255;return X+J},h.prototype.writeIntBE=function(Y,X,J,ve){if(Y=+Y,X=X|0,!ve){var he=Math.pow(2,8*J-1);j(this,Y,X,J,he-1,-he)}var Ce=J-1,Pe=1,de=0;for(this[X+Ce]=Y&255;--Ce>=0&&(Pe*=256);)Y<0&&de===0&&this[X+Ce+1]!==0&&(de=1),this[X+Ce]=(Y/Pe>>0)-de&255;return X+J},h.prototype.writeInt8=function(Y,X,J){return Y=+Y,X=X|0,J||j(this,Y,X,1,127,-128),h.TYPED_ARRAY_SUPPORT||(Y=Math.floor(Y)),Y<0&&(Y=255+Y+1),this[X]=Y&255,X+1},h.prototype.writeInt16LE=function(Y,X,J){return Y=+Y,X=X|0,J||j(this,Y,X,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[X]=Y&255,this[X+1]=Y>>>8):Z(this,Y,X,!0),X+2},h.prototype.writeInt16BE=function(Y,X,J){return Y=+Y,X=X|0,J||j(this,Y,X,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[X]=Y>>>8,this[X+1]=Y&255):Z(this,Y,X,!1),X+2},h.prototype.writeInt32LE=function(Y,X,J){return Y=+Y,X=X|0,J||j(this,Y,X,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[X]=Y&255,this[X+1]=Y>>>8,this[X+2]=Y>>>16,this[X+3]=Y>>>24):ie(this,Y,X,!0),X+4},h.prototype.writeInt32BE=function(Y,X,J){return Y=+Y,X=X|0,J||j(this,Y,X,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),h.TYPED_ARRAY_SUPPORT?(this[X]=Y>>>24,this[X+1]=Y>>>16,this[X+2]=Y>>>8,this[X+3]=Y&255):ie(this,Y,X,!1),X+4};function pe(te,Y,X,J,ve,he){if(X+J>te.length)throw new RangeError("Index out of range");if(X<0)throw new RangeError("Index out of range")}function Ee(te,Y,X,J,ve){return ve||pe(te,Y,X,4,34028234663852886e22,-34028234663852886e22),m.write(te,Y,X,J,23,4),X+4}h.prototype.writeFloatLE=function(Y,X,J){return Ee(this,Y,X,!0,J)},h.prototype.writeFloatBE=function(Y,X,J){return Ee(this,Y,X,!1,J)};function De(te,Y,X,J,ve){return ve||pe(te,Y,X,8,17976931348623157e292,-17976931348623157e292),m.write(te,Y,X,J,52,8),X+8}h.prototype.writeDoubleLE=function(Y,X,J){return De(this,Y,X,!0,J)},h.prototype.writeDoubleBE=function(Y,X,J){return De(this,Y,X,!1,J)},h.prototype.copy=function(Y,X,J,ve){if(J||(J=0),!ve&&ve!==0&&(ve=this.length),X>=Y.length&&(X=Y.length),X||(X=0),ve>0&&ve<J&&(ve=J),ve===J)return 0;if(Y.length===0||this.length===0)return 0;if(X<0)throw new RangeError("targetStart out of bounds");if(J<0||J>=this.length)throw new RangeError("sourceStart out of bounds");if(ve<0)throw new RangeError("sourceEnd out of bounds");ve>this.length&&(ve=this.length),Y.length-X<ve-J&&(ve=Y.length-X+J);var he=ve-J,Ce;if(this===Y&&J<X&&X<ve)for(Ce=he-1;Ce>=0;--Ce)Y[Ce+X]=this[Ce+J];else if(he<1e3||!h.TYPED_ARRAY_SUPPORT)for(Ce=0;Ce<he;++Ce)Y[Ce+X]=this[Ce+J];else Uint8Array.prototype.set.call(Y,this.subarray(J,J+he),X);return he},h.prototype.fill=function(Y,X,J,ve){if(typeof Y=="string"){if(typeof X=="string"?(ve=X,X=0,J=this.length):typeof J=="string"&&(ve=J,J=this.length),Y.length===1){var he=Y.charCodeAt(0);he<256&&(Y=he)}if(ve!==void 0&&typeof ve!="string")throw new TypeError("encoding must be a string");if(typeof ve=="string"&&!h.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve)}else typeof Y=="number"&&(Y=Y&255);if(X<0||this.length<X||this.length<J)throw new RangeError("Out of range index");if(J<=X)return this;X=X>>>0,J=J===void 0?this.length:J>>>0,Y||(Y=0);var Ce;if(typeof Y=="number")for(Ce=X;Ce<J;++Ce)this[Ce]=Y;else{var Pe=h.isBuffer(Y)?Y:ue(new h(Y,ve).toString()),de=Pe.length;for(Ce=0;Ce<J-X;++Ce)this[Ce+X]=Pe[Ce%de]}return this};var q=/[^+\/0-9A-Za-z-_]/g;function be(te){if(te=ye(te).replace(q,""),te.length<2)return"";for(;te.length%4!==0;)te=te+"=";return te}function ye(te){return te.trim?te.trim():te.replace(/^\s+|\s+$/g,"")}function le(te){return te<16?"0"+te.toString(16):te.toString(16)}function ue(te,Y){Y=Y||Infinity;for(var X,J=te.length,ve=null,he=[],Ce=0;Ce<J;++Ce){if(X=te.charCodeAt(Ce),X>55295&&X<57344){if(!ve){if(X>56319){(Y-=3)>-1&&he.push(239,191,189);continue}else if(Ce+1===J){(Y-=3)>-1&&he.push(239,191,189);continue}ve=X;continue}if(X<56320){(Y-=3)>-1&&he.push(239,191,189),ve=X;continue}X=(ve-55296<<10|X-56320)+65536}else ve&&((Y-=3)>-1&&he.push(239,191,189));if(ve=null,X<128){if((Y-=1)<0)break;he.push(X)}else if(X<2048){if((Y-=2)<0)break;he.push(X>>6|192,X&63|128)}else if(X<65536){if((Y-=3)<0)break;he.push(X>>12|224,X>>6&63|128,X&63|128)}else if(X<1114112){if((Y-=4)<0)break;he.push(X>>18|240,X>>12&63|128,X>>6&63|128,X&63|128)}else throw new Error("Invalid code point")}return he}function ne(te){for(var Y=[],X=0;X<te.length;++X)Y.push(te.charCodeAt(X)&255);return Y}function xe(te,Y){for(var X,J,ve,he=[],Ce=0;Ce<te.length&&!((Y-=2)<0);++Ce)X=te.charCodeAt(Ce),J=X>>8,ve=X%256,he.push(ve),he.push(J);return he}function $(te){return I.toByteArray(be(te))}function oe(te,Y,X,J){for(var ve=0;ve<J&&!(ve+X>=Y.length||ve>=te.length);++ve)Y[ve+X]=te[ve];return ve}function Le(te){return te!==te}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},S("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(S,F,v){F.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}},{}],75:[function(S,F,v){F.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(S,F,v){/*!
* copy-to - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var w=Array.prototype.slice;F.exports=h;function h(m,g){if(!(this instanceof h))return new h(m,g);this.src=m,this._withAccess=g}h.prototype.withAccess=function(m){return this._withAccess=m!==!1,this},h.prototype.pick=function(m){return Array.isArray(m)||(m=w.call(arguments)),m.length&&(this.keys=m),this},h.prototype.to=function(m){if(m=m||{},!this.src)return m;var g=this.keys||Object.keys(this.src);if(!this._withAccess){for(var a=0;a<g.length;a++){if(f=g[a],m[f]!==void 0)continue;m[f]=this.src[f]}return m}for(var a=0;a<g.length;a++){var f=g[a];if(!I(m,f))continue;var d=this.src.__lookupGetter__(f),u=this.src.__lookupSetter__(f);d&&m.__defineGetter__(f,d),u&&m.__defineSetter__(f,u),!d&&!u&&(m[f]=this.src[f])}return m},h.prototype.toCover=function(m){for(var g=this.keys||Object.keys(this.src),a=0;a<g.length;a++){var f=g[a];delete m[f];var d=this.src.__lookupGetter__(f),u=this.src.__lookupSetter__(f);d&&m.__defineGetter__(f,d),u&&m.__defineSetter__(f,u),!d&&!u&&(m[f]=this.src[f])}},h.prototype.override=h.prototype.toCover,h.prototype.and=function(m){var g={};return this.to(g),this.src=m,this.to(g),this.src=g,this};function I(m,g){return m[g]===void 0&&m.__lookupGetter__(g)===void 0&&m.__lookupSetter__(g)===void 0}},{}],77:[function(S,F,v){S("../../modules/es6.string.iterator"),S("../../modules/es6.array.from"),F.exports=S("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(S,F,v){var w=S("../../modules/_core"),h=w.JSON||(w.JSON={stringify:JSON.stringify});F.exports=function(m){return h.stringify.apply(h,arguments)}},{"../../modules/_core":99}],79:[function(S,F,v){S("../../modules/es6.object.assign"),F.exports=S("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(S,F,v){S("../../modules/es6.object.create");var w=S("../../modules/_core").Object;F.exports=function(I,m){return w.create(I,m)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(S,F,v){S("../../modules/es6.object.define-property");var w=S("../../modules/_core").Object;F.exports=function(I,m,g){return w.defineProperty(I,m,g)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(S,F,v){S("../../modules/es7.object.entries"),F.exports=S("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(S,F,v){S("../../modules/es6.object.get-own-property-names");var w=S("../../modules/_core").Object;F.exports=function(I){return w.getOwnPropertyNames(I)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(S,F,v){S("../../modules/es6.object.get-prototype-of"),F.exports=S("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(S,F,v){S("../../modules/es6.object.keys"),F.exports=S("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(S,F,v){S("../modules/es6.object.to-string"),S("../modules/es6.string.iterator"),S("../modules/web.dom.iterable"),S("../modules/es6.promise"),S("../modules/es7.promise.finally"),S("../modules/es7.promise.try"),F.exports=S("../modules/_core").Promise},{"../modules/_core":99,"../modules/es6.object.to-string":177,"../modules/es6.promise":178,"../modules/es6.string.iterator":180,"../modules/es7.promise.finally":183,"../modules/es7.promise.try":184,"../modules/web.dom.iterable":187}],87:[function(S,F,v){S("../modules/web.immediate"),F.exports=S("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(S,F,v){S("../../modules/es6.string.from-code-point"),F.exports=S("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(S,F,v){S("../../modules/es6.function.has-instance"),F.exports=S("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(S,F,v){S("../../modules/es6.symbol"),S("../../modules/es6.object.to-string"),S("../../modules/es7.symbol.async-iterator"),S("../../modules/es7.symbol.observable"),F.exports=S("../../modules/_core").Symbol},{"../../modules/_core":99,"../../modules/es6.object.to-string":177,"../../modules/es6.symbol":181,"../../modules/es7.symbol.async-iterator":185,"../../modules/es7.symbol.observable":186}],91:[function(S,F,v){S("../../modules/es6.string.iterator"),S("../../modules/web.dom.iterable"),F.exports=S("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(S,F,v){F.exports=function(w){if(typeof w!="function")throw TypeError(w+" is not a function!");return w}},{}],93:[function(S,F,v){F.exports=function(){}},{}],94:[function(S,F,v){F.exports=function(w,h,I,m){if(!(w instanceof h)||m!==void 0&&m in w)throw TypeError(I+": incorrect invocation!");return w}},{}],95:[function(S,F,v){var w=S("./_is-object");F.exports=function(h){if(!w(h))throw TypeError(h+" is not an object!");return h}},{"./_is-object":119}],96:[function(S,F,v){var w=S("./_to-iobject"),h=S("./_to-length"),I=S("./_to-absolute-index");F.exports=function(m){return function(g,a,f){var d=w(g),u=h(d.length),o=I(f,u),r;if(m&&a!=a){for(;u>o;)if(r=d[o++],r!=r)return!0}else for(;u>o;o++)if((m||o in d)&&d[o]===a)return m||o||0;return!m&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(S,F,v){var w=S("./_cof"),h=S("./_wks")("toStringTag"),I=w(function(){return arguments}())=="Arguments",m=function(g,a){try{return g[a]}catch(f){}};F.exports=function(g){var a,f,d;return g===void 0?"Undefined":g===null?"Null":typeof(f=m(a=Object(g),h))=="string"?f:I?w(a):(d=w(a))=="Object"&&typeof a.callee=="function"?"Arguments":d}},{"./_cof":98,"./_wks":166}],98:[function(S,F,v){var w={}.toString;F.exports=function(h){return w.call(h).slice(8,-1)}},{}],99:[function(S,F,v){var w=F.exports={version:"2.6.11"};typeof __e=="number"&&(__e=w)},{}],100:[function(S,F,v){"use strict";var w=S("./_object-dp"),h=S("./_property-desc");F.exports=function(I,m,g){m in I?w.f(I,m,h(0,g)):I[m]=g}},{"./_object-dp":132,"./_property-desc":146}],101:[function(S,F,v){var w=S("./_a-function");F.exports=function(h,I,m){if(w(h),I===void 0)return h;switch(m){case 1:return function(g){return h.call(I,g)};case 2:return function(g,a){return h.call(I,g,a)};case 3:return function(g,a,f){return h.call(I,g,a,f)}}return function(){return h.apply(I,arguments)}}},{"./_a-function":92}],102:[function(S,F,v){F.exports=function(w){if(w==null)throw TypeError("Can't call method on "+w);return w}},{}],103:[function(S,F,v){F.exports=!S("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(S,F,v){var w=S("./_is-object"),h=S("./_global").document,I=w(h)&&w(h.createElement);F.exports=function(m){return I?h.createElement(m):{}}},{"./_global":110,"./_is-object":119}],105:[function(S,F,v){F.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(S,F,v){var w=S("./_object-keys"),h=S("./_object-gops"),I=S("./_object-pie");F.exports=function(m){var g=w(m),a=h.f;if(a)for(var f=a(m),d=I.f,u=0,o;f.length>u;)d.call(m,o=f[u++])&&g.push(o);return g}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(S,F,v){var w=S("./_global"),h=S("./_core"),I=S("./_ctx"),m=S("./_hide"),g=S("./_has"),a="prototype",f=function(d,u,o){var r=d&f.F,l=d&f.G,n=d&f.S,s=d&f.P,e=d&f.B,i=d&f.W,_=l?h:h[u]||(h[u]={}),b=_[a],y=l?w:n?w[u]:(w[u]||{})[a],E,c,C;l&&(o=u);for(E in o){if(c=!r&&y&&y[E]!==void 0,c&&g(_,E))continue;C=c?y[E]:o[E],_[E]=l&&typeof y[E]!="function"?o[E]:e&&c?I(C,w):i&&y[E]==C?function(x){var M=function(k,T,R){if(this instanceof x){switch(arguments.length){case 0:return new x;case 1:return new x(k);case 2:return new x(k,T)}return new x(k,T,R)}return x.apply(this,arguments)};return M[a]=x[a],M}(C):s&&typeof C=="function"?I(Function.call,C):C,s&&((_.virtual||(_.virtual={}))[E]=C,d&f.R&&b&&!b[E]&&m(b,E,C))}};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,F.exports=f},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(S,F,v){F.exports=function(w){try{return!!w()}catch(h){return!0}}},{}],109:[function(S,F,v){var w=S("./_ctx"),h=S("./_iter-call"),I=S("./_is-array-iter"),m=S("./_an-object"),g=S("./_to-length"),a=S("./core.get-iterator-method"),f={},d={},v=F.exports=function(u,o,r,l,n){var s=n?function(){return u}:a(u),e=w(r,l,o?2:1),i=0,_,b,y,E;if(typeof s!="function")throw TypeError(u+" is not iterable!");if(I(s)){for(_=g(u.length);_>i;i++)if(E=o?e(m(b=u[i])[0],b[1]):e(u[i]),E===f||E===d)return E}else for(y=s.call(u);!(b=y.next()).done;)if(E=h(y,e,b.value,o),E===f||E===d)return E};v.BREAK=f,v.RETURN=d},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(S,F,v){var w=F.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=w)},{}],111:[function(S,F,v){var w={}.hasOwnProperty;F.exports=function(h,I){return w.call(h,I)}},{}],112:[function(S,F,v){var w=S("./_object-dp"),h=S("./_property-desc");F.exports=S("./_descriptors")?function(I,m,g){return w.f(I,m,h(1,g))}:function(I,m,g){return I[m]=g,I}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(S,F,v){var w=S("./_global").document;F.exports=w&&w.documentElement},{"./_global":110}],114:[function(S,F,v){F.exports=!S("./_descriptors")&&!S("./_fails")(function(){return Object.defineProperty(S("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(S,F,v){F.exports=function(w,h,I){var m=I===void 0;switch(h.length){case 0:return m?w():w.call(I);case 1:return m?w(h[0]):w.call(I,h[0]);case 2:return m?w(h[0],h[1]):w.call(I,h[0],h[1]);case 3:return m?w(h[0],h[1],h[2]):w.call(I,h[0],h[1],h[2]);case 4:return m?w(h[0],h[1],h[2],h[3]):w.call(I,h[0],h[1],h[2],h[3])}return w.apply(I,h)}},{}],116:[function(S,F,v){var w=S("./_cof");F.exports=Object("z").propertyIsEnumerable(0)?Object:function(h){return w(h)=="String"?h.split(""):Object(h)}},{"./_cof":98}],117:[function(S,F,v){var w=S("./_iterators"),h=S("./_wks")("iterator"),I=Array.prototype;F.exports=function(m){return m!==void 0&&(w.Array===m||I[h]===m)}},{"./_iterators":125,"./_wks":166}],118:[function(S,F,v){var w=S("./_cof");F.exports=Array.isArray||function(I){return w(I)=="Array"}},{"./_cof":98}],119:[function(S,F,v){F.exports=function(w){return typeof w=="object"?w!==null:typeof w=="function"}},{}],120:[function(S,F,v){var w=S("./_an-object");F.exports=function(h,I,m,g){try{return g?I(w(m)[0],m[1]):I(m)}catch(f){var a=h.return;throw a!==void 0&&w(a.call(h)),f}}},{"./_an-object":95}],121:[function(S,F,v){"use strict";var w=S("./_object-create"),h=S("./_property-desc"),I=S("./_set-to-string-tag"),m={};S("./_hide")(m,S("./_wks")("iterator"),function(){return this}),F.exports=function(g,a,f){g.prototype=w(m,{next:h(1,f)}),I(g,a+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(S,F,v){"use strict";var w=S("./_library"),h=S("./_export"),I=S("./_redefine"),m=S("./_hide"),g=S("./_iterators"),a=S("./_iter-create"),f=S("./_set-to-string-tag"),d=S("./_object-gpo"),u=S("./_wks")("iterator"),o=!([].keys&&"next"in[].keys()),r="@@iterator",l="keys",n="values",s=function(){return this};F.exports=function(e,i,_,b,y,E,c){a(_,i,b);var C=function(G){if(!o&&G in T)return T[G];switch(G){case l:return function(){return new _(this,G)};case n:return function(){return new _(this,G)}}return function(){return new _(this,G)}},x=i+" Iterator",M=y==n,k=!1,T=e.prototype,R=T[u]||T[r]||y&&T[y],P=R||C(y),B=y?M?C("entries"):P:void 0,W=i=="Array"&&T.entries||R,z,H,ee;if(W&&(ee=d(W.call(new e)),ee!==Object.prototype&&ee.next&&(f(ee,x,!0),!w&&typeof ee[u]!="function"&&m(ee,u,s))),M&&R&&R.name!==n&&(k=!0,P=function(){return R.call(this)}),(!w||c)&&(o||k||!T[u])&&m(T,u,P),g[i]=P,g[x]=s,y)if(z={values:M?P:C(n),keys:E?P:C(l),entries:B},c)for(H in z)H in T||I(T,H,z[H]);else h(h.P+h.F*(o||k),i,z);return z}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(S,F,v){var w=S("./_wks")("iterator"),h=!1;try{var I=[7][w]();I.return=function(){h=!0},Array.from(I,function(){throw 2})}catch(m){}F.exports=function(m,g){if(!g&&!h)return!1;var a=!1;try{var f=[7],d=f[w]();d.next=function(){return{done:a=!0}},f[w]=function(){return d},m(f)}catch(u){}return a}},{"./_wks":166}],124:[function(S,F,v){F.exports=function(w,h){return{value:h,done:!!w}}},{}],125:[function(S,F,v){F.exports={}},{}],126:[function(S,F,v){F.exports=!0},{}],127:[function(S,F,v){var w=S("./_uid")("meta"),h=S("./_is-object"),I=S("./_has"),m=S("./_object-dp").f,g=0,a=Object.isExtensible||function(){return!0},f=!S("./_fails")(function(){return a(Object.preventExtensions({}))}),d=function(n){m(n,w,{value:{i:"O"+ ++g,w:{}}})},u=function(n,s){if(!h(n))return typeof n=="symbol"?n:(typeof n=="string"?"S":"P")+n;if(!I(n,w)){if(!a(n))return"F";if(!s)return"E";d(n)}return n[w].i},o=function(n,s){if(!I(n,w)){if(!a(n))return!0;if(!s)return!1;d(n)}return n[w].w},r=function(n){return f&&l.NEED&&a(n)&&!I(n,w)&&d(n),n},l=F.exports={KEY:w,NEED:!1,fastKey:u,getWeak:o,onFreeze:r}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(S,F,v){var w=S("./_global"),h=S("./_task").set,I=w.MutationObserver||w.WebKitMutationObserver,m=w.process,g=w.Promise,a=S("./_cof")(m)=="process";F.exports=function(){var f,d,u,o=function(){var s,e;for(a&&(s=m.domain)&&s.exit();f;){e=f.fn,f=f.next;try{e()}catch(i){throw f?u():d=void 0,i}}d=void 0,s&&s.enter()};if(a)u=function(){m.nextTick(o)};else if(I&&!(w.navigator&&w.navigator.standalone)){var r=!0,l=document.createTextNode("");new I(o).observe(l,{characterData:!0}),u=function(){l.data=r=!r}}else if(g&&g.resolve){var n=g.resolve(void 0);u=function(){n.then(o)}}else u=function(){h.call(w,o)};return function(s){var e={fn:s,next:void 0};d&&(d.next=e),f||(f=e,u()),d=e}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(S,F,v){"use strict";var w=S("./_a-function");function h(I){var m,g;this.promise=new I(function(a,f){if(m!==void 0||g!==void 0)throw TypeError("Bad Promise constructor");m=a,g=f}),this.resolve=w(m),this.reject=w(g)}F.exports.f=function(I){return new h(I)}},{"./_a-function":92}],130:[function(S,F,v){"use strict";var w=S("./_descriptors"),h=S("./_object-keys"),I=S("./_object-gops"),m=S("./_object-pie"),g=S("./_to-object"),a=S("./_iobject"),f=Object.assign;F.exports=!f||S("./_fails")(function(){var d={},u={},o=Symbol(),r="abcdefghijklmnopqrst";return d[o]=7,r.split("").forEach(function(l){u[l]=l}),f({},d)[o]!=7||Object.keys(f({},u)).join("")!=r})?function(u,o){for(var r=g(u),l=arguments.length,n=1,s=I.f,e=m.f;l>n;)for(var i=a(arguments[n++]),_=s?h(i).concat(s(i)):h(i),b=_.length,y=0,E;b>y;)E=_[y++],(!w||e.call(i,E))&&(r[E]=i[E]);return r}:f},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(S,F,v){var w=S("./_an-object"),h=S("./_object-dps"),I=S("./_enum-bug-keys"),m=S("./_shared-key")("IE_PROTO"),g=function(){},a="prototype",f=function(){var d=S("./_dom-create")("iframe"),u=I.length,o="<",r=">",l;for(d.style.display="none",S("./_html").appendChild(d),d.src="javascript:",l=d.contentWindow.document,l.open(),l.write(o+"script"+r+"document.F=Object"+o+"/script"+r),l.close(),f=l.F;u--;)delete f[a][I[u]];return f()};F.exports=Object.create||function(u,o){var r;return u!==null?(g[a]=w(u),r=new g,g[a]=null,r[m]=u):r=f(),o===void 0?r:h(r,o)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(S,F,v){var w=S("./_an-object"),h=S("./_ie8-dom-define"),I=S("./_to-primitive"),m=Object.defineProperty;v.f=S("./_descriptors")?Object.defineProperty:function(a,f,d){if(w(a),f=I(f,!0),w(d),h)try{return m(a,f,d)}catch(u){}if("get"in d||"set"in d)throw TypeError("Accessors not supported!");return"value"in d&&(a[f]=d.value),a}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(S,F,v){var w=S("./_object-dp"),h=S("./_an-object"),I=S("./_object-keys");F.exports=S("./_descriptors")?Object.defineProperties:function(g,a){h(g);for(var f=I(a),d=f.length,u=0,o;d>u;)w.f(g,o=f[u++],a[o]);return g}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(S,F,v){var w=S("./_object-pie"),h=S("./_property-desc"),I=S("./_to-iobject"),m=S("./_to-primitive"),g=S("./_has"),a=S("./_ie8-dom-define"),f=Object.getOwnPropertyDescriptor;v.f=S("./_descriptors")?f:function(u,o){if(u=I(u),o=m(o,!0),a)try{return f(u,o)}catch(r){}if(g(u,o))return h(!w.f.call(u,o),u[o])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(S,F,v){var w=S("./_to-iobject"),h=S("./_object-gopn").f,I={}.toString,m=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],g=function(a){try{return h(a)}catch(f){return m.slice()}};F.exports.f=function(f){return m&&I.call(f)=="[object Window]"?g(f):h(w(f))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(S,F,v){var w=S("./_object-keys-internal"),h=S("./_enum-bug-keys").concat("length","prototype");v.f=Object.getOwnPropertyNames||function(m){return w(m,h)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(S,F,v){v.f=Object.getOwnPropertySymbols},{}],138:[function(S,F,v){var w=S("./_has"),h=S("./_to-object"),I=S("./_shared-key")("IE_PROTO"),m=Object.prototype;F.exports=Object.getPrototypeOf||function(g){return g=h(g),w(g,I)?g[I]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?m:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(S,F,v){var w=S("./_has"),h=S("./_to-iobject"),I=S("./_array-includes")(!1),m=S("./_shared-key")("IE_PROTO");F.exports=function(g,a){var f=h(g),d=0,u=[],o;for(o in f)o!=m&&(w(f,o)&&u.push(o));for(;a.length>d;)w(f,o=a[d++])&&(~I(u,o)||u.push(o));return u}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(S,F,v){var w=S("./_object-keys-internal"),h=S("./_enum-bug-keys");F.exports=Object.keys||function(m){return w(m,h)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(S,F,v){v.f={}.propertyIsEnumerable},{}],142:[function(S,F,v){var w=S("./_export"),h=S("./_core"),I=S("./_fails");F.exports=function(m,g){var a=(h.Object||{})[m]||Object[m],f={};f[m]=g(a),w(w.S+w.F*I(function(){a(1)}),"Object",f)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(S,F,v){var w=S("./_descriptors"),h=S("./_object-keys"),I=S("./_to-iobject"),m=S("./_object-pie").f;F.exports=function(g){return function(a){for(var f=I(a),d=h(f),u=d.length,o=0,r=[],l;u>o;)l=d[o++],(!w||m.call(f,l))&&r.push(g?[l,f[l]]:f[l]);return r}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(S,F,v){F.exports=function(w){try{return{e:!1,v:w()}}catch(h){return{e:!0,v:h}}}},{}],145:[function(S,F,v){var w=S("./_an-object"),h=S("./_is-object"),I=S("./_new-promise-capability");F.exports=function(m,g){if(w(m),h(g)&&g.constructor===m)return g;var a=I.f(m),f=a.resolve;return f(g),a.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(S,F,v){F.exports=function(w,h){return{enumerable:!(w&1),configurable:!(w&2),writable:!(w&4),value:h}}},{}],147:[function(S,F,v){var w=S("./_hide");F.exports=function(h,I,m){for(var g in I)m&&h[g]?h[g]=I[g]:w(h,g,I[g]);return h}},{"./_hide":112}],148:[function(S,F,v){F.exports=S("./_hide")},{"./_hide":112}],149:[function(S,F,v){"use strict";var w=S("./_global"),h=S("./_core"),I=S("./_object-dp"),m=S("./_descriptors"),g=S("./_wks")("species");F.exports=function(a){var f=typeof h[a]=="function"?h[a]:w[a];m&&f&&!f[g]&&I.f(f,g,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(S,F,v){var w=S("./_object-dp").f,h=S("./_has"),I=S("./_wks")("toStringTag");F.exports=function(m,g,a){m&&!h(m=a?m:m.prototype,I)&&w(m,I,{configurable:!0,value:g})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(S,F,v){var w=S("./_shared")("keys"),h=S("./_uid");F.exports=function(I){return w[I]||(w[I]=h(I))}},{"./_shared":152,"./_uid":162}],152:[function(S,F,v){var w=S("./_core"),h=S("./_global"),I="__core-js_shared__",m=h[I]||(h[I]={});(F.exports=function(g,a){return m[g]||(m[g]=a!==void 0?a:{})})("versions",[]).push({version:w.version,mode:S("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(S,F,v){var w=S("./_an-object"),h=S("./_a-function"),I=S("./_wks")("species");F.exports=function(m,g){var a=w(m).constructor,f;return a===void 0||(f=w(a)[I])==null?g:h(f)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(S,F,v){var w=S("./_to-integer"),h=S("./_defined");F.exports=function(I){return function(m,g){var a=String(h(m)),f=w(g),d=a.length,u,o;return f<0||f>=d?I?"":void 0:(u=a.charCodeAt(f),u<55296||u>56319||f+1===d||(o=a.charCodeAt(f+1))<56320||o>57343?I?a.charAt(f):u:I?a.slice(f,f+2):(u-55296<<10)+(o-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(S,F,v){var w=S("./_ctx"),h=S("./_invoke"),I=S("./_html"),m=S("./_dom-create"),g=S("./_global"),a=g.process,f=g.setImmediate,d=g.clearImmediate,u=g.MessageChannel,o=g.Dispatch,r=0,l={},n="onreadystatechange",s,e,i,_=function(){var y=+this;if(l.hasOwnProperty(y)){var E=l[y];delete l[y],E()}},b=function(y){_.call(y.data)};(!f||!d)&&(f=function(E){for(var c=[],C=1;arguments.length>C;)c.push(arguments[C++]);return l[++r]=function(){h(typeof E=="function"?E:Function(E),c)},s(r),r},d=function(E){delete l[E]},S("./_cof")(a)=="process"?s=function(y){a.nextTick(w(_,y,1))}:o&&o.now?s=function(y){o.now(w(_,y,1))}:u?(e=new u,i=e.port2,e.port1.onmessage=b,s=w(i.postMessage,i,1)):g.addEventListener&&typeof postMessage=="function"&&!g.importScripts?(s=function(y){g.postMessage(y+"","*")},g.addEventListener("message",b,!1)):n in m("script")?s=function(y){I.appendChild(m("script"))[n]=function(){I.removeChild(this),_.call(y)}}:s=function(y){setTimeout(w(_,y,1),0)}),F.exports={set:f,clear:d}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(S,F,v){var w=S("./_to-integer"),h=Math.max,I=Math.min;F.exports=function(m,g){return m=w(m),m<0?h(m+g,0):I(m,g)}},{"./_to-integer":157}],157:[function(S,F,v){var w=Math.ceil,h=Math.floor;F.exports=function(I){return isNaN(I=+I)?0:(I>0?h:w)(I)}},{}],158:[function(S,F,v){var w=S("./_iobject"),h=S("./_defined");F.exports=function(I){return w(h(I))}},{"./_defined":102,"./_iobject":116}],159:[function(S,F,v){var w=S("./_to-integer"),h=Math.min;F.exports=function(I){return I>0?h(w(I),9007199254740991):0}},{"./_to-integer":157}],160:[function(S,F,v){var w=S("./_defined");F.exports=function(h){return Object(w(h))}},{"./_defined":102}],161:[function(S,F,v){var w=S("./_is-object");F.exports=function(h,I){if(!w(h))return h;var m,g;if(I&&typeof(m=h.toString)=="function"&&!w(g=m.call(h)))return g;if(typeof(m=h.valueOf)=="function"&&!w(g=m.call(h)))return g;if(!I&&typeof(m=h.toString)=="function"&&!w(g=m.call(h)))return g;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(S,F,v){var w=0,h=Math.random();F.exports=function(I){return"Symbol(".concat(I===void 0?"":I,")_",(++w+h).toString(36))}},{}],163:[function(S,F,v){var w=S("./_global"),h=w.navigator;F.exports=h&&h.userAgent||""},{"./_global":110}],164:[function(S,F,v){var w=S("./_global"),h=S("./_core"),I=S("./_library"),m=S("./_wks-ext"),g=S("./_object-dp").f;F.exports=function(a){var f=h.Symbol||(h.Symbol=I?{}:w.Symbol||{});a.charAt(0)!="_"&&!(a in f)&&g(f,a,{value:m.f(a)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(S,F,v){v.f=S("./_wks")},{"./_wks":166}],166:[function(S,F,v){var w=S("./_shared")("wks"),h=S("./_uid"),I=S("./_global").Symbol,m=typeof I=="function",g=F.exports=function(a){return w[a]||(w[a]=m&&I[a]||(m?I:h)("Symbol."+a))};g.store=w},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(S,F,v){var w=S("./_classof"),h=S("./_wks")("iterator"),I=S("./_iterators");F.exports=S("./_core").getIteratorMethod=function(m){if(m!=null)return m[h]||m["@@iterator"]||I[w(m)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(S,F,v){"use strict";var w=S("./_ctx"),h=S("./_export"),I=S("./_to-object"),m=S("./_iter-call"),g=S("./_is-array-iter"),a=S("./_to-length"),f=S("./_create-property"),d=S("./core.get-iterator-method");h(h.S+h.F*!S("./_iter-detect")(function(u){Array.from(u)}),"Array",{from:function(o){var r=I(o),l=typeof this=="function"?this:Array,n=arguments.length,s=n>1?arguments[1]:void 0,e=s!==void 0,i=0,_=d(r),b,y,E,c;if(e&&(s=w(s,n>2?arguments[2]:void 0,2)),_!=null&&!(l==Array&&g(_)))for(c=_.call(r),y=new l;!(E=c.next()).done;i++)f(y,i,e?m(c,s,[E.value,i],!0):E.value);else for(b=a(r.length),y=new l(b);b>i;i++)f(y,i,e?s(r[i],i):r[i]);return y.length=i,y}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(S,F,v){"use strict";var w=S("./_add-to-unscopables"),h=S("./_iter-step"),I=S("./_iterators"),m=S("./_to-iobject");F.exports=S("./_iter-define")(Array,"Array",function(g,a){this._t=m(g),this._i=0,this._k=a},function(){var g=this._t,a=this._k,f=this._i++;return!g||f>=g.length?(this._t=void 0,h(1)):a=="keys"?h(0,f):a=="values"?h(0,g[f]):h(0,[f,g[f]])},"values"),I.Arguments=I.Array,w("keys"),w("values"),w("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(S,F,v){"use strict";var w=S("./_is-object"),h=S("./_object-gpo"),I=S("./_wks")("hasInstance"),m=Function.prototype;I in m||S("./_object-dp").f(m,I,{value:function(g){if(typeof this!="function"||!w(g))return!1;if(!w(this.prototype))return g instanceof this;for(;g=h(g);)if(this.prototype===g)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(S,F,v){var w=S("./_export");w(w.S+w.F,"Object",{assign:S("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(S,F,v){var w=S("./_export");w(w.S,"Object",{create:S("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(S,F,v){var w=S("./_export");w(w.S+w.F*!S("./_descriptors"),"Object",{defineProperty:S("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(S,F,v){S("./_object-sap")("getOwnPropertyNames",function(){return S("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(S,F,v){var w=S("./_to-object"),h=S("./_object-gpo");S("./_object-sap")("getPrototypeOf",function(){return function(m){return h(w(m))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(S,F,v){var w=S("./_to-object"),h=S("./_object-keys");S("./_object-sap")("keys",function(){return function(m){return h(w(m))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(S,F,v){arguments[4][71][0].apply(v,arguments)},{dup:71}],178:[function(S,F,v){"use strict";var w=S("./_library"),h=S("./_global"),I=S("./_ctx"),m=S("./_classof"),g=S("./_export"),a=S("./_is-object"),f=S("./_a-function"),d=S("./_an-instance"),u=S("./_for-of"),o=S("./_species-constructor"),r=S("./_task").set,l=S("./_microtask")(),n=S("./_new-promise-capability"),s=S("./_perform"),e=S("./_user-agent"),i=S("./_promise-resolve"),_="Promise",b=h.TypeError,y=h.process,E=y&&y.versions,c=E&&E.v8||"",C=h[_],x=m(y)=="process",M=function(){},k,T,R,P,B=T=n.f,W=!!function(){try{var D=C.resolve(1),j=(D.constructor={})[S("./_wks")("species")]=function(Z){Z(M,M)};return(x||typeof PromiseRejectionEvent=="function")&&D.then(M)instanceof j&&c.indexOf("6.6")!==0&&e.indexOf("Chrome/66")===-1}catch(Z){}}(),z=function(D){var j;return a(D)&&typeof(j=D.then)=="function"?j:!1},H=function(D,j){if(D._n)return;D._n=!0;var Z=D._c;l(function(){for(var ie=D._v,pe=D._s==1,Ee=0,De=function(q){var be=pe?q.ok:q.fail,ye=q.resolve,le=q.reject,ue=q.domain,ne,xe,$;try{be?(pe||(D._h==2&&U(D),D._h=1),be===!0?ne=ie:(ue&&ue.enter(),ne=be(ie),ue&&(ue.exit(),$=!0)),ne===q.promise?le(b("Promise-chain cycle")):(xe=z(ne))?xe.call(ne,ye,le):ye(ne)):le(ie)}catch(oe){ue&&!$&&ue.exit(),le(oe)}};Z.length>Ee;)De(Z[Ee++]);D._c=[],D._n=!1,j&&!D._h&&ee(D)})},ee=function(D){r.call(h,function(){var j=D._v,Z=G(D),ie,pe,Ee;if(Z&&(ie=s(function(){x?y.emit("unhandledRejection",j,D):(pe=h.onunhandledrejection)?pe({promise:D,reason:j}):(Ee=h.console)&&Ee.error&&Ee.error("Unhandled promise rejection",j)}),D._h=x||G(D)?2:1),D._a=void 0,Z&&ie.e)throw ie.v})},G=function(D){return D._h!==1&&(D._a||D._c).length===0},U=function(D){r.call(h,function(){var j;x?y.emit("rejectionHandled",D):(j=h.onrejectionhandled)&&j({promise:D,reason:D._v})})},K=function(D){var j=this;if(j._d)return;j._d=!0,j=j._w||j,j._v=D,j._s=2,j._a||(j._a=j._c.slice()),H(j,!0)},L=function(D){var j=this,Z;if(j._d)return;j._d=!0,j=j._w||j;try{if(j===D)throw b("Promise can't be resolved itself");(Z=z(D))?l(function(){var ie={_w:j,_d:!1};try{Z.call(D,I(L,ie,1),I(K,ie,1))}catch(pe){K.call(ie,pe)}}):(j._v=D,j._s=1,H(j,!1))}catch(ie){K.call({_w:j,_d:!1},ie)}};W||(C=function(j){d(this,C,_,"_h"),f(j),k.call(this);try{j(I(L,this,1),I(K,this,1))}catch(Z){K.call(this,Z)}},k=function(j){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},k.prototype=S("./_redefine-all")(C.prototype,{then:function(j,Z){var ie=B(o(this,C));return ie.ok=typeof j=="function"?j:!0,ie.fail=typeof Z=="function"&&Z,ie.domain=x?y.domain:void 0,this._c.push(ie),this._a&&this._a.push(ie),this._s&&H(this,!1),ie.promise},catch:function(D){return this.then(void 0,D)}}),R=function(){var D=new k;this.promise=D,this.resolve=I(L,D,1),this.reject=I(K,D,1)},n.f=B=function(D){return D===C||D===P?new R(D):T(D)}),g(g.G+g.W+g.F*!W,{Promise:C}),S("./_set-to-string-tag")(C,_),S("./_set-species")(_),P=S("./_core")[_],g(g.S+g.F*!W,_,{reject:function(j){var Z=B(this),ie=Z.reject;return ie(j),Z.promise}}),g(g.S+g.F*(w||!W),_,{resolve:function(j){return i(w&&this===P?C:this,j)}}),g(g.S+g.F*!(W&&S("./_iter-detect")(function(D){C.all(D).catch(M)})),_,{all:function(j){var Z=this,ie=B(Z),pe=ie.resolve,Ee=ie.reject,De=s(function(){var q=[],be=0,ye=1;u(j,!1,function(le){var ue=be++,ne=!1;q.push(void 0),ye++,Z.resolve(le).then(function(xe){if(ne)return;ne=!0,q[ue]=xe,--ye||pe(q)},Ee)}),--ye||pe(q)});return De.e&&Ee(De.v),ie.promise},race:function(j){var Z=this,ie=B(Z),pe=ie.reject,Ee=s(function(){u(j,!1,function(De){Z.resolve(De).then(ie.resolve,pe)})});return Ee.e&&pe(Ee.v),ie.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(S,F,v){var w=S("./_export"),h=S("./_to-absolute-index"),I=String.fromCharCode,m=String.fromCodePoint;w(w.S+w.F*(!!m&&m.length!=1),"String",{fromCodePoint:function(a){for(var f=[],d=arguments.length,u=0,o;d>u;){if(o=+arguments[u++],h(o,1114111)!==o)throw RangeError(o+" is not a valid code point");f.push(o<65536?I(o):I(((o-=65536)>>10)+55296,o%1024+56320))}return f.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(S,F,v){"use strict";var w=S("./_string-at")(!0);S("./_iter-define")(String,"String",function(h){this._t=String(h),this._i=0},function(){var h=this._t,I=this._i,m;return I>=h.length?{value:void 0,done:!0}:(m=w(h,I),this._i+=m.length,{value:m,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(S,F,v){"use strict";var w=S("./_global"),h=S("./_has"),I=S("./_descriptors"),m=S("./_export"),g=S("./_redefine"),a=S("./_meta").KEY,f=S("./_fails"),d=S("./_shared"),u=S("./_set-to-string-tag"),o=S("./_uid"),r=S("./_wks"),l=S("./_wks-ext"),n=S("./_wks-define"),s=S("./_enum-keys"),e=S("./_is-array"),i=S("./_an-object"),_=S("./_is-object"),b=S("./_to-object"),y=S("./_to-iobject"),E=S("./_to-primitive"),c=S("./_property-desc"),C=S("./_object-create"),x=S("./_object-gopn-ext"),M=S("./_object-gopd"),k=S("./_object-gops"),T=S("./_object-dp"),R=S("./_object-keys"),P=M.f,B=T.f,W=x.f,z=w.Symbol,H=w.JSON,ee=H&&H.stringify,G="prototype",U=r("_hidden"),K=r("toPrimitive"),L={}.propertyIsEnumerable,D=d("symbol-registry"),j=d("symbols"),Z=d("op-symbols"),ie=Object[G],pe=typeof z=="function"&&!!k.f,Ee=w.QObject,De=!Ee||!Ee[G]||!Ee[G].findChild,q=I&&f(function(){return C(B({},"a",{get:function(){return B(this,"a",{value:7}).a}})).a!=7})?function(he,Ce,Pe){var de=P(ie,Ce);de&&delete ie[Ce],B(he,Ce,Pe),de&&he!==ie&&B(ie,Ce,de)}:B,be=function(he){var Ce=j[he]=C(z[G]);return Ce._k=he,Ce},ye=pe&&typeof z.iterator=="symbol"?function(he){return typeof he=="symbol"}:function(he){return he instanceof z},le=function(Ce,Pe,de){return Ce===ie&&le(Z,Pe,de),i(Ce),Pe=E(Pe,!0),i(de),h(j,Pe)?(de.enumerable?(h(Ce,U)&&Ce[U][Pe]&&(Ce[U][Pe]=!1),de=C(de,{enumerable:c(0,!1)})):(h(Ce,U)||B(Ce,U,c(1,{})),Ce[U][Pe]=!0),q(Ce,Pe,de)):B(Ce,Pe,de)},ue=function(Ce,Pe){i(Ce);for(var de=s(Pe=y(Pe)),ke=0,me=de.length,Be;me>ke;)le(Ce,Be=de[ke++],Pe[Be]);return Ce},ne=function(Ce,Pe){return Pe===void 0?C(Ce):ue(C(Ce),Pe)},xe=function(Ce){var Pe=L.call(this,Ce=E(Ce,!0));return this===ie&&h(j,Ce)&&!h(Z,Ce)?!1:Pe||!h(this,Ce)||!h(j,Ce)||h(this,U)&&this[U][Ce]?Pe:!0},$=function(Ce,Pe){if(Ce=y(Ce),Pe=E(Pe,!0),Ce===ie&&h(j,Pe)&&!h(Z,Pe))return;var de=P(Ce,Pe);return de&&h(j,Pe)&&!(h(Ce,U)&&Ce[U][Pe])&&(de.enumerable=!0),de},oe=function(Ce){for(var Pe=W(y(Ce)),de=[],ke=0,me;Pe.length>ke;)!h(j,me=Pe[ke++])&&me!=U&&me!=a&&de.push(me);return de},Le=function(Ce){for(var Pe=Ce===ie,de=W(Pe?Z:y(Ce)),ke=[],me=0,Be;de.length>me;)h(j,Be=de[me++])&&(Pe?h(ie,Be):!0)&&ke.push(j[Be]);return ke};pe||(z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor!");var Ce=o(arguments.length>0?arguments[0]:void 0),Pe=function(de){this===ie&&Pe.call(Z,de),h(this,U)&&h(this[U],Ce)&&(this[U][Ce]=!1),q(this,Ce,c(1,de))};return I&&De&&q(ie,Ce,{configurable:!0,set:Pe}),be(Ce)},g(z[G],"toString",function(){return this._k}),M.f=$,T.f=le,S("./_object-gopn").f=x.f=oe,S("./_object-pie").f=xe,k.f=Le,I&&!S("./_library")&&g(ie,"propertyIsEnumerable",xe,!0),l.f=function(he){return be(r(he))}),m(m.G+m.W+m.F*!pe,{Symbol:z});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Y=0;te.length>Y;)r(te[Y++]);for(var X=R(r.store),J=0;X.length>J;)n(X[J++]);m(m.S+m.F*!pe,"Symbol",{for:function(he){return h(D,he+="")?D[he]:D[he]=z(he)},keyFor:function(Ce){if(!ye(Ce))throw TypeError(Ce+" is not a symbol!");for(var Pe in D)if(D[Pe]===Ce)return Pe},useSetter:function(){De=!0},useSimple:function(){De=!1}}),m(m.S+m.F*!pe,"Object",{create:ne,defineProperty:le,defineProperties:ue,getOwnPropertyDescriptor:$,getOwnPropertyNames:oe,getOwnPropertySymbols:Le});var ve=f(function(){k.f(1)});m(m.S+m.F*ve,"Object",{getOwnPropertySymbols:function(Ce){return k.f(b(Ce))}}),H&&m(m.S+m.F*(!pe||f(function(){var he=z();return ee([he])!="[null]"||ee({a:he})!="{}"||ee(Object(he))!="{}"})),"JSON",{stringify:function(Ce){for(var Pe=[Ce],de=1,ke,me;arguments.length>de;)Pe.push(arguments[de++]);return me=ke=Pe[1],!_(ke)&&Ce===void 0||ye(Ce)?void 0:(e(ke)||(ke=function(Be,ft){if(typeof me=="function"&&(ft=me.call(this,Be,ft)),!ye(ft))return ft}),Pe[1]=ke,ee.apply(H,Pe))}}),z[G][K]||S("./_hide")(z[G],K,z[G].valueOf),u(z,"Symbol"),u(Math,"Math",!0),u(w.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(S,F,v){var w=S("./_export"),h=S("./_object-to-array")(!0);w(w.S,"Object",{entries:function(m){return h(m)}})},{"./_export":107,"./_object-to-array":143}],183:[function(S,F,v){"use strict";var w=S("./_export"),h=S("./_core"),I=S("./_global"),m=S("./_species-constructor"),g=S("./_promise-resolve");w(w.P+w.R,"Promise",{finally:function(a){var f=m(this,h.Promise||I.Promise),d=typeof a=="function";return this.then(d?function(u){return g(f,a()).then(function(){return u})}:a,d?function(u){return g(f,a()).then(function(){throw u})}:a)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(S,F,v){"use strict";var w=S("./_export"),h=S("./_new-promise-capability"),I=S("./_perform");w(w.S,"Promise",{try:function(m){var g=h.f(this),a=I(m);return(a.e?g.reject:g.resolve)(a.v),g.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(S,F,v){S("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(S,F,v){S("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(S,F,v){S("./es6.array.iterator");for(var w=S("./_global"),h=S("./_hide"),I=S("./_iterators"),m=S("./_wks")("toStringTag"),g="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a<g.length;a++){var f=g[a],d=w[f],u=d&&d.prototype;u&&!u[m]&&h(u,m,f),I[f]=I.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(S,F,v){var w=S("./_export"),h=S("./_task");w(w.G+w.B,{setImmediate:h.set,clearImmediate:h.clear})},{"./_export":107,"./_task":155}],189:[function(S,F,v){(function(w){"use strict";var h=S("babel-runtime/helpers/typeof"),I=m(h);function m(E){return E&&E.__esModule?E:{default:E}}function g(E){return Array.isArray?Array.isArray(E):y(E)==="[object Array]"}v.isArray=g;function a(E){return typeof E=="boolean"}v.isBoolean=a;function f(E){return E===null}v.isNull=f;function d(E){return E==null}v.isNullOrUndefined=d;function u(E){return typeof E=="number"}v.isNumber=u;function o(E){return typeof E=="string"}v.isString=o;function r(E){return(typeof E=="undefined"?"undefined":(0,I.default)(E))==="symbol"}v.isSymbol=r;function l(E){return E===void 0}v.isUndefined=l;function n(E){return y(E)==="[object RegExp]"}v.isRegExp=n;function s(E){return(typeof E=="undefined"?"undefined":(0,I.default)(E))==="object"&&E!==null}v.isObject=s;function e(E){return y(E)==="[object Date]"}v.isDate=e;function i(E){return y(E)==="[object Error]"||E instanceof Error}v.isError=i;function _(E){return typeof E=="function"}v.isFunction=_;function b(E){return E===null||typeof E=="boolean"||typeof E=="number"||typeof E=="string"||(typeof E=="undefined"?"undefined":(0,I.default)(E))==="symbol"||typeof E=="undefined"}v.isPrimitive=b,v.isBuffer=w.isBuffer;function y(E){return Object.prototype.toString.call(E)}}).call(this,{isBuffer:S("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(S,F,v){"use strict";var w=S("babel-runtime/helpers/typeof"),h=I(w);function I(m){return m&&m.__esModule?m:{default:m}}(function(m){"use strict";var g=function(){var o=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,r=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,l=/[^-+\dA-Z]/g;return function(n,s,e,i){if(arguments.length===1&&u(n)==="string"&&!/\d/.test(n)&&(s=n,n=void 0),n=n||new Date,n instanceof Date||(n=new Date(n)),isNaN(n))throw TypeError("Invalid date");s=String(g.masks[s]||s||g.masks.default);var _=s.slice(0,4);(_==="UTC:"||_==="GMT:")&&(s=s.slice(4),e=!0,_==="GMT:"&&(i=!0));var b=e?"getUTC":"get",y=n[b+"Date"](),E=n[b+"Day"](),c=n[b+"Month"](),C=n[b+"FullYear"](),x=n[b+"Hours"](),M=n[b+"Minutes"](),k=n[b+"Seconds"](),T=n[b+"Milliseconds"](),R=e?0:n.getTimezoneOffset(),P=f(n),B=d(n),W={d:y,dd:a(y),ddd:g.i18n.dayNames[E],dddd:g.i18n.dayNames[E+7],m:c+1,mm:a(c+1),mmm:g.i18n.monthNames[c],mmmm:g.i18n.monthNames[c+12],yy:String(C).slice(2),yyyy:C,h:x%12||12,hh:a(x%12||12),H:x,HH:a(x),M,MM:a(M),s:k,ss:a(k),l:a(T,3),L:a(Math.round(T/10)),t:x<12?"a":"p",tt:x<12?"am":"pm",T:x<12?"A":"P",TT:x<12?"AM":"PM",Z:i?"GMT":e?"UTC":(String(n).match(r)||[""]).pop().replace(l,""),o:(R>0?"-":"+")+a(Math.floor(Math.abs(R)/60)*100+Math.abs(R)%60,4),S:["th","st","nd","rd"][y%10>3?0:(y%100-y%10!=10)*y%10],W:P,N:B};return s.replace(o,function(z){return z in W?W[z]:z.slice(1,z.length-1)})}}();g.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},g.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function a(o,r){for(o=String(o),r=r||2;o.length<r;)o="0"+o;return o}function f(o){var r=new Date(o.getFullYear(),o.getMonth(),o.getDate());r.setDate(r.getDate()-(r.getDay()+6)%7+3);var l=new Date(r.getFullYear(),0,4);l.setDate(l.getDate()-(l.getDay()+6)%7+3);var n=r.getTimezoneOffset()-l.getTimezoneOffset();r.setHours(r.getHours()-n);var s=(r-l)/(864e5*7);return 1+Math.floor(s)}function d(o){var r=o.getDay();return r===0&&(r=7),r}function u(o){return o===null?"null":o===void 0?"undefined":(typeof o=="undefined"?"undefined":(0,h.default)(o))!=="object"?typeof o=="undefined"?"undefined":(0,h.default)(o):Array.isArray(o)?"array":{}.toString.call(o).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return g}):(typeof v=="undefined"?"undefined":(0,h.default)(v))==="object"?F.exports=g:m.dateFormat=g})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(S,F,v){/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/"use strict";var w=/["'&<>]/;F.exports=h;function h(I){var m=""+I,g=w.exec(m);if(!g)return m;var a,f="",d=0,u=0;for(d=g.index;d<m.length;d++){switch(m.charCodeAt(d)){case 34:a="&quot;";break;case 38:a="&amp;";break;case 39:a="&#39;";break;case 60:a="&lt;";break;case 62:a="&gt;";break;default:continue}u!==d&&(f+=m.substring(u,d)),u=d+1,f+=a}return u!==d?f+m.substring(u,d):f}},{}],192:[function(S,F,v){function w(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}F.exports=w,w.EventEmitter=w,w.prototype._events=void 0,w.prototype._maxListeners=void 0,w.defaultMaxListeners=10,w.prototype.setMaxListeners=function(a){if(!I(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},w.prototype.emit=function(a){var f,d,u,o,r,l;if(this._events||(this._events={}),a==="error"&&(!this._events.error||m(this._events.error)&&!this._events.error.length)){if(f=arguments[1],f instanceof Error)throw f;var n=new Error('Uncaught, unspecified "error" event. ('+f+")");throw n.context=f,n}if(d=this._events[a],g(d))return!1;if(h(d))switch(arguments.length){case 1:d.call(this);break;case 2:d.call(this,arguments[1]);break;case 3:d.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),d.apply(this,o)}else if(m(d))for(o=Array.prototype.slice.call(arguments,1),l=d.slice(),u=l.length,r=0;r<u;r++)l[r].apply(this,o);return!0},w.prototype.addListener=function(a,f){var d;if(!h(f))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,h(f.listener)?f.listener:f),this._events[a]?m(this._events[a])?this._events[a].push(f):this._events[a]=[this._events[a],f]:this._events[a]=f,m(this._events[a])&&!this._events[a].warned&&(g(this._maxListeners)?d=w.defaultMaxListeners:d=this._maxListeners,d&&d>0&&this._events[a].length>d&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),typeof console.trace=="function"&&console.trace())),this},w.prototype.on=w.prototype.addListener,w.prototype.once=function(a,f){if(!h(f))throw TypeError("listener must be a function");var d=!1;function u(){this.removeListener(a,u),d||(d=!0,f.apply(this,arguments))}return u.listener=f,this.on(a,u),this},w.prototype.removeListener=function(a,f){var d,u,o,r;if(!h(f))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(d=this._events[a],o=d.length,u=-1,d===f||h(d.listener)&&d.listener===f)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,f);else if(m(d)){for(r=o;r-- >0;)if(d[r]===f||d[r].listener&&d[r].listener===f){u=r;break}if(u<0)return this;d.length===1?(d.length=0,delete this._events[a]):d.splice(u,1),this._events.removeListener&&this.emit("removeListener",a,f)}return this},w.prototype.removeAllListeners=function(a){var f,d;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[a]&&delete this._events[a],this;if(arguments.length===0){for(f in this._events){if(f==="removeListener")continue;this.removeAllListeners(f)}return this.removeAllListeners("removeListener"),this._events={},this}if(d=this._events[a],h(d))this.removeListener(a,d);else if(d)for(;d.length;)this.removeListener(a,d[d.length-1]);return delete this._events[a],this},w.prototype.listeners=function(a){var f;return!this._events||!this._events[a]?f=[]:h(this._events[a])?f=[this._events[a]]:f=this._events[a].slice(),f},w.prototype.listenerCount=function(a){if(this._events){var f=this._events[a];if(h(f))return 1;if(f)return f.length}return 0},w.listenerCount=function(a,f){return a.listenerCount(f)};function h(a){return typeof a=="function"}function I(a){return typeof a=="number"}function m(a){return typeof a=="object"&&a!==null}function g(a){return a===void 0}},{}],193:[function(S,F,v){var w=S("http"),h=F.exports;for(var I in w)w.hasOwnProperty(I)&&(h[I]=w[I]);h.request=function(m,g){return m||(m={}),m.scheme="https",m.protocol="https:",w.request.call(this,m,g)}},{http:231}],194:[function(S,F,v){/*!
* humanize-ms - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var w=S("util"),h=S("ms");F.exports=function(I){if(typeof I=="number")return I;var m=h(I);if(m===void 0){var g=new Error(w.format("humanize-ms(%j) result undefined",I));console.warn(g.stack)}return m}},{ms:204,util:243}],195:[function(S,F,v){v.read=function(w,h,I,m,g){var a,f,d=g*8-m-1,u=(1<<d)-1,o=u>>1,r=-7,l=I?g-1:0,n=I?-1:1,s=w[h+l];for(l+=n,a=s&(1<<-r)-1,s>>=-r,r+=d;r>0;a=a*256+w[h+l],l+=n,r-=8);for(f=a&(1<<-r)-1,a>>=-r,r+=m;r>0;f=f*256+w[h+l],l+=n,r-=8);if(a===0)a=1-o;else{if(a===u)return f?NaN:(s?-1:1)*Infinity;f=f+Math.pow(2,m),a=a-o}return(s?-1:1)*f*Math.pow(2,a-m)},v.write=function(w,h,I,m,g,a){var f,d,u,o=a*8-g-1,r=(1<<o)-1,l=r>>1,n=g===23?Math.pow(2,-24)-Math.pow(2,-77):0,s=m?0:a-1,e=m?1:-1,i=h<0||h===0&&1/h<0?1:0;for(h=Math.abs(h),isNaN(h)||h===Infinity?(d=isNaN(h)?1:0,f=r):(f=Math.floor(Math.log(h)/Math.LN2),h*(u=Math.pow(2,-f))<1&&(f--,u*=2),f+l>=1?h+=n/u:h+=n*Math.pow(2,1-l),h*u>=2&&(f++,u/=2),f+l>=r?(d=0,f=r):f+l>=1?(d=(h*u-1)*Math.pow(2,g),f=f+l):(d=h*Math.pow(2,l-1)*Math.pow(2,g),f=0));g>=8;w[I+s]=d&255,s+=e,d/=256,g-=8);for(f=f<<g|d,o+=g;o>0;w[I+s]=f&255,s+=e,f/=256,o-=8);w[I+s-e]|=i*128}},{}],196:[function(S,F,v){typeof Object.create=="function"?F.exports=function(h,I){I&&(h.super_=I,h.prototype=Object.create(I.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}))}:F.exports=function(h,I){if(I){h.super_=I;var m=function(){};m.prototype=I.prototype,h.prototype=new m,h.prototype.constructor=h}}},{}],197:[function(S,F,v){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/F.exports=function(I){return I!=null&&(w(I)||h(I)||!!I._isBuffer)};function w(I){return!!I.constructor&&typeof I.constructor.isBuffer=="function"&&I.constructor.isBuffer(I)}function h(I){return typeof I.readFloatLE=="function"&&typeof I.slice=="function"&&w(I.slice(0,0))}},{}],198:[function(S,F,v){var w={}.toString;F.exports=Array.isArray||function(h){return w.call(h)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(S,F){typeof exports=="object"&&typeof module!="undefined"?module.exports=F(S):typeof define=="function"&&define.amd?define(F):F(S)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(S){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(S){for(var F={},v=0,w=S.length;v<w;v++)F[S.charAt(v)]=v;return F}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(S){if(S.length<2){var F=S.charCodeAt(0);return F<128?S:F<2048?fromCharCode(192|F>>>6)+fromCharCode(128|F&63):fromCharCode(224|F>>>12&15)+fromCharCode(128|F>>>6&63)+fromCharCode(128|F&63)}else{var F=65536+(S.charCodeAt(0)-55296)*1024+(S.charCodeAt(1)-56320);return fromCharCode(240|F>>>18&7)+fromCharCode(128|F>>>12&63)+fromCharCode(128|F>>>6&63)+fromCharCode(128|F&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(S){return S.replace(re_utob,cb_utob)},cb_encode=function(S){var F=[0,2,1][S.length%3],v=S.charCodeAt(0)<<16|(S.length>1?S.charCodeAt(1):0)<<8|(S.length>2?S.charCodeAt(2):0),w=[b64chars.charAt(v>>>18),b64chars.charAt(v>>>12&63),F>=2?"=":b64chars.charAt(v>>>6&63),F>=1?"=":b64chars.charAt(v&63)];return w.join("")},btoa=global.btoa?function(S){return global.btoa(S)}:function(S){return S.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(S){var F=Object.prototype.toString.call(S)==="[object Uint8Array]";return F?S.toString("base64"):btoa(utob(String(S)))},encode=function(S,F){return F?_encode(String(S)).replace(/[+\/]/g,function(v){return v=="+"?"-":"_"}).replace(/=/g,""):_encode(S)},encodeURI=function(S){return encode(S,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(S){switch(S.length){case 4:var F=(7&S.charCodeAt(0))<<18|(63&S.charCodeAt(1))<<12|(63&S.charCodeAt(2))<<6|63&S.charCodeAt(3),v=F-65536;return fromCharCode((v>>>10)+55296)+fromCharCode((v&1023)+56320);case 3:return fromCharCode((15&S.charCodeAt(0))<<12|(63&S.charCodeAt(1))<<6|63&S.charCodeAt(2));default:return fromCharCode((31&S.charCodeAt(0))<<6|63&S.charCodeAt(1))}},btou=function(S){return S.replace(re_btou,cb_btou)},cb_decode=function(S){var F=S.length,v=F%4,w=(F>0?b64tab[S.charAt(0)]<<18:0)|(F>1?b64tab[S.charAt(1)]<<12:0)|(F>2?b64tab[S.charAt(2)]<<6:0)|(F>3?b64tab[S.charAt(3)]:0),h=[fromCharCode(w>>>16),fromCharCode(w>>>8&255),fromCharCode(w&255)];return h.length-=[0,0,2,1][v],h.join("")},_atob=global.atob?function(S){return global.atob(S)}:function(S){return S.replace(/\S{1,4}/g,cb_decode)},atob=function(S){return _atob(String(S).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(S){return(S.constructor===buffer.constructor?S:buffer.from(S,"base64")).toString()}:function(S){return(S.constructor===buffer.constructor?S:new buffer(S,"base64")).toString()}:function(S){return btou(_atob(S))},decode=function(S){return _decode(String(S).replace(/[-_]/g,function(F){return F=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var S=global.Base64;return global.Base64=_Base64,S};if(global.Base64={VERSION:version,atob,btoa,fromBase64:decode,toBase64:encode,utob,encode,encodeURI,btou,decode,noConflict,__buffer__:buffer},typeof Object.defineProperty=="function"){var noEnum=function(S){return{value:S,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(S){return encode(this,S)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports?module.exports.Base64=global.Base64:typeof define=="function"&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}})}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],200:[function(S,F,v){/*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/"use strict";F.exports=h;var w=Object.prototype.hasOwnProperty;function h(I,m,g){if(!I)throw new TypeError("argument dest is required");if(!m)throw new TypeError("argument src is required");return g===void 0&&(g=!0),Object.getOwnPropertyNames(m).forEach(function(f){if(!g&&w.call(I,f))return;var d=Object.getOwnPropertyDescriptor(m,f);Object.defineProperty(I,f,d)}),I}},{}],201:[function(S,F,v){"use strict";function w(){this._types=Object.create(null),this._extensions=Object.create(null);for(var h=0;h<arguments.length;h++)this.define(arguments[h]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}w.prototype.define=function(h,I){for(var m in h){var g=h[m].map(function(d){return d.toLowerCase()});m=m.toLowerCase();for(var a=0;a<g.length;a++){var f=g[a];if(f[0]=="*")continue;if(!I&&f in this._types)throw new Error('Attempt to change mapping for "'+f+'" extension from "'+this._types[f]+'" to "'+m+'". Pass `force=true` to allow this, otherwise remove "'+f+'" from the list of extensions for "'+m+'".');this._types[f]=m}if(I||!this._extensions[m]){var f=g[0];this._extensions[m]=f[0]!="*"?f:f.substr(1)}}},w.prototype.getType=function(h){h=String(h);var I=h.replace(/^.*[/\\]/,"").toLowerCase(),m=I.replace(/^.*\./,"").toLowerCase(),g=I.length<h.length,a=m.length<I.length-1;return(a||!g)&&this._types[m]||null},w.prototype.getExtension=function(h){return h=/^\s*([^;\s]*)/.test(h)&&RegExp.$1,h&&this._extensions[h.toLowerCase()]||null},F.exports=w},{}],202:[function(S,F,v){"use strict";var w=S("./Mime");F.exports=new w(S("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(S,F,v){F.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],204:[function(S,F,v){var w=1e3,h=w*60,I=h*60,m=I*24,g=m*7,a=m*365.25;F.exports=function(r,l){l=l||{};var n=typeof r;if(n==="string"&&r.length>0)return f(r);if(n==="number"&&isFinite(r))return l.long?u(r):d(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function f(r){if(r=String(r),r.length>100)return;var l=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(!l)return;var n=parseFloat(l[1]),s=(l[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return n*a;case"weeks":case"week":case"w":return n*g;case"days":case"day":case"d":return n*m;case"hours":case"hour":case"hrs":case"hr":case"h":return n*I;case"minutes":case"minute":case"mins":case"min":case"m":return n*h;case"seconds":case"second":case"secs":case"sec":case"s":return n*w;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}function d(r){var l=Math.abs(r);return l>=m?Math.round(r/m)+"d":l>=I?Math.round(r/I)+"h":l>=h?Math.round(r/h)+"m":l>=w?Math.round(r/w)+"s":r+"ms"}function u(r){var l=Math.abs(r);return l>=m?o(r,l,m,"day"):l>=I?o(r,l,I,"hour"):l>=h?o(r,l,h,"minute"):l>=w?o(r,l,w,"second"):r+" ms"}function o(r,l,n,s){var e=l>=n*1.5;return Math.round(r/n)+" "+s+(e?"s":"")}},{}],205:[function(S,F,v){(function(w){function h(a,f){for(var d=0,u=a.length-1;u>=0;u--){var o=a[u];o==="."?a.splice(u,1):o===".."?(a.splice(u,1),d++):d&&(a.splice(u,1),d--)}if(f)for(;d--;d)a.unshift("..");return a}v.resolve=function(){for(var a="",f=!1,d=arguments.length-1;d>=-1&&!f;d--){var u=d>=0?arguments[d]:w.cwd();if(typeof u!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!u)continue;a=u+"/"+a,f=u.charAt(0)==="/"}return a=h(m(a.split("/"),function(o){return!!o}),!f).join("/"),(f?"/":"")+a||"."},v.normalize=function(a){var f=v.isAbsolute(a),d=g(a,-1)==="/";return a=h(m(a.split("/"),function(u){return!!u}),!f).join("/"),!a&&!f&&(a="."),a&&d&&(a+="/"),(f?"/":"")+a},v.isAbsolute=function(a){return a.charAt(0)==="/"},v.join=function(){var a=Array.prototype.slice.call(arguments,0);return v.normalize(m(a,function(f,d){if(typeof f!="string")throw new TypeError("Arguments to path.join must be strings");return f}).join("/"))},v.relative=function(a,f){a=v.resolve(a).substr(1),f=v.resolve(f).substr(1);function d(e){for(var i=0;i<e.length&&!(e[i]!=="");i++);for(var _=e.length-1;_>=0&&!(e[_]!=="");_--);return i>_?[]:e.slice(i,_-i+1)}for(var u=d(a.split("/")),o=d(f.split("/")),r=Math.min(u.length,o.length),l=r,n=0;n<r;n++)if(u[n]!==o[n]){l=n;break}for(var s=[],n=l;n<u.length;n++)s.push("..");return s=s.concat(o.slice(l)),s.join("/")},v.sep="/",v.delimiter=":",v.dirname=function(a){if(typeof a!="string"&&(a=a+""),a.length===0)return".";for(var f=a.charCodeAt(0),d=f===47,u=-1,o=!0,r=a.length-1;r>=1;--r)if(f=a.charCodeAt(r),f===47){if(!o){u=r;break}}else o=!1;return u===-1?d?"/":".":d&&u===1?"/":a.slice(0,u)};function I(a){typeof a!="string"&&(a=a+"");var f=0,d=-1,u=!0,o;for(o=a.length-1;o>=0;--o)if(a.charCodeAt(o)===47){if(!u){f=o+1;break}}else d===-1&&(u=!1,d=o+1);return d===-1?"":a.slice(f,d)}v.basename=function(a,f){var d=I(a);return f&&d.substr(-1*f.length)===f&&(d=d.substr(0,d.length-f.length)),d},v.extname=function(a){typeof a!="string"&&(a=a+"");for(var f=-1,d=0,u=-1,o=!0,r=0,l=a.length-1;l>=0;--l){var n=a.charCodeAt(l);if(n===47){if(!o){d=l+1;break}continue}u===-1&&(o=!1,u=l+1),n===46?f===-1?f=l:r!==1&&(r=1):f!==-1&&(r=-1)}return f===-1||u===-1||r===0||r===1&&f===u-1&&f===d+1?"":a.slice(f,u)};function m(a,f){if(a.filter)return a.filter(f);for(var d=[],u=0;u<a.length;u++)f(a[u],u,a)&&d.push(a[u]);return d}var g="ab".substr(-1)==="b"?function(a,f,d){return a.substr(f,d)}:function(a,f,d){return f<0&&(f=a.length+f),a.substr(f,d)}}).call(this,S("_process"))},{_process:208}],206:[function(S,F,v){(function(w){/*!
* Platform.js <https://mths.be/platform>
* Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
* Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
* Available under MIT license <https://mths.be/mit>
*/(function(){"use strict";var h={function:!0,object:!0},I=h[typeof window]&&window||this,m=I,g=h[typeof v]&&v,a=h[typeof F]&&F&&!F.nodeType&&F,f=g&&a&&typeof w=="object"&&w;f&&(f.global===f||f.window===f||f.self===f)&&(I=f);var d=Math.pow(2,53)-1,u=/\bOpera/,o=this,r=Object.prototype,l=r.hasOwnProperty,n=r.toString;function s(T){return T=String(T),T.charAt(0).toUpperCase()+T.slice(1)}function e(T,R,P){var B={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return R&&P&&/^Win/i.test(T)&&!/^Windows Phone /i.test(T)&&(B=B[/[\d.]+$/.exec(T)])&&(T="Windows "+B),T=String(T),R&&P&&(T=T.replace(RegExp(R,"i"),P)),T=_(T.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),T}function i(T,R){var P=-1,B=T?T.length:0;if(typeof B=="number"&&B>-1&&B<=d)for(;++P<B;)R(T[P],P,T);else b(T,R)}function _(T){return T=x(T),/^(?:webOS|i(?:OS|P))/.test(T)?T:s(T)}function b(T,R){for(var P in T)l.call(T,P)&&R(T[P],P,T)}function y(T){return T==null?s(T):n.call(T).slice(8,-1)}function E(T,R){var P=T!=null?typeof T[R]:"number";return!/^(?:boolean|number|string|undefined)$/.test(P)&&(P=="object"?!!T[R]:!0)}function c(T){return String(T).replace(/([ -])(?!$)/g,"$1?")}function C(T,R){var P=null;return i(T,function(B,W){P=R(P,B,W,T)}),P}function x(T){return String(T).replace(/^ +| +$/g,"")}function M(T){var R=I,P=T&&typeof T=="object"&&y(T)!="String";P&&(R=T,T=null);var B=R.navigator||{},W=B.userAgent||"";T||(T=W);var z=P||o==m,H=P?!!B.likeChrome:/\bChrome\b/.test(T)&&!/internal|\n/i.test(n.toString()),ee="Object",G=P?ee:"ScriptBridgingProxyObject",U=P?ee:"Environment",K=P&&R.java?"JavaPackage":y(R.java),L=P?ee:"RuntimeObject",D=/\bJava/.test(K)&&R.java,j=D&&y(R.environment)==U,Z=D?"a":"\u03B1",ie=D?"b":"\u03B2",pe=R.document||{},Ee=R.operamini||R.opera,De=u.test(De=P&&Ee?Ee["[[Class]]"]:y(Ee))?De:Ee=null,q,be=T,ye=[],le=null,ue=T==W,ne=ue&&Ee&&typeof Ee.version=="function"&&Ee.version(),xe,$=X([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),oe=ve(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Le=Ce([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),te=J({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),Y=he(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function X(me){return C(me,function(Be,ft){return Be||RegExp("\\b"+(ft.pattern||c(ft))+"\\b","i").exec(T)&&(ft.label||ft)})}function J(me){return C(me,function(Be,ft,vt){return Be||(ft[Le]||ft[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Le)]||RegExp("\\b"+c(vt)+"(?:\\b|\\w*\\d)","i").exec(T))&&vt})}function ve(me){return C(me,function(Be,ft){return Be||RegExp("\\b"+(ft.pattern||c(ft))+"\\b","i").exec(T)&&(ft.label||ft)})}function he(me){return C(me,function(Be,ft){var vt=ft.pattern||c(ft);return!Be&&(Be=RegExp("\\b"+vt+"(?:/[\\d.]+|[ \\w.]*)","i").exec(T))&&(Be=e(Be,vt,ft.label||ft)),Be})}function Ce(me){return C(me,function(Be,ft){var vt=ft.pattern||c(ft);return!Be&&(Be=RegExp("\\b"+vt+" *\\d+[.\\w_]*","i").exec(T)||RegExp("\\b"+vt+" *\\w+-[\\w]*","i").exec(T)||RegExp("\\b"+vt+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(T))&&((Be=String(ft.label&&!RegExp(vt,"i").test(ft.label)?ft.label:Be).split("/"))[1]&&!/[\d.]+/.test(Be[0])&&(Be[0]+=" "+Be[1]),ft=ft.label||ft,Be=_(Be[0].replace(RegExp(vt,"i"),ft).replace(RegExp("; *(?:"+ft+"[_-])?","i")," ").replace(RegExp("("+ft+")[-_.]?(\\w)","i"),"$1 $2"))),Be})}function Pe(me){return C(me,function(Be,ft){return Be||(RegExp(ft+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(T)||0)[1]||null})}function de(){return this.description||""}if($&&($=[$]),te&&!Le&&(Le=Ce([te])),(q=/\bGoogle TV\b/.exec(Le))&&(Le=q[0]),/\bSimulator\b/i.test(T)&&(Le=(Le?Le+" ":"")+"Simulator"),oe=="Opera Mini"&&/\bOPiOS\b/.test(T)&&ye.push("running in Turbo/Uncompressed mode"),oe=="IE"&&/\blike iPhone OS\b/.test(T)?(q=M(T.replace(/like iPhone OS/,"")),te=q.manufacturer,Le=q.product):/^iP/.test(Le)?(oe||(oe="Safari"),Y="iOS"+((q=/ OS ([\d_]+)/i.exec(T))?" "+q[1].replace(/_/g,"."):"")):oe=="Konqueror"&&!/buntu/i.test(Y)?Y="Kubuntu":te&&te!="Google"&&(/Chrome/.test(oe)&&!/\bMobile Safari\b/i.test(T)||/\bVita\b/.test(Le))||/\bAndroid\b/.test(Y)&&/^Chrome/.test(oe)&&/\bVersion\//i.test(T)?(oe="Android Browser",Y=/\bAndroid\b/.test(Y)?Y:"Android"):oe=="Silk"?(/\bMobi/i.test(T)||(Y="Android",ye.unshift("desktop mode")),/Accelerated *= *true/i.test(T)&&ye.unshift("accelerated")):oe=="PaleMoon"&&(q=/\bFirefox\/([\d.]+)\b/.exec(T))?ye.push("identifying as Firefox "+q[1]):oe=="Firefox"&&(q=/\b(Mobile|Tablet|TV)\b/i.exec(T))?(Y||(Y="Firefox OS"),Le||(Le=q[1])):!oe||(q=!/\bMinefield\b/i.test(T)&&/\b(?:Firefox|Safari)\b/.exec(oe))?(oe&&!Le&&/[\/,]|^[^(]+?\)/.test(T.slice(T.indexOf(q+"/")+8))&&(oe=null),(q=Le||te||Y)&&(Le||te||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Y))&&(oe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Y)?Y:q)+" Browser")):oe=="Electron"&&(q=(/\bChrome\/([\d.]+)\b/.exec(T)||0)[1])&&ye.push("Chromium "+q),ne||(ne=Pe(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",c(oe),"(?:Firefox|Minefield|NetFront)"])),(q=$=="iCab"&&parseFloat(ne)>3&&"WebKit"||/\bOpera\b/.test(oe)&&(/\bOPR\b/.test(T)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(T)&&!/^(?:Trident|EdgeHTML)$/.test($)&&"WebKit"||!$&&/\bMSIE\b/i.test(T)&&(Y=="Mac OS"?"Tasman":"Trident")||$=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(oe)&&"NetFront")&&($=[q]),oe=="IE"&&(q=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(T)||0)[1])?(oe+=" Mobile",Y="Windows Phone "+(/\+$/.test(q)?q:q+".x"),ye.unshift("desktop mode")):/\bWPDesktop\b/i.test(T)?(oe="IE Mobile",Y="Windows Phone 8.x",ye.unshift("desktop mode"),ne||(ne=(/\brv:([\d.]+)/.exec(T)||0)[1])):oe!="IE"&&$=="Trident"&&(q=/\brv:([\d.]+)/.exec(T))&&(oe&&ye.push("identifying as "+oe+(ne?" "+ne:"")),oe="IE",ne=q[1]),ue){if(E(R,"global"))if(D&&(q=D.lang.System,be=q.getProperty("os.arch"),Y=Y||q.getProperty("os.name")+" "+q.getProperty("os.version")),j){try{ne=R.require("ringo/engine").version.join("."),oe="RingoJS"}catch(me){(q=R.system)&&q.global.system==R.system&&(oe="Narwhal",Y||(Y=q[0].os||null))}oe||(oe="Rhino")}else typeof R.process=="object"&&!R.process.browser&&(q=R.process)&&(typeof q.versions=="object"&&(typeof q.versions.electron=="string"?(ye.push("Node "+q.versions.node),oe="Electron",ne=q.versions.electron):typeof q.versions.nw=="string"&&(ye.push("Chromium "+ne,"Node "+q.versions.node),oe="NW.js",ne=q.versions.nw)),oe||(oe="Node.js",be=q.arch,Y=q.platform,ne=/[\d.]+/.exec(q.version),ne=ne?ne[0]:null));else y(q=R.runtime)==G?(oe="Adobe AIR",Y=q.flash.system.Capabilities.os):y(q=R.phantom)==L?(oe="PhantomJS",ne=(q=q.version||null)&&q.major+"."+q.minor+"."+q.patch):typeof pe.documentMode=="number"&&(q=/\bTrident\/(\d+)/i.exec(T))?(ne=[ne,pe.documentMode],(q=+q[1]+4)!=ne[1]&&(ye.push("IE "+ne[1]+" mode"),$&&($[1]=""),ne[1]=q),ne=oe=="IE"?String(ne[1].toFixed(1)):ne[0]):typeof pe.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(oe)&&(ye.push("masking as "+oe+" "+ne),oe="IE",ne="11.0",$=["Trident"],Y="Windows");Y=Y&&_(Y)}if(ne&&(q=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(ne)||/(?:alpha|beta)(?: ?\d)?/i.exec(T+";"+(ue&&B.appMinorVersion))||/\bMinefield\b/i.test(T)&&"a")&&(le=/b/i.test(q)?"beta":"alpha",ne=ne.replace(RegExp(q+"\\+?$"),"")+(le=="beta"?ie:Z)+(/\d+\+?/.exec(q)||"")),oe=="Fennec"||oe=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(Y))oe="Firefox Mobile";else if(oe=="Maxthon"&&ne)ne=ne.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Le))Le=="Xbox 360"&&(Y=null),Le=="Xbox 360"&&/\bIEMobile\b/.test(T)&&ye.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(oe)||oe&&!Le&&!/Browser|Mobi/.test(oe))&&(Y=="Windows CE"||/Mobi/i.test(T)))oe+=" Mobile";else if(oe=="IE"&&ue)try{R.external===null&&ye.unshift("platform preview")}catch(me){ye.unshift("embedded")}else(/\bBlackBerry\b/.test(Le)||/\bBB10\b/.test(T))&&(q=(RegExp(Le.replace(/ +/g," *")+"/([.\\d]+)","i").exec(T)||0)[1]||ne)?(q=[q,/BB10/.test(T)],Y=(q[1]?(Le=null,te="BlackBerry"):"Device Software")+" "+q[0],ne=null):this!=b&&Le!="Wii"&&(ue&&Ee||/Opera/.test(oe)&&/\b(?:MSIE|Firefox)\b/i.test(T)||oe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Y)||oe=="IE"&&(Y&&!/^Win/.test(Y)&&ne>5.5||/\bWindows XP\b/.test(Y)&&ne>8||ne==8&&!/\bTrident\b/.test(T)))&&!u.test(q=M.call(b,T.replace(u,"")+";"))&&q.name&&(q="ing as "+q.name+((q=q.version)?" "+q:""),u.test(oe)?(/\bIE\b/.test(q)&&Y=="Mac OS"&&(Y=null),q="identify"+q):(q="mask"+q,De?oe=_(De.replace(/([a-z])([A-Z])/g,"$1 $2")):oe="Opera",/\bIE\b/.test(q)&&(Y=null),ue||(ne=null)),$=["Presto"],ye.push(q));(q=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(T)||0)[1])&&(q=[parseFloat(q.replace(/\.(\d)$/,".0$1")),q],oe=="Safari"&&q[1].slice(-1)=="+"?(oe="WebKit Nightly",le="alpha",ne=q[1].slice(0,-1)):(ne==q[1]||ne==(q[2]=(/\bSafari\/([\d.]+\+?)/i.exec(T)||0)[1]))&&(ne=null),q[1]=(/\bChrome\/([\d.]+)/i.exec(T)||0)[1],q[0]==537.36&&q[2]==537.36&&parseFloat(q[1])>=28&&$=="WebKit"&&($=["Blink"]),!ue||!H&&!q[1]?($&&($[1]="like Safari"),q=(q=q[0],q<400?1:q<500?2:q<526?3:q<533?4:q<534?"4+":q<535?5:q<537?6:q<538?7:q<601?8:"8")):($&&($[1]="like Chrome"),q=q[1]||(q=q[0],q<530?1:q<532?2:q<532.05?3:q<533?4:q<534.03?5:q<534.07?6:q<534.1?7:q<534.13?8:q<534.16?9:q<534.24?10:q<534.3?11:q<535.01?12:q<535.02?"13+":q<535.07?15:q<535.11?16:q<535.19?17:q<536.05?18:q<536.1?19:q<537.01?20:q<537.11?"21+":q<537.13?23:q<537.18?24:q<537.24?25:q<537.36?26:$!="Blink"?"27":"28")),$&&($[1]+=" "+(q+=typeof q=="number"?".x":/[.+]/.test(q)?"":"+")),oe=="Safari"&&(!ne||parseInt(ne)>45)&&(ne=q)),oe=="Opera"&&(q=/\bzbov|zvav$/.exec(Y))?(oe+=" ",ye.unshift("desktop mode"),q=="zvav"?(oe+="Mini",ne=null):oe+="Mobile",Y=Y.replace(RegExp(" *"+q+"$"),"")):oe=="Safari"&&/\bChrome\b/.exec($&&$[1])&&(ye.unshift("desktop mode"),oe="Chrome Mobile",ne=null,/\bOS X\b/.test(Y)?(te="Apple",Y="iOS 4.3+"):Y=null),ne&&ne.indexOf(q=/[\d.]+$/.exec(Y))==0&&T.indexOf("/"+q+"-")>-1&&(Y=x(Y.replace(q,""))),$&&!/\b(?:Avant|Nook)\b/.test(oe)&&(/Browser|Lunascape|Maxthon/.test(oe)||oe!="Safari"&&/^iOS/.test(Y)&&/\bSafari\b/.test($[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(oe)&&$[1])&&((q=$[$.length-1])&&ye.push(q)),ye.length&&(ye=["("+ye.join("; ")+")"]),te&&Le&&Le.indexOf(te)<0&&ye.push("on "+te),Le&&ye.push((/^on /.test(ye[ye.length-1])?"":"on ")+Le),Y&&(q=/ ([\d.+]+)$/.exec(Y),xe=q&&Y.charAt(Y.length-q[0].length-1)=="/",Y={architecture:32,family:q&&!xe?Y.replace(q[0],""):Y,version:q?q[1]:null,toString:function(){var me=this.version;return this.family+(me&&!xe?" "+me:"")+(this.architecture==64?" 64-bit":"")}}),(q=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(be))&&!/\bi686\b/i.test(be)?(Y&&(Y.architecture=64,Y.family=Y.family.replace(RegExp(" *"+q),"")),oe&&(/\bWOW64\b/i.test(T)||ue&&/\w(?:86|32)$/.test(B.cpuClass||B.platform)&&!/\bWin64; x64\b/i.test(T))&&ye.unshift("32-bit")):Y&&/^OS X/.test(Y.family)&&oe=="Chrome"&&parseFloat(ne)>=39&&(Y.architecture=64),T||(T=null);var ke={};return ke.description=T,ke.layout=$&&$[0],ke.manufacturer=te,ke.name=oe,ke.prerelease=le,ke.product=Le,ke.ua=T,ke.version=oe&&ne,ke.os=Y||{architecture:null,family:null,version:null,toString:function(){return"null"}},ke.parse=M,ke.toString=de,ke.version&&ye.unshift(ne),ke.name&&ye.unshift(oe),Y&&oe&&!(Y==String(Y).split(" ")[0]&&(Y==oe.split(" ")[0]||Le))&&ye.push(Le?"("+Y+")":"on "+Y),ye.length&&(ke.description=ye.join(" ")),ke}var k=M();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(I.platform=k,define(function(){return k})):g&&a?b(k,function(T,R){g[R]=T}):I.platform=k}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(S,F,v){(function(w){"use strict";typeof w=="undefined"||!w.version||w.version.indexOf("v0.")===0||w.version.indexOf("v1.")===0&&w.version.indexOf("v1.8.")!==0?F.exports={nextTick:h}:F.exports=w;function h(I,m,g,a){if(typeof I!="function")throw new TypeError('"callback" argument must be a function');var f=arguments.length,d,u;switch(f){case 0:case 1:return w.nextTick(I);case 2:return w.nextTick(function(){I.call(null,m)});case 3:return w.nextTick(function(){I.call(null,m,g)});case 4:return w.nextTick(function(){I.call(null,m,g,a)});default:for(d=new Array(f-1),u=0;u<d.length;)d[u++]=arguments[u];return w.nextTick(function(){I.apply(null,d)})}}}).call(this,S("_process"))},{_process:208}],208:[function(S,F,v){var w=F.exports={},h,I;function m(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?h=setTimeout:h=m}catch(i){h=m}try{typeof clearTimeout=="function"?I=clearTimeout:I=g}catch(i){I=g}})();function a(i){if(h===setTimeout)return setTimeout(i,0);if((h===m||!h)&&setTimeout)return h=setTimeout,setTimeout(i,0);try{return h(i,0)}catch(_){try{return h.call(null,i,0)}catch(b){return h.call(this,i,0)}}}function f(i){if(I===clearTimeout)return clearTimeout(i);if((I===g||!I)&&clearTimeout)return I=clearTimeout,clearTimeout(i);try{return I(i)}catch(_){try{return I.call(null,i)}catch(b){return I.call(this,i)}}}var d=[],u=!1,o,r=-1;function l(){if(!u||!o)return;u=!1,o.length?d=o.concat(d):r=-1,d.length&&n()}function n(){if(u)return;var i=a(l);u=!0;for(var _=d.length;_;){for(o=d,d=[];++r<_;)o&&o[r].run();r=-1,_=d.length}o=null,u=!1,f(i)}w.nextTick=function(i){var _=new Array(arguments.length-1);if(arguments.length>1)for(var b=1;b<arguments.length;b++)_[b-1]=arguments[b];d.push(new s(i,_)),d.length===1&&!u&&a(n)};function s(i,_){this.fun=i,this.array=_}s.prototype.run=function(){this.fun.apply(null,this.array)},w.title="browser",w.browser=!0,w.env={},w.argv=[],w.version="",w.versions={};function e(){}w.on=e,w.addListener=e,w.once=e,w.off=e,w.removeListener=e,w.removeAllListeners=e,w.emit=e,w.prependListener=e,w.prependOnceListener=e,w.listeners=function(i){return[]},w.binding=function(i){throw new Error("process.binding is not supported")},w.cwd=function(){return"/"},w.chdir=function(i){throw new Error("process.chdir is not supported")},w.umask=function(){return 0}},{}],209:[function(S,F,v){(function(w){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(h){var I=typeof v=="object"&&v&&!v.nodeType&&v,m=typeof F=="object"&&F&&!F.nodeType&&F,g=typeof w=="object"&&w;(g.global===g||g.window===g||g.self===g)&&(h=g);var a,f=2147483647,d=36,u=1,o=26,r=38,l=700,n=72,s=128,e="-",i=/^xn--/,_=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=d-u,c=Math.floor,C=String.fromCharCode,x;function M(K){throw new RangeError(y[K])}function k(K,L){for(var D=K.length,j=[];D--;)j[D]=L(K[D]);return j}function T(K,L){var D=K.split("@"),j="";D.length>1&&(j=D[0]+"@",K=D[1]),K=K.replace(b,".");var Z=K.split("."),ie=k(Z,L).join(".");return j+ie}function R(K){for(var L=[],D=0,j=K.length,Z,ie;D<j;)Z=K.charCodeAt(D++),Z>=55296&&Z<=56319&&D<j?(ie=K.charCodeAt(D++),(ie&64512)==56320?L.push(((Z&1023)<<10)+(ie&1023)+65536):(L.push(Z),D--)):L.push(Z);return L}function P(K){return k(K,function(L){var D="";return L>65535&&(L-=65536,D+=C(L>>>10&1023|55296),L=56320|L&1023),D+=C(L),D}).join("")}function B(K){return K-48<10?K-22:K-65<26?K-65:K-97<26?K-97:d}function W(K,L){return K+22+75*(K<26)-((L!=0)<<5)}function z(K,L,D){var j=0;for(K=D?c(K/l):K>>1,K+=c(K/L);K>E*o>>1;j+=d)K=c(K/E);return c(j+(E+1)*K/(K+r))}function H(K){var L=[],D=K.length,j,Z=0,ie=s,pe=n,Ee,De,q,be,ye,le,ue,ne,xe;for(Ee=K.lastIndexOf(e),Ee<0&&(Ee=0),De=0;De<Ee;++De)K.charCodeAt(De)>=128&&M("not-basic"),L.push(K.charCodeAt(De));for(q=Ee>0?Ee+1:0;q<D;){for(be=Z,ye=1,le=d;!(q>=D&&M("invalid-input"),ue=B(K.charCodeAt(q++)),(ue>=d||ue>c((f-Z)/ye))&&M("overflow"),Z+=ue*ye,ne=le<=pe?u:le>=pe+o?o:le-pe,ue<ne);le+=d)xe=d-ne,ye>c(f/xe)&&M("overflow"),ye*=xe;j=L.length+1,pe=z(Z-be,j,be==0),c(Z/j)>f-ie&&M("overflow"),ie+=c(Z/j),Z%=j,L.splice(Z++,0,ie)}return P(L)}function ee(K){var L,D,j,Z,ie,pe,Ee,De,q,be,ye,le=[],ue,ne,xe,$;for(K=R(K),ue=K.length,L=s,D=0,ie=n,pe=0;pe<ue;++pe)ye=K[pe],ye<128&&le.push(C(ye));for(j=Z=le.length,Z&&le.push(e);j<ue;){for(Ee=f,pe=0;pe<ue;++pe)ye=K[pe],ye>=L&&ye<Ee&&(Ee=ye);for(ne=j+1,Ee-L>c((f-D)/ne)&&M("overflow"),D+=(Ee-L)*ne,L=Ee,pe=0;pe<ue;++pe)if(ye=K[pe],ye<L&&++D>f&&M("overflow"),ye==L){for(De=D,q=d;!(be=q<=ie?u:q>=ie+o?o:q-ie,De<be);q+=d)$=De-be,xe=d-be,le.push(C(W(be+$%xe,0))),De=c($/xe);le.push(C(W(De,0))),ie=z(D,ne,j==Z),D=0,++j}++D,++L}return le.join("")}function G(K){return T(K,function(L){return i.test(L)?H(L.slice(4).toLowerCase()):L})}function U(K){return T(K,function(L){return _.test(L)?"xn--"+ee(L):L})}if(a={version:"1.4.1",ucs2:{decode:R,encode:P},decode:H,encode:ee,toASCII:U,toUnicode:G},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return a});else if(I&&m)if(F.exports==I)m.exports=a;else for(x in a)a.hasOwnProperty(x)&&(I[x]=a[x]);else h.punycode=a})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(S,F,v){"use strict";function w(I,m){return Object.prototype.hasOwnProperty.call(I,m)}F.exports=function(I,m,g,a){m=m||"&",g=g||"=";var f={};if(typeof I!="string"||I.length===0)return f;var d=/\+/g;I=I.split(m);var u=1e3;a&&typeof a.maxKeys=="number"&&(u=a.maxKeys);var o=I.length;u>0&&o>u&&(o=u);for(var r=0;r<o;++r){var l=I[r].replace(d,"%20"),n=l.indexOf(g),s,e,i,_;n>=0?(s=l.substr(0,n),e=l.substr(n+1)):(s=l,e=""),i=decodeURIComponent(s),_=decodeURIComponent(e),w(f,i)?h(f[i])?f[i].push(_):f[i]=[f[i],_]:f[i]=_}return f};var h=Array.isArray||function(I){return Object.prototype.toString.call(I)==="[object Array]"}},{}],211:[function(S,F,v){"use strict";var w=function(g){switch(typeof g){case"string":return g;case"boolean":return g?"true":"false";case"number":return isFinite(g)?g:"";default:return""}};F.exports=function(g,a,f,d){return a=a||"&",f=f||"=",g===null&&(g=void 0),typeof g=="object"?I(m(g),function(u){var o=encodeURIComponent(w(u))+f;return h(g[u])?I(g[u],function(r){return o+encodeURIComponent(w(r))}).join(a):o+encodeURIComponent(w(g[u]))}).join(a):d?encodeURIComponent(w(d))+f+encodeURIComponent(w(g)):""};var h=Array.isArray||function(g){return Object.prototype.toString.call(g)==="[object Array]"};function I(g,a){if(g.map)return g.map(a);for(var f=[],d=0;d<g.length;d++)f.push(a(g[d],d));return f}var m=Object.keys||function(g){var a=[];for(var f in g)Object.prototype.hasOwnProperty.call(g,f)&&a.push(f);return a}},{}],212:[function(S,F,v){"use strict";v.decode=v.parse=S("./decode"),v.encode=v.stringify=S("./encode")},{"./decode":210,"./encode":211}],213:[function(S,F,v){F.exports=S("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/create"),h=g(w),I=S("babel-runtime/core-js/object/keys"),m=g(I);function g(_){return _&&_.__esModule?_:{default:_}}var a=S("process-nextick-args"),f=m.default||function(_){var b=[];for(var y in _)b.push(y);return b};F.exports=s;var d=(0,h.default)(S("core-util-is"));d.inherits=S("inherits");var u=S("./_stream_readable"),o=S("./_stream_writable");d.inherits(s,u);for(var r=f(o.prototype),l=0;l<r.length;l++){var n=r[l];s.prototype[n]||(s.prototype[n]=o.prototype[n])}function s(_){if(!(this instanceof s))return new s(_);u.call(this,_),o.call(this,_),_&&_.readable===!1&&(this.readable=!1),_&&_.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,_&&_.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",e)}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function e(){if(this.allowHalfOpen||this._writableState.ended)return;a.nextTick(i,this)}function i(_){_.end()}Object.defineProperty(s.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(b){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=b,this._writableState.destroyed=b}}),s.prototype._destroy=function(_,b){this.push(null),this.end(),a.nextTick(b,_)}},{"./_stream_readable":216,"./_stream_writable":218,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60,"core-util-is":189,inherits:196,"process-nextick-args":207}],215:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/create"),h=I(w);function I(f){return f&&f.__esModule?f:{default:f}}F.exports=a;var m=S("./_stream_transform"),g=(0,h.default)(S("core-util-is"));g.inherits=S("inherits"),g.inherits(a,m);function a(f){if(!(this instanceof a))return new a(f);m.call(this,f)}a.prototype._transform=function(f,d,u){u(null,f)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(S,F,v){(function(w,h){"use strict";var I=S("babel-runtime/core-js/object/get-prototype-of"),m=f(I),g=S("babel-runtime/core-js/object/create"),a=f(g);function f($){return $&&$.__esModule?$:{default:$}}var d=S("process-nextick-args");F.exports=R;var u=S("isarray"),o;R.ReadableState=T;var r=S("events").EventEmitter,l=function(oe,Le){return oe.listeners(Le).length},n=S("./internal/streams/stream"),s=S("safe-buffer").Buffer,e=h.Uint8Array||function(){};function i($){return s.from($)}function _($){return s.isBuffer($)||$ instanceof e}var b=(0,a.default)(S("core-util-is"));b.inherits=S("inherits");var y=S("util"),E=void 0;y&&y.debuglog?E=y.debuglog("stream"):E=function(){};var c=S("./internal/streams/BufferList"),C=S("./internal/streams/destroy"),x;b.inherits(R,n);var M=["error","close","destroy","pause","resume"];function k($,oe,Le){if(typeof $.prependListener=="function")return $.prependListener(oe,Le);!$._events||!$._events[oe]?$.on(oe,Le):u($._events[oe])?$._events[oe].unshift(Le):$._events[oe]=[Le,$._events[oe]]}function T($,oe){o=o||S("./_stream_duplex"),$=$||{};var Le=oe instanceof o;this.objectMode=!!$.objectMode,Le&&(this.objectMode=this.objectMode||!!$.readableObjectMode);var te=$.highWaterMark,Y=$.readableHighWaterMark,X=this.objectMode?16:16*1024;te||te===0?this.highWaterMark=te:Le&&(Y||Y===0)?this.highWaterMark=Y:this.highWaterMark=X,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=$.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,$.encoding&&(x||(x=S("string_decoder/").StringDecoder),this.decoder=new x($.encoding),this.encoding=$.encoding)}function R($){if(o=o||S("./_stream_duplex"),!(this instanceof R))return new R($);this._readableState=new T($,this),this.readable=!0,$&&(typeof $.read=="function"&&(this._read=$.read),typeof $.destroy=="function"&&(this._destroy=$.destroy)),n.call(this)}Object.defineProperty(R.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(oe){if(!this._readableState)return;this._readableState.destroyed=oe}}),R.prototype.destroy=C.destroy,R.prototype._undestroy=C.undestroy,R.prototype._destroy=function($,oe){this.push(null),oe($)},R.prototype.push=function($,oe){var Le=this._readableState,te;return Le.objectMode?te=!0:typeof $=="string"&&(oe=oe||Le.defaultEncoding,oe!==Le.encoding&&($=s.from($,oe),oe=""),te=!0),P(this,$,oe,!1,te)},R.prototype.unshift=function($){return P(this,$,null,!0,!1)};function P($,oe,Le,te,Y){var X=$._readableState;if(oe===null)X.reading=!1,U($,X);else{var J;Y||(J=W(X,oe)),J?$.emit("error",J):X.objectMode||oe&&oe.length>0?(typeof oe!="string"&&!X.objectMode&&(0,m.default)(oe)!==s.prototype&&(oe=i(oe)),te?X.endEmitted?$.emit("error",new Error("stream.unshift() after end event")):B($,X,oe,!0):X.ended?$.emit("error",new Error("stream.push() after EOF")):(X.reading=!1,X.decoder&&!Le?(oe=X.decoder.write(oe),X.objectMode||oe.length!==0?B($,X,oe,!1):D($,X)):B($,X,oe,!1))):te||(X.reading=!1)}return z(X)}function B($,oe,Le,te){oe.flowing&&oe.length===0&&!oe.sync?($.emit("data",Le),$.read(0)):(oe.length+=oe.objectMode?1:Le.length,te?oe.buffer.unshift(Le):oe.buffer.push(Le),oe.needReadable&&K($)),D($,oe)}function W($,oe){var Le;return!_(oe)&&typeof oe!="string"&&oe!==void 0&&!$.objectMode&&(Le=new TypeError("Invalid non-string/buffer chunk")),Le}function z($){return!$.ended&&($.needReadable||$.length<$.highWaterMark||$.length===0)}R.prototype.isPaused=function(){return this._readableState.flowing===!1},R.prototype.setEncoding=function($){return x||(x=S("string_decoder/").StringDecoder),this._readableState.decoder=new x($),this._readableState.encoding=$,this};var H=8388608;function ee($){return $>=H?$=H:($--,$|=$>>>1,$|=$>>>2,$|=$>>>4,$|=$>>>8,$|=$>>>16,$++),$}function G($,oe){return $<=0||oe.length===0&&oe.ended?0:oe.objectMode?1:$!==$?oe.flowing&&oe.length?oe.buffer.head.data.length:oe.length:($>oe.highWaterMark&&(oe.highWaterMark=ee($)),$<=oe.length?$:oe.ended?oe.length:(oe.needReadable=!0,0))}R.prototype.read=function($){E("read",$),$=parseInt($,10);var oe=this._readableState,Le=$;if($!==0&&(oe.emittedReadable=!1),$===0&&oe.needReadable&&(oe.length>=oe.highWaterMark||oe.ended))return E("read: emitReadable",oe.length,oe.ended),oe.length===0&&oe.ended?ue(this):K(this),null;if($=G($,oe),$===0&&oe.ended)return oe.length===0&&ue(this),null;var te=oe.needReadable;E("need readable",te),(oe.length===0||oe.length-$<oe.highWaterMark)&&(te=!0,E("length less than watermark",te)),oe.ended||oe.reading?(te=!1,E("reading or ended",te)):te&&(E("do read"),oe.reading=!0,oe.sync=!0,oe.length===0&&(oe.needReadable=!0),this._read(oe.highWaterMark),oe.sync=!1,oe.reading||($=G(Le,oe)));var Y;return $>0?Y=q($,oe):Y=null,Y===null?(oe.needReadable=!0,$=0):oe.length-=$,oe.length===0&&(oe.ended||(oe.needReadable=!0),Le!==$&&oe.ended&&ue(this)),Y!==null&&this.emit("data",Y),Y};function U($,oe){if(oe.ended)return;if(oe.decoder){var Le=oe.decoder.end();Le&&Le.length&&(oe.buffer.push(Le),oe.length+=oe.objectMode?1:Le.length)}oe.ended=!0,K($)}function K($){var oe=$._readableState;oe.needReadable=!1,oe.emittedReadable||(E("emitReadable",oe.flowing),oe.emittedReadable=!0,oe.sync?d.nextTick(L,$):L($))}function L($){E("emit readable"),$.emit("readable"),De($)}function D($,oe){oe.readingMore||(oe.readingMore=!0,d.nextTick(j,$,oe))}function j($,oe){for(var Le=oe.length;!oe.reading&&!oe.flowing&&!oe.ended&&oe.length<oe.highWaterMark&&!(E("maybeReadMore read 0"),$.read(0),Le===oe.length);)Le=oe.length;oe.readingMore=!1}R.prototype._read=function($){this.emit("error",new Error("_read() is not implemented"))},R.prototype.pipe=function($,oe){var Le=this,te=this._readableState;switch(te.pipesCount){case 0:te.pipes=$;break;case 1:te.pipes=[te.pipes,$];break;default:te.pipes.push($);break}te.pipesCount+=1,E("pipe count=%d opts=%j",te.pipesCount,oe);var Y=(!oe||oe.end!==!1)&&$!==w.stdout&&$!==w.stderr,X=Y?ve:vt;te.endEmitted?d.nextTick(X):Le.once("end",X),$.on("unpipe",J);function J(Xe,Bt){E("onunpipe"),Xe===Le&&(Bt&&Bt.hasUnpiped===!1&&(Bt.hasUnpiped=!0,Pe()))}function ve(){E("onend"),$.end()}var he=Z(Le);$.on("drain",he);var Ce=!1;function Pe(){E("cleanup"),$.removeListener("close",Be),$.removeListener("finish",ft),$.removeListener("drain",he),$.removeListener("error",me),$.removeListener("unpipe",J),Le.removeListener("end",ve),Le.removeListener("end",vt),Le.removeListener("data",ke),Ce=!0,te.awaitDrain&&(!$._writableState||$._writableState.needDrain)&&he()}var de=!1;Le.on("data",ke);function ke(Xe){E("ondata"),de=!1;var Bt=$.write(Xe);Bt===!1&&!de&&((te.pipesCount===1&&te.pipes===$||te.pipesCount>1&&xe(te.pipes,$)!==-1)&&!Ce&&(E("false write response, pause",Le._readableState.awaitDrain),Le._readableState.awaitDrain++,de=!0),Le.pause())}function me(Xe){E("onerror",Xe),vt(),$.removeListener("error",me),l($,"error")===0&&$.emit("error",Xe)}k($,"error",me);function Be(){$.removeListener("finish",ft),vt()}$.once("close",Be);function ft(){E("onfinish"),$.removeListener("close",Be),vt()}$.once("finish",ft);function vt(){E("unpipe"),Le.unpipe($)}return $.emit("pipe",Le),te.flowing||(E("pipe resume"),Le.resume()),$};function Z($){return function(){var oe=$._readableState;E("pipeOnDrain",oe.awaitDrain),oe.awaitDrain&&oe.awaitDrain--,oe.awaitDrain===0&&l($,"data")&&(oe.flowing=!0,De($))}}R.prototype.unpipe=function($){var oe=this._readableState,Le={hasUnpiped:!1};if(oe.pipesCount===0)return this;if(oe.pipesCount===1)return $&&$!==oe.pipes?this:($||($=oe.pipes),oe.pipes=null,oe.pipesCount=0,oe.flowing=!1,$&&$.emit("unpipe",this,Le),this);if(!$){var te=oe.pipes,Y=oe.pipesCount;oe.pipes=null,oe.pipesCount=0,oe.flowing=!1;for(var X=0;X<Y;X++)te[X].emit("unpipe",this,Le);return this}var J=xe(oe.pipes,$);return J===-1?this:(oe.pipes.splice(J,1),oe.pipesCount-=1,oe.pipesCount===1&&(oe.pipes=oe.pipes[0]),$.emit("unpipe",this,Le),this)},R.prototype.on=function($,oe){var Le=n.prototype.on.call(this,$,oe);if($==="data")this._readableState.flowing!==!1&&this.resume();else if($==="readable"){var te=this._readableState;!te.endEmitted&&!te.readableListening&&(te.readableListening=te.needReadable=!0,te.emittedReadable=!1,te.reading?te.length&&K(this):d.nextTick(ie,this))}return Le},R.prototype.addListener=R.prototype.on;function ie($){E("readable nexttick read 0"),$.read(0)}R.prototype.resume=function(){var $=this._readableState;return $.flowing||(E("resume"),$.flowing=!0,pe(this,$)),this};function pe($,oe){oe.resumeScheduled||(oe.resumeScheduled=!0,d.nextTick(Ee,$,oe))}function Ee($,oe){oe.reading||(E("resume read 0"),$.read(0)),oe.resumeScheduled=!1,oe.awaitDrain=0,$.emit("resume"),De($),oe.flowing&&!oe.reading&&$.read(0)}R.prototype.pause=function(){return E("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(E("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function De($){var oe=$._readableState;for(E("flow",oe.flowing);oe.flowing&&$.read()!==null;);}R.prototype.wrap=function($){var oe=this,Le=this._readableState,te=!1;$.on("end",function(){if(E("wrapped end"),Le.decoder&&!Le.ended){var J=Le.decoder.end();J&&J.length&&oe.push(J)}oe.push(null)}),$.on("data",function(J){if(E("wrapped data"),Le.decoder&&(J=Le.decoder.write(J)),Le.objectMode&&J==null)return;if(!Le.objectMode&&(!J||!J.length))return;var ve=oe.push(J);ve||(te=!0,$.pause())});for(var Y in $)this[Y]===void 0&&typeof $[Y]=="function"&&(this[Y]=function(J){return function(){return $[J].apply($,arguments)}}(Y));for(var X=0;X<M.length;X++)$.on(M[X],this.emit.bind(this,M[X]));return this._read=function(J){E("wrapped _read",J),te&&(te=!1,$.resume())},this},Object.defineProperty(R.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),R._fromList=q;function q($,oe){if(oe.length===0)return null;var Le;return oe.objectMode?Le=oe.buffer.shift():!$||$>=oe.length?(oe.decoder?Le=oe.buffer.join(""):oe.buffer.length===1?Le=oe.buffer.head.data:Le=oe.buffer.concat(oe.length),oe.buffer.clear()):Le=be($,oe.buffer,oe.decoder),Le}function be($,oe,Le){var te;return $<oe.head.data.length?(te=oe.head.data.slice(0,$),oe.head.data=oe.head.data.slice($)):$===oe.head.data.length?te=oe.shift():te=Le?ye($,oe):le($,oe),te}function ye($,oe){var Le=oe.head,te=1,Y=Le.data;for($-=Y.length;Le=Le.next;){var X=Le.data,J=$>X.length?X.length:$;if(J===X.length?Y+=X:Y+=X.slice(0,$),$-=J,$===0){J===X.length?(++te,Le.next?oe.head=Le.next:oe.head=oe.tail=null):(oe.head=Le,Le.data=X.slice(J));break}++te}return oe.length-=te,Y}function le($,oe){var Le=s.allocUnsafe($),te=oe.head,Y=1;for(te.data.copy(Le),$-=te.data.length;te=te.next;){var X=te.data,J=$>X.length?X.length:$;if(X.copy(Le,Le.length-$,0,J),$-=J,$===0){J===X.length?(++Y,te.next?oe.head=te.next:oe.head=oe.tail=null):(oe.head=te,te.data=X.slice(J));break}++Y}return oe.length-=Y,Le}function ue($){var oe=$._readableState;if(oe.length>0)throw new Error('"endReadable()" called on non-empty stream');oe.endEmitted||(oe.ended=!0,d.nextTick(ne,oe,$))}function ne($,oe){!$.endEmitted&&$.length===0&&($.endEmitted=!0,oe.readable=!1,oe.emit("end"))}function xe($,oe){for(var Le=0,te=$.length;Le<te;Le++)if($[Le]===oe)return Le;return-1}}).call(this,S("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/BufferList":219,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/get-prototype-of":59,"core-util-is":189,events:192,inherits:196,isarray:198,"process-nextick-args":207,"safe-buffer":228,"string_decoder/":235,util:71}],217:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/create"),h=I(w);function I(o){return o&&o.__esModule?o:{default:o}}F.exports=f;var m=S("./_stream_duplex"),g=(0,h.default)(S("core-util-is"));g.inherits=S("inherits"),g.inherits(f,m);function a(o,r){var l=this._transformState;l.transforming=!1;var n=l.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));l.writechunk=null,l.writecb=null,r!=null&&this.push(r),n(o);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function f(o){if(!(this instanceof f))return new f(o);m.call(this,o),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,o&&(typeof o.transform=="function"&&(this._transform=o.transform),typeof o.flush=="function"&&(this._flush=o.flush)),this.on("prefinish",d)}function d(){var o=this;typeof this._flush=="function"?this._flush(function(r,l){u(o,r,l)}):u(this,null,null)}f.prototype.push=function(o,r){return this._transformState.needTransform=!1,m.prototype.push.call(this,o,r)},f.prototype._transform=function(o,r,l){throw new Error("_transform() is not implemented")},f.prototype._write=function(o,r,l){var n=this._transformState;if(n.writecb=l,n.writechunk=o,n.writeencoding=r,!n.transforming){var s=this._readableState;(n.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}},f.prototype._read=function(o){var r=this._transformState;r.writechunk!==null&&r.writecb&&!r.transforming?(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform)):r.needTransform=!0},f.prototype._destroy=function(o,r){var l=this;m.prototype._destroy.call(this,o,function(n){r(n),l.emit("close")})};function u(o,r,l){if(r)return o.emit("error",r);if(l!=null&&o.push(l),o._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(o._transformState.transforming)throw new Error("Calling transform done when still transforming");return o.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(S,F,v){(function(w,h){"use strict";var I=S("babel-runtime/core-js/object/define-property"),m=n(I),g=S("babel-runtime/core-js/symbol/has-instance"),a=n(g),f=S("babel-runtime/core-js/symbol"),d=n(f),u=S("babel-runtime/core-js/object/create"),o=n(u),r=S("babel-runtime/core-js/set-immediate"),l=n(r);function n(le){return le&&le.__esModule?le:{default:le}}var s=S("process-nextick-args");F.exports=W;function e(le,ue,ne){this.chunk=le,this.encoding=ue,this.callback=ne,this.next=null}function i(le){var ue=this;this.next=null,this.entry=null,this.finish=function(){ye(ue,le)}}var _=!w.browser&&["v0.10","v0.9."].indexOf(w.version.slice(0,5))>-1?l.default:s.nextTick,b;W.WritableState=P;var y=(0,o.default)(S("core-util-is"));y.inherits=S("inherits");var E={deprecate:S("util-deprecate")},c=S("./internal/streams/stream"),C=S("safe-buffer").Buffer,x=h.Uint8Array||function(){};function M(le){return C.from(le)}function k(le){return C.isBuffer(le)||le instanceof x}var T=S("./internal/streams/destroy");y.inherits(W,c);function R(){}function P(le,ue){b=b||S("./_stream_duplex"),le=le||{};var ne=ue instanceof b;this.objectMode=!!le.objectMode,ne&&(this.objectMode=this.objectMode||!!le.writableObjectMode);var xe=le.highWaterMark,$=le.writableHighWaterMark,oe=this.objectMode?16:16*1024;xe||xe===0?this.highWaterMark=xe:ne&&($||$===0)?this.highWaterMark=$:this.highWaterMark=oe,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Le=le.decodeStrings===!1;this.decodeStrings=!Le,this.defaultEncoding=le.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(te){D(ue,te)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}P.prototype.getBuffer=function(){for(var ue=this.bufferedRequest,ne=[];ue;)ne.push(ue),ue=ue.next;return ne},function(){try{Object.defineProperty(P.prototype,"buffer",{get:E.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(le){}}();var B;typeof d.default=="function"&&a.default&&typeof Function.prototype[a.default]=="function"?(B=Function.prototype[a.default],(0,m.default)(W,a.default,{value:function(ue){return B.call(this,ue)?!0:this!==W?!1:ue&&ue._writableState instanceof P}})):B=function(ue){return ue instanceof this};function W(le){if(b=b||S("./_stream_duplex"),!B.call(W,this)&&!(this instanceof b))return new W(le);this._writableState=new P(le,this),this.writable=!0,le&&(typeof le.write=="function"&&(this._write=le.write),typeof le.writev=="function"&&(this._writev=le.writev),typeof le.destroy=="function"&&(this._destroy=le.destroy),typeof le.final=="function"&&(this._final=le.final)),c.call(this)}W.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function z(le,ue){var ne=new Error("write after end");le.emit("error",ne),s.nextTick(ue,ne)}function H(le,ue,ne,xe){var $=!0,oe=!1;return ne===null?oe=new TypeError("May not write null values to stream"):typeof ne!="string"&&ne!==void 0&&!ue.objectMode&&(oe=new TypeError("Invalid non-string/buffer chunk")),oe&&(le.emit("error",oe),s.nextTick(xe,oe),$=!1),$}W.prototype.write=function(le,ue,ne){var xe=this._writableState,$=!1,oe=!xe.objectMode&&k(le);return oe&&!C.isBuffer(le)&&(le=M(le)),typeof ue=="function"&&(ne=ue,ue=null),oe?ue="buffer":ue||(ue=xe.defaultEncoding),typeof ne!="function"&&(ne=R),xe.ended?z(this,ne):(oe||H(this,xe,le,ne))&&(xe.pendingcb++,$=G(this,xe,oe,le,ue,ne)),$},W.prototype.cork=function(){var le=this._writableState;le.corked++},W.prototype.uncork=function(){var le=this._writableState;le.corked&&(le.corked--,!le.writing&&!le.corked&&!le.finished&&!le.bufferProcessing&&le.bufferedRequest&&ie(this,le))},W.prototype.setDefaultEncoding=function(ue){if(typeof ue=="string"&&(ue=ue.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((ue+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+ue);return this._writableState.defaultEncoding=ue,this};function ee(le,ue,ne){return!le.objectMode&&le.decodeStrings!==!1&&typeof ue=="string"&&(ue=C.from(ue,ne)),ue}Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function G(le,ue,ne,xe,$,oe){if(!ne){var Le=ee(ue,xe,$);xe!==Le&&(ne=!0,$="buffer",xe=Le)}var te=ue.objectMode?1:xe.length;ue.length+=te;var Y=ue.length<ue.highWaterMark;if(Y||(ue.needDrain=!0),ue.writing||ue.corked){var X=ue.lastBufferedRequest;ue.lastBufferedRequest={chunk:xe,encoding:$,isBuf:ne,callback:oe,next:null},X?X.next=ue.lastBufferedRequest:ue.bufferedRequest=ue.lastBufferedRequest,ue.bufferedRequestCount+=1}else U(le,ue,!1,te,xe,$,oe);return Y}function U(le,ue,ne,xe,$,oe,Le){ue.writelen=xe,ue.writecb=Le,ue.writing=!0,ue.sync=!0,ne?le._writev($,ue.onwrite):le._write($,oe,ue.onwrite),ue.sync=!1}function K(le,ue,ne,xe,$){--ue.pendingcb,ne?(s.nextTick($,xe),s.nextTick(q,le,ue),le._writableState.errorEmitted=!0,le.emit("error",xe)):($(xe),le._writableState.errorEmitted=!0,le.emit("error",xe),q(le,ue))}function L(le){le.writing=!1,le.writecb=null,le.length-=le.writelen,le.writelen=0}function D(le,ue){var ne=le._writableState,xe=ne.sync,$=ne.writecb;if(L(ne),ue)K(le,ne,xe,ue,$);else{var oe=pe(ne);!oe&&!ne.corked&&!ne.bufferProcessing&&ne.bufferedRequest&&ie(le,ne),xe?_(j,le,ne,oe,$):j(le,ne,oe,$)}}function j(le,ue,ne,xe){ne||Z(le,ue),ue.pendingcb--,xe(),q(le,ue)}function Z(le,ue){ue.length===0&&ue.needDrain&&(ue.needDrain=!1,le.emit("drain"))}function ie(le,ue){ue.bufferProcessing=!0;var ne=ue.bufferedRequest;if(le._writev&&ne&&ne.next){var xe=ue.bufferedRequestCount,$=new Array(xe),oe=ue.corkedRequestsFree;oe.entry=ne;for(var Le=0,te=!0;ne;)$[Le]=ne,ne.isBuf||(te=!1),ne=ne.next,Le+=1;$.allBuffers=te,U(le,ue,!0,ue.length,$,"",oe.finish),ue.pendingcb++,ue.lastBufferedRequest=null,oe.next?(ue.corkedRequestsFree=oe.next,oe.next=null):ue.corkedRequestsFree=new i(ue),ue.bufferedRequestCount=0}else{for(;ne;){var Y=ne.chunk,X=ne.encoding,J=ne.callback,ve=ue.objectMode?1:Y.length;if(U(le,ue,!1,ve,Y,X,J),ne=ne.next,ue.bufferedRequestCount--,ue.writing)break}ne===null&&(ue.lastBufferedRequest=null)}ue.bufferedRequest=ne,ue.bufferProcessing=!1}W.prototype._write=function(le,ue,ne){ne(new Error("_write() is not implemented"))},W.prototype._writev=null,W.prototype.end=function(le,ue,ne){var xe=this._writableState;typeof le=="function"?(ne=le,le=null,ue=null):typeof ue=="function"&&(ne=ue,ue=null),le!=null&&this.write(le,ue),xe.corked&&(xe.corked=1,this.uncork()),!xe.ending&&!xe.finished&&be(this,xe,ne)};function pe(le){return le.ending&&le.length===0&&le.bufferedRequest===null&&!le.finished&&!le.writing}function Ee(le,ue){le._final(function(ne){ue.pendingcb--,ne&&le.emit("error",ne),ue.prefinished=!0,le.emit("prefinish"),q(le,ue)})}function De(le,ue){!ue.prefinished&&!ue.finalCalled&&(typeof le._final=="function"?(ue.pendingcb++,ue.finalCalled=!0,s.nextTick(Ee,le,ue)):(ue.prefinished=!0,le.emit("prefinish")))}function q(le,ue){var ne=pe(ue);return ne&&(De(le,ue),ue.pendingcb===0&&(ue.finished=!0,le.emit("finish"))),ne}function be(le,ue,ne){ue.ending=!0,q(le,ue),ne&&(ue.finished?s.nextTick(ne):le.once("finish",ne)),ue.ended=!0,le.writable=!1}function ye(le,ue,ne){var xe=le.entry;for(le.entry=null;xe;){var $=xe.callback;ue.pendingcb--,$(ne),xe=xe.next}ue.corkedRequestsFree?ue.corkedRequestsFree.next=le:ue.corkedRequestsFree=le}Object.defineProperty(W.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(ue){if(!this._writableState)return;this._writableState.destroyed=ue}}),W.prototype.destroy=T.destroy,W.prototype._undestroy=T.undestroy,W.prototype._destroy=function(le,ue){this.end(),ue(le)}}).call(this,S("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(S,F,v){"use strict";function w(g,a){if(!(g instanceof a))throw new TypeError("Cannot call a class as a function")}var h=S("safe-buffer").Buffer,I=S("util");function m(g,a,f){g.copy(a,f)}F.exports=function(){function g(){w(this,g),this.head=null,this.tail=null,this.length=0}return g.prototype.push=function(f){var d={data:f,next:null};this.length>0?this.tail.next=d:this.head=d,this.tail=d,++this.length},g.prototype.unshift=function(f){var d={data:f,next:this.head};this.length===0&&(this.tail=d),this.head=d,++this.length},g.prototype.shift=function(){if(this.length===0)return;var f=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,f},g.prototype.clear=function(){this.head=this.tail=null,this.length=0},g.prototype.join=function(f){if(this.length===0)return"";for(var d=this.head,u=""+d.data;d=d.next;)u+=f+d.data;return u},g.prototype.concat=function(f){if(this.length===0)return h.alloc(0);if(this.length===1)return this.head.data;for(var d=h.allocUnsafe(f>>>0),u=this.head,o=0;u;)m(u.data,d,o),o+=u.data.length,u=u.next;return d},g}(),I&&I.inspect&&I.inspect.custom&&(F.exports.prototype[I.inspect.custom]=function(){var g=I.inspect({length:this.length});return this.constructor.name+" "+g})},{"safe-buffer":228,util:71}],220:[function(S,F,v){"use strict";var w=S("process-nextick-args");function h(g,a){var f=this,d=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return d||u?(a?a(g):g&&(!this._writableState||!this._writableState.errorEmitted)&&w.nextTick(m,this,g),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(g||null,function(o){!a&&o?(w.nextTick(m,f,o),f._writableState&&(f._writableState.errorEmitted=!0)):a&&a(o)}),this)}function I(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function m(g,a){g.emit("error",a)}F.exports={destroy:h,undestroy:I}},{"process-nextick-args":207}],221:[function(S,F,v){"use strict";F.exports=S("events").EventEmitter},{events:192}],222:[function(S,F,v){F.exports=S("./readable").PassThrough},{"./readable":223}],223:[function(S,F,v){v=F.exports=S("./lib/_stream_readable.js"),v.Stream=v,v.Readable=v,v.Writable=S("./lib/_stream_writable.js"),v.Duplex=S("./lib/_stream_duplex.js"),v.Transform=S("./lib/_stream_transform.js"),v.PassThrough=S("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(S,F,v){F.exports=S("./readable").Transform},{"./readable":223}],225:[function(S,F,v){F.exports=S("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(S,F,v){var w=function(){return this}()||Function("return this")(),h=w.regeneratorRuntime&&Object.getOwnPropertyNames(w).indexOf("regeneratorRuntime")>=0,I=h&&w.regeneratorRuntime;if(w.regeneratorRuntime=void 0,F.exports=S("./runtime"),h)w.regeneratorRuntime=I;else try{delete w.regeneratorRuntime}catch(m){w.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(S,F,v){!function(w){"use strict";var h=Object.prototype,I=h.hasOwnProperty,m,g=typeof Symbol=="function"?Symbol:{},a=g.iterator||"@@iterator",f=g.asyncIterator||"@@asyncIterator",d=g.toStringTag||"@@toStringTag",u=typeof F=="object",o=w.regeneratorRuntime;if(o){u&&(F.exports=o);return}o=w.regeneratorRuntime=u?F.exports:{};function r(G,U,K,L){var D=U&&U.prototype instanceof b?U:b,j=Object.create(D.prototype),Z=new z(L||[]);return j._invoke=R(G,K,Z),j}o.wrap=r;function l(G,U,K){try{return{type:"normal",arg:G.call(U,K)}}catch(L){return{type:"throw",arg:L}}}var n="suspendedStart",s="suspendedYield",e="executing",i="completed",_={};function b(){}function y(){}function E(){}var c={};c[a]=function(){return this};var C=Object.getPrototypeOf,x=C&&C(C(H([])));x&&x!==h&&I.call(x,a)&&(c=x);var M=E.prototype=b.prototype=Object.create(c);y.prototype=M.constructor=E,E.constructor=y,E[d]=y.displayName="GeneratorFunction";function k(G){["next","throw","return"].forEach(function(U){G[U]=function(K){return this._invoke(U,K)}})}o.isGeneratorFunction=function(G){var U=typeof G=="function"&&G.constructor;return U?U===y||(U.displayName||U.name)==="GeneratorFunction":!1},o.mark=function(G){return Object.setPrototypeOf?Object.setPrototypeOf(G,E):(G.__proto__=E,d in G||(G[d]="GeneratorFunction")),G.prototype=Object.create(M),G},o.awrap=function(G){return{__await:G}};function T(G){function U(D,j,Z,ie){var pe=l(G[D],G,j);if(pe.type==="throw")ie(pe.arg);else{var Ee=pe.arg,De=Ee.value;return De&&typeof De=="object"&&I.call(De,"__await")?Promise.resolve(De.__await).then(function(q){U("next",q,Z,ie)},function(q){U("throw",q,Z,ie)}):Promise.resolve(De).then(function(q){Ee.value=q,Z(Ee)},ie)}}var K;function L(D,j){function Z(){return new Promise(function(ie,pe){U(D,j,ie,pe)})}return K=K?K.then(Z,Z):Z()}this._invoke=L}k(T.prototype),T.prototype[f]=function(){return this},o.AsyncIterator=T,o.async=function(G,U,K,L){var D=new T(r(G,U,K,L));return o.isGeneratorFunction(U)?D:D.next().then(function(j){return j.done?j.value:D.next()})};function R(G,U,K){var L=n;return function(j,Z){if(L===e)throw new Error("Generator is already running");if(L===i){if(j==="throw")throw Z;return ee()}for(K.method=j,K.arg=Z;;){var ie=K.delegate;if(ie){var pe=P(ie,K);if(pe){if(pe===_)continue;return pe}}if(K.method==="next")K.sent=K._sent=K.arg;else if(K.method==="throw"){if(L===n)throw L=i,K.arg;K.dispatchException(K.arg)}else K.method==="return"&&K.abrupt("return",K.arg);L=e;var Ee=l(G,U,K);if(Ee.type==="normal"){if(L=K.done?i:s,Ee.arg===_)continue;return{value:Ee.arg,done:K.done}}else Ee.type==="throw"&&(L=i,K.method="throw",K.arg=Ee.arg)}}}function P(G,U){var K=G.iterator[U.method];if(K===m){if(U.delegate=null,U.method==="throw"){if(G.iterator.return&&(U.method="return",U.arg=m,P(G,U),U.method==="throw"))return _;U.method="throw",U.arg=new TypeError("The iterator does not provide a 'throw' method")}return _}var L=l(K,G.iterator,U.arg);if(L.type==="throw")return U.method="throw",U.arg=L.arg,U.delegate=null,_;var D=L.arg;if(!D)return U.method="throw",U.arg=new TypeError("iterator result is not an object"),U.delegate=null,_;if(D.done)U[G.resultName]=D.value,U.next=G.nextLoc,U.method!=="return"&&(U.method="next",U.arg=m);else return D;return U.delegate=null,_}k(M),M[d]="Generator",M[a]=function(){return this},M.toString=function(){return"[object Generator]"};function B(G){var U={tryLoc:G[0]};1 in G&&(U.catchLoc=G[1]),2 in G&&(U.finallyLoc=G[2],U.afterLoc=G[3]),this.tryEntries.push(U)}function W(G){var U=G.completion||{};U.type="normal",delete U.arg,G.completion=U}function z(G){this.tryEntries=[{tryLoc:"root"}],G.forEach(B,this),this.reset(!0)}o.keys=function(G){var U=[];for(var K in G)U.push(K);return U.reverse(),function L(){for(;U.length;){var D=U.pop();if(D in G)return L.value=D,L.done=!1,L}return L.done=!0,L}};function H(G){if(G){var U=G[a];if(U)return U.call(G);if(typeof G.next=="function")return G;if(!isNaN(G.length)){var K=-1,L=function D(){for(;++K<G.length;)if(I.call(G,K))return D.value=G[K],D.done=!1,D;return D.value=m,D.done=!0,D};return L.next=L}}return{next:ee}}o.values=H;function ee(){return{value:m,done:!0}}z.prototype={constructor:z,reset:function(G){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(W),!G)for(var U in this)U.charAt(0)==="t"&&I.call(this,U)&&!isNaN(+U.slice(1))&&(this[U]=m)},stop:function(){this.done=!0;var G=this.tryEntries[0],U=G.completion;if(U.type==="throw")throw U.arg;return this.rval},dispatchException:function(G){if(this.done)throw G;var U=this;function K(pe,Ee){return j.type="throw",j.arg=G,U.next=pe,Ee&&(U.method="next",U.arg=m),!!Ee}for(var L=this.tryEntries.length-1;L>=0;--L){var D=this.tryEntries[L],j=D.completion;if(D.tryLoc==="root")return K("end");if(D.tryLoc<=this.prev){var Z=I.call(D,"catchLoc"),ie=I.call(D,"finallyLoc");if(Z&&ie){if(this.prev<D.catchLoc)return K(D.catchLoc,!0);if(this.prev<D.finallyLoc)return K(D.finallyLoc)}else if(Z){if(this.prev<D.catchLoc)return K(D.catchLoc,!0)}else if(ie){if(this.prev<D.finallyLoc)return K(D.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(G,U){for(var K=this.tryEntries.length-1;K>=0;--K){var L=this.tryEntries[K];if(L.tryLoc<=this.prev&&I.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var D=L;break}}D&&(G==="break"||G==="continue")&&D.tryLoc<=U&&U<=D.finallyLoc&&(D=null);var j=D?D.completion:{};return j.type=G,j.arg=U,D?(this.method="next",this.next=D.finallyLoc,_):this.complete(j)},complete:function(G,U){if(G.type==="throw")throw G.arg;return G.type==="break"||G.type==="continue"?this.next=G.arg:G.type==="return"?(this.rval=this.arg=G.arg,this.method="return",this.next="end"):G.type==="normal"&&U&&(this.next=U),_},finish:function(G){for(var U=this.tryEntries.length-1;U>=0;--U){var K=this.tryEntries[U];if(K.finallyLoc===G)return this.complete(K.completion,K.afterLoc),W(K),_}},catch:function(G){for(var U=this.tryEntries.length-1;U>=0;--U){var K=this.tryEntries[U];if(K.tryLoc===G){var L=K.completion;if(L.type==="throw"){var D=L.arg;W(K)}return D}}throw new Error("illegal catch attempt")},delegateYield:function(G,U,K){return this.delegate={iterator:H(G),resultName:U,nextLoc:K},this.method==="next"&&(this.arg=m),_}}}(function(){return this}()||Function("return this")())},{}],228:[function(S,F,v){var w=S("buffer"),h=w.Buffer;function I(g,a){for(var f in g)a[f]=g[f]}h.from&&h.alloc&&h.allocUnsafe&&h.allocUnsafeSlow?F.exports=w:(I(w,v),v.Buffer=m);function m(g,a,f){return h(g,a,f)}I(h,m),m.from=function(g,a,f){if(typeof g=="number")throw new TypeError("Argument must not be a number");return h(g,a,f)},m.alloc=function(g,a,f){if(typeof g!="number")throw new TypeError("Argument must be a number");var d=h(g);return a!==void 0?typeof f=="string"?d.fill(a,f):d.fill(a):d.fill(0),d},m.allocUnsafe=function(g){if(typeof g!="number")throw new TypeError("Argument must be a number");return h(g)},m.allocUnsafeSlow=function(g){if(typeof g!="number")throw new TypeError("Argument must be a number");return w.SlowBuffer(g)}},{buffer:73}],229:[function(S,F,v){(function(w){"use strict";var h=S("babel-runtime/core-js/string/from-code-point"),I=s(h),m=S("babel-runtime/core-js/json/stringify"),g=s(m),a=S("babel-runtime/helpers/typeof"),f=s(a),d=S("babel-runtime/core-js/object/define-property"),u=s(d),o=S("babel-runtime/core-js/object/keys"),r=s(o),l=S("babel-runtime/core-js/object/create"),n=s(l);function s(e){return e&&e.__esModule?e:{default:e}}(function(e){e.parser=function(X,J){return new _(X,J)},e.SAXParser=_,e.SAXStream=M,e.createStream=x,e.MAX_BUFFER_LENGTH=64*1024;var i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function _(X,J){if(!(this instanceof _))return new _(X,J);var ve=this;y(ve),ve.q=ve.c="",ve.bufferCheckPosition=e.MAX_BUFFER_LENGTH,ve.opt=J||{},ve.opt.lowercase=ve.opt.lowercase||ve.opt.lowercasetags,ve.looseCase=ve.opt.lowercase?"toLowerCase":"toUpperCase",ve.tags=[],ve.closed=ve.closedRoot=ve.sawRoot=!1,ve.tag=ve.error=null,ve.strict=!!X,ve.noscript=!!(X||ve.opt.noscript),ve.state=j.BEGIN,ve.strictEntities=ve.opt.strictEntities,ve.ENTITIES=ve.strictEntities?(0,n.default)(e.XML_ENTITIES):(0,n.default)(e.ENTITIES),ve.attribList=[],ve.opt.xmlns&&(ve.ns=(0,n.default)(B)),ve.trackPosition=ve.opt.position!==!1,ve.trackPosition&&(ve.position=ve.line=ve.column=0),ie(ve,"onready")}n.default||(Object.create=function(X){function J(){}J.prototype=X;var ve=new J;return ve}),r.default||(Object.keys=function(X){var J=[];for(var ve in X)X.hasOwnProperty(ve)&&J.push(ve);return J});function b(X){for(var J=Math.max(e.MAX_BUFFER_LENGTH,10),ve=0,he=0,Ce=i.length;he<Ce;he++){var Pe=X[i[he]].length;if(Pe>J)switch(i[he]){case"textNode":Ee(X);break;case"cdata":pe(X,"oncdata",X.cdata),X.cdata="";break;case"script":pe(X,"onscript",X.script),X.script="";break;default:q(X,"Max buffer length exceeded: "+i[he])}ve=Math.max(ve,Pe)}var de=e.MAX_BUFFER_LENGTH-ve;X.bufferCheckPosition=de+X.position}function y(X){for(var J=0,ve=i.length;J<ve;J++)X[i[J]]=""}function E(X){Ee(X),X.cdata!==""&&(pe(X,"oncdata",X.cdata),X.cdata=""),X.script!==""&&(pe(X,"onscript",X.script),X.script="")}_.prototype={end:function(){be(this)},write:Y,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){E(this)}};var c;try{c=S("stream").Stream}catch(X){c=function(){}}var C=e.EVENTS.filter(function(X){return X!=="error"&&X!=="end"});function x(X,J){return new M(X,J)}function M(X,J){if(!(this instanceof M))return new M(X,J);c.apply(this),this._parser=new _(X,J),this.writable=!0,this.readable=!0;var ve=this;this._parser.onend=function(){ve.emit("end")},this._parser.onerror=function(he){ve.emit("error",he),ve._parser.error=null},this._decoder=null,C.forEach(function(he){(0,u.default)(ve,"on"+he,{get:function(){return ve._parser["on"+he]},set:function(Pe){if(!Pe)return ve.removeAllListeners(he),ve._parser["on"+he]=Pe,Pe;ve.on(he,Pe)},enumerable:!0,configurable:!1})})}M.prototype=(0,n.default)(c.prototype,{constructor:{value:M}}),M.prototype.write=function(X){if(typeof w=="function"&&typeof w.isBuffer=="function"&&w.isBuffer(X)){if(!this._decoder){var J=S("string_decoder").StringDecoder;this._decoder=new J("utf8")}X=this._decoder.write(X)}return this._parser.write(X.toString()),this.emit("data",X),!0},M.prototype.end=function(X){return X&&X.length&&this.write(X),this._parser.end(),!0},M.prototype.on=function(X,J){var ve=this;return!ve._parser["on"+X]&&C.indexOf(X)!==-1&&(ve._parser["on"+X]=function(){var he=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);he.splice(0,0,X),ve.emit.apply(ve,he)}),c.prototype.on.call(ve,X,J)};var k="[CDATA[",T="DOCTYPE",R="http://www.w3.org/XML/1998/namespace",P="http://www.w3.org/2000/xmlns/",B={xml:R,xmlns:P},W=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,z=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,H=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,ee=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function G(X){return X===" "||X===`
`||X==="\r"||X===" "}function U(X){return X==='"'||X==="'"}function K(X){return X===">"||G(X)}function L(X,J){return X.test(J)}function D(X,J){return!L(X,J)}var j=0;e.STATE={BEGIN:j++,BEGIN_WHITESPACE:j++,TEXT:j++,TEXT_ENTITY:j++,OPEN_WAKA:j++,SGML_DECL:j++,SGML_DECL_QUOTED:j++,DOCTYPE:j++,DOCTYPE_QUOTED:j++,DOCTYPE_DTD:j++,DOCTYPE_DTD_QUOTED:j++,COMMENT_STARTING:j++,COMMENT:j++,COMMENT_ENDING:j++,COMMENT_ENDED:j++,CDATA:j++,CDATA_ENDING:j++,CDATA_ENDING_2:j++,PROC_INST:j++,PROC_INST_BODY:j++,PROC_INST_ENDING:j++,OPEN_TAG:j++,OPEN_TAG_SLASH:j++,ATTRIB:j++,ATTRIB_NAME:j++,ATTRIB_NAME_SAW_WHITE:j++,ATTRIB_VALUE:j++,ATTRIB_VALUE_QUOTED:j++,ATTRIB_VALUE_CLOSED:j++,ATTRIB_VALUE_UNQUOTED:j++,ATTRIB_VALUE_ENTITY_Q:j++,ATTRIB_VALUE_ENTITY_U:j++,CLOSE_TAG:j++,CLOSE_TAG_SAW_WHITE:j++,SCRIPT:j++,SCRIPT_ENDING:j++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,r.default)(e.ENTITIES).forEach(function(X){var J=e.ENTITIES[X],ve=typeof J=="number"?String.fromCharCode(J):J;e.ENTITIES[X]=ve});for(var Z in e.STATE)e.STATE[e.STATE[Z]]=Z;j=e.STATE;function ie(X,J,ve){X[J]&&X[J](ve)}function pe(X,J,ve){X.textNode&&Ee(X),ie(X,J,ve)}function Ee(X){X.textNode=De(X.opt,X.textNode),X.textNode&&ie(X,"ontext",X.textNode),X.textNode=""}function De(X,J){return X.trim&&(J=J.trim()),X.normalize&&(J=J.replace(/\s+/g," ")),J}function q(X,J){return Ee(X),X.trackPosition&&(J+=`
Line: `+X.line+`
Column: `+X.column+`
Char: `+X.c),J=new Error(J),X.error=J,ie(X,"onerror",J),X}function be(X){return X.sawRoot&&!X.closedRoot&&ye(X,"Unclosed root tag"),X.state!==j.BEGIN&&X.state!==j.BEGIN_WHITESPACE&&X.state!==j.TEXT&&q(X,"Unexpected end"),Ee(X),X.c="",X.closed=!0,ie(X,"onend"),_.call(X,X.strict,X.opt),X}function ye(X,J){if((typeof X=="undefined"?"undefined":(0,f.default)(X))!=="object"||!(X instanceof _))throw new Error("bad call to strictFail");X.strict&&q(X,J)}function le(X){X.strict||(X.tagName=X.tagName[X.looseCase]());var J=X.tags[X.tags.length-1]||X,ve=X.tag={name:X.tagName,attributes:{}};X.opt.xmlns&&(ve.ns=J.ns),X.attribList.length=0,pe(X,"onopentagstart",ve)}function ue(X,J){var ve=X.indexOf(":"),he=ve<0?["",X]:X.split(":"),Ce=he[0],Pe=he[1];return J&&X==="xmlns"&&(Ce="xmlns",Pe=""),{prefix:Ce,local:Pe}}function ne(X){if(X.strict||(X.attribName=X.attribName[X.looseCase]()),X.attribList.indexOf(X.attribName)!==-1||X.tag.attributes.hasOwnProperty(X.attribName)){X.attribName=X.attribValue="";return}if(X.opt.xmlns){var J=ue(X.attribName,!0),ve=J.prefix,he=J.local;if(ve==="xmlns")if(he==="xml"&&X.attribValue!==R)ye(X,"xml: prefix must be bound to "+R+`
Actual: `+X.attribValue);else if(he==="xmlns"&&X.attribValue!==P)ye(X,"xmlns: prefix must be bound to "+P+`
Actual: `+X.attribValue);else{var Ce=X.tag,Pe=X.tags[X.tags.length-1]||X;Ce.ns===Pe.ns&&(Ce.ns=(0,n.default)(Pe.ns)),Ce.ns[he]=X.attribValue}X.attribList.push([X.attribName,X.attribValue])}else X.tag.attributes[X.attribName]=X.attribValue,pe(X,"onattribute",{name:X.attribName,value:X.attribValue});X.attribName=X.attribValue=""}function xe(X,J){if(X.opt.xmlns){var ve=X.tag,he=ue(X.tagName);ve.prefix=he.prefix,ve.local=he.local,ve.uri=ve.ns[he.prefix]||"",ve.prefix&&!ve.uri&&(ye(X,"Unbound namespace prefix: "+(0,g.default)(X.tagName)),ve.uri=he.prefix);var Ce=X.tags[X.tags.length-1]||X;ve.ns&&Ce.ns!==ve.ns&&(0,r.default)(ve.ns).forEach(function(We){pe(X,"onopennamespace",{prefix:We,uri:ve.ns[We]})});for(var Pe=0,de=X.attribList.length;Pe<de;Pe++){var ke=X.attribList[Pe],me=ke[0],Be=ke[1],ft=ue(me,!0),vt=ft.prefix,Xe=ft.local,Bt=vt===""?"":ve.ns[vt]||"",Ae={name:me,value:Be,prefix:vt,local:Xe,uri:Bt};vt&&vt!=="xmlns"&&!Bt&&(ye(X,"Unbound namespace prefix: "+(0,g.default)(vt)),Ae.uri=vt),X.tag.attributes[me]=Ae,pe(X,"onattribute",Ae)}X.attribList.length=0}X.tag.isSelfClosing=!!J,X.sawRoot=!0,X.tags.push(X.tag),pe(X,"onopentag",X.tag),J||(!X.noscript&&X.tagName.toLowerCase()==="script"?X.state=j.SCRIPT:X.state=j.TEXT,X.tag=null,X.tagName=""),X.attribName=X.attribValue="",X.attribList.length=0}function $(X){if(!X.tagName){ye(X,"Weird empty close tag."),X.textNode+="</>",X.state=j.TEXT;return}if(X.script){if(X.tagName!=="script"){X.script+="</"+X.tagName+">",X.tagName="",X.state=j.SCRIPT;return}pe(X,"onscript",X.script),X.script=""}var J=X.tags.length,ve=X.tagName;X.strict||(ve=ve[X.looseCase]());for(var he=ve;J--;){var Ce=X.tags[J];if(Ce.name!==he)ye(X,"Unexpected close tag");else break}if(J<0){ye(X,"Unmatched closing tag: "+X.tagName),X.textNode+="</"+X.tagName+">",X.state=j.TEXT;return}X.tagName=ve;for(var Pe=X.tags.length;Pe-- >J;){var de=X.tag=X.tags.pop();X.tagName=X.tag.name,pe(X,"onclosetag",X.tagName);var ke={};for(var me in de.ns)ke[me]=de.ns[me];var Be=X.tags[X.tags.length-1]||X;X.opt.xmlns&&de.ns!==Be.ns&&(0,r.default)(de.ns).forEach(function(ft){var vt=de.ns[ft];pe(X,"onclosenamespace",{prefix:ft,uri:vt})})}J===0&&(X.closedRoot=!0),X.tagName=X.attribValue=X.attribName="",X.attribList.length=0,X.state=j.TEXT}function oe(X){var J=X.entity,ve=J.toLowerCase(),he,Ce="";return X.ENTITIES[J]?X.ENTITIES[J]:X.ENTITIES[ve]?X.ENTITIES[ve]:(J=ve,J.charAt(0)==="#"&&(J.charAt(1)==="x"?(J=J.slice(2),he=parseInt(J,16),Ce=he.toString(16)):(J=J.slice(1),he=parseInt(J,10),Ce=he.toString(10))),J=J.replace(/^0+/,""),isNaN(he)||Ce.toLowerCase()!==J?(ye(X,"Invalid character entity"),"&"+X.entity+";"):(0,I.default)(he))}function Le(X,J){J==="<"?(X.state=j.OPEN_WAKA,X.startTagPosition=X.position):G(J)||(ye(X,"Non-whitespace before first tag."),X.textNode=J,X.state=j.TEXT)}function te(X,J){var ve="";return J<X.length&&(ve=X.charAt(J)),ve}function Y(X){var J=this;if(this.error)throw this.error;if(J.closed)return q(J,"Cannot write after close. Assign an onready handler.");if(X===null)return be(J);(typeof X=="undefined"?"undefined":(0,f.default)(X))==="object"&&(X=X.toString());for(var ve=0,he="";!(he=te(X,ve++),J.c=he,!he);){J.trackPosition&&(J.position++,he===`
`?(J.line++,J.column=0):J.column++);switch(J.state){case j.BEGIN:if(J.state=j.BEGIN_WHITESPACE,he==="\uFEFF")continue;Le(J,he);continue;case j.BEGIN_WHITESPACE:Le(J,he);continue;case j.TEXT:if(J.sawRoot&&!J.closedRoot){for(var Ce=ve-1;he&&he!=="<"&&he!=="&";)he=te(X,ve++),he&&J.trackPosition&&(J.position++,he===`
`?(J.line++,J.column=0):J.column++);J.textNode+=X.substring(Ce,ve-1)}he==="<"&&!(J.sawRoot&&J.closedRoot&&!J.strict)?(J.state=j.OPEN_WAKA,J.startTagPosition=J.position):(!G(he)&&(!J.sawRoot||J.closedRoot)&&ye(J,"Text data outside of root node."),he==="&"?J.state=j.TEXT_ENTITY:J.textNode+=he);continue;case j.SCRIPT:he==="<"?J.state=j.SCRIPT_ENDING:J.script+=he;continue;case j.SCRIPT_ENDING:he==="/"?J.state=j.CLOSE_TAG:(J.script+="<"+he,J.state=j.SCRIPT);continue;case j.OPEN_WAKA:if(he==="!")J.state=j.SGML_DECL,J.sgmlDecl="";else if(!G(he))if(L(W,he))J.state=j.OPEN_TAG,J.tagName=he;else if(he==="/")J.state=j.CLOSE_TAG,J.tagName="";else if(he==="?")J.state=j.PROC_INST,J.procInstName=J.procInstBody="";else{if(ye(J,"Unencoded <"),J.startTagPosition+1<J.position){var Pe=J.position-J.startTagPosition;he=new Array(Pe).join(" ")+he}J.textNode+="<"+he,J.state=j.TEXT}continue;case j.SGML_DECL:(J.sgmlDecl+he).toUpperCase()===k?(pe(J,"onopencdata"),J.state=j.CDATA,J.sgmlDecl="",J.cdata=""):J.sgmlDecl+he==="--"?(J.state=j.COMMENT,J.comment="",J.sgmlDecl=""):(J.sgmlDecl+he).toUpperCase()===T?(J.state=j.DOCTYPE,(J.doctype||J.sawRoot)&&ye(J,"Inappropriately located doctype declaration"),J.doctype="",J.sgmlDecl=""):he===">"?(pe(J,"onsgmldeclaration",J.sgmlDecl),J.sgmlDecl="",J.state=j.TEXT):(U(he)&&(J.state=j.SGML_DECL_QUOTED),J.sgmlDecl+=he);continue;case j.SGML_DECL_QUOTED:he===J.q&&(J.state=j.SGML_DECL,J.q=""),J.sgmlDecl+=he;continue;case j.DOCTYPE:he===">"?(J.state=j.TEXT,pe(J,"ondoctype",J.doctype),J.doctype=!0):(J.doctype+=he,he==="["?J.state=j.DOCTYPE_DTD:U(he)&&(J.state=j.DOCTYPE_QUOTED,J.q=he));continue;case j.DOCTYPE_QUOTED:J.doctype+=he,he===J.q&&(J.q="",J.state=j.DOCTYPE);continue;case j.DOCTYPE_DTD:J.doctype+=he,he==="]"?J.state=j.DOCTYPE:U(he)&&(J.state=j.DOCTYPE_DTD_QUOTED,J.q=he);continue;case j.DOCTYPE_DTD_QUOTED:J.doctype+=he,he===J.q&&(J.state=j.DOCTYPE_DTD,J.q="");continue;case j.COMMENT:he==="-"?J.state=j.COMMENT_ENDING:J.comment+=he;continue;case j.COMMENT_ENDING:he==="-"?(J.state=j.COMMENT_ENDED,J.comment=De(J.opt,J.comment),J.comment&&pe(J,"oncomment",J.comment),J.comment=""):(J.comment+="-"+he,J.state=j.COMMENT);continue;case j.COMMENT_ENDED:he!==">"?(ye(J,"Malformed comment"),J.comment+="--"+he,J.state=j.COMMENT):J.state=j.TEXT;continue;case j.CDATA:he==="]"?J.state=j.CDATA_ENDING:J.cdata+=he;continue;case j.CDATA_ENDING:he==="]"?J.state=j.CDATA_ENDING_2:(J.cdata+="]"+he,J.state=j.CDATA);continue;case j.CDATA_ENDING_2:he===">"?(J.cdata&&pe(J,"oncdata",J.cdata),pe(J,"onclosecdata"),J.cdata="",J.state=j.TEXT):he==="]"?J.cdata+="]":(J.cdata+="]]"+he,J.state=j.CDATA);continue;case j.PROC_INST:he==="?"?J.state=j.PROC_INST_ENDING:G(he)?J.state=j.PROC_INST_BODY:J.procInstName+=he;continue;case j.PROC_INST_BODY:if(!J.procInstBody&&G(he))continue;he==="?"?J.state=j.PROC_INST_ENDING:J.procInstBody+=he;continue;case j.PROC_INST_ENDING:he===">"?(pe(J,"onprocessinginstruction",{name:J.procInstName,body:J.procInstBody}),J.procInstName=J.procInstBody="",J.state=j.TEXT):(J.procInstBody+="?"+he,J.state=j.PROC_INST_BODY);continue;case j.OPEN_TAG:L(z,he)?J.tagName+=he:(le(J),he===">"?xe(J):he==="/"?J.state=j.OPEN_TAG_SLASH:(G(he)||ye(J,"Invalid character in tag name"),J.state=j.ATTRIB));continue;case j.OPEN_TAG_SLASH:he===">"?(xe(J,!0),$(J)):(ye(J,"Forward-slash in opening tag not followed by >"),J.state=j.ATTRIB);continue;case j.ATTRIB:if(G(he))continue;he===">"?xe(J):he==="/"?J.state=j.OPEN_TAG_SLASH:L(W,he)?(J.attribName=he,J.attribValue="",J.state=j.ATTRIB_NAME):ye(J,"Invalid attribute name");continue;case j.ATTRIB_NAME:he==="="?J.state=j.ATTRIB_VALUE:he===">"?(ye(J,"Attribute without value"),J.attribValue=J.attribName,ne(J),xe(J)):G(he)?J.state=j.ATTRIB_NAME_SAW_WHITE:L(z,he)?J.attribName+=he:ye(J,"Invalid attribute name");continue;case j.ATTRIB_NAME_SAW_WHITE:if(he==="=")J.state=j.ATTRIB_VALUE;else{if(G(he))continue;ye(J,"Attribute without value"),J.tag.attributes[J.attribName]="",J.attribValue="",pe(J,"onattribute",{name:J.attribName,value:""}),J.attribName="",he===">"?xe(J):L(W,he)?(J.attribName=he,J.state=j.ATTRIB_NAME):(ye(J,"Invalid attribute name"),J.state=j.ATTRIB)}continue;case j.ATTRIB_VALUE:if(G(he))continue;U(he)?(J.q=he,J.state=j.ATTRIB_VALUE_QUOTED):(ye(J,"Unquoted attribute value"),J.state=j.ATTRIB_VALUE_UNQUOTED,J.attribValue=he);continue;case j.ATTRIB_VALUE_QUOTED:if(he!==J.q){he==="&"?J.state=j.ATTRIB_VALUE_ENTITY_Q:J.attribValue+=he;continue}ne(J),J.q="",J.state=j.ATTRIB_VALUE_CLOSED;continue;case j.ATTRIB_VALUE_CLOSED:G(he)?J.state=j.ATTRIB:he===">"?xe(J):he==="/"?J.state=j.OPEN_TAG_SLASH:L(W,he)?(ye(J,"No whitespace between attributes"),J.attribName=he,J.attribValue="",J.state=j.ATTRIB_NAME):ye(J,"Invalid attribute name");continue;case j.ATTRIB_VALUE_UNQUOTED:if(!K(he)){he==="&"?J.state=j.ATTRIB_VALUE_ENTITY_U:J.attribValue+=he;continue}ne(J),he===">"?xe(J):J.state=j.ATTRIB;continue;case j.CLOSE_TAG:if(J.tagName)he===">"?$(J):L(z,he)?J.tagName+=he:J.script?(J.script+="</"+J.tagName,J.tagName="",J.state=j.SCRIPT):(G(he)||ye(J,"Invalid tagname in closing tag"),J.state=j.CLOSE_TAG_SAW_WHITE);else{if(G(he))continue;D(W,he)?J.script?(J.script+="</"+he,J.state=j.SCRIPT):ye(J,"Invalid tagname in closing tag."):J.tagName=he}continue;case j.CLOSE_TAG_SAW_WHITE:if(G(he))continue;he===">"?$(J):ye(J,"Invalid characters in closing tag");continue;case j.TEXT_ENTITY:case j.ATTRIB_VALUE_ENTITY_Q:case j.ATTRIB_VALUE_ENTITY_U:var de,ke;switch(J.state){case j.TEXT_ENTITY:de=j.TEXT,ke="textNode";break;case j.ATTRIB_VALUE_ENTITY_Q:de=j.ATTRIB_VALUE_QUOTED,ke="attribValue";break;case j.ATTRIB_VALUE_ENTITY_U:de=j.ATTRIB_VALUE_UNQUOTED,ke="attribValue";break}he===";"?(J[ke]+=oe(J),J.entity="",J.state=de):L(J.entity.length?ee:H,he)?J.entity+=he:(ye(J,"Invalid character in entity name"),J[ke]+="&"+J.entity+he,J.entity="",J.state=de);continue;default:throw new Error(J,"Unknown state: "+J.state)}}return J.position>=J.bufferCheckPosition&&b(J),J}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */I.default||function(){var X=String.fromCharCode,J=Math.floor,ve=function(){var Ce=16384,Pe=[],de,ke,me=-1,Be=arguments.length;if(!Be)return"";for(var ft="";++me<Be;){var vt=Number(arguments[me]);if(!isFinite(vt)||vt<0||vt>1114111||J(vt)!==vt)throw RangeError("Invalid code point: "+vt);vt<=65535?Pe.push(vt):(vt-=65536,de=(vt>>10)+55296,ke=vt%1024+56320,Pe.push(de,ke)),(me+1===Be||Pe.length>Ce)&&(ft+=X.apply(null,Pe),Pe.length=0)}return ft};u.default?Object.defineProperty(String,"fromCodePoint",{value:ve,configurable:!0,writable:!0}):String.fromCodePoint=ve}()})(typeof v=="undefined"?(void 0).sax={}:v)}).call(this,S("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(S,F,v){F.exports=I;var w=S("events").EventEmitter,h=S("inherits");h(I,w),I.Readable=S("readable-stream/readable.js"),I.Writable=S("readable-stream/writable.js"),I.Duplex=S("readable-stream/duplex.js"),I.Transform=S("readable-stream/transform.js"),I.PassThrough=S("readable-stream/passthrough.js"),I.Stream=I;function I(){w.call(this)}I.prototype.pipe=function(m,g){var a=this;function f(s){m.writable&&(m.write(s)===!1&&a.pause&&a.pause())}a.on("data",f);function d(){a.readable&&a.resume&&a.resume()}m.on("drain",d),!m._isStdio&&(!g||g.end!==!1)&&(a.on("end",o),a.on("close",r));var u=!1;function o(){if(u)return;u=!0,m.end()}function r(){if(u)return;u=!0,typeof m.destroy=="function"&&m.destroy()}function l(s){if(n(),w.listenerCount(this,"error")===0)throw s}a.on("error",l),m.on("error",l);function n(){a.removeListener("data",f),m.removeListener("drain",d),a.removeListener("end",o),a.removeListener("close",r),a.removeListener("error",l),m.removeListener("error",l),a.removeListener("end",n),a.removeListener("close",n),m.removeListener("close",n)}return a.on("end",n),a.on("close",n),m.on("close",n),m.emit("pipe",a),m}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(S,F,v){(function(w){var h=S("./lib/request"),I=S("./lib/response"),m=S("xtend"),g=S("builtin-status-codes"),a=S("url"),f=v;f.request=function(d,u){typeof d=="string"?d=a.parse(d):d=m(d);var o=w.location.protocol.search(/^https?:$/)===-1?"http:":"",r=d.protocol||o,l=d.hostname||d.host,n=d.port,s=d.path||"/";l&&l.indexOf(":")!==-1&&(l="["+l+"]"),d.url=(l?r+"//"+l:"")+(n?":"+n:"")+s,d.method=(d.method||"GET").toUpperCase(),d.headers=d.headers||{};var e=new h(d);return u&&e.on("response",u),e},f.get=function(u,o){var r=f.request(u,o);return r.end(),r},f.ClientRequest=h,f.IncomingMessage=I.IncomingMessage,f.Agent=function(){},f.Agent.defaultMaxSockets=4,f.globalAgent=new f.Agent,f.STATUS_CODES=g,f.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(S,F,v){(function(w){"use strict";v.fetch=f(w.fetch)&&f(w.ReadableStream),v.writableStream=f(w.WritableStream),v.abortController=f(w.AbortController),v.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),v.blobConstructor=!0}catch(d){}var h;function I(){if(h!==void 0)return h;if(w.XMLHttpRequest){h=new w.XMLHttpRequest;try{h.open("GET",w.XDomainRequest?"/":"https://example.com")}catch(d){h=null}}else h=null;return h}function m(d){var u=I();if(!u)return!1;try{return u.responseType=d,u.responseType===d}catch(o){}return!1}var g=typeof w.ArrayBuffer!="undefined",a=g&&f(w.ArrayBuffer.prototype.slice);v.arraybuffer=v.fetch||g&&m("arraybuffer"),v.msstream=!v.fetch&&a&&m("ms-stream"),v.mozchunkedarraybuffer=!v.fetch&&g&&m("moz-chunked-arraybuffer"),v.overrideMimeType=v.fetch||(I()?f(I().overrideMimeType):!1),v.vbArray=f(w.VBArray);function f(d){return typeof d=="function"}h=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(S,F,v){(function(w,h,I){"use strict";var m=S("babel-runtime/core-js/object/keys"),g=a(m);function a(b){return b&&b.__esModule?b:{default:b}}var f=S("./capability"),d=S("inherits"),u=S("./response"),o=S("readable-stream"),r=S("to-arraybuffer"),l=u.IncomingMessage,n=u.readyStates;function s(b,y){return f.fetch&&y?"fetch":f.mozchunkedarraybuffer?"moz-chunked-arraybuffer":f.msstream?"ms-stream":f.arraybuffer&&b?"arraybuffer":f.vbArray&&b?"text:vbarray":"text"}var e=F.exports=function(b){var y=this;o.Writable.call(y),y._opts=b,y._body=[],y._headers={},b.auth&&y.setHeader("Authorization","Basic "+new I(b.auth).toString("base64")),(0,g.default)(b.headers).forEach(function(C){y.setHeader(C,b.headers[C])});var E,c=!0;if(b.mode==="disable-fetch"||"requestTimeout"in b&&!f.abortController)c=!1,E=!0;else if(b.mode==="prefer-streaming")E=!1;else if(b.mode==="allow-wrong-content-type")E=!f.overrideMimeType;else if(!b.mode||b.mode==="default"||b.mode==="prefer-fast")E=!0;else throw new Error("Invalid value for opts.mode");y._mode=s(E,c),y._fetchTimer=null,y.on("finish",function(){y._onFinish()})};d(e,o.Writable),e.prototype.setHeader=function(b,y){var E=this,c=b.toLowerCase();if(_.indexOf(c)!==-1)return;E._headers[c]={name:b,value:y}},e.prototype.getHeader=function(b){var y=this._headers[b.toLowerCase()];return y?y.value:null},e.prototype.removeHeader=function(b){var y=this;delete y._headers[b.toLowerCase()]},e.prototype._onFinish=function(){var b=this;if(b._destroyed)return;var y=b._opts,E=b._headers,c=null;y.method!=="GET"&&y.method!=="HEAD"&&(f.arraybuffer?c=r(I.concat(b._body)):f.blobConstructor?c=new h.Blob(b._body.map(function(R){return r(R)}),{type:(E["content-type"]||{}).value||""}):c=I.concat(b._body).toString());var C=[];if((0,g.default)(E).forEach(function(R){var P=E[R].name,B=E[R].value;Array.isArray(B)?B.forEach(function(W){C.push([P,W])}):C.push([P,B])}),b._mode==="fetch"){var x=null,M=null;if(f.abortController){var k=new AbortController;x=k.signal,b._fetchAbortController=k,"requestTimeout"in y&&y.requestTimeout!==0&&(b._fetchTimer=h.setTimeout(function(){b.emit("requestTimeout"),b._fetchAbortController&&b._fetchAbortController.abort()},y.requestTimeout))}h.fetch(b._opts.url,{method:b._opts.method,headers:C,body:c||void 0,mode:"cors",credentials:y.withCredentials?"include":"same-origin",signal:x}).then(function(R){b._fetchResponse=R,b._connect()},function(R){h.clearTimeout(b._fetchTimer),b._destroyed||b.emit("error",R)})}else{var T=b._xhr=new h.XMLHttpRequest;try{T.open(b._opts.method,b._opts.url,!0)}catch(R){w.nextTick(function(){b.emit("error",R)});return}"responseType"in T&&(T.responseType=b._mode.split(":")[0]),"withCredentials"in T&&(T.withCredentials=!!y.withCredentials),b._mode==="text"&&"overrideMimeType"in T&&T.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in y&&(T.timeout=y.requestTimeout,T.ontimeout=function(){b.emit("requestTimeout")}),C.forEach(function(R){T.setRequestHeader(R[0],R[1])}),b._response=null,T.onreadystatechange=function(){switch(T.readyState){case n.LOADING:case n.DONE:b._onXHRProgress();break}},b._mode==="moz-chunked-arraybuffer"&&(T.onprogress=function(){b._onXHRProgress()}),T.onerror=function(){if(b._destroyed)return;b.emit("error",new Error("XHR error"))};try{T.send(c)}catch(R){w.nextTick(function(){b.emit("error",R)});return}}};function i(b){try{var y=b.status;return y!==null&&y!==0}catch(E){return!1}}e.prototype._onXHRProgress=function(){var b=this;if(!i(b._xhr)||b._destroyed)return;b._response||b._connect(),b._response._onXHRProgress()},e.prototype._connect=function(){var b=this;if(b._destroyed)return;b._response=new l(b._xhr,b._fetchResponse,b._mode,b._fetchTimer),b._response.on("error",function(y){b.emit("error",y)}),b.emit("response",b._response)},e.prototype._write=function(b,y,E){var c=this;c._body.push(b),E()},e.prototype.abort=e.prototype.destroy=function(){var b=this;b._destroyed=!0,h.clearTimeout(b._fetchTimer),b._response&&(b._response._destroyed=!0),b._xhr?b._xhr.abort():b._fetchAbortController&&b._fetchAbortController.abort()},e.prototype.end=function(b,y,E){var c=this;typeof b=="function"&&(E=b,b=void 0),o.Writable.prototype.end.call(c,b,y,E)},e.prototype.flushHeaders=function(){},e.prototype.setTimeout=function(){},e.prototype.setNoDelay=function(){},e.prototype.setSocketKeepAlive=function(){};var _=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,S("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},S("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(S,F,v){(function(w,h,I){"use strict";var m=S("babel-runtime/core-js/promise"),g=a(m);function a(l){return l&&l.__esModule?l:{default:l}}var f=S("./capability"),d=S("inherits"),u=S("readable-stream"),o=v.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},r=v.IncomingMessage=function(l,n,s,e){var i=this;if(u.Readable.call(i),i._mode=s,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){w.nextTick(function(){i.emit("close")})}),s==="fetch"){var _=function x(){y.read().then(function(M){if(i._destroyed)return;if(M.done){h.clearTimeout(e),i.push(null);return}i.push(new I(M.value)),x()}).catch(function(M){h.clearTimeout(e),i._destroyed||i.emit("error",M)})};if(i._fetchResponse=n,i.url=n.url,i.statusCode=n.status,i.statusMessage=n.statusText,n.headers.forEach(function(x,M){i.headers[M.toLowerCase()]=x,i.rawHeaders.push(M,x)}),f.writableStream){var b=new WritableStream({write:function(M){return new g.default(function(k,T){i._destroyed?T():i.push(new I(M))?k():i._resumeFetch=k})},close:function(){h.clearTimeout(e),i._destroyed||i.push(null)},abort:function(M){i._destroyed||i.emit("error",M)}});try{n.body.pipeTo(b).catch(function(x){h.clearTimeout(e),i._destroyed||i.emit("error",x)});return}catch(x){}}var y=n.body.getReader();_()}else{i._xhr=l,i._pos=0,i.url=l.responseURL,i.statusCode=l.status,i.statusMessage=l.statusText;var E=l.getAllResponseHeaders().split(/\r?\n/);if(E.forEach(function(x){var M=x.match(/^([^:]+):\s*(.*)/);if(M){var k=M[1].toLowerCase();k==="set-cookie"?(i.headers[k]===void 0&&(i.headers[k]=[]),i.headers[k].push(M[2])):i.headers[k]!==void 0?i.headers[k]+=", "+M[2]:i.headers[k]=M[2],i.rawHeaders.push(M[1],M[2])}}),i._charset="x-user-defined",!f.overrideMimeType){var c=i.rawHeaders["mime-type"];if(c){var C=c.match(/;\s*charset=([^;])(;|$)/);C&&(i._charset=C[1].toLowerCase())}i._charset||(i._charset="utf-8")}}};d(r,u.Readable),r.prototype._read=function(){var l=this,n=l._resumeFetch;n&&(l._resumeFetch=null,n())},r.prototype._onXHRProgress=function(){var l=this,n=l._xhr,s=null;switch(l._mode){case"text:vbarray":if(n.readyState!==o.DONE)break;try{s=new h.VBArray(n.responseBody).toArray()}catch(y){}if(s!==null){l.push(new I(s));break}case"text":try{s=n.responseText}catch(y){l._mode="text:vbarray";break}if(s.length>l._pos){var e=s.substr(l._pos);if(l._charset==="x-user-defined"){for(var i=new I(e.length),_=0;_<e.length;_++)i[_]=e.charCodeAt(_)&255;l.push(i)}else l.push(e,l._charset);l._pos=s.length}break;case"arraybuffer":if(n.readyState!==o.DONE||!n.response)break;s=n.response,l.push(new I(new Uint8Array(s)));break;case"moz-chunked-arraybuffer":if(s=n.response,n.readyState!==o.LOADING||!s)break;l.push(new I(new Uint8Array(s)));break;case"ms-stream":if(s=n.response,n.readyState!==o.LOADING)break;var b=new h.MSStreamReader;b.onprogress=function(){b.result.byteLength>l._pos&&(l.push(new I(new Uint8Array(b.result.slice(l._pos)))),l._pos=b.result.byteLength)},b.onload=function(){l.push(null)},b.readAsArrayBuffer(s);break}l._xhr.readyState===o.DONE&&l._mode!=="ms-stream"&&l.push(null)}}).call(this,S("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},S("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(S,F,v){"use strict";var w=S("safe-buffer").Buffer,h=w.isEncoding||function(b){b=""+b;switch(b&&b.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function I(b){if(!b)return"utf8";for(var y;;)switch(b){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return b;default:if(y)return;b=(""+b).toLowerCase(),y=!0}}function m(b){var y=I(b);if(typeof y!="string"&&(w.isEncoding===h||!h(b)))throw new Error("Unknown encoding: "+b);return y||b}v.StringDecoder=g;function g(b){this.encoding=m(b);var y;switch(this.encoding){case"utf16le":this.text=l,this.end=n,y=4;break;case"utf8":this.fillLast=u,y=4;break;case"base64":this.text=s,this.end=e,y=3;break;default:this.write=i,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=w.allocUnsafe(y)}g.prototype.write=function(b){if(b.length===0)return"";var y,E;if(this.lastNeed){if(y=this.fillLast(b),y===void 0)return"";E=this.lastNeed,this.lastNeed=0}else E=0;return E<b.length?y?y+this.text(b,E):this.text(b,E):y||""},g.prototype.end=r,g.prototype.text=o,g.prototype.fillLast=function(b){if(this.lastNeed<=b.length)return b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,this.lastTotal-this.lastNeed,0,b.length),this.lastNeed-=b.length};function a(b){return b<=127?0:b>>5===6?2:b>>4===14?3:b>>3===30?4:b>>6===2?-1:-2}function f(b,y,E){var c=y.length-1;if(c<E)return 0;var C=a(y[c]);return C>=0?(C>0&&(b.lastNeed=C-1),C):--c<E||C===-2?0:(C=a(y[c]),C>=0?(C>0&&(b.lastNeed=C-2),C):--c<E||C===-2?0:(C=a(y[c]),C>=0?(C>0&&(C===2?C=0:b.lastNeed=C-3),C):0))}function d(b,y,E){if((y[0]&192)!==128)return b.lastNeed=0,"\uFFFD";if(b.lastNeed>1&&y.length>1){if((y[1]&192)!==128)return b.lastNeed=1,"\uFFFD";if(b.lastNeed>2&&y.length>2&&(y[2]&192)!==128)return b.lastNeed=2,"\uFFFD"}}function u(b){var y=this.lastTotal-this.lastNeed,E=d(this,b,y);if(E!==void 0)return E;if(this.lastNeed<=b.length)return b.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);b.copy(this.lastChar,y,0,b.length),this.lastNeed-=b.length}function o(b,y){var E=f(this,b,y);if(!this.lastNeed)return b.toString("utf8",y);this.lastTotal=E;var c=b.length-(E-this.lastNeed);return b.copy(this.lastChar,0,c),b.toString("utf8",y,c)}function r(b){var y=b&&b.length?this.write(b):"";return this.lastNeed?y+"\uFFFD":y}function l(b,y){if((b.length-y)%2===0){var E=b.toString("utf16le",y);if(E){var c=E.charCodeAt(E.length-1);if(c>=55296&&c<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1],E.slice(0,-1)}return E}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=b[b.length-1],b.toString("utf16le",y,b.length-1)}function n(b){var y=b&&b.length?this.write(b):"";if(this.lastNeed){var E=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,E)}return y}function s(b,y){var E=(b.length-y)%3;return E===0?b.toString("base64",y):(this.lastNeed=3-E,this.lastTotal=3,E===1?this.lastChar[0]=b[b.length-1]:(this.lastChar[0]=b[b.length-2],this.lastChar[1]=b[b.length-1]),b.toString("base64",y,b.length-E))}function e(b){var y=b&&b.length?this.write(b):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function i(b){return b.toString(this.encoding)}function _(b){return b&&b.length?this.write(b):""}},{"safe-buffer":228}],236:[function(S,F,v){(function(w,h){var I=S("process/browser.js").nextTick,m=Function.prototype.apply,g=Array.prototype.slice,a={},f=0;v.setTimeout=function(){return new d(m.call(setTimeout,window,arguments),clearTimeout)},v.setInterval=function(){return new d(m.call(setInterval,window,arguments),clearInterval)},v.clearTimeout=v.clearInterval=function(u){u.close()};function d(u,o){this._id=u,this._clearFn=o}d.prototype.unref=d.prototype.ref=function(){},d.prototype.close=function(){this._clearFn.call(window,this._id)},v.enroll=function(u,o){clearTimeout(u._idleTimeoutId),u._idleTimeout=o},v.unenroll=function(u){clearTimeout(u._idleTimeoutId),u._idleTimeout=-1},v._unrefActive=v.active=function(u){clearTimeout(u._idleTimeoutId);var o=u._idleTimeout;o>=0&&(u._idleTimeoutId=setTimeout(function(){u._onTimeout&&u._onTimeout()},o))},v.setImmediate=typeof w=="function"?w:function(u){var o=f++,r=arguments.length<2?!1:g.call(arguments,1);return a[o]=!0,I(function(){a[o]&&(r?u.apply(null,r):u.call(null),v.clearImmediate(o))}),o},v.clearImmediate=typeof h=="function"?h:function(u){delete a[u]}}).call(this,S("timers").setImmediate,S("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(S,F,v){var w=S("buffer").Buffer;F.exports=function(h){if(h instanceof Uint8Array){if(h.byteOffset===0&&h.byteLength===h.buffer.byteLength)return h.buffer;if(typeof h.buffer.slice=="function")return h.buffer.slice(h.byteOffset,h.byteOffset+h.byteLength)}if(w.isBuffer(h)){for(var I=new Uint8Array(h.length),m=h.length,g=0;g<m;g++)I[g]=h[g];return I.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(S,F,v){"use strict";var w=S("punycode"),h=S("./util");v.parse=y,v.resolve=c,v.resolveObject=C,v.format=E,v.Url=I;function I(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var m=/^([a-z0-9.+-]+:)/i,g=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["<",">",'"',"`"," ","\r",`
`," "],d=["{","}","|","\\","^","`"].concat(f),u=["'"].concat(d),o=["%","/","?",";","#"].concat(u),r=["/","?","#"],l=255,n=/^[+a-z0-9A-Z_-]{0,63}$/,s=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,e={javascript:!0,"javascript:":!0},i={javascript:!0,"javascript:":!0},_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=S("querystring");function y(x,M,k){if(x&&h.isObject(x)&&x instanceof I)return x;var T=new I;return T.parse(x,M,k),T}I.prototype.parse=function(x,M,k){if(!h.isString(x))throw new TypeError("Parameter 'url' must be a string, not "+typeof x);var T=x.indexOf("?"),R=T!==-1&&T<x.indexOf("#")?"?":"#",P=x.split(R),B=/\\/g;P[0]=P[0].replace(B,"/"),x=P.join(R);var W=x;if(W=W.trim(),!k&&x.split("#").length===1){var z=a.exec(W);if(z)return this.path=W,this.href=W,this.pathname=z[1],z[2]?(this.search=z[2],M?this.query=b.parse(this.search.substr(1)):this.query=this.search.substr(1)):M&&(this.search="",this.query={}),this}var H=m.exec(W);if(H){H=H[0];var ee=H.toLowerCase();this.protocol=ee,W=W.substr(H.length)}if(k||H||W.match(/^\/\/[^@\/]+@[^@\/]+/)){var G=W.substr(0,2)==="//";G&&!(H&&i[H])&&(W=W.substr(2),this.slashes=!0)}if(!i[H]&&(G||H&&!_[H])){for(var U=-1,K=0;K<r.length;K++){var L=W.indexOf(r[K]);L!==-1&&(U===-1||L<U)&&(U=L)}var D,j;U===-1?j=W.lastIndexOf("@"):j=W.lastIndexOf("@",U),j!==-1&&(D=W.slice(0,j),W=W.slice(j+1),this.auth=decodeURIComponent(D)),U=-1;for(var K=0;K<o.length;K++){var L=W.indexOf(o[K]);L!==-1&&(U===-1||L<U)&&(U=L)}U===-1&&(U=W.length),this.host=W.slice(0,U),W=W.slice(U),this.parseHost(),this.hostname=this.hostname||"";var Z=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Z)for(var ie=this.hostname.split(/\./),K=0,pe=ie.length;K<pe;K++){var Ee=ie[K];if(!Ee)continue;if(!Ee.match(n)){for(var De="",q=0,be=Ee.length;q<be;q++)Ee.charCodeAt(q)>127?De+="x":De+=Ee[q];if(!De.match(n)){var ye=ie.slice(0,K),le=ie.slice(K+1),ue=Ee.match(s);ue&&(ye.push(ue[1]),le.unshift(ue[2])),le.length&&(W="/"+le.join(".")+W),this.hostname=ye.join(".");break}}}this.hostname.length>l?this.hostname="":this.hostname=this.hostname.toLowerCase(),Z||(this.hostname=w.toASCII(this.hostname));var ne=this.port?":"+this.port:"",xe=this.hostname||"";this.host=xe+ne,this.href+=this.host,Z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),W[0]!=="/"&&(W="/"+W))}if(!e[ee])for(var K=0,pe=u.length;K<pe;K++){var $=u[K];if(W.indexOf($)===-1)continue;var oe=encodeURIComponent($);oe===$&&(oe=escape($)),W=W.split($).join(oe)}var Le=W.indexOf("#");Le!==-1&&(this.hash=W.substr(Le),W=W.slice(0,Le));var te=W.indexOf("?");if(te!==-1?(this.search=W.substr(te),this.query=W.substr(te+1),M&&(this.query=b.parse(this.query)),W=W.slice(0,te)):M&&(this.search="",this.query={}),W&&(this.pathname=W),_[ee]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ne=this.pathname||"",Y=this.search||"";this.path=ne+Y}return this.href=this.format(),this};function E(x){return h.isString(x)&&(x=y(x)),x instanceof I?x.format():I.prototype.format.call(x)}I.prototype.format=function(){var x=this.auth||"";x&&(x=encodeURIComponent(x),x=x.replace(/%3A/i,":"),x+="@");var M=this.protocol||"",k=this.pathname||"",T=this.hash||"",R=!1,P="";this.host?R=x+this.host:this.hostname&&(R=x+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(R+=":"+this.port)),this.query&&h.isObject(this.query)&&Object.keys(this.query).length&&(P=b.stringify(this.query));var B=this.search||P&&"?"+P||"";return M&&M.substr(-1)!==":"&&(M+=":"),this.slashes||(!M||_[M])&&R!==!1?(R="//"+(R||""),k&&k.charAt(0)!=="/"&&(k="/"+k)):R||(R=""),T&&T.charAt(0)!=="#"&&(T="#"+T),B&&B.charAt(0)!=="?"&&(B="?"+B),k=k.replace(/[?#]/g,function(W){return encodeURIComponent(W)}),B=B.replace("#","%23"),M+R+k+B+T};function c(x,M){return y(x,!1,!0).resolve(M)}I.prototype.resolve=function(x){return this.resolveObject(y(x,!1,!0)).format()};function C(x,M){return x?y(x,!1,!0).resolveObject(M):M}I.prototype.resolveObject=function(x){if(h.isString(x)){var M=new I;M.parse(x,!1,!0),x=M}for(var k=new I,T=Object.keys(this),R=0;R<T.length;R++){var P=T[R];k[P]=this[P]}if(k.hash=x.hash,x.href==="")return k.href=k.format(),k;if(x.slashes&&!x.protocol){for(var B=Object.keys(x),W=0;W<B.length;W++){var z=B[W];z!=="protocol"&&(k[z]=x[z])}return _[k.protocol]&&k.hostname&&!k.pathname&&(k.path=k.pathname="/"),k.href=k.format(),k}if(x.protocol&&x.protocol!==k.protocol){if(!_[x.protocol]){for(var H=Object.keys(x),ee=0;ee<H.length;ee++){var G=H[ee];k[G]=x[G]}return k.href=k.format(),k}if(k.protocol=x.protocol,!x.host&&!i[x.protocol]){for(var pe=(x.pathname||"").split("/");pe.length&&!(x.host=pe.shift()););x.host||(x.host=""),x.hostname||(x.hostname=""),pe[0]!==""&&pe.unshift(""),pe.length<2&&pe.unshift(""),k.pathname=pe.join("/")}else k.pathname=x.pathname;if(k.search=x.search,k.query=x.query,k.host=x.host||"",k.auth=x.auth,k.hostname=x.hostname||x.host,k.port=x.port,k.pathname||k.search){var U=k.pathname||"",K=k.search||"";k.path=U+K}return k.slashes=k.slashes||x.slashes,k.href=k.format(),k}var L=k.pathname&&k.pathname.charAt(0)==="/",D=x.host||x.pathname&&x.pathname.charAt(0)==="/",j=D||L||k.host&&x.pathname,Z=j,ie=k.pathname&&k.pathname.split("/")||[],pe=x.pathname&&x.pathname.split("/")||[],Ee=k.protocol&&!_[k.protocol];if(Ee&&(k.hostname="",k.port=null,k.host&&(ie[0]===""?ie[0]=k.host:ie.unshift(k.host)),k.host="",x.protocol&&(x.hostname=null,x.port=null,x.host&&(pe[0]===""?pe[0]=x.host:pe.unshift(x.host)),x.host=null),j=j&&(pe[0]===""||ie[0]==="")),D)k.host=x.host||x.host===""?x.host:k.host,k.hostname=x.hostname||x.hostname===""?x.hostname:k.hostname,k.search=x.search,k.query=x.query,ie=pe;else if(pe.length)ie||(ie=[]),ie.pop(),ie=ie.concat(pe),k.search=x.search,k.query=x.query;else if(!h.isNullOrUndefined(x.search)){if(Ee){k.hostname=k.host=ie.shift();var De=k.host&&k.host.indexOf("@")>0?k.host.split("@"):!1;De&&(k.auth=De.shift(),k.host=k.hostname=De.shift())}return k.search=x.search,k.query=x.query,(!h.isNull(k.pathname)||!h.isNull(k.search))&&(k.path=(k.pathname?k.pathname:"")+(k.search?k.search:"")),k.href=k.format(),k}if(!ie.length)return k.pathname=null,k.search?k.path="/"+k.search:k.path=null,k.href=k.format(),k;for(var q=ie.slice(-1)[0],be=(k.host||x.host||ie.length>1)&&(q==="."||q==="..")||q==="",ye=0,le=ie.length;le>=0;le--)q=ie[le],q==="."?ie.splice(le,1):q===".."?(ie.splice(le,1),ye++):ye&&(ie.splice(le,1),ye--);if(!j&&!Z)for(;ye--;ye)ie.unshift("..");j&&ie[0]!==""&&(!ie[0]||ie[0].charAt(0)!=="/")&&ie.unshift(""),be&&ie.join("/").substr(-1)!=="/"&&ie.push("");var ue=ie[0]===""||ie[0]&&ie[0].charAt(0)==="/";if(Ee){k.hostname=k.host=ue?"":ie.length?ie.shift():"";var De=k.host&&k.host.indexOf("@")>0?k.host.split("@"):!1;De&&(k.auth=De.shift(),k.host=k.hostname=De.shift())}return j=j||k.host&&ie.length,j&&!ue&&ie.unshift(""),ie.length?k.pathname=ie.join("/"):(k.pathname=null,k.path=null),(!h.isNull(k.pathname)||!h.isNull(k.search))&&(k.path=(k.pathname?k.pathname:"")+(k.search?k.search:"")),k.auth=x.auth||k.auth,k.slashes=k.slashes||x.slashes,k.href=k.format(),k},I.prototype.parseHost=function(){var x=this.host,M=g.exec(x);M&&(M=M[0],M!==":"&&(this.port=M.substr(1)),x=x.substr(0,x.length-M.length)),x&&(this.hostname=x)}},{"./util":239,punycode:209,querystring:212}],239:[function(S,F,v){"use strict";F.exports={isString:function(w){return typeof w=="string"},isObject:function(w){return typeof w=="object"&&w!==null},isNull:function(w){return w===null},isNullOrUndefined:function(w){return w==null}}},{}],240:[function(S,F,v){(function(w){F.exports=h;function h(m,g){if(I("noDeprecation"))return m;var a=!1;function f(){if(!a){if(I("throwDeprecation"))throw new Error(g);I("traceDeprecation")?console.trace(g):console.warn(g),a=!0}return m.apply(this,arguments)}return f}function I(m){try{if(!w.localStorage)return!1}catch(a){return!1}var g=w.localStorage[m];return g==null?!1:String(g).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(S,F,v){typeof Object.create=="function"?F.exports=function(h,I){h.super_=I,h.prototype=Object.create(I.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}})}:F.exports=function(h,I){h.super_=I;var m=function(){};m.prototype=I.prototype,h.prototype=new m,h.prototype.constructor=h}},{}],242:[function(S,F,v){F.exports=function(h){return h&&typeof h=="object"&&typeof h.copy=="function"&&typeof h.fill=="function"&&typeof h.readUInt8=="function"}},{}],243:[function(S,F,v){(function(w,h){var I=/%[sdj%]/g;v.format=function(U){if(!c(U)){for(var K=[],L=0;L<arguments.length;L++)K.push(a(arguments[L]));return K.join(" ")}for(var L=1,D=arguments,j=D.length,Z=String(U).replace(I,function(pe){if(pe==="%%")return"%";if(L>=j)return pe;switch(pe){case"%s":return String(D[L++]);case"%d":return Number(D[L++]);case"%j":try{return JSON.stringify(D[L++])}catch(Ee){return"[Circular]"}default:return pe}}),ie=D[L];L<j;ie=D[++L])b(ie)||!k(ie)?Z+=" "+ie:Z+=" "+a(ie);return Z},v.deprecate=function(U,K){if(x(h.process))return function(){return v.deprecate(U,K).apply(this,arguments)};if(w.noDeprecation===!0)return U;var L=!1;function D(){if(!L){if(w.throwDeprecation)throw new Error(K);w.traceDeprecation?console.trace(K):console.error(K),L=!0}return U.apply(this,arguments)}return D};var m={},g;v.debuglog=function(U){if(x(g)&&(g=w.env.NODE_DEBUG||""),U=U.toUpperCase(),!m[U])if(new RegExp("\\b"+U+"\\b","i").test(g)){var K=w.pid;m[U]=function(){var L=v.format.apply(v,arguments);console.error("%s %d: %s",U,K,L)}}else m[U]=function(){};return m[U]};function a(U,K){var L={seen:[],stylize:d};return arguments.length>=3&&(L.depth=arguments[2]),arguments.length>=4&&(L.colors=arguments[3]),_(K)?L.showHidden=K:K&&v._extend(L,K),x(L.showHidden)&&(L.showHidden=!1),x(L.depth)&&(L.depth=2),x(L.colors)&&(L.colors=!1),x(L.customInspect)&&(L.customInspect=!0),L.colors&&(L.stylize=f),o(L,U,L.depth)}v.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function f(U,K){var L=a.styles[K];return L?"["+a.colors[L][0]+"m"+U+"["+a.colors[L][1]+"m":U}function d(U,K){return U}function u(U){var K={};return U.forEach(function(L,D){K[L]=!0}),K}function o(U,K,L){if(U.customInspect&&K&&P(K.inspect)&&K.inspect!==v.inspect&&!(K.constructor&&K.constructor.prototype===K)){var D=K.inspect(L,U);return c(D)||(D=o(U,D,L)),D}var j=r(U,K);if(j)return j;var Z=Object.keys(K),ie=u(Z);if(U.showHidden&&(Z=Object.getOwnPropertyNames(K)),R(K)&&(Z.indexOf("message")>=0||Z.indexOf("description")>=0))return l(K);if(Z.length===0){if(P(K)){var pe=K.name?": "+K.name:"";return U.stylize("[Function"+pe+"]","special")}if(M(K))return U.stylize(RegExp.prototype.toString.call(K),"regexp");if(T(K))return U.stylize(Date.prototype.toString.call(K),"date");if(R(K))return l(K)}var Ee="",De=!1,q=["{","}"];if(i(K)&&(De=!0,q=["[","]"]),P(K)){var be=K.name?": "+K.name:"";Ee=" [Function"+be+"]"}if(M(K)&&(Ee=" "+RegExp.prototype.toString.call(K)),T(K)&&(Ee=" "+Date.prototype.toUTCString.call(K)),R(K)&&(Ee=" "+l(K)),Z.length===0&&(!De||K.length==0))return q[0]+Ee+q[1];if(L<0)return M(K)?U.stylize(RegExp.prototype.toString.call(K),"regexp"):U.stylize("[Object]","special");U.seen.push(K);var ye;return De?ye=n(U,K,L,ie,Z):ye=Z.map(function(le){return s(U,K,L,ie,le,De)}),U.seen.pop(),e(ye,Ee,q)}function r(U,K){if(x(K))return U.stylize("undefined","undefined");if(c(K)){var L="'"+JSON.stringify(K).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return U.stylize(L,"string")}if(E(K))return U.stylize(""+K,"number");if(_(K))return U.stylize(""+K,"boolean");if(b(K))return U.stylize("null","null")}function l(U){return"["+Error.prototype.toString.call(U)+"]"}function n(U,K,L,D,j){for(var Z=[],ie=0,pe=K.length;ie<pe;++ie)G(K,String(ie))?Z.push(s(U,K,L,D,String(ie),!0)):Z.push("");return j.forEach(function(Ee){Ee.match(/^\d+$/)||Z.push(s(U,K,L,D,Ee,!0))}),Z}function s(U,K,L,D,j,Z){var ie,pe,Ee;if(Ee=Object.getOwnPropertyDescriptor(K,j)||{value:K[j]},Ee.get?Ee.set?pe=U.stylize("[Getter/Setter]","special"):pe=U.stylize("[Getter]","special"):Ee.set&&(pe=U.stylize("[Setter]","special")),G(D,j)||(ie="["+j+"]"),pe||(U.seen.indexOf(Ee.value)<0?(b(L)?pe=o(U,Ee.value,null):pe=o(U,Ee.value,L-1),pe.indexOf(`
`)>-1&&(Z?pe=pe.split(`
`).map(function(De){return" "+De}).join(`
`).substr(2):pe=`
`+pe.split(`
`).map(function(De){return" "+De}).join(`
`))):pe=U.stylize("[Circular]","special")),x(ie)){if(Z&&j.match(/^\d+$/))return pe;ie=JSON.stringify(""+j),ie.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ie=ie.substr(1,ie.length-2),ie=U.stylize(ie,"name")):(ie=ie.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ie=U.stylize(ie,"string"))}return ie+": "+pe}function e(U,K,L){var D=0,j=U.reduce(function(Z,ie){return D++,ie.indexOf(`
`)>=0&&D++,Z+ie.replace(/\u001b\[\d\d?m/g,"").length+1},0);return j>60?L[0]+(K===""?"":K+`
`)+" "+U.join(`,
`)+" "+L[1]:L[0]+K+" "+U.join(", ")+" "+L[1]}function i(U){return Array.isArray(U)}v.isArray=i;function _(U){return typeof U=="boolean"}v.isBoolean=_;function b(U){return U===null}v.isNull=b;function y(U){return U==null}v.isNullOrUndefined=y;function E(U){return typeof U=="number"}v.isNumber=E;function c(U){return typeof U=="string"}v.isString=c;function C(U){return typeof U=="symbol"}v.isSymbol=C;function x(U){return U===void 0}v.isUndefined=x;function M(U){return k(U)&&W(U)==="[object RegExp]"}v.isRegExp=M;function k(U){return typeof U=="object"&&U!==null}v.isObject=k;function T(U){return k(U)&&W(U)==="[object Date]"}v.isDate=T;function R(U){return k(U)&&(W(U)==="[object Error]"||U instanceof Error)}v.isError=R;function P(U){return typeof U=="function"}v.isFunction=P;function B(U){return U===null||typeof U=="boolean"||typeof U=="number"||typeof U=="string"||typeof U=="symbol"||typeof U=="undefined"}v.isPrimitive=B,v.isBuffer=S("./support/isBuffer");function W(U){return Object.prototype.toString.call(U)}function z(U){return U<10?"0"+U.toString(10):U.toString(10)}var H=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ee(){var U=new Date,K=[z(U.getHours()),z(U.getMinutes()),z(U.getSeconds())].join(":");return[U.getDate(),H[U.getMonth()],K].join(" ")}v.log=function(){console.log("%s - %s",ee(),v.format.apply(v,arguments))},v.inherits=S("inherits"),v._extend=function(U,K){if(!K||!k(K))return U;for(var L=Object.keys(K),D=L.length;D--;)U[L[D]]=K[L[D]];return U};function G(U,K){return Object.prototype.hasOwnProperty.call(U,K)}}).call(this,S("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(S,F,v){"use strict";(function(){"use strict";v.stripBOM=function(w){return w[0]==="\uFEFF"?w.substring(1):w}}).call(void 0)},{}],245:[function(S,F,v){"use strict";var w=S("babel-runtime/helpers/typeof"),h=g(w),I=S("babel-runtime/core-js/object/keys"),m=g(I);function g(a){return a&&a.__esModule?a:{default:a}}(function(){"use strict";var a,f,d,u,o,r={}.hasOwnProperty;a=S("xmlbuilder"),f=S("./defaults").defaults,u=function(n){return typeof n=="string"&&(n.indexOf("&")>=0||n.indexOf(">")>=0||n.indexOf("<")>=0)},o=function(n){return"<![CDATA["+d(n)+"]]>"},d=function(n){return n.replace("]]>","]]]]><![CDATA[>")},v.Builder=function(){function l(n){var s,e,i;this.options={},e=f["0.2"];for(s in e){if(!r.call(e,s))continue;i=e[s],this.options[s]=i}for(s in n){if(!r.call(n,s))continue;i=n[s],this.options[s]=i}}return l.prototype.buildObject=function(n){var s,e,i,_,b;return s=this.options.attrkey,e=this.options.charkey,(0,m.default)(n).length===1&&this.options.rootName===f["0.2"].rootName?(b=(0,m.default)(n)[0],n=n[b]):b=this.options.rootName,i=function(y){return function(E,c){var C,x,M,k,T,R;if((typeof c=="undefined"?"undefined":(0,h.default)(c))!=="object")y.options.cdata&&u(c)?E.raw(o(c)):E.txt(c);else if(Array.isArray(c))for(k in c){if(!r.call(c,k))continue;x=c[k];for(T in x)M=x[T],E=i(E.ele(T),M).up()}else for(T in c){if(!r.call(c,T))continue;if(x=c[T],T===s){if((typeof x=="undefined"?"undefined":(0,h.default)(x))==="object")for(C in x)R=x[C],E=E.att(C,R)}else if(T===e)y.options.cdata&&u(x)?E=E.raw(o(x)):E=E.txt(x);else if(Array.isArray(x))for(k in x){if(!r.call(x,k))continue;M=x[k],typeof M=="string"?y.options.cdata&&u(M)?E=E.ele(T).raw(o(M)).up():E=E.ele(T,M).up():E=i(E.ele(T),M).up()}else(typeof x=="undefined"?"undefined":(0,h.default)(x))==="object"?E=i(E.ele(T),x).up():typeof x=="string"&&y.options.cdata&&u(x)?E=E.ele(T).raw(o(x)).up():(x==null&&(x=""),E=E.ele(T,x.toString()).up())}return E}}(this),_=a.create(b,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),i(_,n).end(this.options.renderOpts)},l}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(S,F,v){"use strict";(function(){v.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/promise"),h=u(w),I=S("babel-runtime/core-js/object/get-own-property-names"),m=u(I),g=S("babel-runtime/core-js/object/keys"),a=u(g),f=S("babel-runtime/helpers/typeof"),d=u(f);function u(o){return o&&o.__esModule?o:{default:o}}(function(){"use strict";var o,r,l,n,s,e,i,_,b=function(C,x){return function(){return C.apply(x,arguments)}},y=function(C,x){for(var M in x)E.call(x,M)&&(C[M]=x[M]);function k(){this.constructor=C}return k.prototype=x.prototype,C.prototype=new k,C.__super__=x.prototype,C},E={}.hasOwnProperty;i=S("sax"),l=S("events"),o=S("./bom"),e=S("./processors"),_=S("timers").setImmediate,r=S("./defaults").defaults,n=function(C){return(typeof C=="undefined"?"undefined":(0,d.default)(C))==="object"&&C!=null&&(0,a.default)(C).length===0},s=function(C,x,M){var k,T,R;for(k=0,T=C.length;k<T;k++)R=C[k],x=R(x,M);return x},v.Parser=function(c){y(C,c);function C(x){this.parseStringPromise=b(this.parseStringPromise,this),this.parseString=b(this.parseString,this),this.reset=b(this.reset,this),this.assignOrPush=b(this.assignOrPush,this),this.processAsync=b(this.processAsync,this);var M,k,T;if(!(this instanceof v.Parser))return new v.Parser(x);this.options={},k=r["0.2"];for(M in k){if(!E.call(k,M))continue;T=k[M],this.options[M]=T}for(M in x){if(!E.call(x,M))continue;T=x[M],this.options[M]=T}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(e.normalize)),this.reset()}return C.prototype.processAsync=function(){var x,M;try{return this.remaining.length<=this.options.chunkSize?(x=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(x),this.saxParser.close()):(x=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(x),_(this.processAsync))}catch(k){if(M=k,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(M)}},C.prototype.assignOrPush=function(x,M,k){return M in x?(x[M]instanceof Array||(x[M]=[x[M]]),x[M].push(k)):this.options.explicitArray?x[M]=[k]:x[M]=k},C.prototype.reset=function(){var x,M,k,T;return this.removeAllListeners(),this.saxParser=i.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(R){return function(P){if(R.saxParser.resume(),!R.saxParser.errThrown)return R.saxParser.errThrown=!0,R.emit("error",P)}}(this),this.saxParser.onend=function(R){return function(){if(!R.saxParser.ended)return R.saxParser.ended=!0,R.emit("end",R.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,T=[],x=this.options.attrkey,M=this.options.charkey,this.saxParser.onopentag=function(R){return function(P){var B,W,z,H,ee;if(z={},z[M]="",!R.options.ignoreAttrs){ee=P.attributes;for(B in ee){if(!E.call(ee,B))continue;!(x in z)&&!R.options.mergeAttrs&&(z[x]={}),W=R.options.attrValueProcessors?s(R.options.attrValueProcessors,P.attributes[B],B):P.attributes[B],H=R.options.attrNameProcessors?s(R.options.attrNameProcessors,B):B,R.options.mergeAttrs?R.assignOrPush(z,H,W):z[x][H]=W}}return z["#name"]=R.options.tagNameProcessors?s(R.options.tagNameProcessors,P.name):P.name,R.options.xmlns&&(z[R.options.xmlnskey]={uri:P.uri,local:P.local}),T.push(z)}}(this),this.saxParser.onclosetag=function(R){return function(){var P,B,W,z,H,ee,G,U,K,L;if(ee=T.pop(),H=ee["#name"],(!R.options.explicitChildren||!R.options.preserveChildrenOrder)&&delete ee["#name"],ee.cdata===!0&&(P=ee.cdata,delete ee.cdata),K=T[T.length-1],ee[M].match(/^\s*$/)&&!P?(B=ee[M],delete ee[M]):(R.options.trim&&(ee[M]=ee[M].trim()),R.options.normalize&&(ee[M]=ee[M].replace(/\s{2,}/g," ").trim()),ee[M]=R.options.valueProcessors?s(R.options.valueProcessors,ee[M],H):ee[M],(0,a.default)(ee).length===1&&M in ee&&!R.EXPLICIT_CHARKEY&&(ee=ee[M])),n(ee)&&(ee=R.options.emptyTag!==""?R.options.emptyTag:B),R.options.validator!=null&&(L="/"+function(){var D,j,Z;for(Z=[],D=0,j=T.length;D<j;D++)z=T[D],Z.push(z["#name"]);return Z}().concat(H).join("/"),function(){var D;try{return ee=R.options.validator(L,K&&K[H],ee)}catch(j){return D=j,R.emit("error",D)}}()),R.options.explicitChildren&&!R.options.mergeAttrs&&(typeof ee=="undefined"?"undefined":(0,d.default)(ee))==="object"){if(!R.options.preserveChildrenOrder)z={},R.options.attrkey in ee&&(z[R.options.attrkey]=ee[R.options.attrkey],delete ee[R.options.attrkey]),!R.options.charsAsChildren&&R.options.charkey in ee&&(z[R.options.charkey]=ee[R.options.charkey],delete ee[R.options.charkey]),(0,m.default)(ee).length>0&&(z[R.options.childkey]=ee),ee=z;else if(K){K[R.options.childkey]=K[R.options.childkey]||[],G={};for(W in ee){if(!E.call(ee,W))continue;G[W]=ee[W]}K[R.options.childkey].push(G),delete ee["#name"],(0,a.default)(ee).length===1&&M in ee&&!R.EXPLICIT_CHARKEY&&(ee=ee[M])}}return T.length>0?R.assignOrPush(K,H,ee):(R.options.explicitRoot&&(U=ee,ee={},ee[H]=U),R.resultObject=ee,R.saxParser.ended=!0,R.emit("end",R.resultObject))}}(this),k=function(R){return function(P){var B,W;if(W=T[T.length-1],W)return W[M]+=P,R.options.explicitChildren&&R.options.preserveChildrenOrder&&R.options.charsAsChildren&&(R.options.includeWhiteChars||P.replace(/\\n/g,"").trim()!=="")&&(W[R.options.childkey]=W[R.options.childkey]||[],B={"#name":"__text__"},B[M]=P,R.options.normalize&&(B[M]=B[M].replace(/\s{2,}/g," ").trim()),W[R.options.childkey].push(B)),W}}(this),this.saxParser.ontext=k,this.saxParser.oncdata=function(R){return function(P){var B;if(B=k(P),B)return B.cdata=!0}}(this)},C.prototype.parseString=function(x,M){var k;M!=null&&typeof M=="function"&&(this.on("end",function(T){return this.reset(),M(null,T)}),this.on("error",function(T){return this.reset(),M(T)}));try{return x=x.toString(),x.trim()===""?(this.emit("end",null),!0):(x=o.stripBOM(x),this.options.async?(this.remaining=x,_(this.processAsync),this.saxParser):this.saxParser.write(x).close())}catch(T){if(k=T,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw k}else return this.emit("error",k),this.saxParser.errThrown=!0}},C.prototype.parseStringPromise=function(x){return new h.default(function(M){return function(k,T){return M.parseString(x,function(R,P){return R?T(R):k(P)})}}(this))},C}(l),v.parseString=function(c,C,x){var M,k,T;return x!=null?(typeof x=="function"&&(M=x),(typeof C=="undefined"?"undefined":(0,d.default)(C))==="object"&&(k=C)):(typeof C=="function"&&(M=C),k={}),T=new v.Parser(k),T.parseString(c,M)},v.parseStringPromise=function(c,C){var x,M;return(typeof C=="undefined"?"undefined":(0,d.default)(C))==="object"&&(x=C),M=new v.Parser(x),M.parseStringPromise(c)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(S,F,v){"use strict";(function(){"use strict";var w;w=new RegExp(/(?!xmlns)^.*:/),v.normalize=function(h){return h.toLowerCase()},v.firstCharLowerCase=function(h){return h.charAt(0).toLowerCase()+h.slice(1)},v.stripPrefix=function(h){return h.replace(w,"")},v.parseNumbers=function(h){return isNaN(h)||(h=h%1===0?parseInt(h,10):parseFloat(h)),h},v.parseBooleans=function(h){return/^(?:true|false)$/i.test(h)&&(h=h.toLowerCase()==="true"),h}}).call(void 0)},{}],249:[function(S,F,v){"use strict";(function(){"use strict";var w,h,I,m,g=function(d,u){for(var o in u)a.call(u,o)&&(d[o]=u[o]);function r(){this.constructor=d}return r.prototype=u.prototype,d.prototype=new r,d.__super__=u.prototype,d},a={}.hasOwnProperty;h=S("./defaults"),w=S("./builder"),I=S("./parser"),m=S("./processors"),v.defaults=h.defaults,v.processors=m,v.ValidationError=function(f){g(d,f);function d(u){this.message=u}return d}(Error),v.Builder=w.Builder,v.Parser=I.Parser,v.parseString=I.parseString,v.parseStringPromise=I.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(S,F,v){"use strict";(function(){F.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(S,F,v){"use strict";(function(){F.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/get-prototype-of"),h=f(w),I=S("babel-runtime/helpers/typeof"),m=f(I),g=S("babel-runtime/core-js/object/assign"),a=f(g);function f(d){return d&&d.__esModule?d:{default:d}}(function(){var d,u,o,r,l,n,s,e=[].slice,i={}.hasOwnProperty;d=function(){var b,y,E,c,C,x;if(x=arguments[0],C=2<=arguments.length?e.call(arguments,1):[],l(a.default))a.default.apply(null,arguments);else for(b=0,E=C.length;b<E;b++)if(c=C[b],c!=null)for(y in c){if(!i.call(c,y))continue;x[y]=c[y]}return x},l=function(b){return!!b&&Object.prototype.toString.call(b)==="[object Function]"},n=function(b){var y;return!!b&&((y=typeof b=="undefined"?"undefined":(0,m.default)(b))==="function"||y==="object")},o=function(b){return l(Array.isArray)?Array.isArray(b):Object.prototype.toString.call(b)==="[object Array]"},r=function(b){var y;if(o(b))return!b.length;for(y in b){if(!i.call(b,y))continue;return!1}return!0},s=function(b){var y,E;return n(b)&&(E=(0,h.default)(b))&&(y=E.constructor)&&typeof y=="function"&&y instanceof y&&Function.prototype.toString.call(y)===Function.prototype.toString.call(Object)},u=function(b){return l(b.valueOf)?b.valueOf():b},F.exports.assign=d,F.exports.isFunction=l,F.exports.isObject=n,F.exports.isArray=o,F.exports.isEmpty=r,F.exports.isPlainObject=s,F.exports.getValue=u}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(S,F,v){"use strict";(function(){F.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/create"),h=I(w);function I(m){return m&&m.__esModule?m:{default:m}}(function(){var m,g,a;m=S("./NodeType"),a=S("./XMLNode"),F.exports=g=function(){function f(d,u,o){if(this.parent=d,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),u==null)throw new Error("Missing attribute name. "+this.debugInfo(u));this.name=this.stringify.name(u),this.value=this.stringify.attValue(o),this.type=m.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(f.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(f.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(f.prototype,"textContent",{get:function(){return this.value},set:function(u){return this.value=u||""}}),Object.defineProperty(f.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(f.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(f.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(f.prototype,"specified",{get:function(){return!0}}),f.prototype.clone=function(){return(0,h.default)(this)},f.prototype.toString=function(d){return this.options.writer.attribute(this,this.options.writer.filterOptions(d))},f.prototype.debugInfo=function(d){return d=d||this.name,d==null?"parent: <"+this.parent.name+">":"attribute: {"+d+"}, parent: <"+this.parent.name+">"},f.prototype.isEqualNode=function(d){return d.namespaceURI!==this.namespaceURI||(d.prefix!==this.prefix||d.localName!==this.localName)?!1:!(d.value!==this.value)},f}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/create"),h=I(w);function I(m){return m&&m.__esModule?m:{default:m}}(function(){var m,g,a,f=function(o,r){for(var l in r)d.call(r,l)&&(o[l]=r[l]);function n(){this.constructor=o}return n.prototype=r.prototype,o.prototype=new n,o.__super__=r.prototype,o},d={}.hasOwnProperty;m=S("./NodeType"),a=S("./XMLCharacterData"),F.exports=g=function(u){f(o,u);function o(r,l){if(o.__super__.constructor.call(this,r),l==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=m.CData,this.value=this.stringify.cdata(l)}return o.prototype.clone=function(){return(0,h.default)(this)},o.prototype.toString=function(r){return this.options.writer.cdata(this,this.options.writer.filterOptions(r))},o}(a)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/create"),h=I(w);function I(m){return m&&m.__esModule?m:{default:m}}(function(){var m,g,a=function(u,o){for(var r in o)f.call(o,r)&&(u[r]=o[r]);function l(){this.constructor=u}return l.prototype=o.prototype,u.prototype=new l,u.__super__=o.prototype,u},f={}.hasOwnProperty;g=S("./XMLNode"),F.exports=m=function(d){a(u,d);function u(o){u.__super__.constructor.call(this,o),this.value=""}return Object.defineProperty(u.prototype,"data",{get:function(){return this.value},set:function(r){return this.value=r||""}}),Object.defineProperty(u.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(u.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}}),u.prototype.clone=function(){return(0,h.default)(this)},u.prototype.substringData=function(o,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.appendData=function(o){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.insertData=function(o,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.deleteData=function(o,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.replaceData=function(o,r,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.isEqualNode=function(o){return u.__super__.isEqualNode.apply(this,arguments).isEqualNode(o)?!(o.data!==this.data):!1},u}(g)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/create"),h=I(w);function I(m){return m&&m.__esModule?m:{default:m}}(function(){var m,g,a,f=function(o,r){for(var l in r)d.call(r,l)&&(o[l]=r[l]);function n(){this.constructor=o}return n.prototype=r.prototype,o.prototype=new n,o.__super__=r.prototype,o},d={}.hasOwnProperty;m=S("./NodeType"),g=S("./XMLCharacterData"),F.exports=a=function(u){f(o,u);function o(r,l){if(o.__super__.constructor.call(this,r),l==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=m.Comment,this.value=this.stringify.comment(l)}return o.prototype.clone=function(){return(0,h.default)(this)},o.prototype.toString=function(r){return this.options.writer.comment(this,this.options.writer.filterOptions(r))},o}(g)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/keys"),h=g(w),I=S("babel-runtime/core-js/object/create"),m=g(I);function g(a){return a&&a.__esModule?a:{default:a}}(function(){var a,f,d;f=S("./XMLDOMErrorHandler"),d=S("./XMLDOMStringList"),F.exports=a=function(){function u(){var o;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new f,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=o=(0,m.default)(this.defaultParams)}return Object.defineProperty(u.prototype,"parameterNames",{get:function(){return new d((0,h.default)(this.defaultParams))}}),u.prototype.getParameter=function(o){return this.params.hasOwnProperty(o)?this.params[o]:null},u.prototype.canSetParameter=function(o,r){return!0},u.prototype.setParameter=function(o,r){return r!=null?this.params[o]=r:delete this.params[o]},u}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(S,F,v){"use strict";(function(){var w;F.exports=w=function(){function h(){}return h.prototype.handleError=function(I){throw new Error(I)},h}()}).call(void 0)},{}],260:[function(S,F,v){"use strict";(function(){var w;F.exports=w=function(){function h(){}return h.prototype.hasFeature=function(I,m){return!0},h.prototype.createDocumentType=function(I,m,g){throw new Error("This DOM method is not implemented.")},h.prototype.createDocument=function(I,m,g){throw new Error("This DOM method is not implemented.")},h.prototype.createHTMLDocument=function(I){throw new Error("This DOM method is not implemented.")},h.prototype.getFeature=function(I,m){throw new Error("This DOM method is not implemented.")},h}()}).call(void 0)},{}],261:[function(S,F,v){"use strict";(function(){var w;F.exports=w=function(){function h(I){this.arr=I||[]}return Object.defineProperty(h.prototype,"length",{get:function(){return this.arr.length}}),h.prototype.item=function(I){return this.arr[I]||null},h.prototype.contains=function(I){return this.arr.indexOf(I)!==-1},h}()}).call(void 0)},{}],262:[function(S,F,v){"use strict";(function(){var w,h,I,m=function(f,d){for(var u in d)g.call(d,u)&&(f[u]=d[u]);function o(){this.constructor=f}return o.prototype=d.prototype,f.prototype=new o,f.__super__=d.prototype,f},g={}.hasOwnProperty;I=S("./XMLNode"),w=S("./NodeType"),F.exports=h=function(a){m(f,a);function f(d,u,o,r,l,n){if(f.__super__.constructor.call(this,d),u==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(o==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(u));if(!r)throw new Error("Missing DTD attribute type. "+this.debugInfo(u));if(!l)throw new Error("Missing DTD attribute default. "+this.debugInfo(u));if(l.indexOf("#")!==0&&(l="#"+l),!l.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(u));if(n&&!l.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(u));this.elementName=this.stringify.name(u),this.type=w.AttributeDeclaration,this.attributeName=this.stringify.name(o),this.attributeType=this.stringify.dtdAttType(r),n&&(this.defaultValue=this.stringify.dtdAttDefault(n)),this.defaultValueType=l}return f.prototype.toString=function(d){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(d))},f}(I)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(S,F,v){"use strict";(function(){var w,h,I,m=function(f,d){for(var u in d)g.call(d,u)&&(f[u]=d[u]);function o(){this.constructor=f}return o.prototype=d.prototype,f.prototype=new o,f.__super__=d.prototype,f},g={}.hasOwnProperty;I=S("./XMLNode"),w=S("./NodeType"),F.exports=h=function(a){m(f,a);function f(d,u,o){if(f.__super__.constructor.call(this,d),u==null)throw new Error("Missing DTD element name. "+this.debugInfo());o||(o="(#PCDATA)"),Array.isArray(o)&&(o="("+o.join(",")+")"),this.name=this.stringify.name(u),this.type=w.ElementDeclaration,this.value=this.stringify.dtdElementValue(o)}return f.prototype.toString=function(d){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(d))},f}(I)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(S,F,v){"use strict";(function(){var w,h,I,m,g=function(d,u){for(var o in u)a.call(u,o)&&(d[o]=u[o]);function r(){this.constructor=d}return r.prototype=u.prototype,d.prototype=new r,d.__super__=u.prototype,d},a={}.hasOwnProperty;m=S("./Utility").isObject,I=S("./XMLNode"),w=S("./NodeType"),F.exports=h=function(f){g(d,f);function d(u,o,r,l){if(d.__super__.constructor.call(this,u),r==null)throw new Error("Missing DTD entity name. "+this.debugInfo(r));if(l==null)throw new Error("Missing DTD entity value. "+this.debugInfo(r));if(this.pe=!!o,this.name=this.stringify.name(r),this.type=w.EntityDeclaration,!m(l))this.value=this.stringify.dtdEntityValue(l),this.internal=!0;else{if(!l.pubID&&!l.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(r));if(l.pubID&&!l.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(r));if(this.internal=!1,l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID)),l.nData!=null&&(this.nData=this.stringify.dtdNData(l.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(r))}}return Object.defineProperty(d.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(d.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(d.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(d.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(d.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(d.prototype,"xmlVersion",{get:function(){return null}}),d.prototype.toString=function(u){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(u))},d}(I)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(S,F,v){"use strict";(function(){var w,h,I,m=function(f,d){for(var u in d)g.call(d,u)&&(f[u]=d[u]);function o(){this.constructor=f}return o.prototype=d.prototype,f.prototype=new o,f.__super__=d.prototype,f},g={}.hasOwnProperty;I=S("./XMLNode"),w=S("./NodeType"),F.exports=h=function(a){m(f,a);function f(d,u,o){if(f.__super__.constructor.call(this,d),u==null)throw new Error("Missing DTD notation name. "+this.debugInfo(u));if(!o.pubID&&!o.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(u));this.name=this.stringify.name(u),this.type=w.NotationDeclaration,o.pubID!=null&&(this.pubID=this.stringify.dtdPubID(o.pubID)),o.sysID!=null&&(this.sysID=this.stringify.dtdSysID(o.sysID))}return Object.defineProperty(f.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(f.prototype,"systemId",{get:function(){return this.sysID}}),f.prototype.toString=function(d){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(d))},f}(I)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(S,F,v){"use strict";(function(){var w,h,I,m,g=function(d,u){for(var o in u)a.call(u,o)&&(d[o]=u[o]);function r(){this.constructor=d}return r.prototype=u.prototype,d.prototype=new r,d.__super__=u.prototype,d},a={}.hasOwnProperty;m=S("./Utility").isObject,I=S("./XMLNode"),w=S("./NodeType"),F.exports=h=function(f){g(d,f);function d(u,o,r,l){var n;d.__super__.constructor.call(this,u),m(o)&&(n=o,o=n.version,r=n.encoding,l=n.standalone),o||(o="1.0"),this.type=w.Declaration,this.version=this.stringify.xmlVersion(o),r!=null&&(this.encoding=this.stringify.xmlEncoding(r)),l!=null&&(this.standalone=this.stringify.xmlStandalone(l))}return d.prototype.toString=function(u){return this.options.writer.declaration(this,this.options.writer.filterOptions(u))},d}(I)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(S,F,v){"use strict";(function(){var w,h,I,m,g,a,f,d,u,o=function(n,s){for(var e in s)r.call(s,e)&&(n[e]=s[e]);function i(){this.constructor=n}return i.prototype=s.prototype,n.prototype=new i,n.__super__=s.prototype,n},r={}.hasOwnProperty;u=S("./Utility").isObject,d=S("./XMLNode"),w=S("./NodeType"),h=S("./XMLDTDAttList"),m=S("./XMLDTDEntity"),I=S("./XMLDTDElement"),g=S("./XMLDTDNotation"),f=S("./XMLNamedNodeMap"),F.exports=a=function(l){o(n,l);function n(s,e,i){var _,b,y,E,c,C;if(n.__super__.constructor.call(this,s),this.type=w.DocType,s.children){for(E=s.children,b=0,y=E.length;b<y;b++)if(_=E[b],_.type===w.Element){this.name=_.name;break}}this.documentObject=s,u(e)&&(c=e,e=c.pubID,i=c.sysID),i==null&&(C=[e,i],i=C[0],e=C[1]),e!=null&&(this.pubID=this.stringify.dtdPubID(e)),i!=null&&(this.sysID=this.stringify.dtdSysID(i))}return Object.defineProperty(n.prototype,"entities",{get:function(){var e,i,_,b,y;for(b={},y=this.children,i=0,_=y.length;i<_;i++)e=y[i],e.type===w.EntityDeclaration&&!e.pe&&(b[e.name]=e);return new f(b)}}),Object.defineProperty(n.prototype,"notations",{get:function(){var e,i,_,b,y;for(b={},y=this.children,i=0,_=y.length;i<_;i++)e=y[i],e.type===w.NotationDeclaration&&(b[e.name]=e);return new f(b)}}),Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(n.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),n.prototype.element=function(s,e){var i;return i=new I(this,s,e),this.children.push(i),this},n.prototype.attList=function(s,e,i,_,b){var y;return y=new h(this,s,e,i,_,b),this.children.push(y),this},n.prototype.entity=function(s,e){var i;return i=new m(this,!1,s,e),this.children.push(i),this},n.prototype.pEntity=function(s,e){var i;return i=new m(this,!0,s,e),this.children.push(i),this},n.prototype.notation=function(s,e){var i;return i=new g(this,s,e),this.children.push(i),this},n.prototype.toString=function(s){return this.options.writer.docType(this,this.options.writer.filterOptions(s))},n.prototype.ele=function(s,e){return this.element(s,e)},n.prototype.att=function(s,e,i,_,b){return this.attList(s,e,i,_,b)},n.prototype.ent=function(s,e){return this.entity(s,e)},n.prototype.pent=function(s,e){return this.pEntity(s,e)},n.prototype.not=function(s,e){return this.notation(s,e)},n.prototype.up=function(){return this.root()||this.documentObject},n.prototype.isEqualNode=function(s){return n.__super__.isEqualNode.apply(this,arguments).isEqualNode(s)?s.name!==this.name||s.publicId!==this.publicId?!1:!(s.systemId!==this.systemId):!1},n}(d)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(S,F,v){"use strict";(function(){var w,h,I,m,g,a,f,d,u=function(l,n){for(var s in n)o.call(n,s)&&(l[s]=n[s]);function e(){this.constructor=l}return e.prototype=n.prototype,l.prototype=new e,l.__super__=n.prototype,l},o={}.hasOwnProperty;d=S("./Utility").isPlainObject,I=S("./XMLDOMImplementation"),h=S("./XMLDOMConfiguration"),g=S("./XMLNode"),w=S("./NodeType"),f=S("./XMLStringifier"),a=S("./XMLStringWriter"),F.exports=m=function(r){u(l,r);function l(n){l.__super__.constructor.call(this,null),this.name="#document",this.type=w.Document,this.documentURI=null,this.domConfig=new h,n||(n={}),n.writer||(n.writer=new a),this.options=n,this.stringify=new f(n)}return Object.defineProperty(l.prototype,"implementation",{value:new I}),Object.defineProperty(l.prototype,"doctype",{get:function(){var s,e,i,_;for(_=this.children,e=0,i=_.length;e<i;e++)if(s=_[e],s.type===w.DocType)return s;return null}}),Object.defineProperty(l.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(l.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(l.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(l.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===w.Declaration?this.children[0].encoding:null}}),Object.defineProperty(l.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===w.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(l.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===w.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(l.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(l.prototype,"origin",{get:function(){return null}}),Object.defineProperty(l.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(l.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(l.prototype,"contentType",{get:function(){return null}}),l.prototype.end=function(n){var s;return s={},n?d(n)&&(s=n,n=this.options.writer):n=this.options.writer,n.document(this,n.filterOptions(s))},l.prototype.toString=function(n){return this.options.writer.document(this,this.options.writer.filterOptions(n))},l.prototype.createElement=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createTextNode=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createComment=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createCDATASection=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createProcessingInstruction=function(n,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createAttribute=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createEntityReference=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByTagName=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.importNode=function(n,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createElementNS=function(n,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createAttributeNS=function(n,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByTagNameNS=function(n,s){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementById=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.adoptNode=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.renameNode=function(n,s,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getElementsByClassName=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createEvent=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createNodeIterator=function(n,s,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.createTreeWalker=function(n,s,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},l}(g)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(S,F,v){"use strict";(function(){var w,h,I,m,g,a,f,d,u,o,r,l,n,s,e,i,_,b,y,E,c,C,x,M,k={}.hasOwnProperty;M=S("./Utility"),C=M.isObject,c=M.isFunction,x=M.isPlainObject,E=M.getValue,w=S("./NodeType"),l=S("./XMLDocument"),s=S("./XMLElement"),m=S("./XMLCData"),g=S("./XMLComment"),i=S("./XMLRaw"),y=S("./XMLText"),e=S("./XMLProcessingInstruction"),o=S("./XMLDeclaration"),r=S("./XMLDocType"),a=S("./XMLDTDAttList"),d=S("./XMLDTDEntity"),f=S("./XMLDTDElement"),u=S("./XMLDTDNotation"),I=S("./XMLAttribute"),b=S("./XMLStringifier"),_=S("./XMLStringWriter"),h=S("./WriterState"),F.exports=n=function(){function T(R,P,B){var W;this.name="?xml",this.type=w.Document,R||(R={}),W={},R.writer?x(R.writer)&&(W=R.writer,R.writer=new _):R.writer=new _,this.options=R,this.writer=R.writer,this.writerOptions=this.writer.filterOptions(W),this.stringify=new b(R),this.onDataCallback=P||function(){},this.onEndCallback=B||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return T.prototype.createChildNode=function(R){var P,B,W,z,H,ee,G,U;switch(R.type){case w.CData:this.cdata(R.value);break;case w.Comment:this.comment(R.value);break;case w.Element:W={},G=R.attribs;for(B in G){if(!k.call(G,B))continue;P=G[B],W[B]=P.value}this.node(R.name,W);break;case w.Dummy:this.dummy();break;case w.Raw:this.raw(R.value);break;case w.Text:this.text(R.value);break;case w.ProcessingInstruction:this.instruction(R.target,R.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+R.constructor.name)}for(U=R.children,H=0,ee=U.length;H<ee;H++)z=U[H],this.createChildNode(z),z.type===w.Element&&this.up();return this},T.prototype.dummy=function(){return this},T.prototype.node=function(R,P,B){var W;if(R==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(R));return this.openCurrent(),R=E(R),P==null&&(P={}),P=E(P),C(P)||(W=[P,B],B=W[0],P=W[1]),this.currentNode=new s(this,R,P),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,B!=null&&this.text(B),this},T.prototype.element=function(R,P,B){var W,z,H,ee,G,U;if(this.currentNode&&this.currentNode.type===w.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(R)||C(R)||c(R))for(ee=this.options.noValidation,this.options.noValidation=!0,U=new l(this.options).element("TEMP_ROOT"),U.element(R),this.options.noValidation=ee,G=U.children,z=0,H=G.length;z<H;z++)W=G[z],this.createChildNode(W),W.type===w.Element&&this.up();else this.node(R,P,B);return this},T.prototype.attribute=function(R,P){var B,W;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(R));if(R!=null&&(R=E(R)),C(R))for(B in R){if(!k.call(R,B))continue;W=R[B],this.attribute(B,W)}else c(P)&&(P=P.apply()),this.options.keepNullAttributes&&P==null?this.currentNode.attribs[R]=new I(this,R,""):P!=null&&(this.currentNode.attribs[R]=new I(this,R,P));return this},T.prototype.text=function(R){var P;return this.openCurrent(),P=new y(this,R),this.onData(this.writer.text(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.cdata=function(R){var P;return this.openCurrent(),P=new m(this,R),this.onData(this.writer.cdata(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.comment=function(R){var P;return this.openCurrent(),P=new g(this,R),this.onData(this.writer.comment(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.raw=function(R){var P;return this.openCurrent(),P=new i(this,R),this.onData(this.writer.raw(P,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.instruction=function(R,P){var B,W,z,H,ee;if(this.openCurrent(),R!=null&&(R=E(R)),P!=null&&(P=E(P)),Array.isArray(R))for(B=0,H=R.length;B<H;B++)W=R[B],this.instruction(W);else if(C(R))for(W in R){if(!k.call(R,W))continue;z=R[W],this.instruction(W,z)}else c(P)&&(P=P.apply()),ee=new e(this,R,P),this.onData(this.writer.processingInstruction(ee,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},T.prototype.declaration=function(R,P,B){var W;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return W=new o(this,R,P,B),this.onData(this.writer.declaration(W,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.doctype=function(R,P,B){if(this.openCurrent(),R==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new r(this,P,B),this.currentNode.rootNodeName=R,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},T.prototype.dtdElement=function(R,P){var B;return this.openCurrent(),B=new f(this,R,P),this.onData(this.writer.dtdElement(B,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.attList=function(R,P,B,W,z){var H;return this.openCurrent(),H=new a(this,R,P,B,W,z),this.onData(this.writer.dtdAttList(H,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.entity=function(R,P){var B;return this.openCurrent(),B=new d(this,!1,R,P),this.onData(this.writer.dtdEntity(B,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.pEntity=function(R,P){var B;return this.openCurrent(),B=new d(this,!0,R,P),this.onData(this.writer.dtdEntity(B,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.notation=function(R,P){var B;return this.openCurrent(),B=new u(this,R,P),this.onData(this.writer.dtdNotation(B,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},T.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},T.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},T.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},T.prototype.openNode=function(R){var P,B,W,z;if(!R.isOpen){if(!this.root&&this.currentLevel===0&&R.type===w.Element&&(this.root=R),B="",R.type===w.Element){this.writerOptions.state=h.OpenTag,B=this.writer.indent(R,this.writerOptions,this.currentLevel)+"<"+R.name,z=R.attribs;for(W in z){if(!k.call(z,W))continue;P=z[W],B+=this.writer.attribute(P,this.writerOptions,this.currentLevel)}B+=(R.children?">":"/>")+this.writer.endline(R,this.writerOptions,this.currentLevel),this.writerOptions.state=h.InsideTag}else this.writerOptions.state=h.OpenTag,B=this.writer.indent(R,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+R.rootNodeName,R.pubID&&R.sysID?B+=' PUBLIC "'+R.pubID+'" "'+R.sysID+'"':R.sysID&&(B+=' SYSTEM "'+R.sysID+'"'),R.children?(B+=" [",this.writerOptions.state=h.InsideTag):(this.writerOptions.state=h.CloseTag,B+=">"),B+=this.writer.endline(R,this.writerOptions,this.currentLevel);return this.onData(B,this.currentLevel),R.isOpen=!0}},T.prototype.closeNode=function(R){var P;if(!R.isClosed)return P="",this.writerOptions.state=h.CloseTag,R.type===w.Element?P=this.writer.indent(R,this.writerOptions,this.currentLevel)+"</"+R.name+">"+this.writer.endline(R,this.writerOptions,this.currentLevel):P=this.writer.indent(R,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(R,this.writerOptions,this.currentLevel),this.writerOptions.state=h.None,this.onData(P,this.currentLevel),R.isClosed=!0},T.prototype.onData=function(R,P){return this.documentStarted=!0,this.onDataCallback(R,P+1)},T.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},T.prototype.debugInfo=function(R){return R==null?"":"node: <"+R+">"},T.prototype.ele=function(){return this.element.apply(this,arguments)},T.prototype.nod=function(R,P,B){return this.node(R,P,B)},T.prototype.txt=function(R){return this.text(R)},T.prototype.dat=function(R){return this.cdata(R)},T.prototype.com=function(R){return this.comment(R)},T.prototype.ins=function(R,P){return this.instruction(R,P)},T.prototype.dec=function(R,P,B){return this.declaration(R,P,B)},T.prototype.dtd=function(R,P,B){return this.doctype(R,P,B)},T.prototype.e=function(R,P,B){return this.element(R,P,B)},T.prototype.n=function(R,P,B){return this.node(R,P,B)},T.prototype.t=function(R){return this.text(R)},T.prototype.d=function(R){return this.cdata(R)},T.prototype.c=function(R){return this.comment(R)},T.prototype.r=function(R){return this.raw(R)},T.prototype.i=function(R,P){return this.instruction(R,P)},T.prototype.att=function(){return this.currentNode&&this.currentNode.type===w.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},T.prototype.a=function(){return this.currentNode&&this.currentNode.type===w.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},T.prototype.ent=function(R,P){return this.entity(R,P)},T.prototype.pent=function(R,P){return this.pEntity(R,P)},T.prototype.not=function(R,P){return this.notation(R,P)},T}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/create"),h=I(w);function I(m){return m&&m.__esModule?m:{default:m}}(function(){var m,g,a,f=function(o,r){for(var l in r)d.call(r,l)&&(o[l]=r[l]);function n(){this.constructor=o}return n.prototype=r.prototype,o.prototype=new n,o.__super__=r.prototype,o},d={}.hasOwnProperty;a=S("./XMLNode"),m=S("./NodeType"),F.exports=g=function(u){f(o,u);function o(r){o.__super__.constructor.call(this,r),this.type=m.Dummy}return o.prototype.clone=function(){return(0,h.default)(this)},o.prototype.toString=function(r){return""},o}(a)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/create"),h=I(w);function I(m){return m&&m.__esModule?m:{default:m}}(function(){var m,g,a,f,d,u,o,r,l,n=function(i,_){for(var b in _)s.call(_,b)&&(i[b]=_[b]);function y(){this.constructor=i}return y.prototype=_.prototype,i.prototype=new y,i.__super__=_.prototype,i},s={}.hasOwnProperty;l=S("./Utility"),r=l.isObject,o=l.isFunction,u=l.getValue,d=S("./XMLNode"),m=S("./NodeType"),g=S("./XMLAttribute"),f=S("./XMLNamedNodeMap"),F.exports=a=function(e){n(i,e);function i(_,b,y){var E,c,C,x;if(i.__super__.constructor.call(this,_),b==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(b),this.type=m.Element,this.attribs={},this.schemaTypeInfo=null,y!=null&&this.attribute(y),_.type===m.Document&&(this.isRoot=!0,this.documentObject=_,_.rootObject=this,_.children)){for(x=_.children,c=0,C=x.length;c<C;c++)if(E=x[c],E.type===m.DocType){E.name=this.name;break}}}return Object.defineProperty(i.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(i.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(i.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(i.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new f(this.attribs)),this.attributeMap}}),i.prototype.clone=function(){var _,b,y,E;y=(0,h.default)(this),y.isRoot&&(y.documentObject=null),y.attribs={},E=this.attribs;for(b in E){if(!s.call(E,b))continue;_=E[b],y.attribs[b]=_.clone()}return y.children=[],this.children.forEach(function(c){var C;return C=c.clone(),C.parent=y,y.children.push(C)}),y},i.prototype.attribute=function(_,b){var y,E;if(_!=null&&(_=u(_)),r(_))for(y in _){if(!s.call(_,y))continue;E=_[y],this.attribute(y,E)}else o(b)&&(b=b.apply()),this.options.keepNullAttributes&&b==null?this.attribs[_]=new g(this,_,""):b!=null&&(this.attribs[_]=new g(this,_,b));return this},i.prototype.removeAttribute=function(_){var b,y,E;if(_==null)throw new Error("Missing attribute name. "+this.debugInfo());if(_=u(_),Array.isArray(_))for(y=0,E=_.length;y<E;y++)b=_[y],delete this.attribs[b];else delete this.attribs[_];return this},i.prototype.toString=function(_){return this.options.writer.element(this,this.options.writer.filterOptions(_))},i.prototype.att=function(_,b){return this.attribute(_,b)},i.prototype.a=function(_,b){return this.attribute(_,b)},i.prototype.getAttribute=function(_){return this.attribs.hasOwnProperty(_)?this.attribs[_].value:null},i.prototype.setAttribute=function(_,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getAttributeNode=function(_){return this.attribs.hasOwnProperty(_)?this.attribs[_]:null},i.prototype.setAttributeNode=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.removeAttributeNode=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByTagName=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getAttributeNS=function(_,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.setAttributeNS=function(_,b,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.removeAttributeNS=function(_,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getAttributeNodeNS=function(_,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.setAttributeNodeNS=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByTagNameNS=function(_,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.hasAttribute=function(_){return this.attribs.hasOwnProperty(_)},i.prototype.hasAttributeNS=function(_,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.setIdAttribute=function(_,b){return this.attribs.hasOwnProperty(_)?this.attribs[_].isId:b},i.prototype.setIdAttributeNS=function(_,b,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.setIdAttributeNode=function(_,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByTagName=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByTagNameNS=function(_,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByClassName=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.isEqualNode=function(_){var b,y,E;if(!i.__super__.isEqualNode.apply(this,arguments).isEqualNode(_))return!1;if(_.namespaceURI!==this.namespaceURI)return!1;if(_.prefix!==this.prefix)return!1;if(_.localName!==this.localName)return!1;if(_.attribs.length!==this.attribs.length)return!1;for(b=y=0,E=this.attribs.length-1;0<=E?y<=E:y>=E;b=0<=E?++y:--y)if(!this.attribs[b].isEqualNode(_.attribs[b]))return!1;return!0},i}(d)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/keys"),h=I(w);function I(m){return m&&m.__esModule?m:{default:m}}(function(){var m;F.exports=m=function(){function g(a){this.nodes=a}return Object.defineProperty(g.prototype,"length",{get:function(){return(0,h.default)(this.nodes).length||0}}),g.prototype.clone=function(){return this.nodes=null},g.prototype.getNamedItem=function(a){return this.nodes[a]},g.prototype.setNamedItem=function(a){var f;return f=this.nodes[a.nodeName],this.nodes[a.nodeName]=a,f||null},g.prototype.removeNamedItem=function(a){var f;return f=this.nodes[a],delete this.nodes[a],f||null},g.prototype.item=function(a){return this.nodes[(0,h.default)(this.nodes)[a]]||null},g.prototype.getNamedItemNS=function(a,f){throw new Error("This DOM method is not implemented.")},g.prototype.setNamedItemNS=function(a){throw new Error("This DOM method is not implemented.")},g.prototype.removeNamedItemNS=function(a,f){throw new Error("This DOM method is not implemented.")},g}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(S,F,v){"use strict";(function(){var w,h,I,m,g,a,f,d,u,o,r,l,n,s,e,i,_,b,y,E={}.hasOwnProperty;y=S("./Utility"),b=y.isObject,_=y.isFunction,i=y.isEmpty,e=y.getValue,d=null,I=null,m=null,g=null,a=null,n=null,s=null,l=null,f=null,h=null,r=null,u=null,w=null,F.exports=o=function(){function c(C){this.parent=C,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,d||(d=S("./XMLElement"),I=S("./XMLCData"),m=S("./XMLComment"),g=S("./XMLDeclaration"),a=S("./XMLDocType"),n=S("./XMLRaw"),s=S("./XMLText"),l=S("./XMLProcessingInstruction"),f=S("./XMLDummy"),h=S("./NodeType"),r=S("./XMLNodeList"),u=S("./XMLNamedNodeMap"),w=S("./DocumentPosition"))}return Object.defineProperty(c.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(c.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(c.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(c.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(c.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new r(this.children)),this.childNodeList}}),Object.defineProperty(c.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(c.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(c.prototype,"previousSibling",{get:function(){var x;return x=this.parent.children.indexOf(this),this.parent.children[x-1]||null}}),Object.defineProperty(c.prototype,"nextSibling",{get:function(){var x;return x=this.parent.children.indexOf(this),this.parent.children[x+1]||null}}),Object.defineProperty(c.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(c.prototype,"textContent",{get:function(){var x,M,k,T,R;if(this.nodeType===h.Element||this.nodeType===h.DocumentFragment){for(R="",T=this.children,M=0,k=T.length;M<k;M++)x=T[M],x.textContent&&(R+=x.textContent);return R}else return null},set:function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),c.prototype.setParent=function(C){var x,M,k,T,R;for(this.parent=C,C&&(this.options=C.options,this.stringify=C.stringify),T=this.children,R=[],M=0,k=T.length;M<k;M++)x=T[M],R.push(x.setParent(this));return R},c.prototype.element=function(C,x,M){var k,T,R,P,B,W,z,H,ee,G,U;if(W=null,x===null&&M==null&&(ee=[{},null],x=ee[0],M=ee[1]),x==null&&(x={}),x=e(x),b(x)||(G=[x,M],M=G[0],x=G[1]),C!=null&&(C=e(C)),Array.isArray(C))for(R=0,z=C.length;R<z;R++)T=C[R],W=this.element(T);else if(_(C))W=this.element(C.apply());else if(b(C))for(B in C){if(!E.call(C,B))continue;if(U=C[B],_(U)&&(U=U.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&B.indexOf(this.stringify.convertAttKey)===0)W=this.attribute(B.substr(this.stringify.convertAttKey.length),U);else if(!this.options.separateArrayItems&&Array.isArray(U)&&i(U))W=this.dummy();else if(b(U)&&i(U))W=this.element(B);else if(!this.options.keepNullNodes&&U==null)W=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(U))for(P=0,H=U.length;P<H;P++)T=U[P],k={},k[B]=T,W=this.element(k);else b(U)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&B.indexOf(this.stringify.convertTextKey)===0?W=this.element(U):(W=this.element(B),W.element(U)):W=this.element(B,U)}else!this.options.keepNullNodes&&M===null?W=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&C.indexOf(this.stringify.convertTextKey)===0?W=this.text(M):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&C.indexOf(this.stringify.convertCDataKey)===0?W=this.cdata(M):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&C.indexOf(this.stringify.convertCommentKey)===0?W=this.comment(M):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&C.indexOf(this.stringify.convertRawKey)===0?W=this.raw(M):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&C.indexOf(this.stringify.convertPIKey)===0?W=this.instruction(C.substr(this.stringify.convertPIKey.length),M):W=this.node(C,x,M);if(W==null)throw new Error("Could not create any elements with: "+C+". "+this.debugInfo());return W},c.prototype.insertBefore=function(C,x,M){var k,T,R,P,B;if(C!=null?C.type:void 0)return R=C,P=x,R.setParent(this),P?(T=children.indexOf(P),B=children.splice(T),children.push(R),Array.prototype.push.apply(children,B)):children.push(R),R;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(C));return T=this.parent.children.indexOf(this),B=this.parent.children.splice(T),k=this.parent.element(C,x,M),Array.prototype.push.apply(this.parent.children,B),k},c.prototype.insertAfter=function(C,x,M){var k,T,R;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(C));return T=this.parent.children.indexOf(this),R=this.parent.children.splice(T+1),k=this.parent.element(C,x,M),Array.prototype.push.apply(this.parent.children,R),k},c.prototype.remove=function(){var C,x;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return C=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[C,C-C+1].concat(x=[])),this.parent},c.prototype.node=function(C,x,M){var k,T;return C!=null&&(C=e(C)),x||(x={}),x=e(x),b(x)||(T=[x,M],M=T[0],x=T[1]),k=new d(this,C,x),M!=null&&k.text(M),this.children.push(k),k},c.prototype.text=function(C){var x;return b(C)&&this.element(C),x=new s(this,C),this.children.push(x),this},c.prototype.cdata=function(C){var x;return x=new I(this,C),this.children.push(x),this},c.prototype.comment=function(C){var x;return x=new m(this,C),this.children.push(x),this},c.prototype.commentBefore=function(C){var x,M,k;return M=this.parent.children.indexOf(this),k=this.parent.children.splice(M),x=this.parent.comment(C),Array.prototype.push.apply(this.parent.children,k),this},c.prototype.commentAfter=function(C){var x,M,k;return M=this.parent.children.indexOf(this),k=this.parent.children.splice(M+1),x=this.parent.comment(C),Array.prototype.push.apply(this.parent.children,k),this},c.prototype.raw=function(C){var x;return x=new n(this,C),this.children.push(x),this},c.prototype.dummy=function(){var C;return C=new f(this),C},c.prototype.instruction=function(C,x){var M,k,T,R,P;if(C!=null&&(C=e(C)),x!=null&&(x=e(x)),Array.isArray(C))for(R=0,P=C.length;R<P;R++)M=C[R],this.instruction(M);else if(b(C))for(M in C){if(!E.call(C,M))continue;k=C[M],this.instruction(M,k)}else _(x)&&(x=x.apply()),T=new l(this,C,x),this.children.push(T);return this},c.prototype.instructionBefore=function(C,x){var M,k,T;return k=this.parent.children.indexOf(this),T=this.parent.children.splice(k),M=this.parent.instruction(C,x),Array.prototype.push.apply(this.parent.children,T),this},c.prototype.instructionAfter=function(C,x){var M,k,T;return k=this.parent.children.indexOf(this),T=this.parent.children.splice(k+1),M=this.parent.instruction(C,x),Array.prototype.push.apply(this.parent.children,T),this},c.prototype.declaration=function(C,x,M){var k,T;return k=this.document(),T=new g(k,C,x,M),k.children.length===0?k.children.unshift(T):k.children[0].type===h.Declaration?k.children[0]=T:k.children.unshift(T),k.root()||k},c.prototype.dtd=function(C,x){var M,k,T,R,P,B,W,z,H,ee;for(k=this.document(),T=new a(k,C,x),H=k.children,R=P=0,W=H.length;P<W;R=++P)if(M=H[R],M.type===h.DocType)return k.children[R]=T,T;for(ee=k.children,R=B=0,z=ee.length;B<z;R=++B)if(M=ee[R],M.isRoot)return k.children.splice(R,0,T),T;return k.children.push(T),T},c.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},c.prototype.root=function(){var C;for(C=this;C;){if(C.type===h.Document)return C.rootObject;if(C.isRoot)return C;C=C.parent}},c.prototype.document=function(){var C;for(C=this;C;){if(C.type===h.Document)return C;C=C.parent}},c.prototype.end=function(C){return this.document().end(C)},c.prototype.prev=function(){var C;if(C=this.parent.children.indexOf(this),C<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[C-1]},c.prototype.next=function(){var C;if(C=this.parent.children.indexOf(this),C===-1||C===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[C+1]},c.prototype.importDocument=function(C){var x;return x=C.root().clone(),x.parent=this,x.isRoot=!1,this.children.push(x),this},c.prototype.debugInfo=function(C){var x,M;return C=C||this.name,C==null&&!((x=this.parent)!=null?x.name:void 0)?"":C==null?"parent: <"+this.parent.name+">":((M=this.parent)!=null?M.name:void 0)?"node: <"+C+">, parent: <"+this.parent.name+">":"node: <"+C+">"},c.prototype.ele=function(C,x,M){return this.element(C,x,M)},c.prototype.nod=function(C,x,M){return this.node(C,x,M)},c.prototype.txt=function(C){return this.text(C)},c.prototype.dat=function(C){return this.cdata(C)},c.prototype.com=function(C){return this.comment(C)},c.prototype.ins=function(C,x){return this.instruction(C,x)},c.prototype.doc=function(){return this.document()},c.prototype.dec=function(C,x,M){return this.declaration(C,x,M)},c.prototype.e=function(C,x,M){return this.element(C,x,M)},c.prototype.n=function(C,x,M){return this.node(C,x,M)},c.prototype.t=function(C){return this.text(C)},c.prototype.d=function(C){return this.cdata(C)},c.prototype.c=function(C){return this.comment(C)},c.prototype.r=function(C){return this.raw(C)},c.prototype.i=function(C,x){return this.instruction(C,x)},c.prototype.u=function(){return this.up()},c.prototype.importXMLBuilder=function(C){return this.importDocument(C)},c.prototype.replaceChild=function(C,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.removeChild=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.appendChild=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.hasChildNodes=function(){return this.children.length!==0},c.prototype.cloneNode=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.isSupported=function(C,x){return!0},c.prototype.hasAttributes=function(){return this.attribs.length!==0},c.prototype.compareDocumentPosition=function(C){var x,M;return x=this,x===C?0:this.document()!==C.document()?(M=w.Disconnected|w.ImplementationSpecific,Math.random()<.5?M|=w.Preceding:M|=w.Following,M):x.isAncestor(C)?w.Contains|w.Preceding:x.isDescendant(C)?w.Contains|w.Following:x.isPreceding(C)?w.Preceding:w.Following},c.prototype.isSameNode=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.lookupPrefix=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.isDefaultNamespace=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.lookupNamespaceURI=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.isEqualNode=function(C){var x,M,k;if(C.nodeType!==this.nodeType)return!1;if(C.children.length!==this.children.length)return!1;for(x=M=0,k=this.children.length-1;0<=k?M<=k:M>=k;x=0<=k?++M:--M)if(!this.children[x].isEqualNode(C.children[x]))return!1;return!0},c.prototype.getFeature=function(C,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.setUserData=function(C,x,M){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.getUserData=function(C){throw new Error("This DOM method is not implemented."+this.debugInfo())},c.prototype.contains=function(C){return C?C===this||this.isDescendant(C):!1},c.prototype.isDescendant=function(C){var x,M,k,T,R;for(R=this.children,k=0,T=R.length;k<T;k++){if(x=R[k],C===x)return!0;if(M=x.isDescendant(C),M)return!0}return!1},c.prototype.isAncestor=function(C){return C.isDescendant(this)},c.prototype.isPreceding=function(C){var x,M;return x=this.treePosition(C),M=this.treePosition(this),x===-1||M===-1?!1:x<M},c.prototype.isFollowing=function(C){var x,M;return x=this.treePosition(C),M=this.treePosition(this),x===-1||M===-1?!1:x>M},c.prototype.treePosition=function(C){var x,M;return M=0,x=!1,this.foreachTreeNode(this.document(),function(k){if(M++,!x&&k===C)return x=!0}),x?M:-1},c.prototype.foreachTreeNode=function(C,x){var M,k,T,R,P;for(C||(C=this.document()),R=C.children,k=0,T=R.length;k<T;k++){if(M=R[k],P=x(M))return P;if(P=this.foreachTreeNode(M,x),P)return P}},c}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(S,F,v){"use strict";(function(){var w;F.exports=w=function(){function h(I){this.nodes=I}return Object.defineProperty(h.prototype,"length",{get:function(){return this.nodes.length||0}}),h.prototype.clone=function(){return this.nodes=null},h.prototype.item=function(I){return this.nodes[I]||null},h}()}).call(void 0)},{}],275:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/create"),h=I(w);function I(m){return m&&m.__esModule?m:{default:m}}(function(){var m,g,a,f=function(o,r){for(var l in r)d.call(r,l)&&(o[l]=r[l]);function n(){this.constructor=o}return n.prototype=r.prototype,o.prototype=new n,o.__super__=r.prototype,o},d={}.hasOwnProperty;m=S("./NodeType"),g=S("./XMLCharacterData"),F.exports=a=function(u){f(o,u);function o(r,l,n){if(o.__super__.constructor.call(this,r),l==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=m.ProcessingInstruction,this.target=this.stringify.insTarget(l),this.name=this.target,n&&(this.value=this.stringify.insValue(n))}return o.prototype.clone=function(){return(0,h.default)(this)},o.prototype.toString=function(r){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(r))},o.prototype.isEqualNode=function(r){return o.__super__.isEqualNode.apply(this,arguments).isEqualNode(r)?!(r.target!==this.target):!1},o}(g)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/create"),h=I(w);function I(m){return m&&m.__esModule?m:{default:m}}(function(){var m,g,a,f=function(o,r){for(var l in r)d.call(r,l)&&(o[l]=r[l]);function n(){this.constructor=o}return n.prototype=r.prototype,o.prototype=new n,o.__super__=r.prototype,o},d={}.hasOwnProperty;m=S("./NodeType"),g=S("./XMLNode"),F.exports=a=function(u){f(o,u);function o(r,l){if(o.__super__.constructor.call(this,r),l==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=m.Raw,this.value=this.stringify.raw(l)}return o.prototype.clone=function(){return(0,h.default)(this)},o.prototype.toString=function(r){return this.options.writer.raw(this,this.options.writer.filterOptions(r))},o}(g)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(S,F,v){"use strict";(function(){var w,h,I,m,g=function(d,u){for(var o in u)a.call(u,o)&&(d[o]=u[o]);function r(){this.constructor=d}return r.prototype=u.prototype,d.prototype=new r,d.__super__=u.prototype,d},a={}.hasOwnProperty;w=S("./NodeType"),m=S("./XMLWriterBase"),h=S("./WriterState"),F.exports=I=function(f){g(d,f);function d(u,o){this.stream=u,d.__super__.constructor.call(this,o)}return d.prototype.endline=function(u,o,r){return u.isLastRootNode&&o.state===h.CloseTag?"":d.__super__.endline.call(this,u,o,r)},d.prototype.document=function(u,o){var r,l,n,s,e,i,_,b,y;for(_=u.children,l=n=0,e=_.length;n<e;l=++n)r=_[l],r.isLastRootNode=l===u.children.length-1;for(o=this.filterOptions(o),b=u.children,y=[],s=0,i=b.length;s<i;s++)r=b[s],y.push(this.writeChildNode(r,o,0));return y},d.prototype.attribute=function(u,o,r){return this.stream.write(d.__super__.attribute.call(this,u,o,r))},d.prototype.cdata=function(u,o,r){return this.stream.write(d.__super__.cdata.call(this,u,o,r))},d.prototype.comment=function(u,o,r){return this.stream.write(d.__super__.comment.call(this,u,o,r))},d.prototype.declaration=function(u,o,r){return this.stream.write(d.__super__.declaration.call(this,u,o,r))},d.prototype.docType=function(u,o,r){var l,n,s,e;if(r||(r=0),this.openNode(u,o,r),o.state=h.OpenTag,this.stream.write(this.indent(u,o,r)),this.stream.write("<!DOCTYPE "+u.root().name),u.pubID&&u.sysID?this.stream.write(' PUBLIC "'+u.pubID+'" "'+u.sysID+'"'):u.sysID&&this.stream.write(' SYSTEM "'+u.sysID+'"'),u.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(u,o,r)),o.state=h.InsideTag,e=u.children,n=0,s=e.length;n<s;n++)l=e[n],this.writeChildNode(l,o,r+1);o.state=h.CloseTag,this.stream.write("]")}return o.state=h.CloseTag,this.stream.write(o.spaceBeforeSlash+">"),this.stream.write(this.endline(u,o,r)),o.state=h.None,this.closeNode(u,o,r)},d.prototype.element=function(u,o,r){var l,n,s,e,i,_,b,y,E,c;r||(r=0),this.openNode(u,o,r),o.state=h.OpenTag,this.stream.write(this.indent(u,o,r)+"<"+u.name),E=u.attribs;for(b in E){if(!a.call(E,b))continue;l=E[b],this.attribute(l,o,r)}if(s=u.children.length,e=s===0?null:u.children[0],s===0||u.children.every(function(C){return(C.type===w.Text||C.type===w.Raw)&&C.value===""}))o.allowEmpty?(this.stream.write(">"),o.state=h.CloseTag,this.stream.write("</"+u.name+">")):(o.state=h.CloseTag,this.stream.write(o.spaceBeforeSlash+"/>"));else if(o.pretty&&s===1&&(e.type===w.Text||e.type===w.Raw)&&e.value!=null)this.stream.write(">"),o.state=h.InsideTag,o.suppressPrettyCount++,y=!0,this.writeChildNode(e,o,r+1),o.suppressPrettyCount--,y=!1,o.state=h.CloseTag,this.stream.write("</"+u.name+">");else{for(this.stream.write(">"+this.endline(u,o,r)),o.state=h.InsideTag,c=u.children,i=0,_=c.length;i<_;i++)n=c[i],this.writeChildNode(n,o,r+1);o.state=h.CloseTag,this.stream.write(this.indent(u,o,r)+"</"+u.name+">")}return this.stream.write(this.endline(u,o,r)),o.state=h.None,this.closeNode(u,o,r)},d.prototype.processingInstruction=function(u,o,r){return this.stream.write(d.__super__.processingInstruction.call(this,u,o,r))},d.prototype.raw=function(u,o,r){return this.stream.write(d.__super__.raw.call(this,u,o,r))},d.prototype.text=function(u,o,r){return this.stream.write(d.__super__.text.call(this,u,o,r))},d.prototype.dtdAttList=function(u,o,r){return this.stream.write(d.__super__.dtdAttList.call(this,u,o,r))},d.prototype.dtdElement=function(u,o,r){return this.stream.write(d.__super__.dtdElement.call(this,u,o,r))},d.prototype.dtdEntity=function(u,o,r){return this.stream.write(d.__super__.dtdEntity.call(this,u,o,r))},d.prototype.dtdNotation=function(u,o,r){return this.stream.write(d.__super__.dtdNotation.call(this,u,o,r))},d}(m)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(S,F,v){"use strict";(function(){var w,h,I=function(a,f){for(var d in f)m.call(f,d)&&(a[d]=f[d]);function u(){this.constructor=a}return u.prototype=f.prototype,a.prototype=new u,a.__super__=f.prototype,a},m={}.hasOwnProperty;h=S("./XMLWriterBase"),F.exports=w=function(g){I(a,g);function a(f){a.__super__.constructor.call(this,f)}return a.prototype.document=function(f,d){var u,o,r,l,n;for(d=this.filterOptions(d),l="",n=f.children,o=0,r=n.length;o<r;o++)u=n[o],l+=this.writeChildNode(u,d,0);return d.pretty&&l.slice(-d.newline.length)===d.newline&&(l=l.slice(0,-d.newline.length)),l},a}(h)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(S,F,v){"use strict";(function(){var w,h=function(g,a){return function(){return g.apply(a,arguments)}},I={}.hasOwnProperty;F.exports=w=function(){function m(g){this.assertLegalName=h(this.assertLegalName,this),this.assertLegalChar=h(this.assertLegalChar,this);var a,f,d;g||(g={}),this.options=g,this.options.version||(this.options.version="1.0"),f=g.stringify||{};for(a in f){if(!I.call(f,a))continue;d=f[a],this[a]=d}}return m.prototype.name=function(g){return this.options.noValidation?g:this.assertLegalName(""+g||"")},m.prototype.text=function(g){return this.options.noValidation?g:this.assertLegalChar(this.textEscape(""+g||""))},m.prototype.cdata=function(g){return this.options.noValidation?g:(g=""+g||"",g=g.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(g))},m.prototype.comment=function(g){if(this.options.noValidation)return g;if(g=""+g||"",g.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+g);return this.assertLegalChar(g)},m.prototype.raw=function(g){return this.options.noValidation?g:""+g||""},m.prototype.attValue=function(g){return this.options.noValidation?g:this.assertLegalChar(this.attEscape(g=""+g||""))},m.prototype.insTarget=function(g){return this.options.noValidation?g:this.assertLegalChar(""+g||"")},m.prototype.insValue=function(g){if(this.options.noValidation)return g;if(g=""+g||"",g.match(/\?>/))throw new Error("Invalid processing instruction value: "+g);return this.assertLegalChar(g)},m.prototype.xmlVersion=function(g){if(this.options.noValidation)return g;if(g=""+g||"",!g.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+g);return g},m.prototype.xmlEncoding=function(g){if(this.options.noValidation)return g;if(g=""+g||"",!g.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+g);return this.assertLegalChar(g)},m.prototype.xmlStandalone=function(g){return this.options.noValidation?g:g?"yes":"no"},m.prototype.dtdPubID=function(g){return this.options.noValidation?g:this.assertLegalChar(""+g||"")},m.prototype.dtdSysID=function(g){return this.options.noValidation?g:this.assertLegalChar(""+g||"")},m.prototype.dtdElementValue=function(g){return this.options.noValidation?g:this.assertLegalChar(""+g||"")},m.prototype.dtdAttType=function(g){return this.options.noValidation?g:this.assertLegalChar(""+g||"")},m.prototype.dtdAttDefault=function(g){return this.options.noValidation?g:this.assertLegalChar(""+g||"")},m.prototype.dtdEntityValue=function(g){return this.options.noValidation?g:this.assertLegalChar(""+g||"")},m.prototype.dtdNData=function(g){return this.options.noValidation?g:this.assertLegalChar(""+g||"")},m.prototype.convertAttKey="@",m.prototype.convertPIKey="?",m.prototype.convertTextKey="#text",m.prototype.convertCDataKey="#cdata",m.prototype.convertCommentKey="#comment",m.prototype.convertRawKey="#raw",m.prototype.assertLegalChar=function(g){var a,f;if(this.options.noValidation)return g;if(a="",this.options.version==="1.0"){if(a=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=g.match(a))throw new Error("Invalid character in string: "+g+" at index "+f.index)}else if(this.options.version==="1.1"&&(a=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=g.match(a)))throw new Error("Invalid character in string: "+g+" at index "+f.index);return g},m.prototype.assertLegalName=function(g){var a;if(this.options.noValidation)return g;if(this.assertLegalChar(g),a=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!g.match(a))throw new Error("Invalid character in name");return g},m.prototype.textEscape=function(g){var a;return this.options.noValidation?g:(a=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,g.replace(a,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},m.prototype.attEscape=function(g){var a;return this.options.noValidation?g:(a=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,g.replace(a,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},m}()}).call(void 0)},{}],280:[function(S,F,v){"use strict";var w=S("babel-runtime/core-js/object/create"),h=I(w);function I(m){return m&&m.__esModule?m:{default:m}}(function(){var m,g,a,f=function(o,r){for(var l in r)d.call(r,l)&&(o[l]=r[l]);function n(){this.constructor=o}return n.prototype=r.prototype,o.prototype=new n,o.__super__=r.prototype,o},d={}.hasOwnProperty;m=S("./NodeType"),g=S("./XMLCharacterData"),F.exports=a=function(u){f(o,u);function o(r,l){if(o.__super__.constructor.call(this,r),l==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=m.Text,this.value=this.stringify.text(l)}return Object.defineProperty(o.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(o.prototype,"wholeText",{get:function(){var l,n,s;for(s="",n=this.previousSibling;n;)s=n.data+s,n=n.previousSibling;for(s+=this.data,l=this.nextSibling;l;)s=s+l.data,l=l.nextSibling;return s}}),o.prototype.clone=function(){return(0,h.default)(this)},o.prototype.toString=function(r){return this.options.writer.text(this,this.options.writer.filterOptions(r))},o.prototype.splitText=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.replaceWholeText=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o}(g)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(S,F,v){"use strict";(function(){var w,h,I,m,g,a,f,d,u,o,r,l,n,s,e,i,_,b={}.hasOwnProperty;_=S("./Utility").assign,w=S("./NodeType"),u=S("./XMLDeclaration"),o=S("./XMLDocType"),I=S("./XMLCData"),m=S("./XMLComment"),l=S("./XMLElement"),s=S("./XMLRaw"),e=S("./XMLText"),n=S("./XMLProcessingInstruction"),r=S("./XMLDummy"),g=S("./XMLDTDAttList"),a=S("./XMLDTDElement"),f=S("./XMLDTDEntity"),d=S("./XMLDTDNotation"),h=S("./WriterState"),F.exports=i=function(){function y(E){var c,C,x;E||(E={}),this.options=E,C=E.writer||{};for(c in C){if(!b.call(C,c))continue;x=C[c],this["_"+c]=this[c],this[c]=x}}return y.prototype.filterOptions=function(E){var c,C,x,M,k,T,R,P;return E||(E={}),E=_({},this.options,E),c={writer:this},c.pretty=E.pretty||!1,c.allowEmpty=E.allowEmpty||!1,c.indent=(C=E.indent)!=null?C:" ",c.newline=(x=E.newline)!=null?x:`
`,c.offset=(M=E.offset)!=null?M:0,c.dontPrettyTextNodes=(k=(T=E.dontPrettyTextNodes)!=null?T:E.dontprettytextnodes)!=null?k:0,c.spaceBeforeSlash=(R=(P=E.spaceBeforeSlash)!=null?P:E.spacebeforeslash)!=null?R:"",c.spaceBeforeSlash===!0&&(c.spaceBeforeSlash=" "),c.suppressPrettyCount=0,c.user={},c.state=h.None,c},y.prototype.indent=function(E,c,C){var x;return!c.pretty||c.suppressPrettyCount?"":c.pretty&&(x=(C||0)+c.offset+1,x>0)?new Array(x).join(c.indent):""},y.prototype.endline=function(E,c,C){return!c.pretty||c.suppressPrettyCount?"":c.newline},y.prototype.attribute=function(E,c,C){var x;return this.openAttribute(E,c,C),x=" "+E.name+'="'+E.value+'"',this.closeAttribute(E,c,C),x},y.prototype.cdata=function(E,c,C){var x;return this.openNode(E,c,C),c.state=h.OpenTag,x=this.indent(E,c,C)+"<![CDATA[",c.state=h.InsideTag,x+=E.value,c.state=h.CloseTag,x+="]]>"+this.endline(E,c,C),c.state=h.None,this.closeNode(E,c,C),x},y.prototype.comment=function(E,c,C){var x;return this.openNode(E,c,C),c.state=h.OpenTag,x=this.indent(E,c,C)+"<!-- ",c.state=h.InsideTag,x+=E.value,c.state=h.CloseTag,x+=" -->"+this.endline(E,c,C),c.state=h.None,this.closeNode(E,c,C),x},y.prototype.declaration=function(E,c,C){var x;return this.openNode(E,c,C),c.state=h.OpenTag,x=this.indent(E,c,C)+"<?xml",c.state=h.InsideTag,x+=' version="'+E.version+'"',E.encoding!=null&&(x+=' encoding="'+E.encoding+'"'),E.standalone!=null&&(x+=' standalone="'+E.standalone+'"'),c.state=h.CloseTag,x+=c.spaceBeforeSlash+"?>",x+=this.endline(E,c,C),c.state=h.None,this.closeNode(E,c,C),x},y.prototype.docType=function(E,c,C){var x,M,k,T,R;if(C||(C=0),this.openNode(E,c,C),c.state=h.OpenTag,T=this.indent(E,c,C),T+="<!DOCTYPE "+E.root().name,E.pubID&&E.sysID?T+=' PUBLIC "'+E.pubID+'" "'+E.sysID+'"':E.sysID&&(T+=' SYSTEM "'+E.sysID+'"'),E.children.length>0){for(T+=" [",T+=this.endline(E,c,C),c.state=h.InsideTag,R=E.children,M=0,k=R.length;M<k;M++)x=R[M],T+=this.writeChildNode(x,c,C+1);c.state=h.CloseTag,T+="]"}return c.state=h.CloseTag,T+=c.spaceBeforeSlash+">",T+=this.endline(E,c,C),c.state=h.None,this.closeNode(E,c,C),T},y.prototype.element=function(E,c,C){var x,M,k,T,R,P,B,W,z,H,ee,G,U,K;C||(C=0),H=!1,ee="",this.openNode(E,c,C),c.state=h.OpenTag,ee+=this.indent(E,c,C)+"<"+E.name,G=E.attribs;for(z in G){if(!b.call(G,z))continue;x=G[z],ee+=this.attribute(x,c,C)}if(k=E.children.length,T=k===0?null:E.children[0],k===0||E.children.every(function(L){return(L.type===w.Text||L.type===w.Raw)&&L.value===""}))c.allowEmpty?(ee+=">",c.state=h.CloseTag,ee+="</"+E.name+">"+this.endline(E,c,C)):(c.state=h.CloseTag,ee+=c.spaceBeforeSlash+"/>"+this.endline(E,c,C));else if(c.pretty&&k===1&&(T.type===w.Text||T.type===w.Raw)&&T.value!=null)ee+=">",c.state=h.InsideTag,c.suppressPrettyCount++,H=!0,ee+=this.writeChildNode(T,c,C+1),c.suppressPrettyCount--,H=!1,c.state=h.CloseTag,ee+="</"+E.name+">"+this.endline(E,c,C);else{if(c.dontPrettyTextNodes){for(U=E.children,R=0,B=U.length;R<B;R++)if(M=U[R],(M.type===w.Text||M.type===w.Raw)&&M.value!=null){c.suppressPrettyCount++,H=!0;break}}for(ee+=">"+this.endline(E,c,C),c.state=h.InsideTag,K=E.children,P=0,W=K.length;P<W;P++)M=K[P],ee+=this.writeChildNode(M,c,C+1);c.state=h.CloseTag,ee+=this.indent(E,c,C)+"</"+E.name+">",H&&c.suppressPrettyCount--,ee+=this.endline(E,c,C),c.state=h.None}return this.closeNode(E,c,C),ee},y.prototype.writeChildNode=function(E,c,C){switch(E.type){case w.CData:return this.cdata(E,c,C);case w.Comment:return this.comment(E,c,C);case w.Element:return this.element(E,c,C);case w.Raw:return this.raw(E,c,C);case w.Text:return this.text(E,c,C);case w.ProcessingInstruction:return this.processingInstruction(E,c,C);case w.Dummy:return"";case w.Declaration:return this.declaration(E,c,C);case w.DocType:return this.docType(E,c,C);case w.AttributeDeclaration:return this.dtdAttList(E,c,C);case w.ElementDeclaration:return this.dtdElement(E,c,C);case w.EntityDeclaration:return this.dtdEntity(E,c,C);case w.NotationDeclaration:return this.dtdNotation(E,c,C);default:throw new Error("Unknown XML node type: "+E.constructor.name)}},y.prototype.processingInstruction=function(E,c,C){var x;return this.openNode(E,c,C),c.state=h.OpenTag,x=this.indent(E,c,C)+"<?",c.state=h.InsideTag,x+=E.target,E.value&&(x+=" "+E.value),c.state=h.CloseTag,x+=c.spaceBeforeSlash+"?>",x+=this.endline(E,c,C),c.state=h.None,this.closeNode(E,c,C),x},y.prototype.raw=function(E,c,C){var x;return this.openNode(E,c,C),c.state=h.OpenTag,x=this.indent(E,c,C),c.state=h.InsideTag,x+=E.value,c.state=h.CloseTag,x+=this.endline(E,c,C),c.state=h.None,this.closeNode(E,c,C),x},y.prototype.text=function(E,c,C){var x;return this.openNode(E,c,C),c.state=h.OpenTag,x=this.indent(E,c,C),c.state=h.InsideTag,x+=E.value,c.state=h.CloseTag,x+=this.endline(E,c,C),c.state=h.None,this.closeNode(E,c,C),x},y.prototype.dtdAttList=function(E,c,C){var x;return this.openNode(E,c,C),c.state=h.OpenTag,x=this.indent(E,c,C)+"<!ATTLIST",c.state=h.InsideTag,x+=" "+E.elementName+" "+E.attributeName+" "+E.attributeType,E.defaultValueType!=="#DEFAULT"&&(x+=" "+E.defaultValueType),E.defaultValue&&(x+=' "'+E.defaultValue+'"'),c.state=h.CloseTag,x+=c.spaceBeforeSlash+">"+this.endline(E,c,C),c.state=h.None,this.closeNode(E,c,C),x},y.prototype.dtdElement=function(E,c,C){var x;return this.openNode(E,c,C),c.state=h.OpenTag,x=this.indent(E,c,C)+"<!ELEMENT",c.state=h.InsideTag,x+=" "+E.name+" "+E.value,c.state=h.CloseTag,x+=c.spaceBeforeSlash+">"+this.endline(E,c,C),c.state=h.None,this.closeNode(E,c,C),x},y.prototype.dtdEntity=function(E,c,C){var x;return this.openNode(E,c,C),c.state=h.OpenTag,x=this.indent(E,c,C)+"<!ENTITY",c.state=h.InsideTag,E.pe&&(x+=" %"),x+=" "+E.name,E.value?x+=' "'+E.value+'"':(E.pubID&&E.sysID?x+=' PUBLIC "'+E.pubID+'" "'+E.sysID+'"':E.sysID&&(x+=' SYSTEM "'+E.sysID+'"'),E.nData&&(x+=" NDATA "+E.nData)),c.state=h.CloseTag,x+=c.spaceBeforeSlash+">"+this.endline(E,c,C),c.state=h.None,this.closeNode(E,c,C),x},y.prototype.dtdNotation=function(E,c,C){var x;return this.openNode(E,c,C),c.state=h.OpenTag,x=this.indent(E,c,C)+"<!NOTATION",c.state=h.InsideTag,x+=" "+E.name,E.pubID&&E.sysID?x+=' PUBLIC "'+E.pubID+'" "'+E.sysID+'"':E.pubID?x+=' PUBLIC "'+E.pubID+'"':E.sysID&&(x+=' SYSTEM "'+E.sysID+'"'),c.state=h.CloseTag,x+=c.spaceBeforeSlash+">"+this.endline(E,c,C),c.state=h.None,this.closeNode(E,c,C),x},y.prototype.openNode=function(E,c,C){},y.prototype.closeNode=function(E,c,C){},y.prototype.openAttribute=function(E,c,C){},y.prototype.closeAttribute=function(E,c,C){},y}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(S,F,v){"use strict";(function(){var w,h,I,m,g,a,f,d,u,o;o=S("./Utility"),d=o.assign,u=o.isFunction,I=S("./XMLDOMImplementation"),m=S("./XMLDocument"),g=S("./XMLDocumentCB"),f=S("./XMLStringWriter"),a=S("./XMLStreamWriter"),w=S("./NodeType"),h=S("./WriterState"),F.exports.create=function(r,l,n,s){var e,i;if(r==null)throw new Error("Root element needs a name.");return s=d({},l,n,s),e=new m(s),i=e.element(r),s.headless||(e.declaration(s),(s.pubID!=null||s.sysID!=null)&&e.dtd(s)),i},F.exports.begin=function(r,l,n){var s;return u(r)&&(s=[r,l],l=s[0],n=s[1],r={}),l?new g(r,l,n):new m(r)},F.exports.stringWriter=function(r){return new f(r)},F.exports.streamWriter=function(r,l){return new a(r,l)},F.exports.implementation=new I,F.exports.nodeType=w,F.exports.writerState=h}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(S,F,v){F.exports=h;var w=Object.prototype.hasOwnProperty;function h(){for(var I={},m=0;m<arguments.length;m++){var g=arguments[m];for(var a in g)w.call(g,a)&&(I[a]=g[a])}return I}},{}],284:[function(S,F,v){"use strict";var w=S("buffer").Buffer,h=S("./sha"),I=S("./md5"),m={sha1:h,md5:I},g=64,a=w.alloc(g);a.fill(0);function f(o,r,l){w.isBuffer(r)||(r=w.from(r)),w.isBuffer(l)||(l=w.from(l)),r.length>g?r=o(r):r.length<g&&(r=w.concat([r,a],g));for(var n=w.alloc(g),s=w.alloc(g),e=0;e<g;e++)n[e]=r[e]^54,s[e]=r[e]^92;var i=o(w.concat([n,l]));return o(w.concat([s,i]))}function d(o,r){o=o||"sha1";var l=m[o],n=[],s=0;return l||u("algorithm:",o,"is not yet supported"),{update:function(i){return w.isBuffer(i)||(i=w.from(i)),n.push(i),s+=i.length,this},digest:function(i){var _=w.concat(n),b=r?f(l,r,_):l(_);return n=null,i?b.toString(i):b}}}function u(){var o=[].slice.call(arguments).join(" ");throw new Error([o,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}v.createHash=function(o){return d(o)},v.createHmac=function(o,r){return d(o,r)},v.createCredentials=function(){u("sorry,createCredentials is not implemented yet")},v.createCipher=function(){u("sorry,createCipher is not implemented yet")},v.createCipheriv=function(){u("sorry,createCipheriv is not implemented yet")},v.createDecipher=function(){u("sorry,createDecipher is not implemented yet")},v.createDecipheriv=function(){u("sorry,createDecipheriv is not implemented yet")},v.createSign=function(){u("sorry,createSign is not implemented yet")},v.createVerify=function(){u("sorry,createVerify is not implemented yet")},v.createDiffieHellman=function(){u("sorry,createDiffieHellman is not implemented yet")},v.pbkdf2=function(){u("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(S,F,v){"use strict";var w=S("buffer").Buffer,h=4,I=w.alloc(h);I.fill(0);var m=8;function g(d,u){if(d.length%h!==0){var o=d.length+(h-d.length%h);d=w.concat([d,I],o)}for(var r=[],l=u?d.readInt32BE:d.readInt32LE,n=0;n<d.length;n+=h)r.push(l.call(d,n));return r}function a(d,u,o){for(var r=w.alloc(u),l=o?r.writeInt32BE:r.writeInt32LE,n=0;n<d.length;n++)l.call(r,d[n],n*4,!0);return r}function f(d,u,o,r){w.isBuffer(d)||(d=w.from(d));var l=u(g(d,r),d.length*m);return a(l,o,r)}F.exports={hash:f}},{buffer:73}],286:[function(S,F,v){"use strict";var w=S("./helpers");function h(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function I(r,l){r[l>>5]|=128<<l%32,r[(l+64>>>9<<4)+14]=l;for(var n=1732584193,s=-271733879,e=-1732584194,i=271733878,_=0;_<r.length;_+=16){var b=n,y=s,E=e,c=i;n=g(n,s,e,i,r[_+0],7,-680876936),i=g(i,n,s,e,r[_+1],12,-389564586),e=g(e,i,n,s,r[_+2],17,606105819),s=g(s,e,i,n,r[_+3],22,-1044525330),n=g(n,s,e,i,r[_+4],7,-176418897),i=g(i,n,s,e,r[_+5],12,1200080426),e=g(e,i,n,s,r[_+6],17,-1473231341),s=g(s,e,i,n,r[_+7],22,-45705983),n=g(n,s,e,i,r[_+8],7,1770035416),i=g(i,n,s,e,r[_+9],12,-1958414417),e=g(e,i,n,s,r[_+10],17,-42063),s=g(s,e,i,n,r[_+11],22,-1990404162),n=g(n,s,e,i,r[_+12],7,1804603682),i=g(i,n,s,e,r[_+13],12,-40341101),e=g(e,i,n,s,r[_+14],17,-1502002290),s=g(s,e,i,n,r[_+15],22,1236535329),n=a(n,s,e,i,r[_+1],5,-165796510),i=a(i,n,s,e,r[_+6],9,-1069501632),e=a(e,i,n,s,r[_+11],14,643717713),s=a(s,e,i,n,r[_+0],20,-373897302),n=a(n,s,e,i,r[_+5],5,-701558691),i=a(i,n,s,e,r[_+10],9,38016083),e=a(e,i,n,s,r[_+15],14,-660478335),s=a(s,e,i,n,r[_+4],20,-405537848),n=a(n,s,e,i,r[_+9],5,568446438),i=a(i,n,s,e,r[_+14],9,-1019803690),e=a(e,i,n,s,r[_+3],14,-187363961),s=a(s,e,i,n,r[_+8],20,1163531501),n=a(n,s,e,i,r[_+13],5,-1444681467),i=a(i,n,s,e,r[_+2],9,-51403784),e=a(e,i,n,s,r[_+7],14,1735328473),s=a(s,e,i,n,r[_+12],20,-1926607734),n=f(n,s,e,i,r[_+5],4,-378558),i=f(i,n,s,e,r[_+8],11,-2022574463),e=f(e,i,n,s,r[_+11],16,1839030562),s=f(s,e,i,n,r[_+14],23,-35309556),n=f(n,s,e,i,r[_+1],4,-1530992060),i=f(i,n,s,e,r[_+4],11,1272893353),e=f(e,i,n,s,r[_+7],16,-155497632),s=f(s,e,i,n,r[_+10],23,-1094730640),n=f(n,s,e,i,r[_+13],4,681279174),i=f(i,n,s,e,r[_+0],11,-358537222),e=f(e,i,n,s,r[_+3],16,-722521979),s=f(s,e,i,n,r[_+6],23,76029189),n=f(n,s,e,i,r[_+9],4,-640364487),i=f(i,n,s,e,r[_+12],11,-421815835),e=f(e,i,n,s,r[_+15],16,530742520),s=f(s,e,i,n,r[_+2],23,-995338651),n=d(n,s,e,i,r[_+0],6,-198630844),i=d(i,n,s,e,r[_+7],10,1126891415),e=d(e,i,n,s,r[_+14],15,-1416354905),s=d(s,e,i,n,r[_+5],21,-57434055),n=d(n,s,e,i,r[_+12],6,1700485571),i=d(i,n,s,e,r[_+3],10,-1894986606),e=d(e,i,n,s,r[_+10],15,-1051523),s=d(s,e,i,n,r[_+1],21,-2054922799),n=d(n,s,e,i,r[_+8],6,1873313359),i=d(i,n,s,e,r[_+15],10,-30611744),e=d(e,i,n,s,r[_+6],15,-1560198380),s=d(s,e,i,n,r[_+13],21,1309151649),n=d(n,s,e,i,r[_+4],6,-145523070),i=d(i,n,s,e,r[_+11],10,-1120210379),e=d(e,i,n,s,r[_+2],15,718787259),s=d(s,e,i,n,r[_+9],21,-343485551),n=u(n,b),s=u(s,y),e=u(e,E),i=u(i,c)}return Array(n,s,e,i)}function m(r,l,n,s,e,i){return u(o(u(u(l,r),u(s,i)),e),n)}function g(r,l,n,s,e,i,_){return m(l&n|~l&s,r,l,e,i,_)}function a(r,l,n,s,e,i,_){return m(l&s|n&~s,r,l,e,i,_)}function f(r,l,n,s,e,i,_){return m(l^n^s,r,l,e,i,_)}function d(r,l,n,s,e,i,_){return m(n^(l|~s),r,l,e,i,_)}function u(r,l){var n=(r&65535)+(l&65535),s=(r>>16)+(l>>16)+(n>>16);return s<<16|n&65535}function o(r,l){return r<<l|r>>>32-l}F.exports=function(l){return w.hash(l,I,16)}},{"./helpers":285}],287:[function(S,F,v){"use strict";var w=S("./helpers");function h(f,d){f[d>>5]|=128<<24-d%32,f[(d+64>>9<<4)+15]=d;for(var u=Array(80),o=1732584193,r=-271733879,l=-1732584194,n=271733878,s=-1009589776,e=0;e<f.length;e+=16){for(var i=o,_=r,b=l,y=n,E=s,c=0;c<80;c++){c<16?u[c]=f[e+c]:u[c]=a(u[c-3]^u[c-8]^u[c-14]^u[c-16],1);var C=g(g(a(o,5),I(c,r,l,n)),g(g(s,u[c]),m(c)));s=n,n=l,l=a(r,30),r=o,o=C}o=g(o,i),r=g(r,_),l=g(l,b),n=g(n,y),s=g(s,E)}return Array(o,r,l,n,s)}function I(f,d,u,o){return f<20?d&u|~d&o:f<40?d^u^o:f<60?d&u|d&o|u&o:d^u^o}function m(f){return f<20?1518500249:f<40?1859775393:f<60?-1894007588:-899497514}function g(f,d){var u=(f&65535)+(d&65535),o=(f>>16)+(d>>16)+(u>>16);return o<<16|u&65535}function a(f,d){return f<<d|f>>>32-d}F.exports=function(d){return w.hash(d,h,20,!0)}},{"./helpers":285}],288:[function(S,F,v){"use strict";F.exports=function(){return function(){}}},{}],289:[function(S,F,v){(function(w){"use strict";var h=S("babel-runtime/helpers/typeof"),I=m(h);function m(o){return o&&o.__esModule?o:{default:o}}var g=S("stream"),a=g.Stream,f=S("../lib/common/utils/isArray"),d=f.isArray;F.exports.string=function(r){return typeof r=="string"},F.exports.array=d,F.exports.buffer=w.isBuffer;function u(o){return o instanceof a}F.exports.writableStream=function(r){return u(r)&&typeof r._write=="function"&&(0,I.default)(r._writableState)==="object"}}).call(this,{isBuffer:S("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(S,F,v){"use strict";v.encodeURIComponent=function(w){try{return encodeURIComponent(w)}catch(h){return w}},v.escape=S("escape-html"),v.timestamp=function(h){if(h){var I=h;return typeof I=="string"&&(I=Number(I)),String(h).length===10&&(I*=1e3),new Date(I)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(S,F,v){(function(w,h){"use strict";var I=S("babel-runtime/core-js/json/stringify"),m=f(I),g=S("babel-runtime/helpers/typeof"),a=f(g);function f(c){return c&&c.__esModule?c:{default:c}}var d=S("util"),u=S("url"),o=S("http"),r=S("https"),l=S("debug")("urllib"),n=S("humanize-ms"),s,e=0,i=Math.pow(2,31)-10,_=/^https?:\/\//i;function b(c,C){return c===void 0?C:c}function y(c,C){return function(x,M,k){if(x)return C(x);c({data:M,status:k.statusCode,headers:k.headers,res:k})}}v.TIMEOUTS=[n("300s"),n("300s")];var E=["json","text"];v.request=function(C,x,M){return arguments.length===2&&typeof x=="function"&&(M=x,x=null),typeof M=="function"?v.requestWithCallback(C,x,M):(s||(s=S("any-promise")),new s(function(k,T){v.requestWithCallback(C,x,y(k,T))}))},v.requestWithCallback=function(C,x,M){if(!C||typeof C!="string"&&(typeof C=="undefined"?"undefined":(0,a.default)(C))!=="object"){var k=d.format("expect request url to be a string or a http request options, but got %j",C);throw new Error(k)}arguments.length===2&&typeof x=="function"&&(M=x,x=null),x=x||{},e>=i&&(e=0);var T=++e;x.requestUrls=x.requestUrls||[];var R={requestId:T,url:C,args:x,ctx:x.ctx};x.emitter&&x.emitter.emit("request",R),x.timeout=x.timeout||v.TIMEOUTS,x.maxRedirects=x.maxRedirects||10,x.streaming=x.streaming||x.customResponse;var P=Date.now(),B;typeof C=="string"?(_.test(C)||(C="http://"+C),B=u.parse(C)):B=C;var W=(x.type||x.method||B.method||"GET").toUpperCase(),z=B.port||80,H=o,ee=b(x.agent,v.agent),G=x.fixJSONCtlChars;B.protocol==="https:"&&(H=r,ee=b(x.httpsAgent,v.httpsAgent),B.port||(z=443));var U={host:B.hostname||B.host||"localhost",path:B.path||"/",method:W,port:z,agent:ee,headers:x.headers||{},lookup:x.lookup};Array.isArray(x.timeout)?U.requestTimeout=x.timeout[x.timeout.length-1]:typeof x.timeout!="undefined"&&(U.requestTimeout=x.timeout);for(var K=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],L=0;L<K.length;L++){var D=K[L];x.hasOwnProperty(D)&&(U[D]=x[D])}U.rejectUnauthorized===!1&&!U.hasOwnProperty("secureOptions")&&(U.secureOptions=S("constants").SSL_OP_NO_TLSv1_2);var j=x.auth||B.auth;j&&(U.auth=j);var Z=x.content||x.data,ie=W==="GET"||W==="HEAD"||x.dataAsQueryString;if(!x.content&&(Z&&!(typeof Z=="string"||h.isBuffer(Z))))if(ie)Z=x.nestedQuerystring?qs.stringify(Z):querystring.stringify(Z);else{var pe=U.headers["Content-Type"]||U.headers["content-type"];pe||(x.contentType==="json"?pe="application/json":pe="application/x-www-form-urlencoded",U.headers["Content-Type"]=pe),parseContentType(pe).type==="application/json"?Z=(0,m.default)(Z):Z=x.nestedQuerystring?qs.stringify(Z):querystring.stringify(Z)}ie&&Z&&(U.path+=(B.query?"&":"?")+Z,Z=null);var Ee=0;if(Z){var De=Z.length;h.isBuffer(Z)||(De=h.byteLength(Z)),Ee=U.headers["Content-Length"]=De}x.dataType==="json"&&(U.headers.Accept="application/json"),typeof x.beforeRequest=="function"&&x.beforeRequest(U);var q=null,be=null,ye=null,le=!1,ue=!1,ne=0,xe=-1,$=!1,oe="",Le="",te=null;x.timing&&(te={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Y(){q&&(clearTimeout(q),q=null)}function X(){be&&(clearTimeout(be),be=null)}function J(Xe,Bt,Ae){if(X(),!M){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),T,w.pid,U.method,C),Xe&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),T,w.pid,Xe.name,Xe.message,Xe.stack);return}var We=M;M=null;var dt={};if(Ae&&(xe=Ae.statusCode,dt=Ae.headers),xe===401&&dt["www-authenticate"]&&(!x.headers||!x.headers.Authorization)&&x.digestAuth){var Ge=dt["www-authenticate"];if(Ge.indexOf("Digest ")>=0)return l("Request#%d %s: got digest auth header WWW-Authenticate: %s",T,C,Ge),x.headers=x.headers||{},x.headers.Authorization=digestAuthHeader(U.method,U.path,Ge,x.digestAuth),l("Request#%d %s: auth with digest header: %s",T,C,x.headers.Authorization),Ae.headers["set-cookie"]&&(x.headers.Cookie=Ae.headers["set-cookie"].join(";")),v.requestWithCallback(C,x,We)}var je=Date.now()-P;te&&(te.contentDownload=je),l("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",je,ne,xe,U.method,U.host,U.path,ue,te);var Fe={status:xe,statusCode:xe,headers:dt,size:ne,aborted:$,rt:je,keepAliveSocket:ue,data:Bt,requestUrls:x.requestUrls,timing:te,remoteAddress:oe,remotePort:Le};if(Xe){var ce="";ee&&typeof ee.getCurrentStatus=="function"&&(ce=", agent status: "+(0,m.default)(ee.getCurrentStatus())),Xe.message+=", "+U.method+" "+C+" "+xe+" (connected: "+le+", keepalive socket: "+ue+ce+`)
headers: `+(0,m.default)(dt),Xe.data=Bt,Xe.path=U.path,Xe.status=xe,Xe.headers=dt,Xe.res=Fe}We(Xe,Bt,x.streaming?Ae:Fe),x.emitter&&(R.url=C,R.socket=ft&&ft.connection,R.options=U,R.size=Ee,x.emitter.emit("response",{requestId:T,error:Xe,ctx:x.ctx,req:R,res:Fe}))}function ve(Xe){var Bt=null;if(x.followRedirect&&statuses.redirect[Xe.statusCode]){x._followRedirectCount=(x._followRedirectCount||0)+1;var Ae=Xe.headers.location;if(!Ae)Bt=new Error("Got statusCode "+Xe.statusCode+" but cannot resolve next location from headers"),Bt.name="FollowRedirectError";else if(x._followRedirectCount>x.maxRedirects)Bt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+C),Bt.name="MaxRedirectError";else{var We=x.formatRedirectUrl?x.formatRedirectUrl(C,Ae):u.resolve(C,Ae);l("Request#%d %s: `redirected` from %s to %s",T,U.path,C,We),X(),x.headers&&x.headers.Host&&_.test(Ae)&&(x.headers.Host=null);var dt=M;return M=null,v.requestWithCallback(We,x,dt),{redirect:!0,error:null}}}return{redirect:!1,error:Bt}}!U.headers["User-Agent"]&&!U.headers["user-agent"]&&(U.headers["User-Agent"]=navigator.userAgent),x.gzip&&(!U.headers["Accept-Encoding"]&&!U.headers["accept-encoding"]&&(U.headers["Accept-Encoding"]="gzip"));function he(Xe,Bt,Ae){var We=Xe.headers["content-encoding"];return Ae(null,Bt,We)}var Ce=x.writeStream;l("Request#%d %s %s with headers %j, options.path: %s",T,W,C,U.headers,U.path),x.requestUrls.push(C);function Pe(Xe){if(te&&(te.waiting=Date.now()-P),l("Request#%d %s `req response` event emit: status %d, headers: %j",T,C,Xe.statusCode,Xe.headers),x.streaming){var Bt=ve(Xe);if(Bt.redirect){Xe.resume();return}return Bt.error?(Xe.resume(),J(Bt.error,null,Xe)):J(null,null,Xe)}if(Xe.on("close",function(){l("Request#%d %s: `res close` event emit, total size %d",T,C,ne)}),Xe.on("error",function(){l("Request#%d %s: `res error` event emit, total size %d",T,C,ne)}),Xe.on("aborted",function(){$=!0,l("Request#%d %s: `res aborted` event emit, total size %d",T,C,ne)}),Ce){var Bt=ve(Xe);if(Bt.redirect){Xe.resume();return}return Bt.error?(Xe.resume(),Ce.end(),J(Bt.error,null,Xe)):(x.consumeWriteStream===!1?Xe.on("end",J.bind(null,null,null,Xe)):isNode010||isNode012?first([[Ce,"close"],[Xe,"aborted"]],function(dt,Ge,je){l("Request#%d %s: writeStream or res %s event emitted",T,C,je),J(ye||null,null,Xe)}):Ce.on("close",function(){l("Request#%d %s: writeStream close event emitted",T,C),J(ye||null,null,Xe)}),Xe.pipe(Ce))}var Ae=[];Xe.on("data",function(We){l("Request#%d %s: `res data` event emit, size %d",T,C,We.length),ne+=We.length,Ae.push(We)}),Xe.on("end",function(){var We=h.concat(Ae,ne);if(l("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",T,C,ne,Xe._dumped),ye)return J(ye,We,Xe);var dt=ve(Xe);if(dt.error)return J(dt.error,We,Xe);if(dt.redirect)return;he(Xe,We,function(Ge,je,Fe){if(Ge)return J(Ge,We,Xe);if(!Fe&&E.indexOf(x.dataType)>=0){try{je=decodeBodyByCharset(je,Xe)}catch(we){return l("decodeBodyByCharset error: %s",we),J(null,je,Xe)}if(x.dataType==="json")if(ne===0)je=null;else{var ce=parseJSON(je,G);ce.error?Ge=ce.error:je=ce.data}}$&&l("Request#%d %s: Remote socket was terminated before `response.end()` was called",T,C),J(Ge,je,Xe)})})}var de,ke;Array.isArray(x.timeout)?(de=n(x.timeout[0]),ke=n(x.timeout[1])):de=ke=n(x.timeout),l("ConnectTimeout: %d, ResponseTimeout: %d",de,ke);function me(){l("Connect timer ticking, timeout: %d",de),q=setTimeout(function(){q=null,xe===-1&&(xe=-2);var Xe="Connect timeout for "+de+"ms",Bt="ConnectionTimeoutError";ft.socket||(Bt="SocketAssignTimeoutError",Xe+=", working sockets is full"),ye=new Error(Xe),ye.name=Bt,ye.requestId=T,l("ConnectTimeout: Request#%d %s %s: %s, connected: %s",T,C,ye.name,Xe,le),vt()},de)}function Be(){l("Response timer ticking, timeout: %d",ke),be=setTimeout(function(){be=null;var Xe="Response timeout for "+ke+"ms",Bt="ResponseTimeoutError";ye=new Error(Xe),ye.name=Bt,ye.requestId=T,l("ResponseTimeout: Request#%d %s %s: %s, connected: %s",T,C,ye.name,Xe,le),vt()},ke)}var ft;U.mode=x.mode?x.mode:"";try{ft=H.request(U,Pe)}catch(Xe){return J(Xe)}typeof window=="undefined"?me():ft.on("requestTimeout",function(){xe===-1&&(xe=-2);var Xe="Connect timeout for "+de+"ms",Bt="ConnectionTimeoutError";ye=new Error(Xe),ye.name=Bt,ye.requestId=T,vt()});function vt(){l("Request#%d %s abort, connected: %s",T,C,le),ft.socket||(ye.noSocket=!0,J(ye)),ft.abort()}return te&&ft.on("finish",function(){te.requestSent=Date.now()-P}),ft.once("socket",function(Xe){te&&(te.queuing=Date.now()-P),isNode010&&Xe.socket&&(Xe=Xe.socket);var Bt=Xe.readyState;if(Bt==="opening"){Xe.once("lookup",function(Ae,We,dt){l("Request#%d %s lookup: %s, %s, %s",T,C,Ae,We,dt),te&&(te.dnslookup=Date.now()-P),We&&(oe=We)}),Xe.once("connect",function(){te&&(te.connected=Date.now()-P),Y(),Be(),l("Request#%d %s new socket connected",T,C),le=!0,oe||(oe=Xe.remoteAddress),Le=Xe.remotePort});return}l("Request#%d %s reuse socket connected, readyState: %s",T,C,Bt),le=!0,ue=!0,oe||(oe=Xe.remoteAddress),Le=Xe.remotePort,Y(),Be()}),ft.on("error",function(Xe){(Xe.name==="Error"||Xe.name==="TypeError")&&(Xe.name=le?"ResponseError":"RequestError"),Xe.message+=' (req "error")',l("Request#%d %s `req error` event emit, %s: %s",T,C,Xe.name,Xe.message),J(ye||Xe)}),Ce&&Ce.once("error",function(Xe){Xe.message+=' (writeStream "error")',ye=Xe,l("Request#%d %s `writeStream error` event emit, %s: %s",T,C,Xe.name,Xe.message),vt()}),x.stream?(x.stream.pipe(ft),x.stream.once("error",function(Xe){Xe.message+=' (stream "error")',ye=Xe,l("Request#%d %s `readStream error` event emit, %s: %s",T,C,Xe.name,Xe.message),vt()})):ft.end(Z),ft.requestId=T,ft}}).call(this,S("_process"),S("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("IyRk"))},n0Id:function(S,F,v){S.exports=v.p+"static/disappoint2.7a4bdf92.svg"},n6Qo:function(S,F,v){"use strict";v.d(F,"a",function(){return d});var w=v("cDcd"),h=v("biw7"),I=v("fyJ8");function m(u){var o=u.className,r=u.index,l=u.children,n=u.colSpan,s=u.rowSpan,e=w.useContext(h.a),i=e.prefixCls,_=e.fixedInfoList,b=_[r];return w.createElement(I.a,Object.assign({className:o,index:r,component:"td",prefixCls:i,record:null,dataIndex:null,render:function(){return{children:l,props:{colSpan:n,rowSpan:s}}}},b))}function g(u){return w.createElement("tr",Object.assign({},u))}function a(u){var o=u.children,r=w.useContext(h.a),l=r.prefixCls;return w.createElement("tfoot",{className:"".concat(l,"-summary")},o)}var f=F.b=a,d={Cell:m,Row:g}},nKGa:function(S,F,v){S.exports=v.p+"static/export_exercise-template.f7655c19.png"},nWbc:function(S,F,v){},nukY:function(S,F){S.exports="data:image/png;base64,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"},oRuE:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("OLod"))})(this,function(w){return w.pad.Iso10126={pad:function(h,I){var m=I*4,g=m-h.sigBytes%m;h.concat(w.lib.WordArray.random(g-1)).concat(w.lib.WordArray.create([g<<24],1))},unpad:function(h){var I=h.words[h.sigBytes-1>>>2]&255;h.sigBytes-=I}},w.pad.Iso10126})},onxn:function(S,F){S.exports="data:image/png;base64,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"},osHv:function(S,F,v){(function(w){w(v("VrN/"))})(function(w){"use strict";var h=w.Pos;function I(_,b){return _.line-b.line||_.ch-b.ch}var m="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",g=m+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",a=new RegExp("<(/?)(["+m+"]["+g+"]*)","g");function f(_,b,y,E){this.line=b,this.ch=y,this.cm=_,this.text=_.getLine(b),this.min=E?Math.max(E.from,_.firstLine()):_.firstLine(),this.max=E?Math.min(E.to-1,_.lastLine()):_.lastLine()}function d(_,b){var y=_.cm.getTokenTypeAt(h(_.line,b));return y&&/\btag\b/.test(y)}function u(_){return _.line>=_.max?void 0:(_.ch=0,_.text=_.cm.getLine(++_.line),!0)}function o(_){return _.line<=_.min?void 0:(_.text=_.cm.getLine(--_.line),_.ch=_.text.length,!0)}function r(_){for(;;){var b=_.text.indexOf(">",_.ch);if(b==-1){if(u(_))continue;return}if(!d(_,b+1)){_.ch=b+1;continue}var y=_.text.lastIndexOf("/",b),E=y>-1&&!/\S/.test(_.text.slice(y+1,b));return _.ch=b+1,E?"selfClose":"regular"}}function l(_){for(;;){var b=_.ch?_.text.lastIndexOf("<",_.ch-1):-1;if(b==-1){if(o(_))continue;return}if(!d(_,b+1)){_.ch=b;continue}a.lastIndex=b,_.ch=b;var y=a.exec(_.text);if(y&&y.index==b)return y}}function n(_){for(;;){a.lastIndex=_.ch;var b=a.exec(_.text);if(!b){if(u(_))continue;return}if(!d(_,b.index+1)){_.ch=b.index+1;continue}return _.ch=b.index+b[0].length,b}}function s(_){for(;;){var b=_.ch?_.text.lastIndexOf(">",_.ch-1):-1;if(b==-1){if(o(_))continue;return}if(!d(_,b+1)){_.ch=b;continue}var y=_.text.lastIndexOf("/",b),E=y>-1&&!/\S/.test(_.text.slice(y+1,b));return _.ch=b+1,E?"selfClose":"regular"}}function e(_,b){for(var y=[];;){var E=n(_),c,C=_.line,x=_.ch-(E?E[0].length:0);if(!E||!(c=r(_)))return;if(c=="selfClose")continue;if(E[1]){for(var M=y.length-1;M>=0;--M)if(y[M]==E[2]){y.length=M;break}if(M<0&&(!b||b==E[2]))return{tag:E[2],from:h(C,x),to:h(_.line,_.ch)}}else y.push(E[2])}}function i(_,b){for(var y=[];;){var E=s(_);if(!E)return;if(E=="selfClose"){l(_);continue}var c=_.line,C=_.ch,x=l(_);if(!x)return;if(x[1])y.push(x[2]);else{for(var M=y.length-1;M>=0;--M)if(y[M]==x[2]){y.length=M;break}if(M<0&&(!b||b==x[2]))return{tag:x[2],from:h(_.line,_.ch),to:h(c,C)}}}}w.registerHelper("fold","xml",function(_,b){for(var y=new f(_,b.line,0);;){var E=n(y);if(!E||y.line!=b.line)return;var c=r(y);if(!c)return;if(!E[1]&&c!="selfClose"){var C=h(y.line,y.ch),x=e(y,E[2]);return x&&I(x.from,C)>0?{from:C,to:x.from}:null}}}),w.findMatchingTag=function(_,b,y){var E=new f(_,b.line,b.ch,y);if(E.text.indexOf(">")==-1&&E.text.indexOf("<")==-1)return;var c=r(E),C=c&&h(E.line,E.ch),x=c&&l(E);if(!c||!x||I(E,b)>0)return;var M={from:h(E.line,E.ch),to:C,tag:x[2]};return c=="selfClose"?{open:M,close:null,at:"open"}:x[1]?{open:i(E,x[2]),close:M,at:"close"}:(E=new f(_,C.line,C.ch,y),{open:M,close:e(E,x[2]),at:"open"})},w.findEnclosingTag=function(_,b,y,E){for(var c=new f(_,b.line,b.ch,y);;){var C=i(c,E);if(!C)break;var x=new f(_,b.line,b.ch,y),M=e(x,C.tag);if(M)return{open:C,close:M}}},w.scanForClosingTag=function(_,b,y,E){var c=new f(_,b.line,b.ch,E?{from:0,to:E}:null);return e(c,y)}})},p4vh:function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAAA8CAMAAADygAyiAAAAaVBMVEUAAAD/vwD/vwD/ugD/ugD/uwD/vAD8vAP8ugP9uwL9uwL9uwL9ugL9ugL9ugL8uwP8uwP8ugP9ugL9ugL9ugL9uwL9uwL9uwL9uwP9zkn+1WT+34r+45n/7bz/8s//9+D/+/D//fj///8yardZAAAAGHRSTlMAECAwP0BQX2BwgI+Qn6Cwv8DP0N/g7/D8rFP8AAABpUlEQVRYw+3XwXKDIBAG4AVKoiRBDSq0adrG93/ImphSWwV2jYce+t+SGb5RWBcAmEQeji6acicgHVE6RA4s5cjWoVInHkognV6KP1Pt0NExJ3OE8AhUUKB9BKI4rpoM3+7KWzaMBLWwGcbttsNC+QlWcn7Eqesz8z+ocTHw7wUPQKdLEnItB+3i0PO569JQXwxtFHo5f3QoqB4v1BR663wSkItD738O6vN6WQlyZyRk1oGq8Xf6CFSMO8cjUAbMrgHZvl+qNSDVf/3MT7cSSyFza+DcepYEGQ/Ze9cVzSKo+oIavzUxfYeaJZAeb0xC2ytUUKD9FbJ6slMKySGnQBK4DO23ggJFd1qLh4oopPBQFoU4GmoSxxqNhbIExJHbbJM8aSkcJNNnv+rRk4h/OZt2DAPMcdSu46Qli3RSkhGADovMuGZASagK7AaI4XqOUQzo4ftfDdPkS5jByr1lssXKzzpXAP/QpLyfrvGXycPtJyczMnDhOgri44RvILQqiNy3aJPVUm5XsOziRoOaMFSQIB2GchLEgj3SEOuI6dm3M8E1+wTzvvO4HPYw7wAAAABJRU5ErkJggg=="},p5ED:function(S,F,v){"use strict";var w=v("+L6B"),h=v("2/Rp"),I=v("5Dmo"),m=v("3S7+"),g=v("k1fw"),a=v("tJVT"),f=v("cDcd"),d=v.n(f),u=v("vHTk"),o=v.n(u),r=v("yEEn"),l=v("ZW9T"),n=v("1vsH");F.a=function(s){var e=s.name,i=s.data,_=s.theme,b=s.type,y=s.filename,E=s.monacoEditor,c=s.className,C=s.style,x=s.close,M=s.onClose,k=s.hasMask,T=Object(f.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),R=Object(a.a)(T,2),P=R[0],B=R[1],W=Object(f.useState)(""),z=Object(a.a)(W,2),H=z[0],ee=z[1],G,U=1024*1024,K=10*U,L=Object(f.useRef)();b==="office"&&(G=Object(n.x)(i).filesize,G>K&&(b="other")),y&&(E.filename=y),Object(f.useEffect)(function(){var Z,ie,pe=(Z=document.cookie)===null||Z===void 0||((ie=Z.replace(/\s/g,""))===null||ie===void 0)?void 0:ie.split(";");pe==null||pe.map(function(Ee){var De=Ee.split("=");De[0]==="_educoder_session"&&ee(De[1])})},[]);var D=function(){if(i.startsWith("http")||i.startsWith("/")){j();return}Object(n.j)(y||"educoder",i,y)},j=function(){Object(n.h)(y||e,i)};return console.log("data:",i,"fileanme:",y," name:",e),d.a.createElement("div",{style:Object(g.a)({},C||{}),className:"".concat(k&&o.a.bgBlack," ").concat(b?o.a.wrp:"hide")},x&&d.a.createElement("div",{className:o.a.close,ref:L},d.a.createElement(m.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return L.current}},d.a.createElement("span",{onClick:j},d.a.createElement("i",{className:"icon-quxiaozhiding"}))),d.a.createElement(m.a,{title:"\u5173\u95ED",getPopupContainer:function(){return L.current}},d.a.createElement("span",{className:"",onClick:M},d.a.createElement("i",{className:"icon-guanbi1"})))),d.a.createElement("div",{className:"".concat(o.a[c]," ").concat(c," ").concat(o.a.monaco," ").concat(b==="txt"?"show":"hide")},b==="txt"&&d.a.createElement(l.a,E)),b==="audio"&&d.a.createElement("audio",{src:"".concat(i!=null&&i.startsWith("/")||(i==null?void 0:i.indexOf("https://"))>-1?i:"data:audio/mp3;base64,").concat(i),autoPlay:!0}),b==="video"&&d.a.createElement(d.a.Fragment,null,i!=null&&i.startsWith("/")?d.a.createElement("video",{controls:!0,src:"".concat(i),autoPlay:!0}):d.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(i),autoPlay:!0})),b==="html"&&d.a.createElement("iframe",{src:i+"&disposition=inline"}),b==="pdf"&&d.a.createElement("embed",{className:o.a.embed,src:i}),b==="image"&&d.a.createElement(d.a.Fragment,null,d.a.createElement("img",{src:"".concat(i!=null&&i.startsWith("/")||(i==null?void 0:i.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(i)})),b==="other"&&d.a.createElement("div",null,d.a.createElement(h.a,{type:"primary",size:"large",onClick:D},d.a.createElement(r.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(b==="download"||b==="office")&&d.a.createElement(h.a,{type:"primary",size:"large",onClick:D},d.a.createElement(r.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(S,F,v){},pA7S:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("ETIr"),v("cv67"),v("K3mO"),v("OLod"))})(this,function(w){return function(){var h=w,I=h.lib,m=I.WordArray,g=I.BlockCipher,a=h.algo,f=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],d=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],o=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],r=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],l=a.DES=g.extend({_doReset:function(){for(var i=this._key,_=i.words,b=[],y=0;y<56;y++){var E=f[y]-1;b[y]=_[E>>>5]>>>31-E%32&1}for(var c=this._subKeys=[],C=0;C<16;C++){for(var x=c[C]=[],M=u[C],y=0;y<24;y++)x[y/6|0]|=b[(d[y]-1+M)%28]<<31-y%6,x[4+(y/6|0)]|=b[28+(d[y+24]-1+M)%28]<<31-y%6;x[0]=x[0]<<1|x[0]>>>31;for(var y=1;y<7;y++)x[y]=x[y]>>>(y-1)*4+3;x[7]=x[7]<<5|x[7]>>>27}for(var k=this._invSubKeys=[],y=0;y<16;y++)k[y]=c[15-y]},encryptBlock:function(i,_){this._doCryptBlock(i,_,this._subKeys)},decryptBlock:function(i,_){this._doCryptBlock(i,_,this._invSubKeys)},_doCryptBlock:function(i,_,b){this._lBlock=i[_],this._rBlock=i[_+1],n.call(this,4,252645135),n.call(this,16,65535),s.call(this,2,858993459),s.call(this,8,16711935),n.call(this,1,1431655765);for(var y=0;y<16;y++){for(var E=b[y],c=this._lBlock,C=this._rBlock,x=0,M=0;M<8;M++)x|=o[M][((C^E[M])&r[M])>>>0];this._lBlock=C,this._rBlock=c^x}var k=this._lBlock;this._lBlock=this._rBlock,this._rBlock=k,n.call(this,1,1431655765),s.call(this,8,16711935),s.call(this,2,858993459),n.call(this,16,65535),n.call(this,4,252645135),i[_]=this._lBlock,i[_+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function n(i,_){var b=(this._lBlock>>>i^this._rBlock)&_;this._rBlock^=b,this._lBlock^=b<<i}function s(i,_){var b=(this._rBlock>>>i^this._lBlock)&_;this._lBlock^=b,this._rBlock^=b<<i}h.DES=g._createHelper(l);var e=a.TripleDES=g.extend({_doReset:function(){var i=this._key,_=i.words;if(_.length!==2&&_.length!==4&&_.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var b=_.slice(0,2),y=_.length<4?_.slice(0,2):_.slice(2,4),E=_.length<6?_.slice(0,2):_.slice(4,6);this._des1=l.createEncryptor(m.create(b)),this._des2=l.createEncryptor(m.create(y)),this._des3=l.createEncryptor(m.create(E))},encryptBlock:function(i,_){this._des1.encryptBlock(i,_),this._des2.decryptBlock(i,_),this._des3.encryptBlock(i,_)},decryptBlock:function(i,_){this._des3.decryptBlock(i,_),this._des2.encryptBlock(i,_),this._des1.decryptBlock(i,_)},keySize:192/32,ivSize:64/32,blockSize:64/32});h.TripleDES=g._createHelper(e)}(),w.TripleDES})},popq:function(S,F,v){},psGv:function(S,F,v){var w,h;(function(){var I;(function(){"use strict";var f=[,,function(r){function l(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}l.prototype.clone_empty=function(){var e=new l(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},l.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},l.prototype.has_match=function(e){for(var i=this.__items.length-1;i>=0;i--)if(this.__items[i].match(e))return!0;return!1},l.prototype.set_indent=function(e,i){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},l.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},l.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},l.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,e.__items[0]===" "&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},l.prototype.is_empty=function(){return this.__items.length===0},l.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},l.prototype.push=function(e){this.__items.push(e);var i=e.lastIndexOf(`
`);i!==-1?this.__character_count=e.length-i:this.__character_count+=e.length},l.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},l.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},l.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},l.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},l.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e};function n(e,i){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),i=i||"",e.indent_level>0&&(i=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}n.prototype.get_indent_size=function(e,i){var _=this.__base_string_length;return i=i||0,e<0&&(_=0),_+=e*this.__indent_size,_+=i,_},n.prototype.get_indent_string=function(e,i){var _=this.__base_string;return i=i||0,e<0&&(e=0,_=""),i+=e*this.__indent_size,this.__ensure_cache(i),_+=this.__cache[i],_},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,i=0,_="";this.__indent_size&&e>=this.__indent_size&&(i=Math.floor(e/this.__indent_size),e-=i*this.__indent_size,_=new Array(i+1).join(this.__indent_string)),e&&(_+=new Array(e+1).join(" ")),this.__cache.push(_)};function s(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new l(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}s.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},s.prototype.get_line_number=function(){return this.__lines.length},s.prototype.get_indent_string=function(e,i){return this.__indent_cache.get_indent_string(e,i)},s.prototype.get_indent_size=function(e,i){return this.__indent_cache.get_indent_size(e,i)},s.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},s.prototype.add_new_line=function(e){return this.is_empty()||!e&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},s.prototype.get_code=function(e){this.trim(!0);var i=this.current_line.pop();i&&(i[i.length-1]===`
`&&(i=i.replace(/\n+$/g,"")),this.current_line.push(i)),this._end_with_newline&&this.__add_outputline();var _=this.__lines.join(`
`);return e!==`
`&&(_=_.replace(/[\n]/g,e)),_},s.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},s.prototype.set_indent=function(e,i){return e=e||0,i=i||0,this.next_line.set_indent(e,i),this.__lines.length>1?(this.current_line.set_indent(e,i),!0):(this.current_line.set_indent(),!1)},s.prototype.add_raw_token=function(e){for(var i=0;i<e.newlines;i++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},s.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},s.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},s.prototype.remove_indent=function(e){for(var i=this.__lines.length;e<i;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},s.prototype.trim=function(e){for(e=e===void 0?!1:e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},s.prototype.just_added_newline=function(){return this.current_line.is_empty()},s.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},s.prototype.ensure_empty_line_above=function(e,i){for(var _=this.__lines.length-2;_>=0;){var b=this.__lines[_];if(b.is_empty())break;if(b.item(0).indexOf(e)!==0&&b.item(-1)!==i){this.__lines.splice(_+1,0,new l(this)),this.previous_line=this.__lines[this.__lines.length-2];break}_--}},r.exports.Output=s},function(r){function l(n,s,e,i){this.type=n,this.text=s,this.comments_before=null,this.newlines=e||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}r.exports.Token=l},,,function(r){function l(e,i){this.raw_options=n(e,i),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}l.prototype._get_array=function(e,i){var _=this.raw_options[e],b=i||[];return typeof _=="object"?_!==null&&typeof _.concat=="function"&&(b=_.concat()):typeof _=="string"&&(b=_.split(/[^a-zA-Z0-9_\/\-]+/)),b},l.prototype._get_boolean=function(e,i){var _=this.raw_options[e],b=_===void 0?!!i:!!_;return b},l.prototype._get_characters=function(e,i){var _=this.raw_options[e],b=i||"";return typeof _=="string"&&(b=_.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),b},l.prototype._get_number=function(e,i){var _=this.raw_options[e];i=parseInt(i,10),isNaN(i)&&(i=0);var b=parseInt(_,10);return isNaN(b)&&(b=i),b},l.prototype._get_selection=function(e,i,_){var b=this._get_selection_list(e,i,_);if(b.length!==1)throw new Error("Invalid Option Value: The option '"+e+`' can only be one of the following values:
`+i+`
You passed in: '`+this.raw_options[e]+"'");return b[0]},l.prototype._get_selection_list=function(e,i,_){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(_=_||[i[0]],!this._is_valid_selection(_,i))throw new Error("Invalid Default Value!");var b=this._get_array(e,_);if(!this._is_valid_selection(b,i))throw new Error("Invalid Option Value: The option '"+e+`' can contain only the following values:
`+i+`
You passed in: '`+this.raw_options[e]+"'");return b},l.prototype._is_valid_selection=function(e,i){return e.length&&i.length&&!e.some(function(_){return i.indexOf(_)===-1})};function n(e,i){var _={};e=s(e);var b;for(b in e)b!==i&&(_[b]=e[b]);if(i&&e[i])for(b in e[i])_[b]=e[i][b];return _}function s(e){var i={},_;for(_ in e){var b=_.replace(/-/g,"_");i[b]=e[_]}return i}r.exports.Options=l,r.exports.normalizeOpts=s,r.exports.mergeOpts=n},,function(r){var l=RegExp.prototype.hasOwnProperty("sticky");function n(s){this.__input=s||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var s=null;return this.hasNext()&&(s=this.__input.charAt(this.__position),this.__position+=1),s},n.prototype.peek=function(s){var e=null;return s=s||0,s+=this.__position,s>=0&&s<this.__input_length&&(e=this.__input.charAt(s)),e},n.prototype.__match=function(s,e){s.lastIndex=e;var i=s.exec(this.__input);return i&&!(l&&s.sticky)&&(i.index!==e&&(i=null)),i},n.prototype.test=function(s,e){return e=e||0,e+=this.__position,e>=0&&e<this.__input_length?!!this.__match(s,e):!1},n.prototype.testChar=function(s,e){var i=this.peek(e);return s.lastIndex=0,i!==null&&s.test(i)},n.prototype.match=function(s){var e=this.__match(s,this.__position);return e?this.__position+=e[0].length:e=null,e},n.prototype.read=function(s,e,i){var _="",b;return s&&(b=this.match(s),b&&(_+=b[0])),e&&(b||!s)&&(_+=this.readUntil(e,i)),_},n.prototype.readUntil=function(s,e){var i="",_=this.__position;s.lastIndex=this.__position;var b=s.exec(this.__input);return b?(_=b.index,e&&(_+=b[0].length)):_=this.__input_length,i=this.__input.substring(this.__position,_),this.__position=_,i},n.prototype.readUntilAfter=function(s){return this.readUntil(s,!0)},n.prototype.get_regexp=function(s,e){var i=null,_="g";return e&&l&&(_="y"),typeof s=="string"&&s!==""?i=new RegExp(s,_):s&&(i=new RegExp(s.source,_)),i},n.prototype.get_literal_regexp=function(s){return RegExp(s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(s){var e=this.__position,i=this.readUntilAfter(s);return this.__position=e,i},n.prototype.lookBack=function(s){var e=this.__position-1;return e>=s.length&&this.__input.substring(e-s.length,e).toLowerCase()===s},r.exports.InputScanner=n},function(r,l,n){var s=n(8).InputScanner,e=n(3).Token,i=n(10).TokenStream,_=n(11).WhitespacePattern,b={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},y=function(E,c){this._input=new s(E),this._options=c||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new _(this._input)};y.prototype.tokenize=function(){this._input.restart(),this.__tokens=new i,this._reset();for(var E,c=new e(b.START,""),C=null,x=[],M=new i;c.type!==b.EOF;){for(E=this._get_next_token(c,C);this._is_comment(E);)M.add(E),E=this._get_next_token(c,C);M.isEmpty()||(E.comments_before=M,M=new i),E.parent=C,this._is_opening(E)?(x.push(C),C=E):C&&this._is_closing(E,C)&&(E.opened=C,C.closed=E,C=x.pop(),E.parent=C),E.previous=c,c.next=E,this.__tokens.add(E),c=E}return this.__tokens},y.prototype._is_first_token=function(){return this.__tokens.isEmpty()},y.prototype._reset=function(){},y.prototype._get_next_token=function(E,c){this._readWhitespace();var C=this._input.read(/.+/g);return C?this._create_token(b.RAW,C):this._create_token(b.EOF,"")},y.prototype._is_comment=function(E){return!1},y.prototype._is_opening=function(E){return!1},y.prototype._is_closing=function(E,c){return!1},y.prototype._create_token=function(E,c){var C=new e(E,c,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return C},y.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},r.exports.Tokenizer=y,r.exports.TOKEN=b},function(r){function l(n){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=n}l.prototype.restart=function(){this.__position=0},l.prototype.isEmpty=function(){return this.__tokens_length===0},l.prototype.hasNext=function(){return this.__position<this.__tokens_length},l.prototype.next=function(){var n=null;return this.hasNext()&&(n=this.__tokens[this.__position],this.__position+=1),n},l.prototype.peek=function(n){var s=null;return n=n||0,n+=this.__position,n>=0&&n<this.__tokens_length&&(s=this.__tokens[n]),s},l.prototype.add=function(n){this.__parent_token&&(n.parent=this.__parent_token),this.__tokens.push(n),this.__tokens_length+=1},r.exports.TokenStream=l},function(r,l,n){var s=n(12).Pattern;function e(i,_){s.call(this,i,_),_?this._line_regexp=this._input.get_regexp(_._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}e.prototype=new s,e.prototype.__set_whitespace_patterns=function(i,_){i+="\\t ",_+="\\n\\r",this._match_pattern=this._input.get_regexp("["+i+_+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+_+"]")},e.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var i=this._input.read(this._match_pattern);if(i===" ")this.whitespace_before_token=" ";else if(i){var _=this.__split(this._newline_regexp,i);this.newline_count=_.length-1,this.whitespace_before_token=_[this.newline_count]}return i},e.prototype.matching=function(i,_){var b=this._create();return b.__set_whitespace_patterns(i,_),b._update(),b},e.prototype._create=function(){return new e(this._input,this)},e.prototype.__split=function(i,_){i.lastIndex=0;for(var b=0,y=[],E=i.exec(_);E;)y.push(_.substring(b,E.index)),b=E.index+E[0].length,E=i.exec(_);return b<_.length?y.push(_.substring(b,_.length)):y.push(""),y},r.exports.WhitespacePattern=e},function(r){function l(n,s){this._input=n,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,s&&(this._starting_pattern=this._input.get_regexp(s._starting_pattern,!0),this._match_pattern=this._input.get_regexp(s._match_pattern,!0),this._until_pattern=this._input.get_regexp(s._until_pattern),this._until_after=s._until_after)}l.prototype.read=function(){var n=this._input.read(this._starting_pattern);return(!this._starting_pattern||n)&&(n+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),n},l.prototype.read_match=function(){return this._input.match(this._match_pattern)},l.prototype.until_after=function(n){var s=this._create();return s._until_after=!0,s._until_pattern=this._input.get_regexp(n),s._update(),s},l.prototype.until=function(n){var s=this._create();return s._until_after=!1,s._until_pattern=this._input.get_regexp(n),s._update(),s},l.prototype.starting_with=function(n){var s=this._create();return s._starting_pattern=this._input.get_regexp(n,!0),s._update(),s},l.prototype.matching=function(n){var s=this._create();return s._match_pattern=this._input.get_regexp(n,!0),s._update(),s},l.prototype._create=function(){return new l(this._input,this)},l.prototype._update=function(){},r.exports.Pattern=l},function(r){function l(n,s){n=typeof n=="string"?n:n.source,s=typeof s=="string"?s:s.source,this.__directives_block_pattern=new RegExp(n+/ beautify( \w+[:]\w+)+ /.source+s,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(n+/\sbeautify\signore:end\s/.source+s,"g")}l.prototype.get_directives=function(n){if(!n.match(this.__directives_block_pattern))return null;var s={};this.__directive_pattern.lastIndex=0;for(var e=this.__directive_pattern.exec(n);e;)s[e[1]]=e[2],e=this.__directive_pattern.exec(n);return s},l.prototype.readIgnored=function(n){return n.readUntilAfter(this.__directives_end_ignore_pattern)},r.exports.Directives=l},function(r,l,n){var s=n(12).Pattern,e={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function i(_,b){s.call(this,_,b),this.__template_pattern=null,this._disabled=Object.assign({},e),this._excluded=Object.assign({},e),b&&(this.__template_pattern=this._input.get_regexp(b.__template_pattern),this._excluded=Object.assign(this._excluded,b._excluded),this._disabled=Object.assign(this._disabled,b._disabled));var y=new s(_);this.__patterns={handlebars_comment:y.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:y.starting_with(/{{{/).until_after(/}}}/),handlebars:y.starting_with(/{{/).until_after(/}}/),php:y.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:y.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:y.starting_with(/{%/).until_after(/%}/),django_value:y.starting_with(/{{/).until_after(/}}/),django_comment:y.starting_with(/{#/).until_after(/#}/),smarty:y.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:y.starting_with(/{\*/).until_after(/\*}/),smarty_literal:y.starting_with(/{literal}/).until_after(/{\/literal}/)}}i.prototype=new s,i.prototype._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(_){var b=this._create();return b._disabled[_]=!0,b._update(),b},i.prototype.read_options=function(_){var b=this._create();for(var y in e)b._disabled[y]=_.templating.indexOf(y)===-1;return b._update(),b},i.prototype.exclude=function(_){var b=this._create();return b._excluded[_]=!0,b._update(),b},i.prototype.read=function(){var _="";this._match_pattern?_=this._input.read(this._starting_pattern):_=this._input.read(this._starting_pattern,this.__template_pattern);for(var b=this._read_template();b;)this._match_pattern?b+=this._input.read(this._match_pattern):b+=this._input.readUntil(this.__template_pattern),_+=b,b=this._read_template();return this._until_after&&(_+=this._input.readUntilAfter(this._until_pattern)),_},i.prototype.__set_templated_pattern=function(){var _=[];this._disabled.php||_.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||_.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||_.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(_.push(this.__patterns.django._starting_pattern.source),_.push(this.__patterns.django_value._starting_pattern.source),_.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||_.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&_.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+_.join("|")+")")},i.prototype._read_template=function(){var _="",b=this._input.peek();if(b==="<"){var y=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&y==="?"&&(_=_||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&y==="%"&&(_=_||this.__patterns.erb.read())}else b==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(_=_||this.__patterns.handlebars_comment.read(),_=_||this.__patterns.handlebars_unescaped.read(),_=_||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(_=_||this.__patterns.django_value.read()),this._excluded.django||(_=_||this.__patterns.django_comment.read(),_=_||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(_=_||this.__patterns.smarty_comment.read(),_=_||this.__patterns.smarty_literal.read(),_=_||this.__patterns.smarty.read()));return _},r.exports.TemplatablePattern=i},,,,function(r,l,n){var s=n(19).Beautifier,e=n(20).Options;function i(_,b,y,E){var c=new s(_,b,y,E);return c.beautify()}r.exports=i,r.exports.defaultOptions=function(){return new e}},function(r,l,n){var s=n(20).Options,e=n(2).Output,i=n(21).Tokenizer,_=n(21).TOKEN,b=/\r\n|[\r\n]/,y=/\r\n|[\r\n]/g,E=function(W,z){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=W.max_preserve_newlines,this.preserve_newlines=W.preserve_newlines,this._output=new e(W,z)};E.prototype.current_line_has_match=function(W){return this._output.current_line.has_match(W)},E.prototype.set_space_before_token=function(W,z){this._output.space_before_token=W,this._output.non_breaking_space=z},E.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},E.prototype.add_raw_token=function(W){this._output.add_raw_token(W)},E.prototype.print_preserved_newlines=function(W){var z=0;W.type!==_.TEXT&&W.previous.type!==_.TEXT&&(z=W.newlines?1:0),this.preserve_newlines&&(z=W.newlines<this.max_preserve_newlines+1?W.newlines:this.max_preserve_newlines+1);for(var H=0;H<z;H++)this.print_newline(H>0);return z!==0},E.prototype.traverse_whitespace=function(W){return W.whitespace_before||W.newlines?(this.print_preserved_newlines(W)||(this._output.space_before_token=!0),!0):!1},E.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},E.prototype.print_newline=function(W){this._output.add_new_line(W)},E.prototype.print_token=function(W){W.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(W.text))},E.prototype.indent=function(){this.indent_level++},E.prototype.get_full_indent=function(W){return W=this.indent_level+(W||0),W<1?"":this._output.get_indent_string(W)};var c=function(W){for(var z=null,H=W.next;H.type!==_.EOF&&W.closed!==H;){if(H.type===_.ATTRIBUTE&&H.text==="type"){H.next&&H.next.type===_.EQUALS&&H.next.next&&H.next.next.type===_.VALUE&&(z=H.next.next.text);break}H=H.next}return z},C=function(W,z){var H=null,ee=null;return z.closed?(W==="script"?H="text/javascript":W==="style"&&(H="text/css"),H=c(z)||H,H.search("text/css")>-1?ee="css":H.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?ee="javascript":H.search(/(text|application|dojo)\/(x-)?(html)/)>-1?ee="html":H.search(/test\/null/)>-1&&(ee="null"),ee):null};function x(W,z){return z.indexOf(W)!==-1}function M(W,z,H){this.parent=W||null,this.tag=z?z.tag_name:"",this.indent_level=H||0,this.parser_token=z||null}function k(W){this._printer=W,this._current_frame=null}k.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},k.prototype.record_tag=function(W){var z=new M(this._current_frame,W,this._printer.indent_level);this._current_frame=z},k.prototype._try_pop_frame=function(W){var z=null;return W&&(z=W.parser_token,this._printer.indent_level=W.indent_level,this._current_frame=W.parent),z},k.prototype._get_frame=function(W,z){for(var H=this._current_frame;H&&!(W.indexOf(H.tag)!==-1);){if(z&&z.indexOf(H.tag)!==-1){H=null;break}H=H.parent}return H},k.prototype.try_pop=function(W,z){var H=this._get_frame([W],z);return this._try_pop_frame(H)},k.prototype.indent_to_tag=function(W){var z=this._get_frame(W);z&&(this._printer.indent_level=z.indent_level)};function T(W,z,H,ee){this._source_text=W||"",z=z||{},this._js_beautify=H,this._css_beautify=ee,this._tag_stack=null;var G=new s(z,"html");this._options=G,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,"force".length)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,"preserve".length)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}T.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var W=this._source_text,z=this._options.eol;this._options.eol==="auto"&&(z=`
`,W&&b.test(W)&&(z=W.match(b)[0])),W=W.replace(y,`
`);var H=W.match(/^[\t ]*/)[0],ee={text:"",type:""},G=new R,U=new E(this._options,H),K=new i(W,this._options).tokenize();this._tag_stack=new k(U);for(var L=null,D=K.next();D.type!==_.EOF;)D.type===_.TAG_OPEN||D.type===_.COMMENT?(L=this._handle_tag_open(U,D,G,ee),G=L):D.type===_.ATTRIBUTE||D.type===_.EQUALS||D.type===_.VALUE||D.type===_.TEXT&&!G.tag_complete?L=this._handle_inside_tag(U,D,G,K):D.type===_.TAG_CLOSE?L=this._handle_tag_close(U,D,G):D.type===_.TEXT?L=this._handle_text(U,D,G):U.add_raw_token(D),ee=L,D=K.next();var j=U._output.get_code(z);return j},T.prototype._handle_tag_close=function(W,z,H){var ee={text:z.text,type:z.type};return W.alignment_size=0,H.tag_complete=!0,W.set_space_before_token(z.newlines||z.whitespace_before!=="",!0),H.is_unformatted?W.add_raw_token(z):(H.tag_start_char==="<"&&(W.set_space_before_token(z.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&H.has_wrapped_attrs&&W.print_newline(!1)),W.print_token(z)),H.indent_content&&!(H.is_unformatted||H.is_content_unformatted)&&(W.indent(),H.indent_content=!1),!H.is_inline_element&&!(H.is_unformatted||H.is_content_unformatted)&&W.set_wrap_point(),ee},T.prototype._handle_inside_tag=function(W,z,H,ee){var G=H.has_wrapped_attrs,U={text:z.text,type:z.type};if(W.set_space_before_token(z.newlines||z.whitespace_before!=="",!0),H.is_unformatted)W.add_raw_token(z);else if(H.tag_start_char==="{"&&z.type===_.TEXT)W.print_preserved_newlines(z)?(z.newlines=0,W.add_raw_token(z)):W.print_token(z);else{if(z.type===_.ATTRIBUTE?(W.set_space_before_token(!0),H.attr_count+=1):(z.type===_.EQUALS||z.type===_.VALUE&&z.previous.type===_.EQUALS)&&W.set_space_before_token(!1),z.type===_.ATTRIBUTE&&H.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(W.traverse_whitespace(z),G=G||z.newlines!==0),this._is_wrap_attributes_force)){var K=H.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&H.attr_count===1){var L=!0,D=0,j;do{if(j=ee.peek(D),j.type===_.ATTRIBUTE){L=!1;break}D+=1}while(D<4&&j.type!==_.EOF&&j.type!==_.TAG_CLOSE);K=!L}K&&(W.print_newline(!1),G=!0)}W.print_token(z),G=G||W.previous_token_wrapped(),H.has_wrapped_attrs=G}return U},T.prototype._handle_text=function(W,z,H){var ee={text:z.text,type:"TK_CONTENT"};return H.custom_beautifier_name?this._print_custom_beatifier_text(W,z,H):H.is_unformatted||H.is_content_unformatted?W.add_raw_token(z):(W.traverse_whitespace(z),W.print_token(z)),ee},T.prototype._print_custom_beatifier_text=function(W,z,H){var ee=this;if(z.text!==""){var G=z.text,U,K=1,L="",D="";H.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?U=this._js_beautify:H.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?U=this._css_beautify:H.custom_beautifier_name==="html"&&(U=function(De,q){var be=new T(De,q,ee._js_beautify,ee._css_beautify);return be.beautify()}),this._options.indent_scripts==="keep"?K=0:this._options.indent_scripts==="separate"&&(K=-W.indent_level);var j=W.get_full_indent(K);if(G=G.replace(/\n[ \t]*$/,""),H.custom_beautifier_name!=="html"&&G[0]==="<"&&G.match(/^(<!--|<!\[CDATA\[)/)){var Z=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(G);if(!Z){W.add_raw_token(z);return}L=j+Z[1]+`
`,G=Z[4],Z[5]&&(D=j+Z[5]),G=G.replace(/\n[ \t]*$/,""),(Z[2]||Z[3].indexOf(`
`)!==-1)&&(Z=Z[3].match(/[ \t]+$/),Z&&(z.whitespace_before=Z[0]))}if(G)if(U){var ie=function(){this.eol=`
`};ie.prototype=this._options.raw_options;var pe=new ie;G=U(j+G,pe)}else{var Ee=z.whitespace_before;Ee&&(G=G.replace(new RegExp(`
(`+Ee+")?","g"),`
`)),G=j+G.replace(/\n/g,`
`+j)}L&&(G?G=L+G+`
`+D:G=L+D),W.print_newline(!1),G&&(z.text=G,z.whitespace_before="",z.newlines=0,W.add_raw_token(z),W.print_newline(!0))}},T.prototype._handle_tag_open=function(W,z,H,ee){var G=this._get_tag_open_token(z);return(H.is_unformatted||H.is_content_unformatted)&&!H.is_empty_element&&z.type===_.TAG_OPEN&&z.text.indexOf("</")===0?(W.add_raw_token(z),G.start_tag_token=this._tag_stack.try_pop(G.tag_name)):(W.traverse_whitespace(z),this._set_tag_position(W,z,G,H,ee),G.is_inline_element||W.set_wrap_point(),W.print_token(z)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(G.alignment_size=z.text.length+1),!G.tag_complete&&!G.is_unformatted&&(W.alignment_size=G.alignment_size),G};var R=function(W,z){if(this.parent=W||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!z)this.tag_complete=!0;else{var H;this.tag_start_char=z.text[0],this.text=z.text,this.tag_start_char==="<"?(H=z.text.match(/^<([^\s>]*)/),this.tag_check=H?H[1]:""):(H=z.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=H?H[1]:"",(z.text.startsWith("{{#>")||z.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&z.next!==null?this.tag_check=z.next.text.split(" ")[0]:this.tag_check=z.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),z.type===_.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||z.closed&&z.closed.text==="/>";var ee=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(ee=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(ee)))}};T.prototype._get_tag_open_token=function(W){var z=new R(this._tag_stack.get_parser_token(),W);return z.alignment_size=this._options.wrap_attributes_indent_size,z.is_end_tag=z.is_end_tag||x(z.tag_check,this._options.void_elements),z.is_empty_element=z.tag_complete||z.is_start_tag&&z.is_end_tag,z.is_unformatted=!z.tag_complete&&x(z.tag_check,this._options.unformatted),z.is_content_unformatted=!z.is_empty_element&&x(z.tag_check,this._options.content_unformatted),z.is_inline_element=x(z.tag_name,this._options.inline)||z.tag_name.includes("-")||z.tag_start_char==="{",z},T.prototype._set_tag_position=function(W,z,H,ee,G){if(H.is_empty_element||(H.is_end_tag?H.start_tag_token=this._tag_stack.try_pop(H.tag_name):(this._do_optional_end_element(H)&&(H.is_inline_element||W.print_newline(!1)),this._tag_stack.record_tag(H),(H.tag_name==="script"||H.tag_name==="style")&&!(H.is_unformatted||H.is_content_unformatted)&&(H.custom_beautifier_name=C(H.tag_check,z)))),x(H.tag_check,this._options.extra_liners)&&(W.print_newline(!1),W._output.just_added_blankline()||W.print_newline(!0)),H.is_empty_element){if(H.tag_start_char==="{"&&H.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),H.indent_content=!0;var U=W.current_line_has_match(/{{#if/);U||W.print_newline(!1)}H.tag_name==="!--"&&G.type===_.TAG_CLOSE&&ee.is_end_tag&&H.text.indexOf(`
`)===-1||(H.is_inline_element||H.is_unformatted||W.print_newline(!1),this._calcluate_parent_multiline(W,H))}else if(H.is_end_tag){var K=!1;K=H.start_tag_token&&H.start_tag_token.multiline_content,K=K||!H.is_inline_element&&!(ee.is_inline_element||ee.is_unformatted)&&!(G.type===_.TAG_CLOSE&&H.start_tag_token===ee)&&G.type!=="TK_CONTENT",(H.is_content_unformatted||H.is_unformatted)&&(K=!1),K&&W.print_newline(!1)}else H.indent_content=!H.custom_beautifier_name,H.tag_start_char==="<"&&(H.tag_name==="html"?H.indent_content=this._options.indent_inner_html:H.tag_name==="head"?H.indent_content=this._options.indent_head_inner_html:H.tag_name==="body"&&(H.indent_content=this._options.indent_body_inner_html)),!(H.is_inline_element||H.is_unformatted)&&(G.type!=="TK_CONTENT"||H.is_content_unformatted)&&W.print_newline(!1),this._calcluate_parent_multiline(W,H)},T.prototype._calcluate_parent_multiline=function(W,z){z.parent&&W._output.just_added_newline()&&!((z.is_inline_element||z.is_unformatted)&&z.parent.is_inline_element)&&(z.parent.multiline_content=!0)};var P=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],B=["a","audio","del","ins","map","noscript","video"];T.prototype._do_optional_end_element=function(W){var z=null;if(W.is_empty_element||!W.is_start_tag||!W.parent)return;if(W.tag_name==="body")z=z||this._tag_stack.try_pop("head");else if(W.tag_name==="li")z=z||this._tag_stack.try_pop("li",["ol","ul"]);else if(W.tag_name==="dd"||W.tag_name==="dt")z=z||this._tag_stack.try_pop("dt",["dl"]),z=z||this._tag_stack.try_pop("dd",["dl"]);else if(W.parent.tag_name==="p"&&P.indexOf(W.tag_name)!==-1){var H=W.parent.parent;(!H||B.indexOf(H.tag_name)===-1)&&(z=z||this._tag_stack.try_pop("p"))}else W.tag_name==="rp"||W.tag_name==="rt"?(z=z||this._tag_stack.try_pop("rt",["ruby","rtc"]),z=z||this._tag_stack.try_pop("rp",["ruby","rtc"])):W.tag_name==="optgroup"?z=z||this._tag_stack.try_pop("optgroup",["select"]):W.tag_name==="option"?z=z||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):W.tag_name==="colgroup"?z=z||this._tag_stack.try_pop("caption",["table"]):W.tag_name==="thead"?(z=z||this._tag_stack.try_pop("caption",["table"]),z=z||this._tag_stack.try_pop("colgroup",["table"])):W.tag_name==="tbody"||W.tag_name==="tfoot"?(z=z||this._tag_stack.try_pop("caption",["table"]),z=z||this._tag_stack.try_pop("colgroup",["table"]),z=z||this._tag_stack.try_pop("thead",["table"]),z=z||this._tag_stack.try_pop("tbody",["table"])):W.tag_name==="tr"?(z=z||this._tag_stack.try_pop("caption",["table"]),z=z||this._tag_stack.try_pop("colgroup",["table"]),z=z||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(W.tag_name==="th"||W.tag_name==="td")&&(z=z||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),z=z||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return W.parent=this._tag_stack.get_parser_token(),z},r.exports.Beautifier=T},function(r,l,n){var s=n(6).Options;function e(i){s.call(this,i,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}e.prototype=new s,r.exports.Options=e},function(r,l,n){var s=n(9).Tokenizer,e=n(9).TOKEN,i=n(13).Directives,_=n(14).TemplatablePattern,b=n(12).Pattern,y={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:e.START,RAW:e.RAW,EOF:e.EOF},E=new i(/<\!--/,/-->/),c=function(C,x){s.call(this,C,x),this._current_tag_name="";var M=new _(this._input).read_options(this._options),k=new b(this._input);if(this.__patterns={word:M.until(/[\n\r\t <]/),single_quote:M.until_after(/'/),double_quote:M.until_after(/"/),attribute:M.until(/[\n\r\t =>]|\/>/),element_name:M.until(/[\n\r\t >\/]/),handlebars_comment:k.starting_with(/{{!--/).until_after(/--}}/),handlebars:k.starting_with(/{{/).until_after(/}}/),handlebars_open:k.until(/[\n\r\t }]/),handlebars_raw_close:k.until(/}}/),comment:k.starting_with(/<!--/).until_after(/-->/),cdata:k.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:k.starting_with(/<!\[/).until_after(/]>/),processing:k.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var T=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=k.matching(T).until_after(T)}};c.prototype=new s,c.prototype._is_comment=function(C){return!1},c.prototype._is_opening=function(C){return C.type===y.TAG_OPEN},c.prototype._is_closing=function(C,x){return C.type===y.TAG_CLOSE&&x&&((C.text===">"||C.text==="/>")&&x.text[0]==="<"||C.text==="}}"&&x.text[0]==="{"&&x.text[1]==="{")},c.prototype._reset=function(){this._current_tag_name=""},c.prototype._get_next_token=function(C,x){var M=null;this._readWhitespace();var k=this._input.peek();return k===null?this._create_token(y.EOF,""):(M=M||this._read_open_handlebars(k,x),M=M||this._read_attribute(k,C,x),M=M||this._read_close(k,x),M=M||this._read_raw_content(k,C,x),M=M||this._read_content_word(k),M=M||this._read_comment_or_cdata(k),M=M||this._read_processing(k),M=M||this._read_open(k,x),M=M||this._create_token(y.UNKNOWN,this._input.next()),M)},c.prototype._read_comment_or_cdata=function(C){var x=null,M=null,k=null;if(C==="<"){var T=this._input.peek(1);T==="!"&&(M=this.__patterns.comment.read(),M?(k=E.get_directives(M),k&&k.ignore==="start"&&(M+=E.readIgnored(this._input))):M=this.__patterns.cdata.read()),M&&(x=this._create_token(y.COMMENT,M),x.directives=k)}return x},c.prototype._read_processing=function(C){var x=null,M=null,k=null;if(C==="<"){var T=this._input.peek(1);(T==="!"||T==="?")&&(M=this.__patterns.conditional_comment.read(),M=M||this.__patterns.processing.read()),M&&(x=this._create_token(y.COMMENT,M),x.directives=k)}return x},c.prototype._read_open=function(C,x){var M=null,k=null;return x||C==="<"&&(M=this._input.next(),this._input.peek()==="/"&&(M+=this._input.next()),M+=this.__patterns.element_name.read(),k=this._create_token(y.TAG_OPEN,M)),k},c.prototype._read_open_handlebars=function(C,x){var M=null,k=null;return x||this._options.indent_handlebars&&C==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(M=this.__patterns.handlebars_comment.read(),M=M||this.__patterns.handlebars.read(),k=this._create_token(y.COMMENT,M)):(M=this.__patterns.handlebars_open.read(),k=this._create_token(y.TAG_OPEN,M))),k},c.prototype._read_close=function(C,x){var M=null,k=null;return x&&(x.text[0]==="<"&&(C===">"||C==="/"&&this._input.peek(1)===">")?(M=this._input.next(),C==="/"&&(M+=this._input.next()),k=this._create_token(y.TAG_CLOSE,M)):x.text[0]==="{"&&C==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),k=this._create_token(y.TAG_CLOSE,"}}"))),k},c.prototype._read_attribute=function(C,x,M){var k=null,T="";if(M&&M.text[0]==="<")if(C==="=")k=this._create_token(y.EQUALS,this._input.next());else if(C==='"'||C==="'"){var R=this._input.next();C==='"'?R+=this.__patterns.double_quote.read():R+=this.__patterns.single_quote.read(),k=this._create_token(y.VALUE,R)}else T=this.__patterns.attribute.read(),T&&(x.type===y.EQUALS?k=this._create_token(y.VALUE,T):k=this._create_token(y.ATTRIBUTE,T));return k},c.prototype._is_content_unformatted=function(C){return this._options.void_elements.indexOf(C)===-1&&(this._options.content_unformatted.indexOf(C)!==-1||this._options.unformatted.indexOf(C)!==-1)},c.prototype._read_raw_content=function(C,x,M){var k="";if(M&&M.text[0]==="{")k=this.__patterns.handlebars_raw_close.read();else if(x.type===y.TAG_CLOSE&&x.opened.text[0]==="<"&&x.text[0]!=="/"){var T=x.opened.text.substr(1).toLowerCase();if(T==="script"||T==="style"){var R=this._read_comment_or_cdata(C);if(R)return R.type=y.TEXT,R;k=this._input.readUntil(new RegExp("</"+T+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(T)&&(k=this._input.readUntil(new RegExp("</"+T+"[\\n\\r\\t ]*?>","ig")))}return k?this._create_token(y.TEXT,k):null},c.prototype._read_content_word=function(C){var x="";if(this._options.unformatted_content_delimiter&&(C===this._options.unformatted_content_delimiter[0]&&(x=this.__patterns.unformatted_content_delimiter.read())),x||(x=this.__patterns.word.read()),x)return this._create_token(y.TEXT,x)},r.exports.Tokenizer=c,r.exports.TOKEN=y}],d={};function u(r){var l=d[r];if(l!==void 0)return l.exports;var n=d[r]={exports:{}};return f[r](n,n.exports,u),n.exports}var o=u(18);I=o})();var m=I;if(!0)!(w=[v,v("6UM0"),v("TXwP")],h=function(f){var d=v("6UM0"),u=v("TXwP");return{html_beautify:function(o,r){return m(o,r,d.js_beautify,u.css_beautify)}}}.apply(F,w),h!==void 0&&(S.exports=h));else var g,a})()},q7KB:function(S,F,v){},qBft:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("OLod"))})(this,function(w){return w.pad.AnsiX923={pad:function(h,I){var m=h.sigBytes,g=I*4,a=g-m%g,f=m+a-1;h.clamp(),h.words[f>>>2]|=a<<24-f%4*8,h.sigBytes+=a},unpad:function(h){var I=h.words[h.sigBytes-1>>>2]&255;h.sigBytes-=I}},w.pad.Ansix923})},qM6L:function(S,F,v){(function(w,h){S.exports=F=h(v("Ib8C"))})(this,function(w){return function(){var h=w,I=h.lib,m=I.WordArray,g=h.enc,a=g.Utf16=g.Utf16BE={stringify:function(d){for(var u=d.words,o=d.sigBytes,r=[],l=0;l<o;l+=2){var n=u[l>>>2]>>>16-l%4*8&65535;r.push(String.fromCharCode(n))}return r.join("")},parse:function(d){for(var u=d.length,o=[],r=0;r<u;r++)o[r>>>1]|=d.charCodeAt(r)<<16-r%2*16;return m.create(o,u*2)}};g.Utf16LE={stringify:function(d){for(var u=d.words,o=d.sigBytes,r=[],l=0;l<o;l+=2){var n=f(u[l>>>2]>>>16-l%4*8&65535);r.push(String.fromCharCode(n))}return r.join("")},parse:function(d){for(var u=d.length,o=[],r=0;r<u;r++)o[r>>>1]|=f(d.charCodeAt(r)<<16-r%2*16);return m.create(o,u*2)}};function f(d){return d<<8&4278255360|d>>>8&16711935}}(),w.enc.Utf16})},qZJd:function(S,F,v){"use strict";var w=v("MXD1"),h=v("CFYs"),I=v("14J3"),m=v("BMrR"),g=v("+L6B"),a=v("2/Rp"),f=v("jCWc"),d=v("kPKH"),u=v("miYZ"),o=v("tsqr"),r=v("2qtc"),l=v("kLXV"),n=v("9og8"),s=v("rAM+"),e=v("tJVT"),i=v("k1fw"),_=v("WmNS"),b=v.n(_),y=v("cDcd"),E=v.n(y),c=v("IxHN"),C=v("bdgK"),x=v("M8RZ"),M=v("Ty5D"),k=v("1vsH"),T=v("1dTM"),R=v.n(T),P=v("dhSg"),B=v("5NDa"),W=v("5rEg"),z=v("AKST"),H=W.a.TextArea,ee=function(ue){var ne=ue.onCancel,xe=ue.onSave,$=ue.content,oe=Object(y.useState)($),Le=Object(e.a)(oe,2),te=Le[0],Y=Le[1];function X(ve){Y(ve.target.value)}function J(){xe(te)}return Object(y.useEffect)(function(){Y($)},[$]),E.a.createElement("div",{className:"clipboard-box"},E.a.createElement("h3",null,"\u5B9E\u9A8C\u73AF\u5883\u526A\u5207\u677F\uFF1A"),E.a.createElement(H,{value:te,onChange:X,className:"clipboard"}),E.a.createElement("p",null," ",E.a.createElement("b",null," 1.\u4ECE\u5916\u90E8\u590D\u5236\u5185\u5BB9\u5230\u5B9E\u9A8C\u73AF\u5883\u5185\uFF1A ")," \u7C98\u8D34\u5185\u5BB9\u5230\u4E0A\u9762\u6587\u672C\u6846\uFF0C\u70B9\u51FB\u4FDD\u5B58\uFF0C\u7136\u540E\u5728\u5B9E\u9A8C\u73AF\u5883\u4E2D\u8FDB\u884C\u7C98\u8D34\u3002 "),E.a.createElement("p",null," ",E.a.createElement("b",null," 2.\u83B7\u53D6\u5B9E\u9A8C\u73AF\u5883\u4E2D\u7684\u5185\u5BB9\uFF1A ")," \u8BF7\u5148\u5728\u73AF\u5883\u4E2D\u590D\u5236\u5185\u5BB9\uFF0C\u590D\u5236\u52A8\u4F5C\u5B8C\u6210\u540E\u5185\u5BB9\u4F1A\u663E\u793A\u5728\u4E0A\u9762\u6587\u672C\u6846\uFF0C\u7136\u540E\u5728\u4E0A\u9762\u6587\u672C\u6846\u4E2D\u518D\u6B21\u590D\u5236\u3002 "),E.a.createElement("div",{className:"btn-action-container"},E.a.createElement(a.a,{type:"ghost",onClick:ne,style:{marginRight:10}},"\u53D6\u6D88"),E.a.createElement(a.a,{type:"primary",onClick:J},"\u4FDD\u5B58")))},G=v("ErOA"),U=v("IZBM"),K=v("ye1Q"),L=v("bntm"),D=v("i72Y"),j=v.n(D),Z=v("wd/R"),ie=v.n(Z),pe=E.a.createElement(K.a,{style:{fontSize:24},spin:!0});function Ee(ue){return ue.replace(/\\u([\dA-Za-z]{4})/g,function(ne,xe){return String.fromCharCode(parseInt("0x"+xe))})}function De(ue){ue||(ue=window.location.search);var ne=ue.substr(1),xe={};return ne.split("&").forEach(function($){var oe=$.split("=");xe[oe[0]]=decodeURIComponent(oe[1])}),xe}var q={loading:!0,isLarge:!1,showClipBoardBox:!1,transferContent:"",mes:"\u5B9E\u9A8C\u73AF\u5883\u51C6\u5907\u4E2D"},be;(function(ue){ue[ue.SET_LOADING=0]="SET_LOADING",ue[ue.SET_IS_LARGE=1]="SET_IS_LARGE",ue[ue.SET_MES=2]="SET_MES",ue[ue.SET_STATE=3]="SET_STATE",ue[ue.SHOW_CLIPBOARD_BOX=4]="SHOW_CLIPBOARD_BOX",ue[ue.SET_TRANSFER_CONTENT=5]="SET_TRANSFER_CONTENT",ue[ue.UPDATE_ALL=6]="UPDATE_ALL"})(be||(be={}));function ye(ue,ne){switch(ne.type){case be.SET_LOADING:return Object(i.a)(Object(i.a)({},ue),{},{loading:ne.payload});case be.SET_IS_LARGE:return Object(i.a)({},Object(i.a)(Object(i.a)({},ue),{},{isLarge:ne.payload}));case be.SET_MES:return Object(i.a)(Object(i.a)({},ue),{},{mes:ne.payload});case be.SET_STATE:return Object(i.a)(Object(i.a)({},ue),ne.payload);case be.SET_TRANSFER_CONTENT:return Object(i.a)(Object(i.a)({},ue),{},{transferContent:ne.payload});case be.SHOW_CLIPBOARD_BOX:return Object(i.a)(Object(i.a)({},ue),{},{showClipBoardBox:ne.payload});case be.UPDATE_ALL:return Object(i.a)({loading:ue.loading},ne.payload);default:throw new Error}}var le=F.a=function(ue){var ne,xe=ue.vnc_url,$=ue.window_vnc_url,oe=ue.linux_vnc,Le=ue.virtual_machine,te=ue.taskId,Y=ue.taskData,X=Object(y.useRef)(),J=Object(y.useRef)(),ve=Object(y.useRef)(),he=Object(y.useRef)(),Ce=Object(y.useState)(),Pe=Object(e.a)(Ce,2),de=Pe[0],ke=Pe[1],me=Object(y.useState)(!1),Be=Object(e.a)(me,2),ft=Be[0],vt=Be[1],Xe=Object(y.useReducer)(ye,q),Bt=Object(e.a)(Xe,2),Ae=Bt[0],We=Bt[1],dt=Object(y.useState)(0),Ge=Object(e.a)(dt,2),je=Ge[0],Fe=Ge[1],ce=Ae.mes,we=Ae.loading,se=Ae.showClipBoardBox,_e=Ae.isLarge,Ne=Ae.transferContent,Q=Object(y.useState)(0),Ue=Object(e.a)(Q,2),Ze=Ue[0],Te=Ue[1],He=Object(y.useRef)(),Ye=Object(M.i)(),st=Ye;Object(y.useEffect)(function(){return window.addEventListener("visibilitychange",et),function(){var Ct,Kt;(Ct=J.current)===null||Ct===void 0||((Kt=Ct.disconnect)===null||Kt===void 0)||Kt.call(Ct),window.removeEventListener("visibilitychange",et)}},[]),Object(y.useEffect)(function(){return window.sessionStorage.imageId=de,function(){window.sessionStorage.removeItem("imageId")}},[de]);var ut=function(){var Kt,Vt;(Y==null||((Kt=Y.shixun)===null||Kt===void 0)?void 0:Kt.windows_connection_mode)==="rdp"?setTimeout(function(){Rt()},1500):(ve==null||((Vt=ve.current)===null||Vt===void 0)?void 0:Vt.resizeSession)!==void 0&&(Object(L.a)()?ve.current.resizeSession=!0:setTimeout(function(){ve.current.resizeSession=!1},900))};Object(y.useEffect)(function(){return window.addEventListener("visibilitychange",et),document.addEventListener(Object(L.c)(),ut),function(){document.removeEventListener(Object(L.c)(),ut),window.removeEventListener("visibilitychange",et)}},[]);var et=function(Kt){if(document.visibilityState==="visible"){var Vt=sessionStorage.vncPageLeaveTime;ie()(new Date).diff(ie()(Vt),"minutes")>2&&Fe(new Date().getTime()),sessionStorage.removeItem("vncPageLeaveTime")}else sessionStorage.vncPageLeaveTime=new Date};function Re(){We({type:be.SHOW_CLIPBOARD_BOX,payload:!1})}function qe(){We({type:be.SET_IS_LARGE,payload:!_e})}function At(Ct){var Kt;return X.current&&(Kt=new C.default(function(Vt){var dn=Object(s.a)(Vt),cn;try{for(dn.s();!(cn=dn.n()).done;){var qt,Lt=cn.value;if((Y==null||((qt=Y.shixun)===null||qt===void 0)?void 0:qt.windows_connection_mode)==="rdp"&&Rt(),Lt.target.offsetHeight>0||Lt.target.offsetWidth>0){var Tn;Ct==null||((Tn=Ct._eventHandlers)===null||Tn===void 0)||Tn.windowResize()}}}catch(Wt){dn.e(Wt)}finally{dn.f()}}),Kt.observe(X.current)),Kt}var $e=function(){var Ct=Object(n.a)(b.a.mark(function Kt(){var Vt,dn,cn,qt,Lt,Tn,Wt,gn,ln,Un,In;return b.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Tn=(Vt=De())!==null&&Vt!==void 0&&Vt.homework_common_id?{homework_common_id:(dn=De())===null||dn===void 0?void 0:dn.homework_common_id}:{},Mt.next=3,Object(G.a)("/api/myshixuns/".concat((cn=Y.myshixun)===null||cn===void 0?void 0:cn.identifier,"/start.json"),{method:"get",params:Object(i.a)(Object(i.a)(Object(i.a)({},Ye),Tn),{},{template_id:de||""})});case 3:if(Wt=Mt.sent,!(Wt!=null&&(qt=Wt.data)!==null&&qt!==void 0&&(Lt=qt.data_list)!==null&&Lt!==void 0&&Lt.length)){Mt.next=7;break}return P.a.publish("pod-restrict-data",{identifier:Wt==null||((gn=Wt.data)===null||gn===void 0)?void 0:gn.identifier,data_list:Wt==null||((ln=Wt.data)===null||ln===void 0)?void 0:ln.data_list}),Mt.abrupt("return");case 7:if(!((Wt==null?void 0:Wt.status)===-3)){Mt.next=9;break}return Mt.abrupt("return",new Promise(function(){var on=Object(n.a)(b.a.mark(function ea(Vr,vr){return b.a.wrap(function(wa){for(;;)switch(wa.prev=wa.next){case 0:l.a.confirm({content:"\u68C0\u6D4B\u5230\u60A8\u5DF2\u7ECF\u5F00\u542F\u4E86\u5176\u4ED6\u5B9E\u9A8C\u73AF\u5883\uFF0C\u8BF7\u5148\u5173\u95ED\u73AF\u5883\u540E\uFF0C\u518D\u8FDE\u63A5",okText:"\u7ACB\u5373\u5173\u95ED",cancelText:"\u7A0D\u540E\u5173\u95ED",onOk:function(){var An=Object(n.a)(b.a.mark(function Ut(){return b.a.wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:return clearTimeout(He.current),Te(0),Yn.next=4,Object(U.f)(Ye.taskId,Wt==null?void 0:Wt.message);case 4:return Fe(je+1),Yn.abrupt("return");case 6:case"end":return Yn.stop()}},Ut)}));function ur(){return An.apply(this,arguments)}return ur}()});case 1:case"end":return wa.stop()}},ea)}));return function(ea,Vr){return on.apply(this,arguments)}}()));case 9:if(!((Wt==null?void 0:Wt.status)===-1)){Mt.next=11;break}throw new String(Wt==null?void 0:Wt.message);case 11:return Le&&(Object(k.y)("PVEAuthCookie",Wt==null||((Un=Wt.data)===null||Un===void 0||((In=Un.cookie_options)===null||In===void 0))?void 0:In.cookies_value,1),Object(k.y)("PVELangCookie","zh_CN",1)),P.a.publish("update-windows-time",Wt==null?void 0:Wt.data),Mt.abrupt("return",Wt);case 14:case"end":return Mt.stop()}},Kt)}));return function(){return Ct.apply(this,arguments)}}();Object(y.useEffect)(function(){var Ct,Kt;function Vt(gn){$&&(o.b.warn("\u7531\u4E8E\u957F\u65F6\u95F4\u672A\u64CD\u4F5C\uFF0C\u8FDE\u63A5\u5931\u6548\uFF0C\u6B63\u5728\u91CD\u65B0\u8FDE\u63A5Windows VNC\u670D\u52A1"),We({type:be.SET_LOADING,payload:!0}),Fe(je+1))}P.a.subscribe("reset-linux-windows-loading",function(){We({type:be.SET_LOADING,payload:!0})}),P.a.subscribe("reset-linux-windos-vnc",function(){Fe(je+1)});function dn(){Te(100),clearTimeout(He.current),setTimeout(function(){ve.current.resizeSession=!1,We({type:be.SET_LOADING,payload:!1})},1300),P.a.subscribe("send-ctrl-alt-delete",function(){var gn;(gn=Ct)===null||gn===void 0||gn.sendCtrlAltDel()})}function cn(gn){var ln=Ee(gn.detail.text);We({type:be.SET_TRANSFER_CONTENT,payload:ln})}if(($||xe||oe||Le&&de)&&X.current){var qt;clearTimeout(He.current),(Y==null||((qt=Y.shixun)===null||qt===void 0)?void 0:qt.windows_connection_mode)==="rdp"&&Rt(),new Promise(Object(n.a)(b.a.mark(function gn(){var ln,Un,In,Rr,Mt,on,ea,Vr,vr,jr,wa,An,ur;return b.a.wrap(function(tr){for(;;)switch(tr.prev=tr.next){case 0:return Un=De(),In="",tr.next=4,$e();case 4:if(Mt=tr.sent,!(oe||Le)){tr.next=11;break}return he.current.src=(Mt==null||((on=Mt.data)===null||on===void 0)?void 0:on.link_url)+"&time="+Date.now(),We({type:be.SET_STATE,payload:{loading:!1,mes:"\u5B9E\u9A8C\u73AF\u5883\u91CD\u7F6E\u4E2D"}}),tr.abrupt("return");case 11:$?(Rr="Edu123",In=decodeURIComponent(Mt==null||((ea=Mt.data)===null||ea===void 0)?void 0:ea.link_url)):(vr=new URL(decodeURIComponent(Mt==null||((Vr=Mt.data)===null||Vr===void 0)?void 0:Vr.link_url)),jr=vr.protocol,wa=vr.searchParams,An=vr.host,Rr=wa.get("password"),In="".concat(jr==="https:"?"wss":"ws","://").concat(An,"/").concat(Un.path||"websockify"));case 12:if(!((Y==null||((ln=Y.shixun)===null||ln===void 0)?void 0:ln.windows_connection_mode)==="rdp")){tr.next=18;break}return At(),he.current.style.cssText=he.current.style.cssText+"width:1920px;height:1080px;position:initial",he.current.src="/rdp.html?tpiId=".concat(Y==null||((ur=Y.myshixun)===null||ur===void 0)?void 0:ur.id),We({type:be.SET_LOADING,payload:!1}),tr.abrupt("return");case 18:Ct=new R.a(X.current,In,{credentials:{password:Rr},wsProtocols:["binary"],resize:"scale",show_dot:!0}),Kt=At(Ct),Ct.viewOnly=Un.view_only||!1,$?Ct.scaleViewport=!0:Ct.scaleViewport=Un.scale||!1,Ct.scaleViewport=Un.scale||!0,Ct.showDotCursor=!0,Ct.resizeSession=!0,ve.current=Ct,Ct.addEventListener("disconnect",Vt),Ct.addEventListener("connect",dn),Ct.addEventListener("clipboard",cn);case 29:case"end":return tr.stop()}},gn)})));var Lt=P.a.subscribe("vnc-reseting",function(){Te(0),We({type:be.SET_STATE,payload:{loading:!0,mes:"\u5B9E\u9A8C\u73AF\u5883\u91CD\u7F6E\u4E2D"}})}),Tn=P.a.subscribe("vnc-enlarge",function(gn){}),Wt=P.a.subscribe("show-clipboard-box",function(){We({type:be.SHOW_CLIPBOARD_BOX,payload:!0})});return Te(0),function(){var gn,ln,Un,In;(gn=Ct)===null||gn===void 0||gn.removeEventListener("disconnect",Vt),(ln=Ct)===null||ln===void 0||ln.removeEventListener("connect",dn),(Un=Ct)===null||Un===void 0||Un.removeEventListener("clipboard",cn),Lt(),Tn(),Wt(),(In=Kt)===null||In===void 0||In.unobserve(X.current)}}},[xe,$,oe,je,de]),Object(y.useEffect)(function(){var Ct,Kt;if(Le&&(Y==null||((Ct=Y.shixun_virtual_templates)===null||Ct===void 0)?void 0:Ct.length)===1){var Vt,dn;ke(Y==null||((Vt=Y.shixun_virtual_templates)===null||Vt===void 0||((dn=Vt[0])===null||dn===void 0))?void 0:dn.template_id)}else Le&&(Y==null||((Kt=Y.shixun_virtual_templates)===null||Kt===void 0)?void 0:Kt.length)>1&&vt(!0)},[Le]);function ht(Ct){var Kt;(Kt=ve.current)===null||Kt===void 0||Kt.clipboardPasteFrom(Ct),We({type:be.SET_TRANSFER_CONTENT,payload:Ct}),o.b.success("\u4FDD\u5B58\u6210\u529F\uFF01\u4F60\u53EF\u4EE5\u5728\u5B9E\u9A8C\u73AF\u5883\u4E2D\u7C98\u8D34\u8BE5\u5185\u5BB9"),Re()}function Rt(){var Ct,Kt;Ct=Math.min(document.getElementById("task-right-panel").clientWidth/1920,document.getElementById("task-right-panel").clientHeight/1260),he.current.parentElement.className="wh1080p",he.current.parentElement.style.cssText="transform:scale(".concat(Ct,");transform-origin:center center"),X.current.style.cssText="translate(-50%, -50%) scale("+Ct+")"}Object(y.useEffect)(function(){Ze==0&&(clearTimeout(He.current),pt())},[Ze]);var pt=function Ct(){Ze>99?Ze=99:(Ze=Ze+1,He.current=setTimeout(function(){Ct()},1500)),Ze<100&&Te(Ze)},wt=Object(y.useMemo)(function(){var Ct;return we?"none":oe||Le||$&&(Y==null||((Ct=Y.shixun)===null||Ct===void 0)?void 0:Ct.windows_connection_mode)==="rdp"?"block":"none"},[oe,we,Le,$]);return E.a.createElement(y.Fragment,null,ft&&E.a.createElement("div",{className:j.a.selectImage},E.a.createElement("section",{className:j.a.container},E.a.createElement("h1",null,"\u9009\u62E9\u89D2\u8272"),E.a.createElement("aside",null,Y==null||((ne=Y.shixun_virtual_templates)===null||ne===void 0)?void 0:ne.map(function(Ct,Kt){return E.a.createElement(m.a,{align:"middle",key:Kt},E.a.createElement(d.a,{flex:"1"},Ct.template_name),E.a.createElement(d.a,null,E.a.createElement(a.a,{type:"primary",onClick:function(){ke(Ct.template_id),vt(!1)}},"\u5F00\u59CB\u5B9E\u9A8C")))})))),_e&&E.a.createElement("a",{className:"btn-vnc-resize",onClick:qe},E.a.createElement("i",{className:"iconfont icon-tuichuquanping"})),E.a.createElement("div",{style:{width:"100%",height:"calc(100% - 50px)",overflow:"hidden",position:"absolute",display:wt==="block"?"flex":"none",alignItems:"center",justifyContent:"center",zIndex:6}},E.a.createElement("div",null,E.a.createElement("iframe",{style:{position:_e?"fixed":"absolute",left:0,top:_e?54:40,width:"100%",height:"calc(100% - ".concat(_e?"100px":"45px",")")},frameBorder:"0",ref:he,allowFullScreen:!0}))),E.a.createElement("div",{style:{position:_e?"fixed":"absolute",left:0,top:_e?54:40,zIndex:5,width:"100%",height:"calc(100% - ".concat(_e?"100px":"45px",")")},className:"".concat($?"vnc-panel-wrapper-windows":"vnc-panel-wrapper"," ").concat(_e?"full-screen":"")},we?E.a.createElement(c.a,{message:ce,style:{color:"#0152d9"}},E.a.createElement("div",{className:"tc",style:{width:500,margin:"0 auto",color:"#FFF"}},E.a.createElement(h.a,{percent:Ze,format:function(Kt){return E.a.createElement("span",{className:"c-white"},Kt,"%")}}))):null,E.a.createElement("div",{ref:X,className:"vnc-panel ".concat(we?"hidden zIndexf1":"animated fadeIn")})),E.a.createElement(x.a,null,E.a.createElement(l.a,{title:"\u590D\u5236\u7C98\u8D34",centered:!0,maskClosable:!1,visible:se,onCancel:Re,footer:null},E.a.createElement(ee,{onCancel:Re,onSave:ht,content:Ne}))))}},qgvg:function(S,F){S.exports="data:image/gif;base64,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"},qu8F:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("OLod"))})(this,function(w){/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return w.mode.CTRGladman=function(){var h=w.lib.BlockCipherMode.extend();function I(a){if((a>>24&255)===255){var f=a>>16&255,d=a>>8&255,u=a&255;f===255?(f=0,d===255?(d=0,u===255?u=0:++u):++d):++f,a=0,a+=f<<16,a+=d<<8,a+=u}else a+=1<<24;return a}function m(a){return(a[0]=I(a[0]))===0&&(a[1]=I(a[1])),a}var g=h.Encryptor=h.extend({processBlock:function(a,f){var d=this._cipher,u=d.blockSize,o=this._iv,r=this._counter;o&&(r=this._counter=o.slice(0),this._iv=void 0),m(r);var l=r.slice(0);d.encryptBlock(l,0);for(var n=0;n<u;n++)a[f+n]^=l[n]}});return h.Decryptor=g,h}(),w.mode.CTRGladman})},rHrb:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.CopyToClipboard=void 0;var w=I(v("cDcd")),h=I(v("+QRC"));function I(y){return y&&y.__esModule?y:{default:y}}function m(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(c){return typeof c}:m=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},m(y)}function g(y,E){var c=Object.keys(y);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(y);E&&(C=C.filter(function(x){return Object.getOwnPropertyDescriptor(y,x).enumerable})),c.push.apply(c,C)}return c}function a(y){for(var E=1;E<arguments.length;E++){var c=arguments[E]!=null?arguments[E]:{};E%2?g(c,!0).forEach(function(C){_(y,C,c[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(c)):g(c).forEach(function(C){Object.defineProperty(y,C,Object.getOwnPropertyDescriptor(c,C))})}return y}function f(y,E){if(y==null)return{};var c=d(y,E),C,x;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(y);for(x=0;x<M.length;x++){if(C=M[x],E.indexOf(C)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(y,C))continue;c[C]=y[C]}}return c}function d(y,E){if(y==null)return{};var c={},C=Object.keys(y),x,M;for(M=0;M<C.length;M++){if(x=C[M],E.indexOf(x)>=0)continue;c[x]=y[x]}return c}function u(y,E){if(!(y instanceof E))throw new TypeError("Cannot call a class as a function")}function o(y,E){for(var c=0;c<E.length;c++){var C=E[c];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(y,C.key,C)}}function r(y,E,c){return E&&o(y.prototype,E),c&&o(y,c),y}function l(y,E){return E&&(m(E)==="object"||typeof E=="function")?E:s(y)}function n(y){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},n(y)}function s(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function e(y,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(E&&E.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),E&&i(y,E)}function i(y,E){return i=Object.setPrototypeOf||function(C,x){return C.__proto__=x,C},i(y,E)}function _(y,E,c){return E in y?Object.defineProperty(y,E,{value:c,enumerable:!0,configurable:!0,writable:!0}):y[E]=c,y}var b=function(y){e(E,y);function E(){var c,C;u(this,E);for(var x=arguments.length,M=new Array(x),k=0;k<x;k++)M[k]=arguments[k];return C=l(this,(c=n(E)).call.apply(c,[this].concat(M))),_(s(C),"onClick",function(T){var R=C.props,P=R.text,B=R.onCopy,W=R.children,z=R.options,H=w.default.Children.only(W),ee=(0,h.default)(P,z);B&&B(P,ee),H&&H.props&&typeof H.props.onClick=="function"&&H.props.onClick(T)}),C}return r(E,[{key:"render",value:function(){var C=this.props,x=C.text,M=C.onCopy,k=C.options,T=C.children,R=f(C,["text","onCopy","options","children"]),P=w.default.Children.only(T);return w.default.cloneElement(P,a({},R,{onClick:this.onClick}))}}]),E}(w.default.PureComponent);F.CopyToClipboard=b,_(b,"defaultProps",{onCopy:void 0,options:void 0})},rUJ1:function(S,F){const v=/[&<>"']/,w=/[&<>"']/g,h=/[<>"']|&(?!#?\w+;)/,I=/[<>"']|&(?!#?\w+;)/g,m={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},g=k=>m[k];function a(k,T){if(T){if(v.test(k))return k.replace(w,g)}else if(h.test(k))return k.replace(I,g);return k}const f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function d(k){return k.replace(f,(T,R)=>(R=R.toLowerCase(),R==="colon"?":":R.charAt(0)==="#"?R.charAt(1)==="x"?String.fromCharCode(parseInt(R.substring(2),16)):String.fromCharCode(+R.substring(1)):""))}const u=/(^|[^\[])\^/g;function o(k,T){k=k.source||k,T=T||"";const R={replace:(P,B)=>(B=B.source||B,B=B.replace(u,"$1"),k=k.replace(P,B),R),getRegex:()=>new RegExp(k,T)};return R}const r=/[^\w:]/g,l=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function n(k,T,R){if(k){let P;try{P=decodeURIComponent(d(R)).replace(r,"").toLowerCase()}catch(B){return null}if(P.indexOf("javascript:")===0||P.indexOf("vbscript:")===0||P.indexOf("data:")===0)return null}T&&!l.test(R)&&(R=b(T,R));try{R=encodeURI(R).replace(/%25/g,"%")}catch(P){return null}return R}const s={},e=/^[^:]+:\/*[^/]*$/,i=/^([^:]+:)[\s\S]*$/,_=/^([^:]+:\/*[^/]*)[\s\S]*$/;function b(k,T){s[" "+k]||(e.test(k)?s[" "+k]=k+"/":s[" "+k]=C(k,"/",!0)),k=s[" "+k];const R=k.indexOf(":")===-1;return T.substring(0,2)==="//"?R?T:k.replace(i,"$1")+T:T.charAt(0)==="/"?R?T:k.replace(_,"$1")+T:k+T}const y={exec:function(){}};function E(k){let T=1,R,P;for(;T<arguments.length;T++){R=arguments[T];for(P in R)Object.prototype.hasOwnProperty.call(R,P)&&(k[P]=R[P])}return k}function c(k,T){const R=k.replace(/\|/g,(W,z,H)=>{let ee=!1,G=z;for(;--G>=0&&H[G]==="\\";)ee=!ee;return ee?"|":" |"}),P=R.split(/ \|/);let B=0;if(P.length>T)P.splice(T);else for(;P.length<T;)P.push("");for(;B<P.length;B++)P[B]=P[B].trim().replace(/\\\|/g,"|");return P}function C(k,T,R){const P=k.length;if(P===0)return"";let B=0;for(;B<P;){const W=k.charAt(P-B-1);if(W===T&&!R)B++;else if(W!==T&&R)B++;else break}return k.substr(0,P-B)}function x(k,T){if(k.indexOf(T[1])===-1)return-1;const R=k.length;let P=0,B=0;for(;B<R;B++)if(k[B]==="\\")B++;else if(k[B]===T[0])P++;else if(k[B]===T[1]&&(P--,P<0))return B;return-1}function M(k){k&&k.sanitize&&!k.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}S.exports={escape:a,unescape:d,edit:o,cleanUrl:n,resolveUrl:b,noopTest:y,merge:E,splitCells:c,rtrim:C,findClosingBracket:x,checkSanitizeDeprecation:M}},rdUC:function(S,F,v){var w=v("MFOe"),h=w.Global;S.exports={name:"localStorage",read:m,write:g,each:a,remove:f,clearAll:d};function I(){return h.localStorage}function m(u){return I().getItem(u)}function g(u,o){return I().setItem(u,o)}function a(u){for(var o=I().length-1;o>=0;o--){var r=I().key(o);u(m(r),r)}}function f(u){return I().removeItem(u)}function d(){return I().clear()}},rwxt:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var w=v("GdRQ");function h(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function I(f,d){for(var u=0;u<d.length;u++){var o=d[u];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(f,o.key,o)}}function m(f,d,u){return d&&I(f.prototype,d),u&&I(f,u),f}var g=!w.supportsCursorURIs||w.isTouchDevice,a=function(){function f(){h(this,f),this._target=null,this._canvas=document.createElement("canvas"),g&&(this._canvas.style.position="fixed",this._canvas.style.zIndex="65535",this._canvas.style.pointerEvents="none",this._canvas.style.visibility="hidden"),this._position={x:0,y:0},this._hotSpot={x:0,y:0},this._eventHandlers={mouseover:this._handleMouseOver.bind(this),mouseleave:this._handleMouseLeave.bind(this),mousemove:this._handleMouseMove.bind(this),mouseup:this._handleMouseUp.bind(this)}}return m(f,[{key:"attach",value:function(u){if(this._target&&this.detach(),this._target=u,g){document.body.appendChild(this._canvas);var o={capture:!0,passive:!0};this._target.addEventListener("mouseover",this._eventHandlers.mouseover,o),this._target.addEventListener("mouseleave",this._eventHandlers.mouseleave,o),this._target.addEventListener("mousemove",this._eventHandlers.mousemove,o),this._target.addEventListener("mouseup",this._eventHandlers.mouseup,o)}this.clear()}},{key:"detach",value:function(){if(!this._target)return;if(g){var u={capture:!0,passive:!0};this._target.removeEventListener("mouseover",this._eventHandlers.mouseover,u),this._target.removeEventListener("mouseleave",this._eventHandlers.mouseleave,u),this._target.removeEventListener("mousemove",this._eventHandlers.mousemove,u),this._target.removeEventListener("mouseup",this._eventHandlers.mouseup,u),document.body.removeChild(this._canvas)}this._target=null}},{key:"change",value:function(u,o,r,l,n){if(l===0||n===0){this.clear();return}this._position.x=this._position.x+this._hotSpot.x-o,this._position.y=this._position.y+this._hotSpot.y-r,this._hotSpot.x=o,this._hotSpot.y=r;var s=this._canvas.getContext("2d");this._canvas.width=l,this._canvas.height=n;var e;try{e=new ImageData(new Uint8ClampedArray(u),l,n)}catch(_){e=s.createImageData(l,n),e.data.set(new Uint8ClampedArray(u))}if(s.clearRect(0,0,l,n),s.putImageData(e,0,0),g)this._updatePosition();else{var i=this._canvas.toDataURL();this._target.style.cursor="url("+i+")"+o+" "+r+", default"}}},{key:"clear",value:function(){this._target.style.cursor="none",this._canvas.width=0,this._canvas.height=0,this._position.x=this._position.x+this._hotSpot.x,this._position.y=this._position.y+this._hotSpot.y,this._hotSpot.x=0,this._hotSpot.y=0}},{key:"move",value:function(u,o){if(!g)return;window.visualViewport?(this._position.x=u+window.visualViewport.offsetLeft,this._position.y=o+window.visualViewport.offsetTop):(this._position.x=u,this._position.y=o),this._updatePosition();var r=document.elementFromPoint(u,o);this._updateVisibility(r)}},{key:"_handleMouseOver",value:function(u){this._handleMouseMove(u)}},{key:"_handleMouseLeave",value:function(u){this._updateVisibility(u.relatedTarget)}},{key:"_handleMouseMove",value:function(u){this._updateVisibility(u.target),this._position.x=u.clientX-this._hotSpot.x,this._position.y=u.clientY-this._hotSpot.y,this._updatePosition()}},{key:"_handleMouseUp",value:function(u){var o=this,r=document.elementFromPoint(u.clientX,u.clientY);this._updateVisibility(r),this._captureIsActive()&&window.setTimeout(function(){if(!o._target)return;r=document.elementFromPoint(u.clientX,u.clientY),o._updateVisibility(r)},0)}},{key:"_showCursor",value:function(){this._canvas.style.visibility==="hidden"&&(this._canvas.style.visibility="")}},{key:"_hideCursor",value:function(){this._canvas.style.visibility!=="hidden"&&(this._canvas.style.visibility="hidden")}},{key:"_shouldShowCursor",value:function(u){return u?u===this._target?!0:this._target.contains(u)?!(window.getComputedStyle(u).cursor!=="none"):!1:!1}},{key:"_updateVisibility",value:function(u){this._captureIsActive()&&(u=document.captureElement),this._shouldShowCursor(u)?this._showCursor():this._hideCursor()}},{key:"_updatePosition",value:function(){this._canvas.style.left=this._position.x+"px",this._canvas.style.top=this._position.y+"px"}},{key:"_captureIsActive",value:function(){return document.captureElement&&document.documentElement.contains(document.captureElement)}}]),f}();F.default=a},sR1s:function(S,F,v){"use strict";v.d(F,"b",function(){return m}),v.d(F,"a",function(){return g}),v.d(F,"c",function(){return a}),v.d(F,"d",function(){return f});var w=v("U8pU"),h="RC_TABLE_KEY";function I(d){return d==null?[]:Array.isArray(d)?d:[d]}function m(d,u){if(!u&&typeof u!="number")return d;for(var o=I(u),r=d,l=0;l<o.length;l+=1){if(!r)return null;var n=o[l];r=r[n]}return r}function g(d){var u=[],o={};return d.forEach(function(r){for(var l=r||{},n=l.key,s=l.dataIndex,e=n||I(s).join("-")||h;o[e];)e="".concat(e,"_next");o[e]=!0,u.push(e)}),u}function a(){var d={};function u(n,s){s&&Object.keys(s).forEach(function(e){var i=s[e];i&&Object(w.a)(i)==="object"?(n[e]=n[e]||{},u(n[e],i)):n[e]=i})}for(var o=arguments.length,r=new Array(o),l=0;l<o;l++)r[l]=arguments[l];return r.forEach(function(n){u(d,n)}),d}function f(d){return d!=null}},sboe:function(S,F,v){"use strict";v.d(F,"a",function(){return I});var w=v("cDcd"),h=v.n(w),I=w.createContext(null)},sjKO:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=I;var w=30,h=12;function I(m,g){var a,f,d,u,o,r,l,n,s,e,i,_,b,y,E,c,C,x,M,k,T,R,P,B,W;a=m.state,f=m.next_in,B=m.input,d=f+(m.avail_in-5),u=m.next_out,W=m.output,o=u-(g-m.avail_out),r=u+(m.avail_out-257),l=a.dmax,n=a.wsize,s=a.whave,e=a.wnext,i=a.window,_=a.hold,b=a.bits,y=a.lencode,E=a.distcode,c=(1<<a.lenbits)-1,C=(1<<a.distbits)-1;e:do{b<15&&(_+=B[f++]<<b,b+=8,_+=B[f++]<<b,b+=8),x=y[_&c];t:for(;;){if(M=x>>>24,_>>>=M,b-=M,M=x>>>16&255,M===0)W[u++]=x&65535;else if(M&16){k=x&65535,M&=15,M&&(b<M&&(_+=B[f++]<<b,b+=8),k+=_&(1<<M)-1,_>>>=M,b-=M),b<15&&(_+=B[f++]<<b,b+=8,_+=B[f++]<<b,b+=8),x=E[_&C];n:for(;;){if(M=x>>>24,_>>>=M,b-=M,M=x>>>16&255,M&16){if(T=x&65535,M&=15,b<M&&(_+=B[f++]<<b,b+=8,b<M&&(_+=B[f++]<<b,b+=8)),T+=_&(1<<M)-1,T>l){m.msg="invalid distance too far back",a.mode=w;break e}if(_>>>=M,b-=M,M=u-o,T>M){if(M=T-M,M>s&&a.sane){m.msg="invalid distance too far back",a.mode=w;break e}if(R=0,P=i,e===0){if(R+=n-M,M<k){k-=M;do W[u++]=i[R++];while(--M);R=u-T,P=W}}else if(e<M){if(R+=n+e-M,M-=e,M<k){k-=M;do W[u++]=i[R++];while(--M);if(R=0,e<k){M=e,k-=M;do W[u++]=i[R++];while(--M);R=u-T,P=W}}}else if(R+=e-M,M<k){k-=M;do W[u++]=i[R++];while(--M);R=u-T,P=W}for(;k>2;)W[u++]=P[R++],W[u++]=P[R++],W[u++]=P[R++],k-=3;k&&(W[u++]=P[R++],k>1&&(W[u++]=P[R++]))}else{R=u-T;do W[u++]=W[R++],W[u++]=W[R++],W[u++]=W[R++],k-=3;while(k>2);k&&(W[u++]=W[R++],k>1&&(W[u++]=W[R++]))}}else if((M&64)===0){x=E[(x&65535)+(_&(1<<M)-1)];continue n}else{m.msg="invalid distance code",a.mode=w;break e}break}}else if((M&64)===0){x=y[(x&65535)+(_&(1<<M)-1)];continue t}else if(M&32){a.mode=h;break e}else{m.msg="invalid literal/length code",a.mode=w;break e}break}}while(f<d&&u<r);k=b>>3,f-=k,b-=k<<3,_&=(1<<b)-1,m.next_in=f,m.next_out=u,m.avail_in=f<d?5+(d-f):5-(f-d),m.avail_out=u<r?257+(r-u):257-(u-r),a.hold=_,a.bits=b;return}},t23M:function(S,F,v){"use strict";var w=v("VTBJ"),h=v("1OyB"),I=v("vuIU"),m=v("Ji7U"),g=v("LK+K"),a=v("cDcd"),f=v.n(a),d=v("m+aA"),u=v("Zm9Q"),o=v("Kwbf"),r=v("c+Xe"),l=v("bdgK"),n="rc-observer-key",s=function(e){Object(m.a)(_,e);var i=Object(g.a)(_);function _(){var b;return Object(h.a)(this,_),b=i.apply(this,arguments),b.resizeObserver=null,b.childNode=null,b.currentElement=null,b.state={width:0,height:0,offsetHeight:0,offsetWidth:0},b.onResize=function(y){var E=b.props.onResize,c=y[0].target,C=c.getBoundingClientRect(),x=C.width,M=C.height,k=c.offsetWidth,T=c.offsetHeight,R=Math.floor(x),P=Math.floor(M);if(b.state.width!==R||b.state.height!==P||b.state.offsetWidth!==k||b.state.offsetHeight!==T){var B={width:R,height:P,offsetWidth:k,offsetHeight:T};b.setState(B),E&&Promise.resolve().then(function(){E(Object(w.a)(Object(w.a)({},B),{},{offsetWidth:k,offsetHeight:T}))})}},b.setChildNode=function(y){b.childNode=y},b}return Object(I.a)(_,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var y=this.props.disabled;if(y){this.destroyObserver();return}var E=Object(d.a)(this.childNode||this),c=E!==this.currentElement;c&&(this.destroyObserver(),this.currentElement=E),!this.resizeObserver&&E&&(this.resizeObserver=new l.default(this.onResize),this.resizeObserver.observe(E))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var y=this.props.children,E=Object(u.a)(y);if(E.length>1)Object(o.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(E.length===0)return Object(o.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var c=E[0];if(a.isValidElement(c)&&Object(r.c)(c)){var C=c.ref;E[0]=a.cloneElement(c,{ref:Object(r.a)(C,this.setChildNode)})}return E.length===1?E[0]:E.map(function(x,M){return!a.isValidElement(x)||"key"in x&&x.key!==null?x:a.cloneElement(x,{key:"".concat(n,"-").concat(M)})})}}]),_}(a.Component);s.displayName="ResizeObserver",F.a=s},tUsH:function(S,F){S.exports="data:image/png;base64,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"},tWlo:function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6RUI0Q0ExMzI4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RUI0Q0ExMzM4Q0YxMTFFOTg3M0JGQzEzN0EyNzkwRjkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7p3KzkAAAFvElEQVR42sRae0ybVRQ/peVRaFce8pwgj1Je5TFsEHGbMAkzmqiJyba4hYh/LJlxiRr9Z0aNGv8xvhKTGckM2zKWmGEgU7MsPnCZIrKBjMcKY9BCBMqjjEcLtFDwHPZVC12h934f8yS/P6Dfud/5nXvvueec+8neOPEuSCAxiDJEMSITkYKIRoQJv9sREwgTogfRjGhEjIt9sUKEbhSiEvEC4mGEbJNngxGRiAzEk8L/VhGtiPOIswgrjxEBHDrxiE8Qg4hPEYYtjPclMkGXxhhCfIFI2E4CNFtvIm4hXvdYHlJIKOIVRK/wjkCpCaQjWhAfIVSwfaIS3kHvypaKwLOI64hdcP+kAPEn4jmxBI4ivkXsgPsvNBt1gg1cBI4hvkLI4f8TuWDDMdYw+owQFdh3Y6gSCnL1oNOmQnxcHAQHB8HCwiLMzM7C8KgFjD23oN9khtXVVZZhyZZhxEV/CGQhalk9r1AoYO9jxfBokQGCgoK8SBHi42LBsCsfJq1TcOnHn+F2v4llJsimIoRx3Q8le0o9/6bwdRmRxGJ8ZEQ4vHjkEORkZYBcLvdrlvL0OeBwOuDv4RF/X0Ne2Y34GrHiaw+8ishnMT4tNRmOVlVCTPQDzKfY/vJ9kJWpY1Ej217ztYnpFHyH6UjGJXH4wPOgVIZw7VAi8XRFOSjkTKv1bc8T25PACdZDan95mV9LZjNRq1Wg02lZw+tbGwnQ/L/EMooyJASSkxIliZUp7ONUCTb/S+AI2cTqOZlMJgmBcI2GVUUp2LyOAJMwxvHN04EAnqQYDrsJUDFSyKrtdC5JRmDR4eBRoxokgQjs48nn5+fnJSNgt3ONRTaXEYFHeLSXlpd5Peclk1Yrr6ohQKhhuWR6ekYSAiOWMV7VDCKg5Z0/uwTLaNnlAssYd22fTgRieTRz9dmQlpIsmgCdwuWle3nVY4mAmkczLCxUsk0cEaHhVVUH8GqOT0xKRmB6ZpZX1UkE5ng0zeYhsNntkhBgqAs2yhwR4AoBrpUVaO/oEm38nelp6B/gJnCHCNzm1f79jxaWgsRLbDY7XKj/Dlb405I+ItDDqz2/sACnTp9DEqNc+qfO1MLwyKiYCewNEPov3EK+G59k39BOp3Nt+YiUViLQKNjBH8sV7EXNivhslgb4xb2J28SMtMSRmbrwBBYpZPOI+xw4J2aka23tzB4VETrdct6zoCECC7wjjWIy1tbewZT//9R4RYzxZOtZTwK0C2vEjHjT2Ov3sx2d3TA7ZxPzuhrB5nVdiQ8pNPPvKP+XkEjjbYKtXm0VOpHe5x01KDDI72dFtmI+EGz1IkDyOeIvnlETH/T/digqKoLXeLLts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},taB1:function(S,F,v){S.exports={flex_box_center:"flex_box_center___ERnuX",flex_space_between:"flex_space_between___1CjDP",flex_box_vertical_center:"flex_box_vertical_center___71N1n",flex_box_center_end:"flex_box_center_end___3etWq",flex_box_column:"flex_box_column___26rae",files:"files___2Jd2C"}},uGsb:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("MlIO"),v("1uat"))})(this,function(w){return function(){var h=w,I=h.x64,m=I.Word,g=I.WordArray,a=h.algo,f=a.SHA512,d=a.SHA384=f.extend({_doReset:function(){this._hash=new g.init([new m.init(3418070365,3238371032),new m.init(1654270250,914150663),new m.init(2438529370,812702999),new m.init(355462360,4144912697),new m.init(1731405415,4290775857),new m.init(2394180231,1750603025),new m.init(3675008525,1694076839),new m.init(1203062813,3204075428)])},_doFinalize:function(){var u=f._doFinalize.call(this);return u.sigBytes-=16,u}});h.SHA384=f._createHelper(d),h.HmacSHA384=f._createHmacHelper(d)}(),w.SHA384})},uGxW:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("OLod"))})(this,function(w){return w.pad.NoPadding={pad:function(){},unpad:function(){}},w.pad.NoPadding})},uQRt:function(S,F,v){S.exports=w;function w(){return v("gaXo"),{}}},vHTk:function(S,F,v){S.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vS10:function(S,F,v){"use strict";v.d(F,"h",function(){return g}),v.d(F,"d",function(){return f}),v.d(F,"c",function(){return u}),v.d(F,"e",function(){return r}),v.d(F,"g",function(){return n}),v.d(F,"a",function(){return e}),v.d(F,"i",function(){return _}),v.d(F,"b",function(){return y}),v.d(F,"f",function(){return c});var w=v("9og8"),h=v("WmNS"),I=v.n(h),m=v("ErOA");function g(k){return a.apply(this,arguments)}function a(){return a=Object(w.a)(I.a.mark(function k(T){return I.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",Object(m.a)("/api/jupyters/save_with_tpi.json",{method:"Get",params:T}));case 1:case"end":return P.stop()}},k)})),a.apply(this,arguments)}function f(k){return d.apply(this,arguments)}function d(){return d=Object(w.a)(I.a.mark(function k(T){return I.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",Object(m.a)("/api/tasks/".concat(T.identifier,"/jupyter.json"),{method:"Get",params:T}));case 1:case"end":return P.stop()}},k)})),d.apply(this,arguments)}function u(k){return o.apply(this,arguments)}function o(){return o=Object(w.a)(I.a.mark(function k(T){return I.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",Object(m.a)("/api/myshixuns/".concat(T.identifier,"/start.json"),{method:"Get",params:T}));case 1:case"end":return P.stop()}},k)})),o.apply(this,arguments)}function r(k){return l.apply(this,arguments)}function l(){return l=Object(w.a)(I.a.mark(function k(T){return I.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",Object(m.a)("/api/jupyters/timeinfo_with_tpi.json",{method:"Get",params:T}));case 1:case"end":return P.stop()}},k)})),l.apply(this,arguments)}function n(k){return s.apply(this,arguments)}function s(){return s=Object(w.a)(I.a.mark(function k(T){return I.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",Object(m.a)("/api/myshixuns/".concat(T.identifier,"/reset_pod.json"),{method:"Get"}));case 1:case"end":return P.stop()}},k)})),s.apply(this,arguments)}function e(k){return i.apply(this,arguments)}function i(){return i=Object(w.a)(I.a.mark(function k(T){return I.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",Object(m.a)("/api/jupyters/active_with_tpi.json",{method:"Get",params:T}));case 1:case"end":return P.stop()}},k)})),i.apply(this,arguments)}function _(k){return b.apply(this,arguments)}function b(){return b=Object(w.a)(I.a.mark(function k(T){return I.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",Object(m.a)("/api/myshixuns/".concat(T.identifier,"/sync_code.json"),{method:"Post",params:T}));case 1:case"end":return P.stop()}},k)})),b.apply(this,arguments)}function y(k){return E.apply(this,arguments)}function E(){return E=Object(w.a)(I.a.mark(function k(T){return I.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",Object(m.a)("/api/shixuns/".concat(T.identifier,"/get_data_sets.json"),{method:"Get",params:T}));case 1:case"end":return P.stop()}},k)})),E.apply(this,arguments)}function c(k){return C.apply(this,arguments)}function C(){return C=Object(w.a)(I.a.mark(function k(T){return I.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",Object(m.a)("/api/tasks/".concat(T.identifier,"/reboot_esc.json"),{method:"post"}));case 1:case"end":return P.stop()}},k)})),C.apply(this,arguments)}function x(k){return M.apply(this,arguments)}function M(){return M=Object(w.a)(I.a.mark(function k(T){return I.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.abrupt("return",Object(m.a)("/api/tasks/".concat(T.taskId,"/get_latex_file_tree.json"),{method:"Get",params:T}));case 1:case"end":return P.stop()}},k)})),M.apply(this,arguments)}},vewr:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.getPointerEvent=w,F.stopEvent=h,F.setCapture=d,F.releaseCapture=u;function w(o){return o.changedTouches?o.changedTouches[0]:o.touches?o.touches[0]:o}function h(o){o.stopPropagation(),o.preventDefault()}var I=!1,m=null;document.captureElement=null;function g(o){if(I)return;var r=new o.constructor(o.type,o);I=!0,document.captureElement?document.captureElement.dispatchEvent(r):m.dispatchEvent(r),I=!1,o.stopPropagation(),r.defaultPrevented&&o.preventDefault(),o.type==="mouseup"&&u()}function a(){var o=document.getElementById("noVNC_mouse_capture_elem");o.style.cursor=window.getComputedStyle(document.captureElement).cursor}var f=new MutationObserver(a);function d(o){if(o.setCapture)o.setCapture(),document.captureElement=o,o.addEventListener("mouseup",u);else{u();var r=document.getElementById("noVNC_mouse_capture_elem");r===null&&(r=document.createElement("div"),r.id="noVNC_mouse_capture_elem",r.style.position="fixed",r.style.top="0px",r.style.left="0px",r.style.width="100%",r.style.height="100%",r.style.zIndex=1e4,r.style.display="none",document.body.appendChild(r),r.addEventListener("contextmenu",g),r.addEventListener("mousemove",g),r.addEventListener("mouseup",g)),document.captureElement=o,f.observe(o,{attributes:!0}),a(),r.style.display="",window.addEventListener("mousemove",g),window.addEventListener("mouseup",g)}}function u(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;m=document.captureElement,document.captureElement=null,f.disconnect();var o=document.getElementById("noVNC_mouse_capture_elem");o.style.display="none",window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",g)}}},w7YG:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("ETIr"),v("cv67"),v("K3mO"),v("OLod"))})(this,function(w){return function(){var h=w,I=h.lib,m=I.StreamCipher,g=h.algo,a=g.RC4=m.extend({_doReset:function(){for(var u=this._key,o=u.words,r=u.sigBytes,l=this._S=[],n=0;n<256;n++)l[n]=n;for(var n=0,s=0;n<256;n++){var e=n%r,i=o[e>>>2]>>>24-e%4*8&255;s=(s+l[n]+i)%256;var _=l[n];l[n]=l[s],l[s]=_}this._i=this._j=0},_doProcessBlock:function(u,o){u[o]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var u=this._S,o=this._i,r=this._j,l=0,n=0;n<4;n++){o=(o+1)%256,r=(r+u[o])%256;var s=u[o];u[o]=u[r],u[r]=s,l|=u[(u[o]+u[r])%256]<<24-n*8}return this._i=o,this._j=r,l}h.RC4=m._createHelper(a);var d=g.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)f.call(this)}});h.RC4Drop=m._createHelper(d)}(),w.RC4})},wCXF:function(S,F,v){"use strict";v.d(F,"a",function(){return Fe});var w=v("rePB"),h=v("VTBJ"),I=v("KQm4"),m=v("U8pU"),g=v("ODXe"),a=v("cDcd"),f=v("TSYQ"),d=v.n(f),u=v("Gytx"),o=v.n(u),r=v("Kwbf"),l=v("t23M"),n=v("qx4F"),s=v("6eGT"),e=v("IBYe"),i=v("Ff2n"),_=v("c+Xe"),b=v("fyJ8"),y=v("biw7");function E(_e,Ne,Q,Ue,Ze){var Te=Q[_e]||{},He=Q[Ne]||{},Ye,st;Te.fixed==="left"?Ye=Ue.left[_e]:He.fixed==="right"&&(st=Ue.right[Ne]);var ut=!1,et=!1,Re=!1,qe=!1,At=Q[Ne+1],$e=Q[_e-1];if(Ze==="rtl"){if(Ye!==void 0){var ht=$e&&$e.fixed==="left";qe=!ht}else if(st!==void 0){var Rt=At&&At.fixed==="right";Re=!Rt}}else if(Ye!==void 0){var pt=At&&At.fixed==="left";ut=!pt}else if(st!==void 0){var wt=$e&&$e.fixed==="right";et=!wt}return{fixLeft:Ye,fixRight:st,lastFixLeft:ut,firstFixRight:et,lastFixRight:Re,firstFixLeft:qe,isSticky:Ue.isSticky}}var c=v("sR1s");function C(_e){var Ne=_e.cells,Q=_e.stickyOffsets,Ue=_e.flattenColumns,Ze=_e.rowComponent,Te=_e.cellComponent,He=_e.onHeaderRow,Ye=_e.index,st=a.useContext(y.a),ut=st.prefixCls,et=st.direction,Re;He&&(Re=He(Ne.map(function(At){return At.column}),Ye));var qe=Object(c.a)(Ne.map(function(At){return At.column}));return a.createElement(Ze,Object.assign({},Re),Ne.map(function(At,$e){var ht=At.column,Rt=E(At.colStart,At.colEnd,Ue,Q,et),pt;return ht&&ht.onHeaderCell&&(pt=At.column.onHeaderCell(ht)),a.createElement(b.a,Object.assign({},At,{ellipsis:ht.ellipsis,align:ht.align,component:Te,prefixCls:ut,key:qe[$e]},Rt,{additionalProps:pt,rowType:"header"}))}))}C.displayName="HeaderRow";var x=C;function M(_e){var Ne=[];function Q(He,Ye){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ne[st]=Ne[st]||[];var ut=Ye,et=He.filter(Boolean).map(function(Re){var qe={key:Re.key,className:Re.className||"",children:Re.title,column:Re,colStart:ut},At=1,$e=Re.children;return $e&&$e.length>0&&(At=Q($e,ut,st+1).reduce(function(ht,Rt){return ht+Rt},0),qe.hasSubColumns=!0),"colSpan"in Re&&(At=Re.colSpan),"rowSpan"in Re&&(qe.rowSpan=Re.rowSpan),qe.colSpan=At,qe.colEnd=qe.colStart+At-1,Ne[st].push(qe),ut+=At,At});return et}Q(_e,0);for(var Ue=Ne.length,Ze=function(Ye){Ne[Ye].forEach(function(st){!("rowSpan"in st)&&!st.hasSubColumns&&(st.rowSpan=Ue-Ye)})},Te=0;Te<Ue;Te+=1)Ze(Te);return Ne}function k(_e){var Ne=_e.stickyOffsets,Q=_e.columns,Ue=_e.flattenColumns,Ze=_e.onHeaderRow,Te=a.useContext(y.a),He=Te.prefixCls,Ye=Te.getComponent,st=a.useMemo(function(){return M(Q)},[Q]),ut=Ye(["header","wrapper"],"thead"),et=Ye(["header","row"],"tr"),Re=Ye(["header","cell"],"th");return a.createElement(ut,{className:"".concat(He,"-thead")},st.map(function(qe,At){var $e=a.createElement(x,{key:At,flattenColumns:Ue,cells:qe,stickyOffsets:Ne,rowComponent:et,cellComponent:Re,onHeaderRow:Ze,index:At});return $e}))}var T=k,R=v("hW8S");function P(_e){for(var Ne=_e.colWidths,Q=_e.columns,Ue=_e.columCount,Ze=[],Te=Ue||Q.length,He=!1,Ye=Te-1;Ye>=0;Ye-=1){var st=Ne[Ye],ut=Q&&Q[Ye],et=ut&&ut[R.a];(st||et||He)&&(Ze.unshift(a.createElement("col",Object.assign({key:Ye,style:{width:st,minWidth:st}},et))),He=!0)}return a.createElement("colgroup",null,Ze)}var B=P;function W(_e,Ne){return Object(a.useMemo)(function(){for(var Q=[],Ue=0;Ue<Ne;Ue+=1){var Ze=_e[Ue];if(Ze!==void 0)Q[Ue]=Ze;else return null}return Q},[_e.join("_"),Ne])}var z=a.forwardRef(function(_e,Ne){var Q=_e.noData,Ue=_e.columns,Ze=_e.flattenColumns,Te=_e.colWidths,He=_e.columCount,Ye=_e.stickyOffsets,st=_e.direction,ut=_e.fixHeader,et=_e.offsetHeader,Re=_e.stickyClassName,qe=_e.onScroll,At=Object(i.a)(_e,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),$e=a.useContext(y.a),ht=$e.prefixCls,Rt=$e.scrollbarSize,pt=$e.isSticky,wt=pt&&!ut?0:Rt,Ct=a.useRef(null),Kt=a.useCallback(function(Wt){Object(_.b)(Ne,Wt),Object(_.b)(Ct,Wt)},[]);a.useEffect(function(){var Wt;function gn(ln){var Un=ln.currentTarget,In=ln.deltaX;In&&(qe({currentTarget:Un,scrollLeft:Un.scrollLeft+In}),ln.preventDefault())}return(Wt=Ct.current)===null||Wt===void 0||Wt.addEventListener("wheel",gn),function(){var ln;(ln=Ct.current)===null||ln===void 0||ln.removeEventListener("wheel",gn)}},[]);var Vt=Ze[Ze.length-1],dn={fixed:Vt?Vt.fixed:null,onHeaderCell:function(){return{className:"".concat(ht,"-cell-scrollbar")}}},cn=Object(a.useMemo)(function(){return wt?[].concat(Object(I.a)(Ue),[dn]):Ue},[wt,Ue]),qt=Object(a.useMemo)(function(){return wt?[].concat(Object(I.a)(Ze),[dn]):Ze},[wt,Ze]),Lt=Object(a.useMemo)(function(){var Wt=Ye.right,gn=Ye.left;return Object(h.a)(Object(h.a)({},Ye),{},{left:st==="rtl"?[].concat(Object(I.a)(gn.map(function(ln){return ln+wt})),[0]):gn,right:st==="rtl"?Wt:[].concat(Object(I.a)(Wt.map(function(ln){return ln+wt})),[0]),isSticky:pt})},[wt,Ye,pt]),Tn=W(Te,He);return a.createElement("div",{style:Object(h.a)({overflow:"hidden"},pt?{top:et}:{}),ref:Kt,className:d()("".concat(ht,"-header"),Object(w.a)({},Re,!!Re))},a.createElement("table",{style:{tableLayout:"fixed",visibility:Q||Tn?null:"hidden"}},a.createElement(B,{colWidths:Tn?[].concat(Object(I.a)(Tn),[wt]):[],columCount:He+1,columns:qt}),a.createElement(T,Object.assign({},At,{stickyOffsets:Lt,columns:cn,flattenColumns:qt}))))});z.displayName="FixedHeader";var H=z,ee=a.createContext(null),G=ee;function U(_e){var Ne=_e.prefixCls,Q=_e.children,Ue=_e.component,Ze=_e.cellComponent,Te=_e.fixHeader,He=_e.fixColumn,Ye=_e.horizonScroll,st=_e.className,ut=_e.expanded,et=_e.componentWidth,Re=_e.colSpan,qe=a.useContext(y.a),At=qe.scrollbarSize;return a.useMemo(function(){var $e=Q;return He&&($e=a.createElement("div",{style:{width:et-(Te?At:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ne,"-expanded-row-fixed")},$e)),a.createElement(Ue,{className:st,style:{display:ut?null:"none"}},a.createElement(b.a,{component:Ze,prefixCls:Ne,colSpan:Re},$e))},[Q,Ue,Te,Ye,st,ut,et,Re,At])}var K=U;function L(_e){var Ne=_e.className,Q=_e.style,Ue=_e.record,Ze=_e.index,Te=_e.rowKey,He=_e.getRowKey,Ye=_e.rowExpandable,st=_e.expandedKeys,ut=_e.onRow,et=_e.indent,Re=et===void 0?0:et,qe=_e.rowComponent,At=_e.cellComponent,$e=_e.childrenColumnName,ht=a.useContext(y.a),Rt=ht.prefixCls,pt=ht.fixedInfoList,wt=a.useContext(G),Ct=wt.fixHeader,Kt=wt.fixColumn,Vt=wt.horizonScroll,dn=wt.componentWidth,cn=wt.flattenColumns,qt=wt.expandableType,Lt=wt.expandRowByClick,Tn=wt.onTriggerExpand,Wt=wt.rowClassName,gn=wt.expandedRowClassName,ln=wt.indentSize,Un=wt.expandIcon,In=wt.expandedRowRender,Rr=wt.expandIconColumnIndex,Mt=a.useState(!1),on=Object(g.a)(Mt,2),ea=on[0],Vr=on[1],vr=st&&st.has(_e.recordKey);a.useEffect(function(){vr&&Vr(!0)},[vr]);var jr=qt==="row"&&(!Ye||Ye(Ue)),wa=qt==="nest",An=$e&&Ue&&Ue[$e],ur=jr||wa,Ut;ut&&(Ut=ut(Ue,Ze));var tr=function(Ca){if(Lt&&ur&&Tn(Ue,Ca),Ut&&Ut.onClick){for(var ia,Ur=arguments.length,Yr=new Array(Ur>1?Ur-1:0),zn=1;zn<Ur;zn++)Yr[zn-1]=arguments[zn];(ia=Ut).onClick.apply(ia,[Ca].concat(Yr))}},Yn;typeof Wt=="string"?Yn=Wt:typeof Wt=="function"&&(Yn=Wt(Ue,Ze,Re));var Xn=Object(c.a)(cn),nr=a.createElement(qe,Object.assign({},Ut,{"data-row-key":Te,className:d()(Ne,"".concat(Rt,"-row"),"".concat(Rt,"-row-level-").concat(Re),Yn,Ut&&Ut.className),style:Object(h.a)(Object(h.a)({},Q),Ut?Ut.style:null),onClick:tr}),cn.map(function(hr,Ca){var ia=hr.render,Ur=hr.dataIndex,Yr=hr.className,zn=Xn[Ca],Gn=pt[Ca],Pn;Ca===(Rr||0)&&wa&&(Pn=a.createElement(a.Fragment,null,a.createElement("span",{style:{paddingLeft:"".concat(ln*Re,"px")},className:"".concat(Rt,"-row-indent indent-level-").concat(Re)}),Un({prefixCls:Rt,expanded:vr,expandable:An,record:Ue,onExpand:Tn})));var rr;return hr.onCell&&(rr=hr.onCell(Ue,Ze)),a.createElement(b.a,Object.assign({className:Yr,ellipsis:hr.ellipsis,align:hr.align,component:At,prefixCls:Rt,key:zn,record:Ue,index:Ze,dataIndex:Ur,render:ia,shouldCellUpdate:hr.shouldCellUpdate},Gn,{appendNode:Pn,additionalProps:rr}))})),br;if(jr&&(ea||vr)){var xa=In(Ue,Ze,Re+1,vr),Wr=gn&&gn(Ue,Ze,Re);br=a.createElement(K,{expanded:vr,className:d()("".concat(Rt,"-expanded-row"),"".concat(Rt,"-expanded-row-level-").concat(Re+1),Wr),prefixCls:Rt,fixHeader:Ct,fixColumn:Kt,horizonScroll:Vt,component:qe,componentWidth:dn,cellComponent:At,colSpan:cn.length},xa)}var Ir;return An&&vr&&(Ir=(Ue[$e]||[]).map(function(hr,Ca){var ia=He(hr,Ca);return a.createElement(L,Object.assign({},_e,{key:ia,rowKey:ia,record:hr,recordKey:ia,index:Ca,indent:Re+1}))})),a.createElement(a.Fragment,null,nr,br,Ir)}L.displayName="BodyRow";var D=L,j=a.createContext(null),Z=j;function ie(_e){var Ne=_e.columnKey,Q=_e.onColumnResize,Ue=a.useRef();return a.useEffect(function(){Ue.current&&Q(Ne,Ue.current.offsetWidth)},[]),a.createElement(l.a,{onResize:function(Te){var He=Te.offsetWidth;Q(Ne,He)}},a.createElement("td",{ref:Ue,style:{padding:0,border:0,height:0}},a.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function pe(_e){var Ne=_e.data,Q=_e.getRowKey,Ue=_e.measureColumnWidth,Ze=_e.expandedKeys,Te=_e.onRow,He=_e.rowExpandable,Ye=_e.emptyNode,st=_e.childrenColumnName,ut=a.useContext(Z),et=ut.onColumnResize,Re=a.useContext(y.a),qe=Re.prefixCls,At=Re.getComponent,$e=a.useContext(G),ht=$e.fixHeader,Rt=$e.horizonScroll,pt=$e.flattenColumns,wt=$e.componentWidth;return a.useMemo(function(){var Ct=At(["body","wrapper"],"tbody"),Kt=At(["body","row"],"tr"),Vt=At(["body","cell"],"td"),dn;Ne.length?dn=Ne.map(function(qt,Lt){var Tn=Q(qt,Lt);return a.createElement(D,{key:Tn,rowKey:Tn,record:qt,recordKey:Tn,index:Lt,rowComponent:Kt,cellComponent:Vt,expandedKeys:Ze,onRow:Te,getRowKey:Q,rowExpandable:He,childrenColumnName:st})}):dn=a.createElement(K,{expanded:!0,className:"".concat(qe,"-placeholder"),prefixCls:qe,fixHeader:ht,fixColumn:Rt,horizonScroll:Rt,component:Kt,componentWidth:wt,cellComponent:Vt,colSpan:pt.length},Ye);var cn=Object(c.a)(pt);return a.createElement(Ct,{className:"".concat(qe,"-tbody")},Ue&&a.createElement("tr",{"aria-hidden":"true",className:"".concat(qe,"-measure-row"),style:{height:0}},cn.map(function(qt){return a.createElement(ie,{key:qt,columnKey:qt,onColumnResize:et})})),dn)},[Ne,qe,Te,Ue,Ze,Q,At,wt,Ye,pt])}var Ee=a.memo(pe);Ee.displayName="Body";var De=Ee,q=v("wRmb"),be=v("xEkU"),ye=v.n(be);function le(_e){var Ne=Object(a.useRef)(_e),Q=Object(a.useState)({}),Ue=Object(g.a)(Q,2),Ze=Ue[1],Te=Object(a.useRef)(null),He=Object(a.useRef)([]);function Ye(st){Te.current===null&&(He.current=[],Te.current=ye()(function(){He.current.forEach(function(ut){Ne.current=ut(Ne.current)}),Te.current=null,Ze({})})),He.current.push(st)}return Object(a.useEffect)(function(){return function(){ye.a.cancel(Te.current)}},[]),[Ne.current,Ye]}function ue(_e){var Ne=Object(a.useRef)(_e),Q=Object(a.useRef)(null);function Ue(){window.clearTimeout(Q.current)}function Ze(He){Ne.current=He,Ue(),Q.current=window.setTimeout(function(){Ne.current=null,Q.current=null},100)}function Te(){return Ne.current}return Object(a.useEffect)(function(){return Ue},[]),[Ze,Te]}function ne(_e,Ne,Q){var Ue=Object(a.useMemo)(function(){for(var Ze=[],Te=[],He=0,Ye=0,st=0;st<Ne;st+=1)if(Q==="rtl"){Te[st]=Ye,Ye+=_e[st]||0;var ut=Ne-st-1;Ze[ut]=He,He+=_e[ut]||0}else{Ze[st]=He,He+=_e[st]||0;var et=Ne-st-1;Te[et]=Ye,Ye+=_e[et]||0}return{left:Ze,right:Te}},[_e,Ne,Q]);return Ue}var xe=ne;function $(_e){var Ne=_e.className,Q=_e.children;return a.createElement("div",{className:Ne},Q)}var oe=$,Le=v("n6Qo");function te(_e){var Ne,Q=_e.prefixCls,Ue=_e.record,Ze=_e.onExpand,Te=_e.expanded,He=_e.expandable,Ye="".concat(Q,"-row-expand-icon");if(!He)return a.createElement("span",{className:d()(Ye,"".concat(Q,"-row-spaced"))});var st=function(et){Ze(Ue,et),et.stopPropagation()};return a.createElement("span",{className:d()(Ye,(Ne={},Object(w.a)(Ne,"".concat(Q,"-row-expanded"),Te),Object(w.a)(Ne,"".concat(Q,"-row-collapsed"),!Te),Ne)),onClick:st})}function Y(_e,Ne,Q){var Ue=[];function Ze(Te){(Te||[]).forEach(function(He,Ye){Ue.push(Ne(He,Ye)),Ze(He[Q])})}return Ze(_e),Ue}var X=v("zT1h"),J=/margin|padding|width|height|max|min|offset/,ve={left:!0,top:!0},he={cssFloat:1,styleFloat:1,float:1};function Ce(_e){return _e.nodeType===1?_e.ownerDocument.defaultView.getComputedStyle(_e,null):{}}function Pe(_e,Ne,Q){if(Ne=Ne.toLowerCase(),Q==="auto"){if(Ne==="height")return _e.offsetHeight;if(Ne==="width")return _e.offsetWidth}return Ne in ve||(ve[Ne]=J.test(Ne)),ve[Ne]?parseFloat(Q)||0:Q}function de(_e,Ne){var Q=arguments.length,Ue=Ce(_e);return Ne=he[Ne]?"cssFloat"in _e.style?"cssFloat":"styleFloat":Ne,Q===1?Ue:Pe(_e,Ne,Ue[Ne]||_e.style[Ne])}function ke(_e,Ne,Q){var Ue=arguments.length;if(Ne=he[Ne]?"cssFloat"in _e.style?"cssFloat":"styleFloat":Ne,Ue===3)return typeof Q=="number"&&J.test(Ne)&&(Q="".concat(Q,"px")),_e.style[Ne]=Q,Q;for(var Ze in Ne)Ne.hasOwnProperty(Ze)&&ke(_e,Ze,Ne[Ze]);return Ce(_e)}function me(_e){return _e===document.body?document.documentElement.clientWidth:_e.offsetWidth}function Be(_e){return _e===document.body?window.innerHeight||document.documentElement.clientHeight:_e.offsetHeight}function ft(){var _e=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ne=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:_e,height:Ne}}function vt(){var _e=document.documentElement.clientWidth,Ne=window.innerHeight||document.documentElement.clientHeight;return{width:_e,height:Ne}}function Xe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Bt(_e){var Ne=_e.getBoundingClientRect(),Q=document.documentElement;return{left:Ne.left+(window.pageXOffset||Q.scrollLeft)-(Q.clientLeft||document.body.clientLeft||0),top:Ne.top+(window.pageYOffset||Q.scrollTop)-(Q.clientTop||document.body.clientTop||0)}}var Ae=function(Ne,Q){var Ue,Ze,Te=Ne.scrollBodyRef,He=Ne.onScroll,Ye=Ne.offsetScroll,st=a.useContext(y.a),ut=st.prefixCls,et=((Ue=Te.current)===null||Ue===void 0?void 0:Ue.scrollWidth)||0,Re=((Ze=Te.current)===null||Ze===void 0?void 0:Ze.clientWidth)||0,qe=et&&Re*(Re/et),At=a.useRef(),$e=le({scrollLeft:0,isHiddenScrollBar:!1}),ht=Object(g.a)($e,2),Rt=ht[0],pt=ht[1],wt=a.useRef({delta:0,x:0}),Ct=a.useState(!1),Kt=Object(g.a)(Ct,2),Vt=Kt[0],dn=Kt[1],cn=function(){dn(!1)},qt=function(ln){ln.persist(),wt.current.delta=ln.pageX-Rt.scrollLeft,wt.current.x=0,dn(!0),ln.preventDefault()},Lt=function(ln){var Un,In=ln||((Un=window)===null||Un===void 0?void 0:Un.event),Rr=In.buttons;if(!Vt||Rr===0){Vt&&dn(!1);return}var Mt=wt.current.x+ln.pageX-wt.current.x-wt.current.delta;Mt<=0&&(Mt=0),Mt+qe>=Re&&(Mt=Re-qe),He({scrollLeft:Mt/Re*(et+2)}),wt.current.x=ln.pageX},Tn=function(){var ln=Bt(Te.current).top,Un=ln+Te.current.offsetHeight,In=document.documentElement.scrollTop+window.innerHeight;Un-Object(n.a)()<=In||ln>=In-Ye?pt(function(Rr){return Object(h.a)(Object(h.a)({},Rr),{},{isHiddenScrollBar:!0})}):pt(function(Rr){return Object(h.a)(Object(h.a)({},Rr),{},{isHiddenScrollBar:!1})})},Wt=function(ln){pt(function(Un){return Object(h.a)(Object(h.a)({},Un),{},{scrollLeft:ln/et*Re||0})})};return a.useImperativeHandle(Q,function(){return{setScrollLeft:Wt}}),a.useEffect(function(){var gn=Object(X.a)(document.body,"mouseup",cn,!1),ln=Object(X.a)(document.body,"mousemove",Lt,!1);return Tn(),function(){gn.remove(),ln.remove()}},[qe,Vt]),a.useEffect(function(){var gn=Object(X.a)(window,"scroll",Tn,!1),ln=Object(X.a)(window,"resize",Tn,!1);return function(){gn.remove(),ln.remove()}},[]),a.useEffect(function(){Rt.isHiddenScrollBar||pt(function(gn){var ln,Un;return Object(h.a)(Object(h.a)({},gn),{},{scrollLeft:Te.current.scrollLeft/((ln=Te.current)===null||ln===void 0?void 0:ln.scrollWidth)*((Un=Te.current)===null||Un===void 0?void 0:Un.clientWidth)})})},[Rt.isHiddenScrollBar]),et<=Re||!qe||Rt.isHiddenScrollBar?null:a.createElement("div",{style:{height:Object(n.a)(),width:Re,bottom:Ye},className:"".concat(ut,"-sticky-scroll")},a.createElement("div",{onMouseDown:qt,ref:At,className:d()("".concat(ut,"-sticky-scroll-bar"),Object(w.a)({},"".concat(ut,"-sticky-scroll-bar-active"),Vt)),style:{width:"".concat(qe,"px"),transform:"translate3d(".concat(Rt.scrollLeft,"px, 0, 0)")}}))},We=a.forwardRef(Ae);function dt(_e,Ne){return a.useMemo(function(){var Q=!!_e;return{isSticky:Q,stickyClassName:Q?"".concat(Ne,"-sticky-header"):"",offsetHeader:Object(m.a)(_e)==="object"&&_e.offsetHeader||0,offsetScroll:Object(m.a)(_e)==="object"&&_e.offsetScroll||0}},[_e,Ne])}var Ge=[],je={},Fe="rc-table-internal-hook",ce=a.memo(function(_e){var Ne=_e.children;return Ne},function(_e,Ne){return o()(_e.props,Ne.props)?_e.pingLeft!==Ne.pingLeft||_e.pingRight!==Ne.pingRight:!1});function we(_e){var Ne,Q=_e.prefixCls,Ue=_e.className,Ze=_e.rowClassName,Te=_e.style,He=_e.data,Ye=_e.rowKey,st=_e.scroll,ut=_e.tableLayout,et=_e.direction,Re=_e.title,qe=_e.footer,At=_e.summary,$e=_e.id,ht=_e.showHeader,Rt=_e.components,pt=_e.emptyText,wt=_e.onRow,Ct=_e.onHeaderRow,Kt=_e.internalHooks,Vt=_e.transformColumns,dn=_e.internalRefs,cn=_e.sticky,qt=He||Ge,Lt=!!qt.length,Tn=a.useState(0),Wt=Object(g.a)(Tn,2),gn=Wt[0],ln=Wt[1];a.useEffect(function(){ln(Object(n.a)())});var Un=a.useMemo(function(){return Object(c.c)(Rt,{})},[Rt]),In=a.useCallback(function(Er,fr){return Object(c.b)(Un,Er)||fr},[Un]),Rr=a.useMemo(function(){return typeof Ye=="function"?Ye:function(Er){var fr=Er&&Er[Ye];return fr}},[Ye]),Mt=Object(R.c)(_e),on=Mt.expandIcon,ea=Mt.expandedRowKeys,Vr=Mt.defaultExpandedRowKeys,vr=Mt.defaultExpandAllRows,jr=Mt.expandedRowRender,wa=Mt.onExpand,An=Mt.onExpandedRowsChange,ur=Mt.expandRowByClick,Ut=Mt.rowExpandable,tr=Mt.expandIconColumnIndex,Yn=Mt.expandedRowClassName,Xn=Mt.childrenColumnName,nr=Mt.indentSize,br=on||te,xa=Xn||"children",Wr=a.useMemo(function(){return jr?"row":_e.expandable&&Kt===Fe&&_e.expandable.__PARENT_RENDER_ICON__||qt.some(function(Er){return Er&&Object(m.a)(Er)==="object"&&Er[xa]})?"nest":!1},[!!jr,qt]),Ir=a.useState(function(){return Vr||(vr?Y(qt,Rr,xa):[])}),hr=Object(g.a)(Ir,2),Ca=hr[0],ia=hr[1],Ur=a.useMemo(function(){return new Set(ea||Ca||[])},[ea,Ca]),Yr=a.useCallback(function(Er){var fr=Rr(Er,qt.indexOf(Er)),da,ni=Ur.has(fr);ni?(Ur.delete(fr),da=Object(I.a)(Ur)):da=[].concat(Object(I.a)(Ur),[fr]),ia(da),wa&&wa(!ni,Er),An&&An(da)},[Rr,Ur,qt,wa,An]),zn=a.useState(0),Gn=Object(g.a)(zn,2),Pn=Gn[0],rr=Gn[1],Ja=Object(q.b)(Object(h.a)(Object(h.a)(Object(h.a)({},_e),Mt),{},{expandable:!!jr,expandedKeys:Ur,getRowKey:Rr,onTriggerExpand:Yr,expandIcon:br,expandIconColumnIndex:tr,direction:et}),Kt===Fe?Vt:null),oa=Object(g.a)(Ja,2),Ar=oa[0],Sa=oa[1],yi=a.useMemo(function(){return{columns:Ar,flattenColumns:Sa}},[Ar,Sa]),Eo=a.useRef(),wo=a.useRef(),Ka=a.useRef(),zi=a.useState(!1),Di=Object(g.a)(zi,2),Fo=Di[0],_i=Di[1],fa=a.useState(!1),pr=Object(g.a)(fa,2),ka=pr[0],ui=pr[1],ji=le(new Map),gi=Object(g.a)(ji,2),ei=gi[0],En=gi[1],ua=Object(c.a)(Sa),Mi=ua.map(function(Er){return ei.get(Er)}),ao=a.useMemo(function(){return Mi},[Mi.join("_")]),hi=xe(ao,Sa.length,et),Ia=st&&Object(c.d)(st.y),La=st&&Object(c.d)(st.x),io=La&&Sa.some(function(Er){var fr=Er.fixed;return fr}),Ji=a.useRef(),xo=dt(cn,Q),vo=xo.isSticky,Co=xo.offsetHeader,Ho=xo.offsetScroll,$n=xo.stickyClassName,Cr,ar,Kr;Ia&&(ar={overflowY:"scroll",maxHeight:st.y}),La&&(Cr={overflowX:"auto"},Ia||(ar={overflowY:"hidden"}),Kr={width:st.x===!0?"auto":st.x,minWidth:"100%"});var sa=a.useCallback(function(Er,fr){En(function(da){var ni=new Map(da);return ni.set(Er,fr),ni})},[]),ca=ue(null),Zr=Object(g.a)(ca,2),ti=Zr[0],Ci=Zr[1];function Sr(Er,fr){if(!fr)return;typeof fr=="function"?fr(Er):fr.scrollLeft!==Er&&(fr.scrollLeft=Er)}var Gi=function(fr){var da=fr.currentTarget,ni=fr.scrollLeft,qa=typeof ni=="number"?ni:da.scrollLeft,Fi=da||je;if(!Ci()||Ci()===Fi){var Mo;ti(Fi),Sr(qa,wo.current),Sr(qa,Ka.current),Sr(qa,(Mo=Ji.current)===null||Mo===void 0?void 0:Mo.setScrollLeft)}if(da){var Qe=da.scrollWidth,_t=da.clientWidth;_i(qa>0),ui(qa<Qe-_t)}},ha=function(){Ka.current&&Gi({currentTarget:Ka.current})},Si=function(fr){var da=fr.width;ha(),rr(Eo.current?Eo.current.offsetWidth:da)};a.useEffect(function(){return ha},[]),a.useEffect(function(){La&&ha()},[La]),a.useEffect(function(){Kt===Fe&&dn&&(dn.body.current=Ka.current)});var Ei=In(["table"],"table"),Ui=a.useMemo(function(){return ut||(io?st.x==="max-content"?"auto":"fixed":Ia||Sa.some(function(Er){var fr=Er.ellipsis;return fr})?"fixed":"auto")},[Ia,io,Sa,ut]),Do,gs={colWidths:ao,columCount:Sa.length,stickyOffsets:hi,onHeaderRow:Ct,fixHeader:Ia},Ao=a.useMemo(function(){return Lt?null:typeof pt=="function"?pt():pt},[Lt,pt]),Za=a.createElement(De,{data:qt,measureColumnWidth:Ia||La||vo,expandedKeys:Ur,rowExpandable:Ut,getRowKey:Rr,onRow:wt,emptyNode:Ao,childrenColumnName:xa}),is=a.createElement(B,{colWidths:Sa.map(function(Er){var fr=Er.width;return fr}),columns:Sa}),Dr=At&&a.createElement(Le.b,null,At(qt)),wn=In(["body"]);if(Ia||vo){var Qn;typeof wn=="function"?(Qn=wn(qt,{scrollbarSize:gn,ref:Ka,onScroll:Gi}),gs.colWidths=Sa.map(function(Er,fr){var da=Er.width,ni=fr===Ar.length-1?da-gn:da;return typeof ni=="number"&&!Number.isNaN(ni)?ni:(Object(r.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Qn=a.createElement("div",{style:Object(h.a)(Object(h.a)({},Cr),ar),onScroll:Gi,ref:Ka,className:d()("".concat(Q,"-body"))},a.createElement(Ei,{style:Object(h.a)(Object(h.a)({},Kr),{},{tableLayout:Ui})},is,Za,Dr),vo&&a.createElement(We,{ref:Ji,offsetScroll:Ho,scrollBodyRef:Ka,onScroll:Gi})),Do=a.createElement(a.Fragment,null,ht!==!1&&a.createElement(H,Object.assign({noData:!qt.length},gs,yi,{direction:et,offsetHeader:Co,stickyClassName:$n,ref:wo,onScroll:Gi})),Qn)}else Do=a.createElement("div",{style:Object(h.a)(Object(h.a)({},Cr),ar),className:d()("".concat(Q,"-content")),onScroll:Gi,ref:Ka},a.createElement(Ei,{style:Object(h.a)(Object(h.a)({},Kr),{},{tableLayout:Ui})},is,ht!==!1&&a.createElement(T,Object.assign({},gs,yi)),Za,Dr));var Cn=Object(R.b)(_e),mr=a.createElement("div",Object.assign({className:d()(Q,Ue,(Ne={},Object(w.a)(Ne,"".concat(Q,"-rtl"),et==="rtl"),Object(w.a)(Ne,"".concat(Q,"-ping-left"),Fo),Object(w.a)(Ne,"".concat(Q,"-ping-right"),ka),Object(w.a)(Ne,"".concat(Q,"-layout-fixed"),ut==="fixed"),Object(w.a)(Ne,"".concat(Q,"-fixed-header"),Ia),Object(w.a)(Ne,"".concat(Q,"-fixed-column"),io),Object(w.a)(Ne,"".concat(Q,"-scroll-horizontal"),La),Object(w.a)(Ne,"".concat(Q,"-has-fix-left"),Sa[0]&&Sa[0].fixed),Object(w.a)(Ne,"".concat(Q,"-has-fix-right"),Sa[Sa.length-1]&&Sa[Sa.length-1].fixed==="right"),Ne)),style:Te,id:$e,ref:Eo},Cn),a.createElement(ce,{pingLeft:Fo,pingRight:ka,props:Object(h.a)(Object(h.a)({},_e),{},{stickyOffsets:hi,mergedExpandedKeys:Ur})},Re&&a.createElement(oe,{className:"".concat(Q,"-title")},Re(qt)),a.createElement("div",{className:"".concat(Q,"-container")},Do),qe&&a.createElement(oe,{className:"".concat(Q,"-footer")},qe(qt))));La&&(mr=a.createElement(l.a,{onResize:Si},mr));var yr=a.useMemo(function(){return{prefixCls:Q,getComponent:In,scrollbarSize:gn,direction:et,fixedInfoList:Sa.map(function(Er,fr){return E(fr,fr,Sa,hi,et)}),isSticky:vo}},[Q,In,gn,et,Sa,hi,et,vo]),Aa=a.useMemo(function(){return Object(h.a)(Object(h.a)({},yi),{},{tableLayout:Ui,rowClassName:Ze,expandedRowClassName:Yn,componentWidth:Pn,fixHeader:Ia,fixColumn:io,horizonScroll:La,expandIcon:br,expandableType:Wr,expandRowByClick:ur,expandedRowRender:jr,onTriggerExpand:Yr,expandIconColumnIndex:tr,indentSize:nr})},[yi,Ui,Ze,Yn,Pn,Ia,io,La,br,Wr,ur,jr,Yr,tr,nr]),Da=a.useMemo(function(){return{onColumnResize:sa}},[sa]);return a.createElement(y.a.Provider,{value:yr},a.createElement(G.Provider,{value:Aa},a.createElement(Z.Provider,{value:Da},mr)))}we.Column=e.a,we.ColumnGroup=s.a,we.Summary=Le.a,we.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var se=F.b=we},wRmb:function(S,F,v){"use strict";v.d(F,"a",function(){return o});var w=v("rePB"),h=v("KQm4"),I=v("VTBJ"),m=v("Ff2n"),g=v("cDcd"),a=v.n(g),f=v("Kwbf"),d=v("Zm9Q"),u=v("hW8S");function o(e){return Object(d.a)(e).filter(function(i){return g.isValidElement(i)}).map(function(i){var _=i.key,b=i.props,y=b.children,E=Object(m.a)(b,["children"]),c=Object(I.a)({key:_},E);return y&&(c.children=o(y)),c})}function r(e){return e.reduce(function(i,_){var b=_.fixed,y=b===!0?"left":b,E=_.children;return E&&E.length>0?[].concat(Object(h.a)(i),Object(h.a)(r(E).map(function(c){return Object(I.a)({fixed:y},c)}))):[].concat(Object(h.a)(i),[Object(I.a)(Object(I.a)({},_),{},{fixed:y})])},[])}function l(e){for(var i=!0,_=0;_<e.length;_+=1){var b=e[_];if(i&&b.fixed!=="left")i=!1;else if(!i&&b.fixed==="left"){Object(f.a)(!1,"Index ".concat(_-1," of `columns` missing `fixed='left'` prop."));break}}for(var y=!0,E=e.length-1;E>=0;E-=1){var c=e[E];if(y&&c.fixed!=="right")y=!1;else if(!y&&c.fixed==="right"){Object(f.a)(!1,"Index ".concat(E+1," of `columns` missing `fixed='right'` prop."));break}}}function n(e){return e.map(function(i){var _=i.fixed,b=Object(m.a)(i,["fixed"]),y=_;return _==="left"?y="right":_==="right"&&(y="left"),Object(I.a)({fixed:y},b)})}function s(e,i){var _=e.prefixCls,b=e.columns,y=e.children,E=e.expandable,c=e.expandedKeys,C=e.getRowKey,x=e.onTriggerExpand,M=e.expandIcon,k=e.rowExpandable,T=e.expandIconColumnIndex,R=e.direction,P=e.expandRowByClick,B=g.useMemo(function(){return b||o(y)},[b,y]),W=g.useMemo(function(){if(E){var ee,G=T||0,U=B[G],K=(ee={},Object(w.a)(ee,u.a,{className:"".concat(_,"-expand-icon-col")}),Object(w.a)(ee,"title",""),Object(w.a)(ee,"fixed",U?U.fixed:null),Object(w.a)(ee,"className","".concat(_,"-row-expand-icon-cell")),Object(w.a)(ee,"render",function(j,Z,ie){var pe=C(Z,ie),Ee=c.has(pe),De=k?k(Z):!0,q=M({prefixCls:_,expanded:Ee,expandable:De,record:Z,onExpand:x});return P?g.createElement("span",{onClick:function(ye){return ye.stopPropagation()}},q):q}),ee),L=B.slice();return G>=0&&L.splice(G,0,K),L}return B},[E,B,C,c,M,R]),z=g.useMemo(function(){var ee=W;return i&&(ee=i(ee)),ee.length||(ee=[{render:function(){return null}}]),ee},[i,W,R]),H=g.useMemo(function(){return R==="rtl"?n(r(z)):r(z)},[z,R]);return[z,H]}F.b=s},wZgz:function(S,F,v){(function(w,h,I){S.exports=F=h(v("Ib8C"),v("ETIr"),v("cv67"),v("K3mO"),v("OLod"))})(this,function(w){return function(){var h=w,I=h.lib,m=I.BlockCipher,g=h.algo,a=[],f=[],d=[],u=[],o=[],r=[],l=[],n=[],s=[],e=[];(function(){for(var b=[],y=0;y<256;y++)y<128?b[y]=y<<1:b[y]=y<<1^283;for(var E=0,c=0,y=0;y<256;y++){var C=c^c<<1^c<<2^c<<3^c<<4;C=C>>>8^C&255^99,a[E]=C,f[C]=E;var x=b[E],M=b[x],k=b[M],T=b[C]*257^C*16843008;d[E]=T<<24|T>>>8,u[E]=T<<16|T>>>16,o[E]=T<<8|T>>>24,r[E]=T;var T=k*16843009^M*65537^x*257^E*16843008;l[C]=T<<24|T>>>8,n[C]=T<<16|T>>>16,s[C]=T<<8|T>>>24,e[C]=T,E?(E=x^b[b[b[k^x]]],c^=b[b[c]]):E=c=1}})();var i=[0,1,2,4,8,16,32,64,128,27,54],_=g.AES=m.extend({_doReset:function(){var b;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var y=this._keyPriorReset=this._key,E=y.words,c=y.sigBytes/4,C=this._nRounds=c+6,x=(C+1)*4,M=this._keySchedule=[],k=0;k<x;k++)k<c?M[k]=E[k]:(b=M[k-1],k%c?c>6&&k%c==4&&(b=a[b>>>24]<<24|a[b>>>16&255]<<16|a[b>>>8&255]<<8|a[b&255]):(b=b<<8|b>>>24,b=a[b>>>24]<<24|a[b>>>16&255]<<16|a[b>>>8&255]<<8|a[b&255],b^=i[k/c|0]<<24),M[k]=M[k-c]^b);for(var T=this._invKeySchedule=[],R=0;R<x;R++){var k=x-R;if(R%4)var b=M[k];else var b=M[k-4];R<4||k<=4?T[R]=b:T[R]=l[a[b>>>24]]^n[a[b>>>16&255]]^s[a[b>>>8&255]]^e[a[b&255]]}},encryptBlock:function(b,y){this._doCryptBlock(b,y,this._keySchedule,d,u,o,r,a)},decryptBlock:function(b,y){var E=b[y+1];b[y+1]=b[y+3],b[y+3]=E,this._doCryptBlock(b,y,this._invKeySchedule,l,n,s,e,f);var E=b[y+1];b[y+1]=b[y+3],b[y+3]=E},_doCryptBlock:function(b,y,E,c,C,x,M,k){for(var T=this._nRounds,R=b[y]^E[0],P=b[y+1]^E[1],B=b[y+2]^E[2],W=b[y+3]^E[3],z=4,H=1;H<T;H++){var ee=c[R>>>24]^C[P>>>16&255]^x[B>>>8&255]^M[W&255]^E[z++],G=c[P>>>24]^C[B>>>16&255]^x[W>>>8&255]^M[R&255]^E[z++],U=c[B>>>24]^C[W>>>16&255]^x[R>>>8&255]^M[P&255]^E[z++],K=c[W>>>24]^C[R>>>16&255]^x[P>>>8&255]^M[B&255]^E[z++];R=ee,P=G,B=U,W=K}var ee=(k[R>>>24]<<24|k[P>>>16&255]<<16|k[B>>>8&255]<<8|k[W&255])^E[z++],G=(k[P>>>24]<<24|k[B>>>16&255]<<16|k[W>>>8&255]<<8|k[R&255])^E[z++],U=(k[B>>>24]<<24|k[W>>>16&255]<<16|k[R>>>8&255]<<8|k[P&255])^E[z++],K=(k[W>>>24]<<24|k[R>>>16&255]<<16|k[P>>>8&255]<<8|k[B&255])^E[z++];b[y]=ee,b[y+1]=G,b[y+2]=U,b[y+3]=K},keySize:256/32});h.AES=m._createHelper(_)}(),w.AES})},wbyO:function(S,F,v){(function(w,h){S.exports=F=h(v("Ib8C"))})(this,function(w){return function(){var h=w,I=h.lib,m=I.WordArray,g=h.enc,a=g.Base64url={stringify:function(d,u=!0){var o=d.words,r=d.sigBytes,l=u?this._safe_map:this._map;d.clamp();for(var n=[],s=0;s<r;s+=3)for(var e=o[s>>>2]>>>24-s%4*8&255,i=o[s+1>>>2]>>>24-(s+1)%4*8&255,_=o[s+2>>>2]>>>24-(s+2)%4*8&255,b=e<<16|i<<8|_,y=0;y<4&&s+y*.75<r;y++)n.push(l.charAt(b>>>6*(3-y)&63));var E=l.charAt(64);if(E)for(;n.length%4;)n.push(E);return n.join("")},parse:function(d,u=!0){var o=d.length,r=u?this._safe_map:this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var n=0;n<r.length;n++)l[r.charCodeAt(n)]=n}var s=r.charAt(64);if(s){var e=d.indexOf(s);e!==-1&&(o=e)}return f(d,o,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function f(d,u,o){for(var r=[],l=0,n=0;n<u;n++)if(n%4){var s=o[d.charCodeAt(n-1)]<<n%4*2,e=o[d.charCodeAt(n)]>>>6-n%4*2,i=s|e;r[l>>>2]|=i<<24-l%4*8,l++}return m.create(r,l)}}(),w.enc.Base64url})},whVF:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var w=v("lNSK"),h=I(v("1q3G"));function I(d){return d&&d.__esModule?d:{default:d}}function m(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function g(d,u){for(var o=0;o<u.length;o++){var r=u[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(d,r.key,r)}}function a(d,u,o){return u&&g(d.prototype,u),o&&g(d,o),d}var f=function(){function d(){m(this,d),this.strm=new h.default,this.chunkSize=1024*10*10,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,(0,w.deflateInit)(this.strm,this.windowBits)}return a(d,[{key:"deflate",value:function(o){this.strm.input=o,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0,this.strm.output=this.outputBuffer,this.strm.avail_out=this.chunkSize,this.strm.next_out=0;var r=(0,w.deflate)(this.strm,w.Z_FULL_FLUSH),l=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);if(r<0)throw new Error("zlib deflate failed");if(this.strm.avail_in>0){var n=[l],s=l.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,r=(0,w.deflate)(this.strm,w.Z_FULL_FLUSH),r<0)throw new Error("zlib deflate failed");var e=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);s+=e.length,n.push(e)}while(this.strm.avail_in>0);for(var i=new Uint8Array(s),_=0,b=0;b<n.length;b++)i.set(n[b],_),_+=n[b].length;l=i}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,l}}]),d}();F.default=f},wzkS:function(S,F,v){"use strict";v.d(F,"c",function(){return g}),v.d(F,"b",function(){return a}),v.d(F,"d",function(){return f}),v.d(F,"a",function(){return u}),v.d(F,"e",function(){return o});var w=v("9og8"),h=v("WmNS"),I=v.n(h),m=v("ErOA");function g(r){return Object(m.c)("libraries/".concat(r,".json"))}function a(){return Object(m.c)("library_tags.json")}function f(r){return d.apply(this,arguments)}function d(){return d=Object(w.a)(I.a.mark(function r(l){var n;return I.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(m.b)("attachments/".concat(l,".json"));case 2:return n=e.sent,e.abrupt("return",n.status===0);case 4:case"end":return e.stop()}},r)})),d.apply(this,arguments)}function u(r){return Object(m.f)("libraries.json",r)}function o(r,l){return Object(m.g)("libraries/".concat(r,".json"),l)}},xO64:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var w=h(v("8K/p"));function h(e){return e&&e.__esModule?e:{default:e}}function I(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(_){return typeof _}:I=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},I(e)}function m(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}function g(e,i){for(var _=0;_<i.length;_++){var b=i[_];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(e,b.key,b)}}function a(e,i,_){return i&&g(e.prototype,i),_&&g(e,_),e}function f(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(i&&i.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),i&&d(e,i)}function d(e,i){return d=Object.setPrototypeOf||function(b,y){return b.__proto__=y,b},d(e,i)}function u(e){var i=l();return function(){var b=n(e),y;if(i){var E=n(this).constructor;y=Reflect.construct(b,arguments,E)}else y=b.apply(this,arguments);return o(this,y)}}function o(e,i){return i&&(I(i)==="object"||typeof i=="function")?i:r(e)}function r(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)},n(e)}var s=function(e){f(_,e);var i=u(_);function _(){return m(this,_),i.apply(this,arguments)}return a(_,[{key:"_pngRect",value:function(y,E,c,C,x,M,k){var T=this._readData(x);return T===null?!1:(M.imageRect(y,E,c,C,"image/png",T),!0)}},{key:"_basicRect",value:function(y,E,c,C,x,M,k,T){throw new Error("BasicCompression received in TightPNG rect")}}]),_}(w.default);F.default=s},xSIq:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var w={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};F.default=w},xlC8:function(S,F,v){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=w;function w(h,I,m,g){for(var a=h&65535|0,f=h>>>16&65535|0,d=0;m!==0;){d=m>2e3?2e3:m,m-=d;do a=a+I[g++]|0,f=f+a|0;while(--d);a%=65521,f%=65521}return a|f<<16|0}},"yi/R":function(S,F,v){"use strict";v.r(F);var w=v("oBTY"),h=v("bbsP"),I=v("/wGt"),m=v("T2oS"),g=v("W9HT"),a=v("0Owb"),f=v("jrin"),d=v("2qtc"),u=v("kLXV"),o=v("miYZ"),r=v("tsqr"),l=v("9og8"),n=v("tJVT"),s=v("PpiC"),e=v("k1fw"),i=v("ozfa"),_=v("MJZm"),b=v("WmNS"),y=v.n(b),E=v("cDcd"),c=v.n(E),C=v("Ty5D"),x=v("H65k"),M=v("+Axu"),k=v("f+oW"),T=v.n(k),R=v("bntm"),P=function(ae){var Me,Ke=ae.position,gt=ae.subject,Et=ae.score,tt=ae.onViewAllTask,Ve=Object(E.useState)(!1),bt=Object(n.a)(Ve,2),mt=bt[0],ot=bt[1],ct=Object(C.h)();function Pt(){ot(!mt),Object(R.a)()?Object(R.b)():Object(R.d)(document.getElementById("task-left-panel"))}var kt=function(){Object(R.a)()?ot(!0):ot(!1)};return Object(E.useEffect)(function(){return document.addEventListener(Object(R.c)(),kt),function(){document.removeEventListener(Object(R.c)(),kt)}},[]),c.a.createElement("div",{className:"task-header"},c.a.createElement("a",{title:"\u67E5\u770B\u5168\u90E8\u4EFB\u52A1",onClick:tt},c.a.createElement("img",{src:T.a,alt:"nav",width:45})),c.a.createElement("h3",{title:gt},"\u7B2C",Ke,"\u5173\uFF1A",gt),c.a.createElement("span",null,Et),!((ct==null||((Me=ct.query)===null||Me===void 0)?void 0:Me.isFullScreen)==="true")&&c.a.createElement("a",{onClick:Pt,title:mt?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},c.a.createElement("i",{className:mt?"iconfont icon-shousuo c-grey-333 font16 ml10 current":"iconfont icon-zhankai c-grey-333 font16 ml10 current"})))},B=v("DjyN"),W=v("NUBc"),z=v("g9YV"),H=v("wCAj"),ee=v("cWXX"),G=v("/ezw"),U=v("BdwD"),K=v("p4vh"),L=v.n(K),D=v("Q+I+"),j=v.n(D),Z=v("Yr8L"),ie=v.n(Z),pe=v("IZBM"),Ee=v("1vsH"),De=v("wd/R"),q=v.n(De),be={0:L.a,1:j.a,2:ie.a},ye={loading:!0,page:1,data:null},le;(function(ae){ae[ae.SET_LOADING=0]="SET_LOADING",ae[ae.SET_STATE=1]="SET_STATE",ae[ae.SET_PAGE=2]="SET_PAGE"})(le||(le={}));function ue(ae,Me){switch(Me.type){case le.SET_LOADING:return Object(e.a)(Object(e.a)({},ae),{},{loading:Me.payload});case le.SET_STATE:return Object(e.a)(Object(e.a)({},ae),Me.payload);case le.SET_PAGE:return Object(e.a)(Object(e.a)({},ae),{},{page:Me.payload});default:throw new Error}}var ne=function(ae){var Me=ae.activeIndex,Ke=ae.taskId,gt=Object(E.useReducer)(ue,ye),Et=Object(n.a)(gt,2),tt=Et[0],Ve=Et[1],bt=tt.loading,mt=tt.page,ot=tt.data,ct=Object(E.useMemo)(function(){var kt=[{title:"\u6392\u540D",dataIndex:"user_name",align:"center",render:function(Nt,Ft,Yt){var Jt=(mt-1)*10+Yt+1;return Jt<=3?c.a.createElement("img",{src:be[Jt-1],alt:"rank",width:36}):Jt}},{title:"\u59D3\u540D",dataIndex:"user_name"},{title:ot==null?void 0:ot.rank_data_name,dataIndex:"score",render:function(Nt){return(ot==null?void 0:ot.open_rank)==="DEFAULT"?Object(Ee.D)(Nt):Nt}},{title:"\u901A\u5173\u65F6\u95F4",dataIndex:"end_time",render:function(Nt){return q()(Nt).format("YYYY-MM-DD HH:mm:ss")}}];return kt},[ot==null?void 0:ot.rank_data_name,ot==null?void 0:ot.open_rank,mt]);Object(E.useEffect)(function(){function kt(){return Tt.apply(this,arguments)}function Tt(){return Tt=Object(l.a)(y.a.mark(function Nt(){var Ft;return y.a.wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:return Jt.next=2,Object(pe.t)(Ke,{page:mt,limit:10});case 2:Ft=Jt.sent,Ve({type:le.SET_STATE,payload:{loading:!1,data:Ft.data}});case 4:case"end":return Jt.stop()}},Nt)})),Tt.apply(this,arguments)}Me===4&&kt()},[mt,Me,Ke]);function Pt(kt){Ve({type:le.SET_PAGE,payload:kt})}return c.a.createElement("div",{className:"ranking-container"},bt?c.a.createElement(G.a,{avatar:!0,paragraph:{rows:4}}):!ot||(ot==null?void 0:ot.rank_list_count)===0?c.a.createElement(U.a,null):c.a.createElement(c.a.Fragment,null,c.a.createElement(H.a,{pagination:!1,size:"middle",dataSource:ot.rank_list,columns:ct}),ot.rank_list_count>10?c.a.createElement(W.a,{style:{marginTop:20},showQuickJumper:!0,showSizeChanger:!1,onChange:Pt,current:mt,total:ot.rank_list_count}):null))},xe="FETCH_TASK_START",$="FETCH_TASK_FAILURE",oe="FETCH_TASK_SUCCESS",Le="UPDATE_TASK_DATA",te="HIDE_EVALUATE_RESULT",Y="SHOW_EVALUATE_RESULT",X="UPDATE_TIMESTRAP",J="MOVE_X",ve="MOVE_Y",he="TRIGGER_RIGHT_PANEL_MASK ",Ce="SET_ACTIVE_INDEX",Pe="GET_TASK_LIST",de="SHOW_TASK_LIST",ke="HIDE_TASK_LIST",me="SET_TASK_STAR",Be="TRIGGER_ENLARGE_UNITY3D ",ft="TRIGGER_TAB_FIXED ",vt="GET_DISCUSSES",Xe="SHOW_DISCUSSES_LOADING",Bt="TOP_OR_DOWN_DISCUSS",Ae="PLUS_DISCUSS",We="SET_ACTION_TYPE",dt="SHOW_REWARD_DIALOG",Ge="CANCEL_REWARD_DIALOG",je="SET_REWARD",Fe="ACTIVE_DISCUSS_INDEX",ce="CREATE_DISCUSS",we="DISABLE_DISCUSS",se="SHOW_ANSWER_LOADING",_e="FETCH_ANSWER_INFO",Ne="HIGH_TIP_MODAL",Q="SHOW_TIP_MODAL",Ue="SELECT_UNLOCK_ANSWER",Ze="SET_CHOOSE_ANSWERS",Te="EVAL_CHOOSE_START",He="EVAL_CHOOSE_END",Ye="SHOW_REP_loading",st="FETCH_REP_CONTENT",ut="EDIT_REP_CONTENT",et="SET_REP_PATH",Re="SHOW_EVALUATE_LOADING",qe="HIDE_EVALUATE_LOADING",At="SET_EVALUATE_MESSAGE",$e="SET_SHOW_DIR",ht="SET_EDITOR_SETTING",Rt="SET_EDITOR_THEME",pt="SET_EDITOR_FONTSIZE",wt="SET_REPOS",Ct="SHOW_PATH_LIST",Kt="HIDE_PATH_LIST",Vt="HIDE_PICTURE_VIEW",dn="SHOW_PICTURE_VIEW",cn="SHOW_NOTICE",qt="HIDE_NOTICE",Lt="SET_TAB_INDEX",Tn="SET_SSH_TABS",Wt="SET_SSH_CONFIGDATA",gn="SET_SSH_CONFIGDATAARR",ln="SET_VNC_LOADING ",Un="ON_TAB_TO_SPACE ",In=v("9Bee"),Rr=v("M8RZ"),Mt=v("6lC8"),on=v("ErOA");function ea(ae){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Object(on.c)("/discusses.json?page=".concat(Me-1,"&container_identifier=").concat(ae,"&container_type=Shixun"))}function Vr(ae,Me){return Object(on.f)("/discusses/".concat(ae,"/top_or_down_discuss.json"),{top:Me})}function vr(ae,Me){return Object(on.f)("/discusses/".concat(ae,"/disable_or_open_discuss.json"),{is_disable:!!Me})}function jr(ae,Me){return Object(on.f)("/discusses/".concat(ae,"/plus.json"),{container_type:"Discuss",type:Me?1:0})}function wa(ae,Me){return Object(on.f)("/discusses/".concat(ae,"/hidden.json"),Me)}function An(ae,Me){return Object(on.f)("/discusses/".concat(ae,"/reward_code.json"),Me)}function ur(ae){return Object(on.a)("/api/discusses/".concat(ae,".json"),{method:"delete"})}function Ut(ae,Me){return Object(on.f)("/discusses/".concat(ae,"/reply.json"),{container_type:"Shixun",content:Me})}function tr(ae){return Object(on.f)("/discusses.json",ae)}function Yn(ae){return Object(on.f)("/discusses/ai_reply.json",ae)}function Xn(ae,Me){return Object(on.f)("/discusses/".concat(ae,"/turing.json"),Me)}var nr=v("jb+D"),br=v("dTJi"),xa=v("pC0b"),Wr=v("GzdX"),Ir=v("OoWo"),hr="YYYY-MM-DD HH:mm",Ca=function(ae){var Me=ae.challenge,Ke=ae.position,gt=ae.status,Et=ae.get_gold,tt=ae.get_experience,Ve=ae.star,bt=ae.tag_count,mt=ae.finished_time,ot=ae.index,ct=ae.view_answer_time,Pt=ae.name,kt=ae.identifier,Tt=ae.identity,Nt=ae.shixun,Ft=ae.taskList,Yt=ae.onSaveTaskStar,Jt=Object(C.h)();function pn(tn){Yt(kt,tn,ot)}var xn=gt===2||Nt.status<2||Ft[ot-1]&&Ft[ot-1].status===2||Nt.task_pass||Tt<=5;return c.a.createElement("div",{className:"task-item-container ".concat(Me.position===Ke?"active":""," ").concat(gt===2?"finish":"")},c.a.createElement("div",{className:"flex-container challenge-title space-between"},xn?c.a.createElement("a",{href:"/tasks/".concat(kt).concat(Jt.search),onClick:function(nn){nn.preventDefault(),setTimeout(function(){return window.location.href="/tasks/".concat(kt).concat(Jt.search)},300)}},"".concat(Ke,". ").concat(Pt)," "):c.a.createElement("span",null,"".concat(Ke,". ").concat(Pt)),c.a.createElement("i",{className:"iconfont icon-wancheng1 ".concat(gt===2?"green":"")})),c.a.createElement("div",{className:"flex-container"},c.a.createElement("p",{className:gt===2?"green":""},c.a.createElement("span",null,"\u7ECF\u9A8C\u503C")," ",gt===2&&tt>0?"+":"",tt),c.a.createElement("p",{className:gt===2?"green":""},c.a.createElement("span",null,"\u91D1\u5E01")," ",gt===2&&Et>0?"+":""," ",Et),c.a.createElement("p",null,c.a.createElement("span",null,"\u6280\u80FD\u6807\u7B7E")," ",bt||"\u65E0")),c.a.createElement("div",{className:"flex-container"},c.a.createElement("p",null,c.a.createElement("span",null,"\u5B8C\u6210\u65F6\u95F4"),mt?q()(mt).format(hr):"--"),c.a.createElement("p",null,c.a.createElement("span",null,"\u67E5\u770B\u7B54\u6848\u65F6\u95F4"),ct?q()(ct).format(hr):"--")),Nt.status>=2?c.a.createElement("div",{className:"rate-container"},gt===2&&Ve===0?c.a.createElement(E.Fragment,null,c.a.createElement("span",null,"\u7ED9\u4E2A\u8BC4\u5206\u5427\uFF1A"),c.a.createElement(Wr.a,{defaultValue:0,onChange:pn})):null,gt===2&&Ve>0?c.a.createElement(E.Fragment,null,c.a.createElement("span",null,"\u5DF2\u8BC4\u5206\uFF1A"),c.a.createElement(Wr.a,{value:Ve,disabled:!0}),c.a.createElement("span",{className:"highlight"},Ve,"\u5206")):null):null)},ia=function(ae){var Me=ae.taskList,Ke=ae.challenge,gt=ae.shixun,Et=ae.identity,tt=ae.onSaveTaskStar,Ve=Object(C.h)().query;return c.a.createElement("div",{className:"task-nav-container"},!!Ve.coursesId&&c.a.createElement("p",{className:"task-tip"},c.a.createElement("div",null,c.a.createElement("span",null,"\u6E29\u99A8\u63D0\u793A: "),"\u82E5\u67E5\u770B\u7B54\u6848\u65F6\u95F4\u65E9\u4E8E\u5173\u5361\u4EFB\u52A1\u5B8C\u6210\u65F6\u95F4\uFF0C\u5C06\u5F71\u54CD\u8BFE\u5802\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u6210\u7EE9\u3002")),Me.map(function(bt,mt){var ot=Object(e.a)(Object(e.a)({},bt),{},{identity:Et,index:mt,challenge:Ke,taskList:Me,shixun:gt,onSaveTaskStar:tt});return c.a.createElement(Ca,Object(a.a)({key:mt},ot))}))},Ur=v("88g3"),Yr=v.n(Ur),zn=v("V0Rq"),Gn=v("lzim"),Pn=v("HBuW"),rr=function(){var ae=Object(l.a)(y.a.mark(function Me(Ke,gt,Et,tt,Ve){var bt,mt;return y.a.wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:if(bt=function(){Ve?Object(Ee.w)(Et?"/tasks/".concat(mt==null?void 0:mt.identifier,"/jupyter"):"/tasks/".concat(mt.game_identifier,"?subject_id=").concat(tt)):window.location.href=Et?"/tasks/".concat(mt==null?void 0:mt.identifier,"/jupyter"):"/tasks/".concat(mt.game_identifier,"?subject_id=").concat(tt)},!Et){ct.next=7;break}return ct.next=4,Object(Pn.w)({id:Ke,challenge_id:gt,subject_id:tt});case 4:ct.t0=ct.sent,ct.next=10;break;case 7:return ct.next=9,Object(Pn.x)({id:Ke,challenge_id:gt,subject_id:tt});case 9:ct.t0=ct.sent;case 10:if(mt=ct.t0,!(mt!=null&&mt.game_identifier||mt!=null&&mt.identifier)){ct.next=22;break}if(!(mt!=null&&mt.access)){ct.next=16;break}bt(),ct.next=21;break;case 16:if(!((mt==null?void 0:mt.access)==!1)){ct.next=20;break}return r.b.warn("\u5F53\u524D\u5B9E\u8BAD\u4E0D\u652F\u6301\u8DF3\u5173\uFF0C\u5DF2\u4E3A\u60A8\u8DF3\u8F6C\u5230\u8BE5\u5B9E\u8BAD\u672A\u901A\u8FC7\u7684\u7B2C\u4E00\u4E2A\u5173\u5361"),setTimeout(function(){rr(Ke,"",Et,tt,Ve)},1e3),ct.abrupt("return");case 20:bt();case 21:return ct.abrupt("return");case 22:(mt==null?void 0:mt.status)===-3?Object(Ee.b)():(mt==null?void 0:mt.status)===2?Ja(mt==null?void 0:mt.message):(mt==null?void 0:mt.status)===3&&oa(mt==null?void 0:mt.message);case 23:case"end":return ct.stop()}},Me)}));return function(Ke,gt,Et,tt,Ve){return ae.apply(this,arguments)}}(),Ja=function ae(Me){var Ke;Me=(Ke=Me)!==null&&Ke!==void 0&&Ke.includes(".json")?Me:"".concat(Me,".json"),u.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:c.a.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:function(){var gt=Object(l.a)(y.a.mark(function tt(){var Ve,bt;return y.a.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:return ot.next=2,Object(zn.E)({url:Me});case 2:if(Ve=ot.sent,Ve){ot.next=5;break}return ot.abrupt("return");case 5:return r.b.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8BAD\uFF01"),ot.next=8,Object(Pn.x)({id:Ve.shixun_identifier});case 8:if(bt=ot.sent,!(bt!=null&&bt.game_identifier)){ot.next=12;break}return Object(Ee.w)("/tasks/".concat(bt.game_identifier)),ot.abrupt("return");case 12:(bt==null?void 0:bt.status)===2?ae(bt==null?void 0:bt.message):(bt==null?void 0:bt.status)===3&&oa(bt==null?void 0:bt.message);case 13:case"end":return ot.stop()}},tt)}));function Et(){return gt.apply(this,arguments)}return Et}()})},oa=function(Me){u.a.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:c.a.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Me,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Ar=_.a.DirectoryTree,Sa=function(ae){var Me=ae.taskList,Ke=ae.challenge,gt=ae.shixun,Et=ae.identity,tt=ae.onSaveTaskStar,Ve=ae.subject_id,bt=Object(C.i)(),mt=Object(C.h)().query,ot=Object(E.useState)([]),ct=Object(n.a)(ot,2),Pt=ct[0],kt=ct[1],Tt=Object(E.useState)([]),Nt=Object(n.a)(Tt,2),Ft=Nt[0],Yt=Nt[1],Jt=Object(E.useState)(),pn=Object(n.a)(Jt,2),xn=pn[0],tn=pn[1];Object(E.useEffect)(function(){nn(Me),Yt(nt({children:Me},Ke.id)),kt(Object(w.a)(Me)),console.log("taskList:",Me)},[Me]);var nn=function Ht(rn){rn.map(function(sn,bn){var On;sn.index=bn,sn.title=sn.name,sn.id==Ke.id&&tn(sn.key),(On=sn.children)!==null&&On!==void 0&&On.length&&Ht(sn.children)})},jt=function(rn,sn){console.log("Trigger Select",rn,sn),sn.node.shixun_identifier&&rr(sn.node.shixun_identifier,sn.node.key,!1,Ve)},vn=function(){console.log("Trigger Expand")};function nt(Ht,rn){var sn;return!Ht||typeof Ht!="object"?void 0:Ht.id==rn?[]:Ht.children.some(function(bn){return sn=nt(bn,rn)})?[].concat(Object(w.a)(sn),[Ht.key]):void 0}return c.a.createElement("div",{className:"task-nav-container"},!!mt.coursesId&&c.a.createElement("p",{className:"task-tip"},c.a.createElement("div",null,c.a.createElement("span",null,"\u6E29\u99A8\u63D0\u793A: "),"\u82E5\u67E5\u770B\u7B54\u6848\u65F6\u95F4\u65E9\u4E8E\u5173\u5361\u4EFB\u52A1\u5B8C\u6210\u65F6\u95F4\uFF0C\u5C06\u5F71\u54CD\u8BFE\u5802\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u6210\u7EE9\u3002")),!!(Pt!=null&&Pt.length)&&c.a.createElement("div",{style:{padding:10}},c.a.createElement(Ar,{className:Yr.a.tree,icon:c.a.createElement("i",{className:"iconfont icon-wancheng1 "}),switcherIcon:c.a.createElement("i",{className:"iconfont icon-you1 ",style:{position:"relative",top:-2}}),onSelect:jt,onExpand:vn,selectedKeys:[xn],defaultExpandedKeys:Object(w.a)(Ft),treeData:Pt,titleRender:function(rn,sn,bn){return c.a.createElement("span",{className:"".concat(Ke.id==rn.id?Yr.a.active:""," multi_ellipsis1"),style:{paddingRight:34}},rn.item_type==="Shixun"&&c.a.createElement("i",{class:"iconfont icon-shixunti2 c-light-primary font20"}),rn.item_type==="Challenge"&&c.a.createElement("i",{style:{fontFamily:"monospace",position:"relative",top:rn.item_type==="Shixun"?-2:0}},"\uFF08",Ee.a[rn.index],"\uFF09"),c.a.createElement("span",{style:{position:"relative",top:rn.item_type==="Shixun"||rn.item_type==="Stage"?-2:0}},rn==null?void 0:rn.name),rn.item_type!=="Stage"&&c.a.createElement("i",{className:"iconfont icon-tasks-img c-grey-999 ".concat((rn==null?void 0:rn.status)==1&&"c-green-29b")},((rn==null?void 0:rn.status)==1||(rn==null?void 0:rn.status)==0)&&c.a.createElement("img",{src:Gn.a,width:"16"}),(rn==null?void 0:rn.status)==2&&c.a.createElement("img",{src:Gn.b,width:"16"}),(rn==null?void 0:rn.status)==3&&c.a.createElement("img",{src:Gn.c,width:"16"})))}})))},yi=v("giR+"),Eo=v("fyUT"),wo=v("+L6B"),Ka=v("2/Rp"),zi=v("8Abk"),Di=v("IxHN"),Fo=v("14J3"),_i=v("BMrR"),fa=v("jCWc"),pr=v("kPKH"),ka=v("Q9mQ"),ui=v("diRs"),ji=v("y8nQ"),gi=v("Vl3Y"),ei=v("9kvl"),En=v("dhSg"),ua=function(Me){var Ke=Me.pathsList,gt=Me.dispatch,Et=gi.a.useForm(),tt=Object(n.a)(Et,1),Ve=tt[0],bt=Object(E.useState)(),mt=Object(n.a)(bt,2),ot=mt[0],ct=mt[1],Pt=Object(E.useState)(!0),kt=Object(n.a)(Pt,2),Tt=kt[0],Nt=kt[1],Ft=Object(E.useState)(!1),Yt=Object(n.a)(Ft,2),Jt=Yt[0],pn=Yt[1],xn=Object(E.useState)({}),tn=Object(n.a)(xn,2),nn=tn[0],jt=tn[1],vn=Object(E.useState)({keyword:nn,robot:!0,page:1}),nt=Object(n.a)(vn,2),Ht=nt[0],rn=nt[1];Object(E.useEffect)(function(){En.a.subscribe("ai-replay-show",function(fn){jt(fn),pn(!0)})},[]),Object(E.useEffect)(function(){nn!=null&&nn.id&&sn()},[nn]);var sn=function(){var fn=Object(l.a)(y.a.mark(function Zt($t){var Qt;return y.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return Nt(!0),jn.next=3,Yn(Object(e.a)(Object(e.a)({},Ht),{},{keyword:nn==null?void 0:nn.content,id:nn==null?void 0:nn.id}));case 3:Qt=jn.sent,Nt(!1),Qt!=null&&Qt.data&&(Ht.page++,rn(Object(e.a)({},Ht)),ct(Qt==null?void 0:Qt.data));case 6:case"end":return jn.stop()}},Zt)}));return function($t){return fn.apply(this,arguments)}}(),bn=function(){var fn=Object(l.a)(y.a.mark(function Zt(){return y.a.wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:sn();case 1:case"end":return Qt.stop()}},Zt)}));return function(){return fn.apply(this,arguments)}}(),On=c.a.createElement("div",null,c.a.createElement("img",{src:Gn.h,width:150}));return c.a.createElement(c.a.Fragment,null,c.a.createElement(u.a,{title:"\u5176\u4ED6\u56DE\u7B54",mask:!0,visible:Jt,okText:"\u6362\u4E00\u6362",cancelText:"",onOk:bn,width:800,height:500,footer:c.a.createElement(_i.a,{align:"middle",justify:"center"},c.a.createElement(pr.a,{className:"tc"},c.a.createElement(Ka.a,{type:"primary",onClick:sn},"\u6362\u4E00\u6362"),c.a.createElement(ui.a,{content:On,title:"\u6559\u5E08\u4EA4\u6D41\u793E\u533A"},c.a.createElement(Ka.a,{type:"dashed"},"\u4EBA\u5DE5\u670D\u52A1")))),onCancel:function(){pn(!1)}},c.a.createElement("aside",{style:{minHeight:300}},c.a.createElement(_i.a,null,c.a.createElement(G.a,{loading:Tt},ot==null?void 0:ot.map(function(fn){return c.a.createElement(pr.a,{style:{background:"#e9f3f1",padding:"8px 20px",marginBottom:10,borderRadius:20},span:24},fn.text)}),!(ot!=null&&ot.length)&&c.a.createElement("div",{style:{width:"100%",textAlign:"center"}},c.a.createElement("br",null),c.a.createElement("img",{src:Gn.h,width:150}),c.a.createElement("br",null),c.a.createElement("br",null),"\u6559\u5E08\u4EA4\u6D41\u793E\u533A"))))))},Mi=Object(ei.a)(function(ae){var Me=ae.pathsList;return{pathsList:Me}})(ua),ao=v("5Dmo"),hi=v("3S7+"),Ia=v("m3rI"),La=v("Ypxr"),io=v("AMnG"),Ji=v("kaH+"),xo=v("xKgJ"),vo=v("dPi7"),Co=v.n(vo),Ho=v("SzL9"),$n=v.n(Ho),Cr=v("MAU4"),ar=v.n(Cr),Kr=v("n0Id"),sa=v.n(Kr);function ca(ae){var Me=ae.data,Ke=ae.index,gt=ae.adminOrOperator,Et=ae.parentDiscussIndex,tt=ae.shixunIdentifier,Ve=ae.user,bt=ae.onSetRewardData,mt=ae.onSetActionType,ot=ae.onHandleSubmitDiscusses,ct=ae.onTopOrDownDiscuss,Pt=ae.handleChildrenPlus,kt=ae.anserAuthor,Tt=ae.onPlus,Nt=ae.onHandleRepaly,Ft=ae.userInfomation,Yt=Me.author,Jt=Me.can_delete,pn=Me.content,xn=Me.hidden,tn=Me.id,nn=Me.reward,jt=Me.time,vn=Me.reply_status,nt=Me.user_praise,Ht=Me.praise_count,rn=Object(E.useState)(!1),sn=Object(n.a)(rn,2),bn=sn[0],On=sn[1],fn=Object(E.useState)(!1),Zt=Object(n.a)(fn,2),$t=Zt[0],Qt=Zt[1],mn=Object(E.useState)(!1),jn=Object(n.a)(mn,2),Dn=jn[0],Xt=jn[1],Mn=Object(E.useState)(!1),ir=Object(n.a)(Mn,2),sr=ir[0],er=ir[1],qn=function(){if(!bn)return;ot(tn,{reply_status:2})},an=function(){if(!$t)return;ot(tn,{reply_status:3})},Vn=function(){ot(tn,{reply_status:1})},Fr=function(){ot(tn,{reply_status:4})},Gr=function(){switch(vn){case 0:return c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{onClick:Vn,className:"whether-satisfied ".concat(Dn?"cursorPoint blue-text-color":""),onMouseEnter:function(){Xt(!0)},onMouseLeave:function(){Xt(!1)}},c.a.createElement("img",{src:Dn?$n.a:Co.a,className:"whether-img SVGColor"}),"\u6EE1\u610F"),c.a.createElement(ui.a,{placement:"bottomLeft",content:c.a.createElement("div",{className:"content"},c.a.createElement("div",{className:"content-disappoint"},"\u62B1\u6B49\u8BA9\u4F60\u5931\u671B\u4E86\uFF0C\u8BF7\u7EE7\u7EED\u5C1D\u8BD5:"),c.a.createElement("div",{className:"radius-box marg15 height30-line black6c-optcity ".concat(bn?"blue-background cursorPoint blue-background-write":"gray-background"),onMouseEnter:function(){On(!0)},onMouseLeave:function(){On(!1)},onClick:qn},"\u8BF7",Yt==null?void 0:Yt.name.trim(),"\u8001\u5E08\u518D\u5C1D\u8BD5\u56DE\u7B54\u4E00\u6B21\u3002"),c.a.createElement("div",{className:"radius-box marg15 height30-line black6c-optcity ".concat($t?"blue-background cursorPoint blue-background-write":"gray-background"),onMouseEnter:function(){Qt(!0)},onMouseLeave:function(){Qt(!1)},onClick:an},"\u53EF\u80FD\u542F\u7528\u4E86\u673A\u5668\u4EBA\uFF0C\u8BF7\u5176\u4ED6\u8001\u5E08\u56DE\u7B54\u3002")),trigger:"click"},c.a.createElement("div",{className:"whether-satisfied ".concat(sr?"cursorPoint blue-text-color":""),onMouseEnter:function(){er(!0)},onMouseLeave:function(){er(!1)}},c.a.createElement("img",{src:sr?sa.a:ar.a,className:"whether-img SVGColor"}),"\u4E0D\u6EE1\u610F")));case 1:return c.a.createElement("div",{className:"radius-box cursorPoint height30 ".concat(Ke>0?"gray-background":"blue-background"),onClick:Fr},"\u6211\u5F88\u6EE1\u610F");case 2:return c.a.createElement("div",{className:"radius-box height30 ".concat(Ke>0?"gray-background":"blue-background")},"\u4E0D\u6EE1\u610F \u7B49\u5F85\u8001\u5E08\u518D\u6B21\u56DE\u7B54");case 3:return c.a.createElement("div",{className:"radius-box height30 ".concat(Ke>0?"gray-background":"blue-background")},"\u4E0D\u6EE1\u610F \u7B49\u5F85\u5176\u4ED6\u8001\u5E08\u518D\u6B21\u56DE\u7B54");case 4:return c.a.createElement("div",{className:"radius-box height30 ".concat(Ke>0?"gray-background":"blue-background")},"\u6211\u5F88\u6EE1\u610F");default:return c.a.createElement(c.a.Fragment,null)}};function lr(){bt({id:tn,index:Ke,user_id:Yt.user_id,parentDiscussIndex:Et})}function Ra(){mt({id:tn,index:Ke,params:{hidden:xn?"0":"1",container_identifier:tt},type:"hidden-discuss",parentDiscussIndex:Et,message:xn?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}function ja(){mt({id:tn,index:Ke,type:"delete-discuss",parentDiscussIndex:Et,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}var ci=function(){Nt(tn,!nt,Et,Ke)},ra=gt||Jt||Yt.user_id===Ve.user_id||Yt.login===Ve.login,Na=Object(C.h)().pathname.split("/")[1]==="tasks";return c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"second-level-discuss"},c.a.createElement("div",{className:"discuss-info-body"},c.a.createElement("div",{className:"discuss-info"},c.a.createElement("a",{href:"/users/".concat(Yt.login),target:"_blank"},Yt.name),c.a.createElement("span",{className:"grey"},jt),nn?c.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(nn)},c.a.createElement("i",{className:"iconfont icon-gift c-orange "}),c.a.createElement("span",null,nn)):null)),c.a.createElement(In.a,{className:"discuss-content ".concat(Ke>0?"content-gray":""),value:pn})),Na&&c.a.createElement("div",{className:"btn-group-succes"},c.a.createElement("div",{className:"btn-group-gratify"},Gr()),c.a.createElement("div",{className:"btn-group-other"},c.a.createElement("div",{className:"discuss-info-body"},c.a.createElement("div",{className:"btn-group"},Ve.identity===1?c.a.createElement("a",{onClick:lr,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},c.a.createElement("i",{className:"iconfont icon-jiangli"})):null,gt?c.a.createElement("a",{onClick:Ra,title:xn?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},c.a.createElement("i",{className:xn?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,ra?c.a.createElement("a",{onClick:ja,title:"\u5220\u9664"},c.a.createElement("i",{className:"iconfont icon-shanchu"})):null,c.a.createElement("a",{onClick:ci,className:nt?"c-orange":""},c.a.createElement("i",{className:nt?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),c.a.createElement("span",null,Ht||"")))))))}var Zr=function(ae){var Me=ae.data,Ke=ae.index,gt=ae.shixunIdentifier,Et=ae.adminOrOperator,tt=ae.identity,Ve=ae.onTopOrDownDiscuss,bt=ae.onPlusDiscuss,mt=ae.onDisableDiscuss,ot=ae.onSetActionType,ct=ae.onSetRewardData,Pt=ae.user,kt=ae.activeDiscussIndex,Tt=ae.onReplyDiscuss,Nt=ae.onSetActiveDiscussIndex,Ft=ae.allowDisableDiscuss,Yt=ae.onHandleSubmitDiscusses,Jt=ae.onHandleRepaly,pn=ae.userInfomation,xn=Me.content,tn=Me.children,nn=Me.game_url,jt=Me.hidden,vn=Me.id,nt=Me.position,Ht=Me.praise_count,rn=Me.reward,sn=Me.sticky,bn=Me.time,On=Me.user_praise,fn=Me.game_passed,Zt=Me.ai_reply_text,$t=Me.ai_reply_flag,Qt=Me.author,mn=Me.disable_discuss_status,jn=Me.reply_status,Dn=Object(E.useState)(!1),Xt=Object(n.a)(Dn,2),Mn=Xt[0],ir=Xt[1];Object(E.useEffect)(function(){Mn&&setTimeout(function(){return ir(!1)},800)},[Mn]);function sr(){var Ra;if(!((Ra=Object(xo.h)())!==null&&Ra!==void 0&&Ra.authentication)){u.a.confirm({title:"\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:"\u9700\u8981\u901A\u8FC7\u5B9E\u540D\u9A8C\u8BC1\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u8BC4\u8BBA\u64CD\u4F5C",okText:"\u524D\u5F80\u5B9E\u540D\u9A8C\u8BC1",cancelText:"\u53D6\u6D88",onOk:function(){window.open("/account/certification")}});return}Nt(vn)}function er(){Ve(vn,!sn,Ke)}function qn(){bt(vn,!On,Ke)}function an(){ct({id:vn,index:Ke,user_id:Qt.user_id})}function Vn(){ot({id:vn,index:Ke,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function Fr(){ot({id:vn,index:Ke,params:{hidden:jt?"0":"1",container_identifier:gt},type:"hidden-discuss",message:jt?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}function Gr(){mt(vn,mn===0?2:0,Ke)}var lr=function(ja){var ci=ja.target,ra=ci.nodeName,Na=ci.src;ra==="IMG"&&(En.a.publish("preview-image",Na),console.log("src:",Na))};return c.a.createElement("div",{className:"discuss-item-container",key:vn},c.a.createElement("a",{href:"/users/".concat(Qt.login),target:"_blank"},c.a.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",src:"".concat(Ia.a.IMG_SERVER,"/images/").concat(Qt.image_url),width:"50"})),c.a.createElement("section",null,c.a.createElement("div",{className:"discuss-info"},c.a.createElement("a",{href:"/users/".concat(Qt.login),target:"_blank"},Qt.name),c.a.createElement("span",{className:"grey"},bn),nt?c.a.createElement("span",{className:"c-green"}," [\u7B2C",nt,"\u5173] "):null,nn?c.a.createElement("a",{href:nn,target:"_blank",className:"view-code",title:"\u70B9\u51FB\u67E5\u770BTA\u7684\u4EE3\u7801\u9875\u9762"},"\u67E5\u770B"):null,Ft&&c.a.createElement(c.a.Fragment,null,mn===0&&c.a.createElement(hi.a,{title:"\u7981\u6B62\u8BE5\u7528\u6237\u5728\u6B64\u9879\u76EE\u7684\u8BC4\u8BBA\u529F\u80FD"},c.a.createElement("span",{onClick:Gr,className:"c-red current"},"\u7981\u6B62\u8BC4\u8BBA\u529F\u80FD")),mn===2&&c.a.createElement(hi.a,{title:"\u6062\u590D\u8BE5\u7528\u6237\u5728\u6B64\u5B9E\u8DF5\u9879\u76EE\u7684\u8BC4\u8BBA\u529F\u80FD"},c.a.createElement("span",{onClick:Gr,className:"c-light-primary current"},"\u6062\u590D\u8BC4\u8BBA\u529F\u80FD")),mn===1&&c.a.createElement(hi.a,{title:"\u8BE5\u7528\u6237\u5DF2\u88AB\u7CFB\u7EDF\u7BA1\u7406\u5458\u7981\u8A00"},c.a.createElement("span",{className:"c-red"},"\u88AB\u7BA1\u7406\u5458\u7981\u6B62\u8BC4\u8BBA"))),sn?c.a.createElement("span",{className:"top"},"\u7F6E\u9876"):null,rn?c.a.createElement("a",{className:"c-orange gift",title:"\u5DF2\u5956\u52B1\u91D1\u5E01".concat(rn)},c.a.createElement("i",{className:"iconfont icon-gift c-orange "}),c.a.createElement("span",null,rn)):null,tt<=5?c.a.createElement("span",{style:{flex:"1",textAlign:"right",color:fn===1?"#29bd8b":""}},fn===1?"\u5DF2\u901A\u5173":"\u672A\u901A\u5173"):null),c.a.createElement("div",{onClick:lr},c.a.createElement(In.a,{className:"discuss-content",value:xn})),$t&&c.a.createElement("div",{style:{padding:10,borderRadius:4,background:"#f4f4f4"}},c.a.createElement("br",null),c.a.createElement("div",{style:{padding:"6px 0"}},Zt),c.a.createElement(Ka.a,{style:{background:"#d1e5f9",borderRadius:25,border:"none",display:"inline-flex",justifyItems:"center",alignItems:"center"},onClick:function(){return ir(!0)},className:"mr10 mr5 relative c-blue"},c.a.createElement("span",{className:Mn?"plus-one-animate":"hide",style:{position:"absolute"}}," ","+1"),c.a.createElement("span",{className:"c-blue icon-duiwoyouyong mr5"}),c.a.createElement("span",{className:"c-blue"},"\u5BF9\u6211\u6709\u7528")),c.a.createElement("span",{className:"c-orange current",onClick:function(){En.a.publish("ai-replay-show",{content:xn,id:vn})}},"\u5176\u4ED6\u56DE\u7B54")),tn&&tn.length>0?c.a.createElement("div",{className:"reply-discuss-containerActive",onClick:lr},tn.map(function(Ra,ja){return c.a.createElement(ca,{key:Ra.id,data:Ra,index:ja,userInfomation:pn,onTopOrDownDiscuss:Ve,shixunIdentifier:gt,onHandleSubmitDiscusses:Yt,adminOrOperator:Et,user:Pt,onSetRewardData:ct,onSetActionType:ot,parentDiscussIndex:Ke,anserAuthor:Qt,onHandleRepaly:Jt})})):null,c.a.createElement("div",{className:"btn-group"},c.a.createElement("div",{className:"btn-group-other"},Pt.identity===1?c.a.createElement("a",{onClick:an,title:"\u7ED9TA\u5956\u52B1\u91D1\u5E01"},c.a.createElement("i",{className:"iconfont icon-jiangli"})):null,Et?c.a.createElement("a",{onClick:Fr,title:jt?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},c.a.createElement("i",{className:jt?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,tt<=5?c.a.createElement("a",{onClick:er,className:sn?"btn-top":"btn-down",title:sn?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876"},c.a.createElement("i",{className:"iconfont icon-zhiding1 "})):null,Et&&(!tn||tn.length==0)?c.a.createElement("a",{onClick:Vn,title:"\u5220\u9664"},c.a.createElement("i",{className:"iconfont icon-shanchu"})):null,c.a.createElement("a",{onClick:sr,title:"\u56DE\u590D"},c.a.createElement("i",{className:"iconfont icon-huifu1"})),c.a.createElement("a",{onClick:qn,className:On?"c-orange":""},c.a.createElement("i",{className:On?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),c.a.createElement("span",null,Ht||"")))),c.a.createElement(io.a,{id:vn,activeDiscussIndex:kt,onReplyDiscuss:Tt})))},ti={showRewardDialog:!1,data:null,page:1,loading:!1,actionType:null,activeDiscussIndex:null};function Ci(ae,Me){switch(Me.type){case Xe:return Object(e.a)(Object(e.a)({},ae),{},{loading:!0});case dt:return Object(e.a)(Object(e.a)({},ae),{},{showRewardDialog:!0});case Ge:return Object(e.a)(Object(e.a)({},ae),{},{showRewardDialog:!1});case vt:return Object(e.a)(Object(e.a)({},ae),Me.payload);case Bt:return Object(e.a)(Object(e.a)({},ae),Me.payload);case Ae:return Object(e.a)(Object(e.a)({},ae),Me.payload);case we:return Object(e.a)(Object(e.a)({},ae),Me.payload);case We:return Object(e.a)(Object(e.a)({},ae),Me.payload);case je:return Object(e.a)(Object(e.a)({},ae),Me.payload);case Fe:return Object(e.a)(Object(e.a)({},ae),Me.payload);default:throw new Error}}var Sr=function(ae){var Me=ae.shixunIdentifier,Ke=ae.identity,gt=ae.activeIndex,Et=ae.user,tt=ae.allowDisableDiscuss,Ve=ae.userInfo,bt=ae.isShixunDetail,mt=bt===void 0?!1:bt,ot=ae.taskData,ct=Object(E.useReducer)(Ci,ti),Pt=Object(n.a)(ct,2),kt=Pt[0],Tt=Pt[1],Nt=Object(E.useState)(!0),Ft=Object(n.a)(Nt,2),Yt=Ft[0],Jt=Ft[1],pn=Object(E.useState)(null),xn=Object(n.a)(pn,2),tn=xn[0],nn=xn[1],jt=kt.page,vn=kt.loading,nt=kt.data,Ht=kt.actionType,rn=kt.showRewardDialog,sn=kt.activeDiscussIndex,bn=Object(E.useRef)(),On=Object(E.useRef)();function fn(dr,Nn){return Zt.apply(this,arguments)}function Zt(){return Zt=Object(l.a)(y.a.mark(function dr(Nn,un){var kr;return y.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:if(!vn){Jn.next=2;break}return Jn.abrupt("return");case 2:return Jn.prev=2,Tt({type:Xe}),Jn.next=6,ea(Me,Nn);case 6:kr=Jn.sent,Tt({type:vt,payload:{activeDiscussIndex:un?sn:null,page:Nn,data:kr,loading:!1}}),Jn.next=13;break;case 10:Jn.prev=10,Jn.t0=Jn.catch(2),console.log(Jn.t0);case 13:case"end":return Jn.stop()}},dr,null,[[2,10]])})),Zt.apply(this,arguments)}Object(E.useEffect)(function(){return Yt||(clearInterval(tn),nn(setInterval(function(){fn(jt,!0)},5e3))),function(){clearInterval(tn)}},[Yt,jt,sn]);function $t(dr){fn(dr)}function Qt(dr,Nn,un){return mn.apply(this,arguments)}function mn(){return mn=Object(l.a)(y.a.mark(function dr(Nn,un,kr){var va;return y.a.wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Hn.prev=0,Hn.next=3,jr(Nn,un);case 3:va=Hn.sent,ga[kr].user_praise=un,ga[kr].praise_count=va.praise_count,Tt({type:Ae,payload:{data:Object(e.a)(Object(e.a)({},nt),{},{comments:ga})}}),Hn.next=12;break;case 9:Hn.prev=9,Hn.t0=Hn.catch(0),console.log(Hn.t0);case 12:case"end":return Hn.stop()}},dr,null,[[0,9]])})),mn.apply(this,arguments)}function jn(dr,Nn,un,kr){return Dn.apply(this,arguments)}function Dn(){return Dn=Object(l.a)(y.a.mark(function dr(Nn,un,kr,va){var Jn;return y.a.wrap(function(xr){for(;;)switch(xr.prev=xr.next){case 0:return xr.prev=0,xr.next=3,jr(Nn,un);case 3:Jn=xr.sent,ga[kr].children[va].user_praise=un,ga[kr].children[va].praise_count=Jn.praise_count,Tt({type:Ae,payload:{data:Object(e.a)(Object(e.a)({},nt),{},{comments:ga})}}),xr.next=12;break;case 9:xr.prev=9,xr.t0=xr.catch(0),console.log(xr.t0);case 12:case"end":return xr.stop()}},dr,null,[[0,9]])})),Dn.apply(this,arguments)}function Xt(dr,Nn,un){return Mn.apply(this,arguments)}function Mn(){return Mn=Object(l.a)(y.a.mark(function dr(Nn,un,kr){var va,Jn,Hn;return y.a.wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:return aa.prev=0,aa.next=3,vr(Nn,un);case 3:if(va=aa.sent,!(va.status!==0)){aa.next=6;break}return aa.abrupt("return");case 6:Jn=ga[kr].author.user_id,Hn=ga.map(function(Pr){return Pr.author.user_id===Jn?Object(e.a)(Object(e.a)({},Pr),{},{disable_discuss_status:un}):Pr}),Tt({type:we,payload:{data:Object(e.a)(Object(e.a)({},nt),{},{comments:Hn})}}),aa.next=14;break;case 11:aa.prev=11,aa.t0=aa.catch(0),console.log(aa.t0);case 14:case"end":return aa.stop()}},dr,null,[[0,11]])})),Mn.apply(this,arguments)}function ir(dr,Nn,un){return sr.apply(this,arguments)}function sr(){return sr=Object(l.a)(y.a.mark(function dr(Nn,un,kr){return y.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:return Jn.prev=0,Jn.next=3,Vr(Nn,un);case 3:ga[kr].sticky=un,Tt({type:Bt,payload:{data:Object(e.a)(Object(e.a)({},nt),{},{comments:ga})}}),fn(kt.page),Jn.next=11;break;case 8:Jn.prev=8,Jn.t0=Jn.catch(0),console.log(Jn.t0);case 11:case"end":return Jn.stop()}},dr,null,[[0,8]])})),sr.apply(this,arguments)}function er(){Tt({type:We,payload:{actionType:null}})}function qn(){return an.apply(this,arguments)}function an(){return an=Object(l.a)(y.a.mark(function dr(){var Nn,un,kr,va,Jn,Hn,xr,aa;return y.a.wrap(function(Fa){for(;;)switch(Fa.prev=Fa.next){case 0:if(Nn=Ht.id,un=Ht.params,kr=Ht.type,va=Ht.index,Jn=Ht.parentDiscussIndex,!(kr==="hidden-discuss")){Fa.next=6;break}return Fa.next=4,wa(Nn,un);case 4:Jn?ga[Jn].children[va].hidden=un.hidden==1:ga[va].hidden=un.hidden==1,Tt({type:We,payload:{actionType:null,data:Object(e.a)(Object(e.a)({},nt),{},{comments:ga})}});case 6:if(!(kr==="delete-discuss")){Fa.next=31;break}return Fa.next=9,ur(Nn);case 9:if(!(Jn||Jn===0)){Fa.next=22;break}Hn=ga[Jn].children,xr=Hn.length-1;case 12:if(!(xr>=0)){Fa.next=19;break}if(!(Hn[xr].id===Nn)){Fa.next=16;break}return Hn.splice(xr,1),Fa.abrupt("break",19);case 16:xr--,Fa.next=12;break;case 19:ga[Jn].children=Hn,Fa.next=30;break;case 22:aa=ga.length-1;case 23:if(!(aa>=0)){Fa.next=30;break}if(!(ga[aa].id===Nn)){Fa.next=27;break}return ga.splice(aa,1),Fa.abrupt("break",30);case 27:aa--,Fa.next=23;break;case 30:Tt({type:We,payload:{actionType:null,data:Object(e.a)(Object(e.a)({},nt),{},{comments:ga})}});case 31:case"end":return Fa.stop()}},dr)})),an.apply(this,arguments)}function Vn(dr){Tt({type:We,payload:{actionType:dr}})}function Fr(){Tt({type:Ge})}function Gr(){return lr.apply(this,arguments)}function lr(){return lr=Object(l.a)(y.a.mark(function dr(){var Nn,un,kr,va,Jn,Hn,xr;return y.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:return Nn=bn.current,un=Nn.id,kr=Nn.index,va=Nn.score,Jn=Nn.user_id,Hn=Nn.parentDiscussIndex,Pr.next=3,An(un,{container_type:"Discusses",score:va,user_id:Jn});case 3:xr=Pr.sent,Hn?ga[Hn].children[kr].reward=xr.code:ga[kr].reward=xr.code,Tt({type:je,payload:{showRewardDialog:!1,data:Object(e.a)(Object(e.a)({},nt),{},{comments:ga})}}),bn.current=null;case 7:case"end":return Pr.stop()}},dr)})),lr.apply(this,arguments)}function Ra(dr){bn.current=dr,Tt({type:dt})}function ja(dr){bn.current.score=dr}function ci(dr,Nn){return ra.apply(this,arguments)}function ra(){return ra=Object(l.a)(y.a.mark(function dr(Nn,un){var kr;return y.a.wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:return Jn.prev=0,Jn.next=3,Ut(Nn,un);case 3:if(kr=Jn.sent,!(kr.status===-3)){Jn.next=8;break}return u.a.info({title:"\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:"\u4F60\u7684\u8D26\u53F7\u56E0\u4E3A\u53D1\u5E03\u4E86\u4E0D\u5F53\u5185\u5BB9\uFF0C\u73B0\u5DF2\u5C06\u8BC4\u8BBA\u529F\u80FD\u5C4F\u853D\u3002",okText:"\u786E\u5B9A"}),xi(null),Jn.abrupt("return");case 8:fn(jt),Jn.next=14;break;case 11:Jn.prev=11,Jn.t0=Jn.catch(0),console.log(Jn.t0);case 14:case"end":return Jn.stop()}},dr,null,[[0,11]])})),ra.apply(this,arguments)}function Na(dr,Nn){return Ri.apply(this,arguments)}function Ri(){return Ri=Object(l.a)(y.a.mark(function dr(Nn,un){var kr,va;return y.a.wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return Hn.prev=0,Hn.next=3,Xn(Nn,un);case 3:if(kr=Hn.sent,va=kr.status,!(va!==1)){Hn.next=7;break}return Hn.abrupt("return");case 7:fn(jt),Hn.next=13;break;case 10:Hn.prev=10,Hn.t0=Hn.catch(0),console.log(Hn.t0);case 13:case"end":return Hn.stop()}},dr,null,[[0,10]])})),Ri.apply(this,arguments)}function xi(dr){sn===dr?Tt({type:Fe,payload:{activeDiscussIndex:null}}):Tt({type:Fe,payload:{activeDiscussIndex:dr}})}if(Object(E.useEffect)(function(){function dr(){return Nn.apply(this,arguments)}function Nn(){return Nn=Object(l.a)(y.a.mark(function un(){return y.a.wrap(function(va){for(;;)switch(va.prev=va.next){case 0:if(!(gt===3&&!nt&&Me)){va.next=3;break}return va.next=3,fn(jt);case 3:case"end":return va.stop()}},un)})),Nn.apply(this,arguments)}dr()},[Me,gt,jt,Tt]),Object(E.useEffect)(function(){var dr=En.a.subscribe("create-discuss",function(){fn(jt)});return dr},[Me]),!nt)return c.a.createElement(Di.a,null);var ki=function(){Jt(!Yt),Yt?nn(setInterval(function(){fn(jt,!0)},5e3)):clearInterval(tn)},Li=nt.disscuss_count,ga=nt.comments,po=nt.all,mo=nt.can_hidden;return c.a.createElement(E.Fragment,null,c.a.createElement("div",{className:"discuss-container",ref:On},(ot==null?void 0:ot.myshixun_manager)&&c.a.createElement(Ka.a,{style:{float:"right",marginBottom:10},type:"primary",onClick:ki},Yt?"\u5F00\u542F\u5B9E\u65F6\u5237\u65B0":"\u505C\u6B62\u5B9E\u65F6\u5237\u65B0"),Li===0?c.a.createElement(U.a,{styles:{clear:"both",pointerEvents:"none"}}):null,ga.map(function(dr,Nn){return c.a.createElement(Zr,{user:Et,key:dr.id,userInfomation:Ve,data:dr,index:Nn,identity:Ke,onPaginationChange:$t,shixunIdentifier:Me,onSetActionType:Vn,onTopOrDownDiscuss:ir,adminOrOperator:mo,onPlusDiscuss:Qt,onDisableDiscuss:Xt,onSetRewardData:Ra,activeDiscussIndex:sn,onHandleSubmitDiscusses:Na,onSetActiveDiscussIndex:xi,onReplyDiscuss:ci,allowDisableDiscuss:tt,onHandleRepaly:jn})}),Li>10?c.a.createElement("div",{className:"pagination-container"},c.a.createElement(W.a,{showQuickJumper:!0,showSizeChanger:!1,onChange:$t,current:jt,total:Li})):null,c.a.createElement(Mi,null)),c.a.createElement(Rr.a,null,c.a.createElement(u.a,{centered:!0,title:"\u63D0\u793A",visible:!!Ht,onOk:qn,onCancel:er},c.a.createElement("p",null,Ht?Ht.message:"")),c.a.createElement(u.a,{centered:!0,width:400,title:"\u5956\u52B1\u8BBE\u7F6E",visible:rn,onCancel:Fr,onOk:Gr},c.a.createElement(Eo.a,{placeholder:"\u8BF7\u8F93\u5165\u5956\u52B1\u7684\u91D1\u5E01\u6570\u91CF",min:1,onChange:ja,style:{width:"228px"}}))))},Gi=v("gp9y"),ha=v("Ot1p"),Si=function(ae){var Me=ae.user_praise,Ke=ae.praise_count,gt=ae.praisePlus,Et=ae.onCreateDiscuss,tt=ae.user,Ve=ae.userInfo,bt=Object(E.useState)(!1),mt=Object(n.a)(bt,2),ot=mt[0],ct=mt[1],Pt=Object(E.useState)(""),kt=Object(n.a)(Pt,2),Tt=kt[0],Nt=kt[1];function Ft(tn){Nt(tn)}function Yt(){ct(!0)}function Jt(){ct(!1)}function pn(){return xn.apply(this,arguments)}function xn(){return xn=Object(l.a)(y.a.mark(function tn(){return y.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:if(Ve!=null&&Ve.authentication){jt.next=3;break}return u.a.confirm({title:"\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:"\u9700\u8981\u901A\u8FC7\u5B9E\u540D\u9A8C\u8BC1\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u8BC4\u8BBA\u64CD\u4F5C",okText:"\u524D\u5F80\u5B9E\u540D\u9A8C\u8BC1",cancelText:"\u53D6\u6D88",onOk:function(){window.open("/account/certification")}}),jt.abrupt("return");case 3:if(!(Tt.trim()=="")){jt.next=6;break}return r.b.warn("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),jt.abrupt("return");case 6:Et(Tt),Nt(""),ct(!1);case 9:case"end":return jt.stop()}},tn)})),xn.apply(this,arguments)}return c.a.createElement("div",{className:"comment-input-editor-container ".concat(ot?"active":""," ")},c.a.createElement("div",{className:ot?"text-area hide":"text-area"},c.a.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:Yt}),c.a.createElement("a",{className:"c-light-black",onClick:gt,title:Me?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},c.a.createElement("i",{className:"mr3 ".concat(Me?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"," "),alt:"\u8D5E"}),Ke?c.a.createElement("span",null,Ke):"")),ot?c.a.createElement("div",{className:"input-mask",onClick:Jt}):null,c.a.createElement("div",{className:ot?"md-container":"md-container hide"},c.a.createElement(ha.a,{id:"discuss-input-editor",startInit:ot,miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:Tt,height:240,onChange:Ft}),c.a.createElement("div",{className:"tip-container",onClick:Jt},c.a.createElement("p",null,"\u8BF7\u52FF\u7C98\u8D34\u7B54\u6848\uFF0C\u5426\u5219\u5C06\u9020\u6210\u8D26\u53F7\u7981\u7528\u540E\u679C\uFF01"),c.a.createElement("a",{className:"btn-send",style:{color:"#fff"},onClick:pn},"\u53D1\u9001"))))},Ei=v("/omn"),Ui=v("ARon"),Do=function(ae){var Me=ae.data;return c.a.createElement(E.Fragment,null,Me&&Me.map(function(Ke){return c.a.createElement("div",{className:"choose-answer-item",key:Ke.position},c.a.createElement("p",null,"\u7B2C",Ke.position,"\u9898"),c.a.createElement(In.a,{value:Ke.answer}))}))},gs=v("DVFL"),Ao=function(ae){var Me=ae.data,Ke=ae.onShowUnlockAnswerModal,gt=ae.challenge,Et=gt!=null&&gt.disable_copy?{pointerEvents:"none",userSelect:"none"}:{};return c.a.createElement(E.Fragment,null,Me&&Me.map(function(tt,Ve){var bt=tt.answer_id,mt=tt.answer_name,ot=tt.answer_contents,ct=tt.view_time;return c.a.createElement("div",{className:"answer-item-container",style:Et,key:bt},c.a.createElement("div",{className:"flex-container"},c.a.createElement("span",{className:"level"}," \u7EA7\u522B",Ve+1,"\uFF1A "),c.a.createElement("span",{className:"name"},mt),ot?c.a.createElement(E.Fragment,null,c.a.createElement("span",{className:"view-time"},ct?q()(ct).format("YYYY-MM-DD HH:mm"):""),c.a.createElement("span",null,"\u5DF2\u89E3\u9501")):c.a.createElement("a",{onClick:Ke},"\u89E3\u9501")),ot?c.a.createElement(In.a,{value:ot}):null)}))},Za=function(ae){var Me=ae.loading,Ke=ae.data,gt=ae.onShowTip,Et=ae.st,tt=ae.challenge,Ve=Object(E.useRef)(null),bt=Object(E.useRef)(null),mt=Object(E.useRef)(null),ot=Object(E.useRef)(null),ct=Object(E.useRef)({x:0,y:0});return Object(E.useEffect)(function(){if(Ve.current&&tt!==null&&tt!==void 0&&tt.disable_copy){function Pt(Nt){ct.current={x:Nt.clientX,y:Nt.clientY},clearTimeout(mt.current),clearTimeout(ot.current),mt.current=setTimeout(function(){bt.current.style.left="".concat(ct.current.x,"px"),bt.current.style.top="".concat(ct.current.y,"px"),bt.current.style.display="block"},1e3),ot.current=setTimeout(function(){bt.current.style.display="none",clearTimeout(mt.current),clearTimeout(ot.current)},3e3)}function kt(){bt.current.style.display="none",clearTimeout(mt.current),clearTimeout(ot.current)}function Tt(Nt){ct.current={x:Nt.clientX,y:Nt.clientY}}return Ve.current.addEventListener("mouseenter",Pt),window.addEventListener("mousemove",Tt),Ve.current.addEventListener("mouseleave",kt),function(){Ve.current.removeEventListener("mouseenter",Pt),window.removeEventListener("mousemove",Tt),Ve.current.removeEventListener("mouseleave",kt)}}},[Ve==null?void 0:Ve.current,tt==null?void 0:tt.disable_copy]),c.a.createElement("div",{ref:Ve,className:"answer-container"},c.a.createElement("div",{ref:bt,className:"answer-tips-css"},"\u7981\u6B62\u590D\u5236\u53C2\u8003\u7B54\u6848"),Me?c.a.createElement(Di.a,null):null,Et===1?c.a.createElement(Do,{data:Ke}):c.a.createElement(Ao,{data:Ke,challenge:tt,onShowUnlockAnswerModal:gt}))},is=v("sRBo"),Dr=v("kaz8"),wn=v("gflZ"),Qn=function(ae){var Me=ae.data,Ke=ae.selected_unlocked_answer_id,gt=ae.selected_index,Et=ae.onSelect;if(!Me)return null;var tt=Me.filter(function(bt,mt){return bt.answer_contents?!1:(bt.index=mt,!0)});function Ve(bt){var mt=bt.target,ot=mt.value,ct=mt.checked;Et(ct?ot:null)}return c.a.createElement("table",{className:"unlock-answer-list"},c.a.createElement("thead",null,c.a.createElement("tr",null,c.a.createElement("th",null),c.a.createElement("th",null,"\u7EA7\u522B"),c.a.createElement("th",null,"\u540D\u79F0"),c.a.createElement("th",null,"\u6263\u5206\u5360\u6BD4"),c.a.createElement("th",null,"\u6263\u51CF\u91D1\u5E01"))),c.a.createElement("tbody",null,tt.map(function(bt,mt){return c.a.createElement("tr",{key:bt.answer_id},c.a.createElement("td",null,c.a.createElement(Dr.a,{value:bt.answer_id,onChange:Ve,checked:bt.answer_id===Ke||Ke&&gt>=mt})),c.a.createElement("td",null,bt.index+1),c.a.createElement("td",null,bt.answer_name),c.a.createElement("td",null,bt.answer_ratio,"%"),c.a.createElement("td",{className:"gold-color"},bt.answer_score))})))},Cn=v("Q7Vx"),mr=function(ae){var Me=ae.unity_3d_routes,Ke=ae.onGetUnity3dMessage,gt=ae.onEvaluateCallback,Et=ae.taskData,tt=ae.userInfo,Ve=Object(E.useRef)(),bt=Object(C.i)(),mt=Object(E.useRef)(),ot=Object(E.useState)(!0),ct=Object(n.a)(ot,2),Pt=ct[0],kt=ct[1],Tt=Object(E.useState)({}),Nt=Object(n.a)(Tt,2),Ft=Nt[0],Yt=Nt[1];Object(E.useEffect)(function(){function nn(vn){try{var nt=JSON.parse(vn.data);Ke(nt),nt.type==="getTaskData"&&xn({taskData:Et,userInfo:tt})}catch(Ht){console.log("error:",Ht,vn)}}window.addEventListener("message",nn);var jt=En.a.subscribe("evaluate-unity3d-result",function(vn){xn(vn),gt&&gt()});return function(){clearTimeout(Ve.current),window.removeEventListener("message",nn),jt()}},[]),Object(E.useEffect)(function(){Et.challenge.thiry_party&&Jt();var nn=En.a.subscribe("reset-linux-windos-vnc",function(){Jt()}),jt=En.a.subscribe("vnc-reseting",function(){Yt({}),kt(!0)});return function(){jt(),nn()}},[Et]);var Jt=function(){var nn=Object(l.a)(y.a.mark(function jt(){var vn,nt,Ht,rn,sn,bn,On,fn;return y.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return $t.next=2,Object(on.a)("/api/myshixuns/".concat(Et==null||((vn=Et.myshixun)===null||vn===void 0)?void 0:vn.identifier,"/start.json"),{method:"get",params:{game_id:Et==null||((nt=Et.game)===null||nt===void 0)?void 0:nt.id}});case 2:if(sn=$t.sent,kt(!1),!(sn!=null&&(Ht=sn.data)!==null&&Ht!==void 0&&(rn=Ht.data_list)!==null&&rn!==void 0&&rn.length)){$t.next=7;break}return En.a.publish("pod-restrict-data",{identifier:sn==null||((bn=sn.data)===null||bn===void 0)?void 0:bn.identifier,data_list:sn==null||((On=sn.data)===null||On===void 0)?void 0:On.data_list}),$t.abrupt("return");case 7:sn!=null&&sn.data&&(sn.data.thiry_party_time=sn.data.remaining_time,sn.data.thiry_party_url=(sn==null||((fn=sn.data)===null||fn===void 0)?void 0:fn.link_url)+"?t="+new Date().getTime(),Yt(Object(e.a)({},sn.data||{}))),clearTimeout(Ve.current),Ve.current=setTimeout(function(){pn()},sn.data.thiry_party_time-30*1e3);case 10:case"end":return $t.stop()}},jt)}));return function(){return nn.apply(this,arguments)}}(),pn=function(){var nn=Object(l.a)(y.a.mark(function jt(){var vn;return y.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:return Ht.next=2,Object(on.a)("/api/tasks/".concat(bt.taskId||taskId,"/extend_linux_vnc.json"),{method:"post",body:Object(e.a)({},bt)});case 2:vn=Ht.sent,clearTimeout(Ve.current),Ve.current=setTimeout(function(){pn()},vn.data.remaining_time-30*1e3);case 5:case"end":return Ht.stop()}},jt)}));return function(){return nn.apply(this,arguments)}}();function xn(nn){mt.current&&mt.current.contentWindow.postMessage(JSON.stringify(nn),"*")}function tn(){kt(!1),En.a.publish("unity3d-load-end")}return c.a.createElement(E.Fragment,null,Pt?c.a.createElement(Di.a,{className:"c-white",message:"\u6B63\u5728\u52AA\u529B\u52A0\u8F7D\u4E2D..."}):null,(Me||Ft.thiry_party_url)&&c.a.createElement("iframe",{onLoad:tn,className:"unity3d-panel",ref:mt,allow:"geolocation document-domain",sandbox:"allow-scripts allow-same-origin allow-top-navigation allow-forms allow-popups allow-pointer-lock allow-popups-to-escape-sandbox allow-presentation allow-top-navigation-by-user-activation",src:Me||Ft.thiry_party_url}))},yr=v("BjJ7");function Aa(ae){var Me=ae.target;if(Me.tagName.toUpperCase()==="IMG"){var Ke=Me.src||Me.getAttribute("src");Ke&&Ke.indexOf("/images/avatars/User")===-1&&(ae.stopPropagation(),ae.preventDefault(),En.a.publish("preview-image",Ke))}}var Da={showTaskList:!1,activeIndex:0,taskList:[],enlarge_unity3D:!1,tab_fixed:!1,selected_unlocked_answer_id:null,isMultiLevel:!1,showTip:!1,answerScore:0,data:null,loading:!1};function Er(ae,Me){switch(Me.type){case Ce:return Object(e.a)(Object(e.a)({},ae),{},{activeIndex:Me.payload});case Be:return Object(e.a)(Object(e.a)({},ae),{},{enlarge_unity3D:Me.payload});case ft:return Object(e.a)(Object(e.a)({},ae),{},{tab_fixed:Me.payload});case de:return Object(e.a)(Object(e.a)({},ae),{},{showTaskList:!0});case ke:return Object(e.a)(Object(e.a)({},ae),{},{showTaskList:!1});case Pe:return Object(e.a)(Object(e.a)({},ae),Me.payload);case me:return Object(e.a)(Object(e.a)({},ae),Me.payload);case se:return Object(e.a)(Object(e.a)({},ae),{},{loading:!0});case Q:return Object(e.a)(Object(e.a)({},ae),{},{showTip:!0});case Ne:return Object(e.a)(Object(e.a)({},ae),{},{showTip:!1});case Ue:return Object(e.a)(Object(e.a)({},ae),{},{selected_unlocked_answer_id:Me.payload});case _e:return Object(e.a)(Object(e.a)({},ae),Me.payload);default:throw new Error}}var fr=function(ae){var Me=ae.taskId,Ke=ae.minuxUserGrade,gt=ae.discusses_count,Et=ae.is_teacher,tt=ae.has_answer,Ve=ae.user,bt=ae.st,mt=ae.game,ot=ae.rank_name,ct=ae.challenge,Pt=ae.myshixun,kt=ae.user_praise,Tt=ae.praise_count,Nt=ae.unity_3d_routes,Ft=ae.thiry_party_url,Yt=ae.with_code_file,Jt=ae.onPlusOrCancelPraise,pn=ae.onEvaluateCallback,xn=ae.onGetUnity3dMessage,tn=ae.shixun,nn=ae.taskData,jt=Object(E.useReducer)(Er,Da),vn=Object(n.a)(jt,2),nt=vn[0],Ht=vn[1],rn=Object(E.useState)(!1),sn=Object(n.a)(rn,2),bn=sn[0],On=sn[1],fn=Object(E.useState)(!1),Zt=Object(n.a)(fn,2),$t=Zt[0],Qt=Zt[1],mn=Object(E.useState)({}),jn=Object(n.a)(mn,2),Dn=jn[0],Xt=jn[1],Mn=Object(C.h)().query,ir=nt.taskList,sr=nt.showTaskList,er=nt.activeIndex,qn=nt.enlarge_unity3D,an=nt.tab_fixed,Vn=nt.data,Fr=nt.answerScore,Gr=nt.loading,lr=nt.showTip,Ra=nt.isMultiLevel,ja=nt.selected_unlocked_answer_id,ci=Object(E.useMemo)(function(){var re=0;if(Vn&&ja){for(var fe=Vn.filter(function(Se){return!Se.answer_contents}),ge=0;ge<fe.length;ge++)if(fe[ge].answer_id===ja){re=ge;break}}return re},[Vn,ja]),ra=tn?tn.propaedeutics:null,Na=Object(E.useRef)(),Ri=ct.open_rank;console.log(ct,"challenge");var xi=Object(E.useMemo)(function(){var re=[{index:0,title:"\u4EFB\u52A1\u8981\u6C42"}];return ra&&re.push({index:1,title:"\u80CC\u666F\u77E5\u8BC6"}),tt&&Mn.type!=="exercises"&&!(ct!=null&&ct.hide_answer)&&re.push({index:2,title:"\u53C2\u8003\u7B54\u6848"}),Mn.type!=="exercises"&&!(tn!=null&&tn.is_disable_discuss)&&re.push({index:3,title:"\u8BC4\u8BBA"}),Ri!=="CLOSE"&&re.push({index:4,title:ot}),re},[tt,ra,Ri,ot]);function ki(re){var fe=parseInt(re.currentTarget.id);fe===2?mt.homework_common_answer_open?r.b.info("\u7981\u6B62\u67E5\u770B\u7B54\u6848"):Li():fe===3&&mt.homework_common_comment_open?r.b.info("\u7981\u6B62\u67E5\u770B\u8BC4\u8BBA"):Ht({type:Ce,payload:fe})}function Li(){return ga.apply(this,arguments)}function ga(){return ga=Object(l.a)(y.a.mark(function re(){var fe;return y.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(!(bt===0)){Se.next=5;break}return Se.next=3,po();case 3:Se.next=9;break;case 5:return Se.next=7,Object(pe.q)(mt.identifier);case 7:fe=Se.sent,dr(fe);case 9:case"end":return Se.stop()}},re)})),ga.apply(this,arguments)}function po(){return mo.apply(this,arguments)}function mo(){return mo=Object(l.a)(y.a.mark(function re(){var fe,ge,Se;return y.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return at.next=2,Object(pe.p)(mt.identifier);case 2:if(fe=at.sent,ge=fe.message,!(ge.length===0)){at.next=7;break}return r.b.info("\u672C\u5173\u5361\u672A\u8BBE\u7F6E\u7B54\u6848"),at.abrupt("return");case 7:if(ge.length){at.next=10;break}return Ht({type:_e,payload:{showTip:!0,isMultiLevel:!1,answerScore:ge.answer_score,selected_unlocked_answer_id:ge.answer_id}}),at.abrupt("return");case 10:Se=ge.filter(function(Dt){return Dt.answer_contents}).length===0,Ht({type:_e,payload:{showTip:Se,data:ge,isMultiLevel:ge.length>1,activeIndex:Se?er:2}});case 12:case"end":return at.stop()}},re)})),mo.apply(this,arguments)}function dr(re){var fe=re.choose_answers,ge=re.message,Se=re.status;if(Se===0){r.b.info(ge);return}Ht({type:_e,payload:{showTip:Se===1,data:fe,answerScore:ge,loading:!1,activeIndex:Se===1?er:2}})}function Nn(){Ht({type:Ne})}function un(){Ht({type:Q})}function kr(){return va.apply(this,arguments)}function va(){return va=Object(l.a)(y.a.mark(function re(){var fe,ge,Se,Je,at;return y.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:if(On(!0),!(bt===1)){Ot.next=8;break}return Ot.next=4,Object(pe.r)(mt.identifier);case 4:fe=Ot.sent,(fe==null?void 0:fe.status)!==-1&&(Ke(Fr),dr(fe)),Ot.next=14;break;case 8:if(!ja){Ot.next=14;break}return Ot.next=11,Object(pe.u)(mt.identifier,ja);case 11:ge=Ot.sent,Se=ge.status,Je=ge.message,Se===-1||(Ra?(at=0,Vn.filter(function(Gt){return!Gt.answer_contents}).forEach(function(Gt,en){en<=ci&&Gt&&(at+=Gt.answer_score)}),Ke(at)):Ke(Fr),po(),Jn(null),Ht({type:Ne}));case 14:On(!1);case 15:case"end":return Ot.stop()}},re)})),va.apply(this,arguments)}function Jn(re){Ht({type:Ue,payload:re})}function Hn(){return xr.apply(this,arguments)}function xr(){return xr=Object(l.a)(y.a.mark(function re(){var fe,ge;return y.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(Je.prev=0,!Mn.subject_id){Je.next=7;break}return Je.next=4,Object(pe.k)(Pt.identifier,Object(e.a)({},Mn));case 4:ge=Je.sent,Je.next=10;break;case 7:return Je.next=9,Object(pe.o)(Pt.identifier);case 9:ge=Je.sent;case 10:Ht({type:Pe,payload:{taskList:((fe=ge)===null||fe===void 0?void 0:fe.stages)||ge,showTaskList:!0}}),Je.next=16;break;case 13:Je.prev=13,Je.t0=Je.catch(0),console.log(Je.t0);case 16:case"end":return Je.stop()}},re,null,[[0,13]])})),xr.apply(this,arguments)}function aa(re,fe,ge){return Pr.apply(this,arguments)}function Pr(){return Pr=Object(l.a)(y.a.mark(function re(fe,ge,Se){return y.a.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:return at.prev=0,at.next=3,Object(pe.H)(fe,tn.id,ge);case 3:ir[Se].star=ge,Ht({type:me,payload:{taskList:Object(w.a)(ir)}}),at.next=10;break;case 7:at.prev=7,at.t0=at.catch(0),console.log(at.t0);case 10:case"end":return at.stop()}},re,null,[[0,7]])})),Pr.apply(this,arguments)}function Fa(){Hn()}function ko(){Ht({type:ke})}Object(E.useEffect)(function(){if(!(tn!=null&&tn.identifier))return;var re=Object(nr.q)({objective_type:"shixun",objective_id:tn==null?void 0:tn.identifier,school:1});re.then(function(fe){var ge;Xt(Object(e.a)({},fe)),Qt(fe==null||((ge=fe.shixun)===null||ge===void 0)?void 0:ge.own)})},[tn==null?void 0:tn.identifier]),Object(E.useEffect)(function(){return function(){Ht({type:ke}),Ht({type:Ce,payload:0})}},[Me]),Object(E.useEffect)(function(){Ht({type:Ce,payload:Mn.extra?3:0})},[Mn.extra]),Object(E.useEffect)(function(){if(Na.current)return Na.current.addEventListener("mousedown",Aa),function(){Na.current.removeEventListener("mousedown",Aa)}},[Na.current]),Object(E.useEffect)(function(){if((Yt&&Nt||Ft)&&Na.current){var re=Object(yr.b)(function(ge){var Se=ge.target.scrollTop;Se>=354?Ht({type:ft,payload:!0}):Ht({type:ft,payload:!1})},10);Na.current.addEventListener("scroll",re);var fe=En.a.subscribe("evaluate-unity3d-finish",function(){Na.current.scrollTop=0});return function(){Na.current.removeEventListener("scroll",re),fe()}}},[Yt,Nt,Ft,Na.current]);var lo=ct.position,Pi=ct.score,t=ct.subject,p={onViewAllTask:Fa,position:lo,score:Pi,subject:t};function O(re){return A.apply(this,arguments)}function A(){return A=Object(l.a)(y.a.mark(function re(fe){var ge;return y.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return Je.next=2,tr({content:fe,container_type:"Shixun",container_id:tn.id,challenge_id:ct.id,position:lo});case 2:if(ge=Je.sent,!(ge.status===-3)){Je.next=6;break}return u.a.info({title:"\u63D0\u793A",className:"custom-modal-divider ",icon:null,content:"\u4F60\u7684\u8D26\u53F7\u56E0\u4E3A\u53D1\u5E03\u4E86\u4E0D\u5F53\u5185\u5BB9\uFF0C\u73B0\u5DF2\u5C06\u8BC4\u8BBA\u529F\u80FD\u5C4F\u853D\u3002",okText:"\u786E\u5B9A"}),Je.abrupt("return");case 6:console.log(ge),Ht({type:Ce,payload:3}),En.a.publish("create-discuss");case 9:case"end":return Je.stop()}},re)})),A.apply(this,arguments)}function N(){Ht({type:Be,payload:!qn})}var V={loading:Gr,data:Vn,onShowTip:un,st:bt,challenge:ct};return c.a.createElement(E.Fragment,null,c.a.createElement(P,p),c.a.createElement("div",{className:"content-wrapper",ref:Na},Nt&&Yt?c.a.createElement("div",{className:"unity-3d-container ".concat(qn?"enlarge":"")},c.a.createElement("a",{onClick:N,className:"btn-enlarge ".concat(qn?"enlarge":"")},c.a.createElement("i",{className:"iconfont ".concat(qn?"icon-suoxiao1":"icon-kuoda"," ")})),(Dn==null?void 0:Dn.user_id)&&c.a.createElement(mr,{userInfo:Dn,taskData:nn,unity_3d_routes:Nt,onGetUnity3dMessage:xn,onEvaluateCallback:pn})):null,c.a.createElement("ul",{className:"tab-nav ".concat(an?"tab-fixed":"")},xi.map(function(re){return c.a.createElement("li",{onClick:ki,id:re.index,key:re.title,className:er===re.index?"active":""},c.a.createElement("a",null,re.title,re.index===3&&gt?c.a.createElement("span",null,gt):null))})),c.a.createElement("div",{className:er===0?"tab-panel-body ".concat(Nt&&Yt?"scroll-margin-top":""):"hide"},c.a.createElement(In.a,{value:ct.task_pass})),c.a.createElement("div",{className:er===1?"tab-panel-body":"hide"},ra?c.a.createElement(In.a,{value:ra}):null),c.a.createElement("div",{className:er===2?"tab-panel-body":"hide",style:{padding:"0 0 20px 0"}},c.a.createElement(Za,V)),c.a.createElement("div",{className:er===3?"tab-panel-body":"hide"},c.a.createElement(Sr,{activeIndex:er,userInfo:Dn,shixunIdentifier:tn.identifier,identity:Ve.identity,user:Ve,allowDisableDiscuss:$t,taskData:nn})),c.a.createElement("div",{className:er===4?"tab-panel-body":"hide"},c.a.createElement(ne,{activeIndex:er,taskId:Me})),Mn.type!=="exercises"&&!(tn!=null&&tn.is_disable_discuss)&&!mt.homework_common_comment_open&&c.a.createElement(Si,{user:Ve,userInfo:Dn,user_praise:kt,praise_count:Tt,praisePlus:Jt,onCreateDiscuss:O})),c.a.createElement(Rr.a,null,c.a.createElement(I.a,{className:"task-drawer",width:420,title:null,placement:"left",closable:!1,visible:sr,onClose:ko,getContainer:function(){return document.getElementById("task-left-panel")}},Mn.subject_id&&c.a.createElement(Sa,Object(a.a)({taskList:Object(w.a)(ir),challenge:ct,shixun:tn},Mn,{identity:Ve.identity,onSaveTaskStar:aa})),!Mn.subject_id&&c.a.createElement(ia,{taskList:Object(w.a)(ir),challenge:ct,shixun:tn,identity:Ve.identity,onSaveTaskStar:aa})),c.a.createElement(u.a,{centered:!0,title:"\u63D0\u793A",visible:lr,onOk:kr,onCancel:Nn,confirmLoading:bn,className:"answer-tip"},Et?c.a.createElement("p",null,"\u5DF2\u7ECF\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u53EF\u4EE5\u514D\u91D1\u5E01\u67E5\u770B\u7B54\u6848\u54DF~"):c.a.createElement("p",null,"\u5148\u67E5\u770B\u53C2\u8003\u7B54\u6848\uFF0C\u518D\u901A\u8FC7\u8BC4\u6D4B\u7684\u5B66\u751F\uFF0C\u5B9E\u8BAD\u4F5C\u4E1A\u6709\u53EF\u80FD\u662F\u96F6\u5206\u54E6~"),Ra?c.a.createElement(Qn,{selected_index:ci,selected_unlocked_answer_id:ja,onSelect:Jn,data:Vn}):c.a.createElement("p",null,"\u5C06\u6263\u9664".concat(Fr,"\u70B9\u91D1\u5E01\uFF0C\u662F\u5426\u786E\u8BA4\u67E5\u770B\u7B54\u6848")),Et?c.a.createElement("a",{href:"/account/certification",class:"to-certification-link",target:"_blank"},"\u7ACB\u5373\u8BA4\u8BC1"):null),c.a.createElement(Ji.a,null)))},da=v("aHsQ"),ni=v("sGsY"),qa=v("55Ip"),Fi=v("9VGf");function Mo(ae){return ae.toString().padStart(2,"0")}function Qe(ae){var Me=Math.floor(ae/60),Ke=ae%60,gt=Math.floor(Me/60);return"".concat(Mo(gt),":").concat(Mo(Me-gt*60),":").concat(Mo(Ke))}var _t=function(ae){var Me=ae.defaultTime,Ke=ae.status,gt=ae.onUpdateCostTime,Et=ae.lastedGetTaskInfoTime,tt=ae.title,Ve=tt===void 0?"":tt,bt=Object(E.useState)(Me||0),mt=Object(n.a)(bt,2),ot=mt[0],ct=mt[1],Pt=Object(E.useRef)();return Object(E.useEffect)(function(){Et&&(ct(Me),Pt.current=Me)},[Me,Et]),Object(E.useEffect)(function(){if(Et){var kt=En.a.subscribe("update-cost-time",function(){Ke!==2&&gt(Pt.current)});return kt}},[Et]),Object(Fi.a)(function(){ct(ot+1),Pt.current=Pt.current+1},Ke===2?null:1e3),c.a.createElement("span",null,Ve?"".concat(Ve,"\uFF1A"):null,Qe(ot))},xt=v("8Enf"),it=v("P2fV"),Oe=v("NJEC"),ze=v("fxth"),Ie=v.n(ze),rt=v("RCxd"),lt=v("S+dL"),St=v.n(lt),yt=v("dViP"),It=v("Bwpq"),zt=v("H4Hw"),_n=v("Scqh"),hn=v("P5Jw"),Rn=v("LvDl");function Tr(ae){var Me=ae.onShowNotice,Ke=ae.className,gt=Ke===void 0?"":Ke;return c.a.createElement("a",{title:"\u66F4\u65B0\u901A\u77E5",onClick:Me,className:gt},c.a.createElement("img",{src:St.a,alt:"notice"}))}var ta=function(ae){var Me,Ke=ae.loading,gt=ae.lastedUpdateTime,Et=ae.moveY,tt=ae.code_hidden,Ve=ae.hide_code,bt=ae.gameStatus,mt=ae.isEditPath,ot=ae.isNotice,ct=ae.git_url,Pt=ae.taskData,kt=ae.onUpdateCode,Tt=ae.onResetCode,Nt=ae.onResetGitCode,Ft=ae.onShowCodeSetting,Yt=ae.onResetPassedCode,Jt=ae.onShowDir,pn=ae.onResizeCodeArea,xn=ae.onShowNotice,tn=ae.onRightFullHandler,nn=ae.isResizeLarge,jt=Object(C.i)(),vn=Object(C.h)(),nt=Object(E.useState)(!1),Ht=Object(n.a)(nt,2),rn=Ht[0],sn=Ht[1];Object(E.useEffect)(function(){var $t=En.a.subscribe("runCodeFinish",function(){sn(!1)});return function(){$t()}},[]);var bn=function(){u.a.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:c.a.createElement(rt.a,null),content:"\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931\uFF0C\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Tt})},On=function(){u.a.confirm({title:"\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93",icon:c.a.createElement(rt.a,null),content:"\u60A8\u7684\u6240\u6709\u4EE3\u7801\u5C06\u88AB\u8FD8\u539F\u81F3\u521D\u59CB\u72B6\u6001\uFF0C\u4E0D\u5F71\u54CD\u901A\u5173\u72B6\u6001\u4E0E\u4F5C\u4E1A\u6210\u7EE9\u3002\u786E\u8BA4\u91CD\u7F6E\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Nt})},fn=function(){var $t=Object(l.a)(y.a.mark(function Qt(){return y.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(!rn){jn.next=2;break}return jn.abrupt("return");case 2:kt(),Object(pe.v)(jt.taskId),sn(!0),En.a.publish("show-case-result",!0),setTimeout(function(){En.a.publish("runCode",{type:"start"})},100);case 7:case"end":return jn.stop()}},Qt)}));return function(){return $t.apply(this,arguments)}}(),Zt=function(){var $t=Object(l.a)(y.a.mark(function Qt(){return y.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(rn){jn.next=2;break}return jn.abrupt("return");case 2:Object(pe.J)(jt.taskId),sn(!1),En.a.publish("runCode",{type:"stop"});case 5:case"end":return jn.stop()}},Qt)}));return function(){return $t.apply(this,arguments)}}();return c.a.createElement(E.Fragment,null,c.a.createElement("span",{className:"".concat(Ie.a["edit-status"]," ml15")},Ke?"\u4FDD\u5B58\u4E2D...":gt===0?"\u5DF2\u4FDD\u5B58":"\u5DF2\u4FEE\u6539"),c.a.createElement("div",{className:Ie.a["action-bar"]},ot?c.a.createElement(hi.a,{visible:!0,title:c.a.createElement("span",{style:{color:"#000"}},"\u5173\u5361\u4EFB\u52A1\u7684\u4EE3\u7801\u6587\u4EF6\u6709\u66F4\u65B0\u5566\uFF5E"),color:"#fff"},c.a.createElement(Tr,{onShowNotice:xn})):null,Ve!==2&&c.a.createElement(c.a.Fragment,null,tt?null:c.a.createElement("a",{title:"\u663E\u793A\u76EE\u5F55",onClick:Jt},c.a.createElement("i",{className:"iconfont icon-wenjian "})),ct?c.a.createElement(hn.CopyToClipboard,{text:ct,onCopy:function(){return r.b.success("\u590D\u5236\u6210\u529F")}},c.a.createElement("a",{title:"\u590D\u5236\u7248\u672C\u5E93\u5730\u5740"},c.a.createElement("i",{className:"iconfont icon-fuzhi2"}))):null,bt===2&&mt?c.a.createElement(Oe.a,{placement:"bottomRight",title:"\u4F60\u5728\u672C\u5173\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931\uFF0C\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u4E0A\u6B21\u901A\u8FC7\u7684\u4EE3\u7801?",onConfirm:Yt},c.a.createElement("a",{title:"\u52A0\u8F7D\u4E0A\u6B21\u901A\u8FC7\u7684\u4EE3\u7801"},c.a.createElement("i",{className:"iconfont icon-fanhuishangcidaima font-20 "}))):null,mt?c.a.createElement("a",{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",onClick:bn},c.a.createElement("i",{className:"iconfont icon-zhongzhi font-20 "})):null,mt&&c.a.createElement("a",{title:"\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93",onClick:On},c.a.createElement("i",{className:"iconfont icon-zhongzhidaimacangku font12 "})),c.a.createElement("a",{onClick:Ft,title:"\u8BBE\u7F6E"},c.a.createElement("i",{className:"iconfont icon-shezhi"}))),!((vn==null||((Me=vn.query)===null||Me===void 0)?void 0:Me.isFullScreen)==="true")&&c.a.createElement("a",{onClick:tn,title:nn?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},c.a.createElement("i",{className:nn?"iconfont icon-shousuo":"iconfont icon-zhankai"}))))},zr=v("UlFV"),Qr=v("hjEz"),na=v("Mm8t"),qr=v.n(na),Jr=function(ae){var Me,Ke=ae.isNotice,gt=ae.moveY,Et=ae.isActive,tt=ae.tabIndex,Ve=ae.webssh,bt=ae.socketKeys,mt=ae.onCloseSocket,ot=ae.onReCreateSocket,ct=ae.onShowNotice,Pt=ae.sshConfigData,kt=ae.onResizeCodeArea,Tt=ae.shixun,Nt=ae.onRightFullHandler,Ft=ae.isResizeLarge;console.log("sshConfigData:",Pt);var Yt=Object(C.h)();return c.a.createElement("div",{className:"action-bar"},Ke?c.a.createElement(Tr,{onShowNotice:ct}):null,Ve===3?c.a.createElement(la,{sshConfigData:Pt,tabIndex:tt,isActive:Et,socketKeys:bt,onReCreateSocket:ot,onCloseSocket:mt,shixun:Tt}):Pt!=null&&Pt.remaining_time?c.a.createElement(la,{sshConfigData:Pt,tabIndex:tt,isActive:Et,socketKeys:bt,onReCreateSocket:ot,onCloseSocket:mt,shixun:Tt}):null,!((Yt==null||((Me=Yt.query)===null||Me===void 0)?void 0:Me.isFullScreen)==="true")&&c.a.createElement("a",{onClick:Nt,title:Ft?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"},c.a.createElement("i",{className:Ft?"iconfont icon-shousuo":"iconfont icon-zhankai"})))},ba=300;function la(ae){var Me=ae.isActive,Ke=ae.socketKeys,gt=ae.webssh,Et=ae.onCloseSocket,tt=ae.onReCreateSocket,Ve=ae.sshConfigData,bt=ae.tabIndex,mt=ae.shixun,ot=(Ve==null?void 0:Ve.remaining_time)/1e3,ct=Object(E.useState)(gt===3?1800:ot),Pt=Object(n.a)(ct,2),kt=Pt[0],Tt=Pt[1],Nt=Object(E.useState)(!1),Ft=Object(n.a)(Nt,2),Yt=Ft[0],Jt=Ft[1],pn=mt.identifier;Object(Fi.a)(function(){Tt(kt-1)},Me&&kt>0?1e3:null),Object(E.useEffect)(function(){var fn=En.a.subscribe("on-operating-ssh",function(){(mt==null?void 0:mt.webssh)!=3&&Tt(ot)}),Zt=En.a.subscribe("update-windows-time",function(Qt){Tt(parseInt(Qt.remaining_time/1e3))}),$t=En.a.subscribe("on-recreate-socket",function(){tt()});return function(){Zt(),fn(),$t()}},[]);function xn(){ei.c.replace("/shixuns/".concat(pn,"/challenges"))}function tn(){u.a.confirm({title:"\u547D\u4EE4\u884C\u91CD\u8FDE\u63D0\u9192",icon:c.a.createElement(rt.a,null),content:"\u7531\u4E8E\u957F\u65F6\u95F4\u6CA1\u6709\u4F7F\u7528\uFF0C\u8D44\u6E90\u5DF2\u7ECF\u88AB\u56DE\u6536\u3002\u5982\u6709\u9700\u8981\uFF0C\u53EF\u4EE5\u91CD\u8FDE\u547D\u4EE4\u884C\u3002",centered:!0,okText:"\u91CD\u8FDE",cancelText:"\u9000\u51FA",onOk:Ht,onCancel:xn})}var nn=function(){u.a.confirm({title:"\u91CD\u7F6E\u547D\u4EE4\u884C",icon:c.a.createElement(rt.a,null),content:"\u5B9E\u9A8C\u73AF\u5883\u5C06\u6062\u590D\u5230\u521D\u59CB\u72B6\u6001\uFF0C\u662F\u5426\u786E\u8BA4\u91CD\u7F6E\u5B9E\u9A8C\u73AF\u5883?",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:rn})};Object(E.useEffect)(function(){kt===0&&(mt.webssh!=3&&tn(),Ke.forEach(function(fn){En.a.publish("close-socket",fn)})),kt===ba&&mt.webssh!=3&&Jt(!0)},[kt]);function jt(){Jt(!1)}function vn(){mt.webssh!=3&&Jt(!0)}function nt(){Tt(ot),En.a.publish("ssh-add-connect-time"),Jt(!1)}function Ht(){Tt(ot),En.a.publish("create-socket",bt)}function rn(){return sn.apply(this,arguments)}function sn(){return sn=Object(l.a)(y.a.mark(function fn(){return y.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return Ke.forEach(function(Qt){En.a.publish("close-socket",Qt)}),$t.next=3,Et();case 3:Tt(ot),tt();case 5:case"end":return $t.stop()}},fn)})),sn.apply(this,arguments)}var bn=function(){u.a.confirm({title:"\u670D\u52A1\u9884\u89C8",content:"\u201C\u670D\u52A1\u9884\u89C8\u201D\u4F1A\u8BBF\u95EE\u547D\u540D\u884C\u5BB9\u5668\u76848081\u7AEF\u53E3\uFF0C\u5982\u679C\u7AEF\u53E3\u672A\u542F\u52A8\u4F1A\u5BFC\u81F4\u9884\u89C8\u5931\u8D25",okText:"\u7EE7\u7EED\u524D\u5F80",cancelText:"\u53D6\u6D88",onOk:function(){Object(Ee.w)(Ve==null?void 0:Ve.mapping_service_url)}})},On=function(){u.a.info({title:"SSH\u76F4\u8FDE",width:600,centered:!0,content:c.a.createElement(c.a.Fragment,null,c.a.createElement(_i.a,null,c.a.createElement(pr.a,{flex:"50px"},"\u8D26\u53F7"),c.a.createElement(pr.a,null,Ve==null?void 0:Ve.username)),c.a.createElement(_i.a,null,c.a.createElement(pr.a,{flex:"50px"},"\u5730\u5740"),c.a.createElement(pr.a,null,Ve==null?void 0:Ve.ssh_address)),c.a.createElement(_i.a,null,c.a.createElement(pr.a,{flex:"50px"},"\u7AEF\u53E3"),c.a.createElement(pr.a,null,Ve==null?void 0:Ve.port)),c.a.createElement(_i.a,null,c.a.createElement(pr.a,{flex:"50px"},"\u5BC6\u7801"),c.a.createElement(pr.a,null,Ve==null?void 0:Ve.password)))})};return c.a.createElement(E.Fragment,null,kt>0&&kt<=ba&&mt.webssh!=3?c.a.createElement(ri,{title:"\u8D44\u6E90\u56DE\u6536\u5012\u8BA1\u65F6\uFF0C\u70B9\u51FB\u53EF\u5EF6\u957F\uFF08\u6216\u8005\u64CD\u4F5C\u547D\u4EE4\u884C\u81EA\u52A8\u5EF6\u957F\uFF09",className:"c-red",time:kt,style:{display:"inline-block",margin:"0 10px 1px 0"},callback:vn}):null,(Ve==null?void 0:Ve.mapping_service_url)&&c.a.createElement("a",{target:"_blank",onClick:function(Zt){Zt.preventDefault(),bn()},href:Ve==null?void 0:Ve.mapping_service_url},c.a.createElement(Qr.a,{className:"font14 c-blue"}),c.a.createElement("span",{className:"c-blue"}," \u670D\u52A1\u9884\u89C8")),c.a.createElement("a",{onClick:nn},c.a.createElement("i",{className:"iconfont icon-zhongzhi2 font-16 "}),c.a.createElement("span",null," \u91CD\u7F6E\u547D\u4EE4\u884C")),c.a.createElement("a",{onClick:On},c.a.createElement("span",null,c.a.createElement("i",{className:"iconfont icon-congshulianjie font-16 "}),"SSH\u76F4\u8FDE")),c.a.createElement(Rr.a,null,c.a.createElement(u.a,{centered:!0,title:[c.a.createElement(rt.a,{className:"modalIconYellow"}),"\u547D\u4EE4\u884C\u8FDE\u63A5\u65F6\u957F\u63D0\u9192"],wrapClassName:"customModalStyle",closable:!1,visible:Yt&&kt>0,onOk:nt,onCancel:jt,okText:"\u7ACB\u5373\u5EF6\u957F",cancelText:"\u4E0D\u9700\u8981"},"\u547D\u4EE4\u884C\u5C06\u4E8E ",Math.round(kt/60)," \u5206\u949F\u540E\u4E2D\u65AD\uFF0C\u9700\u8981\u5EF6\u957F\u4F7F\u7528\u65F6\u95F4\u5417\uFF1F")))}function ri(ae){var Me=ae.title,Ke=ae.time,gt=ae.className,Et=gt===void 0?"":gt,tt=ae.callback,Ve=ae.desc,bt=Ve===void 0?"":Ve,mt=ae.style,ot=mt===void 0?{}:mt;function ct(){tt&&tt()}return c.a.createElement("a",{onClick:ct,title:Me,className:Et},c.a.createElement("img",{src:qr.a,alt:"time",width:16,style:ot}),c.a.createElement("span",null,bt?"".concat(bt,"\uFF1A"):"",Qe(Ke)))}var pa=v("5NDa"),gr=v("5rEg"),wr=v("lOMy"),ma=v("GIiI"),Ta=v("vS10"),or=v("DZo9"),_a=v("8z0m"),ai=v("wzkS"),ya="\u3000\u3000";function Ha(ae){var Me=["Bytes","KB","MB","GB","TB"];if(ae==0)return"0 Byte";var Ke=parseInt(""+Math.floor(Math.log(ae)/Math.log(1024)),10);return(ae/Math.pow(1024,Ke)).toFixed(1)+" "+Me[Ke]}var Xa=function(ae){var Me=ae.value,Ke=Me===void 0?[]:Me,gt=ae.action,Et=ae.onChange,tt=ae.className,Ve=ae.maxSize,bt=Ve===void 0?150:Ve,mt=ae.title,ot=mt===void 0?"\u6587\u4EF6\u4E0A\u4F20":mt,ct=ae.accept,Pt=ct===void 0?null:ct,kt={multiple:!1,fileList:Ke,accept:Pt,withCredentials:!0,beforeUpload:function(Ft){var Yt=Ft.size/1024/1024;return!0},action:"".concat(Ia.a.API_SERVER,"/api/attachments.json"),onChange:function(Ft){var Yt,Jt,pn=Object(w.a)(Ft.fileList);if(pn=pn.map(function(nn){return nn.name.indexOf(ya)===-1&&(nn.name="".concat(nn.name).concat(ya).concat(Ha(nn.size))),Object(e.a)({},nn)}),Ft.file.status==="done"&&((Yt=Ft.file)===null||Yt===void 0||((Jt=Yt.response)===null||Jt===void 0)?void 0:Jt.status)===-1){var xn,tn;r.b.error((xn=Ft.file)===null||xn===void 0||((tn=xn.response)===null||tn===void 0)?void 0:tn.message),Et([]);return}Et(pn)},onRemove:function(){var Nt=Object(l.a)(y.a.mark(function Yt(Jt){var pn,xn,tn;return y.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:if(pn=Jt.size/1024/1024,!(Jt.status==="uploading")){jt.next=3;break}return jt.abrupt("return",!0);case 3:if(pn<bt){jt.next=7;break}return jt.abrupt("return",!0);case 7:if(xn=Jt.response?Jt.response.id:Jt.uid,!xn){jt.next=15;break}return jt.next=11,Object(ai.d)(Jt.response?Jt.response.id:Jt.id);case 11:return tn=jt.sent,jt.abrupt("return",tn);case 15:return jt.abrupt("return",!0);case 16:case"end":return jt.stop()}},Yt)}));function Ft(Yt){return Nt.apply(this,arguments)}return Ft}()};function Tt(Nt){Nt.preventDefault(),Nt.stopPropagation()}return c.a.createElement("div",{className:"single-upload ".concat(tt||"")},c.a.createElement(_a.a,kt,c.a.createElement(Ka.a,{type:"primary",title:Ke.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:Ke.length>0,ghost:!0},ot),c.a.createElement("span",{onClick:Tt,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",bt,"M)"," ")))},wi=v("LtfV"),Bi=_a.a.Dragger;function vi(ae){var Me=[];return ae&&ae.length>0&&(Me=ae.map(function(Ke){return{uid:Ke.id,id:Ke.id,name:Ke.title+ya+Ke.filesize,url:Ke.url,filesize:Ke.filesize,status:"done",response:{id:Ke.id}}})),Me}var oo=function(ae){var Me=ae.value,Ke=ae.onChange,gt=ae.action,Et=ae.className,tt=ae.maxSize,Ve=tt===void 0?150:tt,bt=ae.title,mt=bt===void 0?"\u4E0A\u4F20\u9644\u4EF6":bt,ot=ae.showRemoveModal,ct=ot===void 0?!1:ot,Pt=ae.accept,kt=Pt===void 0?"":Pt,Tt=ae.additionalText,Nt=ae.isDragger,Ft=ae.number,Yt=Ft===void 0?1e3:Ft,Jt=ae.aloneClear,pn=Jt===void 0?!1:Jt,xn=Object(E.useState)(!1),tn=Object(n.a)(xn,2),nn=tn[0],jt=tn[1],vn=Object(E.useState)(Me||[]),nt=Object(n.a)(vn,2),Ht=nt[0],rn=nt[1];Object(E.useEffect)(function(){Me&&(rn(Object(w.a)(Me)),Yt===(Me==null?void 0:Me.length)&&jt(!0))},[Me]);var sn=function(){setTimeout(function(){Ht.pop(),rn(Object(w.a)(Ht))},500)},bn={multiple:!0,disabled:nn,accept:kt,withCredentials:!0,fileList:Ht,beforeUpload:function(Zt,$t){var Qt=Zt.size/1024/1024;return Ht.concat($t).length>Yt?(Ht.pop(),rn(Object(w.a)(Ht)),r.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(Yt,"\u4E2A\u6587\u4EF6")),pn?Promise.reject():(sn(),!1)):!0},action:gt||"".concat(Ia.a.API_SERVER,"/api/attachments.json"),onChange:function(Zt){var $t,Qt,mn=Object(w.a)(Zt.fileList);if(Zt.file.status==="done"&&(($t=Zt.file)===null||$t===void 0||((Qt=$t.response)===null||Qt===void 0)?void 0:Qt.status)===-1){var jn,Dn;r.b.error((jn=Zt.file)===null||jn===void 0||((Dn=jn.response)===null||Dn===void 0)?void 0:Dn.message);return}mn.length>=Yt?jt(!0):jt(!1),rn(Object(w.a)(mn)),mn=mn.map(function(Xt){var Mn;if(Xt!=null&&(Mn=Xt.response)!==null&&Mn!==void 0&&Mn.id){var ir;Xt.url="/api/attachments/".concat(Xt==null||((ir=Xt.response)===null||ir===void 0)?void 0:ir.id)}return Xt.name.indexOf(ya)===-1&&(Xt.name="".concat(Xt.name).concat(ya).concat(Ha(Xt.size))),Object(e.a)({},Xt)}),console.log("info:",Zt),Ke(mn)},onRemove:function(){var fn=Object(l.a)(y.a.mark(function $t(Qt){var mn;return y.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:if(mn=function(){var Xt=Object(l.a)(y.a.mark(function Mn(){var ir,sr;return y.a.wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:if(ir=Qt.response?Qt.response.id:Qt.id,!ir){qn.next=8;break}return qn.next=4,Object(ai.d)(Qt.response?Qt.response.id:Qt.uid);case 4:return sr=qn.sent,qn.abrupt("return",sr);case 8:return qn.abrupt("return",!0);case 9:case"end":return qn.stop()}},Mn)}));return function(){return Xt.apply(this,arguments)}}(),!ct){Dn.next=5;break}return Dn.abrupt("return",new Promise(function(Xt,Mn){u.a.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:c.a.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:function(){var ir=Object(l.a)(y.a.mark(function er(){var qn;return y.a.wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:return Vn.next=2,mn();case 2:qn=Vn.sent,r.b.success("\u5220\u9664\u6210\u529F"),Xt(!0);case 5:case"end":return Vn.stop()}},er)}));function sr(){return ir.apply(this,arguments)}return sr}(),onCancel:function(){return Xt(!1)}})}));case 5:return Dn.next=7,mn();case 7:return Dn.abrupt("return",Dn.sent);case 8:case"end":return Dn.stop()}},$t)}));function Zt($t){return fn.apply(this,arguments)}return Zt}()};function On(fn){fn.preventDefault(),fn.stopPropagation()}return c.a.createElement("div",{className:"multi-upload ".concat(Et||"")},Nt&&c.a.createElement(Bi,bn,c.a.createElement("p",{className:"ant-upload-drag-icon"},c.a.createElement(wi.a,null)),c.a.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",c.a.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Ve,"MB)"," "),Tt),!Nt&&c.a.createElement(_a.a,bn,c.a.createElement(Ka.a,{disabled:nn},mt),c.a.createElement("span",{onClick:On,style:{marginLeft:10,color:"#FA6400"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Ve,"MB)"," ")))},To=Object(E.forwardRef)(function(ae,Me){var Ke=ae.time;console.log("ScreenRecord:",Me);var gt=Object(E.useRef)(),Et=Object(E.useState)(),tt=Object(n.a)(Et,2),Ve=tt[0],bt=tt[1],mt=Object(E.useRef)(),ot=2e3,ct=[];Object(E.useImperativeHandle)(Me,function(){return{startScreenRecord:Nt,downloadFile:Tt}});function Pt(Ft,Yt){return kt.apply(this,arguments)}function kt(){return kt=Object(l.a)(y.a.mark(function Ft(Yt,Jt){var pn,xn;return y.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return pn=[],nn.next=3,new MediaRecorder(Yt);case 3:xn=nn.sent,xn.ondataavailable=function(jt){pn.push(jt.data)},xn.start(),mt.current=xn,window.recorderRefs=xn,xn.addEventListener("stop",function(jt){var vn=URL.createObjectURL(pn[0],{type:"video/mp4"});Object(Ee.h)("xxx.webm",vn)});case 9:case"end":return nn.stop()}},Ft)})),kt.apply(this,arguments)}function Tt(){if(!window.recorderRefs){r.b.warn("\u60A8\u8FD8\u6CA1\u6709\u5F00\u542F\u89C6\u9891\u5F55\u5236\uFF0C\u8BF7\u5148\u53BB\u5F55\u5236\u89C6\u9891\u5427\uFF01");return}var Ft=gt.current.srcObject.getTracks();Ft.forEach(function(Yt){Yt.stop()}),window.recorderRefs.addEventListener("dataavailable",function(Yt){var Jt=URL.createObjectURL(Yt.data,{type:"video/mp4"});Object(Ee.h)("\u5C4F\u5E55\u5F55\u5236\u89C6\u9891.webm",Jt)})}function Nt(){navigator.mediaDevices.getDisplayMedia({video:!0,audio:!0}).then(function(Ft){return gt.current.srcObject=Ft,ct.push(Ft),gt.current.captureStream=gt.current.captureStream||gt.current.mozCaptureStream,new Promise(function(Yt){return gt.current.onplaying=Yt})}).then(function(){return Pt(gt.current.captureStream(),ot)}).then(function(Ft){}).catch(function(Ft){Ft.name==="NotFoundError"?r.b.warn("\u627E\u4E0D\u5230\u6444\u50CF\u5934\u6216\u9EA6\u514B\u98CE\u3002\u65E0\u6CD5\u5F55\u5236."):r.b.warn(Ft.name)})}return c.a.createElement("div",{style:{position:"absolute",top:"0",zIndex:-1}},c.a.createElement("video",{onPause:function(){},width:"60",height:"120",autoPlay:!0,muted:!0,ref:gt}))}),fo=To,Ki={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},$a=function(ae){var Me=ae.className,Ke=ae.mirror_description,gt=ae.git_url,Et=ae.difficulty,tt=ae.task_pass,Ve=ae.test_set_permission,bt=ae.onVncAction,mt=ae.shixun,ot=ae.window_vnc_url,ct=ae.linux_vnc,Pt=ae.vnc_url,kt=ae.position,Tt=ae.unity_3d_routes,Nt=Object(C.i)(),Ft=Object(E.useState)("8082"),Yt=Object(n.a)(Ft,2),Jt=Yt[0],pn=Yt[1],xn=Object(E.useState)(!1),tn=Object(n.a)(xn,2),nn=tn[0],jt=tn[1],vn=Object(E.useRef)(),nt=ot?"C:/Windows/AppReadiness/userfiles":"/data/workspace/userfiles",Ht=ot?"C:/Windows/AppReadiness/downloadfiles":"/data/workspace/downloadfiles",rn=function(){u.a.confirm({title:"\u91CD\u542F\u4E91\u4E3B\u673A",icon:c.a.createElement(rt.a,null),content:"\u60A8\u786E\u5B9A\u8981\u91CD\u542F\u4E91\u4E3B\u673A\u5417\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var $t=Object(l.a)(y.a.mark(function mn(){var jn;return y.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return Xt.next=2,Object(Ta.f)({identifier:Nt.taskId});case 2:return jn=Xt.sent,(jn==null?void 0:jn.status)===0&&r.b.info("\u91CD\u542F\u6210\u529F"),Xt.abrupt("return","");case 5:case"end":return Xt.stop()}},mn)}));function Qt(){return $t.apply(this,arguments)}return Qt}()})},sn=function(){u.a.info({title:"\u6587\u4EF6\u4E0A\u4F20",icon:null,okText:"\u5173\u95ED",width:600,centered:!0,content:c.a.createElement("div",{className:"pt10"},c.a.createElement(oo,{isDragger:!0,maxSize:20,additionalText:'\u9ED8\u8BA4\u5B58\u653E\u76EE\u5F55\u8DEF\u5F84\u4E3A"'.concat(nt,'"'),action:"".concat(Ia.a.API_SERVER,"/api/tasks/").concat(Nt.taskId,"/upload_file?debug=admin"),onChange:function(Qt){Qt.some(function(mn){var jn;return((jn=mn.response)===null||jn===void 0?void 0:jn.status)===0})&&(u.a.destroyAll(),r.b.info("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F")),console.log("fileList:",Qt)}}))})},bn=function(){u.a.confirm({title:"\u4E0B\u8F7D\u4EE3\u7801",centered:!0,width:600,content:"\u4EE3\u7801\u4E0B\u8F7D\u529F\u80FD\uFF1A\u5C06\u201C".concat(Ht,"\u201D\u76EE\u5F55\u8FDB\u884C\u6253\u5305\u5E76\u4E0B\u8F7D"),onOk:function(){var $t=Object(l.a)(y.a.mark(function mn(){return y.a.wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:return Dn.next=2,Object(on.a)("/api/tasks/".concat(Nt.taskId,"/download_file?debug=admin"),{method:"post",body:{autoDownload:!0},headers:{responseType:"arraybuffer",Accept:"application/vnd.ms-excel;charset=utf-8"}});case 2:return Dn.abrupt("return",!0);case 3:case"end":return Dn.stop()}},mn)}));function Qt(){return $t.apply(this,arguments)}return Qt}()})},On=function(){var $t,Qt;($t=vn.current)===null||$t===void 0||((Qt=$t.startScreenRecord)===null||Qt===void 0)||Qt.call($t)},fn=function(){var Zt=Object(l.a)(y.a.mark(function $t(){var Qt,mn,jn;return y.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return jt(!0),Xt.next=3,Object(on.a)("/api/tasks/".concat(Nt.taskId,"/port_proxy"),{method:"post",body:{port:Jt,position:kt}});case 3:mn=Xt.sent,mn!=null&&(Qt=mn.data)!==null&&Qt!==void 0&&Qt.url&&Object(Ee.w)(mn==null||((jn=mn.data)===null||jn===void 0)?void 0:jn.url),jt(!1);case 6:case"end":return Xt.stop()}},$t)}));return function(){return Zt.apply(this,arguments)}}();return c.a.createElement("div",{className:"tpi-code-setting ".concat(Me)},c.a.createElement("h3",null,"\u529F\u80FD"),c.a.createElement("section",null,c.a.createElement("a",{id:"full-screen",title:"\u5168\u5C4F",className:"file-item action",onClick:function(){bt("full-screen")}}," ",c.a.createElement("i",{className:"iconfont icon-quanping"}),"\u5F00\u542F / \u9000\u51FA\u5168\u5C4F "),c.a.createElement("a",{id:"reset-task",onClick:function(){return bt("reset-task")},className:"file-item action",title:"\u91CD\u7F6E\u5B9E\u8BAD"}," ",c.a.createElement("i",{className:"iconfont icon-zhongzhishixun"}),"\u91CD\u7F6E\u5B9E\u8BAD "),c.a.createElement("a",{id:"reset-code",onClick:function(){return bt("reset-code")},className:"file-item action",title:"\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93"}," ",c.a.createElement("i",{className:"iconfont icon-zhongzhishixun"}),"\u91CD\u7F6E\u4EE3\u7801\u4ED3\u5E93 "),!Tt&&c.a.createElement(c.a.Fragment,null," ",(ot||ct||Pt||(mt==null?void 0:mt.hide_code)===2||(mt==null?void 0:mt.webssh)===3)&&c.a.createElement(c.a.Fragment,null,c.a.createElement("a",{onClick:function(){return sn()},className:"file-item action",title:"\u4E0A\u4F20\u6587\u4EF6"}," ",c.a.createElement("i",{className:"iconfont icon-shangchuanshipin1"}),"\u4E0A\u4F20\u6587\u4EF6"),c.a.createElement("a",{onClick:function(){return bn()},className:"file-item action",title:"\u4E0B\u8F7D\u6587\u4EF6"}," ",c.a.createElement("i",{className:"iconfont icon-xiazai3"}),"\u4E0B\u8F7D\u6587\u4EF6"),c.a.createElement("a",{className:"file-item action w100",title:"\u670D\u52A1\u9884\u89C8"}," ",c.a.createElement("i",{className:"iconfont icon-suanfasheji"}),c.a.createElement(_i.a,{align:"middle",className:"w100"},c.a.createElement(pr.a,{flex:"1",onClick:fn},c.a.createElement(Ka.a,{type:"text",loading:nn},c.a.createElement("span",{style:{color:"#ddd",marginLeft:-11}},"\u670D\u52A1\u9884\u89C8"))),c.a.createElement(pr.a,null,c.a.createElement("a",{href:"javascript:;",onClick:fn,className:"c-blue"},"\u7AEF\u53E3\u53F7")," ",c.a.createElement(gr.a,{onChange:function($t){return pn($t.target.value)},style:{width:50},value:Jt}))))),ot&&c.a.createElement("a",{id:"reset-task",onClick:rn,className:"file-item action",title:"\u91CD\u542F\u4E91\u4E3B\u673A"}," ",c.a.createElement(ma.a,{style:{marginRight:21,color:"#FFF"},className:"c-white font16"}),"\u91CD\u542F\u4E91\u4E3B\u673A "),(mt==null?void 0:mt.hide_code)!==2&&c.a.createElement("a",{id:"reset-task",onClick:function(){return bt("reset-code")},className:"file-item action",title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801"}," ",c.a.createElement("i",{className:"iconfont icon-zhongzhi font20",style:{marginRight:19}}),"\u6062\u590D\u521D\u59CB\u4EE3\u7801 "),gt?c.a.createElement(hn.CopyToClipboard,{text:gt,onCopy:function(){return r.b.success("\u590D\u5236\u6210\u529F")}},c.a.createElement("a",{id:"copy-git",title:"\u590D\u5236\u7248\u672C\u5E93\u5730\u5740",className:"file-item action"}," ",c.a.createElement("i",{className:"iconfont icon-fuzhibanbenkudizhi1"}),"\u590D\u5236\u7248\u672C\u5E93\u5730\u5740 ")):null,!ot&&!ct&&c.a.createElement("a",{id:"copy-cliboard",className:"file-item action",onClick:function(){bt("show-clipboard-box")}}," ",c.a.createElement("i",{className:"iconfont icon-fuzhiniantie"}),"\u590D\u5236\u7C98\u8D34 "))),c.a.createElement("h3",null,"\u5173\u5361\u914D\u7F6E\u4FE1\u606F"),c.a.createElement("section",null,c.a.createElement("a",{className:"file-item",title:tt?"\u5141\u8BB8\u5B66\u5458\u8DF3\u5173\u6311\u6218":"\u4E0D\u5141\u8BB8\u5B66\u5458\u8DF3\u5173\u6311\u6218"},c.a.createElement("b",null,"\u8DF3\u5173"),c.a.createElement("span",null,tt?"\u5141\u8BB8":"\u4E0D\u5141\u8BB8")),c.a.createElement("a",{className:"file-item",title:Ve?"\u5141\u8BB8\u5B66\u5458\u901A\u8FC7\u91D1\u5E01\u89E3\u9501\u67E5\u770B\u6D4B\u8BD5\u96C6\u5185\u5BB9":"\u4E0D\u5141\u8BB8\u5B66\u5458\u901A\u8FC7\u91D1\u5E01\u89E3\u9501\u67E5\u770B\u6D4B\u8BD5\u96C6\u5185\u5BB9"},c.a.createElement("b",null,"\u6D4B\u8BD5\u96C6\u89E3\u9501"),c.a.createElement("span",null,Ve?"\u5141\u8BB8":"\u4E0D\u5141\u8BB8"))),c.a.createElement("h3",null,"\u5B9E\u8BAD\u57FA\u672C\u4FE1\u606F"),c.a.createElement("section",null,c.a.createElement("div",{className:"file-item"},c.a.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),c.a.createElement("span",null,Ki[Et])),c.a.createElement("div",{className:"file-item",style:{alignItems:"flex-start"}},c.a.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),c.a.createElement("span",{className:"vnc-desc",title:Ke==null?void 0:Ke.join(" ")},Ke==null?void 0:Ke.join(" ")))),c.a.createElement(fo,{ref:vn}))},za=v("l9Ud"),Ga=v.n(za),ii;(function(ae){ae.Classrooms="classrooms",ae.Shixuns="shixuns",ae.Paths="paths",ae.Projects="projects",ae.Videos="videos",ae.Topics="topics",ae.Teach="teach-group"})(ii||(ii={}));var Oo=function(Me){var Ke=Me.userDetail,gt=Me.user,Et=Me.globalSetting,tt=Me.loading,Ve=Me.dispatch,bt=Me.onClose,mt=Me.shixun,ot=Object(s.a)(Me,["userDetail","user","globalSetting","loading","dispatch","onClose","shixun"]),ct=Object(C.i)(),Pt=Object(E.useState)([]),kt=Object(n.a)(Pt,2),Tt=kt[0],Nt=kt[1],Ft=Object(E.useState)({}),Yt=Object(n.a)(Ft,2),Jt=Yt[0],pn=Yt[1],xn=Object(E.useState)(0),tn=Object(n.a)(xn,2),nn=tn[0],jt=tn[1],vn=Object(E.useState)(Object(e.a)({page:1,limit:20,id:mt.identifier},ct)),nt=Object(n.a)(vn,2),Ht=nt[0],rn=nt[1],sn=Object(E.useCallback)(function(){return ot.visible},[ot.visible]);Object(E.useEffect)(function(){Ht.page=1,bn()},[ot.visible]);var bn=function(){var On=Object(l.a)(y.a.mark(function fn(){var Zt;return y.a.wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:return Qt.next=2,Ve({type:"shixunsDetail/getSetData",payload:Ht});case 2:Zt=Qt.sent,Zt&&(Nt(Object(w.a)(Zt.data_sets)),jt(Zt.data_sets_count),pn(Zt.folder_name));case 4:case"end":return Qt.stop()}},fn)}));return function(){return On.apply(this,arguments)}}();return c.a.createElement(c.a.Fragment,null,!!Tt.length&&ot.children,c.a.createElement(I.a,{title:"\u6570\u636E\u96C6",placement:"right",className:Ga.a.wrap,width:300,closable:!1,onClose:bt,visible:sn()},c.a.createElement("div",{className:"c-grey-999 font14 ml5 mb5"},"\u6570\u636E\u96C6\u8DEF\u5F84"),c.a.createElement("dl",{className:Ga.a.list},c.a.createElement(hi.a,{title:Jt},c.a.createElement("dt",null,Jt)),c.a.createElement("dd",null,c.a.createElement(hn.CopyToClipboard,{text:Jt,onCopy:function(){return r.b.success("\u590D\u5236\u6210\u529F")}},c.a.createElement("span",{className:"".concat(Ga.a.copy," current")},"\u70B9\u51FB\u590D\u5236")))),c.a.createElement("div",{className:"c-grey-999 font14 ml5 mb5"},"\u6587\u4EF6\u8DEF\u5F84"),Tt==null?void 0:Tt.map(function(On,fn){return c.a.createElement("dl",{className:Ga.a.list},c.a.createElement(hi.a,{title:On.title},c.a.createElement("dt",null,c.a.createElement("span",{className:"icon-wenjian4 mr5"}),On.title)),c.a.createElement("dd",null,c.a.createElement(hn.CopyToClipboard,{text:On.file_path,onCopy:function(){return r.b.success("\u590D\u5236\u6210\u529F")}},c.a.createElement("span",{className:"".concat(Ga.a.copy," current")},"\u70B9\u51FB\u590D\u5236"))))}),c.a.createElement("div",{className:"tc"},c.a.createElement(W.a,{onChange:function(fn){Ht.page=fn,bn()},className:Ga.a.page,size:"small",total:nn,pageSize:Ht.limit,hideOnSinglePage:!0}))))},Wo=Object(ei.a)(function(ae){var Me=ae.user,Ke=ae.userDetail,gt=ae.loading,Et=ae.shixunsDetail,tt=ae.globalSetting;return{user:Me,userDetail:Ke,shixunsDetail:Et,globalSetting:tt,loading:gt.models.index}})(Oo),Xo=v("tUsH"),Wa=v.n(Xo),No=v("1Zrr"),zo=v.n(No),Va=v("Icgb"),Pa=ni.a.Countdown,Ni=["fullscreenchange","msfullscreenchange","webkitfullscreenchange","mozfullscreenchange"],il=function(Me){var Ke=Me.globalSetting,gt=Me.loading,Et=Me.user,tt=Me.exercise,Ve=Me.socket,bt=Me.dispatch,mt=Object(s.a)(Me,["globalSetting","loading","user","exercise","socket","dispatch"]),ot=Object(E.useState)({}),ct=Object(n.a)(ot,2),Pt=ct[0],kt=ct[1],Tt=u.a.useModal(),Nt=Object(n.a)(Tt,2),Ft=Nt[0],Yt=Nt[1],Jt=Object(E.useRef)(),pn=Object(E.useRef)(null),xn=Object(E.useRef)(null),tn=Object(E.useState)(!0),nn=Object(n.a)(tn,2),jt=nn[0],vn=nn[1],nt=Object(C.h)().query,Ht=Object(C.i)();Object(E.useEffect)(function(){var Dn,Xt,Mn,ir,sr;if(clearTimeout(pn.current),document.addEventListener(Object(R.c)(),jn,!1),window.addEventListener("blur",Qt,!1),(Dn=tt.exerciseUserInfo)!==null&&Dn!==void 0&&Dn.screen_open&&Object(R.a)()&&(bt({type:"globalSetting/headerFooterToggle",payload:!1}),vn(!1)),(Xt=tt.exerciseUserInfo)!==null&&Xt!==void 0&&Xt.screen_at&&q()().diff(q()((Mn=tt.exerciseUserInfo)===null||Mn===void 0?void 0:Mn.screen_at),"seconds")>0)rn();else if((ir=tt.exerciseUserInfo)!==null&&ir!==void 0&&ir.screen_open&&!Object(R.a)()){var er=document.domain==="kepukehuan.educoder.net"?30:tt.exerciseUserInfo.screen_sec+10+1;Jt.current=u.a.info({icon:null,content:c.a.createElement("div",{className:"tc font16"},"\u672C\u573A\u8003\u8BD5\u5DF2\u5F00\u542F\u9632\u5207\u5C4F\u9650\u5236\uFF0C",c.a.createElement("br",null),"\u5207\u6362\u9875\u9762 ",tt.exerciseUserInfo.screen_num-tt.exerciseUserInfo.used_screen_num," \u6B21\u540E\u5C06\u8FDB\u884C\u5F3A\u5236\u4EA4\u5377\uFF0C",c.a.createElement("br",null),"\u8BF7\u52FF\u5207\u5C4F\u53CA\u5237\u65B0\u9875\u9762"),okText:c.a.createElement("span",null,"\u5F00\u59CB\u8003\u8BD5\uFF08",c.a.createElement("span",{style:{display:"inline-block"}},c.a.createElement(Pa,{onFinish:function(){var an;rn(),(an=Jt.current)===null||an===void 0||an.destroy()},valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+er*1e3})),"S\uFF09"),onOk:function(){var an;(an=Jt.current)===null||an===void 0||an.destroy(),vn(!1),Object(R.d)(document.body),document.getElementById("root").addEventListener("click",sn,!1)}})}return(sr=tt.exerciseUserInfo)!==null&&sr!==void 0&&sr.screen_open&&!Object(R.a)()||document.getElementById("root").addEventListener("click",sn,!1),function(){document.getElementById("root").removeEventListener("click",sn,!1),document.removeEventListener(Object(R.c)(),jn,!1),window.removeEventListener("blur",Qt,!1),clearTimeout(pn.current)}},[]),Object(E.useEffect)(function(){setTimeout(function(){tt.actionTabs.removeEventListenerExitScreen&&(clearTimeout(pn.current),document.getElementById("root").removeEventListener("click",sn,!1),document.removeEventListener(Object(R.c)(),jn,!1))},500),bn()},[tt.actionTabs]),Object(E.useEffect)(function(){setTimeout(function(){tt.exerciseUserInfo.used_screen_num>tt.exerciseUserInfo.screen_num?Zt():!jt},500)},[tt.exerciseUserInfo]);var rn=function(){var Dn=Object(l.a)(y.a.mark(function Xt(){var Mn;return y.a.wrap(function(sr){for(;;)switch(sr.prev=sr.next){case 0:return sr.next=2,mn();case 2:Mn=sr.sent,setTimeout(function(){var er,qn;(er=Jt.current)===null||er===void 0||er.destroy(),Jt.current=u.a.info({okText:c.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:c.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",c.a.createElement("span",{className:"c-red"},Mn.used_screen_num),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",c.a.createElement("span",{className:"c-red"},(qn=tt.exerciseUserInfo)===null||qn===void 0?void 0:qn.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377"),onOk:function(){var an=Object(l.a)(y.a.mark(function Fr(){return y.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:Object(R.d)(document.body);case 1:case"end":return lr.stop()}},Fr)}));function Vn(){return an.apply(this,arguments)}return Vn}()})},1e3);case 4:case"end":return sr.stop()}},Xt)}));return function(){return Dn.apply(this,arguments)}}(),sn=function(Xt){!Object(R.a)()&&Xt.target.nodeName!=="A"&&Xt.target.nodeName!=="BUTTON"&&Xt.target.innerHTML!=="\u786E \u5B9A"&&(Object(R.d)(document.body),console.log("documentClick.full"))},bn=function(){var Dn=Object(l.a)(y.a.mark(function Xt(){return y.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return ir.abrupt("return",new Promise(function(){var sr=Object(l.a)(y.a.mark(function er(qn){var an;return y.a.wrap(function(Fr){for(;;)switch(Fr.prev=Fr.next){case 0:return Fr.next=2,bt({type:"exercise/getExerciseUserInfo",payload:Object(e.a)({},Ht)});case 2:return an=Fr.sent,qn(an==null?void 0:an.data),Fr.abrupt("return",an==null?void 0:an.data);case 5:case"end":return Fr.stop()}},er)}));return function(er){return sr.apply(this,arguments)}}()));case 1:case"end":return ir.stop()}},Xt)}));return function(){return Dn.apply(this,arguments)}}(),On=function(){var Dn=Object(l.a)(y.a.mark(function Xt(Mn){var ir,sr,er;return y.a.wrap(function(an){for(;;)switch(an.prev=an.next){case 0:(ir=Jt.current)===null||ir===void 0||((sr=ir.destroyAll)===null||sr===void 0)||sr.call(ir),Jt.current=u.a.info({maskClosable:!1,keyboard:!1,okText:c.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5\uFF08",c.a.createElement("span",{style:{display:"inline-block"}},c.a.createElement(Pa,{onFinish:mn,valueStyle:{fontSize:14,lineHeight:1.4,color:"#FFF",display:"inline-block"},format:"ss",value:Date.now()+(tt.exerciseUserInfo.screen_sec+1)*1e3})),"S\uFF09"),content:c.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",c.a.createElement("span",{className:"c-red"},Mn),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",c.a.createElement("span",{className:"c-red"},(er=tt.exerciseUserInfo)===null||er===void 0?void 0:er.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377,",c.a.createElement("span",{className:"c-red"},tt.exerciseUserInfo.screen_sec),"\u79D2\u5185\u56DE\u5230",c.a.createElement("br",null),c.a.createElement("span",{style:{marginLeft:38}},"\u8003\u8BD5\u4E0D\u8BA1\u5207\u5C4F\u6B21\u6570\u3002")),onOk:function(){var Vn=Object(l.a)(y.a.mark(function Gr(){return y.a.wrap(function(Ra){for(;;)switch(Ra.prev=Ra.next){case 0:clearTimeout(xn.current),Object(R.d)(document.body),Jt.current.destroy();case 3:case"end":return Ra.stop()}},Gr)}));function Fr(){return Vn.apply(this,arguments)}return Fr}()}),xn.current=setTimeout(function(){var Vn;Jt.current.update({okText:c.a.createElement("span",null,"\u56DE\u5230\u8003\u8BD5"),content:c.a.createElement("div",null,"\u60A8\u5DF2\u5207\u5C4F",c.a.createElement("span",{className:"c-red"},Mn+1),"\u6B21\uFF0C\u5207\u5C4F\u8D85\u8FC7",c.a.createElement("span",{className:"c-red"},(Vn=tt.exerciseUserInfo)===null||Vn===void 0?void 0:Vn.screen_num),"\u6B21\u5C06\u5F3A\u5236\u4EA4\u5377")})},(tt.exerciseUserInfo.screen_sec+1)*1e3);case 3:case"end":return an.stop()}},Xt)}));return function(Mn){return Dn.apply(this,arguments)}}(),fn=function(){location.href="/classrooms/".concat(Ht.coursesId,"/exercise/").concat(Ht.categoryId,"/detail")},Zt=function(){var Dn=Object(l.a)(y.a.mark(function Xt(){var Mn,ir,sr;return y.a.wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:return(Mn=Jt.current)===null||Mn===void 0||((ir=Mn.destroyAll)===null||ir===void 0)||ir.call(Mn),qn.next=3,Object(zn.H)({categoryId:Ht.categoryId,commit_method:1});case 3:if(sr=qn.sent,sr){try{Ve.send(JSON.stringify({type:"toggleLockExit",data:!1})),Ve.send(JSON.stringify({type:"network-open",data:""}))}catch(an){}$t()}case 5:case"end":return qn.stop()}},Xt)}));return function(){return Dn.apply(this,arguments)}}(),$t=function(){var Xt,Mn;document.removeEventListener(Object(R.c)(),jn,!1),Object(R.b)(),(Xt=Jt.current)===null||Xt===void 0||((Mn=Xt.destroyAll)===null||Mn===void 0)||Mn.call(Xt);try{Ve.send(JSON.stringify({type:"toggleLockExit",data:!1})),Ve.send(JSON.stringify({type:"network-open",data:""}))}catch(ir){}Ft.info({content:c.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",c.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){fn()}})},Qt=function(Xt){Object(R.a)()&&document.getElementById("iframeShixuns").style.display=="none"&&Object(R.b)()},mn=function(){var Dn=Object(l.a)(y.a.mark(function Xt(){return y.a.wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return ir.abrupt("return",new Promise(function(){var sr=Object(l.a)(y.a.mark(function er(qn){var an,Vn,Fr;return y.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:if(!((an=tt.exerciseUserInfo)!==null&&an!==void 0&&an.screen_at)){lr.next=3;break}return lr.next=3,Object(zn.f)(Object(e.a)(Object(e.a)({},Ht),{},{reset:!0}));case 3:return lr.next=5,Object(zn.D)({id:Ht.categoryId});case 5:if(Vn=lr.sent,!(Vn!=null&&Vn.is_commit)){lr.next=9;break}return $t(),lr.abrupt("return");case 9:return lr.next=11,bn();case 11:Fr=lr.sent,qn(Fr);case 13:case"end":return lr.stop()}},er)}));return function(er){return sr.apply(this,arguments)}}()));case 1:case"end":return ir.stop()}},Xt)}));return function(){return Dn.apply(this,arguments)}}(),jn=function(){var Dn=Object(l.a)(y.a.mark(function Xt(){var Mn,ir,sr,er;return y.a.wrap(function(an){for(;;)switch(an.prev=an.next){case 0:if(Mn=!1,console.log("fullscreen change"),!Object(R.a)()){an.next=7;break}(ir=tt.exerciseUserInfo)!==null&&ir!==void 0&&ir.screen_at&&Object(zn.f)(Object(e.a)(Object(e.a)({},Ht),{},{reset:!0})),clearTimeout(pn.current),an.next=17;break;case 7:return Mn=!0,an.next=10,Object(zn.f)(Object(e.a)({},Ht));case 10:return an.next=12,bn();case 12:sr=an.sent,On(sr.used_screen_num),er=setTimeout(Object(l.a)(y.a.mark(function Vn(){return y.a.wrap(function(Gr){for(;;)switch(Gr.prev=Gr.next){case 0:case"end":return Gr.stop()}},Vn)})),tt.exerciseUserInfo.screen_sec*1e3),window.frames.length!=parent.frames.length&&window.parent.postMessage("backExercise","*"),pn.current=er;case 17:bt({type:"globalSetting/headerFooterToggle",payload:Mn});case 18:case"end":return an.stop()}},Xt)}));return function(){return Dn.apply(this,arguments)}}();return c.a.createElement("div",null,Yt)},ol=Object(ei.a)(function(ae){var Me=ae.loading,Ke=ae.user,gt=ae.exercise,Et=ae.globalSetting;return{globalSetting:Et,user:Ke,exercise:gt,loading:Me.effects}})(il),Go=ni.a.Countdown;function os(){return c.a.createElement("p",null,"\u684C\u9762\u7CFB\u7EDF\u5C06\u6062\u590D\u5230\u521D\u59CB\u72B6\u6001\uFF0C\u60A8\u5728\u7CFB\u7EDF\u4E2D\u521B\u5EFA\u7684\u6570\u636E\u53EF\u80FD\u4F1A\u4E22\u5931\u3002\u8BF7\u786E\u4FDD\u60A8\u7684\u6570\u636E\u5DF2\u4FDD\u5B58\uFF08\u5982\uFF1A\u7248\u672C\u5E93\u4EE3\u7801\u5DF2\u63A8\u9001\u5230\u670D\u52A1\u5668\uFF09\u3002\u662F\u5426\u786E\u8BA4\u91CD\u7F6E\uFF1F")}var As=function(ae){var Me,Ke=ae.mirror_description,gt=ae.difficulty,Et=ae.git_url,tt=ae.vnc_url,Ve=ae.window_vnc_url,bt=ae.linux_vnc,mt=ae.isNotice,ot=ae.user,ct=ae.game,Pt=ae.shixun,kt=Pt===void 0?{}:Pt,Tt=ae.taskData,Nt=Tt===void 0?{}:Tt,Ft=ae.resetVncLoading,Yt=ae.onUpdateCostTime,Jt=ae.lastedGetTaskInfoTime,pn=ae.onShowNotice,xn=ae.onResetGitCode,tn=ae.onResetVnc,nn=ae.onBack,jt=ae.history,vn=ae.onAddVncTime,nt=ae.onUpdateCode,Ht=ae.unity_3d_routes,rn=ae.st,sn=kt.name,bn=kt.identifier,On=kt.task_pass,fn=kt.test_set_permission,Zt=ct.cost_time,$t=ct.status,Qt=ot.user_url,mn=ot.image_url,jn=ot.grade,Dn=jn===void 0?0:jn,Xt=Object(E.useState)(!1),Mn=Object(n.a)(Xt,2),ir=Mn[0],sr=Mn[1],er=Object(E.useState)({}),qn=Object(n.a)(er,2),an=qn[0],Vn=qn[1],Fr=Object(E.useState)("#FFF"),Gr=Object(n.a)(Fr,2),lr=Gr[0],Ra=Gr[1],ja=Object(E.useState)(null),ci=Object(n.a)(ja,2),ra=ci[0],Na=ci[1],Ri=Object(E.useState)(),xi=Object(n.a)(Ri,2),ki=xi[0],Li=xi[1],ga=Object(E.useState)(!1),po=Object(n.a)(ga,2),mo=po[0],dr=po[1],Nn=Object(C.h)().query,un=Object(E.useRef)(),kr=Object(E.useRef)(),va=Object(E.useRef)((kt==null?void 0:kt.webssh)===3?1:void 0);Object(E.useEffect)(function(){var p=En.a.subscribe("taskTabIndex",function(O){(kt==null?void 0:kt.webssh)===3&&(va.current=O)});return p},[]),Object(E.useEffect)(function(){var p;if(clearTimeout(un.current),clearTimeout(kr.current),an!=null&&(p=an.exercise)!==null&&p!==void 0&&p.left_time){var O,A;if((an==null||((O=an.exercise)===null||O===void 0)?void 0:O.left_time)>1800){var N;kr.current=setTimeout(function(){u.a.info({content:"\u5F53\u524D\u8DDD\u79BB\u8003\u8BD5\u7ED3\u675F\u8FD8\u670930\u5206\u949F",icon:c.a.createElement(Va.a,null),okText:"\u77E5\u9053\u4E86"})},((an==null||((N=an.exercise)===null||N===void 0)?void 0:N.left_time)-1800)*1e3)}if((an==null||((A=an.exercise)===null||A===void 0)?void 0:A.left_time)>900){var V;un.current=setTimeout(function(){u.a.info({content:"\u5F53\u524D\u8DDD\u79BB\u8003\u8BD5\u7ED3\u675F\u8FD8\u670915\u5206\u949F",icon:c.a.createElement(Va.a,null),okText:"\u77E5\u9053\u4E86"})},((an==null||((V=an.exercise)===null||V===void 0)?void 0:V.left_time)-900)*1e3)}}},[an]),Object(E.useEffect)(function(){function p(){return O.apply(this,arguments)}function O(){return O=Object(l.a)(y.a.mark(function A(){var N,V,re,fe,ge,Se,Je,at,Dt,Ot;return y.a.wrap(function(en){for(;;)switch(en.prev=en.next){case 0:if(!(Nn.type==="exercises")){en.next=12;break}if(!(Nn.coursesId==="coursesId")){en.next=7;break}return en.next=4,Object(zn.G)({categoryId:Nn.exercisesId,login:Nn.login});case 4:fe=en.sent,en.next=10;break;case 7:return en.next=9,Object(zn.s)({categoryId:Nn.exercisesId,login:Nn.login});case 9:fe=en.sent;case 10:Vn(Object(e.a)({},fe)),(N=fe)!==null&&N!==void 0&&N.left_banner_id&&(V=fe)!==null&&V!==void 0&&(re=V.exercise)!==null&&re!==void 0&&re.left_time&&(Na(Date.now()+((ge=fe)===null||ge===void 0||((Se=ge.exercise)===null||Se===void 0)?void 0:Se.left_time)*1e3),setTimeout(function(){Ra("red")},(((Je=fe)===null||Je===void 0||((at=Je.exercise)===null||at===void 0)?void 0:at.left_time)-300>0?((Dt=fe)===null||Dt===void 0||((Ot=Dt.exercise)===null||Ot===void 0)?void 0:Ot.left_time)-300:0)*1e3));case 12:case"end":return en.stop()}},A)})),O.apply(this,arguments)}p(),En.a.subscribe("update-windows-time",function(A){Li(parseInt(A.remaining_time/1e3))}),tt&&Li(1800)},[]),Object(E.useEffect)(function(){var p;return Nn.type==="exercises"&&an!==null&&an!==void 0&&(p=an.exercise)!==null&&p!==void 0&&p.screen_open&&(Ni.forEach(function(O,A){window.addEventListener(O,Hn,!1),window.addEventListener("blur",Hn,!1)}),window.focus()),function(){Ni.forEach(function(O,A){window.removeEventListener(O,Hn,!1)}),window.removeEventListener("blur",Hn,!1)}},[an]);var Jn=function(){dr(!mo)},Hn=function(O){window.parent.postMessage("backExercise","*"),O!=="back"&&Object(R.b)()};function xr(){sr(!ir)}function aa(){sr(!1)}function Pr(){nn(),jt.replace("/shixuns/".concat(bn,"/challenges"))}function Fa(){if(Ft)return;tn()}function ko(){u.a.confirm({title:"\u9000\u51FA\u5B9E\u8BAD",icon:c.a.createElement(rt.a,null),content:"\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u5B9E\u8BAD\u5417\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Pr})}function lo(p){if(aa(),p==="reset-task"&&(Ft||u.a.confirm({title:"\u91CD\u7F6E\u5B9E\u8BAD",icon:c.a.createElement(rt.a,null),content:c.a.createElement(os,null),centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Fa})),p==="reset-code"&&(Ft||u.a.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:c.a.createElement(rt.a,null),content:"\u60A8\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931\uFF0C\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:xn})),p==="full-screen")if(Object(R.a)())Object(R.b)();else{var O,A;Object(R.d)((O=document)===null||O===void 0||((A=O.getElementById)===null||A===void 0)?void 0:A.call(O,"task-right-panel"))}p==="show-clipboard-box"&&En.a.publish("show-clipboard-box")}var Pi={task_pass:On,test_set_permission:fn,mirror_description:Ke,difficulty:gt,resetVncLoading:Ft,git_url:Et,onVncAction:lo,window_vnc_url:Ve,linux_vnc:bt,vnc_url:tt,shixun:kt,unity_3d_routes:Ht,position:va.current},t=Object(E.useCallback)(function(){return ki?(console.log("VncTimer:",ki),c.a.createElement(Ts,{defaultTime:ki,onAddVncTime:vn,onReset:Fa,toShixun:Pr,title:tt?"\u5B9E\u9A8C\u73AF\u5883\u5012\u8BA1\u65F6":""})):null},[ki]);return c.a.createElement("div",{className:"task-header-container"},Nn.type!=="exercises"&&c.a.createElement(c.a.Fragment,null,c.a.createElement("a",{className:"task-user-info",href:Qt,target:"_blank"},mn?c.a.createElement("img",{width:"35",height:"35",src:"".concat(Ia.a.IMG_SERVER,"/images/").concat(mn)}):null,c.a.createElement("span",null,ot.name)),c.a.createElement("div",{className:"grade-info"},c.a.createElement("img",{src:Wa.a,alt:"gold",width:20}),Dn)),c.a.createElement("h2",{className:"shixun-info"},sn,(Nn==null?void 0:Nn.type)!=="exercises"&&kt.hide_code!==2&&c.a.createElement(_t,{lastedGetTaskInfoTime:Jt,status:$t,defaultTime:Zt,onUpdateCostTime:Yt,title:tt?"\u5B9E\u9A8C\u603B\u7528\u65F6":""})),c.a.createElement(c.a.Fragment,null,(tt||Ve||bt||(Nt==null?void 0:Nt.virtual_machine)||(kt==null?void 0:kt.webssh)===3||kt.hide_code===2||Ht)&&c.a.createElement("div",{className:"flex-container"},(Nn==null?void 0:Nn.type)!=="exercises"&&c.a.createElement(c.a.Fragment,null,Ve&&c.a.createElement(qa.a,{onClick:function(O){O.preventDefault(),En.a.publish("send-ctrl-alt-delete")},className:"c-grey-c mr20"},"\u53D1\u9001CTRL+ALT+DELETE"),mt?c.a.createElement(Tr,{className:"btn-notice",onShowNotice:pn}):null,t()),c.a.createElement("a",{className:"btn-vnc",title:"\u5DE5\u5177\u680F",onClick:xr},c.a.createElement("img",{alt:"tool",src:zo.a,width:16}),"\u5DE5\u5177\u680F")),!Ve&&c.a.createElement(Wo,{visible:mo,onClose:Jn,shixun:kt},c.a.createElement("a",{className:"btn-vnc",title:"\u5DE5\u5177\u680F",onClick:Jn},c.a.createElement("span",{className:"iconfont font14 mr5 icon-shujuji2 current"}),"\u6570\u636E\u96C6"))),Nn.type!=="exercises"&&c.a.createElement(c.a.Fragment,null,tt||Ve?c.a.createElement("a",{className:"btn-task-out",onClick:ko,title:"\u9000\u51FA\u5B9E\u8BAD"},"\u9000\u51FA\u5B9E\u8BAD"):c.a.createElement("a",{className:"btn-out",onClick:ko,title:"\u9000\u51FA\u5B9E\u8BAD"},c.a.createElement("i",{className:"iconfont icon-kaiguan"}))),(an==null||((Me=an.exercise)===null||Me===void 0)?void 0:Me.left_time)&&c.a.createElement(c.a.Fragment,null,c.a.createElement("span",{style:{color:lr},className:"iconfont icon-kaoshishichang mr5"}),c.a.createElement("span",{className:"c-white mr20"},c.a.createElement(Go,{className:"flex-wrp ",valueStyle:{color:lr,fontSize:12,fontWeight:"normal"},title:c.a.createElement("span",{style:{color:lr,fontSize:12}},"\u5269\u4F59\u65F6\u95F4\uFF1A"),value:ra,onFinish:Object(l.a)(y.a.mark(function p(){var O,A;return y.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.next=2,Object(zn.H)({categoryId:Nn.exercisesId,commit_method:2});case 2:O=V.sent,(O==null?void 0:O.status)===0&&(rn===0&&nt(1),u.a.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",content:c.a.createElement("div",{className:"tc font16"},"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",c.a.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:function(){var re=Object(l.a)(y.a.mark(function ge(){return y.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:window.parent.location.href="/classrooms/".concat(Nn.coursesId,"/exercise/").concat(Nn.exercisesId,"/detail");case 1:case"end":return Je.stop()}},ge)}));function fe(){return re.apply(this,arguments)}return fe}()})),(O==null?void 0:O.status)===-3&&(A=parseInt(O==null?void 0:O.message),Na(Date.now()+A*1e3));case 5:case"end":return V.stop()}},p)}))}))),(Nn==null?void 0:Nn.type)==="exercises"&&c.a.createElement(Ka.a,{type:"primary",onClick:function(){rn===0&&nt(1),u.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:c.a.createElement("div",{className:"tc"},"\u8BF7\u786E\u8BA4\u4F60\u7684\u7B54\u9898\u5185\u5BB9\u5DF2\u7ECF\u63D0\u4EA4\uFF1F"),onOk:function(){Hn("back")}})}},c.a.createElement("span",{className:"iconfont icon-yiguanbi mr5 font14"})," \u8FD4\u56DE\u8BD5\u5377"),c.a.createElement(Rr.a,null,c.a.createElement(I.a,{width:280,className:"setting-drawer",title:null,placement:"right",closable:!1,visible:ir,onClose:aa},c.a.createElement($a,Pi))))},ss=300;function Ts(ae){var Me=ae.onAddVncTime,Ke=ae.onReset,gt=ae.toShixun,Et=ae.title,tt=Et===void 0?"":Et,Ve=ae.defaultTime,bt=Object(E.useState)(Ve),mt=Object(n.a)(bt,2),ot=mt[0],ct=mt[1],Pt=Object(E.useState)(!1),kt=Object(n.a)(Pt,2),Tt=kt[0],Nt=kt[1];Object(Fi.a)(function(){ct(ot-1)},ot>0?1e3:null),Object(E.useEffect)(function(){ot===ss&&Nt(!0)},[ot]),Object(E.useEffect)(function(){Ve<ss&&Nt(!0),ct(Ve)},[Ve]);function Ft(){ot!==0?Nt(!1):gt()}function Yt(){return Jt.apply(this,arguments)}function Jt(){return Jt=Object(l.a)(y.a.mark(function xn(){var tn;return y.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:if(Nt(!1),!(ot>0)){jt.next=8;break}return jt.next=4,Me();case 4:tn=jt.sent,ct((tn==null?void 0:tn.remaining_time)/1e3),jt.next=10;break;case 8:ct(Ve),Ke();case 10:case"end":return jt.stop()}},xn)})),Jt.apply(this,arguments)}function pn(){ot<ss&&Nt(!0)}return c.a.createElement(E.Fragment,null,c.a.createElement(ri,{callback:pn,title:"\u5B9E\u9A8C\u73AF\u5883\u5012\u8BA1\u65F6",className:"btn-vnc ".concat(ot<ss?"color-red":""," "),time:ot,desc:tt}),c.a.createElement(Rr.a,null,c.a.createElement(u.a,{title:[c.a.createElement(rt.a,{className:"modalIconYellow"}),ot!==0?"\u5B9E\u9A8C\u73AF\u5883\u5EF6\u65F6\u63D0\u9192":"\u5B9E\u9A8C\u73AF\u5883\u91CD\u7F6E\u63D0\u9192"],closable:!1,centered:!0,wrapClassName:"customModalStyle",visible:Tt,onOk:Yt,onCancel:Ft,okText:ot!==0?"\u7ACB\u5373\u5EF6\u957F":"\u91CD\u7F6E",cancelText:ot!==0?"\u4E0D\u9700\u8981":"\u9000\u51FA"},ot!==0?"\u5F53\u524D\u5B9E\u9A8C\u73AF\u5883\u5C06\u4E8E ".concat(Math.round(ot/60)," \u5206\u949F\u540E\u5173\u95ED\uFF0C\u9700\u8981\u5EF6\u957F\u4F7F\u7528\u65F6\u95F4\u5417\uFF1F"):"\u7531\u4E8E\u957F\u65F6\u95F4\u6CA1\u6709\u4F7F\u7528\uFF0C\u8D44\u6E90\u5DF2\u7ECF\u88AB\u56DE\u6536\u3002\u5982\u6709\u9700\u8981\uFF0C\u53EF\u4EE5\u91CD\u7F6E\u5B9E\u9A8C\u73AF\u5883\u3002")))}var bl=v("zJix"),bi=v.n(bl),yl=v("KJ0q"),sl=v("7Kak"),vs=v("9yH6"),ls={0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N"},us=function(ae){var Me=ae.category,Ke=ae.answer,gt=Ke===void 0?"":Ke,Et=ae.index,tt=ae.option_name,Ve=ae.callback,bt=ls[Et];function mt(){if(Me===1)Ve(bt);else{var ot=(gt==null?void 0:gt.split(""))||[],ct=ot.indexOf(bt);ct>=0?ot.splice(ct,1):ot.push(bt),Ve(ot.join(""))}}return c.a.createElement("a",{className:"flex-container",onClick:mt},c.a.createElement("span",{style:{position:"relative",top:4},className:"".concat(Me===1?"radio":"checkbox"," ").concat(gt&&gt.indexOf(bt)>=0?"active":"")}),c.a.createElement("div",{className:"flex-wrp"},c.a.createElement("span",{style:{lineHeight:1.7,fontSize:16,whiteSpace:"nowrap"}},bt,"\u3001"),c.a.createElement(In.a,{className:"subject-body",value:tt})))},El=function(ae){var Me=ae.callback,Ke=ae.multi_count,gt=ae.answer,Et=Object(E.useState)([]),tt=Object(n.a)(Et,2),Ve=tt[0],bt=tt[1];return Object(E.useEffect)(function(){if(Ke){if(gt!=null&&gt.length){bt(gt);return}var mt=Array.from({length:Ke}).fill("");bt(mt)}},[Ke,gt]),console.log(Ve,gt,"multi_count"),c.a.createElement("div",{className:"option"},Ve==null?void 0:Ve.map(function(mt,ot){return c.a.createElement(_i.a,{align:"middle",className:"mb10 text"},c.a.createElement("span",{className:"mb5"},"\u586B\u7A7A",ot+1,"\u7B54\u6848\uFF1A"),c.a.createElement(gr.a.TextArea,{key:ot,value:mt,onChange:function(Pt){Ve[ot]=Pt.target.value,Me(Ve)}}))}))},Os=function(ae){var Me=ae.id,Ke=ae.answer,gt=ae.challenge_question,Et=ae.category,tt=ae.subject,Ve=ae.onSetAnswers,bt=ae.question_name,mt=ae.multi_count;function ot(ct){Ve(Me,ct)}return c.a.createElement("li",null,c.a.createElement(_i.a,{className:"subject c-grey-999",align:"stretch"},c.a.createElement(pr.a,{flex:"40px"},c.a.createElement("p",{className:"mt3"},Me+1,"\u3001")),c.a.createElement(pr.a,{flex:"1"},c.a.createElement(In.a,{value:"".concat(tt),className:"subject-body"}))),bt==="\u5355\u9009\u9898/\u591A\u9009\u9898"&&c.a.createElement("div",{className:"option"},gt==null?void 0:gt.map(function(ct,Pt){var kt=ct.option_name;return c.a.createElement(us,{index:Pt,key:kt,option_name:kt,answer:Ke,category:Et,callback:ot})})),bt==="\u5224\u65AD\u9898"&&c.a.createElement("div",{className:"option"},c.a.createElement(vs.a.Group,{className:"mb10",value:Ke||void 0,onChange:function(Pt){return ot(Pt.target.value)}},c.a.createElement(vs.a,{value:"true",className:"mr40"},"\u6B63\u786E"),c.a.createElement(vs.a,{value:"false"},"\u9519\u8BEF"))),bt==="\u586B\u7A7A\u9898"&&c.a.createElement(El,{multi_count:mt,callback:ot,answer:Ke}))},bs=function(ae){var Me=ae.chooses,Ke=ae.answers,gt=ae.onSetAnswers;return c.a.createElement("ul",{className:"choose-container"},Me.map(function(Et,tt){var Ve=Et.subject,bt=Et.challenge_question,mt=Et.category,ot=Et.question_name,ct=Et.multi_count;return c.a.createElement(Os,{key:tt,id:tt,subject:Ve,challenge_question:bt,category:mt,answer:Ke[tt],onSetAnswers:gt,question_name:ot,multi_count:ct})}))},ys=v("yqJW"),cs=v("cf+g"),bo=v.n(cs),$o=v("UbZX"),So=v.n($o),Es=v("LYID"),Vo=v.n(Es),Rs=function(Me){var Ke=Me.id,gt=Me.isActive,Et=Me.title,tt=Me.onActive,Ve=Me.had_submmit,bt=Me.result,mt=Me.actual_output,ot=Me.standard_answer,ct=Me.question_name;function Pt(){tt(Ke)}var kt="test-case-item";return gt&&(kt+=" active"),Ve&&(kt+=" has-result"),c.a.createElement("li",{className:kt},c.a.createElement("a",{className:"case-header",onClick:Pt},c.a.createElement("h2",null,c.a.createElement("div",{className:gt?"arrow-down":"arrow-right"}),c.a.createElement("span",{className:"test-title"},Et)),Ve>0?c.a.createElement("img",{width:16,src:bt?So.a:Vo.a}):c.a.createElement("i",{className:"iconfont icon-suo1"})),c.a.createElement("div",{className:"item-desc ".concat(gt?"show":"hide"," choose-game-item")},Ve?bt?ct==="\u586B\u7A7A\u9898"?c.a.createElement(E.Fragment,null,c.a.createElement("p",null,c.a.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),c.a.createElement("b",null,ot==null?void 0:ot.map(function(Tt,Nt){var Ft;return c.a.createElement("p",null,"\u586B\u7A7A",Nt+1,"\uFF1A",Tt==null||((Ft=Tt.text)===null||Ft===void 0)?void 0:Ft.join("\u3001"))}))),c.a.createElement("p",null,c.a.createElement("div",null,"\u4F60\u7684\u7B54\u6848\uFF1A"),c.a.createElement("b",{className:"c-red"},mt==null?void 0:mt.map(function(Tt,Nt){return c.a.createElement("p",null,"\u586B\u7A7A",Nt+1,"\uFF1A",Tt)})))):c.a.createElement(E.Fragment,null,c.a.createElement("p",null,"\u6B63\u786E\u9009\u9879\uFF1A",c.a.createElement("b",null,ot)),c.a.createElement("p",null,"\u4F60\u7684\u9009\u9879\uFF1A",c.a.createElement("b",{className:"c-red"},mt))):c.a.createElement("p",null,"\u9519\u8BEF\uFF0C\u4E0D\u652F\u6301\u67E5\u770B"):c.a.createElement("p",null,"\u5C1A\u672A\u63D0\u4EA4\uFF0C\u6682\u4E0D\u652F\u6301\u67E5\u770B")))},Hs=function(ae){var Me=ae.onResizeSetContainer,Ke=ae.moveY,gt=ae.had_submmit,Et=ae.test_sets,tt=Et===void 0?[]:Et,Ve=ae.challenge_chooses_count,bt=ae.choose_correct_num,mt=Object(E.useState)(-1),ot=Object(n.a)(mt,2),ct=ot[0],Pt=ot[1];function kt(Ft){Pt(Ft===ct?-1:Ft)}var Tt=bt===Ve;function Nt(){Me(Ke)}return c.a.createElement(E.Fragment,null,c.a.createElement("div",{className:"test-header"},c.a.createElement("span",{className:"active"},"\u6D4B\u8BD5\u7ED3\u679C"),c.a.createElement("a",{onClick:Nt},c.a.createElement("i",{className:"iconfont ".concat(Ke===.01?"icon-shousuo":"icon-zhankai"," icon-zhankai")}))),gt?c.a.createElement("p",{className:"test-result ".concat(Tt?"success":"failer")},c.a.createElement("span",{className:"count"},c.a.createElement("img",{width:16,src:Tt?So.a:bo.a}),bt," / ",Ve," \u5171\u6709",Ve,"\u9898\uFF0C"),c.a.createElement("span",null,Tt?"\u5168\u90E8\u901A\u8FC7":"\u5176\u4E2D".concat(Ve-bt,"\u9898\u76EE\u7ED3\u679C\u4E0D\u5339\u914D\u3002\u8BE6\u60C5\u5982\u4E0B\uFF1A"))):null,c.a.createElement("ul",{className:"test-case-list"},tt.map(function(Ft,Yt){return c.a.createElement(Rs,Object(a.a)({key:"item"+Yt,had_submmit:gt,title:"\u9898\u76EE".concat(Yt+1)},Ft,{isActive:ct===Yt,id:Yt,onActive:kt}))})))},ks=v("9odi"),Lo=v.n(ks),Yo=v("VjRW"),es=v.n(Yo),Is=function(ae){var Me,Ke=ae.st,gt=ae.prev_game,Et=ae.next_game,tt=ae.time_limit,Ve=ae.record_consume_time,bt=ae.loading,mt=ae.vnc_url,ot=ae.linux_vnc,ct=ae.windows_vnc,Pt=ae.shixun,kt=ae.game,Tt=ae.onRun,Nt=ae.dispatch,Ft=ae.onShowTestCaseList,Yt=ae.chooses,Jt=ae.unity_3d_routes,pn=ae.user,xn=ae.is_last_game,tn=ae.onUpdateCode,nn=ae.test_sets,jt=ae.challenge,vn=ae.isU3d,nt=ae.game_report_id,Ht=Object(C.i)(),rn=!xn&&!bt&&(Pt.status>0||(pn==null?void 0:pn.identity)<5),sn=Ke===1&&kt.status===2,bn=["\u81EA\u6D4B\u8FD0\u884C","\u6B63\u5728\u542F\u52A8","\u505C\u6B62\u8FD0\u884C","\u6B63\u5728\u505C\u6B62"],On=Object(E.useState)(0),fn=Object(n.a)(On,2),Zt=fn[0],$t=fn[1],Qt=Object(E.useState)(0),mn=Object(n.a)(Qt,2),jn=mn[0],Dn=mn[1],Xt=Object(E.useState)(!1),Mn=Object(n.a)(Xt,2),ir=Mn[0],sr=Mn[1],er=Object(E.useState)(!1),qn=Object(n.a)(er,2),an=qn[0],Vn=qn[1],Fr=Object(E.useState)(nn==null||((Me=nn[0])===null||Me===void 0)?void 0:Me.input),Gr=Object(n.a)(Fr,2),lr=Gr[0],Ra=Gr[1],ja=Object(E.useState)(!1),ci=Object(n.a)(ja,2),ra=ci[0],Na=ci[1],Ri=Object(E.useState)(bn[0]),xi=Object(n.a)(Ri,2),ki=xi[0],Li=xi[1],ga=Object(E.useRef)(!1),po=Object(E.useState)(0),mo=Object(n.a)(po,2),dr=mo[0],Nn=mo[1],un=Object(C.h)();Object(E.useEffect)(function(){Zt>0&&setTimeout(function(){$t(Zt-1)},1e3)},[Zt]),Object(E.useEffect)(function(){dr>0&&setTimeout(function(){Nn(dr-1)},1e3)},[dr]),Object(E.useEffect)(function(){jn>0&&setTimeout(function(){Dn(jn-1)},1e3)},[jn]),Object(E.useEffect)(function(){var Hn=En.a.subscribe("showRunCode",function(Fa){Vn(Fa)}),xr=En.a.subscribe("caseInputValue",function(Fa){Ra(Fa)}),aa=En.a.subscribe("runCodeFinish",function(){ga.current=!1,Na(!1),Li(bn[0]),dr>0||Nn(5)}),Pr=En.a.subscribe("eval-code-finish",function(){Jt&&sr(!0),Ke===1||$t(10)});return function(){Pr(),Hn(),xr(),aa()}},[]);var kr=function(){ga.current=!1,Li(bn[3]),En.a.publish("runCode",{type:"stop"}),Object(pe.J)(Ht.taskId),setTimeout(function(){dr>0||Nn(5),Li(bn[0]),Na(!1),Nn(5)},2500)},va=function(){var Hn=Object(l.a)(y.a.mark(function xr(){return y.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:return ga.current=!0,Pr.next=3,tn();case 3:Li(bn[1]),En.a.publish("show-case-result",!0),setTimeout(Object(l.a)(y.a.mark(function Fa(){var ko,lo,Pi,t,p;return y.a.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,Object(pe.v)(Ht.taskId,{test_case_content:lr});case 2:if(Pi=A.sent,!(Pi!=null&&(ko=Pi.data)!==null&&ko!==void 0&&(lo=ko.data_list)!==null&&lo!==void 0&&lo.length)){A.next=6;break}return En.a.publish("pod-restrict-data",{identifier:Pi==null||((t=Pi.data)===null||t===void 0)?void 0:t.identifier,data_list:Pi==null||((p=Pi.data)===null||p===void 0)?void 0:p.data_list}),A.abrupt("return");case 6:En.a.publish("showRunCodeTab",!0),En.a.publish("runCode",{type:"start"});case 8:case"end":return A.stop()}},Fa)})),100),setTimeout(function(){ga.current&&(Li(bn[2]),Na(!1))},1e3);case 7:case"end":return Pr.stop()}},xr)}));return function(){return Hn.apply(this,arguments)}}(),Jn=function(){var Hn=Object(l.a)(y.a.mark(function xr(){return y.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:Na(!0),ki===bn[2]?kr():va();case 2:case"end":return Pr.stop()}},xr)}));return function(){return Hn.apply(this,arguments)}}();return c.a.createElement("div",{className:Lo.a["action-container"]},c.a.createElement("div",{className:"flex-container ".concat(Lo.a["eval-desc"])},tt&&jt!==null&&jt!==void 0&&jt.with_code_file?c.a.createElement("span",null,"\u672C\u5173\u6700\u5927\u6267\u884C\u65F6\u95F4\uFF1A".concat(tt,"\u79D2")):null,Ve&&jt!==null&&jt!==void 0&&jt.with_code_file?c.a.createElement("span",null,"\u672C\u6B21\u8BC4\u6D4B\u8017\u65F6(\u7F16\u8BD1\u3001\u8FD0\u884C\u603B\u65F6\u95F4)\uFF1A",Ve," \u79D2"):null,nt?c.a.createElement("a",{target:"_blank",className:Lo.a.link,href:"/report/".concat(Ht.taskId,"/").concat(nt)},"\u4EE3\u7801\u6027\u80FD\u68C0\u6D4B"):null,(mt||ct||ot||vn)&&(jt==null?void 0:jt.with_code_file)&&c.a.createElement("a",{title:"\u663E\u793A/\u9690\u85CF\u6D4B\u8BD5\u7ED3\u679C",onClick:function(){En.a.publish("show-case-result")}},"\u663E\u793A/\u9690\u85CF\u6D4B\u8BD5\u7ED3\u679C")),c.a.createElement("div",{className:"flex-container ".concat(Lo.a["eval-btn-group"])},gt&&!bt?c.a.createElement("a",{href:"/tasks/".concat(gt).concat(un.search),onClick:function(xr){xr.preventDefault(),setTimeout(function(){return window.location.href="/tasks/".concat(gt).concat(un.search)},300)},className:Lo.a["ghost-link"]},"\u4E0A\u4E00\u5173"):null,rn?c.a.createElement("a",{href:"/tasks/".concat(Et).concat(un.search),onClick:function(xr){if(xr.preventDefault(),Pt.task_pass||kt.status===2||(pn==null?void 0:pn.identity)<5){setTimeout(function(){return window.location.href="/tasks/".concat(Et).concat(un.search)},300);return}u.a.warning({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u6211\u77E5\u9053\u4E86",content:c.a.createElement("p",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u8BBE\u7F6E\u4E86\u4E0D\u5141\u8BB8\u8DF3\u5173\u3002\u901A\u8FC7\u5F53\u524D\u5173\u5361\u540E\uFF0C\u624D\u80FD\u8FDB\u5165\u4E0B\u4E00\u5173\u3002")})},className:Lo.a["ghost-link"]},"\u4E0B\u4E00\u5173"):null,ir&&(jt==null?void 0:jt.show_type)===1&&c.a.createElement("button",{onClick:function(){Nt({type:"SHOW_PICTURE_VIEW"})},style:{minWidth:"72px",marginRight:10},className:"btn-run",title:"\u67E5\u770B\u6548\u679C"},"\u67E5\u770B\u6548\u679C"),!!an&&Pt.hide_code!==2&&!vn&&c.a.createElement(Ka.a,{onClick:Object(Rn.throttle)(Jn,2e3),loading:ra,danger:!0,disabled:dr>0,className:"".concat(Lo.a["btn-run-self"]," mr10")},dr>0?"".concat(dr,"S"):ki),(jt==null?void 0:jt.with_code_file)&&c.a.createElement("button",{onClick:Object(l.a)(y.a.mark(function Hn(){return y.a.wrap(function(aa){for(;;)switch(aa.prev=aa.next){case 0:if(!(Ke===1)){aa.next=4;break}if(!((Yt==null?void 0:Yt.length)<=0)){aa.next=4;break}return u.a.confirm({centered:!0,title:"\u63D0\u793A",content:c.a.createElement("div",{className:"tc"},c.a.createElement("p",null,"\u60A8\u8FD8\u672A\u6DFB\u52A0\u9898\u76EE\uFF0C\u8BF7\u6DFB\u52A0\u540E\u8BC4\u6D4B\uFF01")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88"}),aa.abrupt("return");case 4:return sr(!1),aa.next=7,Tt();case 7:case"end":return aa.stop()}},Hn)})),style:{minWidth:"72px"},disabled:bt||Zt>0,className:Lo.a["btn-run"],title:"\u8FD0\u884C\u8BC4\u6D4B"},Zt>0?"".concat(Zt,"S"):c.a.createElement(E.Fragment,null," ",c.a.createElement("img",{src:es.a,alt:"run",width:18})," ",c.a.createElement("b",null,"\u8BC4\u6D4B")," "))))};function wl(ae,Me){switch(Me.type){case Te:return Object(e.a)(Object(e.a)({},ae),{},{loading:!0});case He:return Object(e.a)(Object(e.a)({},ae),{},{loading:!1});case Ze:return Object(e.a)(Object(e.a)({},ae),Me.payload);default:throw new Error}}var xl=function(ae){var Me=ae.taskData,Ke=ae.moveY,gt=ae.onResizeYStart,Et=ae.onResizeSetContainer,tt=ae.onEval,Ve=ae.lastedGetTaskInfoTime,bt=ae.onUpdateCode,mt=ae._dispatch,ot=Object(C.h)(),ct=Me.chooses,Pt=Me.choose_test_cases,kt=Me.game,Tt=Pt.test_sets,Nt=Pt.challenge_chooses_count,Ft=Pt.choose_correct_num,Yt=Pt.had_submmit,Jt=Object(E.useCallback)(function(){var fn=[];return fn.length=Nt,Yt&&(fn=Tt.map(function(Zt){return Zt.question_name==="\u5224\u65AD\u9898"?Zt.actual_output==="\u6B63\u786E"?"true":Zt.actual_output==="\u9519\u8BEF"?"false":void 0:Zt.actual_output})),fn},[Ve]),pn=Object(E.useReducer)(wl,{loading:!1,answers:Jt()}),xn=Object(n.a)(pn,2),tn=xn[0],nn=xn[1];Object(E.useEffect)(function(){nn({type:Ze,payload:{answers:Jt()}})},[Ve]);var jt=tn.answers,vn=tn.loading;function nt(fn,Zt){jt[fn]=Zt,nn({type:Ze,payload:{answers:jt}})}function Ht(){for(var fn=!0,Zt=0;Zt<Nt;Zt++){var $t,Qt;if(!jt[Zt]||Array.isArray(jt[Zt])&&!(($t=jt[Zt])!==null&&$t!==void 0&&(Qt=$t.filter(function(mn){return!!mn}))!==null&&Qt!==void 0&&Qt.length)){r.b.info("\u8BF7\u5148\u7ED9\u7B2C".concat(Zt+1,"\u9898\u9009\u62E9\u7B54\u6848\uFF01")),fn=!1;break}}return fn}function rn(){return sn.apply(this,arguments)}function sn(){return sn=Object(l.a)(y.a.mark(function fn(){var Zt,$t;return y.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:if(!Ht()){mn.next=7;break}return nn({type:Te}),mn.next=4,Object(pe.i)(kt.identifier,{answer:jt,challenge_id:Me==null||((Zt=Me.challenge)===null||Zt===void 0)?void 0:Zt.id,subject_id:ot.query.subject_id||"",question_id:ot.query.questionId,exercise_id:ot.query.exercisesId});case 4:$t=mn.sent,tt($t),nn({type:He});case 7:case"end":return mn.stop()}},fn)})),sn.apply(this,arguments)}var bn=Ke?"".concat(Ke-54,"px"):"70%",On="calc(100% - 3px - 51px - ".concat(bn,")");return c.a.createElement(E.Fragment,null,c.a.createElement("div",{className:bi.a["code-area-container"],style:{height:bn}},c.a.createElement(bs,{chooses:ct,answers:jt,onSetAnswers:nt})),c.a.createElement("div",{className:bi.a["resize-y-bar"],onMouseDown:gt,draggable:!1},c.a.createElement("i",{className:"iconfont icon-guangbiao",draggable:!1})),c.a.createElement("div",{className:bi.a["test-set-container"],style:{height:On}},c.a.createElement(Hs,{had_submmit:Yt,moveY:Ke,onResizeSetContainer:Et,test_sets:Tt,challenge_chooses_count:Nt,choose_correct_num:Ft})),c.a.createElement("div",{className:bi.a["action-container"]},c.a.createElement(Is,Object(a.a)({onUpdateCode:bt},Me,{loading:vn,onRun:rn,dispatch:mt}))))},Cl=v("4K8j"),ll=v("popq"),Sl=v("362i"),so=v.n(Sl),Ai=v("VPUa"),Vi=v.n(Ai),Ti=v("0i5U"),ws=v.n(Ti),Al=function(ae){var Me,Ke=ae.star,gt=ae.gold,Et=ae.experience,tt=ae.next_game,Ve=ae.next_shixun,bt=ae.subject_done,mt=ae.onCloseResult,ot=ae.isPictureView,ct=ae.webDisplayUrl,Pt=ae.onShowPictureView,kt=ae.history,Tt=ae.onStarChange;function Nt(){mt(),console.log("`/tasks/${next_game}${location.search}`","/tasks/".concat(tt).concat(Ft.search)),setTimeout(function(){window.location.href="/tasks/".concat(tt).concat(Ft.search)},300)}var Ft=Object(C.h)();return c.a.createElement("div",{className:"evaluate-result-container"},c.a.createElement("div",{className:"evaluate-result-body"},c.a.createElement("a",{className:"close-line",onClick:mt},c.a.createElement("i",{className:"iconfont icon-roundclose",style:{fontSize:"32px"}})),!Ft.query.subject_id&&c.a.createElement("img",{width:652,src:tt||!bt?so.a:Vi.a,alt:"\u901A\u5173"}),Ft.query.subject_id&&c.a.createElement("img",{width:652,src:bt?Vi.a:so.a,alt:"\u901A\u5173"}),c.a.createElement("div",{className:"gold-and-experience"},c.a.createElement("p",{className:"flex-container"},c.a.createElement("span",{className:"gold-circle"})," +",gt),c.a.createElement("p",{className:"flex-container"},c.a.createElement("img",{src:ws.a})," +",Et)),c.a.createElement("footer",null,Ke?null:c.a.createElement(E.Fragment,null,c.a.createElement("p",{className:"star-tip"},"\u60A8\u7684\u8BC4\u4EF7\u51B3\u5B9A\u8001\u5E08\u7684\u6C5F\u6E56\u5730\u4F4D~"),c.a.createElement(Wr.a,{defaultValue:0,allowClear:!1,onChange:Tt})),c.a.createElement("div",{className:"tc"},tt?c.a.createElement("a",{onClick:Nt},"\u4E0B\u4E00\u5173"):c.a.createElement("a",{onClick:mt},"\u5B8C\u6210"),!!Ve&&c.a.createElement("a",{onClick:function(){rr(Ve,null,!1,Ft.query.subject_id)}},"\u8FDB\u5165\u4E0B\u4E00\u4E2A\u5B9E\u8BAD"),ot?c.a.createElement("a",{onClick:function(){Pt(),mt()}},"\u67E5\u770B\u6548\u679C"):null,ct?c.a.createElement("a",{target:"_blank",href:ct},"\u67E5\u770B\u6548\u679C"):null),(Ft==null||((Me=Ft.query)===null||Me===void 0)?void 0:Me.subject_id)&&c.a.createElement("div",{className:"tc mt15"},Ve&&!tt&&"\u5DF2\u901A\u8FC7\u672C\u5B9E\u8BAD\u7684\u6700\u540E\u4E00\u4E2A\u5173\u5361\uFF0C\u53EF\u4EE5\u8FDB\u5165\u4E0B\u4E00\u4E2A\u5B9E\u8BAD\u4E2D\u8FDB\u884C\u5B9E\u6218",bt&&"\u606D\u559C\u60A8\uFF0C\u672C\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u6700\u540E\u4E00\u4E2A\u5B9E\u8BAD\u5DF2\u901A\u5173"))))},Zi=v("bCnd"),Tl=v("ZW9T"),Ds=v("p5ED"),ul=v("RTVd"),Qo=v.n(ul),Ms=v("Tl6Z"),xs=v.n(Ms),cl=function(ae){var Me=ae.content,Ke=ae.language,gt=ae.theme,Et=ae.onCodeChange,tt=ae.onSave,Ve=ae.monacoOptions,bt=ae.isEditPath,mt=ae.hide_code,ot=ae.code_edit_permission,ct=ae.onUpdateCode,Pt=ae.forbidCopy,kt=ae.filename,Tt=ae.file_type,Nt=ae.taskData,Ft=Object(C.i)(),Yt=Object(E.useRef)(),Jt=Object(E.useState)(!0),pn=Object(n.a)(Jt,2),xn=pn[0],tn=pn[1],nn=Object(E.useState)({}),jt=Object(n.a)(nn,2),vn=jt[0],nt=jt[1];console.log("content:",{value:Me,language:Ke,theme:gt,onChange:Et,onSave:tt,forbidCopy:Pt,options:Ve,filename:kt,file_type:Tt}),Object(E.useEffect)(function(){Yt.current=setInterval(function(){ct()},5*60*1e3),window.addEventListener("message",sn);var On=En.a.subscribe("vnc-reseting",Ht),fn=En.a.subscribe("vnc-reseting-done",rn);return function(){On(),fn(),clearInterval(Yt.current),window.removeEventListener("message",sn)}},[]);var Ht=function(){nt({}),tn(!0)},rn=function(fn){nt(fn==null?void 0:fn.data),setTimeout(function(){tn(!1)},1e3)},sn=function(fn){switch(fn.data){case"updatecode":ct(1);break;case"vsLoadingDone":tn(!1);break}console.log("data:",fn)},bn=function(){var On=Object(l.a)(y.a.mark(function fn(){var Zt,$t,Qt,mn,jn,Dn;return y.a.wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return Mn.next=2,Object(on.a)("/api/myshixuns/".concat((Zt=Nt.myshixun)===null||Zt===void 0?void 0:Zt.identifier,"/start.json"),{method:"get",params:Object(e.a)({},Ft)});case 2:if(mn=Mn.sent,!(mn!=null&&($t=mn.data)!==null&&$t!==void 0&&(Qt=$t.data_list)!==null&&Qt!==void 0&&Qt.length)){Mn.next=6;break}return En.a.publish("pod-restrict-data",{identifier:mn==null||((jn=mn.data)===null||jn===void 0)?void 0:jn.identifier,data_list:mn==null||((Dn=mn.data)===null||Dn===void 0)?void 0:Dn.data_list}),Mn.abrupt("return");case 6:if(!((mn==null?void 0:mn.status)===-3)){Mn.next=8;break}return Mn.abrupt("return",new Promise(function(){var ir=Object(l.a)(y.a.mark(function sr(er,qn){return y.a.wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:u.a.confirm({content:"\u68C0\u6D4B\u5230\u60A8\u5DF2\u7ECF\u5F00\u542F\u4E86\u5176\u4ED6\u5B9E\u9A8C\u73AF\u5883\uFF0C\u8BF7\u5148\u5173\u95ED\u73AF\u5883\u540E\uFF0C\u518D\u8FDE\u63A5",okText:"\u7ACB\u5373\u5173\u95ED",cancelText:"\u7A0D\u540E\u5173\u95ED",onOk:function(){var Fr=Object(l.a)(y.a.mark(function lr(){return y.a.wrap(function(ja){for(;;)switch(ja.prev=ja.next){case 0:return clearTimeout(timeout.current),setPercent(0),ja.next=4,closeWindowsVnc(Ft.taskId,mn==null?void 0:mn.message);case 4:return setLinkNum(linkNum+1),ja.abrupt("return");case 6:case"end":return ja.stop()}},lr)}));function Gr(){return Fr.apply(this,arguments)}return Gr}()});case 1:case"end":return Vn.stop()}},sr)}));return function(sr,er){return ir.apply(this,arguments)}}()));case 8:if(!((mn==null?void 0:mn.status)===-1)){Mn.next=10;break}throw new String(mn==null?void 0:mn.message);case 10:return nt(mn==null?void 0:mn.data),En.a.publish("update-windows-time",mn==null?void 0:mn.data),Mn.abrupt("return",mn);case 13:case"end":return Mn.stop()}},fn)}));return function(){return On.apply(this,arguments)}}();return Object(E.useEffect)(function(){mt===2&&bn()},[mt]),c.a.createElement(E.Fragment,null,c.a.createElement("div",{className:"monaco-editor-container h100"},mt!==2&&c.a.createElement(c.a.Fragment,null,bt||ot?null:c.a.createElement("img",{className:Qo.a["only-view"],src:xs.a,alt:"only-view"}),c.a.createElement(Ds.a,{filename:kt,type:Tt==="office"?"download":Tt,data:Me,style:{top:40,position:"absolute",zIndex:1},monacoEditor:{value:Me,language:Ke,theme:gt,onChange:Et,onSave:tt,forbidCopy:Pt,options:Ve,insertSpaces:Ve.insertSpaces}})),mt===2&&c.a.createElement(g.a,{spinning:xn,wrapperClassName:Qo.a.frame},c.a.createElement("iframe",{src:vn==null?void 0:vn.link_url}))))},Ns=v("b1fT"),Xr=v.n(Ns),Oa=v("je13"),Oi=/<link(?:.*?)href=[\"\'](.+?)[\"\'](?!<)(?:.*)\>(?:[\n\r\s]*?)(?:<\/link>)*/im,qi=/<script(?:.*?)src=[\"\'](.+?)[\"\'](?!<)(?:.*)\>(?:[\n\r\s]*?)(?:<\/script>)*/im,ts=["http","com","net","org","cdn"];function Po(ae){for(var Me=!1,Ke=0;Ke<ts.length;Ke++)if(ae.indexOf(ts[Ke])!==-1){Me=!0;break}return Me}var ds=3e3,Jo=function(ae){var Me=ae.code,Ke=Me===void 0?"":Me,gt=ae.isActive,Et=ae.myshixunIdentifier,tt=ae.lastedUpdateTime,Ve=ae.onFinishDisplayHtml,bt=Object(E.useState)(0),mt=Object(n.a)(bt,2),ot=mt[0],ct=mt[1],Pt=Object(C.i)(),kt=Object(E.useRef)(),Tt=Object(E.useRef)(),Nt="".concat(yr.a,"/api/myshixuns/").concat(Et,"/html_content.html"),Ft=Object(E.useMemo)(function(){var Yt=[],Jt=[],pn=[],xn=[],tn=document.createElement("iframe");tn.style.width="100%",tn.style.height="100%",tn.style.border="0";try{kt.current.innerHTML="",kt.current.appendChild(tn)}catch(Zt){}var nn=Ke,jt=document.createElement("div");jt.innerHTML=Ke,Ke.replace(/<link [^>]*href=['"]([^'"]+)[^>]*>/gi,function(Zt,$t){Jt.push($t.indexOf("http")>-1?$t:"https://data.educoder.net/api/sources/get_html_content.html?content_type=text/css&identifier="+Pt.taskId+"&path="+$t);var Qt=$t.indexOf("http")>-1?$t:'<link href="https://data.educoder.net/api/sources/get_html_content.html?content_type=text/css&identifier='+Pt.taskId+"&path="+$t+'" alt="" />';return Qt}),Ke.replace(/<script [^>]*src=['"]([^'"]+)[^>]*>/gi,function(Zt,$t){Yt.push($t.indexOf("http")>-1?$t:"https://data.educoder.net/api/sources/get_html_content.html?content_type=application/javascript&identifier="+Pt.taskId+"&path="+$t);var Qt=$t.indexOf("http")>-1?$t:'<link href="https://data.educoder.net/api/sources/get_html_content.html?content_type=text/css&identifier='+Pt.taskId+"&path="+$t+'" alt="" />';return Qt}),Ke=Ke.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi,function(Zt,$t){var Qt=$t.indexOf("http")>-1?Zt:Zt.replace($t,"https://data.educoder.net/api/sources/get_html_content?content_type=application/octet-stream&identifier="+Pt.taskId+"&path="+$t);return Qt}),Ke=Ke.replace(/<video [^>]*src=['"]([^'"]+)[^>]*>/gi,function(Zt,$t){var Qt=$t.indexOf("http")>-1?Zt:'<video src="https://data.educoder.net/api/sources/get_html_content?content_type=application/octet-stream&identifier='+Pt.taskId+"&path="+$t+'" alt="" />';return Qt}),Ke.replace(/<script.*?>([\s\S]+?)<\/script>/gim,function(Zt,$t){pn.push($t)}),Ke.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Zt,$t){xn.push($t)});for(var vn=[],nt=[],Ht=Oi.exec(nn),rn=qi.exec(nn);Ht;){var sn=Ht[0],bn=Ht[1];Po(bn)?nn=nn.replace(sn,sn.replace(/link/,"edulink")):(vn.push(bn),nn=nn.replace(Oi,"EDUCODERCSS")),Ht=Oi.exec(nn)}for(;rn;){var On=rn[0],fn=rn[1];Po(fn)?nn=nn.replace(On,On.replace(/script/g,"w3scrw3ipttag")):(nt.push(fn),nn=nn.replace(qi,"EDUCODERJS")),rn=qi.exec(nn)}try{tn.contentWindow.document.write(jt.innerHTML),Jt.map(function(Zt){var $t=document.createElement("link");$t.setAttribute("rel","stylesheet"),$t.href=Zt,tn.contentWindow.document.body.appendChild($t)}),xn.map(function(Zt){var $t=document.createElement("style");$t.innerHTML=Zt,tn.contentWindow.document.body.appendChild($t)}),setTimeout(function(){},6e3)}catch(Zt){Ke!=""&&!!Ke&&setTimeout(function(){ct(new Date().getTime())},1e3)}return{content:nn,css:vn,script:nt}},[Ke,ot]);return Object(E.useEffect)(function(){Ke!=""&&!!Ke&&ct(ot+1)},[gt]),Object(Fi.a)(function(){var Yt=new Date().getTime();gt&&Tt.current&&tt&&Yt>tt+ds},ds),Object(E.useEffect)(function(){Tt.current&&Ft&&Ft.content},[Tt.current,Ft,Nt]),c.a.createElement("div",{className:"html-code-view",style:{display:gt?"block":"none",width:"100%",height:"100%"}},c.a.createElement("form",{ref:Tt,method:"post",target:"my-frame"},c.a.createElement("input",{type:"hidden",name:"contents",value:Ft.content}),c.a.createElement("input",{type:"hidden",name:"educodercss",value:Ft.css}),c.a.createElement("input",{type:"hidden",name:"educoderscript",value:Ft.script})),c.a.createElement("div",{id:"iframe",ref:kt,style:{background:"#fff",height:"100%",width:"100%"}}))},Ya=v("ZBwS"),Cs=v.n(Ya),Ws=v("Vbye"),jo=v.n(Ws),$i=new Cs.a;$i.Diff_EditCost=8;var Ma={oldStr:"",newStr:""};function Ro(ae,Me){switch(Me.type){case"init":return Object(e.a)(Object(e.a)({},ae),Me.payload);default:throw new Error}}function Uo(ae,Me){var Ke=/&/g,gt=/</g,Et=/>/g,tt=ae[0],Ve=ae[1]||"",bt=Ve.replace(Ke,"&amp;").replace(gt,"&lt;").replace(Et,"&gt;"),mt=!bt.trim();bt=bt=="\r"?"\u21B5":bt;var ot=bt=="\u21B5"?" ":bt,ct="".concat(mt?jo.a.empty:""," ").concat(bt==="\u21B5"?jo.a.enter:""),Pt="".concat(bt==="\u21B5"?jo.a.enter:"");if(Me==="oldStr"){console.log("type:",Me,Ya.DIFF_DELETE,Ya.DIFF_EQUAL,tt,bt);switch(tt){case Ya.DIFF_DELETE:return'<span class="'.concat(jo.a.block,'"><ins class="').concat(ct,'">')+ot+"</ins></span>";case Ya.DIFF_EQUAL:return'<span class="'.concat(Pt,'">')+ot+"</span>"}}else switch(tt){case Ya.DIFF_INSERT:return'<span class="'.concat(jo.a.block,'"><del class="').concat(ct,'">')+ot+"</del></span>";case Ya.DIFF_EQUAL:return'<span class="'.concat(Pt,'">')+ot+"</span>"}}var Bo=function(ae){var Me,Ke,gt=ae.output,Et=ae.actual_output,tt=Object(E.useReducer)(Ro,Ma),Ve=Object(n.a)(tt,2),bt=Ve[0],mt=Ve[1];return gt=(Me=gt)===null||Me===void 0?void 0:Me.replace(/\n/g,"\r").replace(/\u0020/g," ").replace(/\u0000/g,"\\u0000"),Et=(Ke=Et)===null||Ke===void 0?void 0:Ke.replace(/\n/g,"\r").replace(/\u0020/g," ").replace(/\u0000/g,"\\u0000"),Object(E.useEffect)(function(){var ot=$i.diff_main(gt||"",Et||"");$i.diff_cleanupEfficiency(ot);var ct=ot.map(function(kt){return Uo(kt,"oldStr")}).join(""),Pt=ot.map(function(kt){return Uo(kt,"newStr")}).join("");mt({type:"init",payload:{oldStr:ct,newStr:Pt}})},[gt,Et]),c.a.createElement("div",{className:jo.a["diff-panel-container"]},c.a.createElement("div",{dangerouslySetInnerHTML:{__html:bt.oldStr}}),c.a.createElement("div",{dangerouslySetInnerHTML:{__html:bt.newStr}}))},Ss=new Cs.a;Ss.Diff_EditCost=8;var Ls={oldStr:"",newStr:""};function dl(ae,Me){switch(Me.type){case"init":return Object(e.a)(Object(e.a)({},ae),Me.payload);default:throw new Error}}function Xs(ae,Me){var Ke=/&/g,gt=/</g,Et=/>/g,tt=ae[0],Ve=ae[1]||"",bt=Ve.replace(Ke,"&amp;").replace(gt,"&lt;").replace(Et,"&gt;"),mt=!bt.trim();if(Me==="oldStr")switch(tt){case Ya.DIFF_DELETE:return"<ins class=".concat(mt?"empty":"",">")+bt+"</ins>";case Ya.DIFF_EQUAL:return"<span>"+bt+"</span>"}else switch(tt){case Ya.DIFF_INSERT:return"<del class=".concat(mt?"empty":"",">")+bt+"</del>";case Ya.DIFF_EQUAL:return"<span>"+bt+"</span>"}}var ns=function(ae){var Me,Ke,gt=ae.output,Et=ae.actual_output,tt=ae.onClick,Ve=Object(E.useReducer)(dl,Ls),bt=Object(n.a)(Ve,2),mt=bt[0],ot=bt[1];return gt=(Me=gt)===null||Me===void 0?void 0:Me.replace(/\n/g,"\r"),Et=(Ke=Et)===null||Ke===void 0?void 0:Ke.replace(/\n/g,"\r"),Object(E.useEffect)(function(){var ct=Ss.diff_main(gt||"",Et||"");Ss.diff_cleanupEfficiency(ct);var Pt=ct.map(function(Tt){return Xs(Tt,"oldStr")}).join(""),kt=ct.map(function(Tt){return Xs(Tt,"newStr")}).join("");ot({type:"init",payload:{oldStr:Pt,newStr:kt}})},[gt,Et]),c.a.createElement("div",{className:"c-white ".concat(jo.a["diff-panel-container"]," ").concat(jo.a["diff-panel-container-2"]," ").concat(tt?"current":""," "),onClick:function(){return tt==null?void 0:tt()}},c.a.createElement("div",{dangerouslySetInnerHTML:{__html:mt.oldStr}}))},Ps=v("J66h"),Bl=function(ae){var Me=ae.sshConfigData,Ke=ae.tpId,gt=Object(E.useState)([]),Et=Object(n.a)(gt,2),tt=Et[0],Ve=Et[1],bt=Me.link_url,mt=Me.port,ot=Object(E.useRef)(),ct=Object(E.useRef)(),Pt=Object(E.useRef)(),kt=Object(E.useRef)(),Tt=Object(E.useRef)(!1),Nt=function(xn){console.log("insertData:",xn),tt.push(xn),Ve(Object(w.a)(tt))};function Ft(){Pt.current=new WebSocket(bt),ot.current=Pt.current,Pt.current.onopen=function(){Pt.current.send(JSON.stringify({tp:"log",data:Ke}))},Pt.current.onerror=function(pn){console.log("------in socket error----",pn,Pt.current,bt)},Pt.current.onmessage=function(pn){!Tt.current,Tt.current=!0;var xn=Ps.Base64.decode(pn.data.toString());xn==="ProcessFinished"?(Yt(),setTimeout(function(){En.a.publish("runCodeFinish")},1e3)):ct.current||Nt(xn)},Pt.current.onclose=function(pn){console.log("socket\u5173\u95ED\u94FE\u63A5",pn)},Pt.current.ondisconnect=function(pn){console.log("socket-disconnect:",pn)}}var Yt=function(){ct.current=!0,Ve(Object(w.a)(tt))};Object(E.useEffect)(function(){var pn=En.a.subscribe("runCode",function(xn){Pt.current=void 0,console.log("lastedUpdateTime-runCode",En.a,En.a.channels),xn.type==="start"?(ct.current=!1,tt=[],Ve([]),Ft()):Yt()});return function(){pn(),ot.current&&(ot.current.close(),console.log("socket\u94FE\u63A5\u4E3B\u52A8\u5173\u95ED"),Tt.current=!1)}},[]),Object(E.useEffect)(function(){kt.current.scrollIntoView({behavior:"smooth",block:"end"})},[tt]);var Jt=Object(E.useCallback)(function(){var pn;return c.a.createElement("pre",{className:"font14 ml20 mr20"},(pn=tt)===null||pn===void 0?void 0:pn.join(`
`))},[tt]);return c.a.createElement("div",{className:"xterm-panel pb10",ref:kt,style:{fontFamily:"monospace"}},tt==""&&!ct.current&&c.a.createElement(Di.a,null),Jt())};function fl(ae){var Me,Ke,gt=ae.last_compile_output,Et=ae.language,tt=ae.ts_mem,Ve=ae.ts_time,bt=ae.input,mt=ae.output,ot=ae.is_invisible,ct=ae.actual_output,Pt=ae.is_file,kt=ae.input_file_url,Tt=ae.output_file_url,Nt=ae.is_public,Ft=ae.result,Yt=ae.compile_success,Jt=ae.title,pn=ae.isActive,xn=ae.id,tn=ae.onActive,nn=ae.test_sets_view,jt=ae.allowed_unlock,vn=ae.identity,nt=ae.taskData,Ht=ae.setData,rn=ae.setMonacoValue,sn=Object(E.useState)(!1),bn=Object(n.a)(sn,2),On=bn[0],fn=bn[1],Zt=mt;Pt&&(nt==null||((Me=nt.user)===null||Me===void 0)?void 0:Me.identity)<5&&(ot=!1),ot&&(nt==null||((Ke=nt.user)===null||Ke===void 0)?void 0:Ke.identity)>=5&&(mt="\u8BE5\u9884\u671F\u8F93\u51FA\u4E0D\u53EF\u67E5\u770B");function $t(){Nt||nn||vn<=5?tn(xn):jt?En.a.publish("unlock-test-case",xn):r.b.info("\u672C\u6D4B\u8BD5\u96C6\u4E0D\u53EF\u89E3\u9501")}var Qt=Xr.a["test-case-item"];return pn&&(Qt+=" active"),gt&&(Qt+=" ".concat(Xr.a["has-result"])),c.a.createElement("li",{className:Qt},c.a.createElement("a",{className:Xr.a["case-header"],onClick:$t},c.a.createElement("h2",null,c.a.createElement("div",{className:pn?Xr.a["arrow-down"]:Xr.a["arrow-right"]}),c.a.createElement("span",{className:Xr.a["test-title"]},Jt)),c.a.createElement("div",{className:Xr.a["case-info"]},tt?c.a.createElement("span",{className:Xr.a.description},"\u6D88\u8017\u5185\u5B58",tt,"MB"):null,Ve?c.a.createElement("span",{className:Xr.a.description}," ","\u4EE3\u7801\u6267\u884C\u65F6\u957F\uFF1A",Ve,"\u79D2"," "):null,Nt?null:nn||vn<=5?c.a.createElement("i",{className:"iconfont icon-jiesuo"}):c.a.createElement("i",{className:"iconfont icon-suo1"}),Yt>0?c.a.createElement("img",{width:16,src:Ft?So.a:Vo.a}):null)),c.a.createElement("div",{className:"".concat(Xr.a["item-desc"]," ").concat(pn?"show":"hide"," ").concat(Xr.a["choose-game-item"])},bt?c.a.createElement(_i.a,null,c.a.createElement(pr.a,{flex:"80px"},"\u6D4B\u8BD5\u8F93\u5165\uFF1A"),c.a.createElement(pr.a,{flex:"1",style:{color:"#fff"}},c.a.createElement(ns,{onClick:Object(l.a)(y.a.mark(function mn(){var jn;return y.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:if(!Pt){Xt.next=12;break}return Xt.next=3,fetch(kt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});case 3:if(jn=Xt.sent,!(jn.status===-1)){Xt.next=6;break}return Xt.abrupt("return");case 6:return Xt.t0=rn,Xt.next=9,jn.text();case 9:Xt.t1=Xt.sent,(0,Xt.t0)(Xt.t1),setTimeout(function(){Ht(kt)},200);case 12:case"end":return Xt.stop()}},mn)})),output:bt}))):null,c.a.createElement("p",{className:Xr.a["output-title-container"]},c.a.createElement("span",null,"\u2014\u2014 \u9884\u671F\u8F93\u51FA \u2014\u2014"),c.a.createElement("span",{className:Xr.a["output-title"]},c.a.createElement("span",null,"\u2014\u2014 \u5B9E\u9645\u8F93\u51FA \u2014\u2014"),!Pt&&c.a.createElement("span",{className:"c-blue current",onClick:function(){return fn(!On)}},On?"\u5C55\u793A\u683C\u5F0F\u5316\u8F93\u51FA":"\u5C55\u793A\u539F\u59CB\u8F93\u51FA"))),Pt&&c.a.createElement("div",{class:Xr.a["diff-panel-container"]},c.a.createElement("div",{className:"tc"},ot?c.a.createElement("span",{style:{color:"#2ea44f"}},mt):c.a.createElement("a",{class:"underline",onClick:Object(l.a)(y.a.mark(function mn(){var jn;return y.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return Xt.next=2,fetch(Tt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});case 2:if(jn=Xt.sent,!(jn.status===-1)){Xt.next=5;break}return Xt.abrupt("return");case 5:return Xt.t0=rn,Xt.next=8,jn.text();case 8:Xt.t1=Xt.sent,(0,Xt.t0)(Xt.t1),setTimeout(function(){Ht(Tt)},200);case 11:case"end":return Xt.stop()}},mn)}))},mt)),c.a.createElement("div",{className:"tc"},Yt?c.a.createElement("a",{class:"underline",onClick:Object(l.a)(y.a.mark(function mn(){var jn;return y.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return Xt.next=2,Object(on.a)(ct,{method:"Get",headers:{"Content-Type":"application/xml",Accept:"*/*"}});case 2:if(jn=Xt.sent,!(jn.status===-1)){Xt.next=5;break}return Xt.abrupt("return");case 5:rn(jn),setTimeout(function(){Ht(ct)},200);case 7:case"end":return Xt.stop()}},mn)}))},Zt):ct)),!Pt&&!On&&c.a.createElement(Bo,{output:mt,actual_output:ct}),!Pt&&On&&c.a.createElement("div",{class:Xr.a["diff-panel-container"]},c.a.createElement("div",{className:""},mt),c.a.createElement("div",{className:""},ct))))}var fs=function(ae){var Me,Ke,gt=ae.onResizeSetContainer,Et=ae.moveY,tt=ae.taskData,Ve=ae.isHtml,bt=ae.lastedUpdateTime,mt=ae.content,ot=ae.myshixunIdentifier,ct=ae.test_sets_view,Pt=ae.identity,kt=ae.language,Tt=ae.allowed_unlock,Nt=ae.test_sets,Ft=Nt===void 0?[]:Nt,Yt=ae.test_sets_count,Jt=ae.sets_error_count,pn=ae.last_compile_output,xn=ae.onFinishDisplayHtml,tn=Object(E.useState)(-1),nn=Object(n.a)(tn,2),jt=nn[0],vn=nn[1],nt=Object(E.useState)(""),Ht=Object(n.a)(nt,2),rn=Ht[0],sn=Ht[1],bn=Object(E.useState)(""),On=Object(n.a)(bn,2),fn=On[0],Zt=On[1],$t=Object(E.useState)(Ve?0:1),Qt=Object(n.a)($t,2),mn=Qt[0],jn=Qt[1],Dn=Object(E.useState)(!1),Xt=Object(n.a)(Dn,2),Mn=Xt[0],ir=Xt[1];Object(E.useEffect)(function(){var Vn,Fr=En.a.subscribe("showRunCodeTab",function(lr){ir(lr)}),Gr=En.a.subscribe("runCode",function(){jn(2)});return En.a.publish("caseInputValue",Ft==null||((Vn=Ft[0])===null||Vn===void 0)?void 0:Vn.input),function(){Fr(),Gr()}},[]);function sr(Vn){vn(Vn===jt?-1:Vn)}function er(){gt(Et)}function qn(Vn){jn(parseInt(Vn.target.id,10))}var an={code:mt,isActive:mn===0&&Ve,myshixunIdentifier:ot,onFinishDisplayHtml:xn,lastedUpdateTime:bt};return c.a.createElement(E.Fragment,null,c.a.createElement(Ds.a,{close:!0,data:rn,type:rn.length?"txt":"",onClose:function(){return sn("")},monacoEditor:{value:fn,language:"txt",onChange:function(){},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}}}),c.a.createElement("div",{className:"test-header"},c.a.createElement("div",{className:"flex-container"},Ve?c.a.createElement("span",{id:0,onClick:qn,className:mn===0?"active":""},"\u6548\u679C\u663E\u793A"):null,c.a.createElement("span",{id:1,onClick:qn,className:mn===1?"active":""},"\u6D4B\u8BD5\u7ED3\u679C"),!!Mn&&c.a.createElement("span",{id:2,onClick:qn,className:mn===2?"active":""},"\u81EA\u6D4B\u8FD0\u884C\u7ED3\u679C")),c.a.createElement("a",{onClick:er},c.a.createElement("i",{className:"iconfont ".concat(Et===.01?"icon-shousuo":"icon-zhankai"," icon-zhankai")}))),c.a.createElement("section",{className:"test-case-run-wrp",style:{display:mn===2?"flex":"none",flex:1,flexDirection:"column",overflow:"auto",paddingLeft:20}},c.a.createElement(_i.a,{className:"test-case-run-header"},c.a.createElement(pr.a,{flex:"200px"},"- \u81EA\u6D4B\u8F93\u5165 -"),c.a.createElement(pr.a,{flex:"1"},c.a.createElement("span",{className:"ml12"},"- \u8FD0\u884C\u7ED3\u679C -"))),c.a.createElement(_i.a,{className:"h100 mr10 mb10"},c.a.createElement(pr.a,{flex:"200px"},c.a.createElement(gr.a.TextArea,{defaultValue:Ft==null||((Me=Ft[0])===null||Me===void 0)?void 0:Me.input,style:{height:"calc(100% - 15px)"},onChange:function(Fr){En.a.publish("caseInputValue",Fr.target.value)}})),c.a.createElement(pr.a,{flex:"1"},c.a.createElement("div",{style:{flex:1,position:"absolute",width:"100%",height:"100%",overflow:"auto"}},c.a.createElement(Bl,{sshConfigData:{link_url:"".concat(tt==null?void 0:tt.wss_url,"/log")},tpId:tt==null||((Ke=tt.myshixun)===null||Ke===void 0)?void 0:Ke.id,sid:1}))))),c.a.createElement("section",{style:{display:mn===1?"block":"none",flex:1}},pn?c.a.createElement("p",{className:"test-result ".concat(Jt===0?"success":"failer")},c.a.createElement("span",{className:"count"},c.a.createElement("img",{width:16,src:Jt===0?So.a:bo.a}),Yt-Jt,"/",Yt),Jt==0?c.a.createElement("span",{className:"count"},"\u5168\u90E8\u901A\u8FC7"):c.a.createElement("div",{dangerouslySetInnerHTML:{__html:pn}})):null,c.a.createElement("ul",{className:"test-case-list"},Ft.map(function(Vn,Fr){return c.a.createElement(fl,Object(a.a)({setData:sn,setMonacoValue:Zt,allowed_unlock:Tt,identity:Pt,key:"item"+Fr,test_sets_view:ct,language:kt,last_compile_output:pn,title:"\u6D4B\u8BD5\u96C6".concat(Fr+1)},Vn,{isActive:jt===Fr,id:Fr,taskData:tt,onActive:sr}))}))),Ve?c.a.createElement(Jo,an):null)};function Kl(ae){var Me=ae.isLarge,Ke=ae.language,gt=ae.test_sets,Et=gt===void 0?[]:gt,tt=ae.test_sets_count,Ve=ae.allowed_unlock,bt=ae.sets_error_count,mt=ae.last_compile_output,ot=ae.test_sets_view,ct=ae.identity,Pt=ae.onResizeSet,kt=Object(E.useState)(-1),Tt=Object(n.a)(kt,2),Nt=Tt[0],Ft=Tt[1];function Yt(Jt){Ft(Jt===Nt?-1:Jt)}return c.a.createElement(E.Fragment,null,c.a.createElement("div",{className:"test-header"},c.a.createElement("span",{className:"active"},"\u6D4B\u8BD5\u7ED3\u679C"),c.a.createElement("a",{onClick:Pt},c.a.createElement("i",{className:"iconfont ".concat(Me?"icon-shousuo":"icon-zhankai"," icon-zhankai")}))),mt?c.a.createElement("p",{className:"test-result ".concat(bt===0?"success":"failer")},c.a.createElement("span",{className:"count"},c.a.createElement("img",{width:16,src:bt===0?So.a:bo.a}),tt-bt,"/",tt),bt==0?c.a.createElement("span",null,"\u5168\u90E8\u901A\u8FC7"):c.a.createElement("div",{dangerouslySetInnerHTML:{__html:mt}})):null,c.a.createElement("ul",{className:"test-case-list"},Et.map(function(Jt,pn){return c.a.createElement(fl,Object(a.a)({allowed_unlock:Ve,identity:ct,test_sets_view:ot,key:"item"+pn,language:Ke,last_compile_output:mt,title:"\u6D4B\u8BD5\u96C6".concat(pn+1)},Jt,{isActive:Nt===pn,id:pn,onActive:Yt}))})))}var _u=v("Lmeb"),gu=v("qZJd"),hl=function(ae){var Me=ae.taskData,Ke=ae.evaluateLoading,gt=ae.evaluateMessage,Et=ae.language,tt=ae.onEval,Ve=Me.vnc_url,bt=Me.shixun,mt=Me.test_sets,ot=Me.test_sets_count,ct=Me.sets_error_count,Pt=Me.last_compile_output,kt=Me.game,Tt=Me.allowed_unlock,Nt=Me.user,Ft=Object(E.useState)(!1),Yt=Object(n.a)(Ft,2),Jt=Yt[0],pn=Yt[1],xn=Object(E.useState)(!1),tn=Object(n.a)(xn,2),nn=tn[0],jt=tn[1];function vn(){pn(!Jt)}function nt(){jt(!nn)}var Ht={isLarge:Jt,language:Et,test_sets:mt,test_sets_count:ot,sets_error_count:ct,last_compile_output:Pt,allowed_unlock:Tt,test_sets_view:kt.test_sets_view,identity:Nt.identity,onResizeSet:vn};function rn(){jt(!0),tt()}function sn(){jt(!nn)}return c.a.createElement(E.Fragment,null,c.a.createElement(gu.a,{vnc_url:Ve,window_vnc_url:Me.windows_vnc,virtual_machine:Me==null?void 0:Me.virtual_machine,linux_vnc:Me.linux_vnc,taskData:Me}),nn?c.a.createElement("div",{className:"vnc-mask"}):null,c.a.createElement("div",{className:"vnc-test-list ".concat(Jt?"large":nn?"pop":"")},c.a.createElement("div",{className:"vnc-test-list-body"},Jt?null:c.a.createElement("span",{className:"arrow-container",onClick:nt},c.a.createElement("i",{className:"iconfont ".concat(nn?"icon-xiajiantou":"icon-shangjiantou"," ")})),Ke?c.a.createElement(Di.a,{message:gt,style:{color:"#0152d9"}}):c.a.createElement(Kl,Ht))))},Ol=v("z7Xi"),Hl=v("NFKh"),zs=v.n(Hl),Wl=v("7Cbv"),vu=v("mxV5"),bu=v.n(vu),pl=v("taB1"),Xl=v.n(pl),yu=function(Me){var Ke="bf3c199c2470cb477d907b1e0917c17b",gt="5183666c72eec9e4",Et=zs.a.enc.Utf8.parse(Ke),tt=zs.a.enc.Utf8.parse(gt),Ve=zs.a.AES.decrypt(Me,Et,{iv:tt,mode:zs.a.mode.CBC});return Ve.toString(zs.a.enc.Utf8)},zu,zl=function(Me){var Ke=Me.user,gt=Me.cancelUpload,Et=Me.defaultFilelist,tt=Me.getData,Ve=Object(s.a)(Me,["user","cancelUpload","defaultFilelist","getData"]),bt=Object(E.useState)([]),mt=Object(n.a)(bt,2),ot=mt[0],ct=mt[1],Pt=Object(E.useState)(""),kt=Object(n.a)(Pt,2),Tt=kt[0],Nt=kt[1],Ft=Object(E.useState)(),Yt=Object(n.a)(Ft,2),Jt=Yt[0],pn=Yt[1];Object(E.useEffect)(function(){Et&&ct(Object(w.a)(Et))},[Et]);var xn={onPreview:function(vn){Nt(vn.download_url)},onRemove:function(){var jt=Object(l.a)(y.a.mark(function nt(Ht){var rn;return y.a.wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:return bn.next=2,Object(on.a)("/api/tasks/".concat(Ve.identifier,"/destroy_attachment"),{method:"delete",body:{id:Ht.id}});case 2:rn=bn.sent,tt(),ct(Object(w.a)(ot.filter(function(On){return On.name!==Ht.name}))),Ve.onChange(ot.filter(function(On){return On.name!==Ht.name}));case 6:case"end":return bn.stop()}},nt)}));function vn(nt){return jt.apply(this,arguments)}return vn}(),disabled:Ve.disabled,multiple:!0,fileList:ot,customRequest:function(){var jt=Object(l.a)(y.a.mark(function nt(Ht){var rn,sn,bn,On;return y.a.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:debugger;return Zt.next=3,tn(Ht.file,{login:Ke==null||((rn=Ke.userInfo)===null||rn===void 0)?void 0:rn.login,container_type:Ve.container_type,container_id:Ve.identifier,description:Ve.description,realFileName:Ve.realFileName});case 3:On=Zt.sent,Ht.onSuccess({file:Ht.file,uid:On==null||((sn=On.data)===null||sn===void 0)?void 0:sn.attachment_id,id:On==null||((bn=On.data)===null||bn===void 0)?void 0:bn.attachment_id});case 5:case"end":return Zt.stop()}},nt)}));function vn(nt){return jt.apply(this,arguments)}return vn}(),beforeUpload:function(){var jt=Object(l.a)(y.a.mark(function nt(Ht){return y.a.wrap(function(sn){for(;;)switch(sn.prev=sn.next){case 0:case"end":return sn.stop()}},nt)}));function vn(nt){return jt.apply(this,arguments)}return vn}()},tn=function(){var jt=Object(l.a)(y.a.mark(function vn(nt,Ht){var rn,sn,bn,On,fn,Zt,$t,Qt,mn,jn;return y.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return Ht.file_name=nt.name,$t=nt.name,Xt.next=4,Object(on.a)("/api/buckets/get_upload_token_for_file.json",{method:"get"});case 4:if(Qt=Xt.sent,Qt.data=JSON.parse(yu(Qt.data)),!((Qt==null?void 0:Qt.status)!==0)){Xt.next=12;break}return ot[ot.findIndex(function(Mn){return Mn.name===$t})].status="error",ot[ot.findIndex(function(Mn){return Mn.name===$t})].file.status="error",Ve.onChange(ot),r.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Xt.abrupt("return");case 12:return Jt=new bu.a({endpoint:Qt==null||((rn=Qt.data)===null||rn===void 0)?void 0:rn.end_point,region:Qt==null||((sn=Qt.data)===null||sn===void 0)?void 0:sn.region,accessKeyId:Qt==null||((bn=Qt.data)===null||bn===void 0)?void 0:bn.access_key_id,accessKeySecret:Qt==null||((On=Qt.data)===null||On===void 0)?void 0:On.access_key_secret,bucket:Qt==null||((fn=Qt.data)===null||fn===void 0)?void 0:fn.bucket,stsToken:Qt==null||((Zt=Qt.data)===null||Zt===void 0)?void 0:Zt.security_token}),console.log("files:",nt,Qt),pn(Jt),mn=nt.name.split("."),mn.pop(),jn=Ht.realFileName?mn:Object(Wl.a)(),console.log("obj1111:",Ht),Xt.abrupt("return",new Promise(function(Mn,ir){var sr;Jt.multipartUpload("".concat(Ve.identifier,"/").concat(jn.join("")).concat($t.indexOf(".")>-1?"."+$t.split(".").pop():""),new Blob([nt],{type:nt.type}),{timeout:3600*1e3,partSize:1002400,progress:function(qn,an,Vn){try{console.log("\u8FDB\u5EA6",qn,an,Vn);var Fr=ot.findIndex(function(Gr){return Gr.name===$t});ot[Fr].file.percent=qn*100,qn===1&&(ot[Fr].status="done",ot[Fr].file.status="done",Ve.onChange(ot)),ot[Fr].tempCheckpoint=an,ct(Object(w.a)(ot))}catch(Gr){}},callback:{customValue:{id:$t+""},url:Qt==null||((sr=Qt.data)===null||sr===void 0)?void 0:sr.callback_url,host:Qt==null?void 0:Qt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(on.e)(Ht)}}).then(function(er){var qn,an="done";if(((qn=er.data)===null||qn===void 0?void 0:qn.status)===0)tt();else{var Vn;r.b.warn((Vn=er.data)===null||Vn===void 0?void 0:Vn.message),an="error"}Ve.onChange(ot),Mn(er==null?void 0:er.data)}).catch(function(er){ir(er),console.log("err:",er)})}));case 20:case"end":return Xt.stop()}},vn)}));return function(nt,Ht){return jt.apply(this,arguments)}}();Object(E.useEffect)(function(){ot.every(function(jt){return jt==="done"||jt==="error"})&&Ve.onComplete(ot),console.log("fileList:",ot)},[ot]),Object(E.useEffect)(function(){if(gt){var jt;(jt=Jt)===null||jt===void 0||jt.cancel()}},[gt]);var nn=function(){var jt=Object(l.a)(y.a.mark(function vn(){return y.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:ot.map(function(){var rn=Object(l.a)(y.a.mark(function sn(bn){var On,fn;return y.a.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:if(!((!bn.status||bn.status==="error")&&!gt)){$t.next=6;break}return bn.status="uploading",bn.file.status="uploading",$t.next=5,tn(bn,{login:Ke==null||((On=Ke.userInfo)===null||On===void 0)?void 0:On.login,container_type:Ve.container_type,container_id:Ve.identifier,description:Ve.description,realFileName:Ve.realFileName});case 5:fn=$t.sent;case 6:case"end":return $t.stop()}},sn)}));return function(sn){return rn.apply(this,arguments)}}());case 1:case"end":return Ht.stop()}},vn)}));return function(){return jt.apply(this,arguments)}}();return c.a.createElement("div",{className:Xl.a.files},c.a.createElement(Ds.a,{close:!0,data:encodeURIComponent(Tt),type:Tt!=null&&Tt.length?"office":"",onClose:function(){return Nt("")}}),c.a.createElement(_a.a,xn,c.a.createElement(Ka.a,{icon:c.a.createElement(Ol.a,null),type:"primary"},"\u4E0A\u4F20\u6587\u4EF6")))},js=Object(ei.a)(function(ae){var Me=ae.loading,Ke=ae.globalSetting,gt=ae.user;return{globalSetting:Ke,loading:Me.models.competitions,user:gt}})(zl),Gl=Dr.a.Group,ml=function(Me){var Ke,gt=Me.classroomList,Et=Me.loading,tt=Me.user,Ve=Me.exercise_id,bt=Ve===void 0?null:Ve,mt=Me.homework_common_id,ot=mt===void 0?null:mt,ct=Me.setitem,Pt=Me.taskData,kt=Me.type,Tt=Me.dispatch,Nt=Object(E.useState)(),Ft=Object(n.a)(Nt,2),Yt=Ft[0],Jt=Ft[1],pn=Object(E.useState)(!1),xn=Object(n.a)(pn,2),tn=xn[0],nn=xn[1];Object(E.useEffect)(function(){jt()},[]);var jt=function(){var nt=Object(l.a)(y.a.mark(function Ht(){var rn,sn,bn;return y.a.wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:return fn.next=2,Object(on.a)("/api/tasks/".concat(Pt==null||((rn=Pt.game)===null||rn===void 0)?void 0:rn.identifier,"/get_user_attachments"),{method:"get"});case 2:bn=fn.sent,bn==null||((sn=bn.attachments)===null||sn===void 0)||sn.map(function(Zt){return Zt.status="done",Zt.uid=Zt.id,Zt.name=Zt.title,Zt}),Jt(bn);case 5:case"end":return fn.stop()}},Ht)}));return function(){return nt.apply(this,arguments)}}(),vn=function(Ht){console.log(Ht,444)};return c.a.createElement("div",null,c.a.createElement(js,{identifier:Pt==null||((Ke=Pt.game)===null||Ke===void 0)?void 0:Ke.identifier,defaultFilelist:Yt==null?void 0:Yt.attachments,container_type:"Game",uploading:tn,onChange:function(){tn=!1,nn(!0)},height:300,maxSize:100*1024*1024*1024,description:"",getData:jt,onComplete:vn,realFileName:!0,onRemove:function(){}}))},Vl=Object(ei.a)(function(ae){var Me=ae.classroomList,Ke=ae.loading,gt=ae.globalSetting,Et=ae.user;return{classroomList:Me,globalSetting:gt,loading:Ke.effects,user:Et}})(ml),Rl=v("5bA4"),Yl=v("UESt"),Eu=v("ZD9Y"),Ql=function(ae){var Me=ae.onFontSizeChange,Ke=ae.cmFontSize,gt=ae.cmCodeMode,Et=ae.onCodeModeChange,tt=ae.tabToSpace,Ve=ae.onTabToSpace,bt=ae.shixun,mt=bt.task_pass,ot=bt.forbid_copy,ct=bt.test_set_permission,Pt={onFontSizeChange:Me,cmFontSize:Ke,cmCodeMode:gt,onCodeModeChange:Et,tabToSpace:tt,onTabToSpace:Ve};return c.a.createElement(Eu.a,Pt,c.a.createElement("h3",null,"\u5173\u5361\u914D\u7F6E\u4FE1\u606F"),c.a.createElement("section",null,c.a.createElement("a",{className:"file-item",title:mt?"\u5141\u8BB8\u5B66\u5458\u8DF3\u5173\u6311\u6218":"\u4E0D\u5141\u8BB8\u5B66\u5458\u8DF3\u5173\u6311\u6218"},c.a.createElement("b",null,"\u8DF3\u5173"),c.a.createElement("span",null,mt?"\u5141\u8BB8":"\u4E0D\u5141\u8BB8")),c.a.createElement("a",{className:"file-item",title:ct?"\u5141\u8BB8\u5B66\u5458\u901A\u8FC7\u91D1\u5E01\u89E3\u9501\u67E5\u770B\u6D4B\u8BD5\u96C6\u5185\u5BB9":"\u4E0D\u5141\u8BB8\u5B66\u5458\u901A\u8FC7\u91D1\u5E01\u89E3\u9501\u67E5\u770B\u6D4B\u8BD5\u96C6\u5185\u5BB9"},c.a.createElement("b",null,"\u6D4B\u8BD5\u96C6\u89E3\u9501"),c.a.createElement("span",null,ct?"\u5141\u8BB8":"\u4E0D\u5141\u8BB8")),c.a.createElement("a",{className:"file-item",title:ot?"\u4E0D\u5141\u8BB8\u5B66\u5458\u7C98\u8D34\u4EE3\u7801":"\u5141\u8BB8\u5B66\u5458\u7C98\u8D34\u4EE3\u7801"},c.a.createElement("b",null,"\u4EE3\u7801\u7C98\u8D34"),c.a.createElement("span",null,ot?"\u4E0D\u5141\u8BB8":"\u5141\u8BB8"))))},ho=v("X9zl"),_l=v("l/DK"),kl=v.n(_l);function Jl(ae){var Me=ae.callback,Ke=ae.file,gt=ae.onHidePathList;function Et(){gt(),Me(Ke)}return c.a.createElement("a",{onClick:Et},Ke)}var Zl=function(ae){var Me=ae.paths,Ke=ae.onChangePath,gt=ae.activePath,Et=ae.isVisible,tt=ae.onHidePathList;return c.a.createElement("ul",{className:kl.a["path-container"],onMouseLeave:tt,style:{display:Et?"block":"none"}},Me.filter(function(Ve){return!!Ve}).map(function(Ve){return c.a.createElement("li",{className:gt===Ve?kl.a.active:"",key:Ve},c.a.createElement(Jl,{callback:Ke,file:Ve,onHidePathList:tt}))}))},hs=v("Dqnf"),gl={theme:Object(Zi.a)("cmCodeMode","vs-dark"),fontSize:Object(Zi.a)("cmFontSize",16),tabToSpace:Object(Zi.a)("cmTabToSpace",!0),showEditorSetting:!1,showPathList:!1,tabIndex:0,sshConfigData:null,sshConfigDataArr:[],sshTabs:[]};function ql(ae,Me){switch(Me.type){case ht:return Object(e.a)(Object(e.a)({},ae),{},{showEditorSetting:Me.payload});case Rt:return Object(e.a)(Object(e.a)({},ae),{},{theme:Me.payload});case pt:return Object(e.a)(Object(e.a)({},ae),{},{fontSize:Me.payload});case Lt:return Object(e.a)(Object(e.a)({},ae),{},{tabIndex:Me.payload});case Wt:return Object(e.a)(Object(e.a)({},ae),{},{sshConfigData:Me.payload});case gn:return Object(e.a)(Object(e.a)({},ae),{},{sshConfigDataArr:Me.payload});case Tn:return Object(e.a)(Object(e.a)({},ae),{},{sshTabs:Object(w.a)(Me.payload)});case Ct:return Object(e.a)(Object(e.a)({},ae),{},{showPathList:!0});case Kt:return Object(e.a)(Object(e.a)({},ae),{},{showPathList:!1});case Un:return Object(e.a)(Object(e.a)({},ae),{},{tabToSpace:Me.payload});default:throw new Error}}var Il=3e4,$l=function(ae){var Me,Ke,gt,Et,tt,Ve=ae.taskData,bt=ae.moveY,mt=ae.isHtml,ot=ae.isNotice,ct=ae.onResizeYStart,Pt=ae._dispatch,kt=ae.codeRepData,Tt=ae.isEditPath,Nt=ae.onEditRepCode,Ft=ae.onUpdateCode,Yt=ae.onResizeSetContainer,Jt=ae.onEval,pn=ae.evaluateLoading,xn=ae.evaluateMessage,tn=ae.onResizeCodeArea,nn=ae.onShowDir,jt=ae.onChangePath,vn=ae.onShowNotice,nt=ae.onResetCode,Ht=ae.onResetGitCode,rn=ae.onResetPassedCode,sn=ae.onFinishDisplayHtml,bn=ae.onGetUnity3dMessage,On=ae.unity_3d_routes,fn=ae.with_code_file,Zt=Object(s.a)(ae,["taskData","moveY","isHtml","isNotice","onResizeYStart","_dispatch","codeRepData","isEditPath","onEditRepCode","onUpdateCode","onResizeSetContainer","onEval","evaluateLoading","evaluateMessage","onResizeCodeArea","onShowDir","onChangePath","onShowNotice","onResetCode","onResetGitCode","onResetPassedCode","onFinishDisplayHtml","onGetUnity3dMessage","unity_3d_routes","with_code_file"]),$t=Object(C.i)(),Qt=Object(E.useRef)(),mn=Object(E.useReducer)(ql,gl),jn=Object(n.a)(mn,2),Dn=jn[0],Xt=jn[1],Mn=Object(E.useState)(!1),ir=Object(n.a)(Mn,2),sr=ir[0],er=ir[1],qn=Object(E.useState)(),an=Object(n.a)(qn,2),Vn=an[0],Fr=an[1],Gr=Object(E.useState)(!1),lr=Object(n.a)(Gr,2),Ra=lr[0],ja=lr[1],ci=kt.loading,ra=kt.content,Na=kt.language,Ri=kt.filename,xi=kt.file_type,ki=kt.lastedUpdateTime,Li=kt.paths,ga=kt.currentPath,po=Dn.fontSize,mo=Dn.theme,dr=Dn.showEditorSetting,Nn=Dn.showPathList,un=Dn.tabIndex,kr=Dn.sshTabs,va=Dn.tabToSpace,Jn=Dn.sshConfigData,Hn=Dn.sshConfigDataArr,xr=Ve.shixun,aa=Ve.test_sets,Pr=Ve.test_sets_count,Fa=Ve.sets_error_count,ko=Ve.last_compile_output,lo=Ve.game,Pi=Ve.git_url,t=Ve.myshixun,p=Ve.user,O=Ve.allowed_unlock,A=xr.webssh,N=xr.multi_webssh,V=xr.hide_code,re=Ve.terminal_count,fe={onFinishDisplayHtml:sn,allowed_unlock:O,onResizeSetContainer:Yt,moveY:bt,language:Na,content:ra,isHtml:mt,myshixunIdentifier:t.identifier,test_sets_view:lo.test_sets_view,identity:p.identity,lastedUpdateTime:ki,test_sets:aa,test_sets_count:Pr,sets_error_count:Fa,last_compile_output:ko},ge=On&&!fn||(Ve==null||((Me=Ve.challenge)===null||Me===void 0)?void 0:Me.thiry_party);Object(E.useEffect)(function(){En.a.subscribe("update-windows-time",function(Hr){Fr(Hr)});var Mr=En.a.subscribe("show-case-result",function(Hr){tn(1),Hr?er(Hr):(sr=!sr,er(sr))});return Mr},[]),Object(E.useEffect)(function(){En.a.publish("showRunCode",!un),En.a.publish("showRunCodeTab",!un),En.a.publish("taskTabIndex",un)},[un]),Object(E.useEffect)(function(){Ve!=null&&Ve.vnc_url||Ve!=null&&Ve.windows_vnc||Ve!=null&&Ve.linux_vnc||Ve!=null&&Ve.virtual_machine?(er(!1),Dn.tabIndex=-1,setTimeout(function(){Xt({type:Lt,payload:-1})},400)):ge||er(!0)},[Ve]),Object(Fi.a)(function(){var Mr=new Date().getTime();Tt&&ki&&V!==1&&Mr>ki+Il&&(localStorage.setItem("stat","newest"),Ft())},Il);function Se(Mr){Nt(Mr)}function Je(){Xt({type:ht,payload:!0})}function at(){Xt({type:ht,payload:!1})}function Dt(Mr){Xt({type:pt,payload:Mr}),Object(Zi.b)("cmFontSize",Mr)}function Ot(Mr){Xt({type:Rt,payload:Mr}),Object(Zi.b)("cmCodeMode",Mr)}function Gt(Mr){Xt({type:Un,payload:Mr}),Object(Zi.b)("cmTabToSpace",Mr)}function en(){Xt({type:Ct})}function yn(){Xt({type:Kt})}function Sn(Mr){return Fn.apply(this,arguments)}function Fn(){return Fn=Object(l.a)(y.a.mark(function Mr(Hr){var li;return y.a.wrap(function(no){for(;;)switch(no.prev=no.next){case 0:if(li=/\d/g.test(Hr)?Hr:Hr.target.id,!(un==0)){no.next=5;break}if(!(Tt&&ki&&V!==1)){no.next=5;break}return no.next=5,Ft();case 5:Xt({type:Lt,payload:parseInt(li,10)}),li==0&&Pt({type:X,payload:Date.now()}),Object(pe.A)(lo.identifier),A===3&&setTimeout(function(){if(li<=0&&V!==1||!Hn.length)return;Ua(li)},500);case 9:case"end":return no.stop()}},Mr)})),Fn.apply(this,arguments)}function kn(){var Mr=kr.length;kr[0]===3?kr.push(2):kr.push(Mr+2),console.log("sshTabs:",kr),Xt({type:Tn,payload:kr})}function Zn(Mr){Mr.stopPropagation(),Mr.preventDefault();var Hr=parseInt(Mr.target.id,10);kr.splice(Hr,1),Xt({type:Tn,payload:kr});var li=1;kr.length>0&&(li=kr[0]),Xt({type:Lt,payload:li})}function Or(){return A===3?Object(pe.C)({myshixunId:t.identifier,position:un,game_id:lo.id}):Object(pe.e)(t.identifier)}function cr(Mr){Xt({type:Lt,payload:0}),jt(Mr)}function $r(){Xt({type:Wt,payload:null}),Ua(un)}Object(E.useEffect)(function(){V===1&&A>0&&Xt({type:Lt,payload:1})},[V]),Object(E.useEffect)(function(){un>0&&Ua(Dn.tabIndex||1)},[un]),Object(E.useEffect)(function(){Jn&&un>=1&&setTimeout(function(){En.a.publish("create-socket",un)},100)},[Jn]),Object(E.useEffect)(function(){return function(){kr.splice(0,8),Xt({type:Tn,payload:kr})}},[Zt.location.pathname]);function Ua(Mr){return pi.apply(this,arguments)}function pi(){return pi=Object(l.a)(y.a.mark(function Mr(Hr){var li,Qa,no,ro,Qi,Ko,Wi,qo,rs,vl,al;return y.a.wrap(function(Io){for(;;)switch(Io.prev=Io.next){case 0:if(!(A===3)){Io.next=7;break}return Io.next=3,Object(pe.y)(t.identifier,{position:Hr});case 3:Qi=Io.sent,((Ko=Qi)===null||Ko===void 0?void 0:Ko.status)!==-3&&En.a.publish("update-windows-time",{remaining_time:(Wi=Qi)===null||Wi===void 0?void 0:Wi.remainingTime}),Io.next=10;break;case 7:return Io.next=9,Object(pe.x)(t.identifier,{game_id:lo.id});case 9:Qi=Io.sent;case 10:if(!((li=Qi)!==null&&li!==void 0&&(Qa=li.data)!==null&&Qa!==void 0&&(no=Qa.data_list)!==null&&no!==void 0&&no.length)){Io.next=13;break}return En.a.publish("pod-restrict-data",{identifier:(qo=Qi)===null||qo===void 0||((rs=qo.data)===null||rs===void 0)?void 0:rs.identifier,data_list:(vl=Qi)===null||vl===void 0||((al=vl.data)===null||al===void 0)?void 0:al.data_list}),Io.abrupt("return");case 13:if(!(((ro=Qi)===null||ro===void 0?void 0:ro.status)===-3)){Io.next=15;break}return Io.abrupt("return",new Promise(function(){var Pl=Object(l.a)(y.a.mark(function jl(Mu,Yu){return y.a.wrap(function(Ul){for(;;)switch(Ul.prev=Ul.next){case 0:u.a.confirm({content:"\u68C0\u6D4B\u5230\u60A8\u5DF2\u7ECF\u5F00\u542F\u4E86\u5176\u4ED6\u5B9E\u9A8C\u73AF\u5883\uFF0C\u8BF7\u5148\u5173\u95ED\u73AF\u5883\u540E\uFF0C\u518D\u8FDE\u63A5",okText:"\u7ACB\u5373\u5173\u95ED",cancelText:"\u7A0D\u540E\u5173\u95ED",onOk:function(){var fu=Object(l.a)(y.a.mark(function Bn(){var Wn;return y.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.next=2,Object(pe.f)($t.taskId,(Wn=Qi)===null||Wn===void 0?void 0:Wn.message);case 2:return Ua(),Ln.abrupt("return");case 4:case"end":return Ln.stop()}},Bn)}));function Kn(){return fu.apply(this,arguments)}return Kn}()});case 1:case"end":return Ul.stop()}},jl)}));return function(jl,Mu){return Pl.apply(this,arguments)}}()));case 15:A===3?(Hn[Hr-1]=Object(e.a)({},Qi.data),Xt({type:gn,payload:Object(w.a)(Hn)}),setTimeout(function(){return En.a.publish("create-socket",Hr)},300)):Xt({type:Wt,payload:Qi.data});case 16:case"end":return Io.stop()}},Mr)})),pi.apply(this,arguments)}var oi=bt?bt!=="100%"?"".concat(bt-54,"px"):bt:sr?"70%":"100%",eo=bt==="100%"?0:"calc(100% - 3px - 51px - ".concat(oi,")"),Yi=[];A&&Yi.push(1),N&&Yi.concat(kr);function si(){ja(!Ra),Object(R.a)()?Object(R.b)():Object(R.d)(document.body)}var to=function(Hr){var li,Qa;if(Hr.target.localName!=="body"||(Zt==null||((li=Zt.location)===null||li===void 0||((Qa=li.query)===null||Qa===void 0))?void 0:Qa.isFullScreen)==="true")return;var no=document.getElementById("task-left-panel"),ro=no.nextElementSibling;Object(R.a)()?(no.classList.add("hide"),ro.classList.add("hide"),ja(!0)):(ja(!1),no.classList.remove("hide"),ro.classList.remove("hide"))};Object(E.useEffect)(function(){return document.addEventListener(Object(R.c)(),to),function(){document.removeEventListener(Object(R.c)(),to)}},[]);var Hi={content:ra,language:Na,filename:Ri,file_type:xi,onCodeChange:Se,theme:mo,taskData:Ve,onSave:Ft,forbidCopy:xr.forbid_copy,isEditPath:Tt,hide_code:V,code_edit_permission:xr.code_edit_permission,monacoOptions:{fontSize:po,insertSpaces:va,readOnly:!Tt&&!xr.code_edit_permission}},Ii={loading:ci,lastedUpdateTime:ki,moveY:bt,code_hidden:!xr.show_code_dir,hide_code:xr.hide_code,gameStatus:lo.status,isEditPath:Tt,isNotice:ot,git_url:Pi,taskData:Ve,onResetCode:nt,onResetGitCode:Ht,onShowCodeSetting:Je,onResetPassedCode:rn,onShowNotice:vn,onShowDir:nn,onResizeCodeArea:tn,onRightFullHandler:si,isResizeLarge:Ra},mi={isNotice:ot,moveY:bt,tabIndex:un,onShowNotice:vn,onResizeCodeArea:tn,webssh:A,socketKeys:Yi,sshConfigData:Dn.sshConfigData,onCloseSocket:Or,isActive:un>=1,onReCreateSocket:$r,shixun:xr,onRightFullHandler:si,isResizeLarge:Ra},di={onFontSizeChange:Dt,cmFontSize:po,tabToSpace:va,cmCodeMode:mo,onCodeModeChange:Ot,onTabToSpace:Gt,shixun:xr},uo=Object(E.useMemo)(function(){var Mr={width:re*102};return un>2&&re>3&&(Mr.left=-(un-2)*102),Mr},[un]);console.log("sshConfigDataArr:",Hn);var _s=function(){return c.a.createElement("div",{className:"unity-3d-container"},c.a.createElement(mr,{taskData:Ve,unity_3d_routes:On,onGetUnity3dMessage:bn}))};return c.a.createElement(E.Fragment,null,ge?_s():c.a.createElement("div",{className:bi.a["code-area-container"],ref:Qt,style:{height:oi}},c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:bi.a.navs},c.a.createElement("ul",null,((Ve==null?void 0:Ve.vnc_url)||(Ve==null?void 0:Ve.windows_vnc)||(Ve==null?void 0:Ve.linux_vnc)||(Ve==null?void 0:Ve.virtual_machine))&&c.a.createElement("li",null,c.a.createElement("a",{id:-1,className:un===-1?"".concat(bi.a.active," first"):"first",onClick:Sn},"\u56FE\u5F62\u5316\u7A97\u53E3")),V!==1?c.a.createElement("li",{className:"flex-container",style:{position:"relative"}},c.a.createElement("a",{id:0,className:un===0?"".concat(bi.a.active," first"):"first",onClick:Sn},((Ke=Ve.challenge)===null||Ke===void 0?void 0:Ke.show_type)===8?"\u6587\u4EF6\u76EE\u5F55":"\u4EE3\u7801\u6587\u4EF6"),Li.length>=1?c.a.createElement("span",{onMouseOver:en,className:Nn?bi.a["arrow-down"]:bi.a["arrow-right"]}):null,c.a.createElement(Zl,{isVisible:Nn,onHidePathList:yn,paths:Li,activePath:ga,onChangePath:cr})):null,!A||A===3?c.a.createElement("li",null):c.a.createElement("li",null,c.a.createElement("a",{className:un===1?bi.a.active:"",onClick:Sn,id:1},"\u547D\u4EE4\u884C")),A===3&&c.a.createElement("div",{className:bi.a["tasks-page-wrp"]},re>3&&c.a.createElement(Ka.a,{disabled:un<=1,className:bi.a["tasks-prev-xterm"],onClick:function(){return Sn(un-1)}},c.a.createElement(Rl.a,null)),c.a.createElement("ul",{style:uo},new Array(re).fill("").map(function(Mr,Hr){return c.a.createElement("li",null,c.a.createElement("a",{className:un===Hr+1?bi.a.active:"",onClick:Sn,id:Hr+1},"\u547D\u4EE4\u884C ",Hr+1))})),re>3&&c.a.createElement(Ka.a,{disabled:un>=re,className:bi.a["tasks-next-xterm"],onClick:function(){return Sn(un+1)}},c.a.createElement(Yl.a,null))),!!A&&N?kr.map(function(Mr,Hr){return c.a.createElement("li",{key:Mr},c.a.createElement("a",{id:Mr,className:un===Mr?bi.a.active:"",onClick:Sn},"\u547D\u4EE4\u884C",Hr+1,c.a.createElement("i",{title:"\u5173\u95ED\u547D\u4EE4\u884C\u7A97\u53E3",id:Hr,className:"iconfont icon-shanchu_moren",onClick:Zn})))}):null,!!A&&N&&kr.length<2?c.a.createElement("li",null,c.a.createElement("a",{onClick:kn,title:"\u65B0\u5F00\u547D\u4EE4\u884C\u7A97\u53E3"},"\uFF0B")):null),c.a.createElement("div",{className:bi.a["action-bar-container"],style:{display:un===0?"flex":"none"}},c.a.createElement(ta,Object(a.a)({},Ii,{onUpdateCode:Ft}))),c.a.createElement("div",{className:bi.a["action-bar-container"],style:{display:un>=1?"flex":"none"}},c.a.createElement(Jr,mi)),c.a.createElement("div",{className:"tr",style:{marginLeft:"auto",marginRight:20}},((Ve==null?void 0:Ve.vnc_url)||(Ve==null?void 0:Ve.windows_vnc)||(Ve==null?void 0:Ve.virtual_machine)||(Ve==null?void 0:Ve.linux_vnc))&&c.a.createElement("span",{className:"c-white current ",onClick:si,style:{display:un===0?"none":"inline"}},c.a.createElement("span",{className:"iconfont icon-quanping mr5 font12"}),"\u5168\u5C4F / \u9000\u51FA\u5168\u5C4F"))),c.a.createElement("div",{style:{display:un===-1?"flex":"none"}},c.a.createElement(hl,{taskData:Ve,evaluateMessage:xn,language:Na,evaluateLoading:pn,onEval:Zt.onEvalCode})),c.a.createElement("section",{style:{display:un===0?"block":"none",height:"calc(100% - 40px)"}},((gt=Ve.challenge)===null||gt===void 0?void 0:gt.show_type)===8&&c.a.createElement(Vl,{taskData:Ve}),((Et=Ve.challenge)===null||Et===void 0?void 0:Et.show_type)!==8&&c.a.createElement(cl,Object(a.a)({},Hi,{onUpdateCode:Ft}))),!A||A===3?null:c.a.createElement("section",{style:{display:un===1?"block":"none",height:"calc(100% - 40px)"}},c.a.createElement(hs.a,{sshConfigData:Jn||{},sid:1})),N?kr.map(function(Mr,Hr){return c.a.createElement("section",{key:"ssh".concat(Mr),style:{display:un===Mr?"block":"none",height:"calc(100% - 40px)"}},c.a.createElement(hs.a,{sshConfigData:Jn||{},sid:Mr}))}):null,A===3?new Array(re).fill("").map(function(Mr,Hr){return c.a.createElement("section",{id:Hr,key:"ssh".concat(Hr+1),style:{display:un===Hr+1?"block":"none",height:"calc(100% - 40px)"}},c.a.createElement(hs.a,{sshConfigData:Hn[Hr]||{},sid:Hr+1}))}):null)),c.a.createElement("section",null),sr&&c.a.createElement("div",{className:bi.a["resize-y-bar"],onMouseDown:ct,draggable:!1},c.a.createElement("i",{className:"iconfont icon-guangbiao",draggable:!1})),sr&&c.a.createElement("div",{className:bi.a["test-set-container"],style:{height:eo}},pn?c.a.createElement(Di.a,{message:xn,style:{color:"#0152d9"}}):c.a.createElement(fs,Object(a.a)({},fe,{taskData:Ve}))),c.a.createElement("div",{className:bi.a["action-container"]},c.a.createElement(Is,Object(a.a)({onUpdateCode:Ft},Ve,{dispatch:Pt,loading:pn,isU3d:On&&!fn||(Ve==null||((tt=Ve.challenge)===null||tt===void 0)?void 0:tt.thiry_party),onRun:function(){Jt(),er(!0)}}))),c.a.createElement(Rr.a,null,c.a.createElement(I.a,{className:bi.a["setting-drawer"],title:null,placement:"right",closable:!1,visible:dr,onClose:at},c.a.createElement(Ql,di))))},Gs=v("zkdm"),eu=v("Sa5k"),Vs=v.n(eu),tu=v("fWQN"),Ys=v("mtLc"),wu=0,Us=1,nu=3,Dl=9,ru=10,Fs=11,Qs=0,Bs=2,Js=3,au=4,xu=48,iu=function(){function ae(){Object(tu.a)(this,ae)}return Object(Ys.a)(ae,[{key:"_checkHeader",value:function(){var Ke=this.header;if(Ke.imageType===wu)throw Error("No data");if(Ke.hasColorMap){if(Ke.colorMapLength>256||Ke.colorMapDepth!==24||Ke.colorMapType!==1)throw Error("Invalid colormap for indexed type")}else if(Ke.colorMapType)throw Error("Why does the image contain a palette ?");if(!Ke.width||!Ke.height)throw Error("Invalid image size");if(Ke.pixelDepth!==8&&Ke.pixelDepth!==16&&Ke.pixelDepth!==24&&Ke.pixelDepth!==32)throw Error('Invalid pixel size "'+Ke.pixelDepth+'"')}},{key:"_decodeRLE",value:function(Ke,gt,Et,tt){for(var Ve=new Uint8Array(tt),bt=new Uint8Array(Et),mt=0;mt<tt;){var ot=Ke[gt++],ct=1+(127&ot);if(128&ot){for(var Pt=0;Pt<Et;++Pt)bt[Pt]=Ke[gt+Pt];gt+=Et;for(var kt=0;kt<ct;++kt)Ve.set(bt,mt),mt+=Et}else{ct*=Et;for(var Tt=0;Tt<ct;++Tt)Ve[mt+Tt]=Ke[gt+Tt];mt+=ct,gt+=ct}}return Ve}},{key:"_getImageData8bits",value:function(Ke,gt,Et,tt,Ve,bt,mt,ot,ct,Pt){for(var kt=0,Tt=Ve;Tt!==mt;Tt+=bt)for(var Nt=ot;Nt!==Pt;Nt+=ct,kt++){var Ft=gt[kt];Ke[4*(Nt+tt*Tt)+3]=255,Ke[4*(Nt+tt*Tt)+2]=Et[3*Ft+0],Ke[4*(Nt+tt*Tt)+1]=Et[3*Ft+1],Ke[4*(Nt+tt*Tt)+0]=Et[3*Ft+2]}return Ke}},{key:"_getImageData16bits",value:function(Ke,gt,Et,tt,Ve,bt,mt,ot,ct,Pt){for(var kt=0,Tt=Ve;Tt!==mt;Tt+=bt)for(var Nt=ot;Nt!==Pt;Nt+=ct,kt+=2){var Ft=gt[kt+0]|gt[kt+1]<<8;Ke[4*(Nt+tt*Tt)+0]=(31744&Ft)>>7,Ke[4*(Nt+tt*Tt)+1]=(992&Ft)>>2,Ke[4*(Nt+tt*Tt)+2]=(31&Ft)>>3,Ke[4*(Nt+tt*Tt)+3]=32768&Ft?0:255}return Ke}},{key:"_getImageData24bits",value:function(Ke,gt,Et,tt,Ve,bt,mt,ot,ct,Pt){for(var kt=0,Tt=Ve;Tt!==mt;Tt+=bt)for(var Nt=ot;Nt!==Pt;Nt+=ct,kt+=3)Ke[4*(Nt+tt*Tt)+3]=255,Ke[4*(Nt+tt*Tt)+2]=gt[kt+0],Ke[4*(Nt+tt*Tt)+1]=gt[kt+1],Ke[4*(Nt+tt*Tt)+0]=gt[kt+2];return Ke}},{key:"_getImageData32bits",value:function(Ke,gt,Et,tt,Ve,bt,mt,ot,ct,Pt){for(var kt=0,Tt=Ve;Tt!==mt;Tt+=bt)for(var Nt=ot;Nt!==Pt;Nt+=ct,kt+=4)Ke[4*(Nt+tt*Tt)+2]=gt[kt+0],Ke[4*(Nt+tt*Tt)+1]=gt[kt+1],Ke[4*(Nt+tt*Tt)+0]=gt[kt+2],Ke[4*(Nt+tt*Tt)+3]=gt[kt+3];return Ke}},{key:"_getImageDataGrey8bits",value:function(Ke,gt,Et,tt,Ve,bt,mt,ot,ct,Pt){for(var kt=0,Tt=Ve;Tt!==mt;Tt+=bt)for(var Nt=ot;Nt!==Pt;Nt+=ct,kt++){var Ft=gt[kt];Ke[4*(Nt+tt*Tt)+0]=Ft,Ke[4*(Nt+tt*Tt)+1]=Ft,Ke[4*(Nt+tt*Tt)+2]=Ft,Ke[4*(Nt+tt*Tt)+3]=255}return Ke}},{key:"_getImageDataGrey16bits",value:function(Ke,gt,Et,tt,Ve,bt,mt,ot,ct,Pt){for(var kt=0,Tt=Ve;Tt!==mt;Tt+=bt)for(var Nt=ot;Nt!==Pt;Nt+=ct,kt+=2)Ke[4*(Nt+tt*Tt)+0]=gt[kt+0],Ke[4*(Nt+tt*Tt)+1]=gt[kt+0],Ke[4*(Nt+tt*Tt)+2]=gt[kt+0],Ke[4*(Nt+tt*Tt)+3]=gt[kt+1];return Ke}},{key:"open",value:function(Ke,gt){var Et=this,tt=new XMLHttpRequest;return new Promise(function(Ve,bt){tt.responseType="arraybuffer",tt.open("GET",Ke,!0),tt.onload=function(){tt.status===200&&Et.load(new Uint8Array(tt.response),Ve),Et.imageSourceData=tt.response,gt&&gt()},tt.send(null)})}},{key:"load",value:function(Ke,gt){var Et=0;if(Ke.length<18)throw Error("Not enough data to contain header");var tt={idLength:Ke[Et++],colorMapType:Ke[Et++],imageType:Ke[Et++],colorMapIndex:Ke[Et++]|Ke[Et++]<<8,colorMapLength:Ke[Et++]|Ke[Et++]<<8,colorMapDepth:Ke[Et++],offsetX:Ke[Et++]|Ke[Et++]<<8,offsetY:Ke[Et++]|Ke[Et++]<<8,width:Ke[Et++]|Ke[Et++]<<8,height:Ke[Et++]|Ke[Et++]<<8,pixelDepth:Ke[Et++],flags:Ke[Et++]};if(tt.hasEncoding=tt.imageType===Dl||tt.imageType===ru||tt.imageType===Fs,tt.hasColorMap=tt.imageType===Dl||tt.imageType===Us,tt.isGreyColor=tt.imageType===Fs||tt.imageType===nu,this.header=tt,this._checkHeader(),(Et+=tt.idLength)>=Ke.length)throw Error("No data");if(tt.hasColorMap){var Ve=tt.colorMapLength*(tt.colorMapDepth>>3);this.palette=Ke.subarray(Et,Et+Ve),Et+=Ve}var bt=tt.pixelDepth>>3,mt=tt.width*tt.height,ot=mt*bt;tt.hasEncoding?this.imageData=this._decodeRLE(Ke,Et,bt,ot):this.imageData=Ke.subarray(Et,Et+(tt.hasColorMap?mt:ot)),gt(this)}},{key:"getImageData",value:function(Ke){var gt=this.header,Et=gt.width,tt=gt.height,Ve=gt.flags,bt=gt.pixelDepth,mt=gt.isGreyColor,ot=(Ve&xu)>>au,ct,Pt,kt,Tt,Nt,Ft,Yt;switch(Ke||(Ke=document?document.createElement("canvas").getContext("2d").createImageData(Et,tt):{width:Et,height:tt,data:new Uint8ClampedArray(Et*tt*4)}),ot===Bs||ot===Js?(Tt=0,Nt=1,Ft=tt):(Tt=tt-1,Nt=-1,Ft=-1),ot===Bs||ot===Qs?(ct=0,Pt=1,kt=Et):(ct=Et-1,Pt=-1,kt=-1),bt){case 8:Yt=mt?this._getImageDataGrey8bits:this._getImageData8bits;break;case 16:Yt=mt?this._getImageDataGrey16bits:this._getImageData16bits;break;case 24:Yt=this._getImageData24bits;break;case 32:Yt=this._getImageData32bits}return Yt.call(this,Ke.data,this.imageData,this.palette,Et,Tt,Nt,Ft,ct,Pt,kt),Ke}},{key:"getCanvas",value:function(){var Ke=this.header,gt=Ke.width,Et=Ke.height,tt=document.createElement("canvas"),Ve=tt.getContext("2d"),bt=Ve.createImageData(gt,Et);return tt.width=gt,tt.height=Et,Ve.putImageData(this.getImageData(bt),0,0),tt}},{key:"getDataURL",value:function(Ke){return this.getCanvas().toDataURL(Ke||"image/png")}}]),ae}(),Zo=function(ae){var Me=ae.list,Ke=ae.title,gt=ae.direction,Et=Me.length,tt=Object(E.useState)([]),Ve=Object(n.a)(tt,2),bt=Ve[0],mt=Ve[1],ot=function(){var ct=Object(l.a)(y.a.mark(function Pt(){var kt,Tt,Nt,Ft;return y.a.wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:kt=[],Tt=0;case 2:if(!(Tt<Me.length)){Jt.next=13;break}if(Nt=Me[Tt],!(Nt.pic_url.indexOf(".tga")>-1)){Jt.next=9;break}return Ft=new iu,Jt.next=8,Ft.open(Nt.pic_url);case 8:Nt.pic_url=Ft.getDataURL();case 9:kt.push(Nt);case 10:Tt++,Jt.next=2;break;case 13:mt([].concat(kt));case 14:case"end":return Jt.stop()}},Pt)}));return function(){return ct.apply(this,arguments)}}();return Object(E.useEffect)(function(){ot()},[Me]),c.a.createElement("div",{className:"img-list ".concat(gt?"":"direction")},c.a.createElement("h4",null,Ke),c.a.createElement("div",{className:"list-body",style:{padding:"40px 0px"}},Et>0?bt.map(function(ct,Pt){return c.a.createElement("img",{onClick:function(){En.a.publish("preview-image","".concat(yr.a).concat(ct.pic_url))},className:Et===1?"singal":"",src:"".concat(ct.pic_url.indexOf("data:image/png;base64")>-1?ct.pic_url:yr.a+ct.pic_url),key:ct.pic_url,alt:Ke})}):c.a.createElement(E.Fragment,null,c.a.createElement("img",{alt:"\u7A7A",className:"nothing",src:Vs.a}),c.a.createElement("img",{alt:"\u7A7A",className:"nothing",src:Vs.a}))))},Zs=v("1A8V"),$s=function(ae){var Me=ae.url,Ke=ae.poster;return c.a.createElement("div",{className:"video-container"},c.a.createElement("video",{controls:!0,autoPlay:!0,src:Me,preload:"auto",poster:Ke||""},c.a.createElement("source",{type:"video/webm",src:Me}),c.a.createElement("source",{type:"video/mp4",src:Me})))},Gu=v("XZCF"),ou=function(ae){var Me=ae.url;return c.a.createElement("div",{className:"video-container"},c.a.createElement("audio",{style:{width:"100%"},controls:!0,src:Me}," Your browser does not support the ",c.a.createElement("code",null,"audio")," element. "))},Cu=function(ae){var Me=ae.files,Ke=ae.type;return c.a.createElement("ul",{className:"video-list"},Me.map(function(gt,Et){return c.a.createElement("li",{key:Et},Ke==="mp4"?c.a.createElement($s,{url:gt.file_url}):c.a.createElement(ou,{url:gt.file_url}))}))},Su=function(ae){var Me=ae.value;return c.a.createElement("img",{src:"data:image/png;base64,".concat(Me),alt:"qrcode"})};function Au(ae){var Me=ae.documentElement,Ke=ae.body,gt=Math.max(Me.clientHeight,Me.scrollHeight,Me.offsetHeight,Ke?Ke.clientHeight:0,Ke?Ke.scrollHeight:0,500);return gt}function yo(ae){var Me=ae.contentDocument?ae.contentDocument:ae.contentWindow.document;ae.style.visibility="hidden",ae.style.height="10px",ae.style.height=Au(Me)+4+"px",ae.style.visibility="visible"}var su=function(ae){var Me=ae.taskId,Ke=ae.onHidePictureView,gt=Object(E.useState)({}),Et=Object(n.a)(gt,2),tt=Et[0],Ve=Et[1],bt=Object(E.useRef)(),mt=Object(E.useState)(!0),ot=Object(n.a)(mt,2),ct=ot[0],Pt=ot[1];Object(E.useEffect)(function(){var tn=tt.type,nn=tt.iframe_src;tn==="html"&&nn&&bt.current&&(bt.current.contentWindow.document.write(nn),bt.current.contentWindow.document.close(),setTimeout(function(){yo(bt.current)},100))},[tt,bt.current]),Object(E.useEffect)(function(){function tn(){return nn.apply(this,arguments)}function nn(){return nn=Object(l.a)(y.a.mark(function jt(){var vn;return y.a.wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:return Ht.prev=0,Ht.next=3,Object(pe.l)(Me);case 3:vn=Ht.sent,Ve(vn),Ht.next=10;break;case 7:Ht.prev=7,Ht.t0=Ht.catch(0),console.log(Ht.t0);case 10:case"end":return Ht.stop()}},jt,null,[[0,7]])})),nn.apply(this,arguments)}tn()},[Me]);var kt=tt.type,Tt=tt.orignal_picture,Nt=tt.user_picture,Ft=tt.answer_picture,Yt=tt.contents,Jt=tt.user_file,pn=tt.message,xn=tt.qrcode_str;return c.a.createElement(E.Fragment,null,kt?null:c.a.createElement(Di.a,{message:pn||"\u52A0\u8F7D\u4E2D..."}),c.a.createElement("div",{className:"eval-picture-panel"},c.a.createElement("div",{className:"picture-body"},c.a.createElement("h3",null,c.a.createElement("div",null,c.a.createElement("div",null,"\u67E5\u770B\u6548\u679C"),kt==="image"&&c.a.createElement("div",{onClick:function(){return Pt(!ct)},className:"direction"},c.a.createElement("span",{style:{marginRight:8,display:"inline-block"}},c.a.createElement("i",{className:"iconfont ".concat(ct?"icon-zongxiang":"icon-hengxiang")})),c.a.createElement("span",null,"\u5207\u6362\u4E3A",ct?"\u7EB5":"\u6A2A","\u5411\u5BF9\u6BD4"))),c.a.createElement("div",null,c.a.createElement("a",{onClick:Ke},c.a.createElement("i",{className:"iconfont icon-shanchu2"})))),kt==="image"?c.a.createElement("div",{className:"flex-container",style:{flexDirection:ct?"unset":"column"}},Tt.length>0?c.a.createElement(Zo,{list:Tt,title:"\u539F\u59CB\u56FE\u7247",direction:ct}):null,Ft.length>0?c.a.createElement(Zo,{list:Ft,title:"\u9884\u671F\u8F93\u51FA",direction:ct}):null,Nt.length>0?c.a.createElement(Zo,{list:Nt,title:"\u5B9E\u9645\u8F93\u51FA",direction:ct}):null):c.a.createElement(E.Fragment,null,c.a.createElement("h2",null,"\u5B9E\u9645\u8F93\u51FA"),c.a.createElement("div",{className:"output-txt ".concat(kt==="html"?"html":"")},kt==="html"?c.a.createElement("iframe",{ref:bt,style:{width:"100%",height:"100%",border:"1px solid #ccc"}}):kt=="mp4"||kt=="mp3"?c.a.createElement(Cu,{files:Jt,type:kt}):kt==="qrcode"?c.a.createElement(Su,{value:xn}):c.a.createElement("div",{style:{overflow:"auto",height:"100%"}},c.a.createElement(In.a,{value:Yt})))))))},Ml,Nl,Tu=(Ml=Object(Ee.p)())!==null&&Ml!==void 0&&Ml.homework_common_id?{homework_common_id:(Nl=Object(Ee.p)())===null||Nl===void 0?void 0:Nl.homework_common_id}:{};function lu(ae,Me){return Object(on.c)("/tasks/".concat(ae,"/system_update.json?myshixun_id=").concat(Me))}function uu(ae){return Object(on.c)("/tasks/".concat(ae,"/sync_codes.json"),Tu)}function el(ae){return Object(on.c)("/tasks/".concat(ae,"/sync_modify_time"))}var Ou=function(ae){var Me=ae.showNotice,Ke=ae.tpm_cases_modified,gt=ae.tpm_modified,Et=ae.tpm_script_modified,tt=ae.st,Ve=ae.taskId,bt=ae.myshixunId,mt=ae.onNextCallback,ot=ae.onUpdateCallback,ct=ae.onUpdateFailure,Pt=(gt||Et)&&tt===0,kt=Object(E.useState)(!1),Tt=Object(n.a)(kt,2),Nt=Tt[0],Ft=Tt[1];function Yt(){return Jt.apply(this,arguments)}function Jt(){return Jt=Object(l.a)(y.a.mark(function tn(){var nn,jt,vn,nt;return y.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:if(!Nt){rn.next=2;break}return rn.abrupt("return");case 2:if(Ft(!0),!Pt){rn.next=21;break}return rn.next=6,uu(Ve);case 6:if(nn=rn.sent,jt=nn.path,vn=nn.status,nt=nn.message,!(vn===-1)){rn.next=14;break}r.b.info(nt||"\u66F4\u65B0\u5931\u8D25\uFF0C\u670D\u52A1\u7AEF\u9519\u8BEF"),ct(),rn.next=19;break;case 14:if(r.b.info("\u66F4\u65B0\u6210\u529F\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u65B0\u52A0\u8F7D\u4EE3\u7801..."),!Ke){rn.next=18;break}return rn.next=18,el(Ve);case 18:ot(jt,new Date().getTime());case 19:rn.next=25;break;case 21:return rn.next=23,el(Ve);case 23:r.b.info("\u66F4\u65B0\u72B6\u6001\u5DF2\u540C\u6B65\u3002"),mt();case 25:Ft(!1);case 26:case"end":return rn.stop()}},tn)})),Jt.apply(this,arguments)}function pn(){return xn.apply(this,arguments)}function xn(){return xn=Object(l.a)(y.a.mark(function tn(){return y.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:if(!Nt){jt.next=2;break}return jt.abrupt("return");case 2:if(Ft(!0),!Pt){jt.next=11;break}return jt.next=6,lu(Ve,bt);case 6:if(!Ke){jt.next=9;break}return jt.next=9,el(Ve);case 9:jt.next=13;break;case 11:return jt.next=13,el(Ve);case 13:Ft(!1),mt();case 15:case"end":return jt.stop()}},tn)})),xn.apply(this,arguments)}return c.a.createElement(u.a,{centered:!0,title:"\u66F4\u65B0\u901A\u77E5",closable:!1,confirmLoading:Nt,visible:Me,onOk:Yt,onCancel:pn,okText:Pt?"\u7ACB\u5373\u66F4\u65B0":"\u77E5\u9053\u4E86",cancelText:"\u7A0D\u540E\u518D\u8BF4"},Ke&&Pt?c.a.createElement(E.Fragment,null,c.a.createElement("p",null," \u5173\u5361\u4EFB\u52A1\u7684\u4EE3\u7801\u6587\u4EF6\u548C\u6D4B\u8BD5\u96C6\u6709\u66F4\u65B0\u5566~"),c.a.createElement("p",null,"\u66F4\u65B0\u64CD\u4F5C\u5C06\u4FDD\u7559\u5DF2\u5B8C\u6210\u7684\u8BC4\u6D4B\u8BB0\u5F55\u548C\u6210\u7EE9\u3002"),c.a.createElement("p",null,"\u8FD8\u672A\u5B8C\u6210\u8BC4\u6D4B\u7684\u4EFB\u52A1\u4EE3\u7801\uFF0C\u8BF7\u81EA\u884C\u4FDD\u5B58\uFF01")):Ke?c.a.createElement(E.Fragment,null,c.a.createElement("p",null,"\u672C\u5173",tt===0?"\u6D4B\u8BD5\u96C6":"\u7B54\u6848","\u5DF2\u66F4\u65B0\uFF0C\u60A8\u53EF\u4EE5\u91CD\u65B0\u8BC4\u6D4B\u3002"),c.a.createElement("p",null,"\u672C\u6B21\u66F4\u65B0\u4E0D\u5F71\u54CD\u5DF2\u83B7\u5F97\u7684\u7ECF\u9A8C\u503C\u3002")):c.a.createElement("p",null,"\u5173\u5361\u4EFB\u52A1\u7684\u4EE3\u7801\u6587\u4EF6\u6709\u66F4\u65B0\u5566~",c.a.createElement("br",null)," \u66F4\u65B0\u64CD\u4F5C\u5C06\u4FDD\u7559\u5DF2\u5B8C\u6210\u7684\u8BC4\u6D4B\u8BB0\u5F55\u548C\u6210\u7EE9\u3002",c.a.createElement("br",null),"\u8FD8\u672A\u5B8C\u6210\u8BC4\u6D4B\u7684\u4EFB\u52A1\u4EE3\u7801\uFF0C\u8BF7\u81EA\u884C\u4FDD\u5B58\uFF01"))},Ru=v("IWh4"),ku=v.n(Ru),ps=v("iNZB"),tl=v.n(ps),Ll=function(ae){var Me=ae.prev_game,Ke=ae.next_game,gt=ae.shixun,Et=ae.game,tt=Ke&&(Et.status===2||gt.status<2||gt.task_pass),Ve=Object(C.h)();return c.a.createElement("div",{className:"unity-3d-nav"},Me?c.a.createElement("a",{href:"/tasks/".concat(Me).concat(Ve.search),className:"ghost-link"},"\u4E0A\u4E00\u5173"):null,tt?c.a.createElement("a",{href:"/tasks/".concat(Ke).concat(Ve.search),className:"ghost-link"},"\u4E0B\u4E00\u5173"):null,c.a.createElement(Is,{next_game:Ke,prev_game:Me,shixun:gt,game:Et}))},nl=_.a.DirectoryTree,ms=["jpg","png","gif","jpeg","jar","doc","pdf","xsl","ppt","mp3","mp4"],Iu={moveX:"40%",moveY:0,loading:!0,isError:!1,taskData:{game:{}},evalData:null,lastedGetTaskInfoTime:0,codeRepData:{content:"",language:"c",currentPath:"",paths:[],lastedUpdateTime:0,loading:!1},showEvalResult:!1,showPictureView:!1,isPictureView:!1,showDragMask:!1,webDisplayUrl:"",evaluateLoading:!1,resetVncLoading:!1,evaluateMessage:"",showNotice:!1,timestamp:"",showDocuments:!1,repos:null};function Du(ae,Me){switch(Me.type){case J:return Object(e.a)(Object(e.a)({},ae),{},{moveX:Me.payload});case ve:return Object(e.a)(Object(e.a)({},ae),{},{moveY:Me.payload});case Ye:return Object(e.a)(Object(e.a)({},ae),{},{codeRepData:Me.payload});case st:return Object(e.a)(Object(e.a)({},ae),{},{codeRepData:Me.payload});case ut:return Object(e.a)(Object(e.a)({},ae),{},{codeRepData:Object(e.a)(Object(e.a)({},ae.codeRepData),Me.payload)});case Y:return Object(e.a)(Object(e.a)({},ae),{},{evaluateLoading:!1,showEvalResult:!0});case X:return Object(e.a)(Object(e.a)({},ae),{},{timestamp:Me.payload});case te:return Object(e.a)(Object(e.a)({},ae),{},{showEvalResult:!1});case xe:return Object(e.a)(Object(e.a)({},ae),{},{loading:!0});case Le:return Object(e.a)(Object(e.a)({},ae),Me.payload);case he:return Object(e.a)(Object(e.a)({},ae),{},{showDragMask:Me.payload});case $:return Object(e.a)(Object(e.a)({},ae),{},{loading:!1,isError:!0});case oe:return Object(e.a)(Object(e.a)({},ae),Me.payload);case Re:return Object(e.a)(Object(e.a)({},ae),{},{evaluateLoading:!0});case qe:return Object(e.a)(Object(e.a)({},ae),{},{evaluateLoading:!1});case At:return Object(e.a)(Object(e.a)({},ae),{},{evaluateMessage:Me.payload});case $e:return Object(e.a)(Object(e.a)({},ae),{},{showDocuments:Me.payload});case wt:return Object(e.a)(Object(e.a)({},ae),Me.payload);case cn:return Object(e.a)(Object(e.a)({},ae),{},{showNotice:!0});case qt:return Object(e.a)(Object(e.a)({},ae),{},{showNotice:!1});case Vt:return Object(e.a)(Object(e.a)({},ae),{},{showPictureView:!1});case dn:return Object(e.a)(Object(e.a)({},ae),{},{showPictureView:!0});case ln:return Object(e.a)(Object(e.a)({},ae),{},{resetVncLoading:Me.payload});default:throw new Error}}var rl=F.default=function(ae){var Me,Ke=ae.match,gt=ae.history,Et=Object(s.a)(ae,["match","history"]);console.log("props:",Et);var tt=Object(C.i)(),Ve=Object(C.h)().query,bt=Object(E.useReducer)(Du,Iu),mt=Object(n.a)(bt,2),ot=mt[0],ct=mt[1],Pt=Object(E.useState)(tt.taskId),kt=Object(n.a)(Pt,2),Tt=kt[0],Nt=kt[1],Ft=Object(E.useRef)(),Yt=Object(E.useRef)(),Jt=Object(E.useRef)(),pn=Object(E.useState)(!1),xn=Object(n.a)(pn,2),tn=xn[0],nn=xn[1],jt=gt.location;Object(E.useEffect)(function(){console.log("_params:",tt),Nt(tt.taskId)},[tt]);var vn=ot.moveX,nt=ot.taskData,Ht=ot.moveY,rn=ot.evalData,sn=ot.showEvalResult,bn=ot.codeRepData,On=ot.loading,fn=ot.evaluateLoading,Zt=ot.evaluateMessage,$t=ot.showDocuments,Qt=ot.repos,mn=ot.showPictureView,jn=ot.showNotice,Dn=ot.webDisplayUrl,Xt=ot.isPictureView,Mn=ot.resetVncLoading,ir=ot.timestamp,sr=ot.lastedGetTaskInfoTime,er=ot.showDragMask,qn=nt.st,an=nt.challenge,Vn=nt.shixun,Fr=nt.is_teacher,Gr=nt.game,lr=nt.has_answer,Ra=nt.vnc_url,ja=nt.git_url,ci=nt.user,ra=nt.myshixun,Na=nt.discusses_count,Ri=nt.user_praise,xi=nt.praise_count,ki=nt.tpm_cases_modified,Li=nt.tpm_modified,ga=nt.tpm_script_modified,po=nt.mirror_name,mo=nt.mirror_description,dr=nt.tomcat_url,Nn=nt.unity_3d_routes,un=nt.with_code_file,kr=nt.unity_3d_result,va=nt.next_game,Jn=nt.prev_game,Hn=bn.currentPath,xr=bn.paths,aa=bn.content,Pr=bn.language,Fa=bn.lastedUpdateTime,ko=(Li||ga)&&qn===0,lo=(ki||ko)&&ra.system_tip===!0,Pi=(po||[]).indexOf("Html")!==-1,t=Object(E.useMemo)(function(){return Hn&&xr?xr.indexOf(Hn)>=0:!1},[Hn,xr]),p=Object(E.useMemo)(function(){return Nn&&!un||(an==null?void 0:an.thiry_party)||Ra},[Ra,un,Nn]);Object(E.useEffect)(function(){if(Nn&&un){ct({type:Re});var Kn=En.a.subscribe("unity3d-load-end",function(){ct({type:qe})});return Kn}},[Tt,Nn,an==null?void 0:an.thiry_party,un,ct]);function O(Kn){return A.apply(this,arguments)}function A(){return A=Object(l.a)(y.a.mark(function Kn(Bn){var Wn,_r,Ln,Nr,Ea,Br;return y.a.wrap(function(Lr){for(;;)switch(Lr.prev=Lr.next){case 0:return Lr.prev=0,Lr.next=3,Object(pe.n)(Tt);case 3:if(Wn=Lr.sent,_r=Wn.status,!(_r===401)){Lr.next=9;break}return Lr.abrupt("return");case 9:if(!(_r===-3)){Lr.next=13;break}Object(Ee.b)({onCancel:function(){window.location.href="/"}}),Lr.next=26;break;case 13:if(!(_r===403)){Lr.next=17;break}gt.replace("/403"),Lr.next=26;break;case 17:if(!(_r===404)){Lr.next=22;break}return gt.replace("/404"),Lr.abrupt("return");case 22:Ln=Wn.st,Nr=Wn.challenge.path,Ea={loading:!1,isError:!1,taskData:Wn,lastedGetTaskInfoTime:new Date().getTime(),codeRepData:bn},Ln===0&&Nr&&(Br=Nr.split("\uFF1B").filter(function(Ba){return!!Ba}),Ea.codeRepData.currentPath=Br[0],Ea.codeRepData.paths=Br,Ea.codeRepData.lastedUpdateTime=0),Bn||ct({type:oe,payload:Ea});case 26:Lr.next=32;break;case 28:Lr.prev=28,Lr.t0=Lr.catch(0),console.log(Lr.t0),Bn||ct({type:$});case 32:case"end":return Lr.stop()}},Kn,null,[[0,28]])})),A.apply(this,arguments)}Object(E.useEffect)(function(){var Kn=!1;return O(Kn),function(){Kn=!0}},[ct,Tt]),Object(E.useEffect)(function(){var Kn=!1;function Bn(){return Wn.apply(this,arguments)}function Wn(){return Wn=Object(l.a)(y.a.mark(function _r(){var Ln,Nr,Ea,Br,fi,Lr;return y.a.wrap(function(_o){for(;;)switch(_o.prev=_o.next){case 0:if(ct({type:Ye,payload:Object(e.a)(Object(e.a)({},bn),{},{loading:!0})}),!(Nn&&!un||an!=null&&an.thiry_party)){_o.next=3;break}return _o.abrupt("return");case 3:return _o.next=5,Object(pe.j)(Tt,{path:Hn});case 5:if(Ln=_o.sent,!Kn)if(Ln.status===0)r.b.info(Ln.message),ct({type:st,payload:Object(e.a)(Object(e.a)({},bn),{},{loading:!1})});else{try{(Ln==null?void 0:Ln.file_type)==="txt"?Nr=((Ea=Nr)===null||Ea===void 0?void 0:Ea.length)===0?Nr:window.decodeURIComponent(escape(window.atob(Ln==null||((Br=Ln.content)===null||Br===void 0)?void 0:Br.content))):Nr=Ln==null||((fi=Ln.content)===null||fi===void 0)?void 0:fi.content}catch(Ks){Nr=window.atob(Ln==null||((Lr=Ln.content)===null||Lr===void 0)?void 0:Lr.content),r.b.warn("\u8BF7\u786E\u8BA4\u6587\u4EF6\u5B57\u7B26\u96C6\u7F16\u7801\u662F\u5426\u4E3AUTF-8"),console.log("err:",Ks)}ct({type:st,payload:Object(e.a)(Object(e.a)({},bn),{},{content:Nr,language:Ln.language,file_type:Ln.file_type,filename:Ln.filename,lastedUpdateTime:0,loading:!1})})}case 7:case"end":return _o.stop()}},_r)})),Wn.apply(this,arguments)}if(qn===0&&Hn&&Vn.hide_code!==1)return Bn(),function(){Kn=!0}},[qn,Hn,sr,ir]);var N=function(){var Kn=Object(l.a)(y.a.mark(function Bn(){var Wn,_r,Ln,Nr=arguments;return y.a.wrap(function(Br){for(;;)switch(Br.prev=Br.next){case 0:if(Wn=Nr.length>0&&Nr[0]!==void 0?Nr[0]:0,console.log("lastedUpdateTime:",t,Wn),!(qn===0&&Fa>0&&t||Wn)){Br.next=10;break}return _r=localStorage.getItem("stat")?{stat:"newest"}:{},localStorage.removeItem("stat"),Br.next=7,Object(pe.L)(ra.identifier,Object(e.a)({path:Hn,evaluate:Wn,content:aa,game_id:Gr.id},_r));case 7:return Ln=Br.sent,ct({type:ut,payload:{lastedUpdateTime:0}}),Br.abrupt("return",Ln);case 10:return Br.abrupt("return",!0);case 11:case"end":return Br.stop()}},Bn)}));return function(){return Kn.apply(this,arguments)}}(),V=Object(E.useCallback)(function(){Gr&&(Gr.status!==2&&En.a.publish("update-cost-time"));try{if(ra!=null&&ra.identifier){var Kn={path:Hn,evaluate:0,content:aa,game_id:Gr.id,stat:"newest"},Bn={type:"application/json"},Wn=new Blob([JSON.stringify(Kn)],Bn);window.navigator.sendBeacon("".concat(Ia.a.API_SERVER,"/api/myshixuns/").concat(ra==null?void 0:ra.identifier,"/update_file.json"),Wn)}}catch(_r){}N()},[Gr.status,N]);Object(E.useEffect)(function(){V()},[jt]);function re(){V()}Object(E.useEffect)(function(){var Kn=En.a.subscribe("unlock-test-case",function(){var Bn;u.a.confirm((Bn={centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:c.a.createElement(cu,{score:an.score,is_teacher:Fr})},Object(f.a)(Bn,"centered",!0),Object(f.a)(Bn,"onOk",fe),Bn))});return Kn},[fe,an,Fr]);var fe=Object(E.useCallback)(Object(l.a)(y.a.mark(function Kn(){var Bn,Wn,_r,Ln,Nr;return y.a.wrap(function(Br){for(;;)switch(Br.prev=Br.next){case 0:return Br.next=2,Object(pe.K)(Gr.identifier);case 2:if(Bn=Br.sent,Wn=Bn.test_sets,_r=Bn.message,Ln=Bn.status,!(Ln===-1)){Br.next=7;break}return r.b.info(_r),Br.abrupt("return");case 7:Nr=nt.user.grade,nt.user.grade=Nr-an.score*2,nt.test_sets=Wn,nt.game.test_sets_view=!0,ct({type:Le,payload:{taskData:nt}});case 12:case"end":return Br.stop()}},Kn)})),[Gr,an,ct]);function ge(Kn){for(var Bn=document.getElementsByTagName("iframe"),Wn=0;Wn<Bn.length;Wn++)Bn[Wn].style["pointer-events"]=Kn}Object(E.useEffect)(function(){if(!p||Ra){function Kn(Wn){Ft.current&&ct({type:J,payload:Wn.pageX}),Yt.current&&(ge("none"),ct({type:ve,payload:Wn.pageY}))}function Bn(){ge("auto"),Ft.current=!1,Yt.current=!1,ct({type:he,payload:!1}),document.onselectstart=null}return document.addEventListener("mousemove",Kn),document.addEventListener("mouseup",Bn),function(){document.removeEventListener("mousemove",Kn),document.removeEventListener("mouseup",Bn)}}},[Yt.current,Ft.current,p,ct]);function Se(Kn){var Bn=nt.user.grade;nt.user.grade=Bn-Kn,ct({type:Le,payload:{taskData:nt}})}Jt.current=function(){ot.moveX=ot.moveX!==.01?.01:"40%",ct({type:J,payload:ot.moveX})};function Je(){p?Jt.current():(document.onselectstart=function(){return!1},Ft.current=!0,ct({type:he,payload:!0}))}function at(){document.onselectstart=function(){return!1},Yt.current=!0,(nt!=null&&nt.vnc_url||nt!=null&&nt.windows_vnc||nt!=null&&nt.linux_vnc||nt!=null&&nt.virtual_machine||(Vn==null?void 0:Vn.hide_code)===2)&&ct({type:he,payload:!0})}function Dt(Kn){Kn===.01?ct({type:ve,payload:0}):ct({type:ve,payload:.01})}function Ot(Kn){Kn===0?ct({type:ve,payload:"100%"}):ct({type:ve,payload:0})}Object(E.useEffect)(function(){return window.addEventListener("beforeunload",V),function(){window.removeEventListener("beforeunload",V)}},[V]),Object(E.useEffect)(function(){var Kn=En.a.subscribe("vnc-enlarge",function(){Jt.current()});return Kn},[]);function Gt(){N()}function en(){return yn.apply(this,arguments)}function yn(){return yn=Object(l.a)(y.a.mark(function Kn(){var Bn,Wn,_r;return y.a.wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:return Nr.next=2,Object(pe.G)(Tt,{path:Hn});case 2:Bn=Nr.sent,Wn=Bn.content,_r=Bn.language,ct({type:st,payload:Object(e.a)(Object(e.a)({},bn),{},{content:Wn,language:_r,lastedUpdateTime:0,loading:!1})});case 5:case"end":return Nr.stop()}},Kn)})),yn.apply(this,arguments)}function Sn(){return Fn.apply(this,arguments)}function Fn(){return Fn=Object(l.a)(y.a.mark(function Kn(){var Bn,Wn;return y.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.next=2,Object(pe.B)(nt==null||((Bn=nt.myshixun)===null||Bn===void 0)?void 0:Bn.identifier,{});case 2:return Wn=Ln.sent,O(),Ln.abrupt("return",Wn);case 5:case"end":return Ln.stop()}},Kn)})),Fn.apply(this,arguments)}function kn(){return Zn.apply(this,arguments)}function Zn(){return Zn=Object(l.a)(y.a.mark(function Kn(){var Bn,Wn,_r;return y.a.wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:return Nr.next=2,Object(pe.D)(Tt,{path:Hn});case 2:Bn=Nr.sent,Wn=Bn.content,_r=Bn.language,ct({type:st,payload:Object(e.a)(Object(e.a)({},bn),{},{content:Wn,language:_r,lastedUpdateTime:0,loading:!1})});case 5:case"end":return Nr.stop()}},Kn)})),Zn.apply(this,arguments)}Object(E.useEffect)(function(){if(qn===0&&an&&an.path){var Kn=an.path.split("\uFF1B").filter(function(Bn){return!!Bn});ct({type:ut,payload:{currentPath:Kn[0],paths:Kn}})}},[an,qn]),Object(E.useEffect)(function(){Vn&&Object(Ee.z)(Vn.name||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199")},[Vn]);function Or(){return cr.apply(this,arguments)}function cr(){return cr=Object(l.a)(y.a.mark(function Kn(){var Bn,Wn,_r;return y.a.wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:return Nr.next=2,Object(pe.z)(Tt);case 2:Bn=Nr.sent,Wn=Bn.praise_count,_r=Bn.praise,nt.praise_count=Wn,nt.user_praise=_r,ct({type:Le,payload:{taskData:nt}});case 7:case"end":return Nr.stop()}},Kn)})),cr.apply(this,arguments)}var $r=Object(E.useCallback)(function(Kn){function Bn(_r){return Wn.apply(this,arguments)}function Wn(){return Wn=Object(l.a)(y.a.mark(function _r(Ln){return y.a.wrap(function(Ea){for(;;)switch(Ea.prev=Ea.next){case 0:try{window.navigator.sendBeacon("".concat(Ia.a.API_SERVER,"/api/tasks/").concat(Tt,"/cost_time.json?time=").concat(Ln),{})}catch(Br){}case 1:case"end":return Ea.stop()}},_r)})),Wn.apply(this,arguments)}Bn(Kn)},[Tt]);function Ua(Kn){return pi.apply(this,arguments)}function pi(){return pi=Object(l.a)(y.a.mark(function Kn(Bn){return y.a.wrap(function(_r){for(;;)switch(_r.prev=_r.next){case 0:return _r.next=2,Object(pe.H)(Tt,Vn.id,Bn);case 2:nt.game.star=Bn,ct({type:Le,payload:{taskData:nt}});case 4:case"end":return _r.stop()}},Kn)})),pi.apply(this,arguments)}function oi(){return eo.apply(this,arguments)}function eo(){return eo=Object(l.a)(y.a.mark(function Kn(){var Bn,Wn;return y.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:if(Qt){Ln.next=8;break}return Ln.next=3,Object(pe.m)(ra.identifier);case 3:Bn=Ln.sent,Wn=Bn.trees,ct({type:wt,payload:{showDocuments:!0,repos:Object(yr.c)(Wn)}}),Ln.next=9;break;case 8:ct({type:$e,payload:!0});case 9:case"end":return Ln.stop()}},Kn)})),eo.apply(this,arguments)}function Yi(Kn){return si.apply(this,arguments)}function si(){return si=Object(l.a)(y.a.mark(function Kn(Bn){var Wn,_r,Ln;return y.a.wrap(function(Ea){for(;;)switch(Ea.prev=Ea.next){case 0:return Wn=Bn.props,_r=Wn.children,Ln=Wn.eventKey,Ea.abrupt("return",new Promise(function(){var Br=Object(l.a)(y.a.mark(function fi(Lr){var Ba,_o,Ks;return y.a.wrap(function(as){for(;;)switch(as.prev=as.next){case 0:return _r&&_r.length>0&&Lr(),as.next=3,Object(pe.m)(ra.identifier,{path:Ln});case 3:Ba=as.sent,_o=Ba.trees,Ks=Object(yr.e)(Qt,Ln,Object(yr.c)(_o,Ln)),ct({type:wt,payload:{repos:Object(w.a)(Ks)}}),Lr();case 8:case"end":return as.stop()}},fi)}));return function(fi){return Br.apply(this,arguments)}}()));case 2:case"end":return Ea.stop()}},Kn)})),si.apply(this,arguments)}function to(){ct({type:$e,payload:!1})}function Hi(Kn){var Bn=Kn.gold,Wn=Kn.experience,_r=Kn.next_game,Ln=Kn.next_shixun,Nr=Kn.subject_done,Ea=Object(s.a)(Kn,["gold","experience","next_game","next_shixun","subject_done"]),Br=Ea.challenge_chooses_count===Ea.choose_correct_num,fi={had_submmit:!0,test_sets:Ea.test_sets,challenge_chooses_count:Ea.challenge_chooses_count,choose_correct_num:Ea.choose_correct_num};nt.choose_test_cases=fi,Br&&(nt.game.status=2,nt.next_game=_r,nt.user.grade+=Bn),Br&&Gr.status!==2&&En.a.publish("update-cost-time"),ct({type:Le,payload:{taskData:nt,evalData:{gold:Bn,experience:Wn,next_game:_r,next_shixun:Ln,subject_done:Nr},showEvalResult:Br}}),En.a.publish("eval-code-finish")}function Ii(){return mi.apply(this,arguments)}function mi(){return mi=Object(l.a)(y.a.mark(function Kn(){var Bn,Wn,_r,Ln,Nr,Ea,Br,fi,Lr,Ba,_o,Ks,go,as,Nu,hu;return y.a.wrap(function(co){for(;;)switch(co.prev=co.next){case 0:return co.prev=0,ct({type:Re}),co.next=4,N(1);case 4:if(_r=co.sent,Ln=_r.resubmit,Nr=_r.sec_key,Ea=_r.content_modified,!(_r.status&&_r.status<0)){co.next=10;break}return En.a.publish("eval-code-finish"),ct({type:Le,payload:{evaluateLoading:!1}}),co.abrupt("return");case 10:return Br={sec_key:Nr,resubmit:Ln,first:1,content_modified:Ea},Ve.type==="exercises"&&(Br.extras={exercise_id:Ve.exercisesId,question_id:Ve.questionId,challenge_id:(fi=nt.challenge)===null||fi===void 0?void 0:fi.id,subject_id:Ve.subject_id||""}),co.next=14,Object(pe.g)(Tt,Br);case 14:if(Lr=co.sent,!(Lr!=null&&(Bn=Lr.data)!==null&&Bn!==void 0&&(Wn=Bn.data_list)!==null&&Wn!==void 0&&Wn.length)){co.next=18;break}return En.a.publish("pod-restrict-data",{identifier:Lr==null||((Ba=Lr.data)===null||Ba===void 0)?void 0:Ba.identifier,data_list:Lr==null||((_o=Lr.data)===null||_o===void 0)?void 0:_o.data_list}),co.abrupt("return");case 18:if(!(Lr.status===-1&&Ve.type==="exercises")){co.next=21;break}return window.parent.location.href="/classrooms/".concat(jt.query.coursesId,"/exercise/").concat(jt.query.exercisesId,"/detail"),co.abrupt("return");case 21:return Lr.status===1&&(hu=function(){return hu=Object(l.a)(y.a.mark(function Ju(pu,Lu,Zu){var Pu,ju,qu,Xi,mu,$u,Uu,Fu,Bu,ec,Ku,Hu,Wu,Xu;return y.a.wrap(function(Fl){for(;;)switch(Fl.prev=Fl.next){case 0:return ju=Zu++*pu,ju/1e3>Lu&&(as=!0),Fl.next=4,Object(pe.s)(Tt,{resubmit:Ln,time_out:as,port:Lr.port,sec_key:Nr,challenge_id:nt==null||((Pu=nt.challenge)===null||Pu===void 0)?void 0:Pu.id,subject_id:Ve.subject_id||""});case 4:qu=Fl.sent,Xi=qu,mu=Xi.status,$u=Xi.running_code_message,Uu=Xi.port,Fu=Xi.web_route,ct({type:At,payload:$u}),+mu>-1||ju/1e3>Lu?(Gr.status!==2&&mu===2&&(nt.game.status=2,nt.user.grade+=Xi.gold,En.a.publish("update-cost-time")),nt.test_sets=Xi.test_sets||[],nt.last_compile_output=Xi.last_compile_output,nt.test_sets_count=Xi.test_sets_count,nt.sets_error_count=Xi.sets_error_count,nt.record_consume_time=Xi.record_consume_time,nt.next_game=Xi.next_game,nt.prev_game=Xi.prev_game,nt.game_report_id=Xi.game_report_id,Bu="",ec=po.indexOf("Web")!==-1||po.indexOf("JFinal")!==-1,ec&&Uu!=-1&&Fu&&(Bu="".concat(dr,":").concat(Uu,"/").concat(Fu)),Ku=Object(yr.d)(Xi.test_sets),Hu=Xi.picture>0&&Ku,Wu=mu===2&&!as,as?r.b.info("\u672C\u6B21\u8BC4\u6D4B\u8D85\u65F6"):Wu||r.b.info("\u8BC4\u6D4B\u672A\u901A\u8FC7\uFF0C\u8BE6\u60C5\u53C2\u89C1\u201C\u6D4B\u8BD5\u7ED3\u679C\u201D"),Xu={taskData:nt,evalData:{gold:Xi.gold,experience:Xi.experience,next_game:Xi.next_game,next_shixun:Xi.next_shixun},evaluateLoading:!1,evaluateMessage:"",webDisplayUrl:Bu,showPictureView:Nn||an!=null&&an.thiry_party?!1:Hu,isPictureView:Hu},Nn&&un||an!=null&&an.thiry_party?(En.a.publish("evaluate-unity3d-result",{state:"user",data:{user:ci}}),En.a.publish("evaluate-unity3d-finish"),(kr||Ku)&&En.a.publish("evaluate-unity3d-result",Xi.unity_3d_result)):Xu.showEvalResult=Wu,ct({type:Le,payload:Xu}),En.a.publish("eval-code-finish")):setTimeout(function(){Nu(pu,an.exec_time+11,Zu++)},pu);case 9:case"end":return Fl.stop()}},Ju)})),hu.apply(this,arguments)},Nu=function(Ju,pu,Lu){return hu.apply(this,arguments)},Ks=1,go=1e3,as=!1,Nu(go,an.exec_time+11,Ks++)),co.abrupt("return",res);case 25:co.prev=25,co.t0=co.catch(0),console.log("-------eval code",co.t0);case 28:case"end":return co.stop()}},Kn,null,[[0,25]])})),mi.apply(this,arguments)}function di(Kn){ct({type:ut,payload:{content:Kn,lastedUpdateTime:new Date().getTime()}})}function uo(){ct({type:te})}function _s(){ct({type:Vt})}function Mr(){ct({type:dn})}function Hr(){ct({type:cn})}function li(Kn,Bn){return Qa.apply(this,arguments)}function Qa(){return Qa=Object(l.a)(y.a.mark(function Kn(Bn,Wn){var _r,Ln,Nr,Ea;return y.a.wrap(function(fi){for(;;)switch(fi.prev=fi.next){case 0:if(_r=Wn.node,nn(!0),!_r.isLeaf){fi.next=9;break}return Ln=Bn[0],Nr=Ln.split(".").pop().toLowerCase(),fi.next=7,N();case 7:Ea=fi.sent,ct({type:ut,payload:{currentPath:Ln}});case 9:setTimeout(function(){nn(!1)},500);case 10:case"end":return fi.stop()}},Kn)})),Qa.apply(this,arguments)}function no(Kn){return ro.apply(this,arguments)}function ro(){return ro=Object(l.a)(y.a.mark(function Kn(Bn){var Wn;return y.a.wrap(function(Ln){for(;;)switch(Ln.prev=Ln.next){case 0:return Ln.next=2,N();case 2:Wn=Ln.sent,console.log("resres:",Wn);debugger;ct({type:ut,payload:{currentPath:Bn}});case 6:case"end":return Ln.stop()}},Kn)})),ro.apply(this,arguments)}function Qi(){nt.myshixun.system_tip=!0,ct({type:Le,payload:{taskData:nt,showNotice:!1}})}function Ko(Kn,Bn){nt.challenge.path=Kn,nt.myshixun.system_tip=!1,ct({type:Le,payload:{taskData:Object(e.a)(Object(e.a)({},nt),{},{tpm_cases_modified:!1,tpm_modified:!1,tpm_script_modified:!1}),showNotice:!1,timestamp:Bn}})}function Wi(){ct({type:qt})}function qo(){return rs.apply(this,arguments)}function rs(){return rs=Object(l.a)(y.a.mark(function Kn(){var Bn,Wn,_r,Ln,Nr,Ea,Br,fi;return y.a.wrap(function(Ba){for(;;)switch(Ba.prev=Ba.next){case 0:if(Ba.prev=0,ct({type:ln,payload:!0}),En.a.publish("vnc-reseting"),!(nt!=null&&nt.windows_vnc||nt!=null&&nt.virtual_machine)){Ba.next=13;break}return En.a.publish("reset-linux-windows-loading"),Ba.next=7,Object(pe.F)({myshixunId:nt==null||((_r=nt.myshixun)===null||_r===void 0)?void 0:_r.identifier,game_id:nt==null?void 0:nt.game.id});case 7:Wn=Ba.sent,Ln=Wn.data.link_url,nt.shixun.windows_vnc=Ln+"&timestamp="+new Date().getTime(),nt.windows_vnc++,Ba.next=28;break;case 13:if(!(nt!=null&&nt.linux_vnc)){Ba.next=23;break}return En.a.publish("reset-linux-windows-loading"),Ba.next=17,Object(pe.C)({myshixunId:nt==null||((Nr=nt.myshixun)===null||Nr===void 0)?void 0:Nr.identifier,game_id:nt==null?void 0:nt.game.id});case 17:Wn=Ba.sent,Ea=Wn.data.link_url,nt.shixun.windows_vnc=Ea+"&timestamp="+new Date().getTime(),nt.linux_vnc++,Ba.next=28;break;case 23:return Ba.next=25,Object(pe.E)({myshixunId:nt==null||((Br=nt.myshixun)===null||Br===void 0)?void 0:Br.identifier,game_id:nt==null?void 0:nt.game.id});case 25:Wn=Ba.sent,fi=Wn.data.link_url,nt.vnc_url=fi+"&timestamp="+new Date().getTime();case 28:En.a.publish("vnc-reseting-done",Wn),nt!=null&&(Bn=nt.challenge)!==null&&Bn!==void 0&&Bn.thiry_party&&En.a.publish("reset-linux-windos-vnc"),ct({type:Le,payload:{taskData:nt,resetVncLoading:!1}}),Ba.next=36;break;case 33:Ba.prev=33,Ba.t0=Ba.catch(0),console.log(Ba.t0);case 36:case"end":return Ba.stop()}},Kn,null,[[0,33]])})),rs.apply(this,arguments)}function vl(Kn){return al.apply(this,arguments)}function al(){return al=Object(l.a)(y.a.mark(function Kn(Bn){var Wn,_r,Ln,Nr,Ea,Br;return y.a.wrap(function(Lr){for(;;)switch(Lr.prev=Lr.next){case 0:if(Wn=Bn.GameState,_r=Bn.Data,Ln=Bn.challenge,!(Ln==="info")){Lr.next=5;break}En.a.publish("evaluate-unity3d-result",{state:"3d_callback",data:{challenge_info:Object(e.a)({},nt.challenge)}}),Lr.next=15;break;case 5:if(!(Wn==="Success")){Lr.next=15;break}if(!(kr||!un)){Lr.next=14;break}return Lr.next=9,Object(pe.I)(Tt,Ps.Base64.encode(Tt+new Date().getTime()),_r);case 9:Nr=Lr.sent,Ea=Nr.status,Br=Nr.data,Ea==0&&(Gr.status!==2&&(nt.game.status=2,nt.user.grade+=Br.gold,En.a.publish("update-cost-time")),En.a.publish("evaluate-unity3d-result",{state:"userAndtime",data:{user:ci,open_time:Br.open_time,end_time:Br.end_time}}),ct({type:Le,payload:{taskData:nt,evalData:{gold:Br.gold,experience:Br.experience,next_game:Br.next_game},evaluateLoading:!1,showEvalResult:!0}})),Lr.next=15;break;case 14:ct({type:Y});case 15:case"end":return Lr.stop()}},Kn)})),al.apply(this,arguments)}function Vu(){}function Io(){return Pl.apply(this,arguments)}function Pl(){return Pl=Object(l.a)(y.a.mark(function Kn(){var Bn,Wn,_r,Ln,Nr,Ea,Br,fi,Lr,Ba,_o;return y.a.wrap(function(go){for(;;)switch(go.prev=go.next){case 0:if(!(nt!=null&&nt.windows_vnc||nt!=null&&nt.virtual_machine)){go.next=6;break}return go.next=3,Object(pe.d)(nt==null||((Nr=nt.myshixun)===null||Nr===void 0)?void 0:Nr.identifier,nt==null||((Ea=nt.game)===null||Ea===void 0)?void 0:Ea.id);case 3:Ln=go.sent,go.next=15;break;case 6:if(!(nt!=null&&nt.linux_vnc||(Vn==null?void 0:Vn.webssh)===3)){go.next=12;break}return go.next=9,Object(pe.a)(nt==null||((Br=nt.myshixun)===null||Br===void 0)?void 0:Br.identifier,nt==null||((fi=nt.game)===null||fi===void 0)?void 0:fi.id);case 9:Ln=go.sent,go.next=15;break;case 12:return go.next=14,Object(pe.c)(nt==null||((Lr=nt.myshixun)===null||Lr===void 0)?void 0:Lr.identifier,nt==null||((Ba=nt.game)===null||Ba===void 0)?void 0:Ba.id);case 14:Ln=go.sent;case 15:return(Bn=Ln)!==null&&Bn!==void 0&&(Wn=Bn.data)!==null&&Wn!==void 0&&Wn.remaining_time&&En.a.publish("update-windows-time",(_o=Ln)===null||_o===void 0?void 0:_o.data),go.abrupt("return",(_r=Ln)===null||_r===void 0?void 0:_r.data);case 17:case"end":return go.stop()}},Kn)})),Pl.apply(this,arguments)}var jl=typeof vn=="number"&&vn!==.01?"".concat(vn,"px"):"40%",Mu="calc(100% - 4px - ".concat(jl,")"),Yu=(Me={game:Gr,taskId:Tt,user_praise:Ri,praise_count:xi,st:qn,challenge:an,rank_name:nt.rank_name,shixun:Vn,is_teacher:Fr,has_answer:lr,unity_3d_routes:Nn,with_code_file:un,onEvaluateCallback:Vu,onGetUnity3dMessage:vl},Object(f.a)(Me,"taskId",Tt),Object(f.a)(Me,"myshixun",ra),Object(f.a)(Me,"user",ci),Object(f.a)(Me,"discusses_count",Na),Object(f.a)(Me,"onPlusOrCancelPraise",Or),Object(f.a)(Me,"minuxUserGrade",Se),Object(f.a)(Me,"taskData",nt),Me),Qu={showNotice:jn||(ki||ko)&&ra.system_tip===!1,tpm_cases_modified:ki,tpm_modified:Li,tpm_script_modified:ga,st:qn,taskId:Tt,myshixunId:(ra||{}).id,onNextCallback:Qi,onUpdateCallback:Ko,onUpdateFailure:Wi},Ul=Object(e.a)(Object(e.a)({},rn),{},{isPictureView:Xt,history:gt,webDisplayUrl:Dn,onShowPictureView:Mr,star:Gr&&Gr.star,onStarChange:Ua,onCloseResult:uo}),fu={lastedGetTaskInfoTime:sr,isEditPath:t,taskData:nt,codeRepData:bn,moveY:Ht,evaluateMessage:Zt,evaluateLoading:fn,isNotice:lo,isHtml:Pi,onChangePath:no,onResizeSetContainer:Dt,onEditRepCode:di,onUpdateCode:N,onResizeYStart:at,onShowDir:oi,onResetCode:en,onResetGitCode:Sn,onResizeCodeArea:Ot,onResetPassedCode:kn,onFinishDisplayHtml:Gt,onShowNotice:Hr};return c.a.createElement(E.Fragment,null,On?c.a.createElement(Di.a,{message:"\u52AA\u529B\u8BF7\u6C42\u6570\u636E\u4E2D..",className:"tpi-spin"}):c.a.createElement(E.Fragment,null,c.a.createElement("div",{className:"task-wrapper"},er&&c.a.createElement("div",{className:"draging-mask"}),c.a.createElement(As,{difficulty:an==null?void 0:an.difficulty,mirror_description:mo,history:gt,git_url:ja,shixun:Vn,taskData:nt,lastedGetTaskInfoTime:sr,onAddVncTime:Io,taskId:Tt,onBack:re,isNotice:lo,resetVncLoading:Mn,onResetVnc:qo,onResetGitCode:Sn,vnc_url:Ra,linux_vnc:nt==null?void 0:nt.linux_vnc,window_vnc_url:(nt==null?void 0:nt.windows_vnc)||(nt==null?void 0:nt.virtual_machine),onShowNotice:Hr,game:Gr,user:ci,st:qn,onUpdateCode:N,onUpdateCostTime:$r,unity_3d_routes:Nn&&!un||(an==null?void 0:an.thiry_party)}),c.a.createElement("div",{className:"tasks-body"},c.a.createElement("section",{id:"task-left-panel",className:"left-panel ".concat(Nn&&un?"has-unity-3d":""),style:{width:jl,display:vn===.01?"none":""}},c.a.createElement(fr,Yu)),c.a.createElement("section",{className:"resize-x-bar ".concat(p?"has-unity-3d":""),onClick:function(){p&&Je()},onMouseDown:function(){!p&&Je()}},c.a.createElement(du,{noDragging:p,vnc_url:Ra,moveX:vn})),c.a.createElement("section",{id:"task-right-panel",className:"right-panel ".concat(Ra||nt!=null&&nt.windows_vnc||nt!=null&&nt.linux_vnc||nt!=null&&nt.virtual_machine?"vnc":""),style:{width:Mu,minWidth:"500px"}},(an==null?void 0:an.show_type)===7?c.a.createElement(Cl.default,{taskId:Tt,taskData:nt,onEditRepCode:di}):c.a.createElement(E.Fragment,null,c.a.createElement(E.Fragment,null,qn!==1&&c.a.createElement($l,Object(a.a)({},Et,fu,{_dispatch:ct,taskData:nt,unity_3d_routes:Nn,onGetUnity3dMessage:vl,onUpdateCode:N,evaluateMessage:Zt,language:Pr,evaluateLoading:fn,with_code_file:un,onEval:Ii})),Ra||nt!=null&&nt.windows_vnc||nt!=null&&nt.virtual_machine||nt!=null&&nt.linux_vnc?null:qn===1?c.a.createElement(xl,Object(a.a)({_dispatch:ct,onEval:Hi},fu)):null))))),c.a.createElement(Rr.a,null,sn?c.a.createElement(Al,Ul):null,c.a.createElement(I.a,{className:"setting-drawer",title:null,placement:"right",width:400,closable:!1,visible:$t,onClose:to},c.a.createElement(g.a,{spinning:tn},c.a.createElement(nl,{className:"dir-tree",selectedKeys:["".concat(Hn)],treeData:Qt,onSelect:Object(Rn.throttle)(li,2e3),loadData:Yi}))),mn?c.a.createElement(su,{taskId:Tt,onHidePictureView:_s}):null,c.a.createElement(Ou,Qu))))};function cu(ae){var Me=ae.is_teacher,Ke=ae.score;return c.a.createElement(E.Fragment,null,Me?c.a.createElement(E.Fragment,null,c.a.createElement("div",null,"\u5DF2\u7ECF\u8FC7\u804C\u4E1A\u8BA4\u8BC1\u7684\u6559\u5E08\u53EF\u4EE5\u514D\u91D1\u5E01\u67E5\u770B\u9690\u85CF\u6D4B\u8BD5\u96C6\u3002"),c.a.createElement("div",null,"\u89E3\u9501\u672C\u5173\u6240\u6709\u6D4B\u8BD5\u96C6\u9700\u8981\u6263\u9664".concat(Ke*2,"\u91D1\u5E01\uFF0C\u786E\u5B9A\u8981\u89E3\u9501\u5417\uFF1F")),c.a.createElement("a",{href:"/account/certification",class:"to-certification-link",target:"_blank"},"\u7ACB\u5373\u8BA4\u8BC1")):c.a.createElement("div",null,"\u89E3\u9501\u672C\u5173\u6240\u6709\u6D4B\u8BD5\u96C6\u9700\u8981\u6263\u9664".concat(Ke*2,"\u91D1\u5E01\uFF0C\u786E\u5B9A\u8981\u89E3\u9501\u5417\uFF1F")))}function du(ae){var Me=ae.noDragging,Ke=ae.moveX,gt=ae.vnc_url;return c.a.createElement(E.Fragment,null,Me?c.a.createElement("a",{className:"trapezoid ".concat(Ke===.01?"enlarge":"")},c.a.createElement("img",{src:Ke===.01?ku.a:tl.a,alt:"resize-icon",width:20})):c.a.createElement("a",{className:"btn-resize",draggable:!1},c.a.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13",draggable:!1},c.a.createElement("path",{draggable:!1,d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"}))))}},ynwM:function(S,F,v){var w=v("MFOe"),h=w.Global;S.exports={name:"oldFF-globalStorage",read:m,write:g,each:a,remove:f,clearAll:d};var I=h.globalStorage;function m(u){return I[u]}function g(u,o){I[u]=o}function a(u){for(var o=I.length-1;o>=0;o--){var r=I.key(o);u(I[r],r)}}function f(u){return I.removeItem(u)}function d(){a(function(u,o){delete I[u]})}},yqJW:function(S,F,v){},yslc:function(S,F){S.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6MLi9IWuIHW7QUisjLAzKApiwDOhC25H3T3g8TUICVYQPwyqTBjwXOgUsD4nC4RfIhPsDIaCGBAndEHsujwQMkdBHDGoMmBAvNAtPvZlAMmUAX4GQSEMeCf0wrxgmCu+ASF3K4QnBrOVM+Cd0Cnoorw4mIw/guD6Vs4Ba74CGPBe6IInJicDZn4PgDYK4IpBbMUM+CZ0Qey5t4M3bwUhoa2YB4dNT1CHIzkoEkZzDYrrLtvkCeU0aBsULTw7WntRbtARoQrGbWHtBVw/Vpaggq9t1Rh9F7qwOM0ZA45fDgJp7PmJ0i4hCegU3AabjAc9qmF24r14JeXP+MZ4GEN+/69NmVvD0rGn8zThWYghF7XE7JFN+0wL0x5BQfVZLL60D1XE5JUNfxTqEZqC/C7Zgumeh96EvvqMP6ppNpvSCTM/ZxbAz222lousqGtIAnZkPIMETThmndmM1y/scGvB30KfFNcPH7YbLbRjwokVWHJ5v/CzltMgWq112z5HGXgQnDdVeFW2cSEmdFcU6nUfgpBJPrPsBwPhqmCsSM/EA9E3CtaXXPoJk09+4XIk9qfQrwuKhaFLNiLVodh7tQS3HX0HpB735Lj+WNTOu0Ojl0yViC/6u88MMqG7opDkaWCo2AJCBvnMtB8MqMFhQdoIPNPmDsH6+vIijCxegjrwDmvzl9BV4LAtYwr+FJEBEzHj1iML8EvVqYY2MKFL3/nSTV2sbTuWGw2jaReAbtI3VxqLuQkDMC91mGBsXXkhRhUvFcQeBBViNWENlcxocxdeSBqInRXHMLpkmU3lfbRtsbnjk8KzdgdetvlmKDVdBZ1COEuvJA/F7KSBwsfPnVyLdy9Suq6lOLUWafULXbGITYTHwZrzYos1yc9GdE8oPJDdHnXcHhCS7En2lsgzJ2kw8pLvA094YaG5teIoBoRnYFunqT43J6koz+E8mX6jLGz7KJ6KtxzvpwvQJ/5Y5XN9nhp4NLo7empTPcqepIlsaOcHF/fgnMnoUbmi6nNYUZbvUd7mzCT9iG5tfcHMvjDzOwFybYhsTmQe1PVGygPClOGzsl+F3P4UOl0jrGyfiWFRljXCBjptKlnqtbfGA3hNsixLfwyZsf4N3bO6zCDgCrTkP6FTpAbdQyBYA0JUgQbcUXvoiEsFaU26hHvwUvJgbK84ihHHF9sU6RvWDlszpgjPEgr/biNYI19jM3FJ0kRgY4dJoGVo+rxMj3ElnzasDai/flBkZ3xeZoDJyXpBCv6sQj9XZ4TBjbswUhWC/uEWP/qeqyWgmFylm0KTkRIUBWUKnTKj180AIfOl6KjmtiHVYnRB6gg8l3Cn0Pz/lO7CtFNfwtzoT2HtdRMwIvom6KtOo8/h+TafSYnZKnT6h2a/5rCvR+wcfUm7sciK66tgoVMG87PfBfCslJ3WHLZeTByEl1Pux8byA3iw+GObKsVsGD0U1Q2fpj8uuDOt0ySrsYmxt+Dj9DHCrxNPrMD/6n3p/sDHhO4PVhvbJKvU0O9bBxCLq6MFUhgX5LBWOlVwtqv5r5RhyEkcgE8v/4LME595LXQ6HUoPimniDWnsS6dz9uHFi4V1gtWb4wtNtL2rywtsTDCh+8Kop2UL8yJgNn4Hgl6eFpEqHz23Yez+qkNzruaUH7QdhSfjbxWmG8+eWuu10B1VTH3p2zOm4O6IDFw0XUW3Q6/jnKkCAyM64dv6ub8v+McUL8Oqcj0Tej0D/l2M2vfUbzNTUcPvBSFtfelEsWW9FfoX7bPwaMzNmHtuK2af3SKp0F9NHir46GkaXbwUn5cbhJ/bqMNwW/h1biF2CI7D22kjhHxTT67GqbpymzI/V57EadMVJvQWETqttDC3B8zm70FIpNvelDAD3YRpnGa0uVvwqFhHdDrnzoztbZNneFQ3pAfHClv0P1X9YfMZ9TOPiukhPFtYuhtmO2/JS2e+Qhlf3QSBBirBl06/KWj61ngYg+0OjHkCu/Fisctv83C4ptRtMTZ1cUuRxBn0ugdByHqJrYoyNytxAOamDGsQ+oTYvlicPlaUDVeZ6W7pSbtRlrrsVrUfj/ujujYU/eTyzxh/YrnoehsLvetvr+FQzQW3NpjQ3VIkcYb8nH8D/PMSWxVlzl7o9Oz1hLhbGmwkayIxPLobCCH4+NK+Ji6/RE2E4BKk6aOLe5t8PuvMJlw2VzXYS9VEYVPHSeipTROemQkPNacCE7qobvM6c/PO0WkzC3SZMBPbgyNeN9/7gvZCt7f0z6T7hKkNPedyz7GFTSoS4168MSQJX3V8Cu2CYwQ7b5zfgdSgKDwe21sSoYudurANI+9141lJQ3YfEO6HQLiN5ErodIe05MYXhYNVT5xYicWXf/JJ6COiumFth4m4aq7BpJOrsLJMD+sGixQjulihe9ZZ3uVS7s6olS+9LhEg+wPl1TGuhP5A1A3Y0GESKvla0ANajq6RiRnRqddnb+dpGFvyiXCbiKaWFPrB6nNYXe/lcSZnsYe6Hoq6Cd21KQrfGSWLgmA4Qu+V3uXdOCF9KWdCp/7tbzOexoCITlh2aT+y/ljhsHIxQqcGgjm1zcZUSwqdHQGQXk8Wi/qchSC85QRUgCRnQl/UdiQmx/cXFqF3HX0PuyqLJRG6vZGWEPro6B7opU2Dofo0lrs5Siv2rMuo6JvRW9sWBdVnmhxzCIQu9/9i1KB7CjyxvVkcAMgdCb3xhYi/nlqP+aXfOW2p2BE9EIQuhnaxQhdjuyXy+lfollAY2wMxAq/14oV18RSvDsPxG2YLdzgXXPge00+vc9kfTOgtIVfv6/Sf0C3b/T8H4i2jJ+P64d20RxCi0qCGN2FMyTKsu1KEx2J6CrudI4uXurwKR+lmQvdedC1R0j9CP7IgBFdL6Pd+v5YA5arO+anDMSPBEjKyzFyFGLVWuE73t7NbMO/8dtAtek8uP3QLScJH9aEq7jz6nkdlGrerJeboYvqCTV08YSs/m17HmeBJ1ubMMy6mFz5pP06ocvaZzZh3fhueib8d76Q9DI7jsPzyr5hz9mscqXV/bsTXdvsqdHo5e//1M4RmeOpHF9NmJnR3bOl100DI2+6yNffnnYPb4Jfrn0eEOgTvl+7G1FNrGppA/wDoOZcgTi08O1pTiiM1F3DWZASNk0JHeHq7nm7b09v99H4//Z+O/nQbX8OpoIZKKB/CqaFVBWFdeRHWXil0CtNTodPIBF1DE1HF16GSr0MVqQM9M5OXPAQT4/oJ4TKSi/6Bi+ZKSSllQndFJ339ixnfBOJbp3dkTBXiqNDNkt6H56PaLvxbL20q5iQNAT2xSEd3X9PQ3z/AV8ZDkgj9SvdXEKpyfHHEemHD1/bal2dCd8YoDXFRCxpTLSAj6/YMTRVu7tAYLs584xRatCoUPbSp6BqSiFi1FtHqUISpgqHmOGHUpiM4PSKg4jjQf87S9FNf4oqLC8WejujU/u5Of2lyRp1e1th85SDevLDTL3ERmdAd9ezpvDCcr9gFkJ5SjyxS2qMiLndwRlzKOjy1Ra/RxWvChdtF9pF67W3QIwR0Z7VxKjdX++0SNa2HXgAZG2O5DLai7FeUSjw18pQnqfL5/h1NW6LXLQch0h3mlgods8MYqGfAd6EbcmaC519jjDIGApkB34Sen3sfOPPm1hKgKJA7grXNvwx4L/SiWZ1gMu1jb5P2bwcx69Iw4J3QaegKk5G+uyhgI+ZKQw+zIhcGxAudEA56Hd1tscRaYIkx0AoYEC90vW4OCMlrBdhYExkDDQyIE7oQHZesDfSXcrH+ZQzYM+C50Atm3gBeiLLVrIGHWJcxBqRgwDOhH8+LQXnFPoB0lqJSZoMx0NwMuBc6yVPBULERhAxt7sax+hgDUjHgXuiG7LngMUuqCpkdxkBLMOBa6AW60TCTlS3RMFYnY0BKBpwLnUa9NZl3B/LLtqQkgtmSNwOOhX7whXjU1NKz5e4DdcubH4ZOJgw0Fbrl7c9fg5B7ZYKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="},zJix:function(S,F,v){S.exports={"test-set-container":"test-set-container___1ntSt","resize-y-bar":"resize-y-bar___1H5tU","code-area-container":"code-area-container___3jW3-","xterm-panel":"xterm-panel___34hmU","xterm-rows":"xterm-rows___1CWkx",xterm:"xterm___3izNA","xterm-screen":"xterm-screen___1ZnA6",navs:"navs___zbATm","arrow-right":"arrow-right___135_M","arrow-down":"arrow-down___8TNRj","flex-container":"flex-container___3V3ix",iconfont:"iconfont___3rTTR",active:"active___1saNv","action-bar-container":"action-bar-container___399DC","action-bar":"action-bar___1-saI","right-panel":"right-panel___3orFe","action-container":"action-container___1opPs","setting-drawer":"setting-drawer___1NgWi",oj:"oj___23iIP"}},zkdm:function(S,F,v){}}]);