|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[186,6,7,16,20],{"+NIl":function(h,F,o){(function(m){m(o("VrN/"))})(function(m){"use strict";m.defineMode("stex",function(a,D){"use strict";function O(f,x){f.cmdState.push(x)}function _(f){return f.cmdState.length>0?f.cmdState[f.cmdState.length-1]:null}function y(f){var x=f.cmdState.pop();x&&x.closeBracket()}function v(f){for(var x=f.cmdState,C=x.length-1;C>=0;C--){var b=x[C];if(b.name=="DEFAULT")continue;return b}return{styleIdentifier:function(){return null}}}function c(f,x,C){return function(){this.name=f,this.bracketNo=0,this.style=x,this.styles=C,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var l={};l.importmodule=c("importmodule","tag",["string","builtin"]),l.documentclass=c("documentclass","tag",["","atom"]),l.usepackage=c("usepackage","tag",["atom"]),l.begin=c("begin","tag",["atom"]),l.end=c("end","tag",["atom"]),l.label=c("label","tag",["atom"]),l.ref=c("ref","tag",["atom"]),l.eqref=c("eqref","tag",["atom"]),l.cite=c("cite","tag",["atom"]),l.bibitem=c("bibitem","tag",["atom"]),l.Bibitem=c("Bibitem","tag",["atom"]),l.RBibitem=c("RBibitem","tag",["atom"]),l.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function s(f,x){f.f=x}function r(f,x){var C;if(f.match(/^\\[a-zA-Z@]+/)){var b=f.current().slice(1);return C=l.hasOwnProperty(b)?l[b]:l.DEFAULT,C=new C,O(x,C),s(x,u),C.style}if(f.match(/^\\[$&%#{}_]/))return"tag";if(f.match(/^\\[,;!\/\\]/))return"tag";if(f.match("\\["))return s(x,function(E,A){return d(E,A,"\\]")}),"keyword";if(f.match("\\("))return s(x,function(E,A){return d(E,A,"\\)")}),"keyword";if(f.match("$$"))return s(x,function(E,A){return d(E,A,"$$")}),"keyword";if(f.match("$"))return s(x,function(E,A){return d(E,A,"$")}),"keyword";var g=f.next();if(g=="%")return f.skipToEnd(),"comment";if(g=="}"||g=="]"){if(C=_(x),C)C.closeBracket(g),s(x,u);else return"error";return"bracket"}else return g=="{"||g=="["?(C=l.DEFAULT,C=new C,O(x,C),"bracket"):/\d/.test(g)?(f.eatWhile(/[\w.%]/),"atom"):(f.eatWhile(/[\w\-_]/),C=v(x),C.name=="begin"&&(C.argument=f.current()),C.styleIdentifier())}function d(f,x,C){if(f.eatSpace())return null;if(C&&f.match(C))return s(x,r),"keyword";if(f.match(/^\\[a-zA-Z@]+/))return"tag";if(f.match(/^[a-zA-Z]+/))return"variable-2";if(f.match(/^\\[$&%#{}_]/))return"tag";if(f.match(/^\\[,;!\/]/))return"tag";if(f.match(/^[\^_&]/))return"tag";if(f.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(f.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var b=f.next();return b=="{"||b=="}"||b=="["||b=="]"||b=="("||b==")"?"bracket":b=="%"?(f.skipToEnd(),"comment"):"error"}function u(f,x){var C=f.peek(),b;return C=="{"||C=="["?(b=_(x),b.openBracket(C),f.eat(C),s(x,r),"bracket"):/[ \t\r]/.test(C)?(f.eat(C),null):(s(x,r),y(x),r(f,x))}return{startState:function(){var f=D.inMathMode?function(x,C){return d(x,C)}:r;return{cmdState:[],f}},copyState:function(f){return{cmdState:f.cmdState.slice(),f:f.f}},token:function(f,x){return x.f(f,x)},blankLine:function(f){f.f=r,f.cmdState.length=0},lineComment:"%"}}),m.defineMIME("text/x-stex","stex"),m.defineMIME("text/x-latex","stex")})},"+ua5":function(h,F,o){},"/cxE":function(h,F,o){"use strict";o.d(F,"e",function(){return D}),o.d(F,"f",function(){return O}),o.d(F,"g",function(){return _}),o.d(F,"d",function(){return v}),o.d(F,"a",function(){return c}),o.d(F,"b",function(){return l}),o.d(F,"c",function(){return s});var m=function(){function r(){this.listeners=[],this.unexpectedErrorHandler=function(d){setTimeout(function(){throw d.stack?new Error(d.message+`
|
|
|
|
|
|
`+d.stack):d},0)}}return r.prototype.emit=function(d){this.listeners.forEach(function(u){u(d)})},r.prototype.onUnexpectedError=function(d){this.unexpectedErrorHandler(d),this.emit(d)},r.prototype.onUnexpectedExternalError=function(d){this.unexpectedErrorHandler(d)},r}(),a=new m;function D(r){v(r)||a.onUnexpectedError(r);return}function O(r){v(r)||a.onUnexpectedExternalError(r);return}function _(r){if(r instanceof Error){var d=r.name,u=r.message,f=r.stacktrace||r.stack;return{$isError:!0,name:d,message:u,stack:f}}return r}var y="Canceled";function v(r){return r instanceof Error&&r.name===y&&r.message===y}function c(){var r=new Error(y);return r.name=r.message,r}function l(r){return r?new Error("Illegal argument: "+r):new Error("Illegal argument")}function s(r){return r?new Error("Illegal state: "+r):new Error("Illegal state")}},"19Vz":function(h,F,o){(function(m){m(o("VrN/"))})(function(m){m.defineOption("placeholder","",function(c,l,s){var r=s&&s!=m.Init;if(l&&!r)c.on("blur",_),c.on("change",y),c.on("swapDoc",y),m.on(c.getInputField(),"compositionupdate",c.state.placeholderCompose=function(){O(c)}),y(c);else if(!l&&r){c.off("blur",_),c.off("change",y),c.off("swapDoc",y),m.off(c.getInputField(),"compositionupdate",c.state.placeholderCompose),a(c);var d=c.getWrapperElement();d.className=d.className.replace(" CodeMirror-empty","")}l&&!c.hasFocus()&&_(c)});function a(c){c.state.placeholder&&(c.state.placeholder.parentNode.removeChild(c.state.placeholder),c.state.placeholder=null)}function D(c){a(c);var l=c.state.placeholder=document.createElement("pre");l.style.cssText="height: 0; overflow: visible",l.style.direction=c.getOption("direction"),l.className="CodeMirror-placeholder CodeMirror-line-like";var s=c.getOption("placeholder");typeof s=="string"&&(s=document.createTextNode(s)),l.appendChild(s),c.display.lineSpace.insertBefore(l,c.display.lineSpace.firstChild)}function O(c){setTimeout(function(){var l=!1,s=c.getInputField();s.nodeName=="TEXTAREA"?l=!s.value:c.lineCount()==1&&(l=!/[^\u200b]/.test(s.querySelector(".CodeMirror-line").textContent)),l?D(c):a(c)},20)}function _(c){v(c)&&D(c)}function y(c){var l=c.getWrapperElement(),s=v(c);l.className=l.className.replace(" CodeMirror-empty","")+(s?" CodeMirror-empty":""),s?D(c):a(c)}function v(c){return c.lineCount()===1&&c.getLine(0)===""}})},"1eCo":function(h,F,o){(function(m){m(o("VrN/"))})(function(m){"use strict";var a={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},D={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};m.defineMode("xml",function(O,_){var y=O.indentUnit,v={},c=_.htmlMode?a:D;for(var l in c)v[l]=c[l];for(var l in _)v[l]=_[l];var s,r;function d($,he){function de(q){return he.tokenize=q,q($,he)}var J=$.next();if(J=="<")return $.eat("!")?$.eat("[")?$.match("CDATA[")?de(x("atom","]]>")):null:$.match("--")?de(x("comment","-->")):$.match("DOCTYPE",!0,!0)?($.eatWhile(/[\w\._\-]/),de(C(1))):null:$.eat("?")?($.eatWhile(/[\w\._\-]/),he.tokenize=x("meta","?>"),"meta"):(s=$.eat("/")?"closeTag":"openTag",he.tokenize=u,"tag bracket");if(J=="&"){var fe;return $.eat("#")?$.eat("x")?fe=$.eatWhile(/[a-fA-F\d]/)&&$.eat(";"):fe=$.eatWhile(/[\d]/)&&$.eat(";"):fe=$.eatWhile(/[\w\.\-:]/)&&$.eat(";"),fe?"atom":"error"}else return $.eatWhile(/[^&<]/),null}d.isInText=!0;function u($,he){var de=$.next();if(de==">"||de=="/"&&$.eat(">"))return he.tokenize=d,s=de==">"?"endTag":"selfcloseTag","tag bracket";if(de=="=")return s="equals",null;if(de=="<"){he.tokenize=d,he.state=A,he.tagName=he.tagStart=null;var J=he.tokenize($,he);return J?J+" tag error":"tag error"}else return/[\'\"]/.test(de)?(he.tokenize=f(de),he.stringStartCol=$.column(),he.tokenize($,he)):($.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f($){var he=function(de,J){for(;!de.eol();)if(de.next()==$){J.tokenize=u;break}return"string"};return he.isInAttribute=!0,he}function x($,he){return function(de,J){for(;!de.eol();){if(de.match(he)){J.tokenize=d;break}de.next()}return $}}function C($){return function(he,de){for(var J;(J=he.next())!=null;){if(J=="<")return de.tokenize=C($+1),de.tokenize(he,de);if(J==">")if($==1){de.tokenize=d;break}else return de.tokenize=C($-1),de.tokenize(he,de)}return"meta"}}function b($,he,de){this.prev=$.context,this.tagName=he,this.indent=$.indented,this.startOfLine=de,(v.doNotIndent.hasOwnProperty(he)||$.context&&$.context.noIndent)&&(this.noIndent=!0)}function g($){$.context&&($.context=$.context.prev)}function E($,he){for(var de;;){if(!$.context)return;if(de=$.context.tagName,!v.contextGrabbers.hasOwnProperty(de)||!v.contextGrabbers[de].hasOwnProperty(he))return;g($)}}function A($,he,de){return $=="openTag"?(de.tagStart=he.column(),N):$=="closeTag"?M:A}function N($,he,de){return $=="word"?(de.tagName=he.current(),r="tag",X):v.allowMissingTagName&&$=="endTag"?(r="tag bracket",X($,he,de)):(r="error",N)}function M($,he,de){if($=="word"){var J=he.current();return de.context&&de.context.tagName!=J&&v.implicitlyClosed.hasOwnProperty(de.context.tagName)&&g(de),de.context&&de.context.tagName==J||v.matchClosing===!1?(r="tag",w):(r="tag error",Y)}else return v.allowMissingTagName&&$=="endTag"?(r="tag bracket",w($,he,de)):(r="error",Y)}function w($,he,de){return $!="endTag"?(r="error",w):(g(de),A)}function Y($,he,de){return r="error",w($,he,de)}function X($,he,de){if($=="word")return r="attribute",P;if($=="endTag"||$=="selfcloseTag"){var J=de.tagName,fe=de.tagStart;return de.tagName=de.tagStart=null,$=="selfcloseTag"||v.autoSelfClosers.hasOwnProperty(J)?E(de,J):(E(de,J),de.context=new b(de,J,fe==de.indented)),A}return r="error",X}function P($,he,de){return $=="equals"?H:(v.allowMissing||(r="error"),X($,he,de))}function H($,he,de){return $=="string"?G:$=="word"&&v.allowUnquoted?(r="string",X):(r="error",X($,he,de))}function G($,he,de){return $=="string"?G:X($,he,de)}return{startState:function($){var he={tokenize:d,state:A,indented:$||0,tagName:null,tagStart:null,context:null};return $!=null&&(he.baseIndent=$),he},token:function($,he){if(!he.tagName&&$.sol()&&(he.indented=$.indentation()),$.eatSpace())return null;s=null;var de=he.tokenize($,he);return(de||s)&&de!="comment"&&(r=null,he.state=he.state(s||de,$,he),r&&(de=r=="error"?de+" error":r)),de},indent:function($,he,de){var J=$.context;if($.tokenize.isInAttribute)return $.tagStart==$.indented?$.stringStartCol+1:$.indented+y;if(J&&J.noIndent)return m.Pass;if($.tokenize!=u&&$.tokenize!=d)return de?de.match(/^(\s*)/)[0].length:0;if($.tagName)return v.multilineTagIndentPastTag!==!1?$.tagStart+$.tagName.length+2:$.tagStart+y*(v.multilineTagIndentFactor||1);if(v.alignCDATA&&/<!\[CDATA\[/.test(he))return 0;var fe=he&&/^<(\/)?([\w_:\.-]*)/.exec(he);if(fe&&fe[1])for(;J;)if(J.tagName==fe[2]){J=J.prev;break}else if(v.implicitlyClosed.hasOwnProperty(J.tagName))J=J.prev;else break;else if(fe)for(;J;){var q=v.contextGrabbers[J.tagName];if(q&&q.hasOwnProperty(fe[2]))J=J.prev;else break}for(;J&&J.prev&&!J.startOfLine;)J=J.prev;return J?J.indent+y:$.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:v.htmlMode?"html":"xml",helperType:v.htmlMode?"html":"xml",skipAttribute:function($){$.state==H&&($.state=X)},xmlCurrentTag:function($){return $.tagName?{name:$.tagName,close:$.type=="closeTag"}:null},xmlCurrentContext:function($){for(var he=[],de=$.context;de;de=de.prev)de.tagName&&he.push(de.tagName);return he.reverse()}}}),m.defineMIME("text/xml","xml"),m.defineMIME("application/xml","xml"),m.mimeModes.hasOwnProperty("text/html")||m.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1uat":function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("MlIO"))})(this,function(m){return function(){var a=m,D=a.lib,O=D.Hasher,_=a.x64,y=_.Word,v=_.WordArray,c=a.algo;function l(){return y.create.apply(y,arguments)}var s=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],r=[];(function(){for(var u=0;u<80;u++)r[u]=l()})();var d=c.SHA512=O.extend({_doReset:function(){this._hash=new v.init([new y.init(1779033703,4089235720),new y.init(3144134277,2227873595),new y.init(1013904242,4271175723),new y.init(2773480762,1595750129),new y.init(1359893119,2917565137),new y.init(2600822924,725511199),new y.init(528734635,4215389547),new y.init(1541459225,327033209)])},_doProcessBlock:function(u,f){for(var x=this._hash.words,C=x[0],b=x[1],g=x[2],E=x[3],A=x[4],N=x[5],M=x[6],w=x[7],Y=C.high,X=C.low,P=b.high,H=b.low,G=g.high,$=g.low,he=E.high,de=E.low,J=A.high,fe=A.low,q=N.high,U=N.low,z=M.high,L=M.low,T=w.high,I=w.low,se=Y,me=X,xe=P,Ee=H,Oe=G,le=$,ge=he,ye=de,ee=J,oe=fe,Z=q,ue=U,V=z,Q=L,ae=T,K=I,j=0;j<80;j++){var k,W,we=r[j];if(j<16)W=we.high=u[f+j*2]|0,k=we.low=u[f+j*2+1]|0;else{var be=r[j-15],Te=be.high,Be=be.low,Fe=(Te>>>1|Be<<31)^(Te>>>8|Be<<24)^Te>>>7,Ue=(Be>>>1|Te<<31)^(Be>>>8|Te<<24)^(Be>>>7|Te<<25),We=r[j-2],Ve=We.high,Ge=We.low,Je=(Ve>>>19|Ge<<13)^(Ve<<3|Ge>>>29)^Ve>>>6,Re=(Ge>>>19|Ve<<13)^(Ge<<3|Ve>>>29)^(Ge>>>6|Ve<<26),Ze=r[j-7],nt=Ze.high,Ke=Ze.low,$e=r[j-16],je=$e.high,Me=$e.low;k=Ue+Ke,W=Fe+nt+(k>>>0<Ue>>>0?1:0),k=k+Re,W=W+Je+(k>>>0<Re>>>0?1:0),k=k+Me,W=W+je+(k>>>0<Me>>>0?1:0),we.high=W,we.low=k}var Pe=ee&Z^~ee&V,Se=oe&ue^~oe&Q,_e=se&xe^se&Oe^xe&Oe,ke=me&Ee^me&le^Ee&le,Le=(se>>>28|me<<4)^(se<<30|me>>>2)^(se<<25|me>>>7),Xe=(me>>>28|se<<4)^(me<<30|se>>>2)^(me<<25|se>>>7),Ae=(ee>>>14|oe<<18)^(ee>>>18|oe<<14)^(ee<<23|oe>>>9),Ye=(oe>>>14|ee<<18)^(oe>>>18|ee<<14)^(oe<<23|ee>>>9),it=s[j],lt=it.high,dt=it.low,ut=K+Ye,xt=ae+Ae+(ut>>>0<K>>>0?1:0),ut=ut+Se,xt=xt+Pe+(ut>>>0<Se>>>0?1:0),ut=ut+dt,xt=xt+lt+(ut>>>0<dt>>>0?1:0),ut=ut+k,xt=xt+W+(ut>>>0<k>>>0?1:0),ht=Xe+ke,Rt=Le+_e+(ht>>>0<Xe>>>0?1:0);ae=V,K=Q,V=Z,Q=ue,Z=ee,ue=oe,oe=ye+ut|0,ee=ge+xt+(oe>>>0<ye>>>0?1:0)|0,ge=Oe,ye=le,Oe=xe,le=Ee,xe=se,Ee=me,me=ut+ht|0,se=xt+Rt+(me>>>0<ut>>>0?1:0)|0}X=C.low=X+me,C.high=Y+se+(X>>>0<me>>>0?1:0),H=b.low=H+Ee,b.high=P+xe+(H>>>0<Ee>>>0?1:0),$=g.low=$+le,g.high=G+Oe+($>>>0<le>>>0?1:0),de=E.low=de+ye,E.high=he+ge+(de>>>0<ye>>>0?1:0),fe=A.low=fe+oe,A.high=J+ee+(fe>>>0<oe>>>0?1:0),U=N.low=U+ue,N.high=q+Z+(U>>>0<ue>>>0?1:0),L=M.low=L+Q,M.high=z+V+(L>>>0<Q>>>0?1:0),I=w.low=I+K,w.high=T+ae+(I>>>0<K>>>0?1:0)},_doFinalize:function(){var u=this._data,f=u.words,x=this._nDataBytes*8,C=u.sigBytes*8;f[C>>>5]|=128<<24-C%32,f[(C+128>>>10<<5)+30]=Math.floor(x/4294967296),f[(C+128>>>10<<5)+31]=x,u.sigBytes=f.length*4,this._process();var b=this._hash.toX32();return b},clone:function(){var u=O.clone.call(this);return u._hash=this._hash.clone(),u},blockSize:1024/32});a.SHA512=O._createHelper(d),a.HmacSHA512=O._createHmacHelper(d)}(),m.SHA512})},"24hK":function(h,F,o){"use strict";o.d(F,"a",function(){return D});var m=o("JYp7"),a=function(){function O(_){this.element=_,this.next=O.Undefined,this.prev=O.Undefined}return O.Undefined=new O(void 0),O}(),D=function(){function O(){this._first=a.Undefined,this._last=a.Undefined,this._size=0}return Object.defineProperty(O.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),O.prototype.isEmpty=function(){return this._first===a.Undefined},O.prototype.clear=function(){this._first=a.Undefined,this._last=a.Undefined,this._size=0},O.prototype.unshift=function(_){return this._insert(_,!1)},O.prototype.push=function(_){return this._insert(_,!0)},O.prototype._insert=function(_,y){var v=this,c=new a(_);if(this._first===a.Undefined)this._first=c,this._last=c;else if(y){var l=this._last;this._last=c,c.prev=l,l.next=c}else{var s=this._first;this._first=c,c.next=s,s.prev=c}this._size+=1;var r=!1;return function(){r||(r=!0,v._remove(c))}},O.prototype.shift=function(){if(this._first===a.Undefined)return;var _=this._first.element;return this._remove(this._first),_},O.prototype.pop=function(){if(this._last===a.Undefined)return;var _=this._last.element;return this._remove(this._last),_},O.prototype._remove=function(_){if(_.prev!==a.Undefined&&_.next!==a.Undefined){var y=_.prev;y.next=_.next,_.next.prev=y}else _.prev===a.Undefined&&_.next===a.Undefined?(this._first=a.Undefined,this._last=a.Undefined):_.next===a.Undefined?(this._last=this._last.prev,this._last.next=a.Undefined):_.prev===a.Undefined&&(this._first=this._first.next,this._first.prev=a.Undefined);this._size-=1},O.prototype.iterator=function(){var _,y=this._first;return{next:function(){return y===a.Undefined?m.c:(_?_.value=y.element:_={done:!1,value:y.element},y=y.next,_)}}},O.prototype.toArray=function(){for(var _=[],y=this._first;y!==a.Undefined;y=y.next)_.push(y.element);return _},O}()},"3y9D":function(h,F,o){(function(m,a){h.exports=F=a(o("Ib8C"))})(this,function(m){return function(){var a=m,D=a.lib,O=D.WordArray,_=D.Hasher,y=a.algo,v=[],c=y.SHA1=_.extend({_doReset:function(){this._hash=new O.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,s){for(var r=this._hash.words,d=r[0],u=r[1],f=r[2],x=r[3],C=r[4],b=0;b<80;b++){if(b<16)v[b]=l[s+b]|0;else{var g=v[b-3]^v[b-8]^v[b-14]^v[b-16];v[b]=g<<1|g>>>31}var E=(d<<5|d>>>27)+C+v[b];b<20?E+=(u&f|~u&x)+1518500249:b<40?E+=(u^f^x)+1859775393:b<60?E+=(u&f|u&x|f&x)-1894007588:E+=(u^f^x)-899497514,C=x,x=f,f=u<<30|u>>>2,u=d,d=E}r[0]=r[0]+d|0,r[1]=r[1]+u|0,r[2]=r[2]+f|0,r[3]=r[3]+x|0,r[4]=r[4]+C|0},_doFinalize:function(){var l=this._data,s=l.words,r=this._nDataBytes*8,d=l.sigBytes*8;return s[d>>>5]|=128<<24-d%32,s[(d+64>>>9<<4)+14]=Math.floor(r/4294967296),s[(d+64>>>9<<4)+15]=r,l.sigBytes=s.length*4,this._process(),this._hash},clone:function(){var l=_.clone.call(this);return l._hash=this._hash.clone(),l}});a.SHA1=_._createHelper(c),a.HmacSHA1=_._createHmacHelper(c)}(),m.SHA1})},4:function(h,F){},"5hvy":function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("MlIO"))})(this,function(m){return function(a){var D=m,O=D.lib,_=O.WordArray,y=O.Hasher,v=D.x64,c=v.Word,l=D.algo,s=[],r=[],d=[];(function(){for(var x=1,C=0,b=0;b<24;b++){s[x+5*C]=(b+1)*(b+2)/2%64;var g=C%5,E=(2*x+3*C)%5;x=g,C=E}for(var x=0;x<5;x++)for(var C=0;C<5;C++)r[x+5*C]=C+(2*x+3*C)%5*5;for(var A=1,N=0;N<24;N++){for(var M=0,w=0,Y=0;Y<7;Y++){if(A&1){var X=(1<<Y)-1;X<32?w^=1<<X:M^=1<<X-32}A&128?A=A<<1^113:A<<=1}d[N]=c.create(M,w)}})();var u=[];(function(){for(var x=0;x<25;x++)u[x]=c.create()})();var f=l.SHA3=y.extend({cfg:y.cfg.extend({outputLength:512}),_doReset:function(){for(var x=this._state=[],C=0;C<25;C++)x[C]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(x,C){for(var b=this._state,g=this.blockSize/2,E=0;E<g;E++){var A=x[C+2*E],N=x[C+2*E+1];A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,N=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360;var M=b[E];M.high^=N,M.low^=A}for(var w=0;w<24;w++){for(var Y=0;Y<5;Y++){for(var X=0,P=0,H=0;H<5;H++){var M=b[Y+5*H];X^=M.high,P^=M.low}var G=u[Y];G.high=X,G.low=P}for(var Y=0;Y<5;Y++)for(var $=u[(Y+4)%5],he=u[(Y+1)%5],de=he.high,J=he.low,X=$.high^(de<<1|J>>>31),P=$.low^(J<<1|de>>>31),H=0;H<5;H++){var M=b[Y+5*H];M.high^=X,M.low^=P}for(var fe=1;fe<25;fe++){var X,P,M=b[fe],q=M.high,U=M.low,z=s[fe];z<32?(X=q<<z|U>>>32-z,P=U<<z|q>>>32-z):(X=U<<z-32|q>>>64-z,P=q<<z-32|U>>>64-z);var L=u[r[fe]];L.high=X,L.low=P}var T=u[0],I=b[0];T.high=I.high,T.low=I.low;for(var Y=0;Y<5;Y++)for(var H=0;H<5;H++){var fe=Y+5*H,M=b[fe],se=u[fe],me=u[(Y+1)%5+5*H],xe=u[(Y+2)%5+5*H];M.high=se.high^~me.high&xe.high,M.low=se.low^~me.low&xe.low}var M=b[0],Ee=d[w];M.high^=Ee.high,M.low^=Ee.low}},_doFinalize:function(){var x=this._data,C=x.words,b=this._nDataBytes*8,g=x.sigBytes*8,E=this.blockSize*32;C[g>>>5]|=1<<24-g%32,C[(a.ceil((g+1)/E)*E>>>5)-1]|=128,x.sigBytes=C.length*4,this._process();for(var A=this._state,N=this.cfg.outputLength/8,M=N/8,w=[],Y=0;Y<M;Y++){var X=A[Y],P=X.high,H=X.low;P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,H=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360,w.push(H),w.push(P)}return new _.init(w,N)},clone:function(){for(var x=y.clone.call(this),C=x._state=this._state.slice(0),b=0;b<25;b++)C[b]=C[b].clone();return x}});D.SHA3=y._createHelper(f),D.HmacSHA3=y._createHmacHelper(f)}(Math),m.SHA3})},"5nXd":function(h,F,o){var m=o("MFOe"),a=m.slice,D=m.pluck,O=m.each,_=m.bind,y=m.create,v=m.isList,c=m.isFunction,l=m.isObject;h.exports={createStore:d};var s={version:"2.0.12",enabled:!1,get:function(u,f){var x=this.storage.read(this._namespacePrefix+u);return this._deserialize(x,f)},set:function(u,f){return f===void 0?this.remove(u):(this.storage.write(this._namespacePrefix+u,this._serialize(f)),f)},remove:function(u){this.storage.remove(this._namespacePrefix+u)},each:function(u){var f=this;this.storage.each(function(x,C){u.call(f,f._deserialize(x),(C||"").replace(f._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(u){return this._namespacePrefix=="__storejs_"+u+"_"},createStore:function(){return d.apply(this,arguments)},addPlugin:function(u){this._addPlugin(u)},namespace:function(u){return d(this.storage,this.plugins,u)}};function r(){var u=typeof console=="undefined"?null:console;if(!u)return;var f=u.warn?u.warn:u.log;f.apply(u,arguments)}function d(u,f,x){x||(x=""),u&&!v(u)&&(u=[u]),f&&!v(f)&&(f=[f]);var C=x?"__storejs_"+x+"_":"",b=x?new RegExp("^"+C):null,g=/^[a-zA-Z0-9_\-]*$/;if(!g.test(x))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var E={_namespacePrefix:C,_namespaceRegexp:b,_testStorage:function(N){try{var M="__storejs__test__";N.write(M,M);var w=N.read(M)===M;return N.remove(M),w}catch(Y){return!1}},_assignPluginFnProp:function(N,M){var w=this[M];this[M]=function(){var X=a(arguments,0),P=this;function H(){return w?(O(arguments,function($,he){X[he]=$}),w.apply(P,X)):void 0}var G=[H].concat(X);return N.apply(P,G)}},_serialize:function(N){return JSON.stringify(N)},_deserialize:function(N,M){if(!N)return M;var w="";try{w=JSON.parse(N)}catch(Y){w=N}return w!==void 0?w:M},_addStorage:function(N){if(this.enabled)return;this._testStorage(N)&&(this.storage=N,this.enabled=!0)},_addPlugin:function(N){var M=this;if(v(N)){O(N,function(X){M._addPlugin(X)});return}var w=D(this.plugins,function(X){return N===X});if(w)return;if(this.plugins.push(N),!c(N))throw new Error("Plugins must be function values that return objects");var Y=N.call(this);if(!l(Y))throw new Error("Plugins must return an object of function properties");O(Y,function(X,P){if(!c(X))throw new Error("Bad plugin property: "+P+" from plugin "+N.name+". Plugins should only return functions.");M._assignPluginFnProp(X,P)})},addStorage:function(N){r("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(N)}},A=y(E,s,{plugins:[]});return A.raw={},O(A,function(N,M){c(N)&&(A.raw[M]=_(A,N))}),O(u,function(N){A._addStorage(N)}),O(f,function(N){A._addPlugin(N)}),A}},"746U":function(h,F,o){"use strict";o.d(F,"d",function(){return a}),o.d(F,"j",function(){return D}),o.d(F,"i",function(){return O}),o.d(F,"h",function(){return _}),o.d(F,"e",function(){return y}),o.d(F,"k",function(){return v}),o.d(F,"l",function(){return c}),o.d(F,"a",function(){return l}),o.d(F,"f",function(){return r}),o.d(F,"g",function(){return d}),o.d(F,"m",function(){return u}),o.d(F,"c",function(){return C}),o.d(F,"b",function(){return b}),o.d(F,"n",function(){return g}),o.d(F,"o",function(){return E});var m={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function a(A){return Array.isArray?Array.isArray(A):!!(A&&typeof A.length===m.number&&A.constructor===Array)}function D(A){return typeof A===m.string||A instanceof String}function O(A){return typeof A===m.object&&A!==null&&!Array.isArray(A)&&!(A instanceof RegExp)&&!(A instanceof Date)}function _(A){return(typeof A===m.number||A instanceof Number)&&!isNaN(A)}function y(A){return A===!0||A===!1}function v(A){return typeof A===m.undefined}function c(A){return v(A)||A===null}function l(A,N){if(!A)throw new Error(N?"Unexpected type, expected '"+N+"'":"Unexpected type")}var s=Object.prototype.hasOwnProperty;function r(A){if(!O(A))return!1;for(var N in A)if(s.call(A,N))return!1;return!0}function d(A){return typeof A===m.function}function u(A,N){for(var M=Math.min(A.length,N.length),w=0;w<M;w++)f(A[w],N[w])}function f(A,N){if(D(N)){if(typeof A!==N)throw new Error("argument does not match constraint: typeof "+N)}else if(d(N)){try{if(A instanceof N)return}catch(M){}if(!c(A)&&A.constructor===N)return;if(N.length===1&&N.call(void 0,A)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function x(A){for(var N=[],M=Object.getPrototypeOf(A);Object.prototype!==M;)N=N.concat(Object.getOwnPropertyNames(M)),M=Object.getPrototypeOf(M);return N}function C(A){for(var N=[],M=0,w=x(A);M<w.length;M++){var Y=w[M];typeof A[Y]=="function"&&N.push(Y)}return N}function b(A,N){for(var M=function(H){return function(){var G=Array.prototype.slice.call(arguments,0);return N(H,G)}},w={},Y=0,X=A;Y<X.length;Y++){var P=X[Y];w[P]=M(P)}return w}function g(A){return A===null?void 0:A}function E(A){return typeof A=="undefined"?null:A}},"7Cbv":function(h,F,o){"use strict";var m=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),a=new Uint8Array(16);function D(){if(!m)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return m(a)}var O=/^(?:[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 _(u){return typeof u=="string"&&O.test(u)}for(var y=_,v=[],c=0;c<256;++c)v.push((c+256).toString(16).substr(1));function l(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,x=(v[u[f+0]]+v[u[f+1]]+v[u[f+2]]+v[u[f+3]]+"-"+v[u[f+4]]+v[u[f+5]]+"-"+v[u[f+6]]+v[u[f+7]]+"-"+v[u[f+8]]+v[u[f+9]]+"-"+v[u[f+10]]+v[u[f+11]]+v[u[f+12]]+v[u[f+13]]+v[u[f+14]]+v[u[f+15]]).toLowerCase();if(!y(x))throw TypeError("Stringified UUID is invalid");return x}var s=l;function r(u,f,x){u=u||{};var C=u.random||(u.rng||D)();if(C[6]=C[6]&15|64,C[8]=C[8]&63|128,f){x=x||0;for(var b=0;b<16;++b)f[x+b]=C[b];return f}return s(C)}var d=F.a=r},"7ahc":function(h,F,o){"use strict";o.d(F,"a",function(){return N});var m=o("k1fw"),a=o("0Owb"),D=o("+L6B"),O=o("2/Rp"),_=o("y8nQ"),y=o("Vl3Y"),v=o("tJVT"),c=o("OaEy"),l=o("2fM7"),s=o("q1tI"),r=o.n(s),d=o("VrN/"),u=o.n(d),f=o("p77/"),x=o.n(f),C=o("c5Ni"),b=o.n(C),g=l.a.Option,E={labelCol:{span:4},wrapperCol:{span:20}},A={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(M){var w=M.callback,Y=M.onCancel,X=Object(s.useState)("python"),P=Object(v.a)(X,2),H=P[0],G=P[1];function $(de){G(A[de][1])}function he(de){w(de)}return r.a.createElement(y.a,Object(a.a)({},E,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:he}),r.a.createElement(y.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},r.a.createElement(l.a,{onChange:$},Object.keys(A).map(function(de){return r.a.createElement(g,{key:de,value:de},A[de][0])}))),r.a.createElement(y.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},r.a.createElement(N,{mode:H})),r.a.createElement("div",{className:"flex-container flex-end"},r.a.createElement(O.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),r.a.createElement(O.a,{type:"ghost",onClick:Y},"\u53D6\u6D88")))};function N(M){var w=M.value,Y=M.onChange,X=M.mode,P=M.options,H=P===void 0?{}:P,G=Object(s.useRef)(),$=Object(s.useState)(),he=Object(v.a)($,2),de=he[0],J=he[1];return Object(s.useEffect)(function(){if(de){function fe(q){var U=q.getValue();Y&&Y(U)}return de.on("change",fe),function(){de.off("change",fe)}}},[de,Y]),Object(s.useEffect)(function(){de&&de.setOption("mode",X)},[de,X]),Object(s.useEffect)(function(){de&&((w!==de.getValue()||w==="")&&setTimeout(function(){de.setValue(w||" ")},300))},[de,w]),Object(s.useEffect)(function(){if(G.current&&!de){var fe=u.a.fromTextArea(G.current,Object(m.a)({mode:X,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},H));J(fe)}},[G.current,de]),r.a.createElement("div",{className:"my-codemirror-container"},r.a.createElement("textarea",{ref:G}))}},"7ixt":function(h,F,o){"use strict";o.d(F,"a",function(){return D});var m={adjustX:1,adjustY:1},a=[0,0],D={left:{points:["cr","cl"],overflow:m,offset:[-4,0],targetOffset:a},right:{points:["cl","cr"],overflow:m,offset:[4,0],targetOffset:a},top:{points:["bc","tc"],overflow:m,offset:[0,-4],targetOffset:a},bottom:{points:["tc","bc"],overflow:m,offset:[0,4],targetOffset:a},topLeft:{points:["bl","tl"],overflow:m,offset:[0,-4],targetOffset:a},leftTop:{points:["tr","tl"],overflow:m,offset:[-4,0],targetOffset:a},topRight:{points:["br","tr"],overflow:m,offset:[0,-4],targetOffset:a},rightTop:{points:["tl","tr"],overflow:m,offset:[4,0],targetOffset:a},bottomRight:{points:["tr","br"],overflow:m,offset:[0,4],targetOffset:a},rightBottom:{points:["bl","br"],overflow:m,offset:[4,0],targetOffset:a},bottomLeft:{points:["tl","bl"],overflow:m,offset:[0,4],targetOffset:a},leftBottom:{points:["br","bl"],overflow:m,offset:[-4,0],targetOffset:a}},O=D},"815F":function(h,F,o){"use strict";o.d(F,"e",function(){return v}),o.d(F,"c",function(){return l}),o.d(F,"d",function(){return s}),o.d(F,"a",function(){return d}),o.d(F,"f",function(){return u}),o.d(F,"b",function(){return f});var m=o("KQm4"),a=o("VTBJ"),D=o("Ff2n"),O=o("Zm9Q"),_=o("Kwbf"),y=o("OZM5");function v(x,C){return x!=null?x:C}function c(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],C=new Map;function b(g){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(g||[]).forEach(function(A){var N=A.key,M=A.children;Object(_.a)(N!=null,"Tree node must have a certain key: [".concat(E).concat(N,"]"));var w=String(N);Object(_.a)(!C.has(w)||N===null||N===void 0,"Same 'key' exist in the Tree: ".concat(w)),C.set(w,!0),b(M,"".concat(E).concat(w," > "))})}b(x)}function l(x){function C(b){var g=Object(O.a)(b);return g.map(function(E){if(!Object(y.i)(E))return Object(_.a)(!E,"Tree/TreeNode can only accept TreeNode as children."),null;var A=E.key,N=E.props,M=N.children,w=Object(D.a)(N,["children"]),Y=Object(a.a)({key:A},w),X=C(M);return X.length&&(Y.children=X),Y}).filter(function(E){return E})}return C(x)}function s(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],b=new Set(C===!0?[]:C),g=[];function E(A){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return A.map(function(M,w){var Y=Object(y.h)(N?N.pos:"0",w),X=v(M.key,Y),P=Object(a.a)(Object(a.a)({},M),{},{parent:N,pos:Y,children:null,data:M,isStart:[].concat(Object(m.a)(N?N.isStart:[]),[w===0]),isEnd:[].concat(Object(m.a)(N?N.isEnd:[]),[w===A.length-1])});return g.push(P),C===!0||b.has(X)?P.children=E(M.children||[],P):P.children=[],P})}return E(x),g}function r(x,C,b){var g;b?typeof b=="string"?g=function(N){return N[b]}:typeof b=="function"&&(g=function(N){return b(N)}):g=function(N,M){return v(N.key,M)};function E(A,N,M){var w=A?A.children:x,Y=A?Object(y.h)(M.pos,N):"0";if(A){var X=g(A,Y),P={node:A,index:N,pos:Y,key:X,parentPos:M.node?M.pos:null,level:M.level+1};C(P)}w&&w.forEach(function(H,G){E(H,G,{node:A,pos:Y,level:M?M.level+1:-1})})}E(null)}function d(x){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=C.initWrapper,g=C.processEntity,E=C.onProcessFinished,A=arguments.length>2?arguments[2]:void 0,N={},M={},w={posEntities:N,keyEntities:M};return b&&(w=b(w)||w),r(x,function(Y){var X=Y.node,P=Y.index,H=Y.pos,G=Y.key,$=Y.parentPos,he=Y.level,de={node:X,index:P,key:G,pos:H,level:he},J=v(G,H);N[H]=de,M[J]=de,de.parent=N[$],de.parent&&(de.parent.children=de.parent.children||[],de.parent.children.push(de)),g&&g(de,w)},A),E&&E(w),w}function u(x,C){var b=C.expandedKeys,g=C.selectedKeys,E=C.loadedKeys,A=C.loadingKeys,N=C.checkedKeys,M=C.halfCheckedKeys,w=C.dragOverNodeKey,Y=C.dropPosition,X=C.keyEntities,P=X[x],H={eventKey:x,expanded:b.indexOf(x)!==-1,selected:g.indexOf(x)!==-1,loaded:E.indexOf(x)!==-1,loading:A.indexOf(x)!==-1,checked:N.indexOf(x)!==-1,halfChecked:M.indexOf(x)!==-1,pos:String(P?P.pos:""),dragOver:w===x&&Y===0,dragOverGapTop:w===x&&Y===-1,dragOverGapBottom:w===x&&Y===1};return H}function f(x){var C=x.data,b=x.expanded,g=x.selected,E=x.checked,A=x.loaded,N=x.loading,M=x.halfChecked,w=x.dragOver,Y=x.dragOverGapTop,X=x.dragOverGapBottom,P=x.pos,H=x.active,G=Object(a.a)(Object(a.a)({},C),{},{expanded:b,selected:g,checked:E,loaded:A,loading:N,halfChecked:M,dragOver:w,dragOverGapTop:Y,dragOverGapBottom:X,pos:P,active:H});return"props"in G||Object.defineProperty(G,"props",{get:function(){return Object(_.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),x}}),G}},"8EBN":function(h,F,o){(function(m){m(o("VrN/"))})(function(m){"use strict";m.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 a=0;a<m.modeInfo.length;a++){var D=m.modeInfo[a];D.mimes&&(D.mime=D.mimes[0])}m.findModeByMIME=function(O){O=O.toLowerCase();for(var _=0;_<m.modeInfo.length;_++){var y=m.modeInfo[_];if(y.mime==O)return y;if(y.mimes){for(var v=0;v<y.mimes.length;v++)if(y.mimes[v]==O)return y}}if(/\+xml$/.test(O))return m.findModeByMIME("application/xml");if(/\+json$/.test(O))return m.findModeByMIME("application/json")},m.findModeByExtension=function(O){O=O.toLowerCase();for(var _=0;_<m.modeInfo.length;_++){var y=m.modeInfo[_];if(y.ext){for(var v=0;v<y.ext.length;v++)if(y.ext[v]==O)return y}}},m.findModeByFileName=function(O){for(var _=0;_<m.modeInfo.length;_++){var y=m.modeInfo[_];if(y.file&&y.file.test(O))return y}var v=O.lastIndexOf("."),c=v>-1&&O.substring(v+1,O.length);if(c)return m.findModeByExtension(c)},m.findModeByName=function(O){O=O.toLowerCase();for(var _=0;_<m.modeInfo.length;_++){var y=m.modeInfo[_];if(y.name.toLowerCase()==O)return y;if(y.alias){for(var v=0;v<y.alias.length;v++)if(y.alias[v].toLowerCase()==O)return y}}}})},"8HAY":function(h,F,o){"use strict";o.d(F,"a",function(){return y}),o.d(F,"b",function(){return v});var m=o("pmY6"),a=o("MI8n"),D=function(){var c=function(l,s){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,d){r.__proto__=d}||function(r,d){for(var u in d)d.hasOwnProperty(u)&&(r[u]=d[u])},c(l,s)};return function(l,s){c(l,s);function r(){this.constructor=l}l.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}}(),O=function(c,l,s,r){function d(u){return u instanceof s?u:new s(function(f){f(u)})}return new(s||(s=Promise))(function(u,f){function x(g){try{b(r.next(g))}catch(E){f(E)}}function C(g){try{b(r.throw(g))}catch(E){f(E)}}function b(g){g.done?u(g.value):d(g.value).then(x,C)}b((r=r.apply(c,l||[])).next())})},_=function(c,l){var s={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},r,d,u,f;return f={next:x(0),throw:x(1),return:x(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function x(b){return function(g){return C([b,g])}}function C(b){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,d&&(u=b[0]&2?d.return:b[0]?d.throw||((u=d.return)&&u.call(d),0):d.next)&&!(u=u.call(d,b[1])).done)return u;(d=0,u)&&(b=[b[0]&2,u.value]);switch(b[0]){case 0:case 1:u=b;break;case 4:return s.label++,{value:b[1],done:!1};case 5:s.label++,d=b[1],b=[0];continue;case 7:b=s.ops.pop(),s.trys.pop();continue;default:if(!(u=s.trys,u=u.length>0&&u[u.length-1])&&(b[0]===6||b[0]===2)){s=0;continue}if(b[0]===3&&(!u||b[1]>u[0]&&b[1]<u[3])){s.label=b[1];break}if(b[0]===6&&s.label<u[1]){s.label=u[1],u=b;break}if(u&&s.label<u[2]){s.label=u[2],s.ops.push(b);break}u[2]&&s.ops.pop(),s.trys.pop();continue}b=l.call(c,s)}catch(g){b=[6,g],d=0}finally{r=u=0}if(b[0]&5)throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}},y=function(c){D(l,c);function l(s,r,d,u,f){r===void 0&&(r=""),d===void 0&&(d=""),u===void 0&&(u=!0);var x=c.call(this)||this;return x._onDidChange=x._register(new a.a),x.onDidChange=x._onDidChange.event,x._enabled=!0,x._checked=!1,x._id=s,x._label=r,x._cssClass=d,x._enabled=u,x._actionCallback=f,x}return Object.defineProperty(l.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"label",{get:function(){return this._label},set:function(s){this._setLabel(s)},enumerable:!0,configurable:!0}),l.prototype._setLabel=function(s){this._label!==s&&(this._label=s,this._onDidChange.fire({label:s}))},Object.defineProperty(l.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(s){this._setTooltip(s)},enumerable:!0,configurable:!0}),l.prototype._setTooltip=function(s){this._tooltip!==s&&(this._tooltip=s,this._onDidChange.fire({tooltip:s}))},Object.defineProperty(l.prototype,"class",{get:function(){return this._cssClass},set:function(s){this._setClass(s)},enumerable:!0,configurable:!0}),l.prototype._setClass=function(s){this._cssClass!==s&&(this._cssClass=s,this._onDidChange.fire({class:s}))},Object.defineProperty(l.prototype,"enabled",{get:function(){return this._enabled},set:function(s){this._setEnabled(s)},enumerable:!0,configurable:!0}),l.prototype._setEnabled=function(s){this._enabled!==s&&(this._enabled=s,this._onDidChange.fire({enabled:s}))},Object.defineProperty(l.prototype,"checked",{get:function(){return this._checked},set:function(s){this._setChecked(s)},enumerable:!0,configurable:!0}),l.prototype._setChecked=function(s){this._checked!==s&&(this._checked=s,this._onDidChange.fire({checked:s}))},l.prototype.run=function(s,r){return this._actionCallback?this._actionCallback(s):Promise.resolve(!0)},l}(m.a),v=function(c){D(l,c);function l(){var s=c!==null&&c.apply(this,arguments)||this;return s._onDidBeforeRun=s._register(new a.a),s.onDidBeforeRun=s._onDidBeforeRun.event,s._onDidRun=s._register(new a.a),s.onDidRun=s._onDidRun.event,s}return l.prototype.run=function(s,r){return O(this,void 0,void 0,function(){var d,u;return _(this,function(f){switch(f.label){case 0:if(!s.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:s}),f.label=1;case 1:return f.trys.push([1,3,,4]),[4,this.runAction(s,r)];case 2:return d=f.sent(),this._onDidRun.fire({action:s,result:d}),[3,4];case 3:return u=f.sent(),this._onDidRun.fire({action:s,error:u}),[3,4];case 4:return[2]}})})},l.prototype.runAction=function(s,r){var d=r?s.run(r):s.run();return Promise.resolve(d)},l}(m.a)},"8hTe":function(h,F,o){h.exports={button:"button___1wy9m"}},"9Bee":function(h,F,o){"use strict";var m=o("DYRE"),a=o("zeV3"),D=o("+L6B"),O=o("2/Rp"),_=o("k1fw"),y=o("9og8"),v=o("tJVT"),c=o("WmNS"),l=o.n(c),s=o("q1tI"),r=o.n(s),d=o("vg9a"),u=o("DlQD"),f=o.n(u),x=o("rUJ1");function C(ie,S){var R=ie.match(/^(\s+)(?:```)/);if(R===null)return S;var re=R[1];return S.split(`
|
|
|
`).map(function(ce){var ne=ce.match(/^\s+/);if(ne===null)return ce;var Ne=Object(v.a)(ne,1),Qe=Ne[0];return Qe.length>=re.length?ce.slice(re.length):ce}).join(`
|
|
|
`)}var b=[],g=["<ul>"],E=new f.a.Renderer,A=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function N(){b.length=0,g=["<ul>"]}var M={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function w(ie,S,R,re){if(S>=ie.length||ie[S].level<=R)return S;var ce=ie[S];re.push("<li><a href='#"+ce.anchor+"'>"+ce.text+"</a>"),S++;var ne=[];return S=w(ie,S,ce.level,ne),ne.length>0&&(re.push("<ul>"),ne.forEach(function(Ne){re.push(Ne)}),re.push("</ul>")),re.push("</li>"),S=w(ie,S,R,re),S}function Y(){return w(b,0,0,g),g.push("</ul>"),g.join("")}var X={heading:function(S){var R=A.exec(S);if(R)return{type:"heading",raw:R[0],depth:R[1].length,text:R[2]}},fences:function(S){var R=this.rules.block.fences.exec(S);if(R){var re=R[0],ce=C(re,R[3]||""),ne=R[2]?R[2].trim():R[2];if(["latex","katex","math"].indexOf(ne)>=0){var Ne=G(),Qe=ce;ce=Ne,$[Ne]={type:"block",expression:Qe}}return{type:"code",raw:re,lang:ne,text:ce}}}},P=/(?:\${2})([^\n`]+?)(?:\${2})/gi,H=0,G=function(){return"__special_katext_id_".concat(H++,"__")},$={};function he(){return $}function de(){H=0,$={}}function J(ie){return ie=ie.replace(P,function(S,R){var re=G();return $[re]={type:"inline",expression:R},re}),ie}var fe=E.listitem;E.listitem=function(ie){return fe(J(ie))};var q=E.paragraph;E.paragraph=function(ie){return q(J(ie))};var U=E.tablecell;E.tablecell=function(ie,S){return U(J(ie),S)},E.code=function(ie,S,R){var re=(S||"").match(/\S*/)[0];return re?["latex","katex","math"].indexOf(re)>=0?"<p class='editormd-tex'>".concat(ie,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(S,'">').concat(R?ie:Object(x.escape)(ie,!0),`</code></pre>
|
|
|
`):'<pre class="prettyprint linenums"><code>'+(R?ie:Object(x.escape)(ie,!0))+"</code></pre>"},E.heading=function(ie,S,R){var re=this.options.headerPrefix+R.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return b.push({anchor:re,level:S,text:ie}),"<h"+S+' id="'+re+'">'+ie+"</h"+S+">"},f.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),f.a.use({tokenizer:X,renderer:E});var z=f.a,L=o("SJMd"),T=o("ulZh"),I=o.n(T),se=o("m3rI"),me=o("Oy/b"),xe=o("p5ED"),Ee=o("ErOA");/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
|
purpose with or without fee is hereby granted.
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
|
***************************************************************************** */var Oe=function(ie,S){return(Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,re){R.__proto__=re}||function(R,re){for(var ce in re)Object.prototype.hasOwnProperty.call(re,ce)&&(R[ce]=re[ce])})(ie,S)};function le(ie,S){function R(){this.constructor=ie}Oe(ie,S),ie.prototype=S===null?Object.create(S):(R.prototype=S.prototype,new R)}function ge(ie,S,R,re){return new(R||(R=Promise))(function(ce,ne){function Ne(Ct){try{ot(re.next(Ct))}catch(tt){ne(tt)}}function Qe(Ct){try{ot(re.throw(Ct))}catch(tt){ne(tt)}}function ot(Ct){var tt;Ct.done?ce(Ct.value):(tt=Ct.value,tt instanceof R?tt:new R(function(jt){jt(tt)})).then(Ne,Qe)}ot((re=re.apply(ie,S||[])).next())})}function ye(ie,S){var R,re,ce,ne,Ne={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return ne={next:Qe(0),throw:Qe(1),return:Qe(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function Qe(ot){return function(Ct){return function(tt){if(R)throw new TypeError("Generator is already executing.");for(;Ne;)try{if(R=1,re&&(ce=2&tt[0]?re.return:tt[0]?re.throw||((ce=re.return)&&ce.call(re),0):re.next)&&!(ce=ce.call(re,tt[1])).done)return ce;switch(re=0,ce&&(tt=[2&tt[0],ce.value]),tt[0]){case 0:case 1:ce=tt;break;case 4:return Ne.label++,{value:tt[1],done:!1};case 5:Ne.label++,re=tt[1],tt=[0];continue;case 7:tt=Ne.ops.pop(),Ne.trys.pop();continue;default:if(!(ce=Ne.trys,(ce=ce.length>0&&ce[ce.length-1])||tt[0]!==6&&tt[0]!==2)){Ne=0;continue}if(tt[0]===3&&(!ce||tt[1]>ce[0]&&tt[1]<ce[3])){Ne.label=tt[1];break}if(tt[0]===6&&Ne.label<ce[1]){Ne.label=ce[1],ce=tt;break}if(ce&&Ne.label<ce[2]){Ne.label=ce[2],Ne.ops.push(tt);break}ce[2]&&Ne.ops.pop(),Ne.trys.pop();continue}tt=S.call(ie,Ne)}catch(jt){tt=[6,jt],re=0}finally{R=ce=0}if(5&tt[0])throw tt[1];return{value:tt[0]?tt[1]:void 0,done:!0}}([ot,Ct])}}}function ee(){for(var ie=0,S=0,R=arguments.length;S<R;S++)ie+=arguments[S].length;var re=Array(ie),ce=0;for(S=0;S<R;S++)for(var ne=arguments[S],Ne=0,Qe=ne.length;Ne<Qe;Ne++,ce++)re[ce]=ne[Ne];return re}var oe=function(){function ie(){}return ie.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ie.setAttributes=function(S,R){for(var re=0,ce=R;re<ce.length;re++){var ne=ce[re],Ne=ne[0],Qe=ne[1];S.setAttribute(Ne,Qe)}},ie.createRect=function(S,R,re){var ce=document.createElementNS("http://www.w3.org/2000/svg","rect");return ce.setAttribute("width",S.toString()),ce.setAttribute("height",R.toString()),re&&ie.setAttributes(ce,re),ce},ie.createLine=function(S,R,re,ce,ne){var Ne=document.createElementNS("http://www.w3.org/2000/svg","line");return Ne.setAttribute("x1",S.toString()),Ne.setAttribute("y1",R.toString()),Ne.setAttribute("x2",re.toString()),Ne.setAttribute("y2",ce.toString()),ne&&ie.setAttributes(Ne,ne),Ne},ie.createPolygon=function(S,R){var re=document.createElementNS("http://www.w3.org/2000/svg","polygon");return re.setAttribute("points",S),R&&ie.setAttributes(re,R),re},ie.createCircle=function(S,R){var re=document.createElementNS("http://www.w3.org/2000/svg","circle");return re.setAttribute("cx",(S/2).toString()),re.setAttribute("cy",(S/2).toString()),re.setAttribute("r",S.toString()),R&&ie.setAttributes(re,R),re},ie.createEllipse=function(S,R,re){var ce=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ce.setAttribute("cx",(S/2).toString()),ce.setAttribute("cy",(R/2).toString()),ce.setAttribute("rx",(S/2).toString()),ce.setAttribute("ry",(R/2).toString()),re&&ie.setAttributes(ce,re),ce},ie.createGroup=function(S){var R=document.createElementNS("http://www.w3.org/2000/svg","g");return S&&ie.setAttributes(R,S),R},ie.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ie.createMarker=function(S,R,re,ce,ne,Ne,Qe){var ot=document.createElementNS("http://www.w3.org/2000/svg","marker");return ie.setAttributes(ot,[["id",S],["orient",R],["markerWidth",re.toString()],["markerHeight",ce.toString()],["refX",ne.toString()],["refY",Ne.toString()]]),ot.appendChild(Qe),ot},ie.createText=function(S){var R=document.createElementNS("http://www.w3.org/2000/svg","text");return R.setAttribute("x","0"),R.setAttribute("y","0"),S&&ie.setAttributes(R,S),R},ie.createTSpan=function(S,R){var re=document.createElementNS("http://www.w3.org/2000/svg","tspan");return re.textContent=S,R&&ie.setAttributes(re,R),re},ie.createImage=function(S){var R=document.createElementNS("http://www.w3.org/2000/svg","image");return S&&ie.setAttributes(R,S),R},ie.createPoint=function(S,R){var re=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return re.x=S,re.y=R,re},ie.createPath=function(S,R){var re=document.createElementNS("http://www.w3.org/2000/svg","path");return re.setAttribute("d",S),R&&ie.setAttributes(re,R),re},ie}(),Z=function(){function ie(){}return ie.addKey=function(S){ie.key=S},Object.defineProperty(ie,"isLicensed",{get:function(){return!!ie.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ie.key)},enumerable:!1,configurable:!0}),ie}(),ue=function(){function ie(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ie.prototype.rasterize=function(S,R,re){var ce=this;return new Promise(function(ne){var Ne=re!==void 0?re:document.createElement("canvas");S===null&&(ce.markersOnly=!0,ce.naturalSize=!1);var Qe=document.createElementNS("http://www.w3.org/2000/svg","svg");Qe.setAttribute("xmlns","http://www.w3.org/2000/svg"),Qe.setAttribute("width",R.width.baseVal.valueAsString),Qe.setAttribute("height",R.height.baseVal.valueAsString),Qe.setAttribute("viewBox","0 0 "+R.viewBox.baseVal.width.toString()+" "+R.viewBox.baseVal.height.toString()),Qe.innerHTML=R.innerHTML,ce.naturalSize===!0?(Qe.width.baseVal.value=S.naturalWidth,Qe.height.baseVal.value=S.naturalHeight):ce.width!==void 0&&ce.height!==void 0&&(Qe.width.baseVal.value=ce.width,Qe.height.baseVal.value=ce.height),Ne.width=Qe.width.baseVal.value,Ne.height=Qe.height.baseVal.value;var ot=Qe.outerHTML,Ct=Ne.getContext("2d");ce.markersOnly!==!0&&Ct.drawImage(S,0,0,Ne.width,Ne.height);var tt=window.URL,jt=new Image(Ne.width,Ne.height);jt.setAttribute("crossOrigin","anonymous");var Zt=new Blob([ot],{type:"image/svg+xml"}),dr=tt.createObjectURL(Zt);jt.onload=function(){Ct.drawImage(jt,0,0),tt.revokeObjectURL(dr);var tn=Ne.toDataURL(ce.imageType,ce.imageQuality);ne(tn)},jt.src=dr})},ie}(),V=function(){},Q=function(){function ie(S){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+S+"_"}return Object.defineProperty(ie.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ie.prototype.addClass=function(S){return this.styleSheet===void 0&&this.addStyleSheet(),S.name=""+this.classNamePrefix+S.localName,this.classes.push(S),this.styleSheet.sheet.insertRule("."+S.name+" {"+S.style+"}",this.styleSheet.sheet.cssRules.length),S},ie.prototype.addRule=function(S){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(S),this.styleSheet.sheet.insertRule(S.selector+" {"+S.style+"}",this.styleSheet.sheet.cssRules.length)},ie.prototype.addStyleSheet=function(){var S;this.styleSheet=document.createElement("style"),((S=this.styleSheetRoot)!==null&&S!==void 0?S:document.head).appendChild(this.styleSheet),this.addRule(new ae("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ae("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new ae("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new K("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new K("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},ie.prototype.removeStyleSheet=function(){var S;this.styleSheet&&(((S=this.styleSheetRoot)!==null&&S!==void 0?S:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ie}(),ae=function(ie,S){this.selector=ie,this.style=S},K=function(ie,S){this.localName=ie,this.style=S},j=function(){function ie(S,R,re,ce,ne){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=S,this.displayMode=R,this.markerItems=re,this.uiStyleSettings=ce,this.styles=ne,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ie.prototype.show=function(S){var R=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=S,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var re=document.createElement("div");re.className=this.toolbarBlockStyleClass.name,re.style.whiteSpace="nowrap",this.uiContainer.appendChild(re),this.addActionButton(re,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(re,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(re,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(re,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(re,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(re,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(re,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(re,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(ne){var Ne=document.createElement("div");Ne.className=""+R.toolbarButtonStyleClass.name,Ne.setAttribute("data-type-name",ne.typeName),Ne.innerHTML=ne.icon,Ne.addEventListener("click",function(){R.markerToolbarButtonClicked(Ne,ne)}),R.buttons.push(Ne),R.markerButtons.push(Ne)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ce=document.createElement("div");ce.className=this.toolbarBlockStyleClass.name,ce.style.whiteSpace="nowrap",ce.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ce),this.addActionButton(ce,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(ce,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ie.prototype.addButtonClickListener=function(S){this.buttonClickListeners.push(S)},ie.prototype.removeButtonClickListener=function(S){this.buttonClickListeners.indexOf(S)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(S),1)},ie.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ie.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var S=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var R=0;R<this.markerButtons.length;R++)R<S||R===S&&this.markerButtons.length-1===S?this.markerButtonBlock.appendChild(this.markerButtons[R]):(R===S&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[R]))}},ie.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},ie.prototype.resetButtonStyles=function(){var S=this;this.buttons.forEach(function(R){R.className=R.className.replace(S.uiStyleSettings.toolbarButtonStyleColorsClassName?S.uiStyleSettings.toolbarButtonStyleColorsClassName:S.toolbarButtonStyleColorsClass.name,"").trim(),R.className=R.className.replace(S.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?S.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:S.toolbarActiveButtonStyleColorsClass.name,"").trim(),R.className+=" "+(S.uiStyleSettings.toolbarButtonStyleColorsClassName?S.uiStyleSettings.toolbarButtonStyleColorsClassName:S.toolbarButtonStyleColorsClass.name)})},ie.prototype.addActionButton=function(S,R,re){var ce=this,ne=document.createElement("div");switch(ne.className=""+this.toolbarButtonStyleClass.name,ne.innerHTML=R,ne.setAttribute("data-action",re),ne.addEventListener("click",function(){ce.actionToolbarButtonClicked(ne,re)}),re){case"select":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ne.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ne.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ne.style.fill=this.uiStyleSettings.closeButtonColor}S.appendChild(ne),this.buttons.push(ne)},ie.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new K("toolbar",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new K("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new K("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new K("toolbar-overflow-block",`
|
|
|
position: absolute;
|
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
z-index: 10;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new K("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var S=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new K("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*S)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*S)+`px;
|
|
|
padding: `+S+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new K("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new K("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ae("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new ae("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},ie.prototype.markerToolbarButtonClicked=function(S,R){this.setActiveButton(S),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(re){return re("marker",R)}),this.markerButtonOverflowBlock.style.display="none"},ie.prototype.actionToolbarButtonClicked=function(S,R){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(re){return re("action",R)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ie.prototype.setActiveButton=function(S){this.resetButtonStyles(),S.className=S.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),S.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ie.prototype.setActiveMarkerButton=function(S){var R=this.markerButtons.find(function(re){return re.getAttribute("data-type-name")===S});R&&this.setActiveButton(R)},ie.prototype.setCurrentMarker=function(S){var R=this;this.currentMarker=S,this.buttons.filter(function(re){return/delete|notes/.test(re.getAttribute("data-action"))}).forEach(function(re){R.currentMarker===void 0?(re.style.fillOpacity="0.4",re.style.pointerEvents="none"):(re.style.fillOpacity="1",re.style.pointerEvents="all")})},ie}(),k=function(){function ie(S,R,re,ce){this.panels=[],this.panelButtons=[],this.markerjsContainer=S,this.displayMode=R,this.uiStyleSettings=re,this.styles=ce,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ie.prototype.addStyles=function(){var S;this.toolboxStyleClass=this.styles.addClass(new K("toolbox",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
font-family: sans-serif;
|
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new K("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var R=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new K("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new K("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new K("toolbox-panel-row",`
|
|
|
display: flex;
|
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
cursor: default;
|
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new K("toolbox-panel-row_colors",`
|
|
|
background-color: `+((S=this.uiStyleSettings.toolboxBackgroundColor)!==null&&S!==void 0?S:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new K("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*R)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*R)+`px;
|
|
|
padding: `+R+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new K("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new K("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new ae("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ae("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},ie.prototype.show=function(S){var R;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=S,this.uiContainer.className=this.toolboxStyleClass.name+" "+((R=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&R!==void 0?R:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ie.prototype.setPanelButtons=function(S){var R,re,ce=this;this.panels=S,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((R=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&R!==void 0?R:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((re=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&re!==void 0?re:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var Ne;ne.uiStyleSettings=ce.uiStyleSettings;var Qe=document.createElement("div");Qe.className=ce.toolboxButtonStyleClass.name+" "+((Ne=ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ne!==void 0?Ne:ce.toolboxButtonStyleColorsClass.name),Qe.innerHTML=ne.icon,Qe.title=ne.title,Qe.addEventListener("click",function(){ce.panelButtonClick(ne)}),ce.panelButtons.push(Qe),ce.buttonRow.appendChild(Qe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ie.prototype.panelButtonClick=function(S){var R=this,re=-1;if(S!==this.activePanel){re=this.panels.indexOf(S),this.panelRow.innerHTML="";var ce=S.getUi();ce.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ce),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=S}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){R.displayMode==="inline"?R.panelRow.style.display="none":R.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ne,Ne){var Qe,ot;ne.className=R.toolboxButtonStyleClass.name+" "+(Ne===re?""+((Qe=R.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Qe!==void 0?Qe:R.toolboxActiveButtonStyleColorsClass.name):""+((ot=R.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ot!==void 0?ot:R.toolboxButtonStyleColorsClass.name))})},ie}(),W=function(ie,S){this.title=ie,this.icon=S},we=function(ie){function S(R,re,ce,ne){var Ne=ie.call(this,R,ne||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return Ne.colors=[],Ne.addTransparent=!1,Ne.colorBoxes=[],Ne.colors=re,Ne.currentColor=ce,Ne.setCurrentColor=Ne.setCurrentColor.bind(Ne),Ne.getColorBox=Ne.getColorBox.bind(Ne),Ne}return le(S,ie),S.prototype.getUi=function(){var R=this,re=document.createElement("div");return re.style.overflow="hidden",re.style.whiteSpace="nowrap",this.colors.forEach(function(ce){var ne=R.getColorBox(ce);re.appendChild(ne),R.colorBoxes.push(ne)}),re},S.prototype.getColorBox=function(R){var re=this,ce=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-ce,Ne=document.createElement("div");Ne.style.display="inline-block",Ne.style.boxSizing="content-box",Ne.style.width=ne-2+"px",Ne.style.height=ne-2+"px",Ne.style.padding="1px",Ne.style.marginRight="2px",Ne.style.marginBottom="2px",Ne.style.borderWidth="2px",Ne.style.borderStyle="solid",Ne.style.borderRadius=(ne+2)/2+"px",Ne.style.borderColor=R===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ne.addEventListener("click",function(){re.setCurrentColor(R,Ne)});var Qe=document.createElement("div");return Qe.style.display="inline-block",Qe.style.width=ne-2+"px",Qe.style.height=ne-2+"px",Qe.style.backgroundColor=R,Qe.style.borderRadius=ne/2+"px",R==="transparent"&&(Qe.style.fill=this.uiStyleSettings.toolboxAccentColor,Qe.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),Ne.appendChild(Qe),Ne},S.prototype.setCurrentColor=function(R,re){var ce=this;this.currentColor=R,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===re?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(R)},S}(W),be=function(){function ie(S,R,re){this._state="new",this._isSelected=!1,this._container=S,this._overlayContainer=R,this.globalSettings=re,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ie.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ie.prototype.ownsTarget=function(S){return!1},Object.defineProperty(ie.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ie.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ie.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ie.prototype.pointerDown=function(S,R){},ie.prototype.dblClick=function(S,R){},ie.prototype.manipulate=function(S){},ie.prototype.pointerUp=function(S){this.stateChanged()},ie.prototype.dispose=function(){},ie.prototype.addMarkerVisualToContainer=function(S){this.container.childNodes.length>0?this.container.insertBefore(S,this.container.childNodes[0]):this.container.appendChild(S)},ie.prototype.getState=function(){return{typeName:ie.typeName,state:this.state,notes:this.notes}},ie.prototype.restoreState=function(S){this._state=S.state,this.notes=S.notes},ie.prototype.scale=function(S,R){},ie.prototype.colorChanged=function(S){this.onColorChanged&&this.onColorChanged(S),this.stateChanged()},ie.prototype.fillColorChanged=function(S){this.onFillColorChanged&&this.onFillColorChanged(S),this.stateChanged()},ie.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var S=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),S.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(S)&&this.onStateChanged(this)}},ie.typeName="MarkerBase",ie}(),Te=function(){function ie(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ie.prototype.findGripByVisual=function(S){return this.topLeft.ownsTarget(S)?this.topLeft:this.topCenter.ownsTarget(S)?this.topCenter:this.topRight.ownsTarget(S)?this.topRight:this.centerLeft.ownsTarget(S)?this.centerLeft:this.centerRight.ownsTarget(S)?this.centerRight:this.bottomLeft.ownsTarget(S)?this.bottomLeft:this.bottomCenter.ownsTarget(S)?this.bottomCenter:this.bottomRight.ownsTarget(S)?this.bottomRight:void 0},ie}(),Be=function(){function ie(){this.GRIP_SIZE=10,this.visual=oe.createGroup(),this.visual.appendChild(oe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(oe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ie.prototype.ownsTarget=function(S){return S===this.visual||S===this.visual.childNodes[0]||S===this.visual.childNodes[1]},ie}(),Fe=function(){function ie(){}return ie.toITransformMatrix=function(S){return{a:S.a,b:S.b,c:S.c,d:S.d,e:S.e,f:S.f}},ie.toSVGMatrix=function(S,R){return S.a=R.a,S.b=R.b,S.c=R.c,S.d=R.d,S.e=R.e,S.f=R.f,S},ie}(),Ue=function(ie){function S(R,re,ce){var ne=ie.call(this,R,re,ce)||this;return ne.left=0,ne.top=0,ne.width=0,ne.height=0,ne.defaultSize={x:50,y:20},ne.offsetX=0,ne.offsetY=0,ne.rotationAngle=0,ne.CB_DISTANCE=10,ne._suppressMarkerCreateEvent=!1,ne.container.transform.baseVal.appendItem(oe.createTransform()),ne.setupControlBox(),ne}return le(S,ie),Object.defineProperty(S.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"visual",{get:function(){return this._visual},set:function(R){this._visual=R;var re=oe.createTransform();this._visual.transform.baseVal.appendItem(re)},enumerable:!1,configurable:!0}),S.prototype.ownsTarget=function(R){return!!ie.prototype.ownsTarget.call(this,R)||!!(this.controlGrips.findGripByVisual(R)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(R))},S.prototype.pointerDown=function(R,re){ie.prototype.pointerDown.call(this,R,re),this.state==="new"&&(this.left=R.x,this.top=R.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ce=this.unrotatePoint(R);if(this.manipulationStartX=ce.x,this.manipulationStartY=ce.y,this.offsetX=ce.x-this.left,this.offsetY=ce.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(re),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(re)){this.activeGrip=this.rotatorGrip;var ne=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ne.x-this.width/2,this.top=ne.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ne=this.container.transform.baseVal.getItem(0);Ne.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ne,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},S.prototype.pointerUp=function(R){var re=this.state;ie.prototype.pointerUp.call(this,R),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(R),this._state="select",re==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},S.prototype.moveVisual=function(R){this.visual.style.transform="translate("+R.x+"px, "+R.y+"px)"},S.prototype.manipulate=function(R){var re=this.unrotatePoint(R);this.state==="creating"?this.resize(R):this.state==="move"?(this.left=this.manipulationStartLeft+(re.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(re.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(re):this.state==="rotate"&&this.rotate(R)},S.prototype.resize=function(R){var re=this.manipulationStartLeft,ce=this.manipulationStartWidth,ne=this.manipulationStartTop,Ne=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:re=this.manipulationStartLeft+R.x-this.manipulationStartX,ce=this.manipulationStartWidth+this.manipulationStartLeft-re;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ce=this.manipulationStartWidth+R.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ne=this.manipulationStartTop+R.y-this.manipulationStartY,Ne=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ne=this.manipulationStartHeight+R.y-this.manipulationStartY}ce>=0?(this.left=re,this.width=ce):(this.left=re+ce,this.width=-ce),Ne>=0?(this.top=ne,this.height=Ne):(this.top=ne+Ne,this.height=-Ne),this.setSize()},S.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},S.prototype.rotate=function(R){if(Math.abs(R.x-this.centerX)>.1){var re=Math.sign(R.x-this.centerX);this.rotationAngle=180*Math.atan((R.y-this.centerY)/(R.x-this.centerX))/Math.PI+90*re,this.applyRotation()}},S.prototype.applyRotation=function(){var R=this.container.transform.baseVal.getItem(0);R.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(R,0)},S.prototype.rotatePoint=function(R){if(this.rotationAngle===0)return R;var re=this.container.getCTM(),ce=oe.createPoint(R.x,R.y);return{x:(ce=ce.matrixTransform(re)).x,y:ce.y}},S.prototype.unrotatePoint=function(R){if(this.rotationAngle===0)return R;var re=this.container.getCTM();re=re.inverse();var ce=oe.createPoint(R.x,R.y);return{x:(ce=ce.matrixTransform(re)).x,y:ce.y}},S.prototype.select=function(){ie.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},S.prototype.deselect=function(){ie.prototype.deselect.call(this),this.controlBox.style.display="none"},S.prototype.setupControlBox=function(){this.controlBox=oe.createGroup();var R=oe.createTransform();R.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(R),this.container.appendChild(this.controlBox),this.controlRect=oe.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=oe.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Te,this.addControlGrips(),this.controlBox.style.display="none"},S.prototype.adjustControlBox=function(){var R=this.controlBox.transform.baseVal.getItem(0);R.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(R,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},S.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},S.prototype.createGrip=function(){var R=new Be;return R.visual.transform.baseVal.appendItem(oe.createTransform()),this.controlBox.appendChild(R.visual),R},S.prototype.positionGrips=function(){var R=this.controlGrips.topLeft.GRIP_SIZE,re=-R/2,ce=re,ne=(this.width+this.CB_DISTANCE)/2-R/2,Ne=(this.height+this.CB_DISTANCE)/2-R/2,Qe=this.height+this.CB_DISTANCE-R/2,ot=this.width+this.CB_DISTANCE-R/2;this.positionGrip(this.controlGrips.topLeft.visual,re,ce),this.positionGrip(this.controlGrips.topCenter.visual,ne,ce),this.positionGrip(this.controlGrips.topRight.visual,ot,ce),this.positionGrip(this.controlGrips.centerLeft.visual,re,Ne),this.positionGrip(this.controlGrips.centerRight.visual,ot,Ne),this.positionGrip(this.controlGrips.bottomLeft.visual,re,Qe),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,Qe),this.positionGrip(this.controlGrips.bottomRight.visual,ot,Qe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,ce-3*this.CB_DISTANCE)},S.prototype.positionGrip=function(R,re,ce){var ne=R.transform.baseVal.getItem(0);ne.setTranslate(re,ce),R.transform.baseVal.replaceItem(ne,0)},S.prototype.hideControlBox=function(){this.controlBox.style.display="none"},S.prototype.showControlBox=function(){this.controlBox.style.display=""},S.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Fe.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Fe.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ie.prototype.getState.call(this))},S.prototype.restoreState=function(R){ie.prototype.restoreState.call(this,R);var re=R;this.left=re.left,this.top=re.top,this.width=re.width,this.height=re.height,this.rotationAngle=re.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Fe.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,re.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Fe.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,re.containerTransformMatrix))},S.prototype.scale=function(R,re){ie.prototype.scale.call(this,R,re);var ce=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:ce.x*R,y:ce.y*re});this.left=ne.x,this.top=ne.y,this.width=this.width*R,this.height=this.height*re,this.adjustControlBox()},S}(be),We=function(ie){function S(R,re,ce){var ne=ie.call(this,R,re,ce)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne}return le(S,ie),S.prototype.ownsTarget=function(R){return!(!ie.prototype.ownsTarget.call(this,R)&&R!==this.visual)},S.prototype.createVisual=function(){this.visual=oe.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},S.prototype.pointerDown=function(R,re){ie.prototype.pointerDown.call(this,R,re),this.state==="new"&&(this.createVisual(),this.moveVisual(R),this._state="creating")},S.prototype.manipulate=function(R){ie.prototype.manipulate.call(this,R)},S.prototype.resize=function(R){ie.prototype.resize.call(this,R),this.setSize()},S.prototype.setSize=function(){ie.prototype.setSize.call(this),oe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},S.prototype.pointerUp=function(R){ie.prototype.pointerUp.call(this,R),this.setSize()},S.prototype.setStrokeColor=function(R){this.strokeColor=R,this.visual&&oe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(R),this.stateChanged()},S.prototype.setFillColor=function(R){this.fillColor=R,this.visual&&oe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},S.prototype.setStrokeWidth=function(R){this.strokeWidth=R,this.visual&&oe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},S.prototype.setStrokeDasharray=function(R){this.strokeDasharray=R,this.visual&&oe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},S.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ie.prototype.getState.call(this))},S.prototype.restoreState=function(R){var re=R;this.fillColor=re.fillColor,this.strokeColor=re.strokeColor,this.strokeWidth=re.strokeWidth,this.strokeDasharray=re.strokeDasharray,this.opacity=re.opacity,this.createVisual(),ie.prototype.restoreState.call(this,R),this.setSize()},S.prototype.scale=function(R,re){ie.prototype.scale.call(this,R,re),this.setSize()},S.title="Rectangle marker",S}(Ue),Ve=function(ie){function S(R,re,ce,ne){var Ne=ie.call(this,R,ne||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ne.widths=[],Ne.widthBoxes=[],Ne.widths=re,Ne.currentWidth=ce,Ne.setCurrentWidth=Ne.setCurrentWidth.bind(Ne),Ne}return le(S,ie),S.prototype.getUi=function(){var R=this,re=document.createElement("div");return re.style.display="flex",re.style.overflow="hidden",re.style.flexGrow="2",this.widths.forEach(function(ce){var ne=document.createElement("div");ne.style.display="flex",ne.style.flexGrow="2",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=ce===R.currentWidth?R.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){R.setCurrentWidth(ce,ne)}),re.appendChild(ne);var Ne=document.createElement("div");Ne.innerText=ce.toString(),Ne.style.marginRight="5px",ne.appendChild(Ne);var Qe=document.createElement("div");Qe.style.minHeight="20px",Qe.style.flexGrow="2",Qe.style.display="flex",Qe.style.alignItems="center";var ot=document.createElement("hr");ot.style.minWidth="20px",ot.style.border="0px",ot.style.borderTop=ce+"px solid "+R.uiStyleSettings.toolboxColor,ot.style.flexGrow="2",Qe.appendChild(ot),ne.appendChild(Qe),R.widthBoxes.push(ne)}),re},S.prototype.setCurrentWidth=function(R,re){var ce=this;this.currentWidth=R,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===re?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},S}(W),Ge=function(ie){function S(R,re,ce,ne){var Ne=ie.call(this,R,ne||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return Ne.styles=[],Ne.styleBoxes=[],Ne.styles=re,Ne.currentStyle=ce,Ne.setCurrentStyle=Ne.setCurrentStyle.bind(Ne),Ne}return le(S,ie),S.prototype.getUi=function(){var R=this,re=document.createElement("div");return re.style.display="flex",re.style.overflow="hidden",re.style.flexGrow="2",this.styles.forEach(function(ce){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/R.styles.length-5+"%",ne.style.borderColor=ce===R.currentStyle?R.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){R.setCurrentStyle(ce,ne)}),re.appendChild(ne);var Ne=document.createElement("div");Ne.style.minHeight="20px",Ne.style.flexGrow="2",Ne.style.overflow="hidden";var Qe=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+R.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ce!==""?'stroke-dasharray="'+ce+'"':"")+` />
|
|
|
</svg>`;Ne.innerHTML=Qe,ne.appendChild(Ne),R.styleBoxes.push(ne)}),re},S.prototype.setCurrentStyle=function(R,re){var ce=this;this.currentStyle=R,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===re?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},S}(W),Je=function(ie){function S(R,re,ce){var ne=ie.call(this,R,re,ce)||this;return ne.strokeColor=ce.defaultColor,ne.strokeWidth=ce.defaultStrokeWidth,ne.strokeDasharray=ce.defaultStrokeDasharray,ne.strokePanel=new we("Line color",ce.defaultColorSet,ce.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Ve("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ge("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return le(S,ie),Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var R=ie.prototype.getState.call(this);return R.typeName=S.typeName,R},S.typeName="FrameMarker",S.title="Frame marker",S.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',S}(We),Re=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},Ze=function(ie){function S(R,re,ce){var ne=ie.call(this,R,re,ce)||this;return ne.x1=0,ne.y1=0,ne.x2=0,ne.y2=0,ne.defaultLength=50,ne.manipulationStartX=0,ne.manipulationStartY=0,ne.manipulationStartX1=0,ne.manipulationStartY1=0,ne.manipulationStartX2=0,ne.manipulationStartY2=0,ne.setupControlBox(),ne}return le(S,ie),S.prototype.ownsTarget=function(R){return!!ie.prototype.ownsTarget.call(this,R)||!(!this.grip1.ownsTarget(R)&&!this.grip2.ownsTarget(R))},S.prototype.pointerDown=function(R,re){ie.prototype.pointerDown.call(this,R,re),this.manipulationStartX=R.x,this.manipulationStartY=R.y,this.state==="new"&&(this.x1=R.x,this.y1=R.y,this.x2=R.x,this.y2=R.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(re)?this.activeGrip=this.grip1:this.grip2.ownsTarget(re)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},S.prototype.pointerUp=function(R){var re=this.state;ie.prototype.pointerUp.call(this,R),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(R),this._state="select",re==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},S.prototype.adjustVisual=function(){},S.prototype.manipulate=function(R){this.state==="creating"?this.resize(R):this.state==="move"?(this.x1=this.manipulationStartX1+R.x-this.manipulationStartX,this.y1=this.manipulationStartY1+R.y-this.manipulationStartY,this.x2=this.manipulationStartX2+R.x-this.manipulationStartX,this.y2=this.manipulationStartY2+R.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(R)},S.prototype.resize=function(R){switch(this.activeGrip){case this.grip1:this.x1=R.x,this.y1=R.y;break;case this.grip2:case void 0:this.x2=R.x,this.y2=R.y}this.adjustVisual(),this.adjustControlBox()},S.prototype.select=function(){ie.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},S.prototype.deselect=function(){ie.prototype.deselect.call(this),this.controlBox.style.display="none"},S.prototype.setupControlBox=function(){this.controlBox=oe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},S.prototype.adjustControlBox=function(){this.positionGrips()},S.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},S.prototype.createGrip=function(){var R=new Be;return R.visual.transform.baseVal.appendItem(oe.createTransform()),this.controlBox.appendChild(R.visual),R},S.prototype.positionGrips=function(){var R=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-R/2,this.y1-R/2),this.positionGrip(this.grip2.visual,this.x2-R/2,this.y2-R/2)},S.prototype.positionGrip=function(R,re,ce){var ne=R.transform.baseVal.getItem(0);ne.setTranslate(re,ce),R.transform.baseVal.replaceItem(ne,0)},S.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ie.prototype.getState.call(this))},S.prototype.restoreState=function(R){ie.prototype.restoreState.call(this,R);var re=R;this.x1=re.x1,this.y1=re.y1,this.x2=re.x2,this.y2=re.y2},S.prototype.scale=function(R,re){ie.prototype.scale.call(this,R,re),this.x1=this.x1*R,this.y1=this.y1*re,this.x2=this.x2*R,this.y2=this.y2*re,this.adjustVisual(),this.adjustControlBox()},S}(be),nt=function(ie){function S(R,re,ce){var ne=ie.call(this,R,re,ce)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.strokeColor=ce.defaultColor,ne.strokeWidth=ce.defaultStrokeWidth,ne.strokeDasharray=ce.defaultStrokeDasharray,ne.strokePanel=new we("Line color",ce.defaultColorSet,ce.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Ve("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ge("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return le(S,ie),S.prototype.ownsTarget=function(R){return!(!ie.prototype.ownsTarget.call(this,R)&&R!==this.visual&&R!==this.selectorLine&&R!==this.visibleLine)},S.prototype.createVisual=function(){this.visual=oe.createGroup(),this.selectorLine=oe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=oe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},S.prototype.pointerDown=function(R,re){ie.prototype.pointerDown.call(this,R,re),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},S.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),oe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),oe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),oe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},S.prototype.setStrokeColor=function(R){this.strokeColor=R,this.adjustVisual(),this.colorChanged(R)},S.prototype.setStrokeWidth=function(R){this.strokeWidth=R,this.adjustVisual()},S.prototype.setStrokeDasharray=function(R){this.strokeDasharray=R,this.adjustVisual(),this.stateChanged()},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var R=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ie.prototype.getState.call(this));return R.typeName=S.typeName,R},S.prototype.restoreState=function(R){ie.prototype.restoreState.call(this,R);var re=R;this.strokeColor=re.strokeColor,this.strokeWidth=re.strokeWidth,this.strokeDasharray=re.strokeDasharray,this.createVisual(),this.adjustVisual()},S.typeName="LineMarker",S.title="Line marker",S.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',S}(Ze),Ke=function(ie){function S(R,re,ce,ne){var Ne=ie.call(this,R,ne||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return Ne.fonts=[],Ne.fontBoxes=[],Ne.fonts=re,Ne.currentFont=ce,Ne.setCurrentFont=Ne.setCurrentFont.bind(Ne),Ne}return le(S,ie),S.prototype.getUi=function(){var R=this,re=document.createElement("div");return re.style.overflow="hidden",re.style.flexGrow="2",this.fonts.forEach(function(ce){var ne=document.createElement("div");ne.style.display="inline-block",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/R.fonts.length-5+"%",ne.style.borderColor=ce===R.currentFont?R.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){R.setCurrentFont(ce,ne)}),re.appendChild(ne);var Ne=document.createElement("div");Ne.style.display="flex",Ne.style.minHeight="20px",Ne.style.flexGrow="2",Ne.style.fontFamily=ce,Ne.style.overflow="hidden";var Qe=document.createElement("div");Qe.style.whiteSpace="nowrap",Qe.style.overflow="hidden",Qe.style.textOverflow="ellipsis",Qe.innerHTML="The quick brown fox jumps over the lazy dog",Ne.appendChild(Qe),ne.appendChild(Ne),R.fontBoxes.push(ne)}),re},S.prototype.setCurrentFont=function(R,re){var ce=this;this.currentFont=R,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===re?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},S}(W),$e=function(ie){function S(R,re,ce){var ne=ie.call(this,R,re,ce)||this;return ne.color="transparent",ne.padding=5,ne.DEFAULT_TEXT="your text here",ne.text=ne.DEFAULT_TEXT,ne.isMoved=!1,ne.color=ce.defaultColor,ne.fontFamily=ce.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setColor=ne.setColor.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.renderText=ne.renderText.bind(ne),ne.sizeText=ne.sizeText.bind(ne),ne.textEditDivClicked=ne.textEditDivClicked.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.setSize=ne.setSize.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.colorPanel=new we("Color",ce.defaultColorSet,ce.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Ke("Font",ce.defaultFontFamilies,ce.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return le(S,ie),S.prototype.ownsTarget=function(R){if(ie.prototype.ownsTarget.call(this,R)||R===this.visual||R===this.textElement||R===this.bgRectangle)return!0;var re=!1;return this.textElement.childNodes.forEach(function(ce){ce===R&&(re=!0)}),re},S.prototype.createVisual=function(){this.visual=oe.createGroup(),this.bgRectangle=oe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=oe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(oe.createTransform()),this.textElement.transform.baseVal.appendItem(oe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},S.prototype.pointerDown=function(R,re){ie.prototype.pointerDown.call(this,R,re),this.isMoved=!1,this.pointerDownPoint=R,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(R),this._state="creating")},S.prototype.renderText=function(){var R=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(re){R.textElement.appendChild(oe.createTSpan(re.trim()===""?" ":re.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},S.prototype.getTextScale=function(){var R=this.textElement.getBBox(),re=1;if(R.width>0&&R.height>0){var ce=(1*this.width-this.width*this.padding*2/100)/R.width,ne=(1*this.height-this.height*this.padding*2/100)/R.height;re=Math.min(ce,ne)}return re},S.prototype.getTextPosition=function(R){var re=this.textElement.getBBox(),ce=0,ne=0;return re.width>0&&re.height>0&&(ce=(this.width-re.width*R)/2,ne=this.height/2-re.height*R/2),{x:ce,y:ne}},S.prototype.sizeText=function(){var R=this.textElement.getBBox(),re=this.getTextScale(),ce=this.getTextPosition(re);ce.y-=R.y*re,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ce.x+"px, "+ce.y+"px) scale("+re+", "+re+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ce.x,ce.y),this.textElement.transform.baseVal.getItem(1).setScale(re,re))},S.prototype.manipulate=function(R){ie.prototype.manipulate.call(this,R),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(R.x-this.pointerDownPoint.x)>5||Math.abs(R.y-this.pointerDownPoint.y)>5)},S.prototype.resize=function(R){ie.prototype.resize.call(this,R),this.isMoved=!0,this.setSize(),this.sizeText()},S.prototype.setSize=function(){ie.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(oe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),oe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},S.prototype.pointerUp=function(R){var re=this.state;re==="creating"&&(this._suppressMarkerCreateEvent=!0),ie.prototype.pointerUp.call(this,R),this.setSize(),(re==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},S.prototype.showTextEditor=function(){var R=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(re){re.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var re=Number.parseFloat(R.textEditor.style.fontSize);R.textEditor.clientWidth>=Number.parseInt(R.textEditor.style.maxWidth)&&re>.9;)re-=.1,R.textEditor.style.fontSize=Math.max(re,.9)+"em"}),this.textEditor.addEventListener("keyup",function(re){re.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(re){if(re.clipboardData){var ce=re.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(ce)),re.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){R.textEditDivClicked(R.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},S.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var R=this.getTextScale(),re=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ce=this.textElement.getBBox(),ne={x:ce.width*R,y:ce.height*R};re.x-=ne.x/2,re.y-=ne.y/2,this.textEditor.style.top=re.y+"px",this.textEditor.style.left=re.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-re.x+"px",this.textEditor.style.fontSize=Math.max(16*R,12)+"px",this.textElement.style.display="none"}},S.prototype.textEditDivClicked=function(R){this.text=R.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},S.prototype.select=function(){ie.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},S.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ie.prototype.deselect.call(this)},S.prototype.dblClick=function(R,re){ie.prototype.dblClick.call(this,R,re),this.showTextEditor()},S.prototype.setColor=function(R){this.textElement&&oe.setAttributes(this.textElement,[["fill",R]]),this.color=R,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(R)},S.prototype.setFont=function(R){this.textElement&&oe.setAttributes(this.textElement,[["font-family",R]]),this.fontFamily=R,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},S.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},S.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var R=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ie.prototype.getState.call(this));return R.typeName=S.typeName,R},S.prototype.restoreState=function(R){var re=R;this.color=re.color,this.fontFamily=re.fontFamily,this.padding=re.padding,this.text=re.text,this.createVisual(),ie.prototype.restoreState.call(this,R),this.setSize()},S.prototype.scale=function(R,re){ie.prototype.scale.call(this,R,re),this.setSize(),this.sizeText(),this.positionTextEditor()},S.typeName="TextMarker",S.title="Text marker",S.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',S}(Ue),je=function(ie){function S(R,re,ce){var ne=ie.call(this,R,re,ce)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=ce.defaultColor,ne.lineWidth=ce.defaultStrokeWidth,ne.pixelRatio=ce.freehandPixelRatio,ne.setColor=ne.setColor.bind(ne),ne.addCanvas=ne.addCanvas.bind(ne),ne.finishCreation=ne.finishCreation.bind(ne),ne.setLineWidth=ne.setLineWidth.bind(ne),ne.colorPanel=new we("Color",ce.defaultColorSet,ce.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new Ve("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return le(S,ie),S.prototype.ownsTarget=function(R){return!(!ie.prototype.ownsTarget.call(this,R)&&R!==this.visual&&R!==this.drawingImage)},S.prototype.createVisual=function(){this.visual=oe.createGroup(),this.drawingImage=oe.createImage(),this.visual.appendChild(this.drawingImage);var R=oe.createTransform();this.visual.transform.baseVal.appendItem(R),this.addMarkerVisualToContainer(this.visual)},S.prototype.pointerDown=function(R,re){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(R.x,R.y),this.drawing=!0):ie.prototype.pointerDown.call(this,R,re)},S.prototype.manipulate=function(R){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(R.x,R.y),this.canvasContext.stroke()):ie.prototype.manipulate.call(this,R)},S.prototype.resize=function(R){ie.prototype.resize.call(this,R),oe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),oe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},S.prototype.pointerUp=function(R){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ie.prototype.pointerUp.call(this,R)},S.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},S.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ie.prototype.select.call(this)},S.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ie.prototype.deselect.call(this)},S.prototype.finishCreation=function(){for(var R=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),re=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ce=re[0],ne=re[1],Ne=re[2],Qe=re[3],ot=!1,Ct=0;Ct<this.canvasElement.height;Ct++)for(var tt=0;tt<this.canvasElement.width;tt++)R.data[Ct*this.canvasElement.width*4+4*tt+3]>0&&(ot=!0,Ct<ne&&(ne=Ct),tt<ce&&(ce=tt),Ct>Qe&&(Qe=Ct),tt>Ne&&(Ne=tt));if(ot){this.left=ce/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(Ne-ce)/this.pixelRatio,this.height=(Qe-ne)/this.pixelRatio;var jt=document.createElement("canvas");jt.width=Ne-ce,jt.height=Qe-ne,jt.getContext("2d").putImageData(this.canvasContext.getImageData(ce,ne,Ne-ce,Qe-ne),0,0),this.drawingImgUrl=jt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},S.prototype.setDrawingImage=function(){oe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),oe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},S.prototype.setColor=function(R){this.color=R,this.colorChanged(R)},S.prototype.setLineWidth=function(R){this.lineWidth=R},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var R=Object.assign({drawingImgUrl:this.drawingImgUrl},ie.prototype.getState.call(this));return R.typeName=S.typeName,R},S.prototype.restoreState=function(R){this.createVisual(),ie.prototype.restoreState.call(this,R),this.drawingImgUrl=R.drawingImgUrl,this.setDrawingImage()},S.prototype.scale=function(R,re){ie.prototype.scale.call(this,R,re),this.setDrawingImage()},S.typeName="FreehandMarker",S.title="Freehand marker",S.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',S}(Ue),Me=function(ie){function S(R,re,ce){var ne=ie.call(this,R,ce||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ne.typeBoxes=[],ne.currentType=re,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return le(S,ie),S.prototype.getUi=function(){var R=this,re=document.createElement("div");re.style.display="flex",re.style.overflow="hidden",re.style.flexGrow="2";for(var ce=function(Qe){var ot="both";switch(Qe){case 0:ot="both";break;case 1:ot="start";break;case 2:ot="end";break;case 3:ot="none"}var Ct=document.createElement("div");if(Ct.style.display="flex",Ct.style.flexGrow="2",Ct.style.alignItems="center",Ct.style.justifyContent="space-between",Ct.style.padding="5px",Ct.style.borderWidth="2px",Ct.style.borderStyle="solid",Ct.style.borderColor=ot===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Ct.addEventListener("click",function(){R.setCurrentType(ot,Ct)}),re.appendChild(Ct),ot==="both"||ot==="start"){var tt=document.createElement("div");tt.style.display="flex",tt.style.alignItems="center",tt.style.minHeight="20px",tt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,5 10,0 10,10" fill="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,tt.style.marginLeft="5px",Ct.appendChild(tt)}var jt=document.createElement("div");jt.style.display="flex",jt.style.alignItems="center",jt.style.minHeight="20px",jt.style.flexGrow="2";var Zt=document.createElement("hr");if(Zt.style.minWidth="20px",Zt.style.border="0px",Zt.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),Zt.style.flexGrow="2",jt.appendChild(Zt),Ct.appendChild(jt),ot==="both"||ot==="end"){var dr=document.createElement("div");dr.style.display="flex",dr.style.alignItems="center",dr.style.minHeight="20px",dr.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,0 10,5 0,10" fill="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,dr.style.marginRight="5px",Ct.appendChild(dr)}ne.typeBoxes.push(Ct)},ne=this,Ne=0;Ne<4;Ne++)ce(Ne);return re},S.prototype.setCurrentType=function(R,re){var ce=this;this.currentType=R,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===re?ce.uiStyleSettings!==void 0?ce.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},S}(W),Pe=function(ie){function S(R,re,ce){var ne=ie.call(this,R,re,ce)||this;return ne.arrowType="end",ne.arrowBaseHeight=10,ne.arrowBaseWidth=10,ne.getArrowPoints=ne.getArrowPoints.bind(ne),ne.setArrowType=ne.setArrowType.bind(ne),ne.arrowTypePanel=new Me("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return le(S,ie),S.prototype.ownsTarget=function(R){return!(!ie.prototype.ownsTarget.call(this,R)&&R!==this.arrow1&&R!==this.arrow2)},S.prototype.getArrowPoints=function(R,re){var ce=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return R-ce/2+","+(re+ne/2)+" "+R+","+(re-ne/2)+" "+(R+ce/2)+","+(re+ne/2)},S.prototype.createTips=function(){this.arrow1=oe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(oe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=oe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(oe.createTransform()),this.visual.appendChild(this.arrow2)},S.prototype.pointerDown=function(R,re){ie.prototype.pointerDown.call(this,R,re),this.state==="creating"&&this.createTips()},S.prototype.adjustVisual=function(){if(ie.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",oe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),oe.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var R=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),re=this.arrow1.transform.baseVal.getItem(0);re.setRotate(R,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(re,0);var ce=this.arrow2.transform.baseVal.getItem(0);ce.setRotate(R+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ce,0)}},S.prototype.setArrowType=function(R){this.arrowType=R,this.adjustVisual(),this.stateChanged()},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var R=Object.assign({arrowType:this.arrowType},ie.prototype.getState.call(this));return R.typeName=S.typeName,R},S.prototype.restoreState=function(R){ie.prototype.restoreState.call(this,R);var re=R;this.arrowType=re.arrowType,this.createTips(),this.adjustVisual()},S.typeName="ArrowMarker",S.title="Arrow marker",S.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',S}(nt),Se=function(ie){function S(R,re,ce){var ne=ie.call(this,R,re,ce)||this;return ne.fillColor=ce.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new we("Color",ce.defaultColorSet,ce.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return le(S,ie),Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var R=ie.prototype.getState.call(this);return R.typeName=S.typeName,R},S.typeName="CoverMarker",S.title="Cover marker",S.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',S}(We),_e=function(ie){function S(R,re,ce,ne){var Ne=ie.call(this,R,ne||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return Ne.opacities=[],Ne.opacityBoxes=[],Ne.opacities=re,Ne.currentOpacity=ce,Ne.setCurrentOpacity=Ne.setCurrentOpacity.bind(Ne),Ne}return le(S,ie),S.prototype.getUi=function(){var R=this,re=document.createElement("div");return re.style.display="flex",re.style.overflow="hidden",re.style.flexGrow="2",re.style.justifyContent="space-between",this.opacities.forEach(function(ce){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="center",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=ce===R.currentOpacity?R.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){R.setCurrentOpacity(ce,ne)}),re.appendChild(ne);var Ne=document.createElement("div");Ne.innerText=100*ce+"%",ne.appendChild(Ne),R.opacityBoxes.push(ne)}),re},S.prototype.setCurrentOpacity=function(R,re){var ce=this;this.currentOpacity=R,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===re?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},S}(W),ke=function(ie){function S(R,re,ce){var ne=ie.call(this,R,re,ce)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=ce.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=ce.defaultHighlightOpacity,ne.fillPanel=new we("Color",ce.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new _e("Opacity",ce.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return le(S,ie),S.prototype.setOpacity=function(R){this.opacity=R,this.visual&&oe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var R=ie.prototype.getState.call(this);return R.typeName=S.typeName,R},S.typeName="HighlightMarker",S.title="Highlight marker",S.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',S}(Se),Le='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Xe=function(ie){function S(R,re,ce){var ne=ie.call(this,R,re,ce)||this;return ne.bgColor="transparent",ne.tipPosition={x:0,y:0},ne.tipBase1Position={x:0,y:0},ne.tipBase2Position={x:0,y:0},ne.tipMoving=!1,ne.color=ce.defaultStrokeColor,ne.bgColor=ce.defaultFillColor,ne.fontFamily=ce.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setBgColor=ne.setBgColor.bind(ne),ne.getTipPoints=ne.getTipPoints.bind(ne),ne.positionTip=ne.positionTip.bind(ne),ne.setTipPoints=ne.setTipPoints.bind(ne),ne.colorPanel=new we("Text color",ce.defaultColorSet,ne.color,'<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>'),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new we("Fill color",ce.defaultColorSet,ne.bgColor,Le),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Ke("Font",ce.defaultFontFamilies,ce.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new Be,ne.tipGrip.visual.transform.baseVal.appendItem(oe.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return le(S,ie),S.prototype.ownsTarget=function(R){return ie.prototype.ownsTarget.call(this,R)||this.tipGrip.ownsTarget(R)||this.tip===R},S.prototype.createTip=function(){oe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=oe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},S.prototype.pointerDown=function(R,re){this.state==="new"&&ie.prototype.pointerDown.call(this,R,re),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(re)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ie.prototype.pointerDown.call(this,R,re)},S.prototype.pointerUp=function(R){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ie.prototype.pointerUp.call(this,R);else{var re=this.state==="creating";ie.prototype.pointerUp.call(this,R),this.setTipPoints(re),this.positionTip()}},S.prototype.manipulate=function(R){if(this.tipMoving){var re=this.unrotatePoint(R);this.tipPosition={x:re.x-this.manipulationStartLeft,y:re.y-this.manipulationStartTop},this.positionTip()}else ie.prototype.manipulate.call(this,R)},S.prototype.setBgColor=function(R){this.bgRectangle&&this.tip&&(oe.setAttributes(this.bgRectangle,[["fill",R]]),oe.setAttributes(this.tip,[["fill",R]])),this.bgColor=R,this.fillColorChanged(R)},S.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},S.prototype.setTipPoints=function(R){R===void 0&&(R=!1);var re=Math.min(this.height/2,15),ce=this.height/5;R&&(this.tipPosition={x:re+ce/2,y:this.height+20});var ne=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ce=this.width/5,re=Math.min(this.width/2,15),this.tipBase1Position={x:re,y:0},this.tipBase2Position={x:re+ce,y:0}):(this.tipBase1Position={x:0,y:re},this.tipBase2Position={x:0,y:re+ce}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ce=this.width/5,re=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-re-ce,y:0},this.tipBase2Position={x:this.width-re,y:0}):(this.tipBase1Position={x:this.width,y:re},this.tipBase2Position={x:this.width,y:re+ce}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ne<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ce=this.width/5,re=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-re-ce,y:this.height},this.tipBase2Position={x:this.width-re,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-re-ce},this.tipBase2Position={x:this.width,y:this.height-re}):ne<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ce=this.width/5,re=Math.min(this.width/2,15),this.tipBase1Position={x:re,y:this.height},this.tipBase2Position={x:re+ce,y:this.height}):(this.tipBase1Position={x:0,y:this.height-re},this.tipBase2Position={x:0,y:this.height-re-ce})},S.prototype.resize=function(R){ie.prototype.resize.call(this,R),this.positionTip()},S.prototype.positionTip=function(){oe.setAttributes(this.tip,[["points",this.getTipPoints()]]);var R=this.tipGrip.visual.transform.baseVal.getItem(0);R.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(R,0)},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),S.prototype.select=function(){this.positionTip(),ie.prototype.select.call(this)},S.prototype.getState=function(){var R=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ie.prototype.getState.call(this));return R.typeName=S.typeName,R},S.prototype.restoreState=function(R){var re=R;this.bgColor=re.bgColor,this.tipPosition=re.tipPosition,ie.prototype.restoreState.call(this,R),this.createTip(),this.setTipPoints()},S.prototype.scale=function(R,re){ie.prototype.scale.call(this,R,re),this.tipPosition={x:this.tipPosition.x*R,y:this.tipPosition.y*re},this.positionTip()},S.typeName="CalloutMarker",S.title="Callout marker",S.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',S}($e),Ae=function(ie){function S(R,re,ce){var ne=ie.call(this,R,re,ce)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.strokeColor=ce.defaultColor,ne.strokeWidth=ce.defaultStrokeWidth,ne.strokeDasharray=ce.defaultStrokeDasharray,ne.fillColor=ce.defaultFillColor,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.setOpacity=ne.setOpacity.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.strokePanel=new we("Line color",ee(ce.defaultColorSet,["transparent"]),ce.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new we("Fill color",ee(ce.defaultColorSet,["transparent"]),ne.fillColor,Le),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new Ve("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ge("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.opacityPanel=new _e("Opacity",ce.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return le(S,ie),S.prototype.ownsTarget=function(R){return!(!ie.prototype.ownsTarget.call(this,R)&&R!==this.visual)},S.prototype.createVisual=function(){this.visual=oe.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},S.prototype.pointerDown=function(R,re){ie.prototype.pointerDown.call(this,R,re),this.state==="new"&&(this.createVisual(),this.moveVisual(R),this._state="creating")},S.prototype.manipulate=function(R){ie.prototype.manipulate.call(this,R)},S.prototype.resize=function(R){ie.prototype.resize.call(this,R),this.setSize()},S.prototype.setSize=function(){ie.prototype.setSize.call(this),oe.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},S.prototype.pointerUp=function(R){ie.prototype.pointerUp.call(this,R),this.setSize()},S.prototype.setStrokeColor=function(R){this.strokeColor=R,this.visual&&oe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(R),this.stateChanged()},S.prototype.setFillColor=function(R){this.fillColor=R,this.visual&&oe.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(R),this.stateChanged()},S.prototype.setStrokeWidth=function(R){this.strokeWidth=R,this.visual&&oe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},S.prototype.setStrokeDasharray=function(R){this.strokeDasharray=R,this.visual&&oe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},S.prototype.setOpacity=function(R){this.opacity=R,this.visual&&oe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var R=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ie.prototype.getState.call(this));return R.typeName=S.typeName,R},S.prototype.restoreState=function(R){var re=R;this.fillColor=re.fillColor,this.strokeColor=re.strokeColor,this.strokeWidth=re.strokeWidth,this.strokeDasharray=re.strokeDasharray,this.opacity=re.opacity,this.createVisual(),ie.prototype.restoreState.call(this,R),this.setSize()},S.prototype.scale=function(R,re){ie.prototype.scale.call(this,R,re),this.setSize()},S.typeName="EllipseMarker",S.title="Ellipse marker",S.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',S}(Ue),Ye=function(ie){function S(R,re,ce){return ie.call(this,R,re,ce)||this}return le(S,ie),Object.defineProperty(S.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),S.prototype.ownsTarget=function(R){return!(!ie.prototype.ownsTarget.call(this,R)&&R!==this.tip1&&R!==this.tip2)},S.prototype.createTips=function(){this.tip1=oe.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(oe.createTransform()),this.visual.appendChild(this.tip1),this.tip2=oe.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(oe.createTransform()),this.visual.appendChild(this.tip2)},S.prototype.pointerDown=function(R,re){ie.prototype.pointerDown.call(this,R,re),this.state==="creating"&&this.createTips()},S.prototype.adjustVisual=function(){if(ie.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(oe.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),oe.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var R=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),re=this.tip1.transform.baseVal.getItem(0);re.setRotate(R,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(re,0);var ce=this.tip2.transform.baseVal.getItem(0);ce.setRotate(R+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ce,0)}},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var R=ie.prototype.getState.call(this);return R.typeName=S.typeName,R},S.prototype.restoreState=function(R){ie.prototype.restoreState.call(this,R),this.createTips(),this.adjustVisual()},S.typeName="MeasurementMarker",S.title="Measurement marker",S.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',S}(nt),it=function(ie){function S(R,re,ce){var ne=ie.call(this,R,re,ce)||this;return ne.strokePanel.colors=ce.defaultColorSet,ne.fillColor="transparent",ne}return le(S,ie),Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var R=ie.prototype.getState.call(this);return R.typeName=S.typeName,R},S.typeName="EllipseFrameMarker",S.title="Ellipse frame marker",S.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',S}(Ae),lt=function(){function ie(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ie.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ie.prototype.addUndoStep=function(S){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(S)||(this.undoStack.push(S),JSON.stringify(this.lastRedoStep)!==JSON.stringify(S)&&this.redoStack.splice(0,this.redoStack.length))},ie.prototype.replaceLastUndoStep=function(S){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=S)},ie.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ie.prototype.undo=function(){if(this.undoStack.length>1){var S=this.undoStack.pop();return S!==void 0&&this.redoStack.push(S),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ie.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ie}(),dt=function(ie){function S(R,re,ce){var ne=ie.call(this,R,re,ce)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.curveX=0,ne.curveY=0,ne.manipulationStartCurveX=0,ne.manipulationStartCurveY=0,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.positionGrips=ne.positionGrips.bind(ne),ne.addControlGrips=ne.addControlGrips.bind(ne),ne.adjustVisual=ne.adjustVisual.bind(ne),ne.setupControlBox=ne.setupControlBox.bind(ne),ne.resize=ne.resize.bind(ne),ne.strokeColor=ce.defaultColor,ne.strokeWidth=ce.defaultStrokeWidth,ne.strokeDasharray=ce.defaultStrokeDasharray,ne.strokePanel=new we("Line color",ce.defaultColorSet,ce.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Ve("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ge("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return le(S,ie),S.prototype.ownsTarget=function(R){return!(!ie.prototype.ownsTarget.call(this,R)&&R!==this.visual&&R!==this.selectorCurve&&R!==this.visibleCurve&&!this.curveGrip.ownsTarget(R))},S.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},S.prototype.createVisual=function(){this.visual=oe.createGroup(),this.selectorCurve=oe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=oe.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},S.prototype.pointerDown=function(R,re){ie.prototype.pointerDown.call(this,R,re),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=R.x,this.curveY=R.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(re)&&(this.activeGrip=this.curveGrip,this._state="resize")},S.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),oe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),oe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),oe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},S.prototype.setupControlBox=function(){ie.prototype.setupControlBox.call(this),this.curveControlLine1=oe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=oe.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},S.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ie.prototype.addControlGrips.call(this)},S.prototype.positionGrips=function(){ie.prototype.positionGrips.call(this);var R=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-R/2,this.curveY-R/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},S.prototype.manipulate=function(R){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+R.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+R.y-this.manipulationStartY),ie.prototype.manipulate.call(this,R)},S.prototype.resize=function(R){this.activeGrip===this.curveGrip&&(this.curveX=R.x,this.curveY=R.y),ie.prototype.resize.call(this,R),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},S.prototype.setStrokeColor=function(R){this.strokeColor=R,this.adjustVisual(),this.colorChanged(R)},S.prototype.setStrokeWidth=function(R){this.strokeWidth=R,this.adjustVisual()},S.prototype.setStrokeDasharray=function(R){this.strokeDasharray=R,this.adjustVisual()},S.prototype.scale=function(R,re){this.curveX=this.curveX*R,this.curveY=this.curveY*re,ie.prototype.scale.call(this,R,re)},Object.defineProperty(S.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),S.prototype.getState=function(){var R=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ie.prototype.getState.call(this));return R.typeName=S.typeName,R},S.prototype.restoreState=function(R){ie.prototype.restoreState.call(this,R);var re=R;this.strokeColor=re.strokeColor,this.strokeWidth=re.strokeWidth,this.strokeDasharray=re.strokeDasharray,this.curveX=re.curveX,this.curveY=re.curveY,this.createVisual(),this.adjustVisual()},S.typeName="CurveMarker",S.title="Curve marker",S.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',S}(Ze),ut=function(){function ie(S,R){R===void 0&&(R=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=S,this.cancelable=R}return Object.defineProperty(ie.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ie.prototype.preventDefault=function(){this._defaultPrevented=!0},ie}(),xt=function(ie){function S(R,re,ce){var ne=ie.call(this,R,!1)||this;return ne.dataUrl=re,ne.state=ce,ne}return le(S,ie),S}(ut),ht=function(ie){function S(R,re,ce){ce===void 0&&(ce=!1);var ne=ie.call(this,R,ce)||this;return ne.marker=re,ne}return le(S,ie),S}(ut),Rt=function(){function ie(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ie.prototype.addEventListener=function(S,R){this[S].push(R)},ie.prototype.removeEventListener=function(S,R){var re=this[S].indexOf(R);re>-1&&this[S].splice(re,1)},ie}(),Xt=function(){function ie(S){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Re,this._isOpen=!1,this.undoRedoManager=new lt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Rt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ie.instanceCounter++,this.styles=new Q(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=S,this.targetRoot=document.body,this.width=S.clientWidth,this.height=S.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ie.prototype,"ALL_MARKER_TYPES",{get:function(){return[Je,je,Pe,$e,it,Ae,ke,Xe,Ye,Se,nt,dt]},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Je,je,Pe,$e,Ae,ke,Xe]},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Je,je,Pe,$e,ke]},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(S){var R=this;this._availableMarkerTypes.splice(0),S.forEach(function(re){if(typeof re=="string"){var ce=R.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===re});ce!==void 0&&R._availableMarkerTypes.push(ce)}else R._availableMarkerTypes.push(re)})},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(S){this._zoomLevel=S,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ie.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Z.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ie.prototype.show=function(){var S=this;this.styles.styleSheetRoot===void 0&&V.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=V.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(R){return R(new ut(S))})},ie.prototype.render=function(){return ge(this,void 0,void 0,function(){var S;return ye(this,function(R){switch(R.label){case 0:return this.setCurrentMarker(),(S=new ue).naturalSize=this.renderAtNaturalSize,S.imageType=this.renderImageType,S.imageQuality=this.renderImageQuality,S.markersOnly=this.renderMarkersOnly,S.width=this.renderWidth,S.height=this.renderHeight,[4,S.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return R.sent(),[4,S.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,R.sent()]}})})},ie.prototype.close=function(S){var R=this;if(S===void 0&&(S=!1),this.isOpen){var re=!1;S||this.eventListeners.beforeclose.forEach(function(ce){var ne=new ut(R,!0);ce(ne),ne.defaultPrevented&&(re=!0)}),re||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ce){return ce(new ut(R))}),this.detachEvents(),this._isOpen=!1)}},ie.prototype.addMarkersToToolbar=function(){for(var S,R=[],re=0;re<arguments.length;re++)R[re]=arguments[re];(S=this._availableMarkerTypes).push.apply(S,R)},ie.prototype.addRenderEventListener=function(S){this.addEventListener("render",function(R){S(R.dataUrl,R.state)})},ie.prototype.removeRenderEventListener=function(S){},ie.prototype.addCloseEventListener=function(S){this.addEventListener("close",function(){S()})},ie.prototype.removeCloseEventListener=function(S){},ie.prototype.setupResizeObserver=function(){var S=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){S.resize(S.target.clientWidth,S.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return S.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ie.prototype.onPopupTargetResize=function(){var S=1*this.target.clientWidth/this.target.clientHeight,R=this.editorCanvas.clientWidth/S>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*S:this.editorCanvas.clientWidth,re=R<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/S;this.resize(R,re)},ie.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ie.prototype.resize=function(S,R){this._isResizing=!0;var re=S/this.imageWidth,ce=R/this.imageHeight;this.imageWidth=Math.round(S),this.imageHeight=Math.round(R),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(re,ce),this._isResizing=!1},ie.prototype.scaleMarkers=function(S,R){var re,ce=this;this._currentMarker&&this._currentMarker instanceof $e?this._currentMarker.scale(S,R):(re=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ne){ne!==ce._currentMarker&&ne.scale(S,R)}),re!==void 0&&this.setCurrentMarker(re)},ie.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},ie.prototype.setTopLeft=function(){var S=this.editingTarget.getBoundingClientRect(),R=this.editorCanvas.getBoundingClientRect();this.left=S.left-R.left,this.top=S.top-R.top},ie.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},ie.prototype.addDefs=function(){for(var S,R=[],re=0;re<arguments.length;re++)R[re]=arguments[re];this.defs=oe.createDefs(),this.addDefsToImage(),(S=this.defs).append.apply(S,R)},ie.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ie.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},ie.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ie.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ie.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},ie.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ie.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},ie.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var S=document.createElement("a");S.href="https://markerjs.com/",S.target="_blank",S.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',S.title="Powered by marker.js",S.style.display="grid",S.style.alignItems="center",S.style.justifyItems="center",S.style.padding="3px",S.style.width="20px",S.style.height="20px",this.logoUI.appendChild(S),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ie.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ie.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ie.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ie.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var S=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=S+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new j(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new k(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ie.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ie.prototype.removeMarker=function(S){this.markerImage.removeChild(S.container),this.markers.indexOf(S)>-1&&this.markers.splice(this.markers.indexOf(S),1),S.dispose()},ie.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ie.prototype.toolbarButtonClicked=function(S,R){if(S==="marker"&&R!==void 0)this.createNewMarker(R);else if(S==="action")switch(R){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ie.prototype.deleteSelectedMarker=function(){var S=this;if(this._currentMarker!==void 0){var R=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ce){var ne=new ht(S,S._currentMarker,!0);ce(ne),ne.defaultPrevented&&(R=!0)}),!R){var re=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ce){return ce(new ht(S,re))})}}},ie.prototype.clear=function(){var S=this,R=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ne){var Qe=new ht(S,void 0,!0);Ne(Qe),Qe.defaultPrevented&&(R=!0)}),!R)){this.setCurrentMarker();for(var re=function(Ne){var Qe=ce.markers[Ne];ce.setCurrentMarker(ce.markers[Ne]),ce._currentMarker.dispose(),ce.markerImage.removeChild(ce._currentMarker.container),ce.markers.splice(ce.markers.indexOf(ce._currentMarker),1),ce.eventListeners.markerdelete.forEach(function(ot){return ot(new ht(S,Qe))})},ce=this,ne=this.markers.length-1;ne>=0;ne--)re(ne);this.addUndoStep()}},Object.defineProperty(ie.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ie.prototype.showNotesEditor=function(){var S;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(S=this._currentMarker.notes)!==null&&S!==void 0?S:"",this.overlayContainer.appendChild(this.notesArea))},ie.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ie.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ie.prototype.addUndoStep=function(){var S=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var R=this.getState(),re=this.undoRedoManager.getLastUndoStep();if(!re||re.width===R.width&&re.height===R.height){var ce=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(R),ce<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ne){return ne(new ut(S))})}else this.undoRedoManager.replaceLastUndoStep(R),this.eventListeners.statechange.forEach(function(ne){return ne(new ut(S))})}},ie.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ie.prototype.undoStep=function(){var S=this,R=this.undoRedoManager.undo();R!==void 0&&(this.restoreState(R),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(re){return re(new ut(S))}))},ie.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ie.prototype.redoStep=function(){var S=this,R=this.undoRedoManager.redo();R!==void 0&&(this.restoreState(R),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(re){return re(new ut(S))}))},ie.prototype.stepZoom=function(){var S=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=S<this.zoomSteps.length-1?this.zoomSteps[S+1]:this.zoomSteps[0]},ie.prototype.panTo=function(S){this.contentDiv.scrollBy({left:this.prevPanPoint.x-S.x,top:this.prevPanPoint.y-S.y}),this.prevPanPoint=S},ie.prototype.startRenderAndClose=function(){return ge(this,void 0,void 0,function(){var S,R,re=this;return ye(this,function(ce){switch(ce.label){case 0:return[4,this.render()];case 1:return S=ce.sent(),R=this.getState(),this.eventListeners.render.forEach(function(ne){return ne(new xt(re,S,R))}),this.close(!0),[2]}})})},ie.prototype.getState=function(S){S===!0&&this.setCurrentMarker();var R={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(re){return R.markers.push(re.getState())}),R},ie.prototype.restoreState=function(S){var R=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);S.markers.forEach(function(re){var ce=R._availableMarkerTypes.find(function(Ne){return Ne.typeName===re.typeName});if(ce!==void 0){var ne=R.addNewMarker(ce);ne.restoreState(re),R.markers.push(ne)}}),S.width&&S.height&&(S.width!==this.imageWidth||S.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/S.width,this.imageHeight/S.height),this.eventListeners.restorestate.forEach(function(re){return re(new ut(R))})},ie.prototype.addNewMarker=function(S){var R=oe.createGroup();return this.markerImage.appendChild(R),new S(R,this.overlayContainer,this.settings)},ie.prototype.createNewMarker=function(S){var R,re=this;(R=typeof S=="string"?this._availableMarkerTypes.find(function(ce){return ce.typeName===S}):S)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(R),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(R.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ce){return ce(new ht(re,re._currentMarker))}))},ie.prototype.markerCreated=function(S){var R=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(S),this.setCurrentMarker(S),S instanceof je&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(je):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(re){return re(new ht(R,R._currentMarker))})},ie.prototype.colorChanged=function(S){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=S,this.settings.defaultStrokeColor=S)},ie.prototype.fillColorChanged=function(S){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=S)},ie.prototype.markerStateChanged=function(S){var R=this;this.eventListeners.markerchange.forEach(function(re){return re(new ht(R,S))})},ie.prototype.setCurrentMarker=function(S){var R=this;this._currentMarker!==S&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(re){return re(new ht(R,R._currentMarker))})),this._currentMarker=S,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(re){return re(new ht(R,R._currentMarker))}))},ie.prototype.onPointerDown=function(S){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||S.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var R=this.markers.find(function(re){return re.ownsTarget(S.target)});R!==void 0?(this.setCurrentMarker(R),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(S.clientX,S.clientY),S.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:S.clientX,y:S.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(S.clientX,S.clientY))},ie.prototype.onDblClick=function(S){if(this._isFocused||this.focus(),this.mode==="select"){var R=this.markers.find(function(re){return re.ownsTarget(S.target)});R!==void 0&&R!==this._currentMarker&&this.setCurrentMarker(R),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(S.clientX,S.clientY),S.target):this.setCurrentMarker()}},ie.prototype.onPointerMove=function(S){this.touchPoints!==1&&S.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||S.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(S.clientX,S.clientY)):this.zoomLevel>1&&this.panTo({x:S.clientX,y:S.clientY}))},ie.prototype.onPointerUp=function(S){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(S.clientX,S.clientY)),this.isDragging=!1,this.addUndoStep()},ie.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ie.prototype.onKeyUp=function(S){this._currentMarker===void 0||this.notesArea!==void 0||S.key!=="Delete"&&S.key!=="Backspace"||this.deleteSelectedMarker()},ie.prototype.clientToLocalCoordinates=function(S,R){var re=this.markerImage.getBoundingClientRect();return{x:(S-re.left)/this.zoomLevel,y:(R-re.top)/this.zoomLevel}},ie.prototype.onWindowResize=function(){this.positionUI()},ie.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var S=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=S+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ie.prototype.addLicenseKey=function(S){Z.addKey(S)},ie.prototype.addEventListener=function(S,R){this.eventListeners.addEventListener(S,R)},ie.prototype.removeEventListener=function(S,R){this.eventListeners.removeEventListener(S,R)},ie.prototype.renderState=function(S){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(S),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ie.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ie.prototype.focus=function(){var S=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(R){return R(new ut(S))}))},ie.prototype.blur=function(){var S=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(R){return R(new ut(S))}))},ie.instanceCounter=0,ie}();/* **********************************
|
|
|
cropro version 1.2.0
|
|
|
@license SEE LICENSE IN LICENSE
|
|
|
|
|
|
copyright Alan Mendelevich
|
|
|
see README and LICENSE for details
|
|
|
********************************** *//*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
|
purpose with or without fee is hereby granted.
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
|
***************************************************************************** */var er=function(ie,S){return(er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,re){R.__proto__=re}||function(R,re){for(var ce in re)Object.prototype.hasOwnProperty.call(re,ce)&&(R[ce]=re[ce])})(ie,S)};function Qt(ie,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function R(){this.constructor=ie}er(ie,S),ie.prototype=S===null?Object.create(S):(R.prototype=S.prototype,new R)}function Ut(ie,S,R,re){return new(R||(R=Promise))(function(ce,ne){function Ne(Ct){try{ot(re.next(Ct))}catch(tt){ne(tt)}}function Qe(Ct){try{ot(re.throw(Ct))}catch(tt){ne(tt)}}function ot(Ct){var tt;Ct.done?ce(Ct.value):(tt=Ct.value,tt instanceof R?tt:new R(function(jt){jt(tt)})).then(Ne,Qe)}ot((re=re.apply(ie,S||[])).next())})}function Gt(ie,S){var R,re,ce,ne,Ne={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return ne={next:Qe(0),throw:Qe(1),return:Qe(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function Qe(ot){return function(Ct){return function(tt){if(R)throw new TypeError("Generator is already executing.");for(;Ne;)try{if(R=1,re&&(ce=2&tt[0]?re.return:tt[0]?re.throw||((ce=re.return)&&ce.call(re),0):re.next)&&!(ce=ce.call(re,tt[1])).done)return ce;switch(re=0,ce&&(tt=[2&tt[0],ce.value]),tt[0]){case 0:case 1:ce=tt;break;case 4:return Ne.label++,{value:tt[1],done:!1};case 5:Ne.label++,re=tt[1],tt=[0];continue;case 7:tt=Ne.ops.pop(),Ne.trys.pop();continue;default:if(!(ce=Ne.trys,(ce=ce.length>0&&ce[ce.length-1])||tt[0]!==6&&tt[0]!==2)){Ne=0;continue}if(tt[0]===3&&(!ce||tt[1]>ce[0]&&tt[1]<ce[3])){Ne.label=tt[1];break}if(tt[0]===6&&Ne.label<ce[1]){Ne.label=ce[1],ce=tt;break}if(ce&&Ne.label<ce[2]){Ne.label=ce[2],Ne.ops.push(tt);break}ce[2]&&Ne.ops.pop(),Ne.trys.pop();continue}tt=S.call(ie,Ne)}catch(jt){tt=[6,jt],re=0}finally{R=ce=0}if(5&tt[0])throw tt[1];return{value:tt[0]?tt[1]:void 0,done:!0}}([ot,Ct])}}}var Nr=function(){function ie(){}return ie.addKey=function(S){ie.key=S},Object.defineProperty(ie,"isLicensed",{get:function(){return!!ie.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ie.key)},enumerable:!1,configurable:!0}),ie}(),At=function(){function ie(){}return ie.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ie.setAttributes=function(S,R){for(var re=0,ce=R;re<ce.length;re++){var ne=ce[re],Ne=ne[0],Qe=ne[1];S.setAttribute(Ne,Qe)}},ie.createRect=function(S,R,re){var ce=document.createElementNS("http://www.w3.org/2000/svg","rect");return ce.setAttribute("width",S.toString()),ce.setAttribute("height",R.toString()),re&&ie.setAttributes(ce,re),ce},ie.createLine=function(S,R,re,ce,ne){var Ne=document.createElementNS("http://www.w3.org/2000/svg","line");return Ne.setAttribute("x1",S.toString()),Ne.setAttribute("y1",R.toString()),Ne.setAttribute("x2",re.toString()),Ne.setAttribute("y2",ce.toString()),ne&&ie.setAttributes(Ne,ne),Ne},ie.createPolygon=function(S,R){var re=document.createElementNS("http://www.w3.org/2000/svg","polygon");return re.setAttribute("points",S),R&&ie.setAttributes(re,R),re},ie.createCircle=function(S,R){var re=document.createElementNS("http://www.w3.org/2000/svg","circle");return re.setAttribute("cx",(S/2).toString()),re.setAttribute("cy",(S/2).toString()),re.setAttribute("r",S.toString()),R&&ie.setAttributes(re,R),re},ie.createEllipse=function(S,R,re){var ce=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ce.setAttribute("cx",(S/2).toString()),ce.setAttribute("cy",(R/2).toString()),ce.setAttribute("rx",(S/2).toString()),ce.setAttribute("ry",(R/2).toString()),re&&ie.setAttributes(ce,re),ce},ie.createGroup=function(S){var R=document.createElementNS("http://www.w3.org/2000/svg","g");return S&&ie.setAttributes(R,S),R},ie.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ie.createMarker=function(S,R,re,ce,ne,Ne,Qe){var ot=document.createElementNS("http://www.w3.org/2000/svg","marker");return ie.setAttributes(ot,[["id",S],["orient",R],["markerWidth",re.toString()],["markerHeight",ce.toString()],["refX",ne.toString()],["refY",Ne.toString()]]),ot.appendChild(Qe),ot},ie.createText=function(S){var R=document.createElementNS("http://www.w3.org/2000/svg","text");return R.setAttribute("x","0"),R.setAttribute("y","0"),S&&ie.setAttributes(R,S),R},ie.createTSpan=function(S,R){var re=document.createElementNS("http://www.w3.org/2000/svg","tspan");return re.textContent=S,R&&ie.setAttributes(re,R),re},ie.createImage=function(S){var R=document.createElementNS("http://www.w3.org/2000/svg","image");return S&&ie.setAttributes(R,S),R},ie.createPoint=function(S,R){var re=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return re.x=S,re.y=R,re},ie.createPath=function(S,R){var re=document.createElementNS("http://www.w3.org/2000/svg","path");return re.setAttribute("d",S),R&&ie.setAttributes(re,R),re},ie.createElement=function(S,R){var re=document.createElementNS("http://www.w3.org/2000/svg",S);return R&&ie.setAttributes(re,R),re},ie.getHollowRectanglePath=function(S,R,re,ce,ne,Ne,Qe,ot){return"M"+S+","+R+"V"+(R+ce)+"H"+(S+re)+"V"+R+"H"+ne+"V"+Ne+"H"+(ne+Qe)+"V"+(Ne+ot)+"H"+ne+"V"+R+"Z"},ie}(),Dt=function(){function ie(S){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+S+"_"}return Object.defineProperty(ie.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#333333",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarBackgroundActiveColor:"#282828",toolbarColor:"#eeeeee",cropShadeColor:"#ffffff",cropFrameColor:"#ffffff",gripColor:"#333333",gripFillColor:"#cccccc",toolbarHeight:40}},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),ie.prototype.addClass=function(S){return this.styleSheet===void 0&&this.addStyleSheet(),S.name=""+this.classNamePrefix+S.localName,this.classes.push(S),this.styleSheet.sheet.insertRule("."+S.name+" {"+S.style+"}",this.styleSheet.sheet.cssRules.length),S},ie.prototype.addRule=function(S){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(S),this.styleSheet.sheet.insertRule(S.selector+" {"+S.style+"}",this.styleSheet.sheet.cssRules.length)},ie.prototype.addStyleSheet=function(){var S;this.styleSheet=document.createElement("style"),((S=this.styleSheetRoot)!==null&&S!==void 0?S:document.head).appendChild(this.styleSheet),this.addRule(new st("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new st("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new st("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new _t("_fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new _t("_fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},ie.prototype.removeStyleSheet=function(){var S;this.styleSheet&&(((S=this.styleSheetRoot)!==null&&S!==void 0?S:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ie}(),st=function(ie,S){this.selector=ie,this.style=S},_t=function(ie,S){this.localName=ie,this.style=S},Vt=function(){function ie(){this.blocks=[],this.display=""}return ie.prototype.addButtonBlock=function(S){S.className=this.blockClassName,S.buttonClassName=this.buttonClassName,S.buttonColorsClassName=this.buttonColorsClassName,S.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(S)},ie.prototype.addElementBlock=function(S){S.className===void 0&&(S.className=this.blockClassName),this.blocks.push(S)},ie.prototype.getUI=function(){var S=document.createElement("div");return S.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,S.style.display=this.display,this.blocks.forEach(function(R){return S.appendChild(R.getUI())}),S},ie}(),tr=function(){function ie(){}return ie.prototype.getUI=function(){var S=document.createElement("div");if(S.className=this.className,this.minWidth!==void 0&&(S.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":S.style.justifyContent="flex-start";break;case"center":S.style.justifyContent="center";break;case"end":S.style.justifyContent="flex-end"}return S.style.whiteSpace="nowrap",S},ie}(),sr=function(ie){function S(){var R=ie!==null&&ie.apply(this,arguments)||this;return R.buttons=[],R}return Qt(S,ie),S.prototype.addButton=function(R){R.className=this.buttonClassName,R.colorsClassName=this.buttonColorsClassName,R.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(R)},S.prototype.getUI=function(){var R=ie.prototype.getUI.call(this);return this.buttons.forEach(function(re){return R.appendChild(re.getUI())}),R},S}(tr),Bt=function(){function ie(S,R){this._isActive=!1,this._isHidden=!1,this._icon=S,this.title=R,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(ie.prototype,"icon",{get:function(){return this._icon},set:function(S){this._icon=S,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"isActive",{get:function(){return this._isActive},set:function(S){this._isActive=S,this.adjustClassName()},enumerable:!1,configurable:!0}),ie.prototype.getUI=function(){var S=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return S.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},ie.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},ie.prototype.hide=function(){this._isHidden=!0},ie}(),ft=function(ie){function S(){var R=ie!==null&&ie.apply(this,arguments)||this;return R.elements=[],R}return Qt(S,ie),S.prototype.addElement=function(R){this.elements.push(R)},S.prototype.getUI=function(){var R=ie.prototype.getUI.call(this);return this.elements.forEach(function(re){return R.appendChild(re)}),R},S}(tr),Yt=function(){function ie(S,R){this.horizontal=S,this.vertical=R}return Object.defineProperty(ie.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),ie.prototype.getVerticalLength=function(S){return S/this.ratio},ie.prototype.getHorizontalLength=function(S){return S*this.ratio},ie}(),gr=function(){function ie(){}return ie.getIcon=function(S,R){if(S>0&&R>0){var re=new Yt(S,R),ce=re.ratio>=1?20:re.getHorizontalLength(20),ne=re.ratio<1?20:re.getVerticalLength(20),Ne=document.createElementNS("http://www.w3.org/2000/svg","svg");Ne.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ne.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(Ne);var Qe=At.createDefs();Ne.appendChild(Qe);var ot=At.createElement("clipPath",[["id","text-bg-clip"]]);Qe.appendChild(ot);var Ct=At.createPath(At.getHollowRectanglePath((24-ce)/2,(24-ne)/2,ce,ne,(24-ce)/2+2,(24-ne)/2+2,ce-4,ne-4));Ne.appendChild(Ct);var tt=At.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);tt.appendChild(At.createTSpan(S+":"+R)),Ne.appendChild(tt);var jt=tt.getBBox();At.setAttributes(tt,[["x",((24-jt.width)/2).toString()],["y",((24-jt.height)/2-jt.y).toString()]]);var Zt=At.createPath(At.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(jt.width))/2,(24-Math.ceil(jt.height))/2,Math.ceil(jt.width),Math.ceil(jt.height)));return ot.appendChild(Zt),At.setAttributes(Ct,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(Ne),Ne.outerHTML}return'<svg viewBox="0 0 24 24"><path d="M19 12h-2v3h-3v2h5v-5M7 9h3V7H5v5h2V9m14-6H3a2 2 0 00-2 2v14a2 2 0 002 2h18a2 2 0 002-2V5a2 2 0 00-2-2m0 16H3V5h18v14z"/></svg>'},ie}(),Nt=function(ie){function S(R,re,ce){var ne=ie.call(this,R,re)||this;return ne.isDropdownOpen=!1,ne.onClick=ne.dropdownButtonClicked,ne.dropdownButtons=ce,ne}return Qt(S,ie),S.prototype.setupDropdown=function(){var R=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(re){re.className=R.className,re.colorsClassName=R.colorsClassName,R.dropdownBlock.appendChild(re.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},S.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},S.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},S.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},S.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},S.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},S}(Bt),Pt=function(){function ie(S,R){this.GRIP_SIZE=10,this.color=S,this.fillColor=R,this.visual=At.createGroup(),this.visual.appendChild(At.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(At.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ie.prototype.ownsTarget=function(S){return S===this.visual||S===this.visual.childNodes[0]||S===this.visual.childNodes[1]},ie.prototype.setCenter=function(S,R){this.visual.childNodes.forEach(function(re){return At.setAttributes(re,[["cx",S.toString()],["cy",R.toString()]])})},ie}(),fr=function(){function ie(S,R,re,ce){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=S,this.canvasHeight=R,this.margin=re,this.container=ce,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(ie.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(S){this._aspectRatio=S,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(S){this._isGridVisible=S,this.gridContainer&&At.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(S){this._zoomFactor=S,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),ie.prototype.open=function(){var S=this;this.cropShadeElement=At.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=At.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var R=0;R<this.numberOfGridLines;R++)this.horizontalGridLines.push(At.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(At.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(re){return S.gridContainer.appendChild(re)}),this.verticalGridLines.forEach(function(re){return S.gridContainer.appendChild(re)}),this.cropRectElement=At.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new Pt(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new Pt(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new Pt(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new Pt(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},ie.prototype.setCropRectangle=function(S){this.cropRect=S;var R=Object.assign({},this.cropRect);this.zoomFactor!==1&&(R.width=this.cropRect.width*this.zoomFactor,R.height=this.cropRect.height*this.zoomFactor,R.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-R.width/2,R.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-R.height/2),At.setAttributes(this.cropRectElement,[["x",R.x.toString()],["y",R.y.toString()],["width",R.width.toString()],["height",R.height.toString()]]);var re=R.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(ne,Ne){var Qe=R.y+re*(Ne+1);At.setAttributes(ne,[["x1",""+R.x],["y1",""+Qe],["x2",""+(R.x+R.width)],["y2",""+Qe]])});var ce=R.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(ne,Ne){var Qe=R.x+ce*(Ne+1);At.setAttributes(ne,[["x1",""+Qe],["y1",""+R.y],["x2",""+Qe],["y2",""+(R.y+R.height)]])}),At.setAttributes(this.cropShadeElement,[["d",At.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,R.x,R.y,R.width,R.height)]]),this.topLeftGrip.setCenter(R.x,R.y),this.topRightGrip.setCenter(R.x+R.width,R.y),this.bottomLeftGrip.setCenter(R.x,R.y+R.height),this.bottomRightGrip.setCenter(R.x+R.width,R.y+R.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},ie.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},ie.prototype.clientToLocalCoordinates=function(S,R){var re=this.container.getBoundingClientRect();return{x:S-re.left+this.margin,y:R-re.top+this.margin}},ie.prototype.onPointerDown=function(S){this.container.setPointerCapture(S.pointerId),this.previousPoint=this.clientToLocalCoordinates(S.clientX,S.clientY),this.cropRectElement===S.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(S.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(S.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(S.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(S.target)&&(this.activeGrip=this.bottomRightGrip)},ie.prototype.onPointerMove=function(S){if(this.isMoving)this.move(this.clientToLocalCoordinates(S.clientX,S.clientY));else if(this.activeGrip){var R=this.clientToLocalCoordinates(S.clientX,S.clientY);this.resize(R)}S.preventDefault()},ie.prototype.onPointerUp=function(S){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(S.pointerId)},ie.prototype.move=function(S){var R=S.x-this.previousPoint.x,re=S.y-this.previousPoint.y;this.zoomFactor!==1&&(R=-R/this.zoomFactor,re=-re/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+R),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+re),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=S},ie.prototype.resize=function(S){var R=Object.assign({},this.cropRect),re=S.x-this.previousPoint.x,ce=S.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:R.x+re<this.margin&&(re=this.margin-R.x),R.x+=re,R.width=this.cropRect.x+this.cropRect.width-R.x;break;case this.bottomRightGrip:case this.topRightGrip:R.width+re>this.canvasWidth*this.zoomFactor&&(re=this.canvasWidth*this.zoomFactor-R.width),R.width+=re}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(R.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(re),R.height=this.aspectRatio.getVerticalLength(R.width)):(R.y+=ce,R.height=this.cropRect.y+this.cropRect.height-R.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?R.height=this.aspectRatio.getVerticalLength(R.width):R.height+=ce}R.width<10&&(R.x=this.cropRect.x,R.width=10),R.height<10&&(R.y=this.cropRect.y,R.height=10),this.previousPoint=S,R.x>=this.margin&&R.y>=this.margin&&R.x-this.margin+R.width<=this.canvasWidth&&R.y-this.margin+R.height<=this.canvasHeight&&(this.cropRect=R,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},ie.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var S=this.cropRect.x+this.cropRect.width/2,R=this.cropRect.y+this.cropRect.height/2,re=this.aspectRatio.getHorizontalLength(this.cropRect.height),ce=this.aspectRatio.getVerticalLength(this.cropRect.width);re/this.canvasWidth<ce/this.canvasHeight?this.cropRect.width=re:this.cropRect.height=ce,this.cropRect.width>this.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=S-this.cropRect.width/2,this.cropRect.y=R-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},ie.prototype.getRescaledRect=function(S,R,re,ce,ne,Ne){var Qe=re/S,ot=ce/R;return{x:(ne.x-Ne)*Qe+Ne,y:(ne.y-Ne)*ot+Ne,width:ne.width*Qe,height:ne.height*ot}},ie.prototype.scaleCanvas=function(S,R){var re=this.getRescaledRect(this.canvasWidth,this.canvasHeight,S,R,this.cropRect,this.margin);this.canvasWidth=S,this.canvasHeight=R,this.onCropChange&&this.onCropChange(re),this.setCropRectangle(re)},ie}(),Wr=function(){function ie(S){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=S,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(ie.prototype,"angle",{get:function(){return this._angle},set:function(S){this._angle=S,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),ie.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},ie.prototype.onPointerDown=function(S){this.controlContainer.setPointerCapture(S.pointerId),this.isDragging=!0,this.previousPoint={x:S.clientX,y:S.clientY}},ie.prototype.onPointerMove=function(S){this.isDragging&&(this.onAngleChange&&this.onAngleChange((S.clientX-this.previousPoint.x)/5),this.previousPoint.x=S.clientX)},ie.prototype.onPointerUp=function(S){this.isDragging&&this.onAngleChange&&this.onAngleChange((S.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(S.pointerId)},ie.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var S=this.angleLabelText.getBBox();At.setAttributes(this.angleLabelElement,[["x",((this.width-S.width)/2).toString()],["y",(this.height/2).toString()]])}},ie.prototype.positionScaleShape=function(){if(this.scaleShape){var S=this.scaleShape.transform.baseVal.getItem(0);S.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(S,0)}},ie.prototype.getVisual=function(){var S=document.createElementNS("http://www.w3.org/2000/svg","svg");S.setAttribute("xmlns","http://www.w3.org/2000/svg"),S.setAttribute("width",this.width+"px"),S.setAttribute("height",this.height+"px"),S.setAttribute("viewBox","0 0 "+this.width+" "+this.height),S.style.flexShrink="0",document.body.appendChild(S);for(var R="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,re=1;re<=this.width/5+10;re++){var ce=re%5==0?this.height/3:this.height/6;R+="h4v"+-ce+"h1v"+ce}R+="v1H0Z",this.scaleShape=At.createPath(R);var ne=At.createTransform();this.scaleShape.transform.baseVal.appendItem(ne),S.appendChild(this.scaleShape),this.angleLabelElement=At.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=At.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var Ne=At.createTSpan("");return Ne.innerHTML="°",this.angleLabelElement.appendChild(Ne),S.appendChild(this.angleLabelElement),document.body.removeChild(S),S},ie}(),Pr=function(){function ie(){this.naturalSize=!1,this.imageType="image/png"}return ie.prototype.rasterize=function(S,R,re,ce,ne,Ne,Qe){var ot=this;return new Promise(function(Ct){var tt=document.createElement("canvas");tt.width=S.width.baseVal.value-2*ce,tt.height=S.height.baseVal.value-2*ce;var jt=1,Zt=1;ot.naturalSize===!0?(jt=R.naturalWidth/(S.width.baseVal.value-2*ce)/Ne,Zt=R.naturalHeight/(S.height.baseVal.value-2*ce)/Qe,tt.width=R.naturalWidth/Ne,tt.height=R.naturalHeight/Qe):ot.width!==void 0&&ot.height!==void 0&&(jt=ot.width/re.width,Zt=ot.height/re.height,tt.width*=jt,tt.height*=Zt);var dr=tt.getContext("2d");dr.translate(tt.width/2,tt.height/2),dr.rotate(ne*Math.PI/180),dr.scale(Ne,Qe),dr.translate(-tt.width/2,-tt.height/2),dr.drawImage(R,0,0,tt.width,tt.height);var tn=document.createElement("canvas");tn.width=re.width*jt,tn.height=re.height*Zt,tn.getContext("2d").putImageData(dr.getImageData((re.x-ce)*jt,(re.y-ce)*Zt,re.width*jt,re.height*Zt),0,0),Ct(tn.toDataURL(ot.imageType,ot.imageQuality))})},ie}(),qe=function(){function ie(S){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=ie.instanceCounter++,this.styles=new Dt(this.instanceNo),this.target=S,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(ie.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(S){this._zoomToCropEnabled=S,S?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(S){this._isGridVisible=S,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"gridLines",{get:function(){return this._gridLines},set:function(S){this._gridLines=S,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(S){this._rotationAngle=S,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"aspectRatio",{get:function(){var S;return(S=this._aspectRatio)!==null&&S!==void 0?S:this.aspectRatios[0]},set:function(S){this._aspectRatio=S},enumerable:!1,configurable:!0}),ie.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},ie.prototype.show=function(){this.showUI(),this.open()},ie.prototype.close=function(S){S===void 0&&(S=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),S||this.closeEventListeners.forEach(function(R){return R()}),this._isOpen=!1)},ie.prototype.addRenderEventListener=function(S){this.renderEventListeners.push(S)},ie.prototype.removeRenderEventListener=function(S){this.renderEventListeners.indexOf(S)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(S),1)},ie.prototype.addCloseEventListener=function(S){this.closeEventListeners.push(S)},ie.prototype.removeCloseEventListener=function(S){this.closeEventListeners.indexOf(S)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(S),1)},ie.prototype.setupResizeObserver=function(){var S=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){S.resize(S.target.clientWidth,S.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},ie.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var S=1*this.target.clientWidth/this.target.clientHeight,R=this.contentDiv.clientWidth/S>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*S:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,re=R+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/S;this.resize(R,re)}},ie.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ie.prototype.setEditingTargetSize=function(){this.editorCanvas.style.width=this.imageWidth+2*this.CANVAS_MARGIN+"px",this.editorCanvas.style.height=this.imageHeight+2*this.CANVAS_MARGIN+"px",At.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},ie.prototype.resize=function(S,R){this.imageWidth=Math.round(S),this.imageHeight=Math.round(R),this.setEditingTargetSize(),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.displayMode!=="popup"?this.coverDiv.style.width=this.paddedImageWidth+"px":(this.setTopLeft(),this.positionCropImage()),this.cropLayer.scaleCanvas(this.imageWidth,this.imageHeight),this.applyRotation()},ie.prototype.setEditingTarget=function(){var S=document.createElement("canvas");S.width=this.target.naturalWidth,S.height=this.target.naturalHeight,S.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var R=S.toDataURL();At.setAttributes(this.editingTarget,[["href",R]]),this.setEditingTargetSize()},ie.prototype.setTopLeft=function(){var S=this.target.getBoundingClientRect(),R=this.editorCanvas.getBoundingClientRect();this.left=S.left-R.left-this.CANVAS_MARGIN,this.top=S.top-R.top-this.CANVAS_MARGIN},ie.prototype.initCropCanvas=function(){this.cropImageHolder=document.createElement("div"),this.cropImageHolder.style.setProperty("touch-action","none"),this.cropImageHolder.style.setProperty("-ms-touch-action","none"),this.cropImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.cropImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImage.style.pointerEvents="auto",this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.cropImageHolder.style.transformOrigin="top left",this.positionCropImage(),this.defs=At.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=At.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=At.createGroup(),this.editingTargetRotationScaleContainer=At.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var S=At.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(S);var R=At.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(R),this.editingTargetContainer=At.createGroup(),this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px)",this.editingTargetContainer.appendChild(this.editingTargetRotationContainer),this.cropImage.appendChild(this.editingTargetContainer),this.cropImageHolder.appendChild(this.cropImage),this.editorCanvas.appendChild(this.cropImageHolder)},ie.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},ie.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=At.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new fr(this.imageWidth,this.imageHeight,this.CANVAS_MARGIN,this.cropLayerContainer),this.cropLayer.onCropChange=this.cropRectChanged,this.cropLayer.numberOfGridLines=this.gridLines,this.cropLayer.isGridVisible=this.isGridVisible,this.cropLayer.cropShadeColor=this.styles.settings.cropShadeColor,this.cropLayer.cropFrameColor=this.styles.settings.cropFrameColor,this.cropLayer.gripColor=this.styles.settings.gripColor,this.cropLayer.gripFillColor=this.styles.settings.gripFillColor,this.cropLayer.open(),this.cropLayer.setCropRectangle(this.cropRect),this.zoomToCropEnabled&&this.zoomToCrop()},ie.prototype.zoomToCrop=function(){if(this.cropRect){var S=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,R=this.cropRect.y-this.CANVAS_MARGIN+this.cropRect.height/2;this.zoomFactor=Math.min(this.imageWidth/this.cropRect.width,this.imageHeight/this.cropRect.height),this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin=S+"px "+R+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-S+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-R+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},ie.prototype.unzoomFromCrop=function(){this.zoomFactor=1,this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin="center",this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px) scale(1)",this.cropLayer.zoomFactor=this.zoomFactor)},ie.prototype.cropRectChanged=function(S){this.cropRect=S,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},ie.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},ie.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ie.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ie.prototype.showUI=function(){switch(this.addStyles(),this.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.displayMode){case"inline":this.coverDiv.style.position="absolute";var S=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,R=this.target.offsetTop>S+this.CANVAS_MARGIN?this.target.offsetTop-(S+this.CANVAS_MARGIN):0;this.coverDiv.style.top=R+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},ie.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},ie.prototype.addTopToolbar=function(){var S=this;this.topToolbar=new Vt,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var R=new sr;R.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(R);var re=[];this.aspectRatios.forEach(function(Zt){var dr=new Bt(gr.getIcon(Zt.horizontal,Zt.vertical),Zt.horizontal===0&&Zt.vertical===0?"FREE":Zt.horizontal+":"+Zt.vertical);dr.onClick=function(){return S.ratioButtonClicked(Zt)},re.push(dr)}),this.aspectRatioButton=new Nt(gr.getIcon(0,0),"Aspect ratio",re),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,R.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var ce=new Bt('<svg viewBox="0 0 24 24"><path d="M10 4v4h4V4h-4m6 0v4h4V4h-4m0 6v4h4v-4h-4m0 6v4h4v-4h-4m-2 4v-4h-4v4h4m-6 0v-4H4v4h4m0-6v-4H4v4h4m0-6V4H4v4h4m2 6h4v-4h-4v4M4 2h16a2 2 0 012 2v16a2 2 0 01-2 2H4c-1.08 0-2-.9-2-2V4a2 2 0 012-2z"/></svg>',"Toggle grid");ce.isActive=this.isGridVisible,ce.onClick=function(){S.isGridVisible=!S.isGridVisible,ce.isActive=S.isGridVisible},R.addButton(ce);var ne=new Bt('<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"Zoom to selection");if(ne.isActive=this.zoomToCropEnabled,ne.onClick=function(){S.zoomToCropEnabled=!S.zoomToCropEnabled,ne.isActive=S.zoomToCropEnabled},R.addButton(ne),!Nr.isLicensed){var Ne=new ft;this.topToolbar.addElementBlock(Ne);var Qe=document.createElement("div");Qe.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var ot=document.createElement("a");ot.style.color="currentColor",ot.href="https://markerjs.com/products/cropro",ot.target="_blank",ot.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M16.326 14.895c0 1.126-.558 1.688-1.673 1.688H9.931c-1.116 0-1.674-.562-1.674-1.688V3.733c0-1.126.558-1.688 1.674-1.688h4.722c1.115 0 1.673.562 1.673 1.688v2.899h-1.957V3.793h-4.124v11.042h4.124v-3.242h1.957v3.302z" fill="currentColor"/><path d="M15.94 7.364a.783.783 0 00-1.065-.304l-11.01 6.126a.783.783 0 00-.303 1.065l4.498 8.085a.783.783 0 001.065.304l11.01-6.126a.783.783 0 00.303-1.065L15.94 7.364zM5.311 14.173l3.737 6.718 9.641-5.364-3.737-6.718-9.641 5.364z" fill="#eef762"/></svg>',Qe.appendChild(ot),Ne.addElement(Qe)}var Ct=new sr;Ct.minWidth=3*this.toolbarHeight+"px",Ct.contentAlign="end",this.topToolbar.addButtonBlock(Ct);var tt=new Bt('<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"OK");tt.onClick=this.startRenderAndClose,Ct.addButton(tt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(tt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var jt=new Bt('<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"Close");jt.onClick=this.close,Ct.addButton(jt),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(jt.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},ie.prototype.addBottomToolbar=function(){var S=this;this.bottomToolbar=new Vt,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var R=new sr;R.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(R);var re=new Bt('<svg viewBox="0 0 24 24"><path d="M13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93M7.1 18.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.02-4.47L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47z"/></svg>',"Rotate left");re.onClick=this.rotateLeftButtonClicked,R.addButton(re);var ce=new Bt('<svg viewBox="0 0 24 24"><path d="M16.89 15.5l1.42 1.39c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.5M13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m6.93-6.9a7.906 7.906 0 00-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47m-2.36-5.45L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45z"/></svg>',"Rotate right");ce.onClick=this.rotateRightButtonClicked,R.addButton(ce);var ne=new ft;ne.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(ne),this.straightener=new Wr("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Ct){S.rotateBy(Ct),S.straightener.angle=S.rotationAngle},ne.addElement(this.straightener.getUI());var Ne=new sr;Ne.minWidth=2*this.toolbarHeight+"px",Ne.contentAlign="end",this.bottomToolbar.addButtonBlock(Ne);var Qe=new Bt('<svg viewBox="0 0 24 24"><path d="M15 21h2v-2h-2m4-10h2V7h-2M3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2m16-2v2h2c0-1.1-.9-2-2-2m-8 20h2V1h-2m8 16h2v-2h-2M15 5h2V3h-2m4 10h2v-2h-2m0 10c1.1 0 2-.9 2-2h-2z"/></svg>',"Flip horizontal");Qe.onClick=this.flipHorizontallyButtonClicked,Ne.addButton(Qe);var ot=new Bt('<svg viewBox="0 0 24 24"><path d="M3 15v2h2v-2m10 4v2h2v-2m2-16H5c-1.1 0-2 .9-2 2v4h2V5h14v4h2V5c0-1.1-.9-2-2-2m2 16h-2v2c1.1 0 2-.9 2-2M1 11v2h22v-2M7 19v2h2v-2m10-4v2h2v-2m-10 4v2h2v-2M3 19c0 1.1.9 2 2 2v-2z"/></svg>',"Flip vertical");ot.onClick=this.flipVerticallyButtonClicked,Ne.addButton(ot)},ie.prototype.ratioButtonClicked=function(S){this.aspectRatio=S,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},ie.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=gr.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},ie.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Yt(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},ie.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ie.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},ie.prototype.restoreState=function(S){if(S){var R=this.cropLayer.getRescaledRect(S.width,S.height,this.imageWidth,this.imageHeight,S.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(R),this.cropRectChanged(R),this.flippedHorizontally=S.flippedHorizontally,this.flippedVertically=S.flippedVertically,this.applyFlip(),this.rotationAngle=S.rotationAngle,this.applyRotation()}},ie.prototype.clientToLocalCoordinates=function(S,R){var re=this.cropImage.getBoundingClientRect();return{x:S-re.left,y:R-re.top}},ie.prototype.onWindowResize=function(){this.positionUI()},ie.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var S=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=S+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},ie.prototype.rotateLeftButtonClicked=function(){var S=this.rotationAngle-90;this.rotationAngle%90!=0&&(S+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(S)},ie.prototype.rotateRightButtonClicked=function(){var S=this.rotationAngle+90;this.rotationAngle%90!=0&&(S-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(S)},ie.prototype.rotateTo=function(S){S=(S=S>180?S-360:S)<=-180?S+360:S,this.rotationAngle=S,this.applyRotation()},ie.prototype.rotateBy=function(S){this.rotateTo((this.rotationAngle+S)%360)},ie.prototype.applyRotation=function(){var S=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var R=this.editingTargetRotationContainer.transform.baseVal.getItem(0);R.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(R,0);var re=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/re.width,this.imageHeight/re.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=S},ie.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},ie.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},ie.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},ie.prototype.startRenderAndClose=function(){return Ut(this,void 0,void 0,function(){var S,R;return Gt(this,function(re){switch(re.label){case 0:return[4,this.render()];case 1:return S=re.sent(),R=this.getState(),this.renderEventListeners.forEach(function(ce){return ce(S,R)}),this.close(!0),[2]}})})},ie.prototype.render=function(){return Ut(this,void 0,void 0,function(){var S;return Gt(this,function(R){switch(R.label){case 0:return(S=new Pr).naturalSize=this.renderAtNaturalSize,S.imageType=this.renderImageType,S.imageQuality=this.renderImageQuality,S.width=this.renderWidth,S.height=this.renderHeight,this.unzoomFromCrop(),At.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,S.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return R.sent(),[4,S.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,R.sent()]}})})},ie.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new _t("toolbar",`
|
|
|
width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
height: `+this.toolbarHeight+`px;
|
|
|
box-sizing: content-box;
|
|
|
overflow: hidden;
|
|
|
line-height: 0px;
|
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new _t("toolbar_colors",`
|
|
|
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new _t("toolbar-block",`
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
box-sizing: content-box;
|
|
|
`));var S=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new _t("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.toolbarHeight-2*S)+`px;
|
|
|
height: `+(this.toolbarHeight-2*S)+`px;
|
|
|
padding: `+S+`px;
|
|
|
cursor: default;
|
|
|
user-select: none;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new _t("toolbar_button_colors",`
|
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
|
fill: currentColor;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new _t("toolbar_active_button",`
|
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
|
fill: currentColor;
|
|
|
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
|
|
|
`)),this.styles.addRule(new st("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new st("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new _t("toolbar_dropdown",`
|
|
|
position: absolute;
|
|
|
max-width: `+4*this.toolbarHeight+`px;
|
|
|
z-index: 20;
|
|
|
white-space: normal;
|
|
|
box-sizing: content-box;
|
|
|
box-shadow: 3px 3px rgba(33, 33, 33, 0.1);
|
|
|
margin: `+(this.displayMode==="inline"?"0":this.popupMargin)+`px;
|
|
|
line-height: 0px;
|
|
|
`)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new _t("toolbar_dropdown_colors",`
|
|
|
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new _t("toolbar_straightener_block",`
|
|
|
display: flex;
|
|
|
overflow: hidden;
|
|
|
justify-content: center;
|
|
|
-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
|
|
|
`)),this.toolbarStraightenerStyleClass=this.styles.addClass(new _t("toolbar_straightener",`
|
|
|
display: flex;
|
|
|
overflow: hidden;
|
|
|
justify-content: center;
|
|
|
height: `+(this.toolbarHeight-2*S)+`px;
|
|
|
padding: `+S+`px;
|
|
|
cursor: default;
|
|
|
user-select: none;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new _t("toolbar_straightener_colors",`
|
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
|
fill: currentColor;
|
|
|
`))},ie.instanceCounter=0,ie}(),pt=o("8hTe"),Wt=o.n(pt),zt=/<pre[^>]*>/g;function ir(ie){var S=document.createElement("div");return S.innerHTML=ie,S.childNodes.length===0?"":S.childNodes[0].nodeValue}var lr=F.a=function(ie){var S=ie.value,R=S===void 0?"":S,re=ie.edit,ce=re===void 0?!1:re,ne=ie.className,Ne=ie.showTextOnly,Qe=ie.showLines,ot=ie.replaces,Ct=ie.zoomImg,tt=ie.hasMask,jt=ie.style,Zt=jt===void 0?{}:jt,dr=ie.stylesPrev,tn=dr===void 0?{}:dr,Jr=String(R),xr=Object(s.useRef)(),$r=Object(s.useRef)(),Bn=Object(s.useState)(""),zr=Object(v.a)(Bn,2),Gr=zr[0],Zr=zr[1],On=Object(s.useState)("office"),rn=Object(v.a)(On,2),xn=rn[0],fn=rn[1],qn=function(){var or=new qe($r.current);or.displayMode="popup",or.addRenderEventListener(function(){var Lr=Object(y.a)(l.a.mark(function rr(Cr){var ct;return l.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:return xr.current.style.display="none",yt.next=3,Object(Ee.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Cr}});case 3:ct=yt.sent,ct!=null&&ct.id&&ot($r.current.getAttribute("src").replace(se.a.API_SERVER,""),"/api/attachments/".concat(ct==null?void 0:ct.id,"?type=").concat(ct.content_type));case 5:case"end":return yt.stop()}},rr)}));return function(rr){return Lr.apply(this,arguments)}}()),or.show()},Un=function(){var or=new Xt($r.current);or.settings.displayMode="popup",or.addEventListener("render",function(){var Lr=Object(y.a)(l.a.mark(function rr(Cr){var ct;return l.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:if(xr.current.style.display="none",!$r.current){yt.next=6;break}return yt.next=4,Object(Ee.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Cr.dataUrl}});case 4:ct=yt.sent,ct!=null&&ct.id&&ot($r.current.getAttribute("src").replace(se.a.API_SERVER,""),"/api/attachments/".concat(ct==null?void 0:ct.id,"?type=").concat(ct.content_type));case 6:case"end":return yt.stop()}},rr)}));return function(rr){return Lr.apply(this,arguments)}}()),or.show(),window.markerArea=or},gn=Object(s.useMemo)(function(){try{var vr=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,or=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Lr=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Jr=Jr.replace(vr,"("+se.a.API_SERVER+"/api/attachments/").replace(or,'"'+se.a.API_SERVER+"/api/attachments/").replace(Lr,'"'+se.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,`
|
|
|
`),Jr=Jr.replace(new RegExp("(?<!\\n)\\n(?!\\n)","g"),`
|
|
|
`)}catch(vt){}var rr=z(Jr),Cr=he();if(Jr.match(/\[TOC\]/)&&(rr=rr.replace("<p>[TOC]</p>",Y()),N()),rr=rr.replace(/(__special_katext_id_\d+__)/g,function(vt,yt){var Et=Cr[yt],Kt=Et.type,wt=Et.expression;return Object(me.renderToString)(ir(wt)||"",{displayMode:Kt==="block",throwOnError:!1,output:"html"})}),rr=rr.replace(/▁/g,"\u2581\u2581\u2581"),de(),Ne){var ct=document.createElement("div");return ct.innerHTML=rr,ct.innerText}return setTimeout(function(){return Mn()},500),rr},[Jr]),nn=Object(s.useRef)();M.WebkitLineClamp=Qe,Qe&&(Zt=Object(_.a)(Object(_.a)({},Zt),M));function Rn(vr){var or=vr.target;if(or.tagName.toUpperCase()==="IMG"){if(Ct){var Lr=or.getAttribute("src");Zr(Lr),fn("image")}}else if(or.tagName.toUpperCase()==="A"){var rr=or.getAttribute("href");if(rr.indexOf("office")>-1)vr.preventDefault(),Zr(rr),fn("office");else if(rr.indexOf("application/pdf")>-1)vr.preventDefault(),Zr(rr),fn("pdf");else if(rr.indexOf("type=text")>-1)vr.preventDefault(),Zr(rr),fn("html");else if(rr.startsWith("#")){vr.preventDefault();var Cr=document.getElementById(rr.replace("#",""));Cr&&Cr.scrollIntoView(!0)}}}var Mn=function(){var or,Lr=(or=nn.current)===null||or===void 0?void 0:or.querySelectorAll("video");Lr==null||Lr.forEach(function(rr){if(rr.oncontextmenu=function(){return!1},rr.src.indexOf(".m3u8")>-1&&!rr.canPlayType("application/vnd.apple.mpegurl")){if(I.a.isSupported()){var Cr=new I.a;Cr.loadSource(rr.src),Cr.attachMedia(rr)}}})};Object(s.useEffect)(function(){if(nn.current&&gn&&(gn.match(zt)&&window.PR.prettyPrint()),nn.current)return nn.current.addEventListener("click",Rn),function(){nn.current.removeEventListener("click",Rn),de(),N()}},[gn,nn.current,Rn]);var ei=function(or){if(!ce)return;or.target.nodeName==="IMG"?(xr.current.style.display="flex",xr.current.style.width=or.target.clientWidth+"px",xr.current.style.height=or.target.clientHeight+"px",xr.current.style.top=or.target.offsetTop+"px",xr.current.style.left=or.target.offsetLeft+"px",$r.current.src=or.target.getAttribute("src")):xr.current.style.display="none"};return r.a.createElement("div",{style:{position:"relative"}},r.a.createElement("div",{ref:nn,style:Object(_.a)({},Zt),className:"".concat(ne||""," markdown-body ").concat(Wt.a.mdBody),onMouseOver:ei,dangerouslySetInnerHTML:{__html:gn}}),r.a.createElement("div",{ref:xr,className:Wt.a.button},r.a.createElement(a.a,null,r.a.createElement(O.a,{onClick:function(){return qn()}},"\u88C1\u526A"),r.a.createElement(O.a,{onClick:function(){return Un()}},"\u7F16\u8F91"))),r.a.createElement("img",{ref:$r,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),r.a.createElement(xe.a,{close:!0,data:Gr,hasMask:tt,type:Gr!=null&&Gr.length?xn:"",style:Object(_.a)({},tn),onClose:function(){return Zr("")}}))}},"9OqN":function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("OLod"))})(this,function(m){return m.mode.CTR=function(){var a=m.lib.BlockCipherMode.extend(),D=a.Encryptor=a.extend({processBlock:function(O,_){var y=this._cipher,v=y.blockSize,c=this._iv,l=this._counter;c&&(l=this._counter=c.slice(0),this._iv=void 0);var s=l.slice(0);y.encryptBlock(s,0),l[v-1]=l[v-1]+1|0;for(var r=0;r<v;r++)O[_+r]^=s[r]}});return a.Decryptor=D,a}(),m.mode.CTR})},"9VGf":function(h,F,o){"use strict";o.d(F,"a",function(){return D});var m=o("q1tI"),a=o.n(m);function D(O,_){var y=Object(m.useRef)();Object(m.useEffect)(function(){y.current=O}),Object(m.useEffect)(function(){function v(){y.current()}if(_!==null){var c=setInterval(v,_);return function(){return clearInterval(c)}}},[_])}},ALsQ:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("OLod"))})(this,function(m){return m.mode.CFB=function(){var a=m.lib.BlockCipherMode.extend();a.Encryptor=a.extend({processBlock:function(O,_){var y=this._cipher,v=y.blockSize;D.call(this,O,_,v,y),this._prevBlock=O.slice(_,_+v)}}),a.Decryptor=a.extend({processBlock:function(O,_){var y=this._cipher,v=y.blockSize,c=O.slice(_,_+v);D.call(this,O,_,v,y),this._prevBlock=c}});function D(O,_,y,v){var c,l=this._iv;l?(c=l.slice(0),this._iv=void 0):c=this._prevBlock,v.encryptBlock(c,0);for(var s=0;s<y;s++)O[_+s]^=c[s]}return a}(),m.mode.CFB})},B7Ph:function(h,F,o){"use strict";o.d(F,"a",function(){return J});var m=o("5NDa"),a=o("5rEg"),D=o("+L6B"),O=o("2/Rp"),_=o("2qtc"),y=o("kLXV"),v=o("miYZ"),c=o("tsqr"),l=o("k1fw"),s=o("9og8"),r=o("tJVT"),d=o("oBTY"),u=o("DZo9"),f=o("8z0m"),x=o("WmNS"),C=o.n(x),b=o("q1tI"),g=o.n(b),E=o("Bvq2"),A=o.n(E),N=o("nj2k"),M=o.n(N),w=o("mxV5"),Y=o.n(w),X=o("KhGG"),P=o("ErOA"),H=o("7Cbv"),G=o("1vsH"),$=f.a.Dragger,he=function(q){for(var U=function(le){return le&&le.substring(0,le.lastIndexOf("."))},z=Object(d.a)(q),L=0,T=[],I=0;I<z.length;I++){for(var se="",me=0;me<T.length;me++)if(U(T[me][0].name)==U(z[I].name)){L=1,se=me;break}if(L==1)T[se].push(z[I]),L=0;else if(L==0){var xe=new Array;xe.push(z[I]),T.push(xe)}}var Ee=T.map(function(Oe){if(Oe[0].name.includes(".in"))return Oe.length===2?Oe:[Oe[0],{}];if(Oe[0].name.includes(".out"))return Oe.length===2?Oe.reverse():[{},Oe[0]]});return Ee},de=function(q){var U=q.onClose,z=q.onOK,L=q.visible,T=q.wrapClassName,I=q.rootIdentifier,se=Object(b.useState)([]),me=Object(r.a)(se,2),xe=me[0],Ee=me[1],Oe=Object(b.useState)({}),le=Object(r.a)(Oe,2),ge=le[0],ye=le[1],ee=Object(b.useState)(!1),oe=Object(r.a)(ee,2),Z=oe[0],ue=oe[1],V=Object(b.useRef)([]),Q=Object(b.useRef)(0),ae=function(){U()};Object(b.useEffect)(function(){K()},[]),Object(b.useEffect)(function(){L&&(V.current=[],Q.current=0,Ee([]))},[L]);var K=function(){var Be=Object(s.a)(C.a.mark(function Fe(){var Ue,We;return C.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Ge.prev=0,Ge.next=3,Object(P.a)("/api/buckets/get_upload_token_for_big_files",{method:"get"});case 3:Ue=Ge.sent,We=JSON.parse(Object(X.a)(Ue.data)),ye(We),Ge.next=10;break;case 8:Ge.prev=8,Ge.t0=Ge.catch(0);case 10:case"end":return Ge.stop()}},Fe,null,[[0,8]])}));return function(){return Be.apply(this,arguments)}}(),j=function(Fe){return Fe&&Fe.substring(0,Fe.lastIndexOf("."))},k=function(Fe){var Ue,We,Ve=j((Ue=Fe[0])===null||Ue===void 0?void 0:Ue.name)||j((We=Fe[1])===null||We===void 0?void 0:We.name),Ge=xe.filter(function(Je){return j(Je.name)!==Ve});V.current=Object(d.a)(Ge),Ee(Object(d.a)(Ge))},W=function(Fe){var Ue=new Y.a({endpoint:ge.end_point,region:ge.region,accessKeyId:ge.access_key_id,accessKeySecret:ge.access_key_secret,bucket:ge.bucket,stsToken:ge.security_token}),We=Fe.name,Ve={container_type:"TestSet",file_name:We},Ge=Object(H.a)(),Je="testsets/".concat(I,"/").concat(Ge).concat(We.indexOf(".")>-1?"."+We.split(".").pop():"");I===null&&(Je="testsets/".concat(Ge).concat(We.indexOf(".")>-1?"."+We.split(".").pop():"")),Ue.multipartUpload(Je,new Blob([Fe.file],{type:Fe.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:We+""},url:ge==null?void 0:ge.callback_url,host:ge==null?void 0:ge.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(P.e)(Ve)}}).then(function(Re){if(Re.data.status===0){Q.current=Q.current+1;var Ze=V.current.map(function(Ke){var $e,je;if(Ke.name===(($e=Re.data)===null||$e===void 0||((je=$e.data)===null||je===void 0)?void 0:je.file_name)){var Me,Pe,Se,_e=Object(l.a)({},Ke);if((Me=Re.data)!==null&&Me!==void 0&&(Pe=Me.data)!==null&&Pe!==void 0&&(Se=Pe.file_name)!==null&&Se!==void 0&&Se.includes(".in")){var ke,Le,Xe,Ae,Ye,it;_e.in_object_key=(ke=Re.data)===null||ke===void 0||((Le=ke.data)===null||Le===void 0)?void 0:Le.object,_e.in_object_size=(Xe=Re.data)===null||Xe===void 0||((Ae=Xe.data)===null||Ae===void 0)?void 0:Ae.size,_e.input=(Ye=Re.data)===null||Ye===void 0||((it=Ye.data)===null||it===void 0)?void 0:it.file_name,_e.in_file=Fe}else{var lt,dt,ut,xt,ht,Rt;_e.out_object_key=(lt=Re.data)===null||lt===void 0||((dt=lt.data)===null||dt===void 0)?void 0:dt.object,_e.out_object_size=(ut=Re.data)===null||ut===void 0||((xt=ut.data)===null||xt===void 0)?void 0:xt.size,_e.output=(ht=Re.data)===null||ht===void 0||((Rt=ht.data)===null||Rt===void 0)?void 0:Rt.file_name,_e.out_file=Fe}return _e}return Ke});if(V.current=Object(d.a)(Ze),Ee(Object(d.a)(Ze)),Q.current>0&&Q.current===xe.length){ue(!1);var nt=he(Ze);nt=nt.filter(function(Ke){var $e,je;return!!(($e=Ke[0])!==null&&$e!==void 0&&$e.name&&(je=Ke[1])!==null&&je!==void 0&&je.name)}),nt=nt.map(function(Ke){return Object(l.a)(Object(l.a)(Object(l.a)({},Ke[0]),Ke[1]),{},{is_file:!0})}),z(nt),U()}}})},we=function(){if(xe.length===0){c.b.warn("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}ue(!0);var Fe=he(xe);if(Fe.some(function(Ue){var We,Ve;return!((We=Ue[0])!==null&&We!==void 0&&We.name&&(Ve=Ue[1])!==null&&Ve!==void 0&&Ve.name)})){y.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:function(){var Ue=Object(s.a)(C.a.mark(function Ve(){return C.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:xe.map(function(){var Re=Object(s.a)(C.a.mark(function Ze(nt){return C.a.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:W(nt);case 1:case"end":return $e.stop()}},Ze)}));return function(Ze){return Re.apply(this,arguments)}}());case 1:case"end":return Je.stop()}},Ve)}));function We(){return Ue.apply(this,arguments)}return We}(),onCancel:function(){ue(!1)}});return}xe.map(function(){var Ue=Object(s.a)(C.a.mark(function We(Ve){return C.a.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:W(Ve);case 1:case"end":return Je.stop()}},We)}));return function(We){return Ue.apply(this,arguments)}}())},be={name:"file",fileList:xe,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:function(Fe){if(xe!=null&&xe.some(function(We){return We.name===Fe.name}))return c.b.info("".concat(Fe.name,"\u6587\u4EF6\u5DF2\u5B58\u5728")),!1;if(Fe.size/1024/1024>100)return c.b.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(Fe.name))return c.b.warn("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;var Ue={name:Fe.name,uid:Fe.uid,file:Fe,percent:0};return xe.push(Ue),V.current=Object(d.a)(xe),Ee(Object(d.a)(xe)),!1}},Te=he(xe);return console.log(xe,Te,"fileList"),g.a.createElement(y.a,{visible:L,wrapClassName:T,onOk:we,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:Z},onCancel:ae,width:"1000px",title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},g.a.createElement("div",{className:A.a.wrap},xe.length?g.a.createElement("div",null,g.a.createElement(f.a,be,g.a.createElement(O.a,{className:A.a.btnS},"\u4E0A\u4F20\u6587\u4EF6")),g.a.createElement(J,{data:Te,onRemove:k})):g.a.createElement("div",{className:A.a.noData},g.a.createElement("img",{src:M.a,alt:""}),g.a.createElement(f.a,be,g.a.createElement(O.a,{className:A.a.btn},"\u4E0A\u4F20\u6587\u4EF6"))),g.a.createElement("div",{className:A.a.text},"\u4E0A\u4F20\u9650\u5236\uFF1A",g.a.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",g.a.createElement("br",null),"2\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",g.a.createElement("br",null),"3\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002")))},J=function(q){var U=q.data,z=U===void 0?[]:U,L=q.onRemove,T=q.width,I=T===void 0?"auto":T,se=q.showScore,me=se===void 0?!1:se,xe=q.disabled,Ee=xe===void 0?!1:xe,Oe=q.inputChange,le=function(oe){var Z=document.createElement("a");document.body.appendChild(Z);var ue=URL.createObjectURL(oe.file);Z.href=ue,Z.download=oe.name,Z.click(),URL.revokeObjectURL(ue),document.body.removeChild(Z)},ge=function(oe,Z){Object(G.w)(oe,Z)},ye=function(oe,Z){y.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:g.a.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:function(){L(oe,Z)},onCancel:function(){}})};return z.length?g.a.createElement("div",{style:{width:I}},g.a.createElement("div",{className:A.a.head},g.a.createElement("div",{style:{width:"20%"}},"\u7528\u4F8B"),g.a.createElement("div",{style:{width:me?"25%":"35%"}},"\u8F93\u5165"),g.a.createElement("div",{style:{width:me?"25%":"35%"}},"\u8F93\u51FA"),me&&g.a.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),g.a.createElement("div",{style:{width:"10%"}},"\u64CD\u4F5C")),z.map(function(ee,oe){var Z,ue,V,Q;return g.a.createElement("div",{key:oe,className:A.a.list},g.a.createElement("div",{style:{width:"20%"}},"\u6D4B\u8BD5\u7528\u4F8B",oe+1),g.a.createElement("div",{className:A.a.info,style:{width:me?"25%":"35%"}},g.a.createElement("span",{title:ee.input||((Z=ee[0])===null||Z===void 0?void 0:Z.name),onClick:function(){ee.input?ee.input_file_url?ge(ee.input_file_url,ee.input):le(ee.in_file):le(ee[0])}},ee.input||((ue=ee[0])===null||ue===void 0?void 0:ue.name))),g.a.createElement("div",{className:A.a.info,style:{width:me?"25%":"35%"}},g.a.createElement("span",{title:ee.output||((V=ee[1])===null||V===void 0?void 0:V.name),onClick:function(){ee.input?ee.output_file_url?ge(ee.output_file_url,ee.output):le(ee.out_file):le(ee[1])}},ee.output||((Q=ee[1])===null||Q===void 0?void 0:Q.name))),me&&g.a.createElement("div",{style:{width:"20%"}},g.a.createElement(a.a,{disabled:Ee,style:{width:"70%"},onChange:function(K){return Oe(K,oe)},value:ee.score}),g.a.createElement("span",null,"\xA0%")),g.a.createElement("div",{onClick:function(){return ye(ee,oe)},style:{width:"10%"}},g.a.createElement("span",{className:A.a.del},"\u5220\u9664")))})):g.a.createElement(g.a.Fragment,null)};F.b=de},Bd2K:function(h,F,o){(function(m){m(o("VrN/"),o("osHv"))})(function(m){m.defineOption("autoCloseTags",!1,function(l,s,r){if(r!=m.Init&&r&&l.removeKeyMap("autoCloseTags"),!s)return;var d={name:"autoCloseTags"};(typeof s!="object"||s.whenClosing!==!1)&&(d["'/'"]=function(u){return y(u)}),(typeof s!="object"||s.whenOpening!==!1)&&(d["'>'"]=function(u){return O(u)}),l.addKeyMap(d)});var a=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],D=["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 O(l){if(l.getOption("disableInput"))return m.Pass;for(var s=l.listSelections(),r=[],d=l.getOption("autoCloseTags"),u=0;u<s.length;u++){if(!s[u].empty())return m.Pass;var f=s[u].head,x=l.getTokenAt(f),C=m.innerMode(l.getMode(),x.state),b=C.state,g=C.mode.xmlCurrentTag&&C.mode.xmlCurrentTag(b),E=g&&g.name;if(!E)return m.Pass;var A=C.mode.configuration=="html",N=typeof d=="object"&&d.dontCloseTags||A&&a,M=typeof d=="object"&&d.indentTags||A&&D;x.end>f.ch&&(E=E.slice(0,E.length-x.end+f.ch));var w=E.toLowerCase();if(!E||x.type=="string"&&(x.end!=f.ch||!/[\"\']/.test(x.string.charAt(x.string.length-1))||x.string.length==1)||x.type=="tag"&&g.close||x.string.indexOf("/")==f.ch-x.start-1||N&&v(N,w)>-1||c(l,C.mode.xmlCurrentContext&&C.mode.xmlCurrentContext(b)||[],E,f,!0))return m.Pass;var Y=typeof d=="object"&&d.emptyTags;if(Y&&v(Y,E)>-1){r[u]={text:"/>",newPos:m.Pos(f.line,f.ch+2)};continue}var X=M&&v(M,w)>-1;r[u]={indent:X,text:">"+(X?`
|
|
|
|
|
|
`:"")+"</"+E+">",newPos:X?m.Pos(f.line+1,0):m.Pos(f.line,f.ch+1)}}for(var P=typeof d=="object"&&d.dontIndentOnAutoClose,u=s.length-1;u>=0;u--){var H=r[u];l.replaceRange(H.text,s[u].head,s[u].anchor,"+insert");var G=l.listSelections().slice(0);G[u]={head:H.newPos,anchor:H.newPos},l.setSelections(G),!P&&H.indent&&(l.indentLine(H.newPos.line,null,!0),l.indentLine(H.newPos.line+1,null,!0))}}function _(l,s){for(var r=l.listSelections(),d=[],u=s?"/":"</",f=l.getOption("autoCloseTags"),x=typeof f=="object"&&f.dontIndentOnSlash,C=0;C<r.length;C++){if(!r[C].empty())return m.Pass;var b=r[C].head,g=l.getTokenAt(b),E=m.innerMode(l.getMode(),g.state),A=E.state;if(s&&(g.type=="string"||g.string.charAt(0)!="<"||g.start!=b.ch-1))return m.Pass;var N,M=E.mode.name!="xml"&&l.getMode().name=="htmlmixed";if(M&&E.mode.name=="javascript")N=u+"script";else if(M&&E.mode.name=="css")N=u+"style";else{var w=E.mode.xmlCurrentContext&&E.mode.xmlCurrentContext(A);if(!w||w.length&&c(l,w,w[w.length-1],b))return m.Pass;N=u+w[w.length-1]}l.getLine(b.line).charAt(g.end)!=">"&&(N+=">"),d[C]=N}if(l.replaceSelections(d),r=l.listSelections(),!x)for(var C=0;C<r.length;C++)(C==r.length-1||r[C].head.line<r[C+1].head.line)&&l.indentLine(r[C].head.line)}function y(l){return l.getOption("disableInput")?m.Pass:_(l,!0)}m.commands.closeTag=function(l){return _(l)};function v(l,s){if(l.indexOf)return l.indexOf(s);for(var r=0,d=l.length;r<d;++r)if(l[r]==s)return r;return-1}function c(l,s,r,d,u){if(!m.scanForClosingTag)return!1;var f=Math.min(l.lastLine()+1,d.line+500),x=m.scanForClosingTag(l,d,null,f);if(!x||x.tag!=r)return!1;for(var C=u?1:0,b=s.length-1;b>=0&&s[b]==r;b--)++C;d=x.to;for(var b=1;b<C;b++){var g=m.scanForClosingTag(l,d,null,f);if(!g||g.tag!=r)return!1;d=g.to}return!0}})},BjJ7:function(h,F,o){"use strict";o.d(F,"d",function(){return a}),o.d(F,"c",function(){return D}),o.d(F,"e",function(){return O}),o.d(F,"b",function(){return _}),o.d(F,"a",function(){return v});var m=o("m3rI");function a(c){var l=!0;if(c.length>0){for(var s=0;s<c.length;s++)if(c[s].compile_success==0||!c[s].compile_success){l=!1;break}}else l=!1;return l}function D(c){for(var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=[],r=0;r<c.length;r++){var d=c[r],u=l?"".concat(l,"/").concat(d.name):"".concat(d.name);s.push({title:d.name,isLeaf:!(d.type==="tree"),key:u})}return s}function O(c,l,s){for(var r=0;r<c.length;r++){var d=c[r];if(d.key===l){d.children=s;break}d.children&&O(d.children,l,s)}return c}function _(c,l,s){var r;return function(){var d=this,u=arguments,f=function(){r=null,s||c.apply(d,u)},x=s&&!r;clearTimeout(r),r=setTimeout(f,l),x&&c.apply(d,u)}}var y=!0,v=m.a.API_SERVER},Bvq2:function(h,F,o){h.exports={wrap:"wrap___2zRY4",colorBlue:"colorBlue___XalpT",repeatedName:"repeatedName___2Tfh4",text:"text___1sYHg",noData:"noData___3pdB4",btn:"btn___3WWjB",btnS:"btnS___2M_9t",head:"head____NWmz",list:"list___2fE4M",del:"del___2BO6Y",info:"info___3GJ70"}},"C+DQ":function(h,F,o){},"C/vA":function(h,F,o){"use strict";o.d(F,"a",function(){return m});function m(a){var D=this,O=!1,_;return function(){return O||(O=!0,_=a.apply(D,arguments)),_}}},"Cg/j":function(h,F,o){"use strict";o.d(F,"b",function(){return m}),o.d(F,"a",function(){return a}),o.d(F,"c",function(){return O}),o.d(F,"d",function(){return _});var m;(function(y){y.serviceIds=new Map,y.DI_TARGET="$di$target",y.DI_DEPENDENCIES="$di$dependencies";function v(c){return c[y.DI_DEPENDENCIES]||[]}y.getServiceDependencies=v})(m||(m={}));var a=O("instantiationService");function D(y,v,c,l){v[m.DI_TARGET]===v?v[m.DI_DEPENDENCIES].push({id:y,index:c,optional:l}):(v[m.DI_DEPENDENCIES]=[{id:y,index:c,optional:l}],v[m.DI_TARGET]=v)}function O(y){if(m.serviceIds.has(y))return m.serviceIds.get(y);var v=function(c,l,s){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");D(v,c,s,!1)};return v.toString=function(){return y},m.serviceIds.set(y,v),v}function _(y){return function(v,c,l){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");D(y,v,l,!0)}}},CrYA:function(h,F,o){var m=o("MFOe"),a=m.Global;h.exports={name:"sessionStorage",read:O,write:_,each:y,remove:v,clearAll:c};function D(){return a.sessionStorage}function O(l){return D().getItem(l)}function _(l,s){return D().setItem(l,s)}function y(l){for(var s=D().length-1;s>=0;s--){var r=D().key(s);l(O(r),r)}}function v(l){return D().removeItem(l)}function c(){return D().clear()}},DlQD:function(h,F,o){(function(m,a){h.exports=a()})(this,function(){"use strict";function m(je,Me){for(var Pe=0;Pe<Me.length;Pe++){var Se=Me[Pe];Se.enumerable=Se.enumerable||!1,Se.configurable=!0,"value"in Se&&(Se.writable=!0),Object.defineProperty(je,Se.key,Se)}}function a(je,Me,Pe){return Me&&m(je.prototype,Me),Pe&&m(je,Pe),je}function D(je,Me){if(!je)return;if(typeof je=="string")return O(je,Me);var Pe=Object.prototype.toString.call(je).slice(8,-1);if(Pe==="Object"&&je.constructor&&(Pe=je.constructor.name),Pe==="Map"||Pe==="Set")return Array.from(je);if(Pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Pe))return O(je,Me)}function O(je,Me){(Me==null||Me>je.length)&&(Me=je.length);for(var Pe=0,Se=new Array(Me);Pe<Me;Pe++)Se[Pe]=je[Pe];return Se}function _(je,Me){var Pe;if(typeof Symbol=="undefined"||je[Symbol.iterator]==null){if(Array.isArray(je)||(Pe=D(je))||Me&&je&&typeof je.length=="number"){Pe&&(je=Pe);var Se=0;return function(){return Se>=je.length?{done:!0}:{done:!1,value:je[Se++]}}}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 Pe=je[Symbol.iterator](),Pe.next.bind(Pe)}function y(je,Me){return Me={exports:{}},je(Me,Me.exports),Me.exports}var v=y(function(je){function Me(){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 Pe(Se){je.exports.defaults=Se}je.exports={defaults:Me(),getDefaults:Me,changeDefaults:Pe}}),c=v.defaults,l=v.getDefaults,s=v.changeDefaults,r=/[&<>"']/,d=/[&<>"']/g,u=/[<>"']|&(?!#?\w+;)/,f=/[<>"']|&(?!#?\w+;)/g,x={"&":"&","<":"<",">":">",'"':""","'":"'"},C=function(Me){return x[Me]};function b(je,Me){if(Me){if(r.test(je))return je.replace(d,C)}else if(u.test(je))return je.replace(f,C);return je}var g=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function E(je){return je.replace(g,function(Me,Pe){return Pe=Pe.toLowerCase(),Pe==="colon"?":":Pe.charAt(0)==="#"?Pe.charAt(1)==="x"?String.fromCharCode(parseInt(Pe.substring(2),16)):String.fromCharCode(+Pe.substring(1)):""})}var A=/(^|[^\[])\^/g;function N(je,Me){je=je.source||je,Me=Me||"";var Pe={replace:function(_e,ke){return ke=ke.source||ke,ke=ke.replace(A,"$1"),je=je.replace(_e,ke),Pe},getRegex:function(){return new RegExp(je,Me)}};return Pe}var M=/[^\w:]/g,w=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Y(je,Me,Pe){if(je){var Se;try{Se=decodeURIComponent(E(Pe)).replace(M,"").toLowerCase()}catch(_e){return null}if(Se.indexOf("javascript:")===0||Se.indexOf("vbscript:")===0||Se.indexOf("data:")===0)return null}Me&&!w.test(Pe)&&(Pe=$(Me,Pe));try{Pe=encodeURI(Pe).replace(/%25/g,"%")}catch(_e){return null}return Pe}var X={},P=/^[^:]+:\/*[^/]*$/,H=/^([^:]+:)[\s\S]*$/,G=/^([^:]+:\/*[^/]*)[\s\S]*$/;function $(je,Me){X[" "+je]||(P.test(je)?X[" "+je]=je+"/":X[" "+je]=fe(je,"/",!0)),je=X[" "+je];var Pe=je.indexOf(":")===-1;return Me.substring(0,2)==="//"?Pe?Me:je.replace(H,"$1")+Me:Me.charAt(0)==="/"?Pe?Me:je.replace(G,"$1")+Me:je+Me}var he={exec:function(){}};function de(je){for(var Me=1,Pe,Se;Me<arguments.length;Me++){Pe=arguments[Me];for(Se in Pe)Object.prototype.hasOwnProperty.call(Pe,Se)&&(je[Se]=Pe[Se])}return je}function J(je,Me){var Pe=je.replace(/\|/g,function(ke,Le,Xe){for(var Ae=!1,Ye=Le;--Ye>=0&&Xe[Ye]==="\\";)Ae=!Ae;return Ae?"|":" |"}),Se=Pe.split(/ \|/),_e=0;if(Se.length>Me)Se.splice(Me);else for(;Se.length<Me;)Se.push("");for(;_e<Se.length;_e++)Se[_e]=Se[_e].trim().replace(/\\\|/g,"|");return Se}function fe(je,Me,Pe){var Se=je.length;if(Se===0)return"";for(var _e=0;_e<Se;){var ke=je.charAt(Se-_e-1);if(ke===Me&&!Pe)_e++;else if(ke!==Me&&Pe)_e++;else break}return je.substr(0,Se-_e)}function q(je,Me){if(je.indexOf(Me[1])===-1)return-1;for(var Pe=je.length,Se=0,_e=0;_e<Pe;_e++)if(je[_e]==="\\")_e++;else if(je[_e]===Me[0])Se++;else if(je[_e]===Me[1]&&(Se--,Se<0))return _e;return-1}function U(je){je&&je.sanitize&&!je.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 z={escape:b,unescape:E,edit:N,cleanUrl:Y,resolveUrl:$,noopTest:he,merge:de,splitCells:J,rtrim:fe,findClosingBracket:q,checkSanitizeDeprecation:U},L=v.defaults,T=z.rtrim,I=z.splitCells,se=z.escape,me=z.findClosingBracket;function xe(je,Me,Pe){var Se=Me.href,_e=Me.title?se(Me.title):null,ke=je[1].replace(/\\([\[\]])/g,"$1");return je[0].charAt(0)!=="!"?{type:"link",raw:Pe,href:Se,title:_e,text:ke}:{type:"image",raw:Pe,href:Se,title:_e,text:se(ke)}}function Ee(je,Me){var Pe=je.match(/^(\s+)(?:```)/);if(Pe===null)return Me;var Se=Pe[1];return Me.split(`
|
|
|
`).map(function(_e){var ke=_e.match(/^\s+/);if(ke===null)return _e;var Le=ke[0];return Le.length>=Se.length?_e.slice(Se.length):_e}).join(`
|
|
|
`)}var Oe=function(){function je(Pe){this.options=Pe||L}var Me=je.prototype;return Me.space=function(Se){var _e=this.rules.block.newline.exec(Se);if(_e)return _e[0].length>1?{type:"space",raw:_e[0]}:{raw:`
|
|
|
`}},Me.code=function(Se,_e){var ke=this.rules.block.code.exec(Se);if(ke){var Le=_e[_e.length-1];if(Le&&Le.type==="paragraph")return{raw:ke[0],text:ke[0].trimRight()};var Xe=ke[0].replace(/^ {4}/gm,"");return{type:"code",raw:ke[0],codeBlockStyle:"indented",text:this.options.pedantic?Xe:T(Xe,`
|
|
|
`)}}},Me.fences=function(Se){var _e=this.rules.block.fences.exec(Se);if(_e){var ke=_e[0],Le=Ee(ke,_e[3]||"");return{type:"code",raw:ke,lang:_e[2]?_e[2].trim():_e[2],text:Le}}},Me.heading=function(Se){var _e=this.rules.block.heading.exec(Se);if(_e)return{type:"heading",raw:_e[0],depth:_e[1].length,text:_e[2]}},Me.nptable=function(Se){var _e=this.rules.block.nptable.exec(Se);if(_e){var ke={type:"table",header:I(_e[1].replace(/^ *| *\| *$/g,"")),align:_e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:_e[3]?_e[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:_e[0]};if(ke.header.length===ke.align.length){var Le=ke.align.length,Xe;for(Xe=0;Xe<Le;Xe++)/^ *-+: *$/.test(ke.align[Xe])?ke.align[Xe]="right":/^ *:-+: *$/.test(ke.align[Xe])?ke.align[Xe]="center":/^ *:-+ *$/.test(ke.align[Xe])?ke.align[Xe]="left":ke.align[Xe]=null;for(Le=ke.cells.length,Xe=0;Xe<Le;Xe++)ke.cells[Xe]=I(ke.cells[Xe],ke.header.length);return ke}}},Me.hr=function(Se){var _e=this.rules.block.hr.exec(Se);if(_e)return{type:"hr",raw:_e[0]}},Me.blockquote=function(Se){var _e=this.rules.block.blockquote.exec(Se);if(_e){var ke=_e[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:_e[0],text:ke}}},Me.list=function(Se){var _e=this.rules.block.list.exec(Se);if(_e){for(var ke=_e[0],Le=_e[2],Xe=Le.length>1,Ae=Le[Le.length-1]===")",Ye={type:"list",raw:ke,ordered:Xe,start:Xe?+Le.slice(0,-1):"",loose:!1,items:[]},it=_e[0].match(this.rules.block.item),lt=!1,dt,ut,xt,ht,Rt,Xt,er,Qt=it.length,Ut=0;Ut<Qt;Ut++)dt=it[Ut],ke=dt,ut=dt.length,dt=dt.replace(/^ *([*+-]|\d+[.)]) */,""),~dt.indexOf(`
|
|
|
`)&&(ut-=dt.length,dt=this.options.pedantic?dt.replace(/^ {1,4}/gm,""):dt.replace(new RegExp("^ {1,"+ut+"}","gm"),"")),Ut!==Qt-1&&(xt=this.rules.block.bullet.exec(it[Ut+1])[0],(Xe?xt.length===1||!Ae&&xt[xt.length-1]===")":xt.length>1||this.options.smartLists&&xt!==Le)&&(ht=it.slice(Ut+1).join(`
|
|
|
`),Ye.raw=Ye.raw.substring(0,Ye.raw.length-ht.length),Ut=Qt-1)),Rt=lt||/\n\n(?!\s*$)/.test(dt),Ut!==Qt-1&&(lt=dt.charAt(dt.length-1)===`
|
|
|
`,Rt||(Rt=lt)),Rt&&(Ye.loose=!0),Xt=/^\[[ xX]\] /.test(dt),er=void 0,Xt&&(er=dt[1]!==" ",dt=dt.replace(/^\[[ xX]\] +/,"")),Ye.items.push({type:"list_item",raw:ke,task:Xt,checked:er,loose:Rt,text:dt});return Ye}},Me.html=function(Se){var _e=this.rules.block.html.exec(Se);if(_e)return{type:this.options.sanitize?"paragraph":"html",raw:_e[0],pre:!this.options.sanitizer&&(_e[1]==="pre"||_e[1]==="script"||_e[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(_e[0]):se(_e[0]):_e[0]}},Me.def=function(Se){var _e=this.rules.block.def.exec(Se);if(_e){_e[3]&&(_e[3]=_e[3].substring(1,_e[3].length-1));var ke=_e[1].toLowerCase().replace(/\s+/g," ");return{tag:ke,raw:_e[0],href:_e[2],title:_e[3]}}},Me.table=function(Se){var _e=this.rules.block.table.exec(Se);if(_e){var ke={type:"table",header:I(_e[1].replace(/^ *| *\| *$/g,"")),align:_e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:_e[3]?_e[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(ke.header.length===ke.align.length){ke.raw=_e[0];var Le=ke.align.length,Xe;for(Xe=0;Xe<Le;Xe++)/^ *-+: *$/.test(ke.align[Xe])?ke.align[Xe]="right":/^ *:-+: *$/.test(ke.align[Xe])?ke.align[Xe]="center":/^ *:-+ *$/.test(ke.align[Xe])?ke.align[Xe]="left":ke.align[Xe]=null;for(Le=ke.cells.length,Xe=0;Xe<Le;Xe++)ke.cells[Xe]=I(ke.cells[Xe].replace(/^ *\| *| *\| *$/g,""),ke.header.length);return ke}}},Me.lheading=function(Se){var _e=this.rules.block.lheading.exec(Se);if(_e)return{type:"heading",raw:_e[0],depth:_e[2].charAt(0)==="="?1:2,text:_e[1]}},Me.paragraph=function(Se){var _e=this.rules.block.paragraph.exec(Se);if(_e)return{type:"paragraph",raw:_e[0],text:_e[1].charAt(_e[1].length-1)===`
|
|
|
`?_e[1].slice(0,-1):_e[1]}},Me.text=function(Se,_e){var ke=this.rules.block.text.exec(Se);if(ke){var Le=_e[_e.length-1];return Le&&Le.type==="text"?{raw:ke[0],text:ke[0]}:{type:"text",raw:ke[0],text:ke[0]}}},Me.escape=function(Se){var _e=this.rules.inline.escape.exec(Se);if(_e)return{type:"escape",raw:_e[0],text:se(_e[1])}},Me.tag=function(Se,_e,ke){var Le=this.rules.inline.tag.exec(Se);if(Le)return!_e&&/^<a /i.test(Le[0])?_e=!0:_e&&/^<\/a>/i.test(Le[0])&&(_e=!1),!ke&&/^<(pre|code|kbd|script)(\s|>)/i.test(Le[0])?ke=!0:ke&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Le[0])&&(ke=!1),{type:this.options.sanitize?"text":"html",raw:Le[0],inLink:_e,inRawBlock:ke,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Le[0]):se(Le[0]):Le[0]}},Me.link=function(Se){var _e=this.rules.inline.link.exec(Se);if(_e){var ke=me(_e[2],"()");if(ke>-1){var Le=_e[0].indexOf("!")===0?5:4,Xe=Le+_e[1].length+ke;_e[2]=_e[2].substring(0,ke),_e[0]=_e[0].substring(0,Xe).trim(),_e[3]=""}var Ae=_e[2],Ye="";if(this.options.pedantic){var it=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ae);it?(Ae=it[1],Ye=it[3]):Ye=""}else Ye=_e[3]?_e[3].slice(1,-1):"";Ae=Ae.trim().replace(/^<([\s\S]*)>$/,"$1");var lt=xe(_e,{href:Ae&&Ae.replace(this.rules.inline._escapes,"$1"),title:Ye&&Ye.replace(this.rules.inline._escapes,"$1")},_e[0]);return lt}},Me.reflink=function(Se,_e){var ke;if((ke=this.rules.inline.reflink.exec(Se))||(ke=this.rules.inline.nolink.exec(Se))){var Le=(ke[2]||ke[1]).replace(/\s+/g," ");if(Le=_e[Le.toLowerCase()],!Le||!Le.href){var Xe=ke[0].charAt(0);return{type:"text",raw:Xe,text:Xe}}var Ae=xe(ke,Le,ke[0]);return Ae}},Me.strong=function(Se,_e,ke){ke===void 0&&(ke="");var Le=this.rules.inline.strong.start.exec(Se);if(Le&&(!Le[1]||Le[1]&&(ke===""||this.rules.inline.punctuation.exec(ke)))){_e=_e.slice(-1*Se.length);var Xe=Le[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Xe.lastIndex=0;for(var Ae;(Le=Xe.exec(_e))!=null;)if(Ae=this.rules.inline.strong.middle.exec(_e.slice(0,Le.index+3)),Ae)return{type:"strong",raw:Se.slice(0,Ae[0].length),text:Se.slice(2,Ae[0].length-2)}}},Me.em=function(Se,_e,ke){ke===void 0&&(ke="");var Le=this.rules.inline.em.start.exec(Se);if(Le&&(!Le[1]||Le[1]&&(ke===""||this.rules.inline.punctuation.exec(ke)))){_e=_e.slice(-1*Se.length);var Xe=Le[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Xe.lastIndex=0;for(var Ae;(Le=Xe.exec(_e))!=null;)if(Ae=this.rules.inline.em.middle.exec(_e.slice(0,Le.index+2)),Ae)return{type:"em",raw:Se.slice(0,Ae[0].length),text:Se.slice(1,Ae[0].length-1)}}},Me.codespan=function(Se){var _e=this.rules.inline.code.exec(Se);if(_e){var ke=_e[2].replace(/\n/g," "),Le=/[^ ]/.test(ke),Xe=ke.startsWith(" ")&&ke.endsWith(" ");return Le&&Xe&&(ke=ke.substring(1,ke.length-1)),ke=se(ke,!0),{type:"codespan",raw:_e[0],text:ke}}},Me.br=function(Se){var _e=this.rules.inline.br.exec(Se);if(_e)return{type:"br",raw:_e[0]}},Me.del=function(Se){var _e=this.rules.inline.del.exec(Se);if(_e)return{type:"del",raw:_e[0],text:_e[1]}},Me.autolink=function(Se,_e){var ke=this.rules.inline.autolink.exec(Se);if(ke){var Le,Xe;return ke[2]==="@"?(Le=se(this.options.mangle?_e(ke[1]):ke[1]),Xe="mailto:"+Le):(Le=se(ke[1]),Xe=Le),{type:"link",raw:ke[0],text:Le,href:Xe,tokens:[{type:"text",raw:Le,text:Le}]}}},Me.url=function(Se,_e){var ke;if(ke=this.rules.inline.url.exec(Se)){var Le,Xe;if(ke[2]==="@")Le=se(this.options.mangle?_e(ke[0]):ke[0]),Xe="mailto:"+Le;else{var Ae;do Ae=ke[0],ke[0]=this.rules.inline._backpedal.exec(ke[0])[0];while(Ae!==ke[0]);Le=se(ke[0]),ke[1]==="www."?Xe="http://"+Le:Xe=Le}return{type:"link",raw:ke[0],text:Le,href:Xe,tokens:[{type:"text",raw:Le,text:Le}]}}},Me.inlineText=function(Se,_e,ke){var Le=this.rules.inline.text.exec(Se);if(Le){var Xe;return _e?Xe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Le[0]):se(Le[0]):Le[0]:Xe=se(this.options.smartypants?ke(Le[0]):Le[0]),{type:"text",raw:Le[0],text:Xe}}},je}(),le=z.noopTest,ge=z.edit,ye=z.merge,ee={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:le,table:le,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ee._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ee._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ee.def=ge(ee.def).replace("label",ee._label).replace("title",ee._title).getRegex(),ee.bullet=/(?:[*+-]|\d{1,9}[.)])/,ee.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ee.item=ge(ee.item,"gm").replace(/bull/g,ee.bullet).getRegex(),ee.list=ge(ee.list).replace(/bull/g,ee.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ee.def.source+")").getRegex(),ee._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",ee._comment=/<!--(?!-?>)[\s\S]*?-->/,ee.html=ge(ee.html,"i").replace("comment",ee._comment).replace("tag",ee._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ee.paragraph=ge(ee._paragraph).replace("hr",ee.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",ee._tag).getRegex(),ee.blockquote=ge(ee.blockquote).replace("paragraph",ee.paragraph).getRegex(),ee.normal=ye({},ee),ee.gfm=ye({},ee.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*|$)"}),ee.gfm.nptable=ge(ee.gfm.nptable).replace("hr",ee.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",ee._tag).getRegex(),ee.gfm.table=ge(ee.gfm.table).replace("hr",ee.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",ee._tag).getRegex(),ee.pedantic=ye({},ee.normal,{html:ge(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ee._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:le,paragraph:ge(ee.normal._paragraph).replace("hr",ee.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",ee.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var oe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:le,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:le,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};oe._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",oe.punctuation=ge(oe.punctuation).replace(/punctuation/g,oe._punctuation).getRegex(),oe._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",oe._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",oe.em.start=ge(oe.em.start).replace(/punctuation/g,oe._punctuation).getRegex(),oe.em.middle=ge(oe.em.middle).replace(/punctuation/g,oe._punctuation).replace(/overlapSkip/g,oe._overlapSkip).getRegex(),oe.em.endAst=ge(oe.em.endAst,"g").replace(/punctuation/g,oe._punctuation).getRegex(),oe.em.endUnd=ge(oe.em.endUnd,"g").replace(/punctuation/g,oe._punctuation).getRegex(),oe.strong.start=ge(oe.strong.start).replace(/punctuation/g,oe._punctuation).getRegex(),oe.strong.middle=ge(oe.strong.middle).replace(/punctuation/g,oe._punctuation).replace(/blockSkip/g,oe._blockSkip).getRegex(),oe.strong.endAst=ge(oe.strong.endAst,"g").replace(/punctuation/g,oe._punctuation).getRegex(),oe.strong.endUnd=ge(oe.strong.endUnd,"g").replace(/punctuation/g,oe._punctuation).getRegex(),oe.blockSkip=ge(oe._blockSkip,"g").getRegex(),oe.overlapSkip=ge(oe._overlapSkip,"g").getRegex(),oe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,oe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,oe._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])?)+(?![-_])/,oe.autolink=ge(oe.autolink).replace("scheme",oe._scheme).replace("email",oe._email).getRegex(),oe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,oe.tag=ge(oe.tag).replace("comment",ee._comment).replace("attribute",oe._attribute).getRegex(),oe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,oe._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,oe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,oe.link=ge(oe.link).replace("label",oe._label).replace("href",oe._href).replace("title",oe._title).getRegex(),oe.reflink=ge(oe.reflink).replace("label",oe._label).getRegex(),oe.reflinkSearch=ge(oe.reflinkSearch,"g").replace("reflink",oe.reflink).replace("nolink",oe.nolink).getRegex(),oe.normal=ye({},oe),oe.pedantic=ye({},oe.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:ge(/^!?\[(label)\]\((.*?)\)/).replace("label",oe._label).getRegex(),reflink:ge(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",oe._label).getRegex()}),oe.gfm=ye({},oe.normal,{escape:ge(oe.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),oe.gfm.url=ge(oe.gfm.url,"i").replace("email",oe.gfm._extended_email).getRegex(),oe.breaks=ye({},oe.gfm,{br:ge(oe.br).replace("{2,}","*").getRegex(),text:ge(oe.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Z={block:ee,inline:oe},ue=v.defaults,V=Z.block,Q=Z.inline;function ae(je){return je.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 K(je){var Me="",Pe,Se,_e=je.length;for(Pe=0;Pe<_e;Pe++)Se=je.charCodeAt(Pe),Math.random()>.5&&(Se="x"+Se.toString(16)),Me+="&#"+Se+";";return Me}var j=function(){function je(Pe){this.tokens=[],this.tokens.links=Object.create(null),this.options=Pe||ue,this.options.tokenizer=this.options.tokenizer||new Oe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Se={block:V.normal,inline:Q.normal};this.options.pedantic?(Se.block=V.pedantic,Se.inline=Q.pedantic):this.options.gfm&&(Se.block=V.gfm,this.options.breaks?Se.inline=Q.breaks:Se.inline=Q.gfm),this.tokenizer.rules=Se}je.lex=function(Se,_e){var ke=new je(_e);return ke.lex(Se)};var Me=je.prototype;return Me.lex=function(Se){return Se=Se.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(Se,this.tokens,!0),this.inline(this.tokens),this.tokens},Me.blockTokens=function(Se,_e,ke){_e===void 0&&(_e=[]),ke===void 0&&(ke=!0),Se=Se.replace(/^ +$/gm,"");for(var Le,Xe,Ae,Ye;Se;){if(Le=this.tokenizer.space(Se)){Se=Se.substring(Le.raw.length),Le.type&&_e.push(Le);continue}if(Le=this.tokenizer.code(Se,_e)){Se=Se.substring(Le.raw.length),Le.type?_e.push(Le):(Ye=_e[_e.length-1],Ye.raw+=`
|
|
|
`+Le.raw,Ye.text+=`
|
|
|
`+Le.text);continue}if(Le=this.tokenizer.fences(Se)){Se=Se.substring(Le.raw.length),_e.push(Le);continue}if(Le=this.tokenizer.heading(Se)){Se=Se.substring(Le.raw.length),_e.push(Le);continue}if(Le=this.tokenizer.nptable(Se)){Se=Se.substring(Le.raw.length),_e.push(Le);continue}if(Le=this.tokenizer.hr(Se)){Se=Se.substring(Le.raw.length),_e.push(Le);continue}if(Le=this.tokenizer.blockquote(Se)){Se=Se.substring(Le.raw.length),Le.tokens=this.blockTokens(Le.text,[],ke),_e.push(Le);continue}if(Le=this.tokenizer.list(Se)){for(Se=Se.substring(Le.raw.length),Ae=Le.items.length,Xe=0;Xe<Ae;Xe++)Le.items[Xe].tokens=this.blockTokens(Le.items[Xe].text,[],!1);_e.push(Le);continue}if(Le=this.tokenizer.html(Se)){Se=Se.substring(Le.raw.length),_e.push(Le);continue}if(ke&&(Le=this.tokenizer.def(Se))){Se=Se.substring(Le.raw.length),this.tokens.links[Le.tag]||(this.tokens.links[Le.tag]={href:Le.href,title:Le.title});continue}if(Le=this.tokenizer.table(Se)){Se=Se.substring(Le.raw.length),_e.push(Le);continue}if(Le=this.tokenizer.lheading(Se)){Se=Se.substring(Le.raw.length),_e.push(Le);continue}if(ke&&(Le=this.tokenizer.paragraph(Se))){Se=Se.substring(Le.raw.length),_e.push(Le);continue}if(Le=this.tokenizer.text(Se,_e)){Se=Se.substring(Le.raw.length),Le.type?_e.push(Le):(Ye=_e[_e.length-1],Ye.raw+=`
|
|
|
`+Le.raw,Ye.text+=`
|
|
|
`+Le.text);continue}if(Se){var it="Infinite loop on byte: "+Se.charCodeAt(0);if(this.options.silent){console.error(it);break}else throw new Error(it)}}return _e},Me.inline=function(Se){var _e,ke,Le,Xe,Ae,Ye,it=Se.length;for(_e=0;_e<it;_e++){Ye=Se[_e];switch(Ye.type){case"paragraph":case"text":case"heading":{Ye.tokens=[],this.inlineTokens(Ye.text,Ye.tokens);break}case"table":{for(Ye.tokens={header:[],cells:[]},Xe=Ye.header.length,ke=0;ke<Xe;ke++)Ye.tokens.header[ke]=[],this.inlineTokens(Ye.header[ke],Ye.tokens.header[ke]);for(Xe=Ye.cells.length,ke=0;ke<Xe;ke++)for(Ae=Ye.cells[ke],Ye.tokens.cells[ke]=[],Le=0;Le<Ae.length;Le++)Ye.tokens.cells[ke][Le]=[],this.inlineTokens(Ae[Le],Ye.tokens.cells[ke][Le]);break}case"blockquote":{this.inline(Ye.tokens);break}case"list":{for(Xe=Ye.items.length,ke=0;ke<Xe;ke++)this.inline(Ye.items[ke].tokens);break}}}return Se},Me.inlineTokens=function(Se,_e,ke,Le,Xe){_e===void 0&&(_e=[]),ke===void 0&&(ke=!1),Le===void 0&&(Le=!1),Xe===void 0&&(Xe="");var Ae,Ye=Se,it;if(this.tokens.links){var lt=Object.keys(this.tokens.links);if(lt.length>0)for(;(it=this.tokenizer.rules.inline.reflinkSearch.exec(Ye))!=null;)lt.includes(it[0].slice(it[0].lastIndexOf("[")+1,-1))&&(Ye=Ye.slice(0,it.index)+"["+"a".repeat(it[0].length-2)+"]"+Ye.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(it=this.tokenizer.rules.inline.blockSkip.exec(Ye))!=null;)Ye=Ye.slice(0,it.index)+"["+"a".repeat(it[0].length-2)+"]"+Ye.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Se;){if(Ae=this.tokenizer.escape(Se)){Se=Se.substring(Ae.raw.length),_e.push(Ae);continue}if(Ae=this.tokenizer.tag(Se,ke,Le)){Se=Se.substring(Ae.raw.length),ke=Ae.inLink,Le=Ae.inRawBlock,_e.push(Ae);continue}if(Ae=this.tokenizer.link(Se)){Se=Se.substring(Ae.raw.length),Ae.type==="link"&&(Ae.tokens=this.inlineTokens(Ae.text,[],!0,Le)),_e.push(Ae);continue}if(Ae=this.tokenizer.reflink(Se,this.tokens.links)){Se=Se.substring(Ae.raw.length),Ae.type==="link"&&(Ae.tokens=this.inlineTokens(Ae.text,[],!0,Le)),_e.push(Ae);continue}if(Ae=this.tokenizer.strong(Se,Ye,Xe)){Se=Se.substring(Ae.raw.length),Ae.tokens=this.inlineTokens(Ae.text,[],ke,Le),_e.push(Ae);continue}if(Ae=this.tokenizer.em(Se,Ye,Xe)){Se=Se.substring(Ae.raw.length),Ae.tokens=this.inlineTokens(Ae.text,[],ke,Le),_e.push(Ae);continue}if(Ae=this.tokenizer.codespan(Se)){Se=Se.substring(Ae.raw.length),_e.push(Ae);continue}if(Ae=this.tokenizer.br(Se)){Se=Se.substring(Ae.raw.length),_e.push(Ae);continue}if(Ae=this.tokenizer.del(Se)){Se=Se.substring(Ae.raw.length),Ae.tokens=this.inlineTokens(Ae.text,[],ke,Le),_e.push(Ae);continue}if(Ae=this.tokenizer.autolink(Se,K)){Se=Se.substring(Ae.raw.length),_e.push(Ae);continue}if(!ke&&(Ae=this.tokenizer.url(Se,K))){Se=Se.substring(Ae.raw.length),_e.push(Ae);continue}if(Ae=this.tokenizer.inlineText(Se,Le,ae)){Se=Se.substring(Ae.raw.length),Xe=Ae.raw.slice(-1),_e.push(Ae);continue}if(Se){var dt="Infinite loop on byte: "+Se.charCodeAt(0);if(this.options.silent){console.error(dt);break}else throw new Error(dt)}}return _e},a(je,null,[{key:"rules",get:function(){return{block:V,inline:Q}}}]),je}(),k=v.defaults,W=z.cleanUrl,we=z.escape,be=function(){function je(Pe){this.options=Pe||k}var Me=je.prototype;return Me.code=function(Se,_e,ke){var Le=(_e||"").match(/\S*/)[0];if(this.options.highlight){var Xe=this.options.highlight(Se,Le);Xe!=null&&Xe!==Se&&(ke=!0,Se=Xe)}return Le?'<pre><code class="'+this.options.langPrefix+we(Le,!0)+'">'+(ke?Se:we(Se,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(ke?Se:we(Se,!0))+`</code></pre>
|
|
|
`},Me.blockquote=function(Se){return`<blockquote>
|
|
|
`+Se+`</blockquote>
|
|
|
`},Me.html=function(Se){return Se},Me.heading=function(Se,_e,ke,Le){return this.options.headerIds?"<h"+_e+' id="'+this.options.headerPrefix+Le.slug(ke)+'">'+Se+"</h"+_e+`>
|
|
|
`:"<h"+_e+">"+Se+"</h"+_e+`>
|
|
|
`},Me.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},Me.list=function(Se,_e,ke){var Le=_e?"ol":"ul",Xe=_e&&ke!==1?' start="'+ke+'"':"";return"<"+Le+Xe+`>
|
|
|
`+Se+"</"+Le+`>
|
|
|
`},Me.listitem=function(Se){return"<li>"+Se+`</li>
|
|
|
`},Me.checkbox=function(Se){return"<input "+(Se?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Me.paragraph=function(Se){return"<p>"+Se+`</p>
|
|
|
`},Me.table=function(Se,_e){return _e&&(_e="<tbody>"+_e+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+Se+`</thead>
|
|
|
`+_e+`</table>
|
|
|
`},Me.tablerow=function(Se){return`<tr>
|
|
|
`+Se+`</tr>
|
|
|
`},Me.tablecell=function(Se,_e){var ke=_e.header?"th":"td",Le=_e.align?"<"+ke+' align="'+_e.align+'">':"<"+ke+">";return Le+Se+"</"+ke+`>
|
|
|
`},Me.strong=function(Se){return"<strong>"+Se+"</strong>"},Me.em=function(Se){return"<em>"+Se+"</em>"},Me.codespan=function(Se){return"<code>"+Se+"</code>"},Me.br=function(){return this.options.xhtml?"<br/>":"<br>"},Me.del=function(Se){return"<del>"+Se+"</del>"},Me.link=function(Se,_e,ke){if(Se=W(this.options.sanitize,this.options.baseUrl,Se),Se===null)return ke;var Le='<a href="'+we(Se)+'"';return _e&&(Le+=' title="'+_e+'"'),Le+=">"+ke+"</a>",Le},Me.image=function(Se,_e,ke){if(Se=W(this.options.sanitize,this.options.baseUrl,Se),Se===null)return ke;var Le='<img src="'+Se+'" alt="'+ke+'"';return _e&&(Le+=' title="'+_e+'"'),Le+=this.options.xhtml?"/>":">",Le},Me.text=function(Se){return Se},je}(),Te=function(){function je(){}var Me=je.prototype;return Me.strong=function(Se){return Se},Me.em=function(Se){return Se},Me.codespan=function(Se){return Se},Me.del=function(Se){return Se},Me.html=function(Se){return Se},Me.text=function(Se){return Se},Me.link=function(Se,_e,ke){return""+ke},Me.image=function(Se,_e,ke){return""+ke},Me.br=function(){return""},je}(),Be=function(){function je(){this.seen={}}var Me=je.prototype;return Me.slug=function(Se){var _e=Se.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(_e)){var ke=_e;do this.seen[ke]++,_e=ke+"-"+this.seen[ke];while(this.seen.hasOwnProperty(_e))}return this.seen[_e]=0,_e},je}(),Fe=v.defaults,Ue=z.unescape,We=function(){function je(Pe){this.options=Pe||Fe,this.options.renderer=this.options.renderer||new be,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Te,this.slugger=new Be}je.parse=function(Se,_e){var ke=new je(_e);return ke.parse(Se)};var Me=je.prototype;return Me.parse=function(Se,_e){_e===void 0&&(_e=!0);var ke="",Le,Xe,Ae,Ye,it,lt,dt,ut,xt,ht,Rt,Xt,er,Qt,Ut,Gt,Nr,At,Dt=Se.length;for(Le=0;Le<Dt;Le++){ht=Se[Le];switch(ht.type){case"space":continue;case"hr":{ke+=this.renderer.hr();continue}case"heading":{ke+=this.renderer.heading(this.parseInline(ht.tokens),ht.depth,Ue(this.parseInline(ht.tokens,this.textRenderer)),this.slugger);continue}case"code":{ke+=this.renderer.code(ht.text,ht.lang,ht.escaped);continue}case"table":{for(ut="",dt="",Ye=ht.header.length,Xe=0;Xe<Ye;Xe++)dt+=this.renderer.tablecell(this.parseInline(ht.tokens.header[Xe]),{header:!0,align:ht.align[Xe]});for(ut+=this.renderer.tablerow(dt),xt="",Ye=ht.cells.length,Xe=0;Xe<Ye;Xe++){for(lt=ht.tokens.cells[Xe],dt="",it=lt.length,Ae=0;Ae<it;Ae++)dt+=this.renderer.tablecell(this.parseInline(lt[Ae]),{header:!1,align:ht.align[Ae]});xt+=this.renderer.tablerow(dt)}ke+=this.renderer.table(ut,xt);continue}case"blockquote":{xt=this.parse(ht.tokens),ke+=this.renderer.blockquote(xt);continue}case"list":{for(Rt=ht.ordered,Xt=ht.start,er=ht.loose,Ye=ht.items.length,xt="",Xe=0;Xe<Ye;Xe++)Ut=ht.items[Xe],Gt=Ut.checked,Nr=Ut.task,Qt="",Ut.task&&(At=this.renderer.checkbox(Gt),er?Ut.tokens.length>0&&Ut.tokens[0].type==="text"?(Ut.tokens[0].text=At+" "+Ut.tokens[0].text,Ut.tokens[0].tokens&&Ut.tokens[0].tokens.length>0&&Ut.tokens[0].tokens[0].type==="text"&&(Ut.tokens[0].tokens[0].text=At+" "+Ut.tokens[0].tokens[0].text)):Ut.tokens.unshift({type:"text",text:At}):Qt+=At),Qt+=this.parse(Ut.tokens,er),xt+=this.renderer.listitem(Qt,Nr,Gt);ke+=this.renderer.list(xt,Rt,Xt);continue}case"html":{ke+=this.renderer.html(ht.text);continue}case"paragraph":{ke+=this.renderer.paragraph(this.parseInline(ht.tokens));continue}case"text":{for(xt=ht.tokens?this.parseInline(ht.tokens):ht.text;Le+1<Dt&&Se[Le+1].type==="text";)ht=Se[++Le],xt+=`
|
|
|
`+(ht.tokens?this.parseInline(ht.tokens):ht.text);ke+=_e?this.renderer.paragraph(xt):xt;continue}default:{var st='Token with "'+ht.type+'" type was not found.';if(this.options.silent){console.error(st);return}else throw new Error(st)}}}return ke},Me.parseInline=function(Se,_e){_e=_e||this.renderer;var ke="",Le,Xe,Ae=Se.length;for(Le=0;Le<Ae;Le++){Xe=Se[Le];switch(Xe.type){case"escape":{ke+=_e.text(Xe.text);break}case"html":{ke+=_e.html(Xe.text);break}case"link":{ke+=_e.link(Xe.href,Xe.title,this.parseInline(Xe.tokens,_e));break}case"image":{ke+=_e.image(Xe.href,Xe.title,Xe.text);break}case"strong":{ke+=_e.strong(this.parseInline(Xe.tokens,_e));break}case"em":{ke+=_e.em(this.parseInline(Xe.tokens,_e));break}case"codespan":{ke+=_e.codespan(Xe.text);break}case"br":{ke+=_e.br();break}case"del":{ke+=_e.del(this.parseInline(Xe.tokens,_e));break}case"text":{ke+=_e.text(Xe.text);break}default:{var Ye='Token with "'+Xe.type+'" type was not found.';if(this.options.silent){console.error(Ye);return}else throw new Error(Ye)}}}return ke},je}(),Ve=z.merge,Ge=z.checkSanitizeDeprecation,Je=z.escape,Re=v.getDefaults,Ze=v.changeDefaults,nt=v.defaults;function Ke(je,Me,Pe){if(typeof je=="undefined"||je===null)throw new Error("marked(): input parameter is undefined or null");if(typeof je!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(je)+", string expected");if(typeof Me=="function"&&(Pe=Me,Me=null),Me=Ve({},Ke.defaults,Me||{}),Ge(Me),Pe){var Se=Me.highlight,_e;try{_e=j.lex(je,Me)}catch(Ae){return Pe(Ae)}var ke=function(Ye){var it;if(!Ye)try{it=We.parse(_e,Me)}catch(lt){Ye=lt}return Me.highlight=Se,Ye?Pe(Ye):Pe(null,it)};if(!Se||Se.length<3)return ke();if(delete Me.highlight,!_e.length)return ke();var Le=0;Ke.walkTokens(_e,function(Ae){Ae.type==="code"&&(Le++,setTimeout(function(){Se(Ae.text,Ae.lang,function(Ye,it){if(Ye)return ke(Ye);it!=null&&it!==Ae.text&&(Ae.text=it,Ae.escaped=!0),Le--,Le===0&&ke()})},0))}),Le===0&&ke();return}try{var Xe=j.lex(je,Me);return Me.walkTokens&&Ke.walkTokens(Xe,Me.walkTokens),We.parse(Xe,Me)}catch(Ae){if(Ae.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Me.silent)return"<p>An error occurred:</p><pre>"+Je(Ae.message+"",!0)+"</pre>";throw Ae}}Ke.options=Ke.setOptions=function(je){return Ve(Ke.defaults,je),Ze(Ke.defaults),Ke},Ke.getDefaults=Re,Ke.defaults=nt,Ke.use=function(je){var Me=Ve({},je);if(je.renderer&&function(){var Se=Ke.defaults.renderer||new be,_e=function(Xe){var Ae=Se[Xe];Se[Xe]=function(){for(var Ye=arguments.length,it=new Array(Ye),lt=0;lt<Ye;lt++)it[lt]=arguments[lt];var dt=je.renderer[Xe].apply(Se,it);return dt===!1&&(dt=Ae.apply(Se,it)),dt}};for(var ke in je.renderer)_e(ke);Me.renderer=Se}(),je.tokenizer&&function(){var Se=Ke.defaults.tokenizer||new Oe,_e=function(Xe){var Ae=Se[Xe];Se[Xe]=function(){for(var Ye=arguments.length,it=new Array(Ye),lt=0;lt<Ye;lt++)it[lt]=arguments[lt];var dt=je.tokenizer[Xe].apply(Se,it);return dt===!1&&(dt=Ae.apply(Se,it)),dt}};for(var ke in je.tokenizer)_e(ke);Me.tokenizer=Se}(),je.walkTokens){var Pe=Ke.defaults.walkTokens;Me.walkTokens=function(Se){je.walkTokens(Se),Pe&&Pe(Se)}}Ke.setOptions(Me)},Ke.walkTokens=function(je,Me){for(var Pe=_(je),Se;!(Se=Pe()).done;){var _e=Se.value;Me(_e);switch(_e.type){case"table":{for(var ke=_(_e.tokens.header),Le;!(Le=ke()).done;){var Xe=Le.value;Ke.walkTokens(Xe,Me)}for(var Ae=_(_e.tokens.cells),Ye;!(Ye=Ae()).done;)for(var it=Ye.value,lt=_(it),dt;!(dt=lt()).done;){var ut=dt.value;Ke.walkTokens(ut,Me)}break}case"list":{Ke.walkTokens(_e.items,Me);break}default:_e.tokens&&Ke.walkTokens(_e.tokens,Me)}}},Ke.Parser=We,Ke.parser=We.parse,Ke.Renderer=be,Ke.TextRenderer=Te,Ke.Lexer=j,Ke.lexer=j.lex,Ke.Tokenizer=Oe,Ke.Slugger=Be,Ke.parse=Ke;var $e=Ke;return $e})},"DlR+":function(h,F,o){var m=o("MFOe"),a=m.Global,D=m.trim;h.exports={name:"cookieStorage",read:_,write:v,each:y,remove:c,clearAll:l};var O=a.document;function _(r){if(!r||!s(r))return null;var d="(?:^|.*;\\s*)"+escape(r).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(O.cookie.replace(new RegExp(d),"$1"))}function y(r){for(var d=O.cookie.split(/; ?/g),u=d.length-1;u>=0;u--){if(!D(d[u]))continue;var f=d[u].split("="),x=unescape(f[0]),C=unescape(f[1]);r(C,x)}}function v(r,d){if(!r)return;O.cookie=escape(r)+"="+escape(d)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function c(r){if(!r||!s(r))return;O.cookie=escape(r)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function l(){y(function(r,d){c(d)})}function s(r){return new RegExp("(?:^|;\\s*)"+escape(r).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(O.cookie)}},E4JC:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(m){return function(){var a=m,D=a.lib,O=D.StreamCipher,_=a.algo,y=[],v=[],c=[],l=_.Rabbit=O.extend({_doReset:function(){for(var r=this._key.words,d=this.cfg.iv,u=0;u<4;u++)r[u]=(r[u]<<8|r[u]>>>24)&16711935|(r[u]<<24|r[u]>>>8)&4278255360;var f=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],x=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 u=0;u<4;u++)s.call(this);for(var u=0;u<8;u++)x[u]^=f[u+4&7];if(d){var C=d.words,b=C[0],g=C[1],E=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,A=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,N=E>>>16|A&4294901760,M=A<<16|E&65535;x[0]^=E,x[1]^=N,x[2]^=A,x[3]^=M,x[4]^=E,x[5]^=N,x[6]^=A,x[7]^=M;for(var u=0;u<4;u++)s.call(this)}},_doProcessBlock:function(r,d){var u=this._X;s.call(this),y[0]=u[0]^u[5]>>>16^u[3]<<16,y[1]=u[2]^u[7]>>>16^u[5]<<16,y[2]=u[4]^u[1]>>>16^u[7]<<16,y[3]=u[6]^u[3]>>>16^u[1]<<16;for(var f=0;f<4;f++)y[f]=(y[f]<<8|y[f]>>>24)&16711935|(y[f]<<24|y[f]>>>8)&4278255360,r[d+f]^=y[f]},blockSize:128/32,ivSize:64/32});function s(){for(var r=this._X,d=this._C,u=0;u<8;u++)v[u]=d[u];d[0]=d[0]+1295307597+this._b|0,d[1]=d[1]+3545052371+(d[0]>>>0<v[0]>>>0?1:0)|0,d[2]=d[2]+886263092+(d[1]>>>0<v[1]>>>0?1:0)|0,d[3]=d[3]+1295307597+(d[2]>>>0<v[2]>>>0?1:0)|0,d[4]=d[4]+3545052371+(d[3]>>>0<v[3]>>>0?1:0)|0,d[5]=d[5]+886263092+(d[4]>>>0<v[4]>>>0?1:0)|0,d[6]=d[6]+1295307597+(d[5]>>>0<v[5]>>>0?1:0)|0,d[7]=d[7]+3545052371+(d[6]>>>0<v[6]>>>0?1:0)|0,this._b=d[7]>>>0<v[7]>>>0?1:0;for(var u=0;u<8;u++){var f=r[u]+d[u],x=f&65535,C=f>>>16,b=((x*x>>>17)+x*C>>>15)+C*C,g=((f&4294901760)*f|0)+((f&65535)*f|0);c[u]=b^g}r[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,r[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,r[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,r[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,r[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,r[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,r[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,r[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.Rabbit=O._createHelper(l)}(),m.Rabbit})},EHPI:function(h,F,o){"use strict";var m=o("bbsP"),a=o("/wGt"),D=o("tJVT"),O=o("k1fw"),_=o("q1tI"),y=o.n(_),v=o("ZW9T"),c=o("ZD9Y"),l=o("M8RZ"),s=o("bCnd"),r=o("fcyK"),d=o.n(r),u={theme:Object(s.a)("cmCodeMode","vs-dark"),fontSize:Object(s.a)("cmFontSize",14),showEditorSetting:!1,tabToSpace:Object(s.a)("cmTabToSpace",!0)},f;(function(b){b[b.set_font_size=0]="set_font_size",b[b.set_theme=1]="set_theme",b[b.on_tab_to_space=2]="on_tab_to_space",b[b.set_show_editor_setting=3]="set_show_editor_setting"})(f||(f={}));function x(b,g){switch(g.type){case f.set_show_editor_setting:return Object(O.a)(Object(O.a)({},b),{},{showEditorSetting:g.payload});case f.set_theme:return Object(O.a)(Object(O.a)({},b),{},{theme:g.payload});case f.set_font_size:return Object(O.a)(Object(O.a)({},b),{},{fontSize:g.payload});case f.on_tab_to_space:return Object(O.a)(Object(O.a)({},b),{},{tabToSpace:g.payload});default:throw new Error}}F.a=function(b){var g=b.value,E=b.onChange,A=b.language,N=b.ActionBarRender,M=N===void 0?function(U){return y.a.createElement(C,{onShowCodeSetting:U})}:N,w=Object(_.useReducer)(x,u),Y=Object(D.a)(w,2),X=Y[0],P=Y[1],H=X.theme,G=X.fontSize,$=X.showEditorSetting,he=X.tabToSpace,de={onFontSizeChange:function(z){P({type:f.set_font_size,payload:z}),Object(s.b)("cmFontSize",z)},tabToSpace:he,cmFontSize:G,className:"oj",cmCodeMode:H,onTabToSpace:function(z){P({type:f.on_tab_to_space,payload:z}),Object(s.b)("cmTabToSpace",z)},onCodeModeChange:function(z){P({type:f.set_theme,payload:z}),Object(s.b)("cmCodeMode",z)}};function J(){P({type:f.set_show_editor_setting,payload:!1})}function fe(){P({type:f.set_show_editor_setting,payload:!0})}var q={value:g,language:A,onChange:E,theme:H,height:"calc(100% - 56px)",options:{fontSize:G,insertSpaces:he}};return y.a.createElement(_.Fragment,null,y.a.createElement("div",{className:"code-panel-container"},M(fe),y.a.createElement(v.b,q)),y.a.createElement(l.a,null,y.a.createElement(a.a,{className:"oj",title:null,placement:"right",closable:!1,visible:$,onClose:J},y.a.createElement(c.a,de))))};function C(b){var g=b.onShowCodeSetting;return y.a.createElement("div",{className:"action-bar"},y.a.createElement("span",null,"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\u6587\u4EF6"),y.a.createElement("a",{onClick:g},y.a.createElement("i",{className:"iconfont icon-shezhi"})))}},ELLl:function(h,F,o){(function(m){m(o("VrN/"))})(function(m){var a={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},D=m.Pos;m.defineOption("autoCloseBrackets",!1,function(x,C,b){b&&b!=m.Init&&(x.removeKeyMap(_),x.state.closeBrackets=null),C&&(y(O(C,"pairs")),x.state.closeBrackets=C,x.addKeyMap(_))});function O(x,C){return C=="pairs"&&typeof x=="string"?x:typeof x=="object"&&x[C]!=null?x[C]:a[C]}var _={Backspace:l,Enter:s};function y(x){for(var C=0;C<x.length;C++){var b=x.charAt(C),g="'"+b+"'";_[g]||(_[g]=v(b))}}y(a.pairs+"`");function v(x){return function(C){return d(C,x)}}function c(x){var C=x.state.closeBrackets;if(!C||C.override)return C;var b=x.getModeAt(x.getCursor());return b.closeBrackets||C}function l(x){var C=c(x);if(!C||x.getOption("disableInput"))return m.Pass;for(var b=O(C,"pairs"),g=x.listSelections(),E=0;E<g.length;E++){if(!g[E].empty())return m.Pass;var A=u(x,g[E].head);if(!A||b.indexOf(A)%2!=0)return m.Pass}for(var E=g.length-1;E>=0;E--){var N=g[E].head;x.replaceRange("",D(N.line,N.ch-1),D(N.line,N.ch+1),"+delete")}}function s(x){var C=c(x),b=C&&O(C,"explode");if(!b||x.getOption("disableInput"))return m.Pass;for(var g=x.listSelections(),E=0;E<g.length;E++){if(!g[E].empty())return m.Pass;var A=u(x,g[E].head);if(!A||b.indexOf(A)%2!=0)return m.Pass}x.operation(function(){var N=x.lineSeparator()||`
|
|
|
`;x.replaceSelection(N+N,null),x.execCommand("goCharLeft"),g=x.listSelections();for(var M=0;M<g.length;M++){var w=g[M].head.line;x.indentLine(w,null,!0),x.indentLine(w+1,null,!0)}})}function r(x){var C=m.cmpPos(x.anchor,x.head)>0;return{anchor:new D(x.anchor.line,x.anchor.ch+(C?-1:1)),head:new D(x.head.line,x.head.ch+(C?1:-1))}}function d(x,C){var b=c(x);if(!b||x.getOption("disableInput"))return m.Pass;var g=O(b,"pairs"),E=g.indexOf(C);if(E==-1)return m.Pass;for(var A=O(b,"closeBefore"),N=O(b,"triples"),M=g.charAt(E+1)==C,w=x.listSelections(),Y=E%2==0,X,P=0;P<w.length;P++){var H=w[P],G=H.head,$,he=x.getRange(G,D(G.line,G.ch+1));if(Y&&!H.empty())$="surround";else if((M||!Y)&&he==C)M&&f(x,G)?$="both":N.indexOf(C)>=0&&x.getRange(G,D(G.line,G.ch+3))==C+C+C?$="skipThree":$="skip";else if(M&&G.ch>1&&N.indexOf(C)>=0&&x.getRange(D(G.line,G.ch-2),G)==C+C){if(G.ch>2&&/\bstring/.test(x.getTokenTypeAt(D(G.line,G.ch-2))))return m.Pass;$="addFour"}else if(M){var de=G.ch==0?" ":x.getRange(D(G.line,G.ch-1),G);if(!m.isWordChar(he)&&de!=C&&!m.isWordChar(de))$="both";else return m.Pass}else if(Y&&(he.length===0||/\s/.test(he)||A.indexOf(he)>-1))$="both";else return m.Pass;if(!X)X=$;else if(X!=$)return m.Pass}var J=E%2?g.charAt(E-1):C,fe=E%2?C:g.charAt(E+1);x.operation(function(){if(X=="skip")x.execCommand("goCharRight");else if(X=="skipThree")for(var q=0;q<3;q++)x.execCommand("goCharRight");else if(X=="surround"){for(var U=x.getSelections(),q=0;q<U.length;q++)U[q]=J+U[q]+fe;x.replaceSelections(U,"around"),U=x.listSelections().slice();for(var q=0;q<U.length;q++)U[q]=r(U[q]);x.setSelections(U)}else X=="both"?(x.replaceSelection(J+fe,null),x.triggerElectric(J+fe),x.execCommand("goCharLeft")):X=="addFour"&&(x.replaceSelection(J+J+J+J,"before"),x.execCommand("goCharRight"))})}function u(x,C){var b=x.getRange(D(C.line,C.ch-1),D(C.line,C.ch+1));return b.length==2?b:null}function f(x,C){var b=x.getTokenAt(D(C.line,C.ch+1));return/\bstring/.test(b.type)&&b.start==C.ch&&(C.ch==0||!/\bstring/.test(x.getTokenTypeAt(C)))}})},ELcG:function(h,F,o){(function(m,a){h.exports=F=a(o("Ib8C"))})(this,function(m){/** @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(a){var D=m,O=D.lib,_=O.WordArray,y=O.Hasher,v=D.algo,c=_.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]),l=_.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]),s=_.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=_.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]),d=_.create([0,1518500249,1859775393,2400959708,2840853838]),u=_.create([1352829926,1548603684,1836072691,2053994217,0]),f=v.RIPEMD160=y.extend({_doReset:function(){this._hash=_.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(N,M){for(var w=0;w<16;w++){var Y=M+w,X=N[Y];N[Y]=(X<<8|X>>>24)&16711935|(X<<24|X>>>8)&4278255360}var P=this._hash.words,H=d.words,G=u.words,$=c.words,he=l.words,de=s.words,J=r.words,fe,q,U,z,L,T,I,se,me,xe;T=fe=P[0],I=q=P[1],se=U=P[2],me=z=P[3],xe=L=P[4];for(var Ee,w=0;w<80;w+=1)Ee=fe+N[M+$[w]]|0,w<16?Ee+=x(q,U,z)+H[0]:w<32?Ee+=C(q,U,z)+H[1]:w<48?Ee+=b(q,U,z)+H[2]:w<64?Ee+=g(q,U,z)+H[3]:Ee+=E(q,U,z)+H[4],Ee=Ee|0,Ee=A(Ee,de[w]),Ee=Ee+L|0,fe=L,L=z,z=A(U,10),U=q,q=Ee,Ee=T+N[M+he[w]]|0,w<16?Ee+=E(I,se,me)+G[0]:w<32?Ee+=g(I,se,me)+G[1]:w<48?Ee+=b(I,se,me)+G[2]:w<64?Ee+=C(I,se,me)+G[3]:Ee+=x(I,se,me)+G[4],Ee=Ee|0,Ee=A(Ee,J[w]),Ee=Ee+xe|0,T=xe,xe=me,me=A(se,10),se=I,I=Ee;Ee=P[1]+U+me|0,P[1]=P[2]+z+xe|0,P[2]=P[3]+L+T|0,P[3]=P[4]+fe+I|0,P[4]=P[0]+q+se|0,P[0]=Ee},_doFinalize:function(){var N=this._data,M=N.words,w=this._nDataBytes*8,Y=N.sigBytes*8;M[Y>>>5]|=128<<24-Y%32,M[(Y+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,N.sigBytes=(M.length+1)*4,this._process();for(var X=this._hash,P=X.words,H=0;H<5;H++){var G=P[H];P[H]=(G<<8|G>>>24)&16711935|(G<<24|G>>>8)&4278255360}return X},clone:function(){var N=y.clone.call(this);return N._hash=this._hash.clone(),N}});function x(N,M,w){return N^M^w}function C(N,M,w){return N&M|~N&w}function b(N,M,w){return(N|~M)^w}function g(N,M,w){return N&w|M&~w}function E(N,M,w){return N^(M|~w)}function A(N,M){return N<<M|N>>>32-M}D.RIPEMD160=y._createHelper(f),D.HmacRIPEMD160=y._createHmacHelper(f)}(Math),m.RIPEMD160})},ETIr:function(h,F,o){(function(m,a){h.exports=F=a(o("Ib8C"))})(this,function(m){return function(){var a=m,D=a.lib,O=D.WordArray,_=a.enc,y=_.Base64={stringify:function(c){var l=c.words,s=c.sigBytes,r=this._map;c.clamp();for(var d=[],u=0;u<s;u+=3)for(var f=l[u>>>2]>>>24-u%4*8&255,x=l[u+1>>>2]>>>24-(u+1)%4*8&255,C=l[u+2>>>2]>>>24-(u+2)%4*8&255,b=f<<16|x<<8|C,g=0;g<4&&u+g*.75<s;g++)d.push(r.charAt(b>>>6*(3-g)&63));var E=r.charAt(64);if(E)for(;d.length%4;)d.push(E);return d.join("")},parse:function(c){var l=c.length,s=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var d=0;d<s.length;d++)r[s.charCodeAt(d)]=d}var u=s.charAt(64);if(u){var f=c.indexOf(u);f!==-1&&(l=f)}return v(c,l,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function v(c,l,s){for(var r=[],d=0,u=0;u<l;u++)if(u%4){var f=s[c.charCodeAt(u-1)]<<u%4*2,x=s[c.charCodeAt(u)]>>>6-u%4*2,C=f|x;r[d>>>2]|=C<<24-d%4*8,d++}return O.create(r,d)}}(),m.enc.Base64})},"F+F2":function(h,F,o){(function(m,a){h.exports=F=a(o("Ib8C"))})(this,function(m){return function(){if(typeof ArrayBuffer!="function")return;var a=m,D=a.lib,O=D.WordArray,_=O.init,y=O.init=function(v){if(v instanceof ArrayBuffer&&(v=new Uint8Array(v)),(v instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&v instanceof Uint8ClampedArray||v instanceof Int16Array||v instanceof Uint16Array||v instanceof Int32Array||v instanceof Uint32Array||v instanceof Float32Array||v instanceof Float64Array)&&(v=new Uint8Array(v.buffer,v.byteOffset,v.byteLength)),v instanceof Uint8Array){for(var c=v.byteLength,l=[],s=0;s<c;s++)l[s>>>2]|=v[s]<<24-s%4*8;_.call(this,l,c)}else _.apply(this,arguments)};y.prototype=O}(),m.lib.WordArray})},GRuw:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("lPiR"))})(this,function(m){return function(){var a=m,D=a.lib,O=D.WordArray,_=a.algo,y=_.SHA256,v=_.SHA224=y.extend({_doReset:function(){this._hash=new O.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=y._doFinalize.call(this);return c.sigBytes-=4,c}});a.SHA224=y._createHelper(v),a.HmacSHA224=y._createHmacHelper(v)}(),m.SHA224})},GfqC:function(h,F,o){"use strict";var m=o("q1tI"),a=o.n(m),D=o("TSYQ"),O=o.n(D);function _(z,L){var T="cannot "+z.method+" "+z.action+" "+L.status+"'",I=new Error(T);return I.status=L.status,I.method=z.method,I.url=z.action,I}function y(z){var L=z.responseText||z.response;if(!L)return L;try{return JSON.parse(L)}catch(T){return L}}function v(z){var L=new XMLHttpRequest;z.onProgress&&L.upload&&(L.upload.onprogress=function(me){me.total>0&&(me.percent=me.loaded/me.total*100),z.onProgress(me)});var T=new FormData;z.data&&Object.keys(z.data).forEach(function(se){var me=z.data[se];if(Array.isArray(me)){me.forEach(function(xe){T.append(se+"[]",xe)});return}T.append(se,z.data[se])}),z.file instanceof Blob?T.append(z.filename,z.file,z.file.name):T.append(z.filename,z.file),L.onerror=function(me){z.onError(me)},L.onload=function(){return L.status<200||L.status>=300?z.onError(_(z,L),y(L)):z.onSuccess(y(L),L)},L.open(z.method,z.action,!0),z.withCredentials&&"withCredentials"in L&&(L.withCredentials=!0);var I=z.headers||{};return I["X-Requested-With"]!==null&&L.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(I).forEach(function(se){I[se]!==null&&L.setRequestHeader(se,I[se])}),L.send(T),{abort:function(){L.abort()}}}var c=+new Date,l=0;function s(){return"rc-upload-"+c+"-"+ ++l}function r(z,L){return z.indexOf(L,z.length-L.length)!==-1}var d=function(z,L){if(z&&L){var T=Array.isArray(L)?L:L.split(","),I=z.name||"",se=z.type||"",me=se.replace(/\/.*$/,"");return T.some(function(xe){var Ee=xe.trim();return Ee.charAt(0)==="."?r(I.toLowerCase(),Ee.toLowerCase()):/\/\*$/.test(Ee)?me===Ee.replace(/\/.*$/,""):se===Ee})}return!0};function u(z,L){var T=z.createReader(),I=[];function se(){T.readEntries(function(me){var xe=Array.prototype.slice.apply(me);I=I.concat(xe);var Ee=!xe.length;Ee?L(I):se()})}se()}var f=function(L,T,I){var se=function me(xe,Ee){Ee=Ee||"",xe.isFile?xe.file(function(Oe){I(Oe)&&(xe.fullPath&&!Oe.webkitRelativePath&&(Object.defineProperties(Oe,{webkitRelativePath:{writable:!0}}),Oe.webkitRelativePath=xe.fullPath.replace(/^\//,""),Object.defineProperties(Oe,{webkitRelativePath:{writable:!1}})),T([Oe]))}):xe.isDirectory&&u(xe,function(Oe){Oe.forEach(function(le){me(le,""+Ee+xe.name+"/")})})};L.forEach(function(me){se(me.webkitGetAsEntry())})},x=f,C=Object.assign||function(z){for(var L=1;L<arguments.length;L++){var T=arguments[L];for(var I in T)Object.prototype.hasOwnProperty.call(T,I)&&(z[I]=T[I])}return z},b=function(){function z(L,T){var I=[],se=!0,me=!1,xe=void 0;try{for(var Ee=L[Symbol.iterator](),Oe;!(se=(Oe=Ee.next()).done)&&!(I.push(Oe.value),T&&I.length===T);se=!0);}catch(le){me=!0,xe=le}finally{try{!se&&Ee.return&&Ee.return()}finally{if(me)throw xe}}return I}return function(L,T){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return z(L,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function z(L,T){for(var I=0;I<T.length;I++){var se=T[I];se.enumerable=se.enumerable||!1,se.configurable=!0,"value"in se&&(se.writable=!0),Object.defineProperty(L,se.key,se)}}return function(L,T,I){return T&&z(L.prototype,T),I&&z(L,I),L}}();function E(z,L,T){return L in z?Object.defineProperty(z,L,{value:T,enumerable:!0,configurable:!0,writable:!0}):z[L]=T,z}function A(z,L){var T={};for(var I in z){if(L.indexOf(I)>=0)continue;if(!Object.prototype.hasOwnProperty.call(z,I))continue;T[I]=z[I]}return T}function N(z,L){if(!(z instanceof L))throw new TypeError("Cannot call a class as a function")}function M(z,L){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:z}function w(z,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);z.prototype=Object.create(L&&L.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(z,L):z.__proto__=L)}var Y=function(L){return Object.keys(L).reduce(function(T,I){return(I.substr(0,5)==="data-"||I.substr(0,5)==="aria-"||I==="role")&&(T[I]=L[I]),T},{})},X=function(z){w(L,z);function L(){var T,I,se,me;N(this,L);for(var xe=arguments.length,Ee=Array(xe),Oe=0;Oe<xe;Oe++)Ee[Oe]=arguments[Oe];return me=(I=(se=M(this,(T=L.__proto__||Object.getPrototypeOf(L)).call.apply(T,[this].concat(Ee))),se),se.state={uid:s()},se.reqs={},se.onChange=function(le){var ge=le.target.files;se.uploadFiles(ge),se.reset()},se.onClick=function(le){var ge=se.fileInput;if(!ge)return;var ye=se.props,ee=ye.children,oe=ye.onClick;ee&&ee.type==="button"&&(ge.parentNode.focus(),ge.parentNode.querySelector("button").blur()),ge.click(),oe&&oe(le)},se.onKeyDown=function(le){le.key==="Enter"&&se.onClick()},se.onFileDrop=function(le){var ge=se.props.multiple;if(le.preventDefault(),le.type==="dragover")return;if(se.props.directory)x(Array.prototype.slice.call(le.dataTransfer.items),se.uploadFiles,function(ee){return d(ee,se.props.accept)});else{var ye=Array.prototype.slice.call(le.dataTransfer.files).filter(function(ee){return d(ee,se.props.accept)});ge===!1&&(ye=ye.slice(0,1)),se.uploadFiles(ye)}},se.uploadFiles=function(le){var ge=Array.prototype.slice.call(le);ge.map(function(ye){return ye.uid=s(),ye}).forEach(function(ye){se.upload(ye,ge)})},se.saveFileInput=function(le){se.fileInput=le},I),M(se,me)}return g(L,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(I,se){var me=this,xe=this.props;if(!xe.beforeUpload)return setTimeout(function(){return me.post(I)},0);var Ee=xe.beforeUpload(I,se);Ee&&Ee.then?Ee.then(function(Oe){var le=Object.prototype.toString.call(Oe);return le==="[object File]"||le==="[object Blob]"?me.post(Oe):me.post(I)}).catch(function(Oe){console.log(Oe)}):Ee!==!1&&setTimeout(function(){return me.post(I)},0);return}},{key:"post",value:function(I){var se=this;if(!this._isMounted)return;var me=this.props,xe=me.onStart,Ee=me.onProgress,Oe=me.transformFile,le=Oe===void 0?function(ge){return ge}:Oe;new Promise(function(ge){var ye=me.action;return typeof ye=="function"&&(ye=ye(I)),ge(ye)}).then(function(ge){var ye=I.uid,ee=me.customRequest||v,oe=Promise.resolve(le(I)).then(function(Z){var ue=me.data;return typeof ue=="function"&&(ue=ue(Z)),Promise.all([Z,ue])}).catch(function(Z){console.error(Z)});oe.then(function(Z){var ue=b(Z,2),V=ue[0],Q=ue[1],ae={action:ge,filename:me.name,data:Q,file:V,headers:me.headers,withCredentials:me.withCredentials,method:me.method||"post",onProgress:Ee?function(K){Ee(K,I)}:null,onSuccess:function(j,k){delete se.reqs[ye],me.onSuccess(j,I,k)},onError:function(j,k){delete se.reqs[ye],me.onError(j,k,I)}};xe(I),se.reqs[ye]=ee(ae)})})}},{key:"reset",value:function(){this.setState({uid:s()})}},{key:"abort",value:function(I){var se=this.reqs;if(I){var me=I;I&&I.uid&&(me=I.uid),se[me]&&se[me].abort&&se[me].abort(),delete se[me]}else Object.keys(se).forEach(function(xe){se[xe]&&se[xe].abort&&se[xe].abort(),delete se[xe]})}},{key:"render",value:function(){var I,se=this.props,me=se.component,xe=se.prefixCls,Ee=se.className,Oe=se.disabled,le=se.id,ge=se.style,ye=se.multiple,ee=se.accept,oe=se.children,Z=se.directory,ue=se.openFileDialogOnClick,V=se.onMouseEnter,Q=se.onMouseLeave,ae=A(se,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),K=O()((I={},E(I,xe,!0),E(I,xe+"-disabled",Oe),E(I,Ee,Ee),I)),j=Oe?{}:{onClick:ue?this.onClick:function(){},onKeyDown:ue?this.onKeyDown:function(){},onMouseEnter:V,onMouseLeave:Q,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return a.a.createElement(me,C({},j,{className:K,role:"button",style:ge}),a.a.createElement("input",C({},Y(ae),{id:le,type:"file",ref:this.saveFileInput,onClick:function(W){return W.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:ee,directory:Z?"directory":null,webkitdirectory:Z?"webkitdirectory":null,multiple:ye,onChange:this.onChange})),oe)}}]),L}(m.Component),P=X,H=Object.assign||function(z){for(var L=1;L<arguments.length;L++){var T=arguments[L];for(var I in T)Object.prototype.hasOwnProperty.call(T,I)&&(z[I]=T[I])}return z},G=function(){function z(L,T){for(var I=0;I<T.length;I++){var se=T[I];se.enumerable=se.enumerable||!1,se.configurable=!0,"value"in se&&(se.writable=!0),Object.defineProperty(L,se.key,se)}}return function(L,T,I){return T&&z(L.prototype,T),I&&z(L,I),L}}();function $(z,L){if(!(z instanceof L))throw new TypeError("Cannot call a class as a function")}function he(z,L){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:z}function de(z,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);z.prototype=Object.create(L&&L.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(z,L):z.__proto__=L)}function J(){}var fe=function(z){de(L,z);function L(){var T,I,se,me;$(this,L);for(var xe=arguments.length,Ee=Array(xe),Oe=0;Oe<xe;Oe++)Ee[Oe]=arguments[Oe];return me=(I=(se=he(this,(T=L.__proto__||Object.getPrototypeOf(L)).call.apply(T,[this].concat(Ee))),se),se.saveUploader=function(le){se.uploader=le},I),he(se,me)}return G(L,[{key:"abort",value:function(I){this.uploader.abort(I)}},{key:"render",value:function(){return a.a.createElement(P,H({},this.props,{ref:this.saveUploader}))}}]),L}(m.Component);fe.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:J,onError:J,onSuccess:J,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var q=fe,U=F.a=q},Gytx:function(h,F){h.exports=function(m,a,D,O){var _=D?D.call(O,m,a):void 0;if(_!==void 0)return!!_;if(m===a)return!0;if(typeof m!="object"||!m||typeof a!="object"||!a)return!1;var y=Object.keys(m),v=Object.keys(a);if(y.length!==v.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(a),l=0;l<y.length;l++){var s=y[l];if(!c(s))return!1;var r=m[s],d=a[s];if(_=D?D.call(O,r,d,s):void 0,_===!1||_===void 0&&r!==d)return!1}return!0}},HmJG:function(h,F,o){},Ib8C:function(h,F,o){(function(m){(function(a,D){h.exports=F=D()})(this,function(){var a=a||function(D,O){var _;if(typeof window!="undefined"&&window.crypto&&(_=window.crypto),typeof self!="undefined"&&self.crypto&&(_=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(_=globalThis.crypto),!_&&typeof window!="undefined"&&window.msCrypto&&(_=window.msCrypto),!_&&typeof m!="undefined"&&m.crypto&&(_=m.crypto),!_&&!0)try{_=o(4)}catch(E){}var y=function(){if(_){if(typeof _.getRandomValues=="function")try{return _.getRandomValues(new Uint32Array(1))[0]}catch(E){}if(typeof _.randomBytes=="function")try{return _.randomBytes(4).readInt32LE()}catch(E){}}throw new Error("Native crypto module could not be used to get secure random number.")},v=Object.create||function(){function E(){}return function(A){var N;return E.prototype=A,N=new E,E.prototype=null,N}}(),c={},l=c.lib={},s=l.Base=function(){return{extend:function(E){var A=v(this);return E&&A.mixIn(E),(!A.hasOwnProperty("init")||this.init===A.init)&&(A.init=function(){A.$super.init.apply(this,arguments)}),A.init.prototype=A,A.$super=this,A},create:function(){var E=this.extend();return E.init.apply(E,arguments),E},init:function(){},mixIn:function(E){for(var A in E)E.hasOwnProperty(A)&&(this[A]=E[A]);E.hasOwnProperty("toString")&&(this.toString=E.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),r=l.WordArray=s.extend({init:function(E,A){E=this.words=E||[],A!=O?this.sigBytes=A:this.sigBytes=E.length*4},toString:function(E){return(E||u).stringify(this)},concat:function(E){var A=this.words,N=E.words,M=this.sigBytes,w=E.sigBytes;if(this.clamp(),M%4)for(var Y=0;Y<w;Y++){var X=N[Y>>>2]>>>24-Y%4*8&255;A[M+Y>>>2]|=X<<24-(M+Y)%4*8}else for(var P=0;P<w;P+=4)A[M+P>>>2]=N[P>>>2];return this.sigBytes+=w,this},clamp:function(){var E=this.words,A=this.sigBytes;E[A>>>2]&=4294967295<<32-A%4*8,E.length=D.ceil(A/4)},clone:function(){var E=s.clone.call(this);return E.words=this.words.slice(0),E},random:function(E){for(var A=[],N=0;N<E;N+=4)A.push(y());return new r.init(A,E)}}),d=c.enc={},u=d.Hex={stringify:function(E){for(var A=E.words,N=E.sigBytes,M=[],w=0;w<N;w++){var Y=A[w>>>2]>>>24-w%4*8&255;M.push((Y>>>4).toString(16)),M.push((Y&15).toString(16))}return M.join("")},parse:function(E){for(var A=E.length,N=[],M=0;M<A;M+=2)N[M>>>3]|=parseInt(E.substr(M,2),16)<<24-M%8*4;return new r.init(N,A/2)}},f=d.Latin1={stringify:function(E){for(var A=E.words,N=E.sigBytes,M=[],w=0;w<N;w++){var Y=A[w>>>2]>>>24-w%4*8&255;M.push(String.fromCharCode(Y))}return M.join("")},parse:function(E){for(var A=E.length,N=[],M=0;M<A;M++)N[M>>>2]|=(E.charCodeAt(M)&255)<<24-M%4*8;return new r.init(N,A)}},x=d.Utf8={stringify:function(E){try{return decodeURIComponent(escape(f.stringify(E)))}catch(A){throw new Error("Malformed UTF-8 data")}},parse:function(E){return f.parse(unescape(encodeURIComponent(E)))}},C=l.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(E){typeof E=="string"&&(E=x.parse(E)),this._data.concat(E),this._nDataBytes+=E.sigBytes},_process:function(E){var A,N=this._data,M=N.words,w=N.sigBytes,Y=this.blockSize,X=Y*4,P=w/X;E?P=D.ceil(P):P=D.max((P|0)-this._minBufferSize,0);var H=P*Y,G=D.min(H*4,w);if(H){for(var $=0;$<H;$+=Y)this._doProcessBlock(M,$);A=M.splice(0,H),N.sigBytes-=G}return new r.init(A,G)},clone:function(){var E=s.clone.call(this);return E._data=this._data.clone(),E},_minBufferSize:0}),b=l.Hasher=C.extend({cfg:s.extend(),init:function(E){this.cfg=this.cfg.extend(E),this.reset()},reset:function(){C.reset.call(this),this._doReset()},update:function(E){return this._append(E),this._process(),this},finalize:function(E){E&&this._append(E);var A=this._doFinalize();return A},blockSize:512/32,_createHelper:function(E){return function(A,N){return new E.init(N).finalize(A)}},_createHmacHelper:function(E){return function(A,N){return new g.HMAC.init(E,N).finalize(A)}}}),g=c.algo={};return c}(Math);return a})}).call(this,o("IyRk"))},J66h:function(h,F,o){(function(m){var a,D;(function(O,_){h.exports=_(O)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof m!="undefined"?m:this,function(O){"use strict";O=O||{};var _=O.Base64,y="2.6.4",v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=function(J){for(var fe={},q=0,U=J.length;q<U;q++)fe[J.charAt(q)]=q;return fe}(v),l=String.fromCharCode,s=function(J){if(J.length<2){var fe=J.charCodeAt(0);return fe<128?J:fe<2048?l(192|fe>>>6)+l(128|fe&63):l(224|fe>>>12&15)+l(128|fe>>>6&63)+l(128|fe&63)}else{var fe=65536+(J.charCodeAt(0)-55296)*1024+(J.charCodeAt(1)-56320);return l(240|fe>>>18&7)+l(128|fe>>>12&63)+l(128|fe>>>6&63)+l(128|fe&63)}},r=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,d=function(J){return J.replace(r,s)},u=function(J){var fe=[0,2,1][J.length%3],q=J.charCodeAt(0)<<16|(J.length>1?J.charCodeAt(1):0)<<8|(J.length>2?J.charCodeAt(2):0),U=[v.charAt(q>>>18),v.charAt(q>>>12&63),fe>=2?"=":v.charAt(q>>>6&63),fe>=1?"=":v.charAt(q&63)];return U.join("")},f=O.btoa&&typeof O.btoa=="function"?function(J){return O.btoa(J)}:function(J){if(J.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return J.replace(/[\s\S]{1,3}/g,u)},x=function(J){return f(d(String(J)))},C=function(J){return J.replace(/[+\/]/g,function(fe){return fe=="+"?"-":"_"}).replace(/=/g,"")},b=function(J,fe){return fe?C(x(J)):x(J)},g=function(J){return b(J,!0)},E;O.Uint8Array&&(E=function(J,fe){for(var q="",U=0,z=J.length;U<z;U+=3){var L=J[U],T=J[U+1],I=J[U+2],se=L<<16|T<<8|I;q+=v.charAt(se>>>18)+v.charAt(se>>>12&63)+(typeof T!="undefined"?v.charAt(se>>>6&63):"=")+(typeof I!="undefined"?v.charAt(se&63):"=")}return fe?C(q):q});var A=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,N=function(J){switch(J.length){case 4:var fe=(7&J.charCodeAt(0))<<18|(63&J.charCodeAt(1))<<12|(63&J.charCodeAt(2))<<6|63&J.charCodeAt(3),q=fe-65536;return l((q>>>10)+55296)+l((q&1023)+56320);case 3:return l((15&J.charCodeAt(0))<<12|(63&J.charCodeAt(1))<<6|63&J.charCodeAt(2));default:return l((31&J.charCodeAt(0))<<6|63&J.charCodeAt(1))}},M=function(J){return J.replace(A,N)},w=function(J){var fe=J.length,q=fe%4,U=(fe>0?c[J.charAt(0)]<<18:0)|(fe>1?c[J.charAt(1)]<<12:0)|(fe>2?c[J.charAt(2)]<<6:0)|(fe>3?c[J.charAt(3)]:0),z=[l(U>>>16),l(U>>>8&255),l(U&255)];return z.length-=[0,0,2,1][q],z.join("")},Y=O.atob&&typeof O.atob=="function"?function(J){return O.atob(J)}:function(J){return J.replace(/\S{1,4}/g,w)},X=function(J){return Y(String(J).replace(/[^A-Za-z0-9\+\/]/g,""))},P=function(J){return M(Y(J))},H=function(J){return String(J).replace(/[-_]/g,function(fe){return fe=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},G=function(J){return P(H(J))},$;O.Uint8Array&&($=function(J){return Uint8Array.from(X(H(J)),function(fe){return fe.charCodeAt(0)})});var he=function(){var J=O.Base64;return O.Base64=_,J};if(O.Base64={VERSION:y,atob:X,btoa:f,fromBase64:G,toBase64:b,utob:d,encode:b,encodeURI:g,btou:M,decode:G,noConflict:he,fromUint8Array:E,toUint8Array:$},typeof Object.defineProperty=="function"){var de=function(J){return{value:J,enumerable:!1,writable:!0,configurable:!0}};O.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",de(function(){return G(this)})),Object.defineProperty(String.prototype,"toBase64",de(function(J){return b(this,J)})),Object.defineProperty(String.prototype,"toBase64URI",de(function(){return b(this,!0)}))}}return O.Meteor&&(Base64=O.Base64),h.exports?h.exports.Base64=O.Base64:!(a=[],D=function(){return O.Base64}.apply(F,a),D!==void 0&&(h.exports=D)),{Base64:O.Base64}})}).call(this,o("IyRk"))},JYp7:function(h,F,o){"use strict";o.d(F,"c",function(){return a}),o.d(F,"d",function(){return D}),o.d(F,"f",function(){return _}),o.d(F,"a",function(){return y}),o.d(F,"b",function(){return v}),o.d(F,"e",function(){return c});var m=function(){var l=function(s,r){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var f in u)u.hasOwnProperty(f)&&(d[f]=u[f])},l(s,r)};return function(s,r){l(s,r);function d(){this.constructor=s}s.prototype=r===null?Object.create(r):(d.prototype=r.prototype,new d)}}(),a={done:!0,value:void 0},D;(function(l){var s={next:function(){return a}};function r(){return s}l.empty=r;function d(M){var w=!1;return{next:function(){return w?a:(w=!0,{done:!1,value:M})}}}l.single=d;function u(M,w,Y){return w===void 0&&(w=0),Y===void 0&&(Y=M.length),{next:function(){return w>=Y?a:{done:!1,value:M[w++]}}}}l.fromArray=u;function f(M){return{next:function(){var w=M.next();return w.done?a:{done:!1,value:w.value}}}}l.fromNativeIterator=f;function x(M){return M?Array.isArray(M)?l.fromArray(M):M:l.empty()}l.from=x;function C(M,w){return{next:function(){var Y=M.next();return Y.done?a:{done:!1,value:w(Y.value)}}}}l.map=C;function b(M,w){return{next:function(){for(;;){var Y=M.next();if(Y.done)return a;if(w(Y.value))return{done:!1,value:Y.value}}}}}l.filter=b;function g(M,w){for(var Y=M.next();!Y.done;Y=M.next())w(Y.value)}l.forEach=g;function E(M,w){w===void 0&&(w=Number.POSITIVE_INFINITY);var Y=[];if(w===0)return Y;for(var X=0,P=M.next();!P.done&&!(Y.push(P.value),++X>=w);P=M.next());return Y}l.collect=E;function A(){for(var M=[],w=0;w<arguments.length;w++)M[w]=arguments[w];var Y=0;return{next:function(){if(Y>=M.length)return a;var X=M[Y],P=X.next();return P.done?(Y++,this.next()):P}}}l.concat=A;function N(M){return new O(M)}l.chain=N})(D||(D={}));var O=function(){function l(s){this.it=s}return l.prototype.next=function(){return this.it.next()},l}();function _(l){return Array.isArray(l)?D.fromArray(l):l||D.empty()}var y=function(){function l(s,r,d,u){r===void 0&&(r=0),d===void 0&&(d=s.length),u===void 0&&(u=r-1),this.items=s,this.start=r,this.end=d,this.index=u}return l.prototype.first=function(){return this.index=this.start,this.current()},l.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},l.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},l}(),v=function(l){m(s,l);function s(r,d,u,f){return d===void 0&&(d=0),u===void 0&&(u=r.length),f===void 0&&(f=d-1),l.call(this,r,d,u,f)||this}return s.prototype.current=function(){return l.prototype.current.call(this)},s.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},s.prototype.first=function(){return this.index=this.start,this.current()},s.prototype.last=function(){return this.index=this.end-1,this.current()},s.prototype.parent=function(){return null},s}(y),c=function(){function l(s,r){this.iterator=s,this.fn=r}return l.prototype.next=function(){return this.fn(this.iterator.next())},l}()},K3mO:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(m){return function(){var a=m,D=a.lib,O=D.Base,_=D.WordArray,y=a.algo,v=y.MD5,c=y.EvpKDF=O.extend({cfg:O.extend({keySize:128/32,hasher:v,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,s){for(var r,d=this.cfg,u=d.hasher.create(),f=_.create(),x=f.words,C=d.keySize,b=d.iterations;x.length<C;){r&&u.update(r),r=u.update(l).finalize(s),u.reset();for(var g=1;g<b;g++)r=u.finalize(r),u.reset();f.concat(r)}return f.sigBytes=C*4,f}});a.EvpKDF=function(l,s,r){return c.create(r).compute(l,s)}}(),m.EvpKDF})},KhGG:function(h,F,o){"use strict";o.d(F,"a",function(){return w}),o.d(F,"c",function(){return X});var m=o("0Owb"),a=o("miYZ"),D=o("tsqr"),O=o("oBTY"),_=o("tJVT"),y=o("PpiC"),v=o("k1fw"),c=o("9og8"),l=o("DZo9"),s=o("8z0m"),r=o("WmNS"),d=o.n(r),u=o("q1tI"),f=o.n(u),x=o("ErOA"),C=o("NFKh"),b=o.n(C),g=o("7Cbv"),E=o("9kvl"),A=o("mxV5"),N=o.n(A),M=s.a.Dragger,w=function(G){var $="bf3c199c2470cb477d907b1e0917c17b",he="5183666c72eec9e4",de=b.a.enc.Utf8.parse($),J=b.a.enc.Utf8.parse(he),fe=b.a.AES.decrypt(G,de,{iv:J,mode:b.a.mode.CBC});return fe.toString(b.a.enc.Utf8)},Y,X=function(){var H=Object(c.a)(d.a.mark(function G($,he,de){var J,fe,q,U,z,L,T,I,se;return d.a.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return he.file_name=$.name,xe.next=3,Object(x.a)("/api/buckets/get_upload_token.json",{method:"get"});case 3:return T=xe.sent,console.log("decrypt(res.data):",w(T.data)),T.data=JSON.parse(w(T.data)),I=Object(g.a)(),se=new N.a({endpoint:T==null||((J=T.data)===null||J===void 0)?void 0:J.end_point,region:T==null||((fe=T.data)===null||fe===void 0)?void 0:fe.region,accessKeyId:T==null||((q=T.data)===null||q===void 0)?void 0:q.access_key_id,accessKeySecret:T==null||((U=T.data)===null||U===void 0)?void 0:U.access_key_secret,bucket:T==null||((z=T.data)===null||z===void 0)?void 0:z.bucket,stsToken:T==null||((L=T.data)===null||L===void 0)?void 0:L.security_token}),xe.abrupt("return",new Promise(function(Ee,Oe){var le;se.multipartUpload("".concat(I),new Blob([$],{type:$.type}),Object(v.a)(Object(v.a)({timeout:200*1e3,partSize:102400},de),{},{callback:{url:T==null||((le=T.data)===null||le===void 0)?void 0:le.callback_url,host:T==null?void 0:T.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(x.e)(he)}})).then(function(ge){var ye;$.response=(ye=ge.data)===null||ye===void 0?void 0:ye.data,Ee(ge==null?void 0:ge.data)}).catch(function(ge){Oe(ge),console.log("err:",ge)})}));case 9:case"end":return xe.stop()}},G)}));return function($,he,de){return H.apply(this,arguments)}}(),P=function(G){var $=G.user,he=G.cancelUpload,de=Object(y.a)(G,["user","cancelUpload"]),J=Object(u.useState)([]),fe=Object(_.a)(J,2),q=fe[0],U=fe[1],z=Object(u.useState)(),L=Object(_.a)(z,2),T=L[0],I=L[1],se={onRemove:function(Ee){U(Object(O.a)(q.filter(function(Oe){return Oe.name!==Ee.name}))),de.onChange(q.filter(function(Oe){return Oe.name!==Ee.name}))},disabled:de.disabled,multiple:!0,fileList:q==null?void 0:q.map(function(xe){return xe.file}),customRequest:function(){},beforeUpload:function(){var xe=Object(c.a)(d.a.mark(function Oe(le){var ge;return d.a.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(ge=de.maxSize||1024*1024*1024*1,!q.filter(function(oe){return oe.name===le.name}).length){ee.next=4;break}return D.b.info("".concat(le.name,"\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")),ee.abrupt("return");case 4:if(!((le==null?void 0:le.size)>ge)){ee.next=7;break}return D.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(ge/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),ee.abrupt("return",!1);case 7:return q.push({name:le.name,file:le}),U(Object(O.a)(q)),de.onChange(q),ee.abrupt("return",!1);case 11:case"end":return ee.stop()}},Oe)}));function Ee(Oe){return xe.apply(this,arguments)}return Ee}()},me=function(){var xe=Object(c.a)(d.a.mark(function Ee(Oe,le){var ge,ye,ee,oe,Z,ue,V,Q,ae;return d.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return le.file_name=Oe.name,V=Oe.name,j.next=4,Object(x.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if(Q=j.sent,Q.data=JSON.parse(w(Q.data)),!((Q==null?void 0:Q.status)!==0)){j.next=12;break}return q[q.findIndex(function(k){return k.name===V})].status="error",q[q.findIndex(function(k){return k.name===V})].file.status="error",de.onChange(q),D.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),j.abrupt("return");case 12:return T=new N.a({endpoint:Q==null||((ge=Q.data)===null||ge===void 0)?void 0:ge.end_point,region:Q==null||((ye=Q.data)===null||ye===void 0)?void 0:ye.region,accessKeyId:Q==null||((ee=Q.data)===null||ee===void 0)?void 0:ee.access_key_id,accessKeySecret:Q==null||((oe=Q.data)===null||oe===void 0)?void 0:oe.access_key_secret,bucket:Q==null||((Z=Q.data)===null||Z===void 0)?void 0:Z.bucket,stsToken:Q==null||((ue=Q.data)===null||ue===void 0)?void 0:ue.security_token}),console.log(Oe,"file"),I(T),ae=Object(g.a)(),j.abrupt("return",new Promise(function(k,W){try{var we;T.multipartUpload("".concat(de.identifier,"/").concat(ae).concat(V.indexOf(".")>-1?"."+V.split(".").pop():""),new Blob([Oe.file],{type:Oe.file.type}),{timeout:3600*1e3,partSize:1002400,progress:function(Te,Be,Fe){try{console.log("\u8FDB\u5EA6",Te,Be,Fe);var Ue=q.findIndex(function(We){return We.name===V});q[Ue].file.percent=Te*100,q[Ue].tempCheckpoint=Be,U(Object(O.a)(q))}catch(We){}},checkpoint:q[q.findIndex(function(be){return be.name===V})].tempCheckpoint,callback:{customValue:{id:V+""},url:Q==null||((we=Q.data)===null||we===void 0)?void 0:we.callback_url,host:Q==null?void 0:Q.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(x.e)(le)}}).then(function(be){var Te,Be=q.findIndex(function(Ge){return Ge.name===V}),Fe="done";if(((Te=be.data)===null||Te===void 0?void 0:Te.status)===0){var Ue;Oe.response=(Ue=be.data)===null||Ue===void 0?void 0:Ue.data;var We=q.findIndex(function(Ge){return Ge.name===V});q[We].status="done",q[We].file.status="done"}else{var Ve;D.b.warn((Ve=be.data)===null||Ve===void 0?void 0:Ve.message),Fe="error"}q[Be].status=Fe,q[Be].file.status=Fe,de.onChange(q),k(be==null?void 0:be.data)}).catch(function(be){q[q.findIndex(function(Te){return Te.name===V})].status="error",q[q.findIndex(function(Te){return Te.name===V})].file.status="error",D.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),U(Object(O.a)(q)),de.onChange(q),W(be),console.log("err:",be)})}catch(be){}}));case 17:case"end":return j.stop()}},Ee)}));return function(Oe,le){return xe.apply(this,arguments)}}();return Object(u.useEffect)(function(){q.every(function(xe){return xe==="done"||xe==="error"})&&de.onComplete(q)},[q]),Object(u.useEffect)(function(){if(he){var xe;(xe=T)===null||xe===void 0||xe.cancel()}},[he]),Object(u.useEffect)(function(){de.uploading&&q.map(function(){var xe=Object(c.a)(d.a.mark(function Ee(Oe){var le,ge;return d.a.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(!((!Oe.status||Oe.status==="error")&&!he)){ee.next=6;break}return Oe.status="uploading",Oe.file.status="uploading",ee.next=5,me(Oe,{login:$==null||((le=$.userInfo)===null||le===void 0)?void 0:le.login,container_type:de.container_type,container_id:de.container_id,description:de.description});case 5:ge=ee.sent;case 6:case"end":return ee.stop()}},Ee)}));return function(Ee){return xe.apply(this,arguments)}}())},[de.uploading]),f.a.createElement(M,Object(m.a)({},se,{height:de.height,className:de.className}),f.a.createElement("p",{className:"ant-upload-hint"},de.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};F.b=Object(E.a)(function(H){var G=H.loading,$=H.globalSetting,he=H.user;return{globalSetting:$,loading:G.models.competitions,user:he}})(P)},KmYQ:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("OLod"))})(this,function(m){return m.pad.ZeroPadding={pad:function(a,D){var O=D*4;a.clamp(),a.sigBytes+=O-(a.sigBytes%O||O)},unpad:function(a){for(var D=a.words,O=a.sigBytes-1,O=a.sigBytes-1;O>=0;O--)if(D[O>>>2]>>>24-O%4*8&255){a.sigBytes=O+1;break}}},m.pad.ZeroPadding})},LdHM:function(h,F,o){"use strict";o.d(F,"b",function(){return A}),o.d(F,"a",function(){return M});var m=o("1OyB"),a=o("vuIU"),D=o("Ji7U"),O=o("LK+K"),_=o("q1tI"),y=o("rePB"),v=o("Ff2n"),c=o("ODXe"),l=o("4IlW"),s=o("bX4T"),r=o("YrtM"),d=o("TSYQ"),u=o.n(d),f=o("+nKL"),x=o("8OUc"),C=function(I,se){var me=I.prefixCls,xe=I.id,Ee=I.flattenOptions,Oe=I.childrenAsData,le=I.values,ge=I.searchValue,ye=I.multiple,ee=I.defaultActiveFirstOption,oe=I.height,Z=I.itemHeight,ue=I.notFoundContent,V=I.open,Q=I.menuItemSelectedIcon,ae=I.virtual,K=I.onSelect,j=I.onToggleOpen,k=I.onActiveValue,W=I.onScroll,we=I.onMouseEnter,be="".concat(me,"-item"),Te=Object(r.a)(function(){return Ee},[V,Ee],function($e,je){return je[0]&&$e[1]!==je[1]}),Be=_.useRef(null),Fe=function(je){je.preventDefault()},Ue=function(je){Be.current&&Be.current.scrollTo({index:je})},We=function(je){for(var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Pe=Te.length,Se=0;Se<Pe;Se+=1){var _e=(je+Se*Me+Pe)%Pe,ke=Te[_e],Le=ke.group,Xe=ke.data;if(!Le&&!Xe.disabled)return _e}return-1},Ve=_.useState(function(){return We(0)}),Ge=Object(c.a)(Ve,2),Je=Ge[0],Re=Ge[1],Ze=function(je){Re(je);var Me=Te[je];if(!Me){k(null,-1);return}k(Me.data.value,je)};_.useEffect(function(){Ze(ee!==!1?We(0):-1)},[Te.length,ge]),_.useEffect(function(){var $e=setTimeout(function(){if(!ye&&V&&le.size===1){var je=Array.from(le)[0],Me=Te.findIndex(function(Pe){var Se=Pe.data;return Se.value===je});Ze(Me),Ue(Me)}});return function(){return clearTimeout($e)}},[V]);var nt=function(je){je!==void 0&&K(je,{selected:!le.has(je)}),ye||j(!1)};if(_.useImperativeHandle(se,function(){return{onKeyDown:function(je){var Me=je.which;switch(Me){case l.a.UP:case l.a.DOWN:{var Pe=0;if(Me===l.a.UP?Pe=-1:Me===l.a.DOWN&&(Pe=1),Pe!==0){var Se=We(Je+Pe,Pe);Ue(Se),Ze(Se)}break}case l.a.ENTER:{var _e=Te[Je];_e&&!_e.data.disabled?nt(_e.data.value):nt(void 0),V&&je.preventDefault();break}case l.a.ESC:j(!1)}},onKeyUp:function(){},scrollTo:function(je){Ue(je)}}}),Te.length===0)return _.createElement("div",{role:"listbox",id:"".concat(xe,"_list"),className:"".concat(be,"-empty"),onMouseDown:Fe},ue);function Ke($e){var je=Te[$e];if(!je)return null;var Me=je.data||{},Pe=Me.value,Se=Me.label,_e=Me.children,ke=Object(s.a)(Me,!0),Le=Oe?_e:Se;return je?_.createElement("div",Object.assign({"aria-label":typeof Le=="string"?Le:null},ke,{key:$e,role:"option",id:"".concat(xe,"_list_").concat($e),"aria-selected":le.has(Pe)}),Pe):null}return _.createElement(_.Fragment,null,_.createElement("div",{role:"listbox",id:"".concat(xe,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ke(Je-1),Ke(Je),Ke(Je+1)),_.createElement(f.a,{itemKey:"key",ref:Be,data:Te,height:oe,itemHeight:Z,fullHeight:!1,onMouseDown:Fe,onScroll:W,virtual:ae,onMouseEnter:we},function($e,je){var Me,Pe=$e.group,Se=$e.groupOption,_e=$e.data,ke=_e.label,Le=_e.key;if(Pe)return _.createElement("div",{className:u()(be,"".concat(be,"-group"))},ke!==void 0?ke:Le);var Xe=_e.disabled,Ae=_e.value,Ye=_e.title,it=_e.children,lt=_e.style,dt=_e.className,ut=Object(v.a)(_e,["disabled","value","title","children","style","className"]),xt=le.has(Ae),ht="".concat(be,"-option"),Rt=u()(be,ht,dt,(Me={},Object(y.a)(Me,"".concat(ht,"-grouped"),Se),Object(y.a)(Me,"".concat(ht,"-active"),Je===je&&!Xe),Object(y.a)(Me,"".concat(ht,"-disabled"),Xe),Object(y.a)(Me,"".concat(ht,"-selected"),xt),Me)),Xt=Oe?it:ke,er=!Q||typeof Q=="function"||xt;return _.createElement("div",Object.assign({},ut,{"aria-selected":xt,className:Rt,title:Ye,onMouseMove:function(){if(Je===je||Xe)return;Ze(je)},onClick:function(){Xe||nt(Ae)},style:lt}),_.createElement("div",{className:"".concat(ht,"-content")},Xt||Ae),_.isValidElement(Q)||xt,er&&_.createElement(x.a,{className:"".concat(be,"-option-state"),customizeIcon:Q,customizeIconProps:{isSelected:xt}},xt?"\u2713":null))}))},b=_.forwardRef(C);b.displayName="OptionList";var g=b,E=function(){return null};E.isSelectOption=!0;var A=E,N=function(){return null};N.isSelectOptGroup=!0;var M=N,w=o("VTBJ"),Y=o("Zm9Q");function X(T){var I=T.key,se=T.props,me=se.children,xe=se.value,Ee=Object(v.a)(se,["children","value"]);return Object(w.a)({key:I,value:xe!==void 0?xe:I,children:me},Ee)}function P(T){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(Y.a)(T).map(function(se,me){if(!_.isValidElement(se)||!se.type)return null;var xe=se.type.isSelectOptGroup,Ee=se.key,Oe=se.props,le=Oe.children,ge=Object(v.a)(Oe,["children"]);return I||!xe?X(se):Object(w.a)(Object(w.a)({key:"__RC_SELECT_GRP__".concat(Ee===null?me:Ee,"__"),label:Ee},ge),{},{options:P(le)})}).filter(function(se){return se})}var H=o("2Qr1"),G=o("qNPg"),$=o("U8pU"),he=o("Kwbf"),de=o("WKfj");function J(T){var I=T.mode,se=T.options,me=T.children,xe=T.backfill,Ee=T.allowClear,Oe=T.placeholder,le=T.getInputElement,ge=T.showSearch,ye=T.onSearch,ee=T.defaultOpen,oe=T.autoFocus,Z=T.labelInValue,ue=T.value,V=T.inputValue,Q=T.optionLabelProp,ae=I==="multiple"||I==="tags",K=ge!==void 0?ge:ae||I==="combobox",j=se||P(me);if(Object(he.a)(I!=="tags"||j.every(function(be){return!be.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),I==="tags"||I==="combobox"){var k=j.some(function(be){return be.options?be.options.some(function(Te){return typeof("value"in Te?Te.value:Te.key)=="number"}):typeof("value"in be?be.value:be.key)=="number"});Object(he.a)(!k,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(he.a)(I!=="combobox"||!Q,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(he.a)(I==="combobox"||!xe,"`backfill` only works with `combobox` mode."),Object(he.a)(I==="combobox"||!le,"`getInputElement` only work with `combobox` mode."),Object(he.b)(I!=="combobox"||!le||!Ee||!Oe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ye&&!K&&I!=="combobox"&&I!=="tags"&&Object(he.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(he.b)(!ee||oe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ue!=null){var W=Object(de.d)(ue);Object(he.a)(!Z||W.every(function(be){return Object($.a)(be)==="object"&&("key"in be||"value"in be)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(he.a)(!ae||Array.isArray(ue),"`value` should be array when `mode` is `multiple` or `tags`")}if(me){var we=null;Object(Y.a)(me).some(function(be){if(!_.isValidElement(be)||!be.type)return!1;var Te=be.type;if(Te.isSelectOption)return!1;if(Te.isSelectOptGroup){var Be=Object(Y.a)(be.props.children).every(function(Fe){return!_.isValidElement(Fe)||!be.type||Fe.type.isSelectOption?!0:(we=Fe.type,!1)});return!Be}return we=Te,!0}),we&&Object(he.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(we.displayName||we.name||we,"`.")),Object(he.a)(V===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var fe=J,q=Object(G.a)({prefixCls:"rc-select",components:{optionList:g},convertChildrenToData:P,flattenOptions:H.d,getLabeledValue:H.e,filterOptions:H.b,isValueDisabled:H.g,findValueOption:H.c,warningProps:fe,fillOptionsWithMissingValue:H.a}),U=function(T){Object(D.a)(se,T);var I=Object(O.a)(se);function se(){var me;return Object(m.a)(this,se),me=I.apply(this,arguments),me.selectRef=_.createRef(),me.focus=function(){me.selectRef.current.focus()},me.blur=function(){me.selectRef.current.blur()},me}return Object(a.a)(se,[{key:"render",value:function(){return _.createElement(q,Object.assign({ref:this.selectRef},this.props))}}]),se}(_.Component);U.Option=A,U.OptGroup=M;var z=U,L=F.c=z},M8RZ:function(h,F,o){"use strict";o.d(F,"a",function(){return l});var m=o("fWQN"),a=o("mtLc"),D=o("yKVA"),O=o("879j"),_=o("q1tI"),y=o.n(_),v=o("i8i4"),c=o.n(v),l=function(s){Object(D.a)(d,s);var r=Object(O.a)(d);function d(u){var f;Object(m.a)(this,d),f=r.call(this,u);var x=window.document;return f.node=x.createElement("div"),x.body.appendChild(f.node),f}return Object(a.a)(d,[{key:"render",value:function(){var f=this.props.children;return Object(v.createPortal)(f,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),d}(y.a.Component)},MFOe:function(h,F,o){(function(m){var a=y(),D=v(),O=c(),_=typeof window!="undefined"?window:m;h.exports={assign:a,create:D,trim:O,bind:l,slice:s,each:r,map:d,pluck:u,isList:f,isFunction:x,isObject:C,Global:_};function y(){return Object.assign?Object.assign:function(g,E,A,N){for(var M=1;M<arguments.length;M++)r(Object(arguments[M]),function(w,Y){g[Y]=w});return g}}function v(){if(Object.create)return function(E,A,N,M){var w=s(arguments,1);return a.apply(this,[Object.create(E)].concat(w))};{function b(){}return function(E,A,N,M){var w=s(arguments,1);return b.prototype=E,a.apply(this,[new b].concat(w))}}}function c(){return String.prototype.trim?function(g){return String.prototype.trim.call(g)}:function(g){return g.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function l(b,g){return function(){return g.apply(b,Array.prototype.slice.call(arguments,0))}}function s(b,g){return Array.prototype.slice.call(b,g||0)}function r(b,g){u(b,function(E,A){return g(E,A),!1})}function d(b,g){var E=f(b)?[]:{};return u(b,function(A,N){return E[N]=g(A,N),!1}),E}function u(b,g){if(f(b)){for(var E=0;E<b.length;E++)if(g(b[E],E))return b[E]}else for(var A in b)if(b.hasOwnProperty(A)&&g(b[A],A))return b[A]}function f(b){return b!=null&&typeof b!="function"&&typeof b.length=="number"}function x(b){return b&&{}.toString.call(b)==="[object Function]"}function C(b){return b&&{}.toString.call(b)==="[object Object]"}}).call(this,o("IyRk"))},MI8n:function(h,F,o){"use strict";o.d(F,"b",function(){return y}),o.d(F,"a",function(){return l}),o.d(F,"e",function(){return s}),o.d(F,"d",function(){return r}),o.d(F,"c",function(){return d}),o.d(F,"f",function(){return u});var m=o("/cxE"),a=o("C/vA"),D=o("pmY6"),O=o("24hK"),_=function(){var f=function(x,C){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,g){b.__proto__=g}||function(b,g){for(var E in g)g.hasOwnProperty(E)&&(b[E]=g[E])},f(x,C)};return function(x,C){f(x,C);function b(){this.constructor=x}x.prototype=C===null?Object.create(C):(b.prototype=C.prototype,new b)}}(),y;(function(f){f.None=function(){return D.a.None};function x(fe){return function(q,U,z){U===void 0&&(U=null);var L=!1,T;return T=fe(function(I){return L?void 0:(T?T.dispose():L=!0,q.call(U,I))},null,z),L&&T.dispose(),T}}f.once=x;function C(fe,q){return M(function(U,z,L){return z===void 0&&(z=null),fe(function(T){return U.call(z,q(T))},null,L)})}f.map=C;function b(fe,q){return M(function(U,z,L){return z===void 0&&(z=null),fe(function(T){q(T),U.call(z,T)},null,L)})}f.forEach=b;function g(fe,q){return M(function(U,z,L){return z===void 0&&(z=null),fe(function(T){return q(T)&&U.call(z,T)},null,L)})}f.filter=g;function E(fe){return fe}f.signal=E;function A(){for(var fe=[],q=0;q<arguments.length;q++)fe[q]=arguments[q];return function(U,z,L){return z===void 0&&(z=null),D.e.apply(void 0,fe.map(function(T){return T(function(I){return U.call(z,I)},null,L)}))}}f.any=A;function N(fe,q,U){var z=U;return C(fe,function(L){return z=q(z,L),z})}f.reduce=N;function M(fe){var q,U=new l({onFirstListenerAdd:function(){q=fe(U.fire,U)},onLastListenerRemove:function(){q.dispose()}});return U.event}f.snapshot=M;function w(fe,q,U,z,L){U===void 0&&(U=100),z===void 0&&(z=!1);var T,I=void 0,se=void 0,me=0,xe=new l({leakWarningThreshold:L,onFirstListenerAdd:function(){T=fe(function(Ee){me++,I=q(I,Ee),z&&!se&&(xe.fire(I),I=void 0),clearTimeout(se),se=setTimeout(function(){var Oe=I;I=void 0,se=void 0,(!z||me>1)&&xe.fire(Oe),me=0},U)})},onLastListenerRemove:function(){T.dispose()}});return xe.event}f.debounce=w;function Y(fe){var q=new Date().getTime();return C(x(fe),function(U){return new Date().getTime()-q})}f.stopwatch=Y;function X(fe){var q=!0,U;return g(fe,function(z){var L=q||z!==U;return q=!1,U=z,L})}f.latch=X;function P(fe,q,U){q===void 0&&(q=!1),U===void 0&&(U=[]);var z=U.slice(),L=fe(function(se){z?z.push(se):I.fire(se)}),T=function(){z&&z.forEach(function(se){return I.fire(se)}),z=null},I=new l({onFirstListenerAdd:function(){L||(L=fe(function(se){return I.fire(se)}))},onFirstListenerDidAdd:function(){z&&(q?setTimeout(T):T())},onLastListenerRemove:function(){L&&L.dispose(),L=null}});return I.event}f.buffer=P;var H=function(){function fe(q){this.event=q}return fe.prototype.map=function(q){return new fe(C(this.event,q))},fe.prototype.forEach=function(q){return new fe(b(this.event,q))},fe.prototype.filter=function(q){return new fe(g(this.event,q))},fe.prototype.reduce=function(q,U){return new fe(N(this.event,q,U))},fe.prototype.latch=function(){return new fe(X(this.event))},fe.prototype.debounce=function(q,U,z,L){return U===void 0&&(U=100),z===void 0&&(z=!1),new fe(w(this.event,q,U,z,L))},fe.prototype.on=function(q,U,z){return this.event(q,U,z)},fe.prototype.once=function(q,U,z){return x(this.event)(q,U,z)},fe}();function G(fe){return new H(fe)}f.chain=G;function $(fe,q,U){U===void 0&&(U=function(se){return se});var z=function(){for(var se=[],me=0;me<arguments.length;me++)se[me]=arguments[me];return I.fire(U.apply(void 0,se))},L=function(){return fe.on(q,z)},T=function(){return fe.removeListener(q,z)},I=new l({onFirstListenerAdd:L,onLastListenerRemove:T});return I.event}f.fromNodeEventEmitter=$;function he(fe,q,U){U===void 0&&(U=function(se){return se});var z=function(){for(var se=[],me=0;me<arguments.length;me++)se[me]=arguments[me];return I.fire(U.apply(void 0,se))},L=function(){return fe.addEventListener(q,z)},T=function(){return fe.removeEventListener(q,z)},I=new l({onFirstListenerAdd:L,onLastListenerRemove:T});return I.event}f.fromDOMEventEmitter=he;function de(fe){var q=new l,U=!1;return fe.then(void 0,function(){return null}).then(function(){U?q.fire(void 0):setTimeout(function(){return q.fire(void 0)},0)}),U=!0,q.event}f.fromPromise=de;function J(fe){return new Promise(function(q){return x(fe)(q)})}f.toPromise=J})(y||(y={}));var v=-1,c=function(){function f(x,C){C===void 0&&(C=Math.random().toString(18).slice(2,5)),this.customThreshold=x,this.name=C,this._warnCountdown=0}return f.prototype.dispose=function(){this._stacks&&this._stacks.clear()},f.prototype.check=function(x){var C=this,b=v;if(typeof this.customThreshold=="number"&&(b=this.customThreshold),b<=0||x<b)return;this._stacks||(this._stacks=new Map);var g=new Error().stack.split(`
|
|
|
`).slice(3).join(`
|
|
|
`),E=this._stacks.get(g)||0;if(this._stacks.set(g,E+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=b*.5;var A,N=0;this._stacks.forEach(function(M,w){(!A||N<M)&&(A=w,N=M)}),console.warn("["+this.name+"] potential listener LEAK detected, having "+x+" listeners already. MOST frequent listener ("+N+"):"),console.warn(A)}return function(){var M=C._stacks.get(g)||0;C._stacks.set(g,M-1)}},f}(),l=function(){function f(x){this._disposed=!1,this._options=x,this._leakageMon=v>0?new c(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(f.prototype,"event",{get:function(){var x=this;return this._event||(this._event=function(C,b,g){x._listeners||(x._listeners=new O.a);var E=x._listeners.isEmpty();E&&x._options&&x._options.onFirstListenerAdd&&x._options.onFirstListenerAdd(x);var A=x._listeners.push(b?[C,b]:C);E&&x._options&&x._options.onFirstListenerDidAdd&&x._options.onFirstListenerDidAdd(x),x._options&&x._options.onListenerDidAdd&&x._options.onListenerDidAdd(x,C,b);var N;x._leakageMon&&(N=x._leakageMon.check(x._listeners.size));var M;return M={dispose:function(){if(N&&N(),M.dispose=f._noop,!x._disposed&&(A(),x._options&&x._options.onLastListenerRemove)){var w=x._listeners&&!x._listeners.isEmpty();w||x._options.onLastListenerRemove(x)}}},g instanceof D.b?g.add(M):Array.isArray(g)&&g.push(M),M}),this._event},enumerable:!0,configurable:!0}),f.prototype.fire=function(x){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new O.a);for(var C=this._listeners.iterator(),b=C.next();!b.done;b=C.next())this._deliveryQueue.push([b.value,x]);for(;this._deliveryQueue.size>0;){var g=this._deliveryQueue.shift(),E=g[0],A=g[1];try{typeof E=="function"?E.call(void 0,A):E[0].call(E[1],A)}catch(N){Object(m.e)(N)}}}},f.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},f._noop=function(){},f}(),s=function(f){_(x,f);function x(C){var b=f.call(this,C)||this;return b._isPaused=0,b._eventQueue=new O.a,b._mergeFn=C&&C.merge,b}return x.prototype.pause=function(){this._isPaused++},x.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var C=this._eventQueue.toArray();this._eventQueue.clear(),f.prototype.fire.call(this,this._mergeFn(C))}else for(;!this._isPaused&&this._eventQueue.size!==0;)f.prototype.fire.call(this,this._eventQueue.shift())},x.prototype.fire=function(C){this._listeners&&(this._isPaused!==0?this._eventQueue.push(C):f.prototype.fire.call(this,C))},x}(l),r=function(){function f(){var x=this;this.hasListeners=!1,this.events=[],this.emitter=new l({onFirstListenerAdd:function(){return x.onFirstListenerAdd()},onLastListenerRemove:function(){return x.onLastListenerRemove()}})}return Object.defineProperty(f.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),f.prototype.add=function(x){var C=this,b={event:x,listener:null};this.events.push(b),this.hasListeners&&this.hook(b);var g=function(){C.hasListeners&&C.unhook(b);var E=C.events.indexOf(b);C.events.splice(E,1)};return Object(D.h)(Object(a.a)(g))},f.prototype.onFirstListenerAdd=function(){var x=this;this.hasListeners=!0,this.events.forEach(function(C){return x.hook(C)})},f.prototype.onLastListenerRemove=function(){var x=this;this.hasListeners=!1,this.events.forEach(function(C){return x.unhook(C)})},f.prototype.hook=function(x){var C=this;x.listener=x.event(function(b){return C.emitter.fire(b)})},f.prototype.unhook=function(x){x.listener&&x.listener.dispose(),x.listener=null},f.prototype.dispose=function(){this.emitter.dispose()},f}(),d=function(){function f(){this.buffers=[]}return f.prototype.wrapEvent=function(x){var C=this;return function(b,g,E){return x(function(A){var N=C.buffers[C.buffers.length-1];N?N.push(function(){return b.call(g,A)}):b.call(g,A)},void 0,E)}},f.prototype.bufferEvents=function(x){var C=[];this.buffers.push(C);var b=x();return this.buffers.pop(),C.forEach(function(g){return g()}),b},f}(),u=function(){function f(){var x=this;this.listening=!1,this.inputEvent=y.None,this.inputEventListener=D.a.None,this.emitter=new l({onFirstListenerDidAdd:function(){x.listening=!0,x.inputEventListener=x.inputEvent(x.emitter.fire,x.emitter)},onLastListenerRemove:function(){x.listening=!1,x.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(f.prototype,"input",{set:function(x){this.inputEvent=x,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=x(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),f.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},f}()},MlIO:function(h,F,o){(function(m,a){h.exports=F=a(o("Ib8C"))})(this,function(m){return function(a){var D=m,O=D.lib,_=O.Base,y=O.WordArray,v=D.x64={},c=v.Word=_.extend({init:function(s,r){this.high=s,this.low=r}}),l=v.WordArray=_.extend({init:function(s,r){s=this.words=s||[],r!=a?this.sigBytes=r:this.sigBytes=s.length*8},toX32:function(){for(var s=this.words,r=s.length,d=[],u=0;u<r;u++){var f=s[u];d.push(f.high),d.push(f.low)}return y.create(d,this.sigBytes)},clone:function(){for(var s=_.clone.call(this),r=s.words=this.words.slice(0),d=r.length,u=0;u<d;u++)r[u]=r[u].clone();return s}})}(),m})},N0LK:function(h,F,o){"use strict";o.d(F,"x",function(){return m}),o.d(F,"F",function(){return a}),o.d(F,"r",function(){return O}),o.d(F,"o",function(){return _}),o.d(F,"p",function(){return y}),o.d(F,"Q",function(){return v}),o.d(F,"K",function(){return l}),o.d(F,"k",function(){return s}),o.d(F,"N",function(){return r}),o.d(F,"m",function(){return d}),o.d(F,"l",function(){return u}),o.d(F,"I",function(){return f}),o.d(F,"H",function(){return x}),o.d(F,"q",function(){return C}),o.d(F,"t",function(){return b}),o.d(F,"D",function(){return g}),o.d(F,"e",function(){return E}),o.d(F,"f",function(){return A}),o.d(F,"B",function(){return N}),o.d(F,"C",function(){return M}),o.d(F,"n",function(){return Y}),o.d(F,"O",function(){return P}),o.d(F,"c",function(){return H}),o.d(F,"d",function(){return G}),o.d(F,"z",function(){return $}),o.d(F,"A",function(){return he}),o.d(F,"u",function(){return de}),o.d(F,"E",function(){return fe}),o.d(F,"G",function(){return q}),o.d(F,"i",function(){return z}),o.d(F,"g",function(){return T}),o.d(F,"v",function(){return se}),o.d(F,"h",function(){return me}),o.d(F,"y",function(){return xe}),o.d(F,"w",function(){return Ee}),o.d(F,"a",function(){return Oe}),o.d(F,"P",function(){return le}),o.d(F,"L",function(){return ge}),o.d(F,"J",function(){return ye}),o.d(F,"j",function(){return ee}),o.d(F,"M",function(){return oe}),o.d(F,"s",function(){return Z}),o.d(F,"b",function(){return ue});function m(ae){return!ae||typeof ae!="string"?!0:ae.trim().length===0}function a(ae,K,j){j===void 0&&(j="0");for(var k=""+ae,W=[k],we=k.length;we<K;we++)W.push(j);return W.reverse().join("")}var D=/{(\d+)}/g;function O(ae){for(var K=[],j=1;j<arguments.length;j++)K[j-1]=arguments[j];return K.length===0?ae:ae.replace(D,function(k,W){var we=parseInt(W,10);return isNaN(we)||we<0||we>=K.length?k:K[we]})}function _(ae){return ae.replace(/[<>&]/g,function(K){switch(K){case"<":return"<";case">":return">";case"&":return"&";default:return K}})}function y(ae){return ae.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function v(ae,K){K===void 0&&(K=" ");var j=c(ae,K);return l(j,K)}function c(ae,K){if(!ae||!K)return ae;var j=K.length;if(j===0||ae.length===0)return ae;for(var k=0;ae.indexOf(K,k)===k;)k=k+j;return ae.substring(k)}function l(ae,K){if(!ae||!K)return ae;var j=K.length,k=ae.length;if(j===0||k===0)return ae;for(var W=k,we=-1;!(we=ae.lastIndexOf(K,W-1),we===-1||we+j!==W);){if(we===0)return"";W=we}return ae.substring(0,W)}function s(ae){return ae.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function r(ae,K){if(ae.length<K.length)return!1;if(ae===K)return!0;for(var j=0;j<K.length;j++)if(ae[j]!==K[j])return!1;return!0}function d(ae,K){var j=ae.length-K.length;return j>0?ae.indexOf(K,j)===j:j===0?ae===K:!1}function u(ae,K,j){if(j===void 0&&(j={}),!ae)throw new Error("Cannot create regex from empty string");K||(ae=y(ae)),j.wholeWord&&(/\B/.test(ae.charAt(0))||(ae="\\b"+ae),/\B/.test(ae.charAt(ae.length-1))||(ae=ae+"\\b"));var k="";return j.global&&(k+="g"),j.matchCase||(k+="i"),j.multiline&&(k+="m"),j.unicode&&(k+="u"),new RegExp(ae,k)}function f(ae){if(ae.source==="^"||ae.source==="^$"||ae.source==="$"||ae.source==="^\\s*$")return!1;var K=ae.exec("");return!!(K&&ae.lastIndex===0)}function x(ae){return(ae.global?"g":"")+(ae.ignoreCase?"i":"")+(ae.multiline?"m":"")+(ae.unicode?"u":"")}function C(ae){for(var K=0,j=ae.length;K<j;K++){var k=ae.charCodeAt(K);if(k!==32&&k!==9)return K}return-1}function b(ae,K,j){K===void 0&&(K=0),j===void 0&&(j=ae.length);for(var k=K;k<j;k++){var W=ae.charCodeAt(k);if(W!==32&&W!==9)return ae.substring(K,k)}return ae.substring(K,j)}function g(ae,K){K===void 0&&(K=ae.length-1);for(var j=K;j>=0;j--){var k=ae.charCodeAt(j);if(k!==32&&k!==9)return j}return-1}function E(ae,K){return ae<K?-1:ae>K?1:0}function A(ae,K){for(var j=Math.min(ae.length,K.length),k=0;k<j;k++){var W=ae.charCodeAt(k),we=K.charCodeAt(k);if(W===we)continue;M(W)&&(W+=32),M(we)&&(we+=32);var be=W-we;if(be===0)continue;return N(W)&&N(we)?be:E(ae.toLowerCase(),K.toLowerCase())}return ae.length<K.length?-1:ae.length>K.length?1:0}function N(ae){return ae>=97&&ae<=122}function M(ae){return ae>=65&&ae<=90}function w(ae){return N(ae)||M(ae)}function Y(ae,K){return ae.length===K.length&&X(ae,K)}function X(ae,K,j){j===void 0&&(j=ae.length);for(var k=0;k<j;k++){var W=ae.charCodeAt(k),we=K.charCodeAt(k);if(W===we)continue;if(w(W)&&w(we)){var be=Math.abs(W-we);if(be!==0&&be!==32)return!1}else if(String.fromCharCode(W).toLowerCase()!==String.fromCharCode(we).toLowerCase())return!1}return!0}function P(ae,K){var j=K.length;return K.length>ae.length?!1:X(ae,K,j)}function H(ae,K){var j,k=Math.min(ae.length,K.length);for(j=0;j<k;j++)if(ae.charCodeAt(j)!==K.charCodeAt(j))return j;return k}function G(ae,K){var j,k=Math.min(ae.length,K.length),W=ae.length-1,we=K.length-1;for(j=0;j<k;j++)if(ae.charCodeAt(W-j)!==K.charCodeAt(we-j))return j;return k}function $(ae){return 55296<=ae&&ae<=56319}function he(ae){return 56320<=ae&&ae<=57343}function de(ae,K,j){var k=ae.charCodeAt(j);if($(k)&&j+1<K){var W=ae.charCodeAt(j+1);if(he(W))return(k-55296<<10)+(W-56320)+65536}return k}function J(ae,K){var j=ae.charCodeAt(K-1);if(he(j)&&K>1){var k=ae.charCodeAt(K-2);if($(k))return(k-55296<<10)+(j-56320)+65536}return j}function fe(ae,K){var j=V.getInstance(),k=K,W=ae.length,we=de(ae,W,K);K+=we>=65536?2:1;for(var be=j.getGraphemeBreakType(we);K<W;){var Te=de(ae,W,K),Be=j.getGraphemeBreakType(Te);if(ue(be,Be))break;K+=Te>=65536?2:1,be=Be}return K-k}function q(ae,K){var j=V.getInstance(),k=K,W=J(ae,K);K-=W>=65536?2:1;for(var we=j.getGraphemeBreakType(W);K>0;){var be=J(ae,K),Te=j.getGraphemeBreakType(be);if(ue(Te,we))break;K-=be>=65536?2:1,we=Te}return k-K}var U=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function z(ae){return U.test(ae)}var L=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function T(ae){return L.test(ae)}var I=/^[\t\n\r\x20-\x7E]*$/;function se(ae){return I.test(ae)}function me(ae){for(var K=0,j=ae.length;K<j;K++)if(xe(ae.charCodeAt(K)))return!0;return!1}function xe(ae){return ae=+ae,ae>=11904&&ae<=55215||ae>=63744&&ae<=64255||ae>=65281&&ae<=65374}function Ee(ae){return ae>=127462&&ae<=127487||ae>=9728&&ae<=10175||ae>=127744&&ae<=128591||ae>=128640&&ae<=128764||ae>=128992&&ae<=129003||ae>=129280&&ae<=129535||ae>=129648&&ae<=129651||ae>=129656&&ae<=129666||ae>=129680&&ae<=129685}var Oe=String.fromCharCode(65279);function le(ae){return!!(ae&&ae.length>0&&ae.charCodeAt(0)===65279)}function ge(ae){return btoa(encodeURIComponent(ae))}function ye(ae,K){for(var j="",k=0;k<K;k++)j+=ae;return j}function ee(ae,K){return K===void 0&&(K=!1),ae?(K&&(ae=ae.replace(/\\./g,"")),ae.toLowerCase()!==ae):!1}function oe(ae){var K=90-65+1;return ae=ae%(2*K),ae<K?String.fromCharCode(97+ae):String.fromCharCode(65+ae-K)}function Z(ae){var K=V.getInstance();return K.getGraphemeBreakType(ae)}function ue(ae,K){return ae===0?K!==5&&K!==7:ae===2&&K===3?!1:ae===4||ae===2||ae===3||(K===4||K===2||K===3)?!0:ae===8&&(K===8||K===9||K===11||K===12)||((ae===11||ae===9)&&(K===9||K===10)||((ae===12||ae===10)&&K===10||(K===5||K===13||(K===7||(ae===1||ae===13&&K===14)))))?!1:!(ae===6&&K===6)}var V=function(){function ae(){this._data=Q()}return ae.getInstance=function(){return ae._INSTANCE||(ae._INSTANCE=new ae),ae._INSTANCE},ae.prototype.getGraphemeBreakType=function(K){if(K<32)return K===10?3:K===13?2:4;if(K<127)return 0;for(var j=this._data,k=j.length/3,W=1;W<=k;)if(K<j[3*W])W=2*W;else if(K>j[3*W+1])W=2*W+1;else return j[3*W+2];return 0},ae._INSTANCE=null,ae}();function Q(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},NFKh:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("MlIO"),o("F+F2"),o("qM6L"),o("ETIr"),o("wbyO"),o("cv67"),o("3y9D"),o("lPiR"),o("GRuw"),o("1uat"),o("uGsb"),o("5hvy"),o("ELcG"),o("WYAk"),o("e7zE"),o("K3mO"),o("OLod"),o("ALsQ"),o("9OqN"),o("qu8F"),o("S6kV"),o("gb/T"),o("qBft"),o("oRuE"),o("jO9C"),o("KmYQ"),o("uGxW"),o("bQjk"),o("wZgz"),o("pA7S"),o("w7YG"),o("E4JC"),o("PVpz"))})(this,function(m){return m})},NvD2:function(h,F,o){"use strict";o.d(F,"a",function(){return y});var m=o("Kwbf");function a(v,c){var l=new Set;return v.forEach(function(s){c.has(s)||l.add(s)}),l}function D(v){var c=v||{},l=c.disabled,s=c.disableCheckbox,r=c.checkable;return!!(l||s)||r===!1}function O(v,c,l,s){for(var r=new Set(v),d=new Set,u=0;u<=l;u+=1){var f=c.get(u)||new Set;f.forEach(function(g){var E=g.key,A=g.node,N=g.children,M=N===void 0?[]:N;r.has(E)&&!s(A)&&M.filter(function(w){return!s(w.node)}).forEach(function(w){r.add(w.key)})})}for(var x=new Set,C=l;C>=0;C-=1){var b=c.get(C)||new Set;b.forEach(function(g){var E=g.parent,A=g.node;if(s(A)||!g.parent||x.has(g.parent.key))return;if(s(g.parent.node)){x.add(E.key);return}var N=!0,M=!1;(E.children||[]).filter(function(w){return!s(w.node)}).forEach(function(w){var Y=w.key,X=r.has(Y);N&&!X&&(N=!1),!M&&(X||d.has(Y))&&(M=!0)}),N&&r.add(E.key),M&&d.add(E.key),x.add(E.key)})}return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(a(d,r))}}function _(v,c,l,s,r){for(var d=new Set(v),u=new Set(c),f=0;f<=s;f+=1){var x=l.get(f)||new Set;x.forEach(function(E){var A=E.key,N=E.node,M=E.children,w=M===void 0?[]:M;!d.has(A)&&!u.has(A)&&!r(N)&&w.filter(function(Y){return!r(Y.node)}).forEach(function(Y){d.delete(Y.key)})})}u=new Set;for(var C=new Set,b=s;b>=0;b-=1){var g=l.get(b)||new Set;g.forEach(function(E){var A=E.parent,N=E.node;if(r(N)||!E.parent||C.has(E.parent.key))return;if(r(E.parent.node)){C.add(A.key);return}var M=!0,w=!1;(A.children||[]).filter(function(Y){return!r(Y.node)}).forEach(function(Y){var X=Y.key,P=d.has(X);M&&!P&&(M=!1),!w&&(P||u.has(X))&&(w=!0)}),M||d.delete(A.key),w&&u.add(A.key),C.add(A.key)})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(a(u,d))}}function y(v,c,l,s){var r=[],d;s?d=s:d=D;var u=new Set(v.filter(function(b){var g=!!l[b];return g||r.push(b),g})),f=new Map,x=0;Object.keys(l).forEach(function(b){var g=l[b],E=g.level,A=f.get(E);A||(A=new Set,f.set(E,A)),A.add(g),x=Math.max(x,E)}),Object(m.a)(!r.length,"Tree missing follow keys: ".concat(r.slice(0,100).map(function(b){return"'".concat(b,"'")}).join(", ")));var C;return c===!0?C=O(u,f,x,d):C=_(u,c.halfCheckedKeys,f,x,d),C}},OLES:function(h,F,o){"use strict";var m=o("U8pU"),a=o("VTBJ"),D=o("Ff2n"),O=o("q1tI"),_=o("uciX"),y=o("7ixt"),v=function(u){var f=u.overlay,x=u.prefixCls,C=u.id,b=u.overlayInnerStyle;return O.createElement("div",{className:"".concat(x,"-inner"),id:C,role:"tooltip",style:b},typeof f=="function"?f():f)},c=v,l=function(u,f){var x=u.overlayClassName,C=u.trigger,b=C===void 0?["hover"]:C,g=u.mouseEnterDelay,E=g===void 0?0:g,A=u.mouseLeaveDelay,N=A===void 0?.1:A,M=u.overlayStyle,w=u.prefixCls,Y=w===void 0?"rc-tooltip":w,X=u.children,P=u.onVisibleChange,H=u.afterVisibleChange,G=u.transitionName,$=u.animation,he=u.placement,de=he===void 0?"right":he,J=u.align,fe=J===void 0?{}:J,q=u.destroyTooltipOnHide,U=q===void 0?!1:q,z=u.defaultVisible,L=u.getTooltipContainer,T=u.overlayInnerStyle,I=Object(D.a)(u,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),se=Object(O.useRef)(null);Object(O.useImperativeHandle)(f,function(){return se.current});var me=Object(a.a)({},I);"visible"in u&&(me.popupVisible=u.visible);var xe=function(){var ye=u.arrowContent,ee=ye===void 0?null:ye,oe=u.overlay,Z=u.id;return[O.createElement("div",{className:"".concat(Y,"-arrow"),key:"arrow"},ee),O.createElement(c,{key:"content",prefixCls:Y,id:Z,overlay:oe,overlayInnerStyle:T})]},Ee=!1,Oe=!1;if(typeof U=="boolean")Ee=U;else if(U&&Object(m.a)(U)==="object"){var le=U.keepParent;Ee=le===!0,Oe=le===!1}return O.createElement(_.a,Object.assign({popupClassName:x,prefixCls:Y,popup:xe,action:b,builtinPlacements:y.a,popupPlacement:de,ref:se,popupAlign:fe,getPopupContainer:L,onPopupVisibleChange:P,afterPopupVisibleChange:H,popupTransitionName:G,popupAnimation:$,defaultPopupVisible:z,destroyPopupOnHide:Ee,autoDestroy:Oe,mouseLeaveDelay:N,popupStyle:M,mouseEnterDelay:E},me),X)},s=Object(O.forwardRef)(l),r=F.a=s},OLod:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("K3mO"))})(this,function(m){m.lib.Cipher||function(a){var D=m,O=D.lib,_=O.Base,y=O.WordArray,v=O.BufferedBlockAlgorithm,c=D.enc,l=c.Utf8,s=c.Base64,r=D.algo,d=r.EvpKDF,u=O.Cipher=v.extend({cfg:_.extend(),createEncryptor:function(G,$){return this.create(this._ENC_XFORM_MODE,G,$)},createDecryptor:function(G,$){return this.create(this._DEC_XFORM_MODE,G,$)},init:function(G,$,he){this.cfg=this.cfg.extend(he),this._xformMode=G,this._key=$,this.reset()},reset:function(){v.reset.call(this),this._doReset()},process:function(G){return this._append(G),this._process()},finalize:function(G){G&&this._append(G);var $=this._doFinalize();return $},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function G($){return typeof $=="string"?H:Y}return function($){return{encrypt:function(he,de,J){return G(de).encrypt($,he,de,J)},decrypt:function(he,de,J){return G(de).decrypt($,he,de,J)}}}}()}),f=O.StreamCipher=u.extend({_doFinalize:function(){var G=this._process(!0);return G},blockSize:1}),x=D.mode={},C=O.BlockCipherMode=_.extend({createEncryptor:function(G,$){return this.Encryptor.create(G,$)},createDecryptor:function(G,$){return this.Decryptor.create(G,$)},init:function(G,$){this._cipher=G,this._iv=$}}),b=x.CBC=function(){var G=C.extend();G.Encryptor=G.extend({processBlock:function(he,de){var J=this._cipher,fe=J.blockSize;$.call(this,he,de,fe),J.encryptBlock(he,de),this._prevBlock=he.slice(de,de+fe)}}),G.Decryptor=G.extend({processBlock:function(he,de){var J=this._cipher,fe=J.blockSize,q=he.slice(de,de+fe);J.decryptBlock(he,de),$.call(this,he,de,fe),this._prevBlock=q}});function $(he,de,J){var fe,q=this._iv;q?(fe=q,this._iv=a):fe=this._prevBlock;for(var U=0;U<J;U++)he[de+U]^=fe[U]}return G}(),g=D.pad={},E=g.Pkcs7={pad:function(G,$){for(var he=$*4,de=he-G.sigBytes%he,J=de<<24|de<<16|de<<8|de,fe=[],q=0;q<de;q+=4)fe.push(J);var U=y.create(fe,de);G.concat(U)},unpad:function(G){var $=G.words[G.sigBytes-1>>>2]&255;G.sigBytes-=$}},A=O.BlockCipher=u.extend({cfg:u.cfg.extend({mode:b,padding:E}),reset:function(){var G;u.reset.call(this);var $=this.cfg,he=$.iv,de=$.mode;this._xformMode==this._ENC_XFORM_MODE?G=de.createEncryptor:(G=de.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==G?this._mode.init(this,he&&he.words):(this._mode=G.call(de,this,he&&he.words),this._mode.__creator=G)},_doProcessBlock:function(G,$){this._mode.processBlock(G,$)},_doFinalize:function(){var G,$=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?($.pad(this._data,this.blockSize),G=this._process(!0)):(G=this._process(!0),$.unpad(G)),G},blockSize:128/32}),N=O.CipherParams=_.extend({init:function(G){this.mixIn(G)},toString:function(G){return(G||this.formatter).stringify(this)}}),M=D.format={},w=M.OpenSSL={stringify:function(G){var $,he=G.ciphertext,de=G.salt;return de?$=y.create([1398893684,1701076831]).concat(de).concat(he):$=he,$.toString(s)},parse:function(G){var $,he=s.parse(G),de=he.words;return de[0]==1398893684&&de[1]==1701076831&&($=y.create(de.slice(2,4)),de.splice(0,4),he.sigBytes-=16),N.create({ciphertext:he,salt:$})}},Y=O.SerializableCipher=_.extend({cfg:_.extend({format:w}),encrypt:function(G,$,he,de){de=this.cfg.extend(de);var J=G.createEncryptor(he,de),fe=J.finalize($),q=J.cfg;return N.create({ciphertext:fe,key:he,iv:q.iv,algorithm:G,mode:q.mode,padding:q.padding,blockSize:G.blockSize,formatter:de.format})},decrypt:function(G,$,he,de){de=this.cfg.extend(de),$=this._parse($,de.format);var J=G.createDecryptor(he,de).finalize($.ciphertext);return J},_parse:function(G,$){return typeof G=="string"?$.parse(G,this):G}}),X=D.kdf={},P=X.OpenSSL={execute:function(G,$,he,de){de||(de=y.random(64/8));var J=d.create({keySize:$+he}).compute(G,de),fe=y.create(J.words.slice($),he*4);return J.sigBytes=$*4,N.create({key:J,iv:fe,salt:de})}},H=O.PasswordBasedCipher=Y.extend({cfg:Y.cfg.extend({kdf:P}),encrypt:function(G,$,he,de){de=this.cfg.extend(de);var J=de.kdf.execute(he,G.keySize,G.ivSize);de.iv=J.iv;var fe=Y.encrypt.call(this,G,$,J.key,de);return fe.mixIn(J),fe},decrypt:function(G,$,he,de){de=this.cfg.extend(de),$=this._parse($,de.format);var J=de.kdf.execute(he,G.keySize,G.ivSize,$.salt);de.iv=J.iv;var fe=Y.decrypt.call(this,G,$,J.key,de);return fe}})}()})},OZM5:function(h,F,o){"use strict";o.d(F,"b",function(){return s}),o.d(F,"a",function(){return r}),o.d(F,"k",function(){return d}),o.d(F,"h",function(){return u}),o.d(F,"i",function(){return f}),o.d(F,"g",function(){return x}),o.d(F,"c",function(){return C}),o.d(F,"d",function(){return b}),o.d(F,"j",function(){return A}),o.d(F,"e",function(){return N}),o.d(F,"f",function(){return M});var m=o("KQm4"),a=o("U8pU"),D=o("Ff2n"),O=o("q1tI"),_=o.n(O),y=o("Kwbf"),v=o("WaYH"),c=.25,l=2;function s(w,Y){var X=w.slice(),P=X.indexOf(Y);return P>=0&&X.splice(P,1),X}function r(w,Y){var X=w.slice();return X.indexOf(Y)===-1&&X.push(Y),X}function d(w){return w.split("-")}function u(w,Y){return"".concat(w,"-").concat(Y)}function f(w){return w&&w.type&&w.type.isTreeNode}function x(w,Y){var X=[w],P=Y[w];function H(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];G.forEach(function($){var he=$.key,de=$.children;X.push(he),H(de)})}return H(P.children),X}function C(w,Y){var X=w.clientY,P=Y.selectHandle.getBoundingClientRect(),H=P.top,G=P.bottom,$=P.height,he=Math.max($*c,l);return X<=H+he?-1:X>=G-he?1:0}function b(w,Y){if(!w)return;var X=Y.multiple;return X?w.slice():w.length?[w[0]]:w}var g=function(Y){return Y};function E(w,Y){if(!w)return[];var X=Y||{},P=X.processProps,H=P===void 0?g:P,G=Array.isArray(w)?w:[w];return G.map(function($){var he=$.children,de=Object(D.a)($,["children"]),J=E(he,Y);return _.a.createElement(v.a,Object.assign({},H(de)),J)})}function A(w){if(!w)return null;var Y;if(Array.isArray(w))Y={checkedKeys:w,halfCheckedKeys:void 0};else if(Object(a.a)(w)==="object")Y={checkedKeys:w.checked||void 0,halfCheckedKeys:w.halfChecked||void 0};else return Object(y.a)(!1,"`checkedKeys` is not an array or an object"),null;return Y}function N(w,Y){var X=new Set;function P(H){if(X.has(H))return;var G=Y[H];if(!G)return;X.add(H);var $=G.parent,he=G.node;if(he.disabled)return;$&&P($.key)}return(w||[]).forEach(function(H){P(H)}),Object(m.a)(X)}function M(w){var Y={};return Object.keys(w).forEach(function(X){(X.startsWith("data-")||X.startsWith("aria-"))&&(Y[X]=w[X])}),Y}},Ot1p:function(h,F,o){"use strict";var m=o("2qtc"),a=o("kLXV"),D=o("rAM+"),O=o("miYZ"),_=o("tsqr"),y=o("9og8"),v=o("tJVT"),c=o("jrin"),l=o("WmNS"),s=o.n(l),r=o("q1tI"),d=o.n(r),u=o("VrN/"),f=o.n(u),x=o("bdgK"),C=o("p77/"),b=o("Bd2K"),g=o("ELLl"),E=o("19Vz"),A=o("lZu9"),N=o("+NIl"),M=o("kSUc"),w=o("9Bee"),Y=function(Ae){var Ye=Ae.value,it=Ye===void 0?"":Ye,lt=Ae.className,dt=Ae.showTextOnly,ut=Ae.showLines,xt=Ae.style,ht=xt===void 0?{}:xt,Rt=Object(r.useMemo)(function(){return""},[it]);return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{dangerouslySetInnerHTML:{__html:Rt}}))},X=o("0Owb"),P=o("dejd"),H=o("C+DQ"),G=o("1vsH"),$=o("m3rI"),he=[{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 de(Ae){var Ye=Ae.onActionCallback,it=Ae.title,lt=Ae.icon,dt=Ae.actionName,ut=Ae.className,xt=ut===void 0?"":ut,ht=Ae.children;function Rt(){Ye(dt)}return d.a.createElement("a",{title:it,className:xt,onClick:Rt},d.a.createElement("i",{className:"md-iconfont ".concat(lt)}),ht)}var J=function(Ae){var Ye=Ae.watch,it=Ae.showNullButton,lt=Ae.onActionCallback,dt=Ae.fullScreen,ut=Ae.insertTemp,xt=Ae.hidetoolBar,ht=Ae.uuid,Rt=Ae.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(G.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(G.D)("_educoder_session"),"&key=").concat(ht,"&api=").concat(encodeURIComponent($.a.PROXY_SERVER)));var Xt=[].concat(he,[{title:"".concat(Ye?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Ye?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return d.a.createElement("ul",{className:"markdown-toolbar-container"},!xt&&Xt.map(function(er,Qt){return d.a.createElement("li",{key:Qt},er.actionName?d.a.createElement(de,Object(X.a)({},er,{onActionCallback:lt})):d.a.createElement("span",{className:"v-line"}))}),it?d.a.createElement("li",null,d.a.createElement(de,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:lt},d.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ut&&d.a.createElement("li",null,d.a.createElement(de,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(ut),onActionCallback:lt},d.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),d.a.createElement("li",{className:"btn-full-screen"},d.a.createElement(de,{icon:"".concat(dt?"icon-shrink":"icon-enlarge"),title:dt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:lt})))},fe=o("M8RZ"),q=o("+L6B"),U=o("2/Rp"),z=o("y8nQ"),L=o("Vl3Y"),T=o("5NDa"),I=o("5rEg"),se={labelCol:{span:4},wrapperCol:{span:20}},me=function(Ae){var Ye=Ae.callback,it=Ae.onCancel;function lt(dt){Ye(dt)}return d.a.createElement(L.a,Object(X.a)({},se,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:lt}),d.a.createElement(L.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},d.a.createElement(I.a,null)),d.a.createElement(L.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},d.a.createElement(I.a,null)),d.a.createElement("div",{className:"flex-container flex-end"},d.a.createElement(U.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),d.a.createElement(U.a,{type:"ghost",onClick:it},"\u53D6\u6D88")))},xe=o("7ahc"),Ee=o("k1fw"),Oe=o("HmJG"),le=o("BjJ7"),ge=L.a.useForm,ye={width:280,marginRight:10},ee={labelCol:{span:5},wrapperCol:{span:19}},oe=function(Ae){var Ye=Ae.callback,it=Ae.onCancel,lt=ge(),dt=Object(v.a)(lt,1),ut=dt[0],xt=Object(r.useRef)();function ht(er){Ye(Object(Ee.a)(Object(Ee.a)({},er),{},{name:xt.current}))}function Rt(er,Qt){ut.setFieldsValue({src:"/api/attachments/".concat(er.id,"?type=").concat(er.content_type),type:Qt.type})}function Xt(er){var Qt=er.target.files[0];xt.current=Qt.name,ue(Qt,Rt)}return d.a.createElement(L.a,Object(X.a)({form:ut},ee,{className:"upload-image-panel",onFinish:ht}),d.a.createElement(L.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},d.a.createElement("div",{className:"flex-container"},d.a.createElement(L.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},d.a.createElement(I.a,{style:ye})),d.a.createElement(Z,{onFileChange:Xt}))),d.a.createElement(L.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},d.a.createElement(I.a,{style:{width:264}})),d.a.createElement(L.a.Item,{style:{textAlign:"right"}},d.a.createElement(U.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),d.a.createElement(U.a,{type:"ghost",onClick:it},"\u53D6\u6D88")))};function Z(Ae){var Ye=Ae.onFileChange;return d.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",d.a.createElement("input",{type:"file",onChange:Ye}))}function ue(Ae,Ye){if(!Ae)throw new String("\u6CA1\u6709\u6587\u4EF6");var it=new FormData;it.append("editormd-image-file",Ae),it.append("file_param_name","editormd-image-file"),it.append("byxhr","true");var lt=new window.XMLHttpRequest;lt.withCredentials=!0,lt.addEventListener("load",function(dt){Ye(JSON.parse(dt.target.responseText),Ae)},!1),lt.addEventListener("error",function(dt){console.error(dt)},!1),lt.open("POST","".concat(le.a,"/api/attachments.json")),lt.send(it)}var V=o("giR+"),Q=o("fyUT"),ae=o("7Kak"),K=o("9yH6"),j=K.a.Group,k={margin:"0 8px"},W=function(Ae){var Ye=Ae.callback,it=Ae.onCancel;function lt(dt){Ye(dt)}return d.a.createElement(L.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:lt},d.a.createElement("div",{className:"flex-container"},d.a.createElement("span",{style:k},"\u5355\u5143\u683C\u6570\uFF1A"),d.a.createElement("span",{style:k},"\u884C\u6570"),d.a.createElement(L.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},d.a.createElement(Q.a,null)),d.a.createElement("span",{style:k},"\u5217\u6570"),d.a.createElement(L.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},d.a.createElement(Q.a,null))),d.a.createElement("div",{className:"flex-container",style:{marginTop:12}},d.a.createElement("span",{style:k},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),d.a.createElement(L.a.Item,{name:"align"},d.a.createElement(j,null,d.a.createElement(K.a,{value:"default"},d.a.createElement("i",{className:"fa fa-align-justify"})),d.a.createElement(K.a,{value:"left"},d.a.createElement("i",{className:"fa fa-align-left"})),d.a.createElement(K.a,{value:"center"},d.a.createElement("i",{className:"fa fa-align-center"})),d.a.createElement(K.a,{value:"right"},d.a.createElement("i",{className:"fa fa-align-right"}))))),d.a.createElement("div",{className:"flex-container flex-end"},d.a.createElement(U.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),d.a.createElement(U.a,{type:"ghost",onClick:it},"\u53D6\u6D88")))},we=o("ErOA"),be=o("7Cbv"),Te="link",Be="upload-image",Fe="code-block",Ue="add-table",We="------------",Ve={default:We,left:":".concat(We),center:":".concat(We,":"),right:"".concat(We,":")},Ge=o("9VGf"),Je,Re;function Ze(){}var nt=0,Ke=1e4,$e="\u2581",je=`
|
|
|
**\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 Me(Ae){return/^\d+$/.test(Ae)?"".concat(Ae,"px"):Ae}var Pe=navigator.platform.toUpperCase().indexOf("MAC")>=0,Se=Pe?"Cmd":"Ctrl",_e=["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"],ke=(Je={},Object(c.a)(Je,Se+"-B","bold"),Object(c.a)(Je,Se+"-I","italic"),Je),Le=(Re={},Object(c.a)(Re,Te,"\u6DFB\u52A0\u94FE\u63A5"),Object(c.a)(Re,Fe,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(c.a)(Re,Be,"\u6DFB\u52A0\u6587\u4EF6"),Object(c.a)(Re,Ue,"\u6DFB\u52A0\u8868\u683C"),Re),Xe=F.a=function(Ae){var Ye=Ae.defaultValue,it=Ye===void 0?"":Ye,lt=Ae.onChange,dt=Ae.width,ut=dt===void 0?"100%":dt,xt=Ae.height,ht=xt===void 0?400:xt,Rt=Ae.miniToolbar,Xt=Rt===void 0?!1:Rt,er=Ae.isFocus,Qt=er===void 0?!1:er,Ut=Ae.watch,Gt=Ae.insertTemp,Nr=Ae.mode,At=Nr===void 0?"markdown":Nr,Dt=Ae.id,st=Dt===void 0?"markdown-editor-id":Dt,_t=Ae.showResizeBar,Vt=_t===void 0?!1:_t,tr=Ae.noStorage,sr=tr===void 0?!1:tr,Bt=Ae.showNullButton,ft=Bt===void 0?!1:Bt,Yt=Ae.hidetoolBar,gr=Yt===void 0?!1:Yt,Nt=Ae.fullScreen,Pt=Nt===void 0?!1:Nt,fr=Ae.onBlur,Wr=Ae.onCMBeforeChange,Pr=Ae.onFullScreen,qe=Ae.className,pt=qe===void 0?"":qe,Wt=Ae.disablePaste,zt=Wt===void 0?!1:Wt,ir=Ae.placeholder,lr=ir===void 0?"":ir,ie=Ae.values,S=ie===void 0?"":ie,R=Object(r.useState)(null),re=Object(v.a)(R,2),ce=re[0],ne=re[1],Ne=Object(r.useState)(it),Qe=Object(v.a)(Ne,2),ot=Qe[0],Ct=Qe[1],tt=Object(r.useState)(Ut),jt=Object(v.a)(tt,2),Zt=jt[0],dr=jt[1],tn=Object(r.useState)(Pt),Jr=Object(v.a)(tn,2),xr=Jr[0],$r=Jr[1],Bn=Object(r.useState)(""),zr=Object(v.a)(Bn,2),Gr=zr[0],Zr=zr[1],On=Object(r.useState)(0),rn=Object(v.a)(On,2),xn=rn[0],fn=rn[1],qn=Object(r.useState)(ht),Un=Object(v.a)(qn,2),gn=Un[0],nn=Un[1],Rn=Object(r.useState)(!1),Mn=Object(v.a)(Rn,2),ei=Mn[0],vr=Mn[1],or=Object(r.useRef)(Object(be.a)()),Lr=Object(r.useRef)(!1),rr=Object(r.useRef)(),Cr=Object(r.useRef)(),ct=Object(r.useRef)(),vt=Object(r.useRef)(),yt=Object(r.useRef)(),Et=function(){var Ot=Object(y.a)(s.a.mark(function Lt(){var kt,Ht;return s.a.wrap(function(nr){for(;;)switch(nr.prev=nr.next){case 0:return nr.next=2,Object(we.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:or.current}});case 2:Ht=nr.sent,Ht!=null&&(kt=Ht.attachments)!==null&&kt!==void 0&&kt.length&&(console.log("cm:",ce,Cr),Ht.attachments.map(function(bt){bt.content_type.indexOf("image")>-1?ce.replaceSelection(".concat(bt.content_type,")")):bt.content_type.indexOf("video")>-1?ce.replaceSelection('<video width="100%" controls src="'.concat($.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):bt.content_type.indexOf("pdf")>-1?ce.replaceSelection('<a href="'.concat($.a.API_SERVER,"/api/attachments/").concat(bt.id,"?type=").concat(bt.content_type,'&disposition=inline" target="_blank">').concat(bt.name,"</a>")):ce.replaceSelection("[".concat(bt.name,"](").concat($.a.API_SERVER,"/api/attachments/").concat(bt.id,"?type=").concat(bt.content_type,")"))}));case 4:case"end":return nr.stop()}},Lt)}));return function(){return Ot.apply(this,arguments)}}();Object(r.useEffect)(function(){Ct(S),ce==null||ce.setValue(S)},[S]),Object(r.useEffect)(function(){Pr==null||Pr(xr)},[xr]),Object(r.useEffect)(function(){if(Cr.current){var Ot=f.a.fromTextArea(Cr.current,{mode:At,lineNumbers:!Xt,lineWrapping:!0,value:it,autoCloseTags:!0,autoCloseBrackets:!0});Qt&&Ot.focus();function Lt(kt,Ht){if(zt){Ht.preventDefault();return}var qt=Ht.clipboardData;if(qt){var nr=qt.types.toString(),bt=qt.items;if(nr==="Files"||qt.types.indexOf("Files")>-1){if(Ht.preventDefault(),At=="stex")return;try{var ur,Er=bt[1];((ur=bt[0])===null||ur===void 0?void 0:ur.kind)==="file"&&(Er=bt[0]);var Jt=Er.getAsFile(),wn=Jt.name.split(".").pop();ue(Jt,function(ar){if(ar.id){var Sr,kr,sn;(Jt==null||((Sr=Jt.type)===null||Sr===void 0)?void 0:Sr.indexOf("image"))>-1?Ot.replaceSelection(".concat(ar.content_type,")")):(Jt==null||((kr=Jt.type)===null||kr===void 0)?void 0:kr.indexOf("video"))>-1?Ot.replaceSelection('<video width="100%" controls src="'.concat($.a.API_SERVER,"/api/attachments/").concat(ar.id,'"></video>')):(Jt==null||((sn=Jt.type)===null||sn===void 0)?void 0:sn.indexOf("pdf"))>-1?Ot.replaceSelection('<a href="'.concat($.a.API_SERVER,"/api/attachments/").concat(ar.id,"?type=").concat(Jt.type,'&disposition=inline" target="_blank">').concat(Jt.name,"</a>")):_e.includes(wn)?Ot.replaceSelection('<a href="'.concat($.a.API_SERVER,"/api/attachments/").concat(ar.id,'?type=office&disposition=inline" target="_blank">').concat(Jt.name,"</a>")):Ot.replaceSelection("[".concat(Jt.name,"](").concat($.a.API_SERVER,"/api/attachments/").concat(ar.id,"?type=").concat(ar.content_type,")"))}else(ar==null?void 0:ar.status)===401&&(document.location.href="/user/login")})}catch(ar){_.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Ot.on("paste",Lt),Ot.on("dragleave",function(kt,Ht){ct.current.classList.remove("mouse-hover-md")}),Ot.on("dragover",function(kt,Ht){ct.current.classList.add("mouse-hover-md")}),Ot.on("drop",function(kt,Ht){ct.current.classList.add("mouse-hover-md");var qt;if(qt=Ht.dataTransfer.files,qt.length>0){Ht.preventDefault(),Ht.stopPropagation();for(var nr=function(Er){var Jt=qt[Er],wn=Jt.name.split(".").pop();ue(Jt,function(ar){if(ar.id){var Sr,kr,sn;(Jt==null||((Sr=Jt.type)===null||Sr===void 0)?void 0:Sr.indexOf("image"))>-1?Ot.replaceSelection(".concat(ar.content_type,")")):(Jt==null||((kr=Jt.type)===null||kr===void 0)?void 0:kr.indexOf("video"))>-1?Ot.replaceSelection('<video width="100%" controls src="'.concat($.a.API_SERVER,"/api/attachments/").concat(ar.id,'"></video>')):(Jt==null||((sn=Jt.type)===null||sn===void 0)?void 0:sn.indexOf("pdf"))>-1?Ot.replaceSelection('<a href="'.concat($.a.API_SERVER,"/api/attachments/").concat(ar.id,"?type=").concat(Jt.type,'&disposition=inline" target="_blank">').concat(Jt.name,"</a>")):_e.includes(wn)?Ot.replaceSelection('<a href="'.concat($.a.API_SERVER,"/api/attachments/").concat(ar.id,'?type=office&disposition=inline" target="_blank">').concat(Jt.name,"</a>")):Ot.replaceSelection("[".concat(Jt.name,"](").concat($.a.API_SERVER,"/api/attachments/").concat(ar.id,"?type=").concat(ar.content_type,")"))}else(ar==null?void 0:ar.status)===401&&(document.location.href="/user/login")})},bt=0;bt<qt.length;bt++)nr(bt)}}),ne(Ot),function(){Ot.off("paste",Lt)}}},[]);var Kt=Object(r.useCallback)(function(){if(ct.current)try{}catch(Ot){console.log(Ot,"---- to set md editor body height")}},[gn,ct,xr]);Object(r.useEffect)(function(){function Ot(){var kt=new x.default(function(Ht){var qt=Object(D.a)(Ht),nr;try{for(qt.s();!(nr=qt.n()).done;){var bt=nr.value;(bt.target.offsetHeight>0||bt.target.offsetWidth>0)&&(Kt(),ce.setSize("100%","100%"),ce.refresh())}}catch(ur){qt.e(ur)}finally{qt.f()}});return kt.observe(Cr.current.parentElement),kt}if(ce){var Lt=Ot();return function(){Lt.unobserve(Cr.current.parentElement)}}},[ce,Kt]),Object(r.useEffect)(function(){if(ce){for(var Ot=[],Lt=function(){var bt=Ht[kt];qt=Object(v.a)(bt,2);var ur=qt[0],Er=qt[1],Jt=Object(c.a)({},ur,function(){wt(Er)});Ot.push(Jt),ce.addKeyMap(Jt)},kt=0,Ht=Object.entries(ke);kt<Ht.length;kt++){var qt;Lt()}return rr.current=setInterval(function(){Lr.current&&Et()},4e3),function(){clearInterval(rr.current);var nr=Object(D.a)(Ot),bt;try{for(nr.s();!(bt=nr.n()).done;){var ur=bt.value;ce.removeKeyMap(ur)}}catch(Er){nr.e(Er)}finally{nr.f()}}}},[ce]),Object(r.useEffect)(function(){Pt!==xr&&$r(Pt)},[Pt]),Object(Ge.a)(function(){if(!sr&&xn>0){var Ot=new Date().getTime(),Lt=window.sessionStorage.getItem(st);Ot>=xn+Ke&&(!Lt||Lt!==ot)&&(window.sessionStorage.setItem(st,ot),vr(!0))}},Ke),Object(r.useEffect)(function(){dr(Ut)},[ce,Ut]),Object(r.useEffect)(function(){ce&&(Qt&&ce.focus())},[ce,Qt]),Object(r.useEffect)(function(){if(Zt&&ce){var Ot=ce.getScrollerElement();function Lt(kt){var Ht=kt.target;if(yt.current){var qt=Ht.scrollTop/Ht.scrollHeight;yt.current.scrollTop=yt.current.scrollHeight*qt}}return Ot.addEventListener("scroll",Lt),function(){Ot.removeEventListener("scroll",Lt)}}},[ce,Zt]),Object(r.useEffect)(function(){if(ce&&Wr){function Ot(Lt,kt){Wr(Lt,kt)}return ce.on("beforeChange",Ot),function(){ce.off("beforeChange",Ot)}}},[ce,Wr]),Object(r.useEffect)(function(){if(ce&&fr){function Ot(){fr(ce.getValue())}return ce.on("blur",Ot),function(){ce.off("blur",Ot)}}},[ce,fr]),Object(r.useEffect)(function(){if(ce){function Ot(Lt){var kt=Lt.getValue();Ct(kt),fn(new Date().getTime()),Lt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),lt&<(kt)}return ce.on("change",Ot),function(){ce.off("change",Ot)}}},[ce,lt]),Object(r.useEffect)(function(){ce&&(it==null?(ce.setValue(""),Ct("")):it!==ce.getValue()&&(ce.setValue(it),Ct(it),ce.setCursor(ce.lineCount(),0)))},[ce,it]);var wt=Object(r.useCallback)(function(Ot){var Lt=ce.getCursor(),kt=ce.getSelection(),Ht=kt.split(`
|
|
|
`);switch(Ot){case"bold":return ce.replaceSelection("**"+kt+"**"),kt===""&&ce.setCursor(Lt.line,Lt.ch+2),ce.focus();case"italic":return ce.replaceSelection("*"+kt+"*"),kt===""&&ce.setCursor(Lt.line,Lt.ch+1),ce.focus();case"code":return ce.replaceSelection("`"+kt+"`"),kt===""&&ce.setCursor(Lt.line,Lt.ch+1),ce.focus();case"inline-latex":return ce.replaceSelection("`$$"+kt+"$$`"),kt===""&&ce.setCursor(Lt.line,Lt.ch+3),ce.focus();case"latex":return ce.replaceSelection("```latex\n"+kt+"\n```"),ce.setCursor(Lt.line+1,kt.length+1),ce.focus();case"line-break":return ce.replaceSelection(`<br/>
|
|
|
`),ce.focus();case"list-ul":return kt===""?ce.replaceSelection("- "+kt):ce.replaceSelection(Ht.map(function(qt){return qt===""?"":"- ".concat(qt)}).join(`
|
|
|
`)),ce.focus();case"list-ol":return kt===""?ce.replaceSelection("1. "+kt):ce.replaceSelection(Ht.map(function(qt,nr){return qt===""?"":"".concat(nr+1,". ").concat(qt)}).join(`
|
|
|
`)),ce.focus();case"add-null-ch":return kt===""&&ce.setCursor(Lt.line,Lt.ch+1),ce.replaceSelection($e),ce.focus();case"inster-template-1":return kt===""&&ce.setCursor(Lt.line,Lt.ch),ce.replaceSelection(je),ce.focus();case"eraser":return ce.setValue(""),ce.focus();case"trigger-watch":return dr(!Zt),ce.focus();case"trigger-full-screen":return $r(!xr),ce.focus();case Te:Zr(Te);return;case Fe:Zr(Fe);return;case Be:Zr(Be);return;case Ue:Zr(Ue);return;default:throw new Error}},[ce,Zt,xr]),It=Object(r.useCallback)(function(Ot){Zr("");switch(Gr){case Te:var Lt=Ot.title,kt=Ot.link;return ce.replaceSelection("[".concat(Lt,"](").concat(kt,")")),ce.focus();case Fe:var Ht=Ot.language,qt=Ot.content;return ce.replaceSelection(["```"+Ht,qt,"```"].join(`
|
|
|
`)),ce.focus();case Be:var nr=Ot.src,bt=Ot.alt,ur=Ot.name;return nr.indexOf("type=image")>-1?ce.replaceSelection(".concat(nr,' "').concat(bt||"",'" )')):nr.indexOf("type=application/pdf")>-1?ce.replaceSelection('<a href="'.concat(nr,'&disposition=inline" target="_blank">').concat(ur,"</a>")):ce.replaceSelection('<a href="'.concat(nr,'" target="_blank">').concat(ur,"</a>")),ce.focus();case Ue:for(var Er=Ot.row,Jt=Ot.col,wn=Ot.align,ar=`
|
|
|
`,Sr=0;Sr<Er;Sr++){for(var kr=[],sn=[],Wn=0;Wn<Jt;Wn++)Sr===1&&sn.push(Ve[wn]),kr.push(" ");Sr===1&&(ar+="| ".concat(sn.join(" | "),` |
|
|
|
`)),ar+="| ".concat(kr.join(Jt===1?"":" | "),` |
|
|
|
`)}return ce.replaceSelection(ar+`
|
|
|
`),ce.focus();default:throw new Error}},[ce,Gr]),yr=Object(r.useMemo)(function(){switch(Gr){case Te:return d.a.createElement(me,{callback:It,onCancel:mr});case Fe:return d.a.createElement(xe.b,{callback:It,onCancel:mr});case Be:return d.a.createElement(oe,{callback:It,onCancel:mr});case Ue:return d.a.createElement(W,{callback:It,onCancel:mr});default:return null}},[Gr]);function mr(){Zr("")}Object(r.useEffect)(function(){if(vt.current){var Ot=vt.current,Lt=!1,kt=0;function Ht(bt){Lt=!0,kt=bt.pageY}function qt(){Lt=!1}function nr(bt){if(Lt){var ur=bt.pageY-kt;ur<0&&(ur=0),ur>300&&(ur=300);var Er=ht+ur+"px";nn(Er)}}return Ot.addEventListener("mousedown",Ht),document.addEventListener("mousemove",nr),document.addEventListener("mouseup",qt),function(){Ot.removeEventListener("mousedown",Ht),document.removeEventListener("mousemove",nr),document.removeEventListener("mouseup",qt)}}},[ce,vt]),Object(r.useEffect)(function(){nn(ht)},[ht]);var on=Me(ut),Tr=Me(gn),Or={width:on,height:Tr},an=Object(r.useMemo)(function(){if(xn){var Ot=new Date(xn),Lt=Ot.getHours(),kt=Ot.getMinutes(),Ht=Ot.getSeconds();return Lt=Lt<10?"0"+Lt:Lt,kt=kt<10?"0"+kt:kt,Ht=Ht<10?"0"+Ht:Ht,"".concat(Lt,":").concat(kt,":").concat(Ht)}return 0},[xn]);function Kr(){window.sessionStorage.removeItem(st),vr(!1),fn(0)}function Xr(){vr(!1),fn(0),ce.setValue(window.sessionStorage.getItem(st))}function Nn(Ot,Lt){var kt=ce.getValue();kt=kt.replace(Ot,Lt),Ct(kt),ce==null||ce.setValue(kt)}return d.a.createElement(r.Fragment,null,d.a.createElement("div",{className:"markdown-editor-wrapper",ref:ct},d.a.createElement("div",{className:"markdown-editor-container ".concat(pt," ").concat(Zt?"on-preview":""," ").concat(Xt?"mini":""," ").concat(xr?"full-screen":""),style:Or},d.a.createElement(J,{insertTemp:Gt,watch:Zt,fullScreen:xr,showNullButton:ft,onActionCallback:wt,hidetoolBar:gr,uuid:or.current,setOpenPhones:function(){Lr.current=!0}}),d.a.createElement("div",{className:"markdown-editor-body"},d.a.createElement("div",{className:"codemirror-container"},d.a.createElement("textarea",{ref:Cr,placeholder:lr})),Zt?d.a.createElement("div",{ref:yt,className:"preview-container"},At==="stex"&&d.a.createElement(Y,{value:ot}),At!=="stex"&&d.a.createElement(w.a,{edit:!0,value:ot,replaces:Nn})):null))),Vt?d.a.createElement("a",{ref:vt,className:"editor-resize"}):null,d.a.createElement(fe.a,null,Le[Gr]?d.a.createElement(a.a,{centered:!0,title:Le[Gr],visible:!0,onCancel:mr,footer:null},yr):null))}},"P/tu":function(h,F,o){"use strict";var m=o("ozfa"),a=o("MJZm"),D=o("0Owb"),O=o("9og8"),_=o("tJVT"),y=o("PpiC"),v=o("WmNS"),c=o.n(v),l=o("q1tI"),s=o.n(l),r=o("WCUW"),d=o("spXi"),u=o.n(d),f=function(C){var b=C.value,g=C.onChange,E=C.defaultValue,A=C.disabled,N=Object(y.a)(C,["value","onChange","defaultValue","disabled"]),M=Object(l.useState)([]),w=Object(_.a)(M,2),Y=w[0],X=w[1],P=Object(l.useState)("1"),H=Object(_.a)(P,2),G=H[0],$=H[1];Object(l.useEffect)(function(){he()},[]);var he=function(){var fe=Object(O.a)(c.a.mark(function q(){var U,z;return c.a.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,Object(r.y)({});case 2:U=T.sent,U!=null&&U.data&&(z=[{title:s.a.createElement("div",{title:"\u6839\u76EE\u5F55",className:u.a.name},"\u6839\u76EE\u5F55"),value:0,key:0,icon:s.a.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:de(U.data||[])}],X(z),$("2"));case 4:case"end":return T.stop()}},q)}));return function(){return fe.apply(this,arguments)}}(),de=function(q){function U(z){var L=z.children,T=Array.isArray(L)&&L.length>0,I=z==null?void 0:z.group_id;return{title:s.a.createElement("div",{title:z==null?void 0:z.name,className:u.a.name},z==null?void 0:z.name),value:I,key:I,icon:s.a.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:T?L==null?void 0:L.map(function(se){return U(se)}):[]}}return q==null?void 0:q.map(function(z){return U(z)})},J=E?{defaultExpandedKeys:[0]}:{selectedKeys:b,defaultExpandedKeys:b};return s.a.createElement("div",{className:u.a.customTree},s.a.createElement(a.a,Object(D.a)({key:G},J,{showIcon:!0,treeData:Y,onSelect:g,disabled:A},N)))};F.a=f},PD8m:function(h,F){h.exports={name:"memoryStorage",read:m,write:a,each:D,remove:O,clearAll:_};var o={};function m(y){return o[y]}function a(y,v){o[y]=v}function D(y){for(var v in o)o.hasOwnProperty(v)&&y(o[v],v)}function O(y){delete o[y]}function _(y){o={}}},PHyj:function(h,F,o){"use strict";o.r(F),o.d(F,"Types",function(){return _e});var m=o("P2fV"),a=o("NJEC"),D=o("CiB2"),O=o("DYRE"),_=o("zeV3"),y=o("sRBo"),v=o("kaz8"),c=o("7Kak"),l=o("9yH6"),s=o("giR+"),r=o("fyUT"),d=o("6UJt"),u=o("DFOY"),f=o("OaEy"),x=o("2fM7"),C=o("rAM+"),b=o("T2oS"),g=o("W9HT"),E=o("+L6B"),A=o("2/Rp"),N=o("oBTY"),M=o("miYZ"),w=o("tsqr"),Y=o("9og8"),X=o("y8nQ"),P=o("Vl3Y"),H=o("tJVT"),G=o("k1fw"),$=o("fu2T"),he=o("gK9i"),de=o("2qtc"),J=o("kLXV"),fe=o("5NDa"),q=o("5rEg"),U=o("WmNS"),z=o.n(U),L=o("q1tI"),T=o.n(L),I=o("uMZB"),se=o.n(I),me=o("jrin"),xe,Ee=x.a.Option,Oe;(function(Ae){Ae[Ae.language=0]="language",Ae[Ae.difficult=1]="difficult",Ae[Ae.category=2]="category",Ae[Ae.openOrNot=3]="openOrNot"})(Oe||(Oe={}));var le=(xe={},Object(me.a)(xe,Oe.language,[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"},{title:"JavaScript",key:"JavaScript"},{title:"Ruby",key:"Ruby"}]),Object(me.a)(xe,Oe.difficult,[{title:"\u7B80\u5355",key:1},{title:"\u4E2D\u7B49",key:2},{title:"\u56F0\u96BE",key:3}]),Object(me.a)(xe,Oe.category,[{title:"\u7A0B\u5E8F\u8BBE\u8BA1",key:1},{title:"\u7B97\u6CD5",key:2}]),Object(me.a)(xe,Oe.openOrNot,[{title:"\u516C\u5F00",key:1},{title:"\u79C1\u6709",key:0}]),xe);function ge(Ae){return le[Ae].map(function(Ye){return T.a.createElement(Ee,{key:Ye.title,value:Ye.key}," ",Ye.title," ")})}function ye(Ae,Ye){try{Ae.map(function(it){var lt=it.id,dt=it.name,ut=it.sub_disciplines,xt={value:lt,label:dt};Ye.push(xt),ut&&ut.length>0&&(xt.children=[],ye(ut,xt.children))})}catch(it){debugger}}function ee(Ae,Ye){try{for(var it=[],lt=0;lt<Ae.length;lt++){var dt,ut=Ae[lt];if(((dt=ut.sub_disciplines)===null||dt===void 0?void 0:dt.length)>0){it[0]=ut.id;for(var xt=0;xt<ut.sub_disciplines.length;xt++){var ht=ut.sub_disciplines[xt];if(ht.id===Ye)return it[1]=ht.id,[it,ht.tag_disciplines||ht.sub_disciplines||[]]}}}return[it,[]]}catch(Rt){debugger}}var oe=o("Ty5D"),Z=o("J66h"),ue=o("GIiI"),V=o("2BaD"),Q=o("Ot1p"),ae=o("ErOA");function K(){return Object(ae.c)("problems/new.json")}function j(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"question";return Object(ae.c)("disciplines.json",{source:Ae})}function k(Ae){return Object(ae.c)("problems/".concat(Ae,"/edit.json"))}function W(Ae,Ye){return Object(ae.g)("problems/".concat(Ae,".json"),Ye)}function we(Ae){return Object(ae.f)("problems.json",Ae)}function be(Ae,Ye){return Object(ae.f)("exercises/".concat(Ae,"/exercise_questions.json"),Ye)}function Te(Ae,Ye){return Object(ae.g)("exercise_questions/".concat(Ae,".json"),Ye)}function Be(Ae){return Object(ae.f)("problems/".concat(Ae,"/publish.json"))}function Fe(Ae){return Object(ae.f)("problems/".concat(Ae,"/cancel_publish.json"))}function Ue(Ae){return Object(ae.c)("problems/".concat(Ae,"/start.json"))}function We(Ae,Ye){return Object(ae.f)("tag_disciplines.json",{name:Ye,sub_discipline_id:Ae})}var Ve=o("V0Rq"),Ge=o("cDPC"),Je=o("EHPI"),Re=o("m3rI"),Ze=o("u2Z1"),nt=o("P/tu"),Ke=o("B7Ph"),$e=q.a.TextArea,je=J.a.confirm,Me=he.a.Panel;function Pe(){return new Date().getTime()}var Se={loading:!0,user:null,disciplines:[],dicts:null,status:0,data:void 0,lastedUpdateTime:0},_e;(function(Ae){Ae[Ae.SET_INITAL_DATA=0]="SET_INITAL_DATA",Ae[Ae.SET_LOADING=1]="SET_LOADING",Ae[Ae.SET_STATUS=2]="SET_STATUS"})(_e||(_e={}));function ke(Ae,Ye){switch(Ye.type){case _e.SET_INITAL_DATA:return Object(G.a)(Object(G.a)({},Ae),Ye.payload);case _e.SET_LOADING:return Object(G.a)(Object(G.a)({},Ae),{},{loading:Ye.payload});case _e.SET_STATUS:return Object(G.a)(Object(G.a)({},Ae),{},{status:Ye.payload});default:throw new Error}}var Le=F.default=function(){var Ae,Ye,it=Object(oe.h)(),lt=Object(oe.g)(),dt=Object(oe.i)(),ut=dt.id,xt=P.a.useForm(),ht=Object(H.a)(xt,1),Rt=ht[0],Xt=Object(L.useState)(),er=Object(H.a)(Xt,2),Qt=er[0],Ut=er[1],Gt=Object(L.useState)([]),Nr=Object(H.a)(Gt,2),At=Nr[0],Dt=Nr[1],st=Object(L.useState)([]),_t=Object(H.a)(st,2),Vt=_t[0],tr=_t[1],sr=Object(L.useReducer)(ke,Se),Bt=Object(H.a)(sr,2),ft=Bt[0],Yt=Bt[1],gr=ft.loading,Nt=ft.data,Pt=ft.user,fr=ft.disciplines,Wr=ft.dicts,Pr=ft.status,qe=Nt==null?void 0:Nt.hack_sets,pt=Nt==null||((Ae=Nt.hack)===null||Ae===void 0)?void 0:Ae.test_set_average,Wt=it.query,zt=Wt.callback_url,ir=Wt.express_id,lr=Wt.score,ie=Wt.question_id,S=Object(L.useState)([]),R=Object(H.a)(S,2),re=R[0],ce=R[1],ne=Object(L.useState)(!1),Ne=Object(H.a)(ne,2),Qe=Ne[0],ot=Ne[1],Ct=Object(L.useState)(!1),tt=Object(H.a)(Ct,2),jt=tt[0],Zt=tt[1],dr=Object(L.useMemo)(function(){var ct=[];return fr&&ye(fr,ct),ct},[fr]),tn=Object(L.useCallback)(Object(Y.a)(z.a.mark(function ct(){var vt,yt,Et,Kt,wt,It,yr,mr,on,Tr,Or,an,Kr,Xr,Nn,Ot,Lt,kt,Ht,qt,nr,bt,ur,Er,Jt,wn,ar,Sr,kr,sn,Wn,Ln,Ar,Di,Ri,Hn,zn,di,to,In,Cn,ro,no,hi,En,io,Pn,vn=arguments;return z.a.wrap(function(Qr){for(;;)switch(Qr.prev=Qr.next){case 0:if(vt=vn.length>0&&vn[0]!==void 0?vn[0]:0,yt=fr,!(yt.length===0)){Qr.next=7;break}return Qr.next=5,j();case 5:Et=Qr.sent,yt=Et.disciplines;case 7:if(!ut){Qr.next=15;break}return Kt={disciplines:yt},Qr.next=11,k(ut);case 11:wt=Qr.sent,wt.message?wt.status==="401"&&(document.location.href="/user/login"):(It=wt.category,yr=wt.user,mr=wt.code,on=wt.language,Tr=wt.hack_sets,Or=wt.description,an=wt.difficult,Kr=wt.name,Xr=wt.open_or_not,Nn=wt.sub_discipline_id,Ot=wt.tag_discipline_id,Lt=wt.time_limit,kt=wt.test_set_average,Ht=wt.test_set_score,qt=wt.status,nr=wt.tag_discipline_ids,bt=wt.item_banks_group_id,ur=wt.is_file,Er=ur===void 0?!1:ur,Jt=wt.hide_actual_output,wn=wt.code_compile_score,ar=ee(yt,Nn),Sr=Object(H.a)(ar,2),kr=Sr[0],sn=Sr[1],ot(Jt),Wn=Er?[{input:"",output:"",score:100,position:1}]:Tr,Er?(tr(Tr),Rt.setFieldsValue({hack_sets:Wn})):tr([]),Ln=it.query.lastedUpdateTime,Kt=Object(G.a)(Object(G.a)({},Kt),{},{loading:!1,user:yr,dicts:sn,status:qt,lastedUpdateTime:vt||(Ln||0),data:{hack_codes:{language:on,code:Z.Base64.decode(mr)},hack:{category:It,difficult:an,name:Kr,description:Or,open_or_not:Xr,time_limit:Lt,test_set_average:kt,test_set_score:Ht,sub_discipline_id:kr,tag_discipline_ids:nr,score:lr||1,item_banks_group_ids:bt,is_file:Er,code_compile_score:wn},hack_sets:Wn,tags:nr}}),parseInt(wn)>0&&Zt(!0),Yt({type:_e.SET_INITAL_DATA,payload:Kt}),Ut({hack:{category:It,difficult:an,name:Kr,description:Or,open_or_not:Xr,time_limit:Lt,test_set_average:kt,test_set_score:Ht,sub_discipline_id:kr,tag_discipline_ids:nr,score:lr||1,item_banks_group_ids:bt,is_file:Er}}),Jr(kr==null?void 0:kr[0],kr==null?void 0:kr[1],yt)),Qr.next=25;break;case 15:return Qr.next=17,K();case 17:Ri=Qr.sent,Hn=Ri.user,zn=it.query,di=zn.difficult,to=zn.sub_discipline_id,In=zn.tag_discipline_id,Cn=zn.tagIds,ro=zn.banksIds,no=ee(yt,parseInt(to,10)),hi=Object(H.a)(no,2),En=hi[0],io=hi[1],Pn=[Number(ro)],Yt({type:_e.SET_INITAL_DATA,payload:{loading:!1,user:Hn,disciplines:yt,status:0,dicts:io,data:{hack_codes:{language:"C",code:""},hack:{category:null,difficult:parseInt(di,10),time_limit:3,description:"",test_set_score:!0,test_set_average:!0,open_or_not:!0,sub_discipline_id:En,tag_discipline_id:Cn&&(Cn==null||((Ar=Cn.split(","))===null||Ar===void 0)?void 0:Ar.map(function(Gn){return Number(Gn)})),name:"",item_banks_group_ids:Pn,is_file:!1},tags:In?In==null?void 0:In.split(",").map(function(Gn){return parseInt(Gn,10)}):[],hack_sets:[{input:"",output:"",score:100,position:1}]}}}),Ut({hack:{category:null,difficult:parseInt(di,10),time_limit:3,description:"",test_set_average:!0,open_or_not:!0,sub_discipline_id:En,tag_discipline_id:Cn&&(Cn==null||((Di=Cn.split(","))===null||Di===void 0)?void 0:Di.map(function(Gn){return Number(Gn)})),name:"",item_banks_group_id:Pn,is_file:!1}}),Jr(En==null?void 0:En[0],En==null?void 0:En[1],yt);case 25:case"end":return Qr.stop()}},ct)})),[ut,fr]);Object(L.useEffect)(function(){try{tn()}catch(ct){console.log(ct,"----")}},[]),Object(L.useEffect)(function(){function ct(){return vt.apply(this,arguments)}function vt(){return vt=Object(Y.a)(z.a.mark(function yt(){var Et;return z.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,Object(ae.c)("item_banks_groups/mine.json");case 2:Et=wt.sent,ce(Et);case 4:case"end":return wt.stop()}},yt)})),vt.apply(this,arguments)}ct()},[]);var Jr=function(vt,yt,Et){var Kt,wt,It,yr=Et==null||((Kt=Et.find(function(mr){return mr.id===vt}))===null||Kt===void 0||((wt=Kt.sub_disciplines)===null||wt===void 0||((It=wt.find(function(mr){return mr.id===yt}))===null||It===void 0)))?void 0:It.tag_disciplines};function xr(ct,vt){return $r.apply(this,arguments)}function $r(){return $r=Object(Y.a)(z.a.mark(function ct(vt,yt){var Et,Kt,wt,It,yr,mr,on,Tr,Or,an,Kr,Xr,Nn,Ot,Lt,kt,Ht,qt;return z.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:bt.prev=0,Et=Object(G.a)({},vt),Kt=Et.hack_sets,wt=Et.hack_codes,It=Et.hack,yr=Et.tags,It.hide_actual_output=Qe,mr=[],on=[],Tr=0,Or=It!=null&&It.is_file?Vt.map(function(ur,Er){return Object(G.a)(Object(G.a)({},ur),{},{position:Er+1})}):Kt.map(function(ur){return Object(G.a)(Object(G.a)({},ur),{},{is_file:!1})}),an=Object(C.a)(Or);try{for(an.s();!(Kr=an.n()).done;)Xr=Kr.value,Tr+=Xr.score,Xr.id&&Xr.id>=0?mr.push(Xr):on.push(Xr)}catch(ur){an.e(ur)}finally{an.f()}if(Or!=null&&Or.length){bt.next=12;break}return w.b.error("\u6D4B\u8BD5\u96C6\u4E0D\u80FD\u4E3A\u7A7A"),bt.abrupt("return");case 12:if(Tr+=parseInt(It.code_compile_score||0),!(Tr!==100&&!It.test_set_score)){bt.next=16;break}return w.b.error("\u6D4B\u8BD5\u96C6\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100"),bt.abrupt("return");case 16:if(!(Or!=null&&Or.some(function(ur){return!ur.output}))){bt.next=19;break}return w.b.error("\u6D4B\u8BD5\u96C6\u8F93\u51FA\u4E0D\u80FD\u4E3A\u7A7A"),bt.abrupt("return");case 19:if(wt.code=Z.Base64.encode(wt==null?void 0:wt.code),Yt({type:_e.SET_LOADING,payload:!0}),It.sub_discipline_id=It.sub_discipline_id[1],zt||(It.score=It.difficult*100),!ut){bt.next=43;break}return bt.next=26,W(ut,{hack:It,hack_codes:wt,hack_sets:on,update_hack_sets:mr,tags:yr});case 26:if(!zt){bt.next=39;break}return bt.next=29,Be(ut);case 29:return bt.next=31,Te(ie,{question_type:6,question_score:It.score,question_title:It.name,description:It.description,sub_discipline_id:It.sub_discipline_id,tag_discipline_ids:It.tag_discipline_ids,item_banks_group_ids:It.item_banks_group_ids,identifier:ut});case 31:if(Nn=bt.sent,Ot=Nn.status,!(Ot===0)){bt.next=37;break}if(!(yt==="start")){bt.next=36;break}return bt.abrupt("return");case 36:lt.replace(zt);case 37:bt.next=40;break;case 39:w.b.success("\u4FDD\u5B58\u6210\u529F");case 40:Yt({type:_e.SET_LOADING,payload:!1}),bt.next=66;break;case 43:return bt.next=45,we({hack:It,hack_codes:wt,hack_sets:Or,tags:yr});case 45:if(Lt=bt.sent,kt=Lt.identifier,Yt({type:_e.SET_LOADING,payload:!1}),!(yt==="start")){bt.next=50;break}return bt.abrupt("return");case 50:if(!kt){bt.next=66;break}if(zt){bt.next=55;break}lt.replace("/problems/".concat(kt,"/edit?lastedUpdateTime=").concat(Pe())),bt.next=66;break;case 55:return bt.next=57,Be(kt);case 57:if(ut){bt.next=65;break}return bt.next=60,be(parseInt(ir,10),{question_type:6,question_score:It.score,question_title:It.name,identifier:kt,tag_discipline_ids:It.tag_discipline_ids});case 60:Ht=bt.sent,qt=Ht.status,qt===0&<.replace(zt),bt.next=66;break;case 65:lt.replace(zt);case 66:bt.next=71;break;case 68:bt.prev=68,bt.t0=bt.catch(0),console.log("error:",bt.t0);case 71:case"end":return bt.stop()}},ct,null,[[0,68]])})),$r.apply(this,arguments)}function Bn(){Rt.submit(),setTimeout(Object(Y.a)(z.a.mark(function ct(){var vt;return z.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return Et.next=2,Be(ut);case 2:vt=Et.sent,vt.status===0?(w.b.success("\u53D1\u5E03\u6210\u529F"),Yt({type:_e.SET_STATUS,payload:1})):w.b.info(vt.message);case 4:case"end":return Et.stop()}},ct)})),400)}function zr(){return Gr.apply(this,arguments)}function Gr(){return Gr=Object(Y.a)(z.a.mark(function ct(){var vt;return z.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return Et.next=2,Fe(ut);case 2:vt=Et.sent,vt.status===0?(w.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F"),Yt({type:_e.SET_STATUS,payload:0})):w.b.info(vt.message);case 4:case"end":return Et.stop()}},ct)})),Gr.apply(this,arguments)}function Zr(){Pr===0?je({title:"\u63D0\u793A",content:T.a.createElement(L.Fragment,null," ",T.a.createElement("div",null,"\u53D1\u5E03\u540E\u5373\u53EF\u5E94\u7528\u5230\u81EA\u5DF1\u7BA1\u7406\u7684\u8BFE\u5802")," ",T.a.createElement("div",null," \u662F\u5426\u786E\u8BA4\u53D1\u5E03?")," "),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){Bn()}}):je({title:"\u63D0\u793A",content:T.a.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){zr()}})}function On(){return rn.apply(this,arguments)}function rn(){return rn=Object(Y.a)(z.a.mark(function ct(){return z.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:return yt.t0=xr,yt.next=3,Rt.getFieldValue();case 3:yt.t1=yt.sent,(0,yt.t0)(yt.t1,"start"),setTimeout(Object(Y.a)(z.a.mark(function Et(){var Kt,wt;return z.a.wrap(function(yr){for(;;)switch(yr.prev=yr.next){case 0:return yr.next=2,Ue(ut);case 2:Kt=yr.sent,wt=Kt.identifier,window.location.href="/myproblems/".concat(wt);case 5:case"end":return yr.stop()}},Et)})),100);case 6:case"end":return yt.stop()}},ct)})),rn.apply(this,arguments)}function xn(){zt?lt.replace(zt):lt.replace("/problemset")}var fn=function(vt){var yt=parseInt(Rt.getFieldValue("hack").code_compile_score)||0,Et=Math.floor((100-yt)/vt.length),Kt=Et+(100-yt)%vt.length;vt=vt.map(function(wt,It){return It===vt.length-1?Object(G.a)(Object(G.a)({},wt),{},{score:Kt}):Object(G.a)(Object(G.a)({},wt),{},{score:Et})}),tr(vt)};function qn(ct){ct.target.value||fn(Vt),Yt({type:_e.SET_INITAL_DATA,payload:{data:Object(G.a)(Object(G.a)({},Nt),{},{hack:Object(G.a)(Object(G.a)({},Nt.hack),{},{test_set_score:ct.target.value})})}})}function Un(ct){Yt({type:_e.SET_INITAL_DATA,payload:{data:Object(G.a)(Object(G.a)({},Nt),{},{hack:Object(G.a)(Object(G.a)({},Nt.hack),{},{is_file:ct.target.value})})}})}function gn(ct){ot(ct.target.checked)}function nn(ct){var vt=ct.target.value;vt&&fn(Vt),Yt({type:_e.SET_INITAL_DATA,payload:{data:Object(G.a)(Object(G.a)({},Nt),{},{hack:Object(G.a)(Object(G.a)({},Nt.hack),{},{test_set_average:vt})})}})}function Rn(){var ct=Rt.getFieldValue("hack_sets"),vt=parseInt(Rt.getFieldValue("hack").code_compile_score)||0,yt=ct.length+1,Et=Math.floor((100-vt)/yt),Kt=(100-vt)%yt;ct.map(function(wt,It){return pt&&(wt.score=Et),wt.position=It+1,wt}),ct.push({input:"",output:"",position:yt,score:pt?Et+Kt:0}),Rt.setFieldsValue({hack_sets:ct}),Yt({type:_e.SET_INITAL_DATA,payload:{data:Object(G.a)(Object(G.a)({},Nt),{},{hack_sets:ct})}})}function Mn(){var ct=Rt.getFieldValue("hack_sets"),vt=parseInt(Rt.getFieldValue("hack").code_compile_score)||0,yt=ct.length,Et=Math.floor((100-vt)/yt),Kt=(100-vt)%yt;ct.map(function(wt,It){return pt&&(wt.score=Et,It===ct.length-1&&(wt.score=Et+Kt)),wt.position=It+1,wt}),Rt.setFieldsValue({hack_sets:ct}),Yt({type:_e.SET_INITAL_DATA,payload:{data:Object(G.a)(Object(G.a)({},Nt),{},{hack_sets:ct})}})}Object(L.useEffect)(function(){if(pt){var ct=parseInt(Rt.getFieldValue("hack").code_compile_score)||0,vt=qe==null?void 0:qe.length,yt=Math.floor((100-ct)/vt),Et=(100-ct)%vt;qe==null||qe.map(function(Kt,wt){return Kt.score=yt,Kt.position=wt+1,wt===vt-1&&(Kt.score=yt+Et),Kt}),Yt({type:_e.SET_INITAL_DATA,payload:{data:Object(G.a)(Object(G.a)({},Nt),{},{hack_sets:qe})}}),Rt.setFieldsValue({hack_sets:qe})}},[pt]);function ei(ct){var vt=Rt.getFieldValue("hack_sets"),yt=parseInt(Rt.getFieldValue("hack").code_compile_score)||0,Et=(vt==null?void 0:vt.length)-1,Kt=Math.ceil((100-yt)/Et),wt=(100-yt)%Et;vt.splice(ct,1),vt==null||vt.map(function(It,yr){return pt&&(It.score=Kt,yr===Et-1&&(It.score=Kt+wt)),It.position=yr+1,It}),Yt({type:_e.SET_INITAL_DATA,payload:{data:Object(G.a)(Object(G.a)({},Nt),{},{hack_sets:vt})}}),Rt.setFieldsValue({hack_sets:vt})}function vr(ct){Yt({type:_e.SET_INITAL_DATA,payload:{data:Object(G.a)(Object(G.a)({},Nt),{},{hack_codes:Object(G.a)(Object(G.a)({},Nt.hack_codes),{},{language:ct})})}})}var or=function(vt){var yt;if(vt!=null&&(yt=vt.hack)!==null&&yt!==void 0&&yt.sub_discipline_id){var Et,Kt,wt,It,yr,mr=vt==null||((Et=vt.hack)===null||Et===void 0)?void 0:Et.sub_discipline_id,on=Object(H.a)(mr,2),Tr=on[0],Or=on[1],an=fr==null||((Kt=fr.find(function(Xr){return Xr.id===Tr}))===null||Kt===void 0||((wt=Kt.sub_disciplines)===null||wt===void 0||((It=wt.find(function(Xr){return Xr.id===Or}))===null||It===void 0)))?void 0:It.tag_disciplines,Kr=Object(G.a)(Object(G.a)({},Rt.getFieldsValue()),{},{hack:Object(G.a)(Object(G.a)({},(yr=Rt.getFieldsValue())===null||yr===void 0?void 0:yr.hack),{},{tag_discipline_ids:[]})});Rt.setFieldsValue(Kr),Ut(Kr)}else Ut(Object(G.a)({},Rt.getFieldsValue()))},Lr=function(vt){Dt([].concat(Object(N.a)(At),[Object(G.a)({},vt)]))};Object(L.useEffect)(function(){var ct,vt;if(Nt!=null&&(ct=Nt.hack)!==null&&ct!==void 0&&(vt=ct.sub_discipline_id)!==null&&vt!==void 0&&vt[1]){var yt,Et;rr(Nt==null||((yt=Nt.hack)===null||yt===void 0||((Et=yt.sub_discipline_id)===null||Et===void 0))?void 0:Et[1])}},[Nt==null||((Ye=Nt.hack)===null||Ye===void 0)?void 0:Ye.sub_discipline_id]);var rr=function(){var ct=Object(Y.a)(z.a.mark(function vt(yt){var Et;return z.a.wrap(function(wt){for(;;)switch(wt.prev=wt.next){case 0:return wt.next=2,Object(Ve.H)({sub_discipline_id:yt});case 2:Et=wt.sent,Dt(Et.tag_disciplines);case 4:case"end":return wt.stop()}},vt)}));return function(yt){return ct.apply(this,arguments)}}();function Cr(ct){var vt=ct[1],yt=ee(fr,vt),Et=Object(H.a)(yt,2),Kt=Et[1];Rt.setFieldsValue({tags:[]}),Yt({type:_e.SET_INITAL_DATA,payload:{dicts:Kt,data:Object(G.a)(Object(G.a)({},Nt),{},{hack:Object(G.a)(Object(G.a)({},Nt.hack),{},{sub_discipline_id:ct}),tags:[]})}})}return T.a.createElement(g.a,{spinning:gr,delay:500},Nt?T.a.createElement(L.Fragment,null,T.a.createElement("header",{className:se.a.header},T.a.createElement("div",null,T.a.createElement("img",{src:"".concat(Re.a.IMG_SERVER,"/images/").concat(Pt==null?void 0:Pt.image_url),alt:"user",width:30}),T.a.createElement("span",null,Pt==null?void 0:Pt.name)),T.a.createElement("h2",null," ",Nt==null?void 0:Nt.hack.name," "),ut?T.a.createElement("a",{className:se.a.btn_back,onClick:xn}," ",T.a.createElement(ue.a,null),"\u9000\u51FA"):null),T.a.createElement(P.a,{form:Rt,initialValues:Nt,layout:"vertical",className:se.a["oj-form-container"],onValuesChange:or,onFinish:function(vt,yt){var Et;if(it!=null&&(Et=it.query)!==null&&Et!==void 0&&Et.exercise){J.a.confirm({title:"\u4FDD\u5B58\u63D0\u793A",content:"\u8BF7\u6CE8\u610F\uFF0C\u672C\u6B21\u7F16\u8F91\u4EC5\u4FEE\u6539\u8BD5\u5377\u4E2D\u7684\u7F16\u7A0B\u9898\uFF0C\u4E0D\u4F1A\u540C\u6B65\u539F\u8BD5\u9898\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){return xr(vt,yt)}});return}xr(vt,yt)}},T.a.createElement(Ge.a,{leftChild:T.a.createElement(Xe,{onAddTestCases:Mn,form:Rt,handleAddKnowledgeFinish:Lr,MyGroup:re,formValue:Qt,knowledgeOptions:At,onChangeLanguage:vr,onChangeSubDiscipline:Cr,onRemoveTestCase:ei,onAddTestCase:Rn,dicts:Wr,categorys:dr,callback_url:zt,hack:Nt.hack,onChangeScore:qn,onChangehide:gn,onChangeAverage:nn,onChangeFile:Un,uploadData:Vt,setUploadData:tr,handleUploadRatio:fn,ischecked:Qe,isshows:jt}),rightChild:T.a.createElement(P.a.Item,{name:["hack_codes","code"],style:{marginBottom:0}},T.a.createElement(Je.a,{language:Nt.hack_codes.language}))}),T.a.createElement("div",{className:se.a.footer},ut?T.a.createElement(L.Fragment,null,zt?null:T.a.createElement(A.a,{type:Pr?"default":"primary",onClick:Zr},Pr?"\u64A4\u9500\u53D1\u5E03":"\u7ACB\u5373\u53D1\u5E03"),T.a.createElement(A.a,{loading:gr,type:"primary",htmlType:"submit"},"\u4FDD\u5B58"),T.a.createElement(A.a,{type:"primary",onClick:On},Pr?"\u5F00\u59CB\u6311\u6218":"\u6A21\u62DF\u6311\u6218")):T.a.createElement(L.Fragment,null,T.a.createElement(A.a,{onClick:xn},"\u53D6\u6D88"),T.a.createElement(A.a,{loading:gr,type:"primary",htmlType:"submit"},"\u4FDD\u5B58"))))):null)};function Xe(Ae){var Ye,it,lt,dt,ut=Ae.form,xt=Ae.onAddTestCases,ht=Ae.handleAddKnowledgeFinish,Rt=Ae.ischecked,Xt=Ae.MyGroup,er=Ae.formValue,Qt=Ae.knowledgeOptions,Ut=Ae.categorys,Gt=Ae.hack,Nr=Ae.callback_url,At=Ae.onChangeAverage,Dt=Ae.onChangeScore,st=Ae.onChangehide,_t=Ae.onChangeFile,Vt=Ae.onAddTestCase,tr=Ae.onRemoveTestCase,sr=Ae.onChangeSubDiscipline,Bt=Ae.onChangeLanguage,ft=Ae.uploadData,Yt=Ae.setUploadData,gr=Ae.handleUploadRatio,Nt=Ae.isshows,Pt=((Ye=location)===null||Ye===void 0||((it=Ye.search)===null||it===void 0)?void 0:it.includes("select"))||!1,fr=Object(L.useState)(Nt),Wr=Object(H.a)(fr,2),Pr=Wr[0],qe=Wr[1],pt=Gt.test_set_average,Wt=Gt.test_set_score,zt=Object(L.useState)(!1),ir=Object(H.a)(zt,2),lr=ir[0],ie=ir[1],S=function(Ne,Qe){var ot=Object(N.a)(ft);ot.splice(Qe,1),pt?gr(ot):Yt(ot)},R=function(Ne,Qe){console.log(Ne,Qe);var ot=ft.map(function(Ct,tt){return tt===Qe?Object(G.a)(Object(G.a)({},Ct),{},{score:Ne.target.value?Number(Ne.target.value):0}):Ct});Yt(ot)},re=function(Ne){var Qe=ft.concat(Ne);Gt.test_set_average?gr(Qe):Yt(Qe)};function ce(ne){ne.stopPropagation()}return T.a.createElement("div",{className:se.a["oj-left-panel"]},T.a.createElement("div",{className:se.a["oj-form-info"]},T.a.createElement("div",{className:se.a.field},T.a.createElement(P.a.Item,{label:"\u96BE\u6613\u5EA6",name:["hack","difficult"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u6613\u5EA6"}]},T.a.createElement(x.a,{disabled:Pt},ge(Oe.difficult))),T.a.createElement(P.a.Item,{label:"\u8BFE\u7A0B(\u5408\u7406\u7684\u8BFE\u7A0B\u5206\u7C7B\u6709\u5229\u4E8E\u5FEB\u901F\u68C0\u7D22)",name:["hack","sub_discipline_id"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"}]},T.a.createElement(u.a,{disabled:Pt,allowClear:!1,options:Ut,placeholder:"\u8BF7\u9009\u62E9",onChange:sr}))),T.a.createElement("div",{className:se.a.field},Nr&&T.a.createElement(P.a.Item,{label:"\u5206\u6570",name:["hack","score"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u6570"}],extra:T.a.createElement("span",{style:{position:"absolute",left:100,top:5}},"\u5206")},T.a.createElement(r.a,{disabled:Pt,min:1,max:100})),T.a.createElement(P.a.Item,{label:T.a.createElement("div",null,"\u8BC4\u6D4B\u65F6\u957F\u9650\u5236 ",T.a.createElement("span",{className:"c-grey-999"},"(\u4EE3\u7801\u6267\u884C\u6240\u5141\u8BB8\u7684\u6700\u5927\u65F6\u957F)")),name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],extra:T.a.createElement("span",{style:{position:"absolute",left:100,top:5}},"\u79D2")},T.a.createElement(r.a,{min:3})),T.a.createElement(P.a.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",name:["hack_codes","language"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},T.a.createElement(x.a,{onChange:Bt},ge(Oe.language)))),T.a.createElement(P.a.Item,{label:T.a.createElement("span",null,"\u77E5\u8BC6\u70B9\uFF1A",T.a.createElement("span",{className:"c-grey-999"},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),name:["hack","tag_discipline_ids"]},T.a.createElement(Ze.a,{selectvalues:(Gt==null?void 0:Gt.tag_discipline_id)||(Gt==null?void 0:Gt.tag_discipline_ids),disabled:Pt,subId:er==null||((lt=er.hack)===null||lt===void 0||((dt=lt.sub_discipline_id)===null||dt===void 0))?void 0:dt[1],knowledgeOptions:Qt,onAddKnowledgeFinish:ht})),T.a.createElement(P.a.Item,{label:"\u52A0\u5165\u6587\u4EF6\u5939\u76EE\u5F55",name:["hack","item_banks_group_ids"],labelCol:{span:24},wrapperCol:{span:24}},T.a.createElement(nt.a,{disabled:Pt})),T.a.createElement(P.a.Item,{label:"\u4EFB\u52A1\u540D\u79F0",name:["hack","name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"}]},T.a.createElement(q.a,{maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0",suffix:T.a.createElement("span",null,60-Gt.name.length)})),T.a.createElement(P.a.Item,{name:["hack","description"],valuePropName:"defaultValue",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9"}]},T.a.createElement(Q.a,{miniToolbar:!0,id:"moop_cases_content",noStorage:!0,height:200})),T.a.createElement("div",{className:"tst-case-info"},T.a.createElement("h3",{className:"flex-container",style:{justifyContent:"space-between"}}," \u6D4B\u8BD5\u7528\u4F8B\u4E0E\u7CFB\u7EDF\u8BC4\u5206\u89C4\u5219",!Gt.is_file&&T.a.createElement(A.a,{type:"primary",ghost:!0,onClick:Vt},"\u6DFB\u52A0\u6D4B\u8BD5\u7528\u4F8B")),T.a.createElement(P.a.Item,{name:["hack","test_set_score"]},T.a.createElement(l.a.Group,{onChange:Dt},T.a.createElement(l.a,{value:!0},"\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6",T.a.createElement("span",{className:"tip"}," \uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u4EC5\u5F53\u6240\u6709\u6D4B\u8BD5\u96C6\u90FD\u6B63\u786E\u65F6\uFF0C\u624D\u83B7\u5F97\u4E00\u6B21\u6027\u5956\u52B1\uFF09")),T.a.createElement(l.a,{value:!1},"\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6",T.a.createElement("span",{className:"tip"}," \uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u901A\u8FC7\u6D4B\u8BD5\u96C6\u5373\u53EF\u83B7\u5F97\u5BF9\u5E94\u5956\u52B1\uFF09")))),T.a.createElement(v.a,{style:{marginBottom:"5px"},checked:Rt,onChange:st},"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA \uFF08\u9009\u4E2D\uFF0C\u5219\u5728\u5B66\u751F\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u65E0\u6CD5\u770B\u5230\u5B9E\u9645\u8F93\u51FA\u7ED3\u679C\uFF0C\u4EC5\u5C55\u793A\u662F\u5426\u8BC4\u6D4B\u662F\u5426\u901A\u8FC7\uFF09"),T.a.createElement(P.a.Item,{className:se.a.testJi,name:["hack","is_file"],label:"\u7528\u4F8B\u7C7B\u578B:"},T.a.createElement(l.a.Group,{onChange:_t},T.a.createElement(_.a,{direction:"horizontal"},T.a.createElement(l.a,{value:!1},"\u6587\u672C"),T.a.createElement(l.a,{value:!0},"\u6587\u4EF6")))),!Gt.test_set_score&&T.a.createElement(P.a.Item,{name:["hack","test_set_average"],label:"\u7CFB\u7EDF\u8BC4\u5206\u5360\u6BD4"},T.a.createElement(l.a.Group,{onChange:At},T.a.createElement(l.a,{value:!0},"\u5747\u5206\u6BD4\u4F8B"),T.a.createElement(l.a,{value:!1},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B"))),!Gt.test_set_score&&T.a.createElement("div",{style:{marginBottom:"20px",marginTop:"-10px"}},T.a.createElement("div",{style:{display:"flex",height:"30px",marginBottom:"10px"}},T.a.createElement(v.a,{checked:Pr,style:{display:"flex",alignItems:"center"},className:se.a.checkboxs,onChange:function(Ne){qe(Ne.target.checked),ut.setFieldsValue({hack:{code_compile_score:0}}),Gt.test_set_average&&(Gt.is_file?gr(ft):xt())}},"\u542F\u7528\u7F16\u8BD1\u901A\u8FC7\u5373\u53EF\u5F97\u5206"),Pr&&T.a.createElement("span",{style:{display:"flex"}},T.a.createElement(P.a.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7F16\u8BD1\u5F97\u5206"}],name:["hack","code_compile_score"]},T.a.createElement(r.a,{onChange:function(){Gt.test_set_average&&(Gt.is_file?gr(ft):xt())},parser:function(Ne){return isNaN(parseInt(Ne))?"":parseInt(Ne)},min:0,max:100,style:{width:"90px",margin:"5px 0px"}}))," ",T.a.createElement("span",{style:{display:"flex",alignItems:"center",marginLeft:"5px"}},"%"))),T.a.createElement("span",{style:{color:"#999",fontSize:"12px",marginLeft:"-8px"}},"\uFF08\u8BF7\u6CE8\u610F\u8BE5\u5B9E\u8BAD\u9898\u662F\u5426\u6709\u7F16\u8BD1\u8FC7\u7A0B\uFF0C\u82E5\u6CA1\u6709\u5219\u65E0\u6CD5\u83B7\u5F97\u7F16\u8BD1\u5F97\u5206\uFF09")),Gt.is_file&&T.a.createElement("div",{className:se.a.upBtn},T.a.createElement(A.a,{ghost:!0,type:"primary",className:"mb20",onClick:function(){return ie(!0)}},"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"),T.a.createElement(Ke.a,{disabled:Gt==null?void 0:Gt.test_set_average,inputChange:R,showScore:!Gt.test_set_score,data:ft,onRemove:S})),!Gt.is_file&&T.a.createElement(P.a.List,{name:"hack_sets"},function(ne,Ne){return Object(D.a)(Ne),T.a.createElement(he.a,{accordion:!0},ne.map(function(Qe,ot){return T.a.createElement(Me,{key:"".concat(Qe.key,"--").concat(ot),header:T.a.createElement("a",{className:se.a["test-case-name"]},T.a.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",ot+1,"\b"),Wt?null:T.a.createElement(T.a.Fragment,null,T.a.createElement(P.a.Item,{name:[Qe.name,"score"],fieldKey:[Qe.fieldKey,"score"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6D4B\u8BD5\u96C6".concat(ot+1,"\u8BC4\u5206")}]},T.a.createElement(r.a,{onClick:ce,min:0,max:100,disabled:pt})),T.a.createElement("span",null,"%"))),extra:ot>0?T.a.createElement("div",{onClick:ce},T.a.createElement(a.a,{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u6D4B\u8BD5\u96C6\b"+(ot+1),onConfirm:function(){tr(ot)}},T.a.createElement(V.a,{className:se.a["btn-remove-case"]}))):null},T.a.createElement(P.a.Item,{label:"\u8F93\u5165",name:[Qe.name,"input"],fieldKey:[Qe.fieldKey,"input"]},T.a.createElement($e,null)),T.a.createElement(P.a.Item,{label:"\u8F93\u51FA",name:[Qe.name,"output"],fieldKey:[Qe.fieldKey,"output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},T.a.createElement($e,null)))}))}))),T.a.createElement(Ke.b,{rootIdentifier:null,visible:lr,onClose:function(){return ie(!1)},onOK:re}))}},PVpz:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(m){return function(){var a=m,D=a.lib,O=D.StreamCipher,_=a.algo,y=[],v=[],c=[],l=_.RabbitLegacy=O.extend({_doReset:function(){var r=this._key.words,d=this.cfg.iv,u=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],f=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 x=0;x<4;x++)s.call(this);for(var x=0;x<8;x++)f[x]^=u[x+4&7];if(d){var C=d.words,b=C[0],g=C[1],E=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,A=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,N=E>>>16|A&4294901760,M=A<<16|E&65535;f[0]^=E,f[1]^=N,f[2]^=A,f[3]^=M,f[4]^=E,f[5]^=N,f[6]^=A,f[7]^=M;for(var x=0;x<4;x++)s.call(this)}},_doProcessBlock:function(r,d){var u=this._X;s.call(this),y[0]=u[0]^u[5]>>>16^u[3]<<16,y[1]=u[2]^u[7]>>>16^u[5]<<16,y[2]=u[4]^u[1]>>>16^u[7]<<16,y[3]=u[6]^u[3]>>>16^u[1]<<16;for(var f=0;f<4;f++)y[f]=(y[f]<<8|y[f]>>>24)&16711935|(y[f]<<24|y[f]>>>8)&4278255360,r[d+f]^=y[f]},blockSize:128/32,ivSize:64/32});function s(){for(var r=this._X,d=this._C,u=0;u<8;u++)v[u]=d[u];d[0]=d[0]+1295307597+this._b|0,d[1]=d[1]+3545052371+(d[0]>>>0<v[0]>>>0?1:0)|0,d[2]=d[2]+886263092+(d[1]>>>0<v[1]>>>0?1:0)|0,d[3]=d[3]+1295307597+(d[2]>>>0<v[2]>>>0?1:0)|0,d[4]=d[4]+3545052371+(d[3]>>>0<v[3]>>>0?1:0)|0,d[5]=d[5]+886263092+(d[4]>>>0<v[4]>>>0?1:0)|0,d[6]=d[6]+1295307597+(d[5]>>>0<v[5]>>>0?1:0)|0,d[7]=d[7]+3545052371+(d[6]>>>0<v[6]>>>0?1:0)|0,this._b=d[7]>>>0<v[7]>>>0?1:0;for(var u=0;u<8;u++){var f=r[u]+d[u],x=f&65535,C=f>>>16,b=((x*x>>>17)+x*C>>>15)+C*C,g=((f&4294901760)*f|0)+((f&65535)*f|0);c[u]=b^g}r[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,r[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,r[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,r[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,r[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,r[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,r[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,r[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}a.RabbitLegacy=O._createHelper(l)}(),m.RabbitLegacy})},QDVR:function(h,F,o){"use strict";o.d(F,"e",function(){return a}),o.d(F,"d",function(){return D}),o.d(F,"c",function(){return v}),o.d(F,"b",function(){return c}),o.d(F,"a",function(){return s});var m=function(){var r=function(d,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,x){f.__proto__=x}||function(f,x){for(var C in x)x.hasOwnProperty(C)&&(f[C]=x[C])},r(d,u)};return function(d,u){r(d,u);function f(){this.constructor=d}d.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)}}();function a(r){var d=[];return r.forEach(function(u){return d.push(u)}),d}function D(r){var d=[];return r.forEach(function(u,f){return d.push(f)}),d}var O=function(){function r(){this._value="",this._pos=0}return r.prototype.reset=function(d){return this._value=d,this._pos=0,this},r.prototype.next=function(){return this._pos+=1,this},r.prototype.hasNext=function(){return this._pos<this._value.length-1},r.prototype.cmp=function(d){var u=d.charCodeAt(0),f=this._value.charCodeAt(this._pos);return u-f},r.prototype.value=function(){return this._value[this._pos]},r}(),_=function(){function r(d){d===void 0&&(d=!0),this._splitOnBackslash=d}return r.prototype.reset=function(d){return this._value=d.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},r.prototype.hasNext=function(){return this._to<this._value.length},r.prototype.next=function(){this._from=this._to;for(var d=!0;this._to<this._value.length;this._to++){var u=this._value.charCodeAt(this._to);if(u===47||this._splitOnBackslash&&u===92)if(d)this._from++;else break;else d=!1}return this},r.prototype.cmp=function(d){for(var u=0,f=d.length,x=this._from;u<f&&x<this._to;){var C=d.charCodeAt(u)-this._value.charCodeAt(x);if(C!==0)return C;u+=1,x+=1}return f===this._to-this._from?0:u<f?-1:1},r.prototype.value=function(){return this._value.substring(this._from,this._to)},r}(),y=function(){function r(){}return r}(),v=function(){function r(d){this._iter=d}return r.forPaths=function(){return new r(new _)},r.forStrings=function(){return new r(new O)},r.prototype.clear=function(){this._root=void 0},r.prototype.set=function(d,u){var f=this._iter.reset(d),x;for(this._root||(this._root=new y,this._root.segment=f.value()),x=this._root;;){var C=f.cmp(x.segment);if(C>0)x.left||(x.left=new y,x.left.segment=f.value()),x=x.left;else if(C<0)x.right||(x.right=new y,x.right.segment=f.value()),x=x.right;else if(f.hasNext())f.next(),x.mid||(x.mid=new y,x.mid.segment=f.value()),x=x.mid;else break}var b=x.value;return x.value=u,x.key=d,b},r.prototype.get=function(d){for(var u=this._iter.reset(d),f=this._root;f;){var x=u.cmp(f.segment);if(x>0)f=f.left;else if(x<0)f=f.right;else if(u.hasNext())u.next(),f=f.mid;else break}return f?f.value:void 0},r.prototype.findSubstr=function(d){for(var u=this._iter.reset(d),f=this._root,x=void 0;f;){var C=u.cmp(f.segment);if(C>0)f=f.left;else if(C<0)f=f.right;else if(u.hasNext())u.next(),x=f.value||x,f=f.mid;else break}return f&&f.value||x},r.prototype.forEach=function(d){this._forEach(this._root,d)},r.prototype._forEach=function(d,u){d&&(this._forEach(d.left,u),d.value&&u(d.value,d.key),this._forEach(d.mid,u),this._forEach(d.right,u))},r}(),c=function(){function r(){this.map=new Map,this.ignoreCase=!1}return r.prototype.set=function(d,u){this.map.set(this.toKey(d),u)},r.prototype.get=function(d){return this.map.get(this.toKey(d))},r.prototype.toKey=function(d){var u=d.toString();return this.ignoreCase&&(u=u.toLowerCase()),u},r}(),l=function(){function r(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return r.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(r.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),r.prototype.get=function(d,u){u===void 0&&(u=0);var f=this._map.get(d);return f?(u!==0&&this.touch(f,u),f.value):void 0},r.prototype.set=function(d,u,f){f===void 0&&(f=0);var x=this._map.get(d);if(x)x.value=u,f!==0&&this.touch(x,f);else{x={key:d,value:u,next:void 0,previous:void 0};switch(f){case 0:this.addItemLast(x);break;case 1:this.addItemFirst(x);break;case 2:this.addItemLast(x);break;default:this.addItemLast(x);break}this._map.set(d,x),this._size++}},r.prototype.delete=function(d){return!!this.remove(d)},r.prototype.remove=function(d){var u=this._map.get(d);return u?(this._map.delete(d),this.removeItem(u),this._size--,u.value):void 0},r.prototype.forEach=function(d,u){for(var f=this._head;f;)u?d.bind(u)(f.value,f.key,this):d(f.value,f.key,this),f=f.next},r.prototype.trimOld=function(d){if(d>=this.size)return;if(d===0){this.clear();return}for(var u=this._head,f=this.size;u&&f>d;)this._map.delete(u.key),u=u.next,f--;this._head=u,this._size=f,u&&(u.previous=void 0)},r.prototype.addItemFirst=function(d){if(!this._head&&!this._tail)this._tail=d;else if(this._head)d.next=this._head,this._head.previous=d;else throw new Error("Invalid list");this._head=d},r.prototype.addItemLast=function(d){if(!this._head&&!this._tail)this._head=d;else if(this._tail)d.previous=this._tail,this._tail.next=d;else throw new Error("Invalid list");this._tail=d},r.prototype.removeItem=function(d){if(d===this._head&&d===this._tail)this._head=void 0,this._tail=void 0;else if(d===this._head){if(!d.next)throw new Error("Invalid list");d.next.previous=void 0,this._head=d.next}else if(d===this._tail){if(!d.previous)throw new Error("Invalid list");d.previous.next=void 0,this._tail=d.previous}else{var u=d.next,f=d.previous;if(!u||!f)throw new Error("Invalid list");u.previous=f,f.next=u}d.next=void 0,d.previous=void 0},r.prototype.touch=function(d,u){if(!this._head||!this._tail)throw new Error("Invalid list");if(u!==1&&u!==2)return;if(u===1){if(d===this._head)return;var f=d.next,x=d.previous;d===this._tail?(x.next=void 0,this._tail=x):(f.previous=x,x.next=f),d.previous=void 0,d.next=this._head,this._head.previous=d,this._head=d}else if(u===2){if(d===this._tail)return;var f=d.next,x=d.previous;d===this._head?(f.previous=void 0,this._head=f):(f.previous=x,x.next=f),d.next=void 0,d.previous=this._tail,this._tail.next=d,this._tail=d}},r.prototype.toJSON=function(){var d=[];return this.forEach(function(u,f){d.push([f,u])}),d},r}(),s=function(r){m(d,r);function d(u,f){f===void 0&&(f=1);var x=r.call(this)||this;return x._limit=u,x._ratio=Math.min(Math.max(0,f),1),x}return d.prototype.get=function(u){return r.prototype.get.call(this,u,2)},d.prototype.peek=function(u){return r.prototype.get.call(this,u,0)},d.prototype.set=function(u,f){r.prototype.set.call(this,u,f,2),this.checkTrim()},d.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},d}(l)},RELg:function(h,F,o){var m=o("MFOe"),a=m.Global;h.exports={name:"oldIE-userDataStorage",write:v,read:c,each:l,remove:s,clearAll:r};var D="storejs",O=a.document,_=f(),y=(a.navigator?a.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function v(x,C){if(y)return;var b=u(x);_(function(g){g.setAttribute(b,C),g.save(D)})}function c(x){if(y)return;var C=u(x),b=null;return _(function(g){b=g.getAttribute(C)}),b}function l(x){_(function(C){for(var b=C.XMLDocument.documentElement.attributes,g=b.length-1;g>=0;g--){var E=b[g];x(C.getAttribute(E.name),E.name)}})}function s(x){var C=u(x);_(function(b){b.removeAttribute(C),b.save(D)})}function r(){_(function(x){var C=x.XMLDocument.documentElement.attributes;x.load(D);for(var b=C.length-1;b>=0;b--)x.removeAttribute(C[b].name);x.save(D)})}var d=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function u(x){return x.replace(/^\d/,"___$&").replace(d,"___")}function f(){if(!O||!O.documentElement||!O.documentElement.addBehavior)return null;var x="script",C,b,g;try{b=new ActiveXObject("htmlfile"),b.open(),b.write("<"+x+">document.w=window</"+x+'><iframe src="/favicon.ico"></iframe>'),b.close(),C=b.w.frames[0].document,g=C.createElement("div")}catch(E){g=O.createElement("div"),C=O.body}return function(E){var A=[].slice.call(arguments,0);A.unshift(g),C.appendChild(g),g.addBehavior("#default#userData"),g.load(D),E.apply(this,A),C.removeChild(g);return}}},RxwV:function(h,F,o){"use strict";var m=o("q1tI"),a=o("uciX"),D=o("2W6z"),O=o.n(D),_=o("4IlW"),y=o("uK0f"),v=o.n(y);function c(ge,ye){if(ge===ye)return!0;if(!ge||!ye)return!1;var ee=ge.length;if(ye.length!==ee)return!1;for(var oe=0;oe<ee;oe++)if(ge[oe]!==ye[oe])return!1;return!0}function l(ge){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l=function(ee){return typeof ee}:l=function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},l(ge)}function s(ge,ye){if(!(ge instanceof ye))throw new TypeError("Cannot call a class as a function")}function r(ge,ye){for(var ee=0;ee<ye.length;ee++){var oe=ye[ee];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(ge,oe.key,oe)}}function d(ge,ye,ee){return ye&&r(ge.prototype,ye),ee&&r(ge,ee),ge}function u(ge,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function");ge.prototype=Object.create(ye&&ye.prototype,{constructor:{value:ge,writable:!0,configurable:!0}}),ye&&f(ge,ye)}function f(ge,ye){return f=Object.setPrototypeOf||function(oe,Z){return oe.__proto__=Z,oe},f(ge,ye)}function x(ge){var ye=g();return function(){var ee=E(ge),oe;if(ye){var Z=E(this).constructor;oe=Reflect.construct(ee,arguments,Z)}else oe=ee.apply(this,arguments);return C(this,oe)}}function C(ge,ye){return ye&&(l(ye)==="object"||typeof ye=="function")?ye:b(ge)}function b(ge){if(ge===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge}function g(){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(ge){return!1}}function E(ge){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(ee){return ee.__proto__||Object.getPrototypeOf(ee)},E(ge)}var A=function(){var ge=function(ye){u(oe,ye);var ee=x(oe);function oe(){var Z;return s(this,oe),Z=ee.apply(this,arguments),Z.menuItems={},Z.saveMenuItem=function(ue){return function(V){Z.menuItems[ue]=V}},Z}return d(oe,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(ue){!ue.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(ue){var V=this.props,Q=V.fieldNames,ae=V.defaultFieldNames;return Q[ue]||ae[ue]}},{key:"getOption",value:function(ue,V){var Q=this.props,ae=Q.prefixCls,K=Q.expandTrigger,j=Q.expandIcon,k=Q.loadingIcon,W=this.props.onSelect.bind(this,ue,V),we=this.props.onItemDoubleClick.bind(this,ue,V),be={onClick:W,onDoubleClick:we},Te="".concat(ae,"-menu-item"),Be=null,Fe=ue[this.getFieldName("children")]&&ue[this.getFieldName("children")].length>0;(Fe||ue.isLeaf===!1)&&(Te+=" ".concat(ae,"-menu-item-expand"),ue.loading||(Be=m.createElement("span",{className:"".concat(ae,"-menu-item-expand-icon")},j))),K==="hover"&&(Fe||ue.isLeaf===!1)&&(be={onMouseEnter:this.delayOnSelect.bind(this,W),onMouseLeave:this.delayOnSelect.bind(this),onClick:W}),this.isActiveOption(ue,V)&&(Te+=" ".concat(ae,"-menu-item-active"),be.ref=this.saveMenuItem(V)),ue.disabled&&(Te+=" ".concat(ae,"-menu-item-disabled"));var Ue=null;ue.loading&&(Te+=" ".concat(ae,"-menu-item-loading"),Ue=k||null);var We="";return"title"in ue?We=ue.title:typeof ue[this.getFieldName("label")]=="string"&&(We=ue[this.getFieldName("label")]),m.createElement("li",Object.assign({key:ue[this.getFieldName("value")],className:Te,title:We},be,{role:"menuitem",onMouseDown:function(Ge){return Ge.preventDefault()}}),ue[this.getFieldName("label")],Be,Ue)}},{key:"getActiveOptions",value:function(ue){var V=this,Q=this.props.options,ae=ue||this.props.activeValue;return v()(Q,function(K,j){return K[V.getFieldName("value")]===ae[j]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var ue=this,V=this.props.options,Q=this.getActiveOptions().map(function(ae){return ae[ue.getFieldName("children")]}).filter(function(ae){return!!ae});return Q.unshift(V),Q}},{key:"delayOnSelect",value:function(ue){for(var V=this,Q=arguments.length,ae=new Array(Q>1?Q-1:0),K=1;K<Q;K++)ae[K-1]=arguments[K];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof ue=="function"&&(this.delayTimer=window.setTimeout(function(){ue(ae),V.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var ue=this.getShowOptions().length,V=0;V<ue;V++){var Q=this.menuItems[V];Q&&Q.parentElement&&(Q.parentElement.scrollTop=Q.offsetTop)}}},{key:"isActiveOption",value:function(ue,V){var Q=this.props.activeValue,ae=Q===void 0?[]:Q;return ae[V]===ue[this.getFieldName("value")]}},{key:"render",value:function(){var ue=this,V=this.props,Q=V.prefixCls,ae=V.dropdownMenuColumnStyle;return m.createElement("div",null,this.getShowOptions().map(function(K,j){return m.createElement("ul",{className:"".concat(Q,"-menu"),key:j,style:ae},K.map(function(k){return ue.getOption(k,j)}))}))}}]),oe}(m.Component);return ge.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},ge}(),N=A,M={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},w=M;function Y(ge){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Y=function(ee){return typeof ee}:Y=function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},Y(ge)}function X(ge,ye){if(ge==null)return{};var ee=P(ge,ye),oe,Z;if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(ge);for(Z=0;Z<ue.length;Z++){if(oe=ue[Z],ye.indexOf(oe)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(ge,oe))continue;ee[oe]=ge[oe]}}return ee}function P(ge,ye){if(ge==null)return{};var ee={},oe=Object.keys(ge),Z,ue;for(ue=0;ue<oe.length;ue++){if(Z=oe[ue],ye.indexOf(Z)>=0)continue;ee[Z]=ge[Z]}return ee}function H(ge){return de(ge)||he(ge)||$(ge)||G()}function G(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $(ge,ye){if(!ge)return;if(typeof ge=="string")return J(ge,ye);var ee=Object.prototype.toString.call(ge).slice(8,-1);if(ee==="Object"&&ge.constructor&&(ee=ge.constructor.name),ee==="Map"||ee==="Set")return Array.from(ge);if(ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ee))return J(ge,ye)}function he(ge){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(ge))return Array.from(ge)}function de(ge){if(Array.isArray(ge))return J(ge)}function J(ge,ye){(ye==null||ye>ge.length)&&(ye=ge.length);for(var ee=0,oe=new Array(ye);ee<ye;ee++)oe[ee]=ge[ee];return oe}function fe(ge,ye){if(!(ge instanceof ye))throw new TypeError("Cannot call a class as a function")}function q(ge,ye){for(var ee=0;ee<ye.length;ee++){var oe=ye[ee];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(ge,oe.key,oe)}}function U(ge,ye,ee){return ye&&q(ge.prototype,ye),ee&&q(ge,ee),ge}function z(ge,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function");ge.prototype=Object.create(ye&&ye.prototype,{constructor:{value:ge,writable:!0,configurable:!0}}),ye&&L(ge,ye)}function L(ge,ye){return L=Object.setPrototypeOf||function(oe,Z){return oe.__proto__=Z,oe},L(ge,ye)}function T(ge){var ye=me();return function(){var ee=xe(ge),oe;if(ye){var Z=xe(this).constructor;oe=Reflect.construct(ee,arguments,Z)}else oe=ee.apply(this,arguments);return I(this,oe)}}function I(ge,ye){return ye&&(Y(ye)==="object"||typeof ye=="function")?ye:se(ge)}function se(ge){if(ge===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ge}function me(){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(ge){return!1}}function xe(ge){return xe=Object.setPrototypeOf?Object.getPrototypeOf:function(ee){return ee.__proto__||Object.getPrototypeOf(ee)},xe(ge)}var Ee=function(){var ge=function(ye){z(oe,ye);var ee=T(oe);function oe(Z){var ue;fe(this,oe),ue=ee.call(this,Z),ue.setPopupVisible=function(Q){var ae=ue.state.value;"popupVisible"in ue.props||ue.setState({popupVisible:Q}),Q&&!ue.state.popupVisible&&ue.setState({activeValue:ae}),ue.props.onPopupVisibleChange(Q)},ue.handleChange=function(Q,ae,K){var j=ae.visible;(K.type!=="keydown"||K.keyCode===_.a.ENTER)&&(ue.props.onChange(Q.map(function(k){return k[ue.getFieldName("value")]}),Q),ue.setPopupVisible(j))},ue.handlePopupVisibleChange=function(Q){ue.setPopupVisible(Q)},ue.handleMenuSelect=function(Q,ae,K){var j=ue.trigger.getRootDomNode();j&&j.focus&&j.focus();var k=ue.props,W=k.changeOnSelect,we=k.loadData,be=k.expandTrigger;if(!Q||Q.disabled)return;var Te=ue.state.activeValue;Te=Te.slice(0,ae+1),Te[ae]=Q[ue.getFieldName("value")];var Be=ue.getActiveOptions(Te);if(Q.isLeaf===!1&&!Q[ue.getFieldName("children")]&&we){W&&ue.handleChange(Be,{visible:!0},K),ue.setState({activeValue:Te}),we(Be);return}var Fe={};!Q[ue.getFieldName("children")]||!Q[ue.getFieldName("children")].length?(ue.handleChange(Be,{visible:!1},K),Fe.value=Te):W&&(K.type==="click"||K.type==="keydown")&&(be==="hover"?ue.handleChange(Be,{visible:!1},K):ue.handleChange(Be,{visible:!0},K),Fe.value=Te),Fe.activeValue=Te,("value"in ue.props||K.type==="keydown"&&K.keyCode!==_.a.ENTER)&&delete Fe.value,ue.setState(Fe)},ue.handleItemDoubleClick=function(){var Q=ue.props.changeOnSelect;Q&&ue.setPopupVisible(!1)},ue.handleKeyDown=function(Q){var ae=ue.props.children;if(ae&&ae.props.onKeyDown){ae.props.onKeyDown(Q);return}var K=H(ue.state.activeValue),j=K.length-1<0?0:K.length-1,k=ue.getCurrentLevelOptions(),W=k.map(function(Be){return Be[ue.getFieldName("value")]}).indexOf(K[j]);if(Q.keyCode!==_.a.DOWN&&Q.keyCode!==_.a.UP&&Q.keyCode!==_.a.LEFT&&Q.keyCode!==_.a.RIGHT&&Q.keyCode!==_.a.ENTER&&Q.keyCode!==_.a.SPACE&&Q.keyCode!==_.a.BACKSPACE&&Q.keyCode!==_.a.ESC&&Q.keyCode!==_.a.TAB)return;if(!ue.state.popupVisible&&Q.keyCode!==_.a.BACKSPACE&&Q.keyCode!==_.a.LEFT&&Q.keyCode!==_.a.RIGHT&&Q.keyCode!==_.a.ESC&&Q.keyCode!==_.a.TAB){ue.setPopupVisible(!0);return}if(Q.keyCode===_.a.DOWN||Q.keyCode===_.a.UP){Q.preventDefault();var we=W;we!==-1?Q.keyCode===_.a.DOWN?(we+=1,we=we>=k.length?0:we):(we-=1,we=we<0?k.length-1:we):we=0,K[j]=k[we][ue.getFieldName("value")]}else if(Q.keyCode===_.a.LEFT||Q.keyCode===_.a.BACKSPACE)Q.preventDefault(),K.splice(K.length-1,1);else if(Q.keyCode===_.a.RIGHT)Q.preventDefault(),k[W]&&k[W][ue.getFieldName("children")]&&K.push(k[W][ue.getFieldName("children")][0][ue.getFieldName("value")]);else if(Q.keyCode===_.a.ESC||Q.keyCode===_.a.TAB){ue.setPopupVisible(!1);return}(!K||K.length===0)&&ue.setPopupVisible(!1);var be=ue.getActiveOptions(K),Te=be[be.length-1];ue.handleMenuSelect(Te,be.length-1,Q),ue.props.onKeyDown&&ue.props.onKeyDown(Q)},ue.saveTrigger=function(Q){ue.trigger=Q};var V=[];return"value"in Z?V=Z.value||[]:"defaultValue"in Z&&(V=Z.defaultValue||[]),O()(!("filedNames"in Z),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),ue.state={popupVisible:Z.popupVisible,activeValue:V,value:V,prevProps:Z},ue.defaultFieldNames={label:"label",value:"value",children:"children"},ue}return U(oe,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(ue){var V=this.defaultFieldNames,Q=this.props,ae=Q.fieldNames,K=Q.filedNames;return"filedNames"in this.props?K[ue]||V[ue]:ae[ue]||V[ue]}},{key:"getFieldNames",value:function(){var ue=this.props,V=ue.fieldNames,Q=ue.filedNames;return"filedNames"in this.props?Q:V}},{key:"getCurrentLevelOptions",value:function(){var ue=this,V=this.props.options,Q=V===void 0?[]:V,ae=this.state.activeValue,K=ae===void 0?[]:ae,j=v()(Q,function(k,W){return k[ue.getFieldName("value")]===K[W]},{childrenKeyName:this.getFieldName("children")});return j[j.length-2]?j[j.length-2][this.getFieldName("children")]:H(Q).filter(function(k){return!k.disabled})}},{key:"getActiveOptions",value:function(ue){var V=this;return v()(this.props.options||[],function(Q,ae){return Q[V.getFieldName("value")]===ue[ae]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var ue=this.props,V=ue.prefixCls,Q=ue.transitionName,ae=ue.popupClassName,K=ue.options,j=K===void 0?[]:K,k=ue.disabled,W=ue.builtinPlacements,we=ue.popupPlacement,be=ue.children,Te=ue.dropdownRender,Be=X(ue,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),Fe=m.createElement("div",null),Ue="";j&&j.length>0?Fe=m.createElement(N,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):Ue=" ".concat(V,"-menus-empty");var We=Fe;return Te&&(We=Te(Fe)),m.createElement(a.a,Object.assign({ref:this.saveTrigger},Be,{popupPlacement:we,builtinPlacements:W,popupTransitionName:Q,action:k?[]:["click"],popupVisible:k?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(V,"-menus"),popupClassName:ae+Ue,popup:We}),m.cloneElement(be,{onKeyDown:this.handleKeyDown,tabIndex:k?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(ue,V){var Q=V.prevProps,ae=Q===void 0?{}:Q,K={prevProps:ue};return"value"in ue&&!c(ae.value,ue.value)&&(K.value=ue.value||[],"loadData"in ue||(K.activeValue=ue.value||[])),"popupVisible"in ue&&(K.popupVisible=ue.popupVisible),K}}]),oe}(m.Component);return ge.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:w,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},ge}(),Oe=Ee,le=F.a=Oe},S6kV:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("OLod"))})(this,function(m){return m.mode.OFB=function(){var a=m.lib.BlockCipherMode.extend(),D=a.Encryptor=a.extend({processBlock:function(O,_){var y=this._cipher,v=y.blockSize,c=this._iv,l=this._keystream;c&&(l=this._keystream=c.slice(0),this._iv=void 0),y.encryptBlock(l,0);for(var s=0;s<v;s++)O[_+s]^=l[s]}});return a.Decryptor=D,a}(),m.mode.OFB})},SJMd:function(h,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 o,m,a,D=!1,O,_;window.PR_SHOULD_USE_CONTINUATION=!0;var y,v;(function(){var c=window,l=["break,continue,do,else,for,if,return,while"],s=[l,"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=[s,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],d=[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"],u=[r,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],f=[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"],x="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",C=[r,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],b="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",g=[l,"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"],E=[l,"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"],A=[l,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],N=[d,f,u,C,b,g,E,A],M=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,w="str",Y="kwd",X="com",P="typ",H="lit",G="pun",$="pln",he="tag",de="dec",J="src",fe="atn",q="atv",U="nocode",z="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function L(K){for(var j=0,k=!1,W=!1,we=0,be=K.length;we<be;++we){var Te=K[we];if(Te.ignoreCase)W=!0;else if(/[a-z]/i.test(Te.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){k=!0,W=!1;break}}var Be={b:8,t:9,n:10,v:11,f:12,r:13};function Fe(Je){var Re=Je.charCodeAt(0);if(Re!==92)return Re;var Ze=Je.charAt(1);return Re=Be[Ze],Re||("0"<=Ze&&Ze<="7"?parseInt(Je.substring(1),8):Ze==="u"||Ze==="x"?parseInt(Je.substring(2),16):Je.charCodeAt(1))}function Ue(Je){if(Je<32)return(Je<16?"\\x0":"\\x")+Je.toString(16);var Re=String.fromCharCode(Je);return Re==="\\"||Re==="-"||Re==="]"||Re==="^"?"\\"+Re:Re}function We(Je){var Re=Je.substring(1,Je.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")),Ze=[],nt=Re[0]==="^",Ke=["["];nt&&Ke.push("^");for(var $e=nt?1:0,je=Re.length;$e<je;++$e){var Me=Re[$e];if(/\\[bdsw]/i.test(Me))Ke.push(Me);else{var Pe=Fe(Me),Se;$e+2<je&&Re[$e+1]==="-"?(Se=Fe(Re[$e+2]),$e+=2):Se=Pe,Ze.push([Pe,Se]),Se<65||Pe>122||(Se<65||Pe>90||Ze.push([Math.max(65,Pe)|32,Math.min(Se,90)|32]),Se<97||Pe>122||Ze.push([Math.max(97,Pe)&~32,Math.min(Se,122)&~32]))}}Ze.sort(function(Xe,Ae){return Xe[0]-Ae[0]||Ae[1]-Xe[1]});for(var _e=[],ke=[],$e=0;$e<Ze.length;++$e){var Le=Ze[$e];Le[0]<=ke[1]+1?ke[1]=Math.max(ke[1],Le[1]):_e.push(ke=Le)}for(var $e=0;$e<_e.length;++$e){var Le=_e[$e];Ke.push(Ue(Le[0])),Le[1]>Le[0]&&(Le[1]+1>Le[0]&&Ke.push("-"),Ke.push(Ue(Le[1])))}return Ke.push("]"),Ke.join("")}function Ve(Je){for(var Re=Je.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")),Ze=Re.length,nt=[],Ke=0,$e=0;Ke<Ze;++Ke){var je=Re[Ke];if(je==="(")++$e;else if(je.charAt(0)==="\\"){var Me=+je.substring(1);Me&&(Me<=$e?nt[Me]=-1:Re[Ke]=Ue(Me))}}for(var Ke=1;Ke<nt.length;++Ke)nt[Ke]===-1&&(nt[Ke]=++j);for(var Ke=0,$e=0;Ke<Ze;++Ke){var je=Re[Ke];if(je==="(")++$e,nt[$e]||(Re[Ke]="(?:");else if(je.charAt(0)==="\\"){var Me=+je.substring(1);Me&&Me<=$e&&(Re[Ke]="\\"+nt[Me])}}for(var Ke=0;Ke<Ze;++Ke)Re[Ke]==="^"&&Re[Ke+1]!=="^"&&(Re[Ke]="");if(Je.ignoreCase&&k)for(var Ke=0;Ke<Ze;++Ke){var je=Re[Ke],Pe=je.charAt(0);je.length>=2&&Pe==="["?Re[Ke]=We(je):Pe!=="\\"&&(Re[Ke]=je.replace(/[a-zA-Z]/g,function(ke){var Le=ke.charCodeAt(0);return"["+String.fromCharCode(Le&~32,Le|32)+"]"}))}return Re.join("")}for(var Ge=[],we=0,be=K.length;we<be;++we){var Te=K[we];if(Te.global||Te.multiline)throw new Error(""+Te);Ge.push("(?:"+Ve(Te)+")")}return new RegExp(Ge.join("|"),W?"gi":"g")}function T(K,j){var k=/(?:^|\s)nocode(?:\s|$)/,W=[],we=0,be=[],Te=0;function Be(Fe){var Ue=Fe.nodeType;if(Ue==1){if(k.test(Fe.className))return;for(var We=Fe.firstChild;We;We=We.nextSibling)Be(We);var Ve=Fe.nodeName.toLowerCase();(Ve==="br"||Ve==="li")&&(W[Te]=`
|
|
|
`,be[Te<<1]=we++,be[Te++<<1|1]=Fe)}else if(Ue==3||Ue==4){var Ge=Fe.nodeValue;Ge.length&&(j?Ge=Ge.replace(/\r\n?/g,`
|
|
|
`):Ge=Ge.replace(/[ \t\r\n]+/g," "),W[Te]=Ge,be[Te<<1]=we,we+=Ge.length,be[Te++<<1|1]=Fe)}}return Be(K),{sourceCode:W.join("").replace(/\n$/,""),spans:be}}function I(K,j,k,W,we){if(!k)return;var be={sourceNode:K,pre:1,langExtension:null,numberLines:null,sourceCode:k,spans:null,basePos:j,decorations:null};W(be),we.push.apply(we,be.decorations)}var se=/\S/;function me(K){for(var j=void 0,k=K.firstChild;k;k=k.nextSibling){var W=k.nodeType;j=W===1?j?K:k:W===3&&se.test(k.nodeValue)?K:j}return j===K?void 0:j}function xe(K,j){var k={},W;(function(){for(var Te=K.concat(j),Be=[],Fe={},Ue=0,We=Te.length;Ue<We;++Ue){var Ve=Te[Ue],Ge=Ve[3];if(Ge)for(var Je=Ge.length;--Je>=0;)k[Ge.charAt(Je)]=Ve;var Re=Ve[1],Ze=""+Re;Fe.hasOwnProperty(Ze)||(Be.push(Re),Fe[Ze]=null)}Be.push(/[\0-\uffff]/),W=L(Be)})();var we=j.length,be=function(Te){for(var Be=Te.sourceCode,Fe=Te.basePos,Ue=Te.sourceNode,We=[Fe,$],Ve=0,Ge=Be.match(W)||[],Je={},Re=0,Ze=Ge.length;Re<Ze;++Re){var nt=Ge[Re],Ke=Je[nt],$e=void 0,je;if(typeof Ke=="string")je=!1;else{var Me=k[nt.charAt(0)];if(Me)$e=nt.match(Me[1]),Ke=Me[0];else{for(var Pe=0;Pe<we;++Pe)if(Me=j[Pe],$e=nt.match(Me[1]),$e){Ke=Me[0];break}$e||(Ke=$)}je=Ke.length>=5&&Ke.substring(0,5)==="lang-",je&&!($e&&typeof $e[1]=="string")&&(je=!1,Ke=J),je||(Je[nt]=Ke)}var Se=Ve;if(Ve+=nt.length,!je)We.push(Fe+Se,Ke);else{var _e=$e[1],ke=nt.indexOf(_e),Le=ke+_e.length;$e[2]&&(Le=nt.length-$e[2].length,ke=Le-_e.length);var Xe=Ke.substring(5);I(Ue,Fe+Se,nt.substring(0,ke),be,We),I(Ue,Fe+Se+ke,_e,oe(Xe,_e),We),I(Ue,Fe+Se+Le,nt.substring(Le),be,We)}}Te.decorations=We};return be}function Ee(K){var j=[],k=[];K.tripleQuotedStrings?j.push([w,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):K.multiLineStrings?j.push([w,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):j.push([w,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),K.verbatimStrings&&k.push([w,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var W=K.hashComments;W&&(K.cStyleComments?(W>1?j.push([X,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):j.push([X,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),k.push([w,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):j.push([X,/^#[^\r\n]*/,null,"#"])),K.cStyleComments&&(k.push([X,/^\/\/[^\r\n]*/,null]),k.push([X,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var we=K.regexLiterals;if(we){var be=we>1?"":`
|
|
|
\r`,Te=be?".":"[\\S\\s]",Be="/(?=[^/*"+be+"])(?:[^/\\x5B\\x5C"+be+"]|\\x5C"+Te+"|\\x5B(?:[^\\x5C\\x5D"+be+"]|\\x5C"+Te+")*(?:\\x5D|$))+/";k.push(["lang-regex",RegExp("^"+z+"("+Be+")")])}var Fe=K.types;Fe&&k.push([P,Fe]);var Ue=(""+K.keywords).replace(/^ | $/g,"");Ue.length&&k.push([Y,new RegExp("^(?:"+Ue.replace(/[\s,]+/g,"|")+")\\b"),null]),j.push([$,/^\s+/,null,` \r
|
|
|
\xA0`]);var We="^.[^\\s\\w.$@'\"`/\\\\]*";return K.regexLiterals&&(We+="(?!s*/)"),k.push([H,/^@[a-z_$][a-z_$@0-9]*/i,null],[P,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[$,/^[a-z_$][a-z_$@0-9]*/i,null],[H,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[$,/^\\[\s\S]?/,null],[G,new RegExp(We),null]),xe(j,k)}var Oe=Ee({keywords:N,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function le(K,j,k){for(var W=/(?:^|\s)nocode(?:\s|$)/,we=/\r\n?|\n/,be=K.ownerDocument,Te=be.createElement("li");K.firstChild;)Te.appendChild(K.firstChild);var Be=[Te];function Fe(Re){var Ze=Re.nodeType;if(Ze==1&&!W.test(Re.className))if(Re.nodeName==="br")Ue(Re),Re.parentNode&&Re.parentNode.removeChild(Re);else for(var nt=Re.firstChild;nt;nt=nt.nextSibling)Fe(nt);else if((Ze==3||Ze==4)&&k){var Ke=Re.nodeValue,$e=Ke.match(we);if($e){var je=Ke.substring(0,$e.index);Re.nodeValue=je;var Me=Ke.substring($e.index+$e[0].length);if(Me){var Pe=Re.parentNode;Pe.insertBefore(be.createTextNode(Me),Re.nextSibling)}Ue(Re),je||Re.parentNode.removeChild(Re)}}}function Ue(Re){for(;!Re.nextSibling;)if(Re=Re.parentNode,!Re)return;function Ze($e,je){var Me=je?$e.cloneNode(!1):$e,Pe=$e.parentNode;if(Pe){var Se=Ze(Pe,1),_e=$e.nextSibling;Se.appendChild(Me);for(var ke=_e;ke;ke=_e)_e=ke.nextSibling,Se.appendChild(ke)}return Me}for(var nt=Ze(Re.nextSibling,0),Ke;(Ke=nt.parentNode)&&Ke.nodeType===1;)nt=Ke;Be.push(nt)}for(var We=0;We<Be.length;++We)Fe(Be[We]);j===(j|0)&&Be[0].setAttribute("value",j);var Ve=be.createElement("ol");Ve.className="linenums";for(var Ge=Math.max(0,j-1|0)||0,We=0,Je=Be.length;We<Je;++We)Te=Be[We],Te.className="L"+(We+Ge)%10,Te.firstChild||Te.appendChild(be.createTextNode("\xA0")),Ve.appendChild(Te);K.appendChild(Ve)}function ge(K){var j=/\bMSIE\s(\d+)/.exec(navigator.userAgent);j=j&&+j[1]<=8;var k=/\n/g,W=K.sourceCode,we=W.length,be=0,Te=K.spans,Be=Te.length,Fe=0,Ue=K.decorations,We=Ue.length,Ve=0;Ue[We]=we;var Ge,Je;for(Je=Ge=0;Je<We;)Ue[Je]!==Ue[Je+2]?(Ue[Ge++]=Ue[Je++],Ue[Ge++]=Ue[Je++]):Je+=2;for(We=Ge,Je=Ge=0;Je<We;){for(var Re=Ue[Je],Ze=Ue[Je+1],nt=Je+2;nt+2<=We&&Ue[nt+1]===Ze;)nt+=2;Ue[Ge++]=Re,Ue[Ge++]=Ze,Je=nt}We=Ue.length=Ge;var Ke=K.sourceNode,$e="";Ke&&($e=Ke.style.display,Ke.style.display="none");try{for(var je=null;Fe<Be;){var Me=Te[Fe],Pe=Te[Fe+2]||we,Se=Ue[Ve+2]||we,nt=Math.min(Pe,Se),_e=Te[Fe+1],ke;if(_e.nodeType!==1&&(ke=W.substring(be,nt))){j&&(ke=ke.replace(k,"\r")),_e.nodeValue=ke;var Le=_e.ownerDocument,Xe=Le.createElement("span");Xe.className=Ue[Ve+1];var Ae=_e.parentNode;Ae.replaceChild(Xe,_e),Xe.appendChild(_e),be<Pe&&(Te[Fe+1]=_e=Le.createTextNode(W.substring(nt,Pe)),Ae.insertBefore(_e,Xe.nextSibling))}be=nt,be>=Pe&&(Fe+=2),be>=Se&&(Ve+=2)}}finally{Ke&&(Ke.style.display=$e)}}var ye={};function ee(K,j){for(var k=j.length;--k>=0;){var W=j[k];ye.hasOwnProperty(W)?c.console&&console.warn("cannot override language handler %s",W):ye[W]=K}}function oe(K,j){return K&&ye.hasOwnProperty(K)||(K=/^\s*</.test(j)?"default-markup":"default-code"),ye[K]}ee(Oe,["default-code"]),ee(xe([],[[$,/^[^<?]+/],[de,/^<!\w[^>]*(?:>|$)/],[X,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[G,/^(?:<[%?]|[%?]>)/],["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"]),ee(xe([[$,/^[\s]+/,null,` \r
|
|
|
`],[q,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[he,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[fe,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[G,/^[=<>\/]+/],["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"]),ee(xe([],[[q,/^[\s\S]+/]]),["uq.val"]),ee(Ee({keywords:d,hashComments:!0,cStyleComments:!0,types:M}),["c","cc","cpp","cxx","cyc","m"]),ee(Ee({keywords:"null,true,false"}),["json"]),ee(Ee({keywords:f,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:M}),["cs"]),ee(Ee({keywords:u,cStyleComments:!0}),["java"]),ee(Ee({keywords:A,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),ee(Ee({keywords:g,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),ee(Ee({keywords:b,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),ee(Ee({keywords:E,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),ee(Ee({keywords:C,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),ee(Ee({keywords:x,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),ee(xe([],[[w,/^[\s\S]+/]]),["regex"]);function Z(K){var j=K.langExtension;try{var k=T(K.sourceNode,K.pre),W=k.sourceCode;K.sourceCode=W,K.spans=k.spans,K.basePos=0,oe(j,W)(K),ge(K)}catch(we){c.console&&console.log(we&&we.stack||we)}}function ue(K,j,k){var W=k||!1,we=j||null,be=document.createElement("div");be.innerHTML="<pre>"+K+"</pre>",be=be.firstChild,W&&le(be,W,!0);var Te={langExtension:we,numberLines:W,sourceNode:be,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Z(Te),be.innerHTML}function V(K,j){var k=j||document.body,W=k.ownerDocument||document;function we(Me){return k.getElementsByTagName(Me)}for(var be=[we("pre"),we("code"),we("xmp")],Te=[],Be=0;Be<be.length;++Be)for(var Fe=0,Ue=be[Be].length;Fe<Ue;++Fe)Te.push(be[Be][Fe]);be=null;var We=Date;We.now||(We={now:function(){return+new Date}});var Ve=0,Ge=/\blang(?:uage)?-([\w.]+)(?!\S)/,Je=/\bprettyprint\b/,Re=/\bprettyprinted\b/,Ze=/pre|xmp/i,nt=/^code$/i,Ke=/^(?:pre|code|xmp)$/i,$e={};function je(){for(var Me=c.PR_SHOULD_USE_CONTINUATION?We.now()+250:Infinity;Ve<Te.length&&We.now()<Me;Ve++){for(var Pe=Te[Ve],Se=$e,_e=Pe;_e=_e.previousSibling;){var ke=_e.nodeType,Le=(ke===7||ke===8)&&_e.nodeValue;if(Le?!/^\??prettify\b/.test(Le):ke!==3||/\S/.test(_e.nodeValue))break;if(Le){Se={},Le.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Qt,Ut,Gt){Se[Ut]=Gt});break}}var Xe=Pe.className;if((Se!==$e||Je.test(Xe))&&!Re.test(Xe)){for(var Ae=!1,Ye=Pe.parentNode;Ye;Ye=Ye.parentNode){var it=Ye.tagName;if(Ke.test(it)&&Ye.className&&Je.test(Ye.className)){Ae=!0;break}}if(!Ae){Pe.className+=" prettyprinted";var lt=Se.lang;if(!lt){lt=Xe.match(Ge);var dt;!lt&&(dt=me(Pe))&&nt.test(dt.tagName)&&(lt=dt.className.match(Ge)),lt&&(lt=lt[1])}var ut;if(Ze.test(Pe.tagName))ut=1;else{var xt=Pe.currentStyle,ht=W.defaultView,Rt=xt?xt.whiteSpace:ht&&ht.getComputedStyle?ht.getComputedStyle(Pe,null).getPropertyValue("white-space"):0;ut=Rt&&Rt.substring(0,3)==="pre"}var Xt=Se.linenums;(Xt=Xt==="true"||+Xt)||(Xt=Xe.match(/\blinenums\b(?::(\d+))?/),Xt=Xt?Xt[1]&&Xt[1].length?+Xt[1]:!0:!1),Xt&&le(Pe,Xt,ut);var er={langExtension:lt,sourceNode:Pe,numberLines:Xt,pre:ut,sourceCode:null,basePos:null,spans:null,decorations:null};Z(er)}}}Ve<Te.length?c.setTimeout(je,250):typeof K=="function"&&K()}je()}var Q=c.PR={createSimpleLexer:xe,registerLangHandler:ee,sourceDecorator:Ee,PR_ATTRIB_NAME:fe,PR_ATTRIB_VALUE:q,PR_COMMENT:X,PR_DECLARATION:de,PR_KEYWORD:Y,PR_LITERAL:H,PR_NOCODE:U,PR_PLAIN:$,PR_PUNCTUATION:G,PR_SOURCE:J,PR_STRING:w,PR_TAG:he,PR_TYPE:P,prettyPrintOne:D?c.prettyPrintOne=ue:y=ue,prettyPrint:v=D?c.prettyPrint=V:v=V},ae=c.define;typeof ae=="function"&&ae.amd&&ae("google-code-prettify",[],function(){return Q})})()},T1X5:function(h,F){h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAABsCAYAAACPZlfNAAALdklEQVR4Xu2dC2wc1RVAzx1nDXFiO4SEhqxtxS0JHzX94TS0FEKLALX8WkKbqrRVKQrh15Zfq0IqIaSGSOXb8ktANFJbKqUFWigEAUohfFRQDC1KxS8UR/7wDbZ3TRxix3urN951No7Xnt15M7Mbz0hRImXevffds/PmzXv33StU0KWqTlcfh6mwkCHmq8M8B5oUZosyS6EeOCD7x/Rsl/kjkFJhu8AHGWiXDNuoYqsoW5K1vCkimUpxg5SzoW+r1gylOUGErygci9IC1Fi2uR+hVeA5VZ6tquOpuSL9lnVYE1d2wNo+0jnVylLNcKYKx6EcaK23XgQJH4vyjDg8OCDc3zxd3vXSLKx7ygJYW5seOGUmZ6GcJ8IShaqwHDCeHoEhVTYh3LO7mweam+XjqO2KFNjWPp09VblUlQuAmVE7YwL93SKs2SncMr9WPojK1kiAdWzXpCa40oHlCtOi6nwpegV2ZOBuGeSGxlnSVYoMP21CBfZmnx5SneFagXPzZnJ+7I+y7S6FdQMO1xxWK++HZUgowNzpeIoVKqwCDgqrcyHp6RFlZbKetWF8HgQOrD2liwTuAHdKvj9frVVTuHDuNGkNspOBAWtt1cShC1ilcLlqecz6gnSkkS3CkMBN77zBypYWGQxCXyDAuvq1KTPIeuCYIIyuAJnPOwmWJWuk3bat1oF1pfWMjLKuAqbptn05Wl63I5ybrJOHbCqyCqw9ratEucqMDjaNrGBZqsLqpjpZaasPVhyrqlVdKe5Wcafr8TXKA6KsS9azXESG/DrHN7CODp0qdaxXON2vMftze4F/aJpljY2y008/fQFr69EZCYeH3ZX0+JrQA2ZHYDDDac0HSe+ENxe4oWRg2SfriRhWca53t3HSnFTqk1YSMPedleZv8TBYHKzc3WZ4TNbxrVLeaSUB6+zV38cTjNJgjUBT1jXMkB8XK6VoYNmp+9XFKorv39cDKlxX7JS/KGDZj+K/x99Z1n5+6gjfLObj2jOw7HLTv+MVDGuwcoK6nQSf97qM5QmYWcj9xHyensRrg9YpjRL4/HtbOd7LgrEnYF1p/U1G+XnQVk9m+Y5wfbJOfjGRDyYEZvazHOFfk2WLZCKHBfX/Zmsmo3ypqV42j6djXGBmp7gzzQuTYPMxKA7Fym1tqGPxeDvX4wLr7NULVdzd4vgKyQOiXNQwQ+4spK4gMBMwc0CG1/bDGIyQXF+ymp5dDkcUCuwpCKwzpXcqbrxgfIXsAYU1TfVy4VhqxwRm4gZJ8L/9IBQtZFdbU7eLQT41VtzjmMDaU3qzwKXW1MeCivaAwi1N9XLZ6Ib7AHPDpzO0hRmR+/L78Ict8J93IT1QdN+sN6irhs/NgR8uhM8eYl28J4EmwninQ/PosPB9gHWmdZUqoS3u/uUVuPEFKMcDWg5wxWL4zlGefGz9JhGuaxgVD7IXsOwpEhMvHsrBBPNknf9IecLKed9Au+vUyJ607t3dJPNPzewFrCOl3wPutf5TKSDwio3wdF7k3imfhMNnugGZkV2q8Ho3PPbWHhOOb4IbT4zMpHMa6+XPOe17A+vVjQhfC8u0E+/d884ysH69JCzNE+v51aY90Mw7beM5E7cJ5A7ln40zZOTnMgLMnHxMDNEZ5mG6RSbcNHv9tAV+sDCQLpck9I9b4Hd5UfKbIwrgM4cKB6toyJ0EHQHWkdJLgFtL6l2JjfKB/WwRfP/TJQoKoNmf/gu/zVuGjQqY6ZrjcEmyVm43/x4B1pnSxxVOCqDvBUXGwLx5W+CJhno5eQSYe1q/jw/DPgAeA/MGDOHjqloONtkN3CesI6XfAB7x2NzabV6B3fca3LoZ+ndbU+0KmpaAn7TA0iP2lVtOQ2LWulMb62WDC6wzrdfp8CGGUC+vwL56L3wU0ArI9Gp4cowZYLkBE2F1Q51cPfyEpXUTyvGh0gK8ArvgUXgxoGwZX5gDa79eAU+Y8HRjnSyR7K5yXwAZZibk7xXYjkHY2Abmb5uXGRJPnAfTqisAGPQ31FErnWldoMrrNh3hVZZXYF7l2byv3IZEd4YoHC4dfbqUDPfZ7KxXWTEwr57K3udwtnT06i8RVhfZ1MrtMbAi3ahcJe1pXSPKiiKbWrk9BlacG1VYa95hG1QZY55UnLBS7vYK7JXtwxuc/ZYnHTWJ4U3Ko2ZVxKTDvMMelY60bs7mISzF577aeAV25l/h7Y98qSrYeO50ePDblQHMzevYmVITDjAvGHeMLzUGVpzXBbZJR0p7gBnFNbVzt1dgr+aGRMtLUzVThofEI8cYEh9/C1ZuGu7n7BrYsMxOn31K6TXAdkTx0WwM9wrMZydLaj6UgTtegje64UefgaPnlCTGdqN+A8z8biPJAFrOwGx72pK8oRiYJU+GJMYFFg+JIXnbghp3SOyO6sCD1yFxxwBs3BbA4m91dvE3YcGV4YjoqYhp/YpH4aWAtlfMZGJNJMsGxRMentZXwIdzFBuYxbszhBbuh3MFLE25IQKtwSxNmRCBs8cIEQjB/UWrcJem4sXfvf32Qhdc8jjcdjIsThbt00AbuIu/8fZK5QDDbK/EG5gVBMxsYMYhApUDzA0RqIQgnEBfDKOEl/E7bDgIx9hb7mFuMTA3qH44zM04o9wDSWNgbsRUXiBpmYdq2wZmhr1C16sfwu0vwsVHw5EHF74vgin/nlDtcjgMEeb5sPw1zFJ/DKEePxp9GMIdFiM4bhTVCUyvT9gR4zxhx4T4Ub3PcSMDrKtPL85kuK3UX1wp7fyccTaHGE5uBhP5ZPMqx1nimAf6ojgy+/J7cP6G0rMILJ4Lt51iExeUG7CCR2bd6X3Ih9KNTj95OmZOhce+u38Do9ChdBdYyGkfcq4uJRPO9ARc9kU4Y8F+DgwKp30IO7GKXVfbkVZmQ+L4iVWyH9Ghpi6y42Z7UsoJ2ISpi0y3o0gOZs/d/iWVCzDPycFMl+P0e/7B+5XgOf2eO/mIE1z69bff9sUluMw+ZXdKnELWr+NLal90ClmjJU7SXJKvbTQqLUmzO2OM06DbAFCUjJLToBstcaGBonxt42Z/hQay77K4lIcNFBPIsFLKI6cjLpYTBjGub7RRLMeYGpejChyY3XJUxty44Ftg0OwXfMsbGs/IKHFJRXvsgiupmLMxLlpqkVbQRUtzpsZlgf1Dk7DKAme/z+LC2z6YhV54210g7tCpUkdc2r5IcJGUts/Z2NajMxIODyscW6Tdk/J2A2sww2nNB0lvqQ7wXTQj+6StVzi9VCMmQzszDGqaZY2NstNPf30DM8qfVJ0yP8VdKkRUP8GPC4JvayYYyXqWi8iQX21WgI2a8pvs3Fbl+u1khO1VhdVNo0pK+bHHumO70mo+rk1VlVBKWvnpfMBtux3h3GSdPGRTj3VgectY64FjbBpbQbKedxIsS9ZIXrEtO9YHAsyYZhaMD13AKoXLJ0uVdbNFInDTO2+wsqVFLOdPHQYeGLCR91pKFwlu8e4WO7+xspXSqnDRRKXp/VofODBjoNm57kqxQoVVUeW18uuocdr3iLIyWc/a8UrS29IfCrCcsSawpzrDtYI7/T/AVicikrNLYd2AwzWFqpoHYVeowHIdMHGPmuBKB5aHWX7YhgNNRG4G7pZBbhirMLYNHePJiARYziA3LFy5VJULKuAzoFuENTuFW0bXVg4aUr78SIHlDMmemjkL5TwRloRZh3OCX/OQKpsQ7tndzQP55XnDhFR2wPINMidBq5WlmuFMFY4Lu2qgqYYnyjPi8OCAcH+uWGhUgEbrLYsnrJAz3OwGaU5AOQ6HL2cLItRYdl6/m8AfnlPl2ao6njKlCy3rsCaurIGN7qX7edDHYSosZIj56jDPgSaF2aLM0uH8+6YaWG4GugsYEOhVYbvABxlolwzbqGKrKFuStbwZxnTcFrH/A8wNv8JI/KKJAAAAAElFTkSuQmCC"},T8No:function(h,F,o){"use strict";o.d(F,"a",function(){return O}),o.d(F,"b",function(){return u}),o.d(F,"d",function(){return f}),o.d(F,"c",function(){return x}),o.d(F,"e",function(){return C});var m=o("N0LK"),a=o("Cg/j"),D=function(){var b=function(g,E){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,N){A.__proto__=N}||function(A,N){for(var M in N)N.hasOwnProperty(M)&&(A[M]=N[M])},b(g,E)};return function(g,E){b(g,E);function A(){this.constructor=g}g.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)}}(),O=function(){function b(){}return b.has=function(g){return y.create(g)},b.equals=function(g,E){return v.create(g,E)},b.regex=function(g,E){return s.create(g,E)},b.not=function(g){return l.create(g)},b.and=function(){for(var g=[],E=0;E<arguments.length;E++)g[E]=arguments[E];return d.create(g)},b.or=function(){for(var g=[],E=0;E<arguments.length;E++)g[E]=arguments[E];return u.create(g)},b.deserialize=function(g,E){return E===void 0&&(E=!1),g?this._deserializeOrExpression(g,E):void 0},b._deserializeOrExpression=function(g,E){var A=this,N=g.split("||");return u.create(N.map(function(M){return A._deserializeAndExpression(M,E)}))},b._deserializeAndExpression=function(g,E){var A=this,N=g.split("&&");return d.create(N.map(function(M){return A._deserializeOne(M,E)}))},b._deserializeOne=function(g,E){if(g=g.trim(),g.indexOf("!=")>=0){var A=g.split("!=");return c.create(A[0].trim(),this._deserializeValue(A[1],E))}if(g.indexOf("==")>=0){var A=g.split("==");return v.create(A[0].trim(),this._deserializeValue(A[1],E))}if(g.indexOf("=~")>=0){var A=g.split("=~");return s.create(A[0].trim(),this._deserializeRegexValue(A[1],E))}return/^\!\s*/.test(g)?l.create(g.substr(1).trim()):y.create(g)},b._deserializeValue=function(g,E){if(g=g.trim(),g==="true")return!0;if(g==="false")return!1;var A=/^'([^']*)'$/.exec(g);return A?A[1].trim():g},b._deserializeRegexValue=function(g,E){if(Object(m.x)(g)){if(E)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var A=g.indexOf("/"),N=g.lastIndexOf("/");if(A===N||A<0){if(E)throw new Error("bad regexp-value '"+g+"', missing /-enclosure");return console.warn("bad regexp-value '"+g+"', missing /-enclosure"),null}var M=g.slice(A+1,N),w=g[N+1]==="i"?"i":"";try{return new RegExp(M,w)}catch(Y){if(E)throw new Error("bad regexp-value '"+g+"', parse error: "+Y);return console.warn("bad regexp-value '"+g+"', parse error: "+Y),null}},b}();function _(b,g){var E=b.getType(),A=g.getType();if(E!==A)return E-A;switch(E){case 1:return b.cmp(g);case 2:return b.cmp(g);case 3:return b.cmp(g);case 4:return b.cmp(g);case 6:return b.cmp(g);case 7:return b.cmp(g);case 5:return b.cmp(g);default:throw new Error("Unknown ContextKeyExpr!")}}var y=function(){function b(g){this.key=g}return b.create=function(g){return new b(g)},b.prototype.getType=function(){return 1},b.prototype.cmp=function(g){return this.key<g.key?-1:this.key>g.key?1:0},b.prototype.equals=function(g){return g instanceof b?this.key===g.key:!1},b.prototype.evaluate=function(g){return!!g.getValue(this.key)},b.prototype.keys=function(){return[this.key]},b.prototype.negate=function(){return l.create(this.key)},b}(),v=function(){function b(g,E){this.key=g,this.value=E}return b.create=function(g,E){return typeof E=="boolean"?E?y.create(g):l.create(g):new b(g,E)},b.prototype.getType=function(){return 3},b.prototype.cmp=function(g){return this.key<g.key?-1:this.key>g.key?1:this.value<g.value?-1:this.value>g.value?1:0},b.prototype.equals=function(g){return g instanceof b?this.key===g.key&&this.value===g.value:!1},b.prototype.evaluate=function(g){return g.getValue(this.key)==this.value},b.prototype.keys=function(){return[this.key]},b.prototype.negate=function(){return c.create(this.key,this.value)},b}(),c=function(){function b(g,E){this.key=g,this.value=E}return b.create=function(g,E){return typeof E=="boolean"?E?l.create(g):y.create(g):new b(g,E)},b.prototype.getType=function(){return 4},b.prototype.cmp=function(g){return this.key<g.key?-1:this.key>g.key?1:this.value<g.value?-1:this.value>g.value?1:0},b.prototype.equals=function(g){return g instanceof b?this.key===g.key&&this.value===g.value:!1},b.prototype.evaluate=function(g){return g.getValue(this.key)!=this.value},b.prototype.keys=function(){return[this.key]},b.prototype.negate=function(){return v.create(this.key,this.value)},b}(),l=function(){function b(g){this.key=g}return b.create=function(g){return new b(g)},b.prototype.getType=function(){return 2},b.prototype.cmp=function(g){return this.key<g.key?-1:this.key>g.key?1:0},b.prototype.equals=function(g){return g instanceof b?this.key===g.key:!1},b.prototype.evaluate=function(g){return!g.getValue(this.key)},b.prototype.keys=function(){return[this.key]},b.prototype.negate=function(){return y.create(this.key)},b}(),s=function(){function b(g,E){this.key=g,this.regexp=E}return b.create=function(g,E){return new b(g,E)},b.prototype.getType=function(){return 6},b.prototype.cmp=function(g){if(this.key<g.key)return-1;if(this.key>g.key)return 1;var E=this.regexp?this.regexp.source:"",A=g.regexp?g.regexp.source:"";return E<A?-1:E>A?1:0},b.prototype.equals=function(g){if(g instanceof b){var E=this.regexp?this.regexp.source:"",A=g.regexp?g.regexp.source:"";return this.key===g.key&&E===A}return!1},b.prototype.evaluate=function(g){var E=g.getValue(this.key);return this.regexp?this.regexp.test(E):!1},b.prototype.keys=function(){return[this.key]},b.prototype.negate=function(){return r.create(this)},b}(),r=function(){function b(g){this._actual=g}return b.create=function(g){return new b(g)},b.prototype.getType=function(){return 7},b.prototype.cmp=function(g){return this._actual.cmp(g._actual)},b.prototype.equals=function(g){return g instanceof b?this._actual.equals(g._actual):!1},b.prototype.evaluate=function(g){return!this._actual.evaluate(g)},b.prototype.keys=function(){return this._actual.keys()},b.prototype.negate=function(){return this._actual},b}(),d=function(){function b(g){this.expr=g}return b.create=function(g){var E=b._normalizeArr(g);return E.length===0?void 0:E.length===1?E[0]:new b(E)},b.prototype.getType=function(){return 5},b.prototype.cmp=function(g){if(this.expr.length<g.expr.length)return-1;if(this.expr.length>g.expr.length)return 1;for(var E=0,A=this.expr.length;E<A;E++){var N=_(this.expr[E],g.expr[E]);if(N!==0)return N}return 0},b.prototype.equals=function(g){if(g instanceof b){if(this.expr.length!==g.expr.length)return!1;for(var E=0,A=this.expr.length;E<A;E++)if(!this.expr[E].equals(g.expr[E]))return!1;return!0}return!1},b.prototype.evaluate=function(g){for(var E=0,A=this.expr.length;E<A;E++)if(!this.expr[E].evaluate(g))return!1;return!0},b._normalizeArr=function(g){var E=[];if(g){for(var A=0,N=g.length;A<N;A++){var M=g[A];if(!M)continue;if(M instanceof b){E=E.concat(M.expr);continue}if(M instanceof u)throw new Error('It is not allowed to have an or expression here due to lack of parens! For example "a && (b||c)" is not supported, use "(a&&b) || (a&&c)" instead.');E.push(M)}E.sort(_)}return E},b.prototype.keys=function(){for(var g=[],E=0,A=this.expr;E<A.length;E++){var N=A[E];g.push.apply(g,N.keys())}return g},b.prototype.negate=function(){for(var g=[],E=0,A=this.expr;E<A.length;E++){var N=A[E];g.push(N.negate())}return u.create(g)},b}(),u=function(){function b(g){this.expr=g}return b.create=function(g){var E=b._normalizeArr(g);return E.length===0?void 0:E.length===1?E[0]:new b(E)},b.prototype.getType=function(){return 8},b.prototype.equals=function(g){if(g instanceof b){if(this.expr.length!==g.expr.length)return!1;for(var E=0,A=this.expr.length;E<A;E++)if(!this.expr[E].equals(g.expr[E]))return!1;return!0}return!1},b.prototype.evaluate=function(g){for(var E=0,A=this.expr.length;E<A;E++)if(this.expr[E].evaluate(g))return!0;return!1},b._normalizeArr=function(g){var E=[];if(g){for(var A=0,N=g.length;A<N;A++){var M=g[A];if(!M)continue;if(M instanceof b){E=E.concat(M.expr);continue}E.push(M)}E.sort(_)}return E},b.prototype.keys=function(){for(var g=[],E=0,A=this.expr;E<A.length;E++){var N=A[E];g.push.apply(g,N.keys())}return g},b.prototype.negate=function(){for(var g=[],E=0,A=this.expr;E<A.length;E++){var N=A[E];g.push(N.negate())}for(var M=function(J){return J instanceof b?J.expr:[J]};g.length>1;){for(var w=g.shift(),Y=g.shift(),X=[],P=0,H=M(w);P<H.length;P++)for(var G=H[P],$=0,he=M(Y);$<he.length;$++){var de=he[$];X.push(O.and(G,de))}g.unshift(O.or.apply(O,X))}return g[0]},b}(),f=function(b){D(g,b);function g(E,A){var N=b.call(this,E)||this;return N._defaultValue=A,N}return g.prototype.bindTo=function(E){return E.createKey(this.key,this._defaultValue)},g.prototype.getValue=function(E){return E.getContextKeyValue(this.key)},g.prototype.toNegated=function(){return O.not(this.key)},g}(y),x=Object(a.c)("contextKeyService"),C="setContext"},"VrN/":function(h,F,o){(function(m,a){h.exports=a()})(this,function(){"use strict";var m=navigator.userAgent,a=navigator.platform,D=/gecko\/\d/i.test(m),O=/MSIE \d/.test(m),_=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(m),y=/Edge\/(\d+)/.exec(m),v=O||_||y,c=v&&(O?document.documentMode||6:+(y||_)[1]),l=!y&&/WebKit\//.test(m),s=l&&/Qt\/\d+\.\d+/.test(m),r=!y&&/Chrome\//.test(m),d=/Opera\//.test(m),u=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(m),x=/PhantomJS/.test(m),C=!y&&/AppleWebKit/.test(m)&&/Mobile\/\w+/.test(m),b=/Android/.test(m),g=C||b||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(m),E=C||/Mac/.test(a),A=/\bCrOS\b/.test(m),N=/win/i.test(a),M=d&&m.match(/Version\/(\d*\.\d*)/);M&&(M=Number(M[1])),M&&M>=15&&(d=!1,l=!0);var w=E&&(s||d&&(M==null||M<12.11)),Y=D||v&&c>=9;function X(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var P=function(e,t){var i=e.className,n=X(t).exec(i);if(n){var p=i.slice(n.index+n[0].length);e.className=i.slice(0,n.index)+(p?n[1]+p:"")}};function H(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function G(e,t){return H(e).appendChild(t)}function $(e,t,i,n){var p=document.createElement(e);if(i&&(p.className=i),n&&(p.style.cssText=n),typeof t=="string")p.appendChild(document.createTextNode(t));else if(t)for(var B=0;B<t.length;++B)p.appendChild(t[B]);return p}function he(e,t,i,n){var p=$(e,t,i,n);return p.setAttribute("role","presentation"),p}var de;document.createRange?de=function(e,t,i,n){var p=document.createRange();return p.setEnd(n||e,i),p.setStart(e,t),p}:de=function(e,t,i){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(p){return n}return n.collapse(!0),n.moveEnd("character",i),n.moveStart("character",t),n};function J(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function fe(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function q(e,t){var i=e.className;X(t).test(i)||(e.className+=(i?" ":"")+t)}function U(e,t){for(var i=e.split(" "),n=0;n<i.length;n++)i[n]&&!X(i[n]).test(t)&&(t+=" "+i[n]);return t}var z=function(e){e.select()};C?z=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:v&&(z=function(e){try{e.select()}catch(t){}});function L(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function T(e,t,i){t||(t={});for(var n in e)e.hasOwnProperty(n)&&(i!==!1||!t.hasOwnProperty(n))&&(t[n]=e[n]);return t}function I(e,t,i,n,p){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var B=n||0,te=p||0;;){var pe=e.indexOf(" ",B);if(pe<0||pe>=t)return te+(t-B);te+=pe-B,te+=i-te%i,B=pe+1}}var se=function(){this.id=null,this.f=null,this.time=0,this.handler=L(this.onTimeout,this)};se.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},se.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function me(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var xe=50,Ee={toString:function(){return"CodeMirror.Pass"}},Oe={scroll:!1},le={origin:"*mouse"},ge={origin:"+move"};function ye(e,t,i){for(var n=0,p=0;;){var B=e.indexOf(" ",n);B==-1&&(B=e.length);var te=B-n;if(B==e.length||p+te>=t)return n+Math.min(te,t-p);if(p+=B-n,p+=i-p%i,n=B+1,p>=t)return n}}var ee=[""];function oe(e){for(;ee.length<=e;)ee.push(Z(ee)+" ");return ee[e]}function Z(e){return e[e.length-1]}function ue(e,t){for(var i=[],n=0;n<e.length;n++)i[n]=t(e[n],n);return i}function V(e,t,i){for(var n=0,p=i(t);n<e.length&&i(e[n])<=p;)n++;e.splice(n,0,t)}function Q(){}function ae(e,t){var i;return Object.create?i=Object.create(e):(Q.prototype=e,i=new Q),t&&T(t,i),i}var K=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function j(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||K.test(e))}function k(e,t){return t?t.source.indexOf("\\w")>-1&&j(e)?!0:t.test(e):j(e)}function W(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var we=/[\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 be(e){return e.charCodeAt(0)>=768&&we.test(e)}function Te(e,t,i){for(;(i<0?t>0:t<e.length)&&be(e.charAt(t));)t+=i;return t}function Be(e,t,i){for(var n=t>i?-1:1;;){if(t==i)return t;var p=(t+i)/2,B=n<0?Math.ceil(p):Math.floor(p);if(B==t)return e(B)?t:i;e(B)?i=B:t=B+n}}function Fe(e,t,i,n){if(!e)return n(t,i,"ltr",0);for(var p=!1,B=0;B<e.length;++B){var te=e[B];(te.from<i&&te.to>t||t==i&&te.to==t)&&(n(Math.max(te.from,t),Math.min(te.to,i),te.level==1?"rtl":"ltr",B),p=!0)}p||n(t,i,"ltr")}var Ue=null;function We(e,t,i){var n;Ue=null;for(var p=0;p<e.length;++p){var B=e[p];if(B.from<t&&B.to>t)return p;B.to==t&&(B.from!=B.to&&i=="before"?n=p:Ue=p),B.from==t&&(B.from!=B.to&&i!="before"?n=p:Ue=p)}return n!=null?n:Ue}var Ve=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(Ce){return Ce<=247?e.charAt(Ce):1424<=Ce&&Ce<=1524?"R":1536<=Ce&&Ce<=1785?t.charAt(Ce-1536):1774<=Ce&&Ce<=2220?"r":8192<=Ce&&Ce<=8203?"w":Ce==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,p=/[stwN]/,B=/[LRr]/,te=/[Lb1n]/,pe=/[1n]/;function ve(Ce,De,Ie){this.level=Ce,this.from=De,this.to=Ie}return function(Ce,De){var Ie=De=="ltr"?"L":"R";if(Ce.length==0||De=="ltr"&&!n.test(Ce))return!1;for(var ze=Ce.length,He=[],et=0;et<ze;++et)He.push(i(Ce.charCodeAt(et)));for(var rt=0,at=Ie;rt<ze;++rt){var mt=He[rt];mt=="m"?He[rt]=at:at=mt}for(var St=0,gt=Ie;St<ze;++St){var Tt=He[St];Tt=="1"&>=="r"?He[St]="n":B.test(Tt)&&(gt=Tt,Tt=="r"&&(He[St]="R"))}for(var Ft=1,Mt=He[0];Ft<ze-1;++Ft){var $t=He[Ft];$t=="+"&&Mt=="1"&&He[Ft+1]=="1"?He[Ft]="1":$t==","&&Mt==He[Ft+1]&&(Mt=="1"||Mt=="n")&&(He[Ft]=Mt),Mt=$t}for(var pr=0;pr<ze;++pr){var Br=He[pr];if(Br==",")He[pr]="N";else if(Br=="%"){var wr=void 0;for(wr=pr+1;wr<ze&&He[wr]=="%";++wr);for(var mn=pr&&He[pr-1]=="!"||wr<ze&&He[wr]=="1"?"1":"N",cn=pr;cn<wr;++cn)He[cn]=mn;pr=wr-1}}for(var Rr=0,dn=Ie;Rr<ze;++Rr){var Hr=He[Rr];dn=="L"&&Hr=="1"?He[Rr]="L":B.test(Hr)&&(dn=Hr)}for(var Ir=0;Ir<ze;++Ir)if(p.test(He[Ir])){var Mr=void 0;for(Mr=Ir+1;Mr<ze&&p.test(He[Mr]);++Mr);for(var _r=(Ir?He[Ir-1]:Ie)=="L",hn=(Mr<ze?He[Mr]:Ie)=="L",ki=_r==hn?_r?"L":"R":Ie,Qn=Ir;Qn<Mr;++Qn)He[Qn]=ki;Ir=Mr-1}for(var Yr=[],Dn,Ur=0;Ur<ze;)if(te.test(He[Ur])){var sa=Ur;for(++Ur;Ur<ze&&te.test(He[Ur]);++Ur);Yr.push(new ve(0,sa,Ur))}else{var Fn=Ur,ui=Yr.length,ci=De=="rtl"?1:0;for(++Ur;Ur<ze&&He[Ur]!="L";++Ur);for(var en=Fn;en<Ur;)if(pe.test(He[en])){Fn<en&&(Yr.splice(ui,0,new ve(1,Fn,en)),ui+=ci);var Ai=en;for(++en;en<Ur&&pe.test(He[en]);++en);Yr.splice(ui,0,new ve(2,Ai,en)),ui+=ci,Fn=en}else++en;Fn<Ur&&Yr.splice(ui,0,new ve(1,Fn,Ur))}return De=="ltr"&&(Yr[0].level==1&&(Dn=Ce.match(/^\s+/))&&(Yr[0].from=Dn[0].length,Yr.unshift(new ve(0,0,Dn[0].length))),Z(Yr).level==1&&(Dn=Ce.match(/\s+$/))&&(Z(Yr).to-=Dn[0].length,Yr.push(new ve(0,ze-Dn[0].length,ze)))),De=="rtl"?Yr.reverse():Yr}}();function Ge(e,t){var i=e.order;return i==null&&(i=e.order=Ve(e.text,t)),i}var Je=[],Re=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||Je).concat(i)}};function Ze(e,t){return e._handlers&&e._handlers[t]||Je}function nt(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var n=e._handlers,p=n&&n[t];if(p){var B=me(p,i);B>-1&&(n[t]=p.slice(0,B).concat(p.slice(B+1)))}}}function Ke(e,t){var i=Ze(e,t);if(!i.length)return;for(var n=Array.prototype.slice.call(arguments,2),p=0;p<i.length;++p)i[p].apply(null,n)}function $e(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ke(e,i||t.type,e,t),ke(t)||t.codemirrorIgnore}function je(e){var t=e._handlers&&e._handlers.cursorActivity;if(!t)return;for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)me(i,t[n])==-1&&i.push(t[n])}function Me(e,t){return Ze(e,t).length>0}function Pe(e){e.prototype.on=function(t,i){Re(this,t,i)},e.prototype.off=function(t,i){nt(this,t,i)}}function Se(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function _e(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ke(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Le(e){Se(e),_e(e)}function Xe(e){return e.target||e.srcElement}function Ae(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),E&&e.ctrlKey&&t==1&&(t=3),t}var Ye=function(){if(v&&c<9)return!1;var e=$("div");return"draggable"in e||"dragDrop"in e}(),it;function lt(e){if(it==null){var t=$("span","\u200B");G(e,$("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(it=t.offsetWidth<=1&&t.offsetHeight>2&&!(v&&c<8))}var i=it?$("span","\u200B"):$("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var dt;function ut(e){if(dt!=null)return dt;var t=G(e,document.createTextNode("A\u062EA")),i=de(t,0,1).getBoundingClientRect(),n=de(t,1,2).getBoundingClientRect();return H(e),!i||i.left==i.right?!1:dt=n.right-i.right<3}var xt=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],n=e.length;t<=n;){var p=e.indexOf(`
|
|
|
`,t);p==-1&&(p=e.length);var B=e.slice(t,e.charAt(p-1)=="\r"?p-1:p),te=B.indexOf("\r");te!=-1?(i.push(B.slice(0,te)),t+=te+1):(i.push(B),t=p+1)}return i}:function(e){return e.split(/\r\n?|\n/)},ht=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(i){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Rt=function(){var e=$("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Xt=null;function er(e){if(Xt!=null)return Xt;var t=G(e,$("span","x")),i=t.getBoundingClientRect(),n=de(t,0,1).getBoundingClientRect();return Xt=Math.abs(i.left-n.left)>1}var Qt={},Ut={};function Gt(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Qt[e]=t}function Nr(e,t){Ut[e]=t}function At(e){if(typeof e=="string"&&Ut.hasOwnProperty(e))e=Ut[e];else if(e&&typeof e.name=="string"&&Ut.hasOwnProperty(e.name)){var t=Ut[e.name];typeof t=="string"&&(t={name:t}),e=ae(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return At("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return At("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Dt(e,t){t=At(t);var i=Qt[t.name];if(!i)return Dt(e,"text/plain");var n=i(e,t);if(st.hasOwnProperty(t.name)){var p=st[t.name];for(var B in p){if(!p.hasOwnProperty(B))continue;n.hasOwnProperty(B)&&(n["_"+B]=n[B]),n[B]=p[B]}}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var te in t.modeProps)n[te]=t.modeProps[te];return n}var st={};function _t(e,t){var i=st.hasOwnProperty(e)?st[e]:st[e]={};T(t,i)}function Vt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var n in t){var p=t[n];p instanceof Array&&(p=p.concat([])),i[n]=p}return i}function tr(e,t){for(var i;e.innerMode&&!(i=e.innerMode(t),!i||i.mode==e);)t=i.state,e=i.mode;return i||{mode:e,state:t}}function sr(e,t,i){return e.startState?e.startState(t,i):!0}var Bt=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};Bt.prototype.eol=function(){return this.pos>=this.string.length},Bt.prototype.sol=function(){return this.pos==this.lineStart},Bt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Bt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Bt.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e.test?e.test(t):e(t)),i)return++this.pos,t},Bt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Bt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Bt.prototype.skipToEnd=function(){this.pos=this.string.length},Bt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Bt.prototype.backUp=function(e){this.pos-=e},Bt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=I(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?I(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.indentation=function(){return I(this.string,null,this.tabSize)-(this.lineStart?I(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.match=function(e,t,i){if(typeof e=="string"){var n=function(te){return i?te.toLowerCase():te},p=this.string.substr(this.pos,e.length);if(n(p)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var B=this.string.slice(this.pos).match(e);return B&&B.index>0?null:(B&&t!==!1&&(this.pos+=B[0].length),B)}},Bt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Bt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Bt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Bt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ft(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var n=0;;++n){var p=i.children[n],B=p.chunkSize();if(t<B){i=p;break}t-=B}return i.lines[t]}function Yt(e,t,i){var n=[],p=t.line;return e.iter(t.line,i.line+1,function(B){var te=B.text;p==i.line&&(te=te.slice(0,i.ch)),p==t.line&&(te=te.slice(t.ch)),n.push(te),++p}),n}function gr(e,t,i){var n=[];return e.iter(t,i,function(p){n.push(p.text)}),n}function Nt(e,t){var i=t-e.height;if(i)for(var n=e;n;n=n.parent)n.height+=i}function Pt(e){if(e.parent==null)return null;for(var t=e.parent,i=me(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var p=0;!(n.children[p]==t);++p)i+=n.children[p].chunkSize();return i+t.first}function fr(e,t){var i=e.first;e:do{for(var n=0;n<e.children.length;++n){var p=e.children[n],B=p.height;if(t<B){e=p;continue e}t-=B,i+=p.chunkSize()}return i}while(!e.lines);for(var te=0;te<e.lines.length;++te){var pe=e.lines[te],ve=pe.height;if(t<ve)break;t-=ve}return i+te}function Wr(e,t){return t>=e.first&&t<e.first+e.size}function Pr(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function qe(e,t,i){if(i===void 0&&(i=null),!(this instanceof qe))return new qe(e,t,i);this.line=e,this.ch=t,this.sticky=i}function pt(e,t){return e.line-t.line||e.ch-t.ch}function Wt(e,t){return e.sticky==t.sticky&&pt(e,t)==0}function zt(e){return qe(e.line,e.ch)}function ir(e,t){return pt(e,t)<0?t:e}function lr(e,t){return pt(e,t)<0?e:t}function ie(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function S(e,t){if(t.line<e.first)return qe(e.first,0);var i=e.first+e.size-1;return t.line>i?qe(i,ft(e,i).text.length):R(t,ft(e,t.line).text.length)}function R(e,t){var i=e.ch;return i==null||i>t?qe(e.line,t):i<0?qe(e.line,0):e}function re(e,t){for(var i=[],n=0;n<t.length;n++)i[n]=S(e,t[n]);return i}var ce=function(e,t){this.state=e,this.lookAhead=t},ne=function(e,t,i,n){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};ne.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ne.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ne.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ne.fromSaved=function(e,t,i){return t instanceof ce?new ne(e,Vt(e.mode,t.state),i,t.lookAhead):new ne(e,Vt(e.mode,t),i)},ne.prototype.save=function(e){var t=e!==!1?Vt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ce(t,this.maxLookAhead):t};function Ne(e,t,i,n){var p=[e.state.modeGen],B={};Jr(e,t.text,e.doc.mode,i,function(Ce,De){return p.push(Ce,De)},B,n);for(var te=i.state,pe=function(Ce){i.baseTokens=p;var De=e.state.overlays[Ce],Ie=1,ze=0;i.state=!0,Jr(e,t.text,De.mode,i,function(He,et){for(var rt=Ie;ze<He;){var at=p[Ie];at>He&&p.splice(Ie,1,He,p[Ie+1],at),Ie+=2,ze=Math.min(He,at)}if(!et)return;if(De.opaque)p.splice(rt,Ie-rt,He,"overlay "+et),Ie=rt+2;else for(;rt<Ie;rt+=2){var mt=p[rt+1];p[rt+1]=(mt?mt+" ":"")+"overlay "+et}},B),i.state=te,i.baseTokens=null,i.baseTokenPos=1},ve=0;ve<e.state.overlays.length;++ve)pe(ve);return{styles:p,classes:B.bgClass||B.textClass?B:null}}function Qe(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=ot(e,Pt(t)),p=t.text.length>e.options.maxHighlightLength&&Vt(e.doc.mode,n.state),B=Ne(e,t,n);p&&(n.state=p),t.stateAfter=n.save(!p),t.styles=B.styles,B.classes?t.styleClasses=B.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function ot(e,t,i){var n=e.doc,p=e.display;if(!n.mode.startState)return new ne(n,!0,t);var B=xr(e,t,i),te=B>n.first&&ft(n,B-1).stateAfter,pe=te?ne.fromSaved(n,te,B):new ne(n,sr(n.mode),B);return n.iter(B,t,function(ve){Ct(e,ve.text,pe);var Ce=pe.line;ve.stateAfter=Ce==t-1||Ce%5==0||Ce>=p.viewFrom&&Ce<p.viewTo?pe.save():null,pe.nextLine()}),i&&(n.modeFrontier=pe.line),pe}function Ct(e,t,i,n){var p=e.doc.mode,B=new Bt(t,e.options.tabSize,i);for(B.start=B.pos=n||0,t==""&&tt(p,i.state);!B.eol();)jt(p,B,i.state),B.start=B.pos}function tt(e,t){if(e.blankLine)return e.blankLine(t);if(!e.innerMode)return;var i=tr(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}function jt(e,t,i,n){for(var p=0;p<10;p++){n&&(n[0]=tr(e,i).mode);var B=e.token(t,i);if(t.pos>t.start)return B}throw new Error("Mode "+e.name+" failed to advance stream.")}var Zt=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function dr(e,t,i,n){var p=e.doc,B=p.mode,te;t=S(p,t);var pe=ft(p,t.line),ve=ot(e,t.line,i),Ce=new Bt(pe.text,e.options.tabSize,ve),De;for(n&&(De=[]);(n||Ce.pos<t.ch)&&!Ce.eol();)Ce.start=Ce.pos,te=jt(B,Ce,ve.state),n&&De.push(new Zt(Ce,te,Vt(p.mode,ve.state)));return n?De:new Zt(Ce,te,ve.state)}function tn(e,t){if(e)for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var n=i[1]?"bgClass":"textClass";t[n]==null?t[n]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+i[2])}return e}function Jr(e,t,i,n,p,B,te){var pe=i.flattenSpans;pe==null&&(pe=e.options.flattenSpans);var ve=0,Ce=null,De=new Bt(t,e.options.tabSize,n),Ie,ze=e.options.addModeClass&&[null];for(t==""&&tn(tt(i,n.state),B);!De.eol();){if(De.pos>e.options.maxHighlightLength?(pe=!1,te&&Ct(e,t,n,De.pos),De.pos=t.length,Ie=null):Ie=tn(jt(i,De,n.state,ze),B),ze){var He=ze[0].name;He&&(Ie="m-"+(Ie?He+" "+Ie:He))}if(!pe||Ce!=Ie){for(;ve<De.start;)ve=Math.min(De.start,ve+5e3),p(ve,Ce);Ce=Ie}De.start=De.pos}for(;ve<De.pos;){var et=Math.min(De.pos,ve+5e3);p(et,Ce),ve=et}}function xr(e,t,i){for(var n,p,B=e.doc,te=i?-1:t-(e.doc.mode.innerMode?1e3:100),pe=t;pe>te;--pe){if(pe<=B.first)return B.first;var ve=ft(B,pe-1),Ce=ve.stateAfter;if(Ce&&(!i||pe+(Ce instanceof ce?Ce.lookAhead:0)<=B.modeFrontier))return pe;var De=I(ve.text,null,e.options.tabSize);(p==null||n>De)&&(p=pe-1,n=De)}return p}function $r(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontier<t-10)return;for(var i=e.first,n=t-1;n>i;n--){var p=ft(e,n).stateAfter;if(p&&(!(p instanceof ce)||n+p.lookAhead<t)){i=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}var Bn=!1,zr=!1;function Gr(){Bn=!0}function Zr(){zr=!0}function On(e,t,i){this.marker=e,this.from=t,this.to=i}function rn(e,t){if(e)for(var i=0;i<e.length;++i){var n=e[i];if(n.marker==t)return n}}function xn(e,t){for(var i,n=0;n<e.length;++n)e[n]!=t&&(i||(i=[])).push(e[n]);return i}function fn(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function qn(e,t,i){var n;if(e)for(var p=0;p<e.length;++p){var B=e[p],te=B.marker,pe=B.from==null||(te.inclusiveLeft?B.from<=t:B.from<t);if(pe||B.from==t&&te.type=="bookmark"&&(!i||!B.marker.insertLeft)){var ve=B.to==null||(te.inclusiveRight?B.to>=t:B.to>t);(n||(n=[])).push(new On(te,B.from,ve?null:B.to))}}return n}function Un(e,t,i){var n;if(e)for(var p=0;p<e.length;++p){var B=e[p],te=B.marker,pe=B.to==null||(te.inclusiveRight?B.to>=t:B.to>t);if(pe||B.from==t&&te.type=="bookmark"&&(!i||B.marker.insertLeft)){var ve=B.from==null||(te.inclusiveLeft?B.from<=t:B.from<t);(n||(n=[])).push(new On(te,ve?null:B.from-t,B.to==null?null:B.to-t))}}return n}function gn(e,t){if(t.full)return null;var i=Wr(e,t.from.line)&&ft(e,t.from.line).markedSpans,n=Wr(e,t.to.line)&&ft(e,t.to.line).markedSpans;if(!i&&!n)return null;var p=t.from.ch,B=t.to.ch,te=pt(t.from,t.to)==0,pe=qn(i,p,te),ve=Un(n,B,te),Ce=t.text.length==1,De=Z(t.text).length+(Ce?p:0);if(pe)for(var Ie=0;Ie<pe.length;++Ie){var ze=pe[Ie];if(ze.to==null){var He=rn(ve,ze.marker);He?Ce&&(ze.to=He.to==null?null:He.to+De):ze.to=p}}if(ve)for(var et=0;et<ve.length;++et){var rt=ve[et];if(rt.to!=null&&(rt.to+=De),rt.from==null){var at=rn(pe,rt.marker);at||(rt.from=De,Ce&&(pe||(pe=[])).push(rt))}else rt.from+=De,Ce&&(pe||(pe=[])).push(rt)}pe&&(pe=nn(pe)),ve&&ve!=pe&&(ve=nn(ve));var mt=[pe];if(!Ce){var St=t.text.length-2,gt;if(St>0&&pe)for(var Tt=0;Tt<pe.length;++Tt)pe[Tt].to==null&&(gt||(gt=[])).push(new On(pe[Tt].marker,null,null));for(var Ft=0;Ft<St;++Ft)mt.push(gt);mt.push(ve)}return mt}function nn(e){for(var t=0;t<e.length;++t){var i=e[t];i.from!=null&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Rn(e,t,i){var n=null;if(e.iter(t.line,i.line+1,function(He){if(He.markedSpans)for(var et=0;et<He.markedSpans.length;++et){var rt=He.markedSpans[et].marker;rt.readOnly&&(!n||me(n,rt)==-1)&&(n||(n=[])).push(rt)}}),!n)return null;for(var p=[{from:t,to:i}],B=0;B<n.length;++B)for(var te=n[B],pe=te.find(0),ve=0;ve<p.length;++ve){var Ce=p[ve];if(pt(Ce.to,pe.from)<0||pt(Ce.from,pe.to)>0)continue;var De=[ve,1],Ie=pt(Ce.from,pe.from),ze=pt(Ce.to,pe.to);(Ie<0||!te.inclusiveLeft&&!Ie)&&De.push({from:Ce.from,to:pe.from}),(ze>0||!te.inclusiveRight&&!ze)&&De.push({from:pe.to,to:Ce.to}),p.splice.apply(p,De),ve+=De.length-3}return p}function Mn(e){var t=e.markedSpans;if(!t)return;for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}function ei(e,t){if(!t)return;for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}function vr(e){return e.inclusiveLeft?-1:0}function or(e){return e.inclusiveRight?1:0}function Lr(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var n=e.find(),p=t.find(),B=pt(n.from,p.from)||vr(e)-vr(t);if(B)return-B;var te=pt(n.to,p.to)||or(e)-or(t);return te||t.id-e.id}function rr(e,t){var i=zr&&e.markedSpans,n;if(i)for(var p=void 0,B=0;B<i.length;++B)p=i[B],p.marker.collapsed&&(t?p.from:p.to)==null&&(!n||Lr(n,p.marker)<0)&&(n=p.marker);return n}function Cr(e){return rr(e,!0)}function ct(e){return rr(e,!1)}function vt(e,t){var i=zr&&e.markedSpans,n;if(i)for(var p=0;p<i.length;++p){var B=i[p];B.marker.collapsed&&(B.from==null||B.from<t)&&(B.to==null||B.to>t)&&(!n||Lr(n,B.marker)<0)&&(n=B.marker)}return n}function yt(e,t,i,n,p){var B=ft(e,t),te=zr&&B.markedSpans;if(te)for(var pe=0;pe<te.length;++pe){var ve=te[pe];if(!ve.marker.collapsed)continue;var Ce=ve.marker.find(0),De=pt(Ce.from,i)||vr(ve.marker)-vr(p),Ie=pt(Ce.to,n)||or(ve.marker)-or(p);if(De>=0&&Ie<=0||De<=0&&Ie>=0)continue;if(De<=0&&(ve.marker.inclusiveRight&&p.inclusiveLeft?pt(Ce.to,i)>=0:pt(Ce.to,i)>0)||De>=0&&(ve.marker.inclusiveRight&&p.inclusiveLeft?pt(Ce.from,n)<=0:pt(Ce.from,n)<0))return!0}}function Et(e){for(var t;t=Cr(e);)e=t.find(-1,!0).line;return e}function Kt(e){for(var t;t=ct(e);)e=t.find(1,!0).line;return e}function wt(e){for(var t,i;t=ct(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function It(e,t){var i=ft(e,t),n=Et(i);return i==n?t:Pt(n)}function yr(e,t){if(t>e.lastLine())return t;var i=ft(e,t),n;if(!mr(e,i))return t;for(;n=ct(i);)i=n.find(1,!0).line;return Pt(i)+1}function mr(e,t){var i=zr&&t.markedSpans;if(i)for(var n=void 0,p=0;p<i.length;++p){if(n=i[p],!n.marker.collapsed)continue;if(n.from==null)return!0;if(n.marker.widgetNode)continue;if(n.from==0&&n.marker.inclusiveLeft&&on(e,t,n))return!0}}function on(e,t,i){if(i.to==null){var n=i.marker.find(1,!0);return on(e,n.line,rn(n.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var p=void 0,B=0;B<t.markedSpans.length;++B)if(p=t.markedSpans[B],p.marker.collapsed&&!p.marker.widgetNode&&p.from==i.to&&(p.to==null||p.to!=i.from)&&(p.marker.inclusiveLeft||i.marker.inclusiveRight)&&on(e,t,p))return!0}function Tr(e){e=Et(e);for(var t=0,i=e.parent,n=0;n<i.lines.length;++n){var p=i.lines[n];if(p==e)break;t+=p.height}for(var B=i.parent;B;i=B,B=i.parent)for(var te=0;te<B.children.length;++te){var pe=B.children[te];if(pe==i)break;t+=pe.height}return t}function Or(e){if(e.height==0)return 0;for(var t=e.text.length,i,n=e;i=Cr(n);){var p=i.find(0,!0);n=p.from.line,t+=p.from.ch-p.to.ch}for(n=e;i=ct(n);){var B=i.find(0,!0);t-=n.text.length-B.from.ch,n=B.to.line,t+=n.text.length-B.to.ch}return t}function an(e){var t=e.display,i=e.doc;t.maxLine=ft(i,i.first),t.maxLineLength=Or(t.maxLine),t.maxLineChanged=!0,i.iter(function(n){var p=Or(n);p>t.maxLineLength&&(t.maxLineLength=p,t.maxLine=n)})}var Kr=function(e,t,i){this.text=e,ei(this,t),this.height=i?i(this):1};Kr.prototype.lineNo=function(){return Pt(this)},Pe(Kr);function Xr(e,t,i,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Mn(e),ei(e,i);var p=n?n(e):1;p!=e.height&&Nt(e,p)}function Nn(e){e.parent=null,Mn(e)}var Ot={},Lt={};function kt(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?Lt:Ot;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Ht(e,t){var i=he("span",null,null,l?"padding-right: .1px":null),n={pre:he("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var p=0;p<=(t.rest?t.rest.length:0);p++){var B=p?t.rest[p-1]:t.line,te=void 0;n.pos=0,n.addToken=nr,ut(e.display.measure)&&(te=Ge(B,e.doc.direction))&&(n.addToken=ur(n.addToken,te)),n.map=[];var pe=t!=e.display.externalMeasured&&Pt(B);Jt(B,n,Qe(e,B,pe)),B.styleClasses&&(B.styleClasses.bgClass&&(n.bgClass=U(B.styleClasses.bgClass,n.bgClass||"")),B.styleClasses.textClass&&(n.textClass=U(B.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(lt(e.display.measure))),p==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var ve=n.content.lastChild;(/\bcm-tab\b/.test(ve.className)||ve.querySelector&&ve.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Ke(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=U(n.pre.className,n.textClass||"")),n}function qt(e){var t=$("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function nr(e,t,i,n,p,B,te){if(!t)return;var pe=e.splitSpaces?bt(t,e.trailingSpace):t,ve=e.cm.state.specialChars,Ce=!1,De;if(!ve.test(t))e.col+=t.length,De=document.createTextNode(pe),e.map.push(e.pos,e.pos+t.length,De),v&&c<9&&(Ce=!0),e.pos+=t.length;else{De=document.createDocumentFragment();for(var Ie=0;;){ve.lastIndex=Ie;var ze=ve.exec(t),He=ze?ze.index-Ie:t.length-Ie;if(He){var et=document.createTextNode(pe.slice(Ie,Ie+He));v&&c<9?De.appendChild($("span",[et])):De.appendChild(et),e.map.push(e.pos,e.pos+He,et),e.col+=He,e.pos+=He}if(!ze)break;Ie+=He+1;var rt=void 0;if(ze[0]==" "){var at=e.cm.options.tabSize,mt=at-e.col%at;rt=De.appendChild($("span",oe(mt),"cm-tab")),rt.setAttribute("role","presentation"),rt.setAttribute("cm-text"," "),e.col+=mt}else ze[0]=="\r"||ze[0]==`
|
|
|
`?(rt=De.appendChild($("span",ze[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),rt.setAttribute("cm-text",ze[0]),e.col+=1):(rt=e.cm.options.specialCharPlaceholder(ze[0]),rt.setAttribute("cm-text",ze[0]),v&&c<9?De.appendChild($("span",[rt])):De.appendChild(rt),e.col+=1);e.map.push(e.pos,e.pos+1,rt),e.pos++}}if(e.trailingSpace=pe.charCodeAt(t.length-1)==32,i||n||p||Ce||B||te){var St=i||"";n&&(St+=n),p&&(St+=p);var gt=$("span",[De],St,B);if(te)for(var Tt in te)te.hasOwnProperty(Tt)&&Tt!="style"&&Tt!="class"&>.setAttribute(Tt,te[Tt]);return e.content.appendChild(gt)}e.content.appendChild(De)}function bt(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,n="",p=0;p<e.length;p++){var B=e.charAt(p);B==" "&&i&&(p==e.length-1||e.charCodeAt(p+1)==32)&&(B="\xA0"),n+=B,i=B==" "}return n}function ur(e,t){return function(i,n,p,B,te,pe,ve){p=p?p+" cm-force-border":"cm-force-border";for(var Ce=i.pos,De=Ce+n.length;;){for(var Ie=void 0,ze=0;ze<t.length&&!(Ie=t[ze],Ie.to>Ce&&Ie.from<=Ce);ze++);if(Ie.to>=De)return e(i,n,p,B,te,pe,ve);e(i,n.slice(0,Ie.to-Ce),p,B,null,pe,ve),B=null,n=n.slice(Ie.to-Ce),Ce=Ie.to}}}function Er(e,t,i,n){var p=!n&&i.widgetNode;p&&e.map.push(e.pos,e.pos+t,p),!n&&e.cm.display.input.needsContentAttribute&&(p||(p=e.content.appendChild(document.createElement("span"))),p.setAttribute("cm-marker",i.id)),p&&(e.cm.display.input.setUneditable(p),e.content.appendChild(p)),e.pos+=t,e.trailingSpace=!1}function Jt(e,t,i){var n=e.markedSpans,p=e.text,B=0;if(!n){for(var te=1;te<i.length;te+=2)t.addToken(t,p.slice(B,B=i[te]),kt(i[te+1],t.cm.options));return}for(var pe=p.length,ve=0,Ce=1,De="",Ie,ze,He=0,et,rt,at,mt,St;;){if(He==ve){et=rt=at=ze="",St=null,mt=null,He=Infinity;for(var gt=[],Tt=void 0,Ft=0;Ft<n.length;++Ft){var Mt=n[Ft],$t=Mt.marker;if($t.type=="bookmark"&&Mt.from==ve&&$t.widgetNode)gt.push($t);else if(Mt.from<=ve&&(Mt.to==null||Mt.to>ve||$t.collapsed&&Mt.to==ve&&Mt.from==ve)){if(Mt.to!=null&&Mt.to!=ve&&He>Mt.to&&(He=Mt.to,rt=""),$t.className&&(et+=" "+$t.className),$t.css&&(ze=(ze?ze+";":"")+$t.css),$t.startStyle&&Mt.from==ve&&(at+=" "+$t.startStyle),$t.endStyle&&Mt.to==He&&(Tt||(Tt=[])).push($t.endStyle,Mt.to),$t.title&&((St||(St={})).title=$t.title),$t.attributes)for(var pr in $t.attributes)(St||(St={}))[pr]=$t.attributes[pr];$t.collapsed&&(!mt||Lr(mt.marker,$t)<0)&&(mt=Mt)}else Mt.from>ve&&He>Mt.from&&(He=Mt.from)}if(Tt)for(var Br=0;Br<Tt.length;Br+=2)Tt[Br+1]==He&&(rt+=" "+Tt[Br]);if(!mt||mt.from==ve)for(var wr=0;wr<gt.length;++wr)Er(t,0,gt[wr]);if(mt&&(mt.from||0)==ve){if(Er(t,(mt.to==null?pe+1:mt.to)-ve,mt.marker,mt.from==null),mt.to==null)return;mt.to==ve&&(mt=!1)}}if(ve>=pe)break;for(var mn=Math.min(pe,He);;){if(De){var cn=ve+De.length;if(!mt){var Rr=cn>mn?De.slice(0,mn-ve):De;t.addToken(t,Rr,Ie?Ie+et:et,at,ve+Rr.length==He?rt:"",ze,St)}if(cn>=mn){De=De.slice(mn-ve),ve=mn;break}ve=cn,at=""}De=p.slice(B,B=i[Ce++]),Ie=kt(i[Ce++],t.cm.options)}}}function wn(e,t,i){this.line=t,this.rest=wt(t),this.size=this.rest?Pt(Z(this.rest))-i+1:1,this.node=this.text=null,this.hidden=mr(e,t)}function ar(e,t,i){for(var n=[],p,B=t;B<i;B=p){var te=new wn(e.doc,ft(e.doc,B),B);p=B+te.size,n.push(te)}return n}var Sr=null;function kr(e){Sr?Sr.ops.push(e):e.ownsGroup=Sr={ops:[e],delayedCallbacks:[]}}function sn(e){var t=e.delayedCallbacks,i=0;do{for(;i<t.length;i++)t[i].call(null);for(var n=0;n<e.ops.length;n++){var p=e.ops[n];if(p.cursorActivityHandlers)for(;p.cursorActivityCalled<p.cursorActivityHandlers.length;)p.cursorActivityHandlers[p.cursorActivityCalled++].call(null,p.cm)}}while(i<t.length)}function Wn(e,t){var i=e.ownsGroup;if(!i)return;try{sn(i)}finally{Sr=null,t(i)}}var Ln=null;function Ar(e,t){var i=Ze(e,t);if(!i.length)return;var n=Array.prototype.slice.call(arguments,2),p;Sr?p=Sr.delayedCallbacks:Ln?p=Ln:(p=Ln=[],setTimeout(Di,0));for(var B=function(pe){p.push(function(){return i[pe].apply(null,n)})},te=0;te<i.length;++te)B(te)}function Di(){var e=Ln;Ln=null;for(var t=0;t<e.length;++t)e[t]()}function Ri(e,t,i,n){for(var p=0;p<t.changes.length;p++){var B=t.changes[p];B=="text"?to(e,t):B=="gutter"?Cn(e,t,i,n):B=="class"?In(e,t):B=="widget"&&ro(e,t,n)}t.changes=null}function Hn(e){return e.node==e.text&&(e.node=$("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),v&&c<8&&(e.node.style.zIndex=2)),e.node}function zn(e,t){var i=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(i&&(i+=" CodeMirror-linebackground"),t.background)i?t.background.className=i:(t.background.parentNode.removeChild(t.background),t.background=null);else if(i){var n=Hn(t);t.background=n.insertBefore($("div",null,i),n.firstChild),e.display.input.setUneditable(t.background)}}function di(e,t){var i=e.display.externalMeasured;return i&&i.line==t.line?(e.display.externalMeasured=null,t.measure=i.measure,i.built):Ht(e,t)}function to(e,t){var i=t.text.className,n=di(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,In(e,t)):i&&(t.text.className=i)}function In(e,t){zn(e,t),t.line.wrapClass?Hn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var i=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=i||""}function Cn(e,t,i,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var p=Hn(t);t.gutterBackground=$("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),p.insertBefore(t.gutterBackground,t.text)}var B=t.line.gutterMarkers;if(e.options.lineNumbers||B){var te=Hn(t),pe=t.gutter=$("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(e.display.input.setUneditable(pe),te.insertBefore(pe,t.text),t.line.gutterClass&&(pe.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!B||!B["CodeMirror-linenumbers"])&&(t.lineNumber=pe.appendChild($("div",Pr(e.options,i),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),B)for(var ve=0;ve<e.display.gutterSpecs.length;++ve){var Ce=e.display.gutterSpecs[ve].className,De=B.hasOwnProperty(Ce)&&B[Ce];De&&pe.appendChild($("div",[De],"CodeMirror-gutter-elt","left: "+n.gutterLeft[Ce]+"px; width: "+n.gutterWidth[Ce]+"px"))}}}function ro(e,t,i){t.alignable&&(t.alignable=null);for(var n=X("CodeMirror-linewidget"),p=t.node.firstChild,B=void 0;p;p=B)B=p.nextSibling,n.test(p.className)&&t.node.removeChild(p);hi(e,t,i)}function no(e,t,i,n){var p=di(e,t);return t.text=t.node=p.pre,p.bgClass&&(t.bgClass=p.bgClass),p.textClass&&(t.textClass=p.textClass),In(e,t),Cn(e,t,i,n),hi(e,t,n),t.node}function hi(e,t,i){if(En(e,t.line,t,i,!0),t.rest)for(var n=0;n<t.rest.length;n++)En(e,t.rest[n],t,i,!1)}function En(e,t,i,n,p){if(!t.widgets)return;for(var B=Hn(i),te=0,pe=t.widgets;te<pe.length;++te){var ve=pe[te],Ce=$("div",[ve.node],"CodeMirror-linewidget"+(ve.className?" "+ve.className:""));ve.handleMouseEvents||Ce.setAttribute("cm-ignore-events","true"),io(ve,Ce,i,n),e.display.input.setUneditable(Ce),p&&ve.above?B.insertBefore(Ce,i.gutter||i.text):B.appendChild(Ce),Ar(ve,"redraw")}}function io(e,t,i,n){if(e.noHScroll){(i.alignable||(i.alignable=[])).push(t);var p=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(p-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=p+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function Pn(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!J(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),G(t.display.measure,$("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function vn(e,t){for(var i=Xe(t);i!=e.wrapper;i=i.parentNode)if(!i||i.nodeType==1&&i.getAttribute("cm-ignore-events")=="true"||i.parentNode==e.sizer&&i!=e.mover)return!0}function Mi(e){return e.lineSpace.offsetTop}function Qr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Gn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=G(e.measure,$("pre","x","CodeMirror-line-like")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return!isNaN(n.left)&&!isNaN(n.right)&&(e.cachedPaddingH=n),n}function kn(e){return xe-e.display.nativeBarWidth}function ti(e){return e.display.scroller.clientWidth-kn(e)-e.display.barWidth}function Oo(e){return e.display.scroller.clientHeight-kn(e)-e.display.barHeight}function Fs(e,t,i){var n=e.options.lineWrapping,p=n&&ti(e);if(!t.measure.heights||n&&t.measure.width!=p){var B=t.measure.heights=[];if(n){t.measure.width=p;for(var te=t.text.firstChild.getClientRects(),pe=0;pe<te.length-1;pe++){var ve=te[pe],Ce=te[pe+1];Math.abs(ve.bottom-Ce.bottom)>2&&B.push((ve.bottom+Ce.top)/2-i.top)}}B.push(i.bottom-i.top)}}function ua(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var p=0;p<e.rest.length;p++)if(Pt(e.rest[p])>i)return{map:e.measure.maps[p],cache:e.measure.caches[p],before:!0}}function Bs(e,t){t=Et(t);var i=Pt(t),n=e.display.externalMeasured=new wn(e.doc,t,i);n.lineN=i;var p=n.built=Ht(e,n);return n.text=p.pre,G(e.display.lineMeasure,p.pre),n}function ca(e,t,i,n){return An(e,fi(e,t),i,n)}function ko(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[ii(e,t)];var i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size)return i}function fi(e,t){var i=Pt(t),n=ko(e,i);n&&!n.text?n=null:n&&n.changes&&(Ri(e,n,i,Lo(e)),e.curOp.forceUpdate=!0),n||(n=Bs(e,t));var p=ua(n,t,i);return{line:t,view:n,rect:null,map:p.map,cache:p.cache,before:p.before,hasHeights:!1}}function An(e,t,i,n,p){t.before&&(i=-1);var B=i+(n||""),te;return t.cache.hasOwnProperty(B)?te=t.cache[B]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Fs(e,t.view,t.rect),t.hasHeights=!0),te=Ws(e,t,i,n),te.bogus||(t.cache[B]=te)),{left:te.left,right:te.right,top:p?te.rtop:te.top,bottom:p?te.rbottom:te.bottom}}var da={left:0,right:0,top:0,bottom:0};function ha(e,t,i){for(var n,p,B,te,pe,ve,Ce=0;Ce<e.length;Ce+=3)if(pe=e[Ce],ve=e[Ce+1],t<pe?(p=0,B=1,te="left"):t<ve?(p=t-pe,B=p+1):(Ce==e.length-3||t==ve&&e[Ce+3]>t)&&(B=ve-pe,p=B-1,t>=ve&&(te="right")),p!=null){if(n=e[Ce+2],pe==ve&&i==(n.insertLeft?"left":"right")&&(te=i),i=="left"&&p==0)for(;Ce&&e[Ce-2]==e[Ce-3]&&e[Ce-1].insertLeft;)n=e[(Ce-=3)+2],te="left";if(i=="right"&&p==ve-pe)for(;Ce<e.length-3&&e[Ce+3]==e[Ce+4]&&!e[Ce+5].insertLeft;)n=e[(Ce+=3)+2],te="right";break}return{node:n,start:p,end:B,collapse:te,coverStart:pe,coverEnd:ve}}function Us(e,t){var i=da;if(t=="left")for(var n=0;n<e.length&&!((i=e[n]).left!=i.right);n++);else for(var p=e.length-1;p>=0&&!((i=e[p]).left!=i.right);p--);return i}function Ws(e,t,i,n){var p=ha(t.map,i,n),B=p.node,te=p.start,pe=p.end,ve=p.collapse,Ce;if(B.nodeType==3){for(var De=0;De<4;De++){for(;te&&be(t.line.text.charAt(p.coverStart+te));)--te;for(;p.coverStart+pe<p.coverEnd&&be(t.line.text.charAt(p.coverStart+pe));)++pe;if(v&&c<9&&te==0&&pe==p.coverEnd-p.coverStart?Ce=B.parentNode.getBoundingClientRect():Ce=Us(de(B,te,pe).getClientRects(),n),Ce.left||Ce.right||te==0)break;pe=te,te=te-1,ve="right"}v&&c<11&&(Ce=Hs(e.display.measure,Ce))}else{te>0&&(ve=n="right");var Ie;e.options.lineWrapping&&(Ie=B.getClientRects()).length>1?Ce=Ie[n=="right"?Ie.length-1:0]:Ce=B.getBoundingClientRect()}if(v&&c<9&&!te&&(!Ce||!Ce.left&&!Ce.right)){var ze=B.parentNode.getClientRects()[0];ze?Ce={left:ze.left,right:ze.left+mi(e.display),top:ze.top,bottom:ze.bottom}:Ce=da}for(var He=Ce.top-t.rect.top,et=Ce.bottom-t.rect.top,rt=(He+et)/2,at=t.view.measure.heights,mt=0;mt<at.length-1&&!(rt<at[mt]);mt++);var St=mt?at[mt-1]:0,gt=at[mt],Tt={left:(ve=="right"?Ce.right:Ce.left)-t.rect.left,right:(ve=="left"?Ce.left:Ce.right)-t.rect.left,top:St,bottom:gt};return!Ce.left&&!Ce.right&&(Tt.bogus=!0),e.options.singleCursorHeightPerLine||(Tt.rtop=He,Tt.rbottom=et),Tt}function Hs(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!er(e))return t;var i=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*i,right:t.right*i,top:t.top*n,bottom:t.bottom*n}}function fa(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function pa(e){e.display.externalMeasure=null,H(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)fa(e.display.view[t])}function Ni(e){pa(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function ma(){return r&&b?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ga(){return r&&b?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ao(e){var t=0;if(e.widgets)for(var i=0;i<e.widgets.length;++i)e.widgets[i].above&&(t+=Pn(e.widgets[i]));return t}function oo(e,t,i,n,p){if(!p){var B=Ao(t);i.top+=B,i.bottom+=B}if(n=="line")return i;n||(n="local");var te=Tr(t);if(n=="local"?te+=Mi(e.display):te-=e.display.viewOffset,n=="page"||n=="window"){var pe=e.display.lineSpace.getBoundingClientRect();te+=pe.top+(n=="window"?0:ga());var ve=pe.left+(n=="window"?0:ma());i.left+=ve,i.right+=ve}return i.top+=te,i.bottom+=te,i}function va(e,t,i){if(i=="div")return t;var n=t.left,p=t.top;if(i=="page")n-=ma(),p-=ga();else if(i=="local"||!i){var B=e.display.sizer.getBoundingClientRect();n+=B.left,p+=B.top}var te=e.display.lineSpace.getBoundingClientRect();return{left:n-te.left,top:p-te.top}}function Do(e,t,i,n,p){return n||(n=ft(e.doc,t.line)),oo(e,n,ca(e,n,t.ch,p),i)}function Sn(e,t,i,n,p,B){n=n||ft(e.doc,t.line),p||(p=fi(e,n));function te(et,rt){var at=An(e,p,et,rt?"right":"left",B);return rt?at.left=at.right:at.right=at.left,oo(e,n,at,i)}var pe=Ge(n,e.doc.direction),ve=t.ch,Ce=t.sticky;if(ve>=n.text.length?(ve=n.text.length,Ce="before"):ve<=0&&(ve=0,Ce="after"),!pe)return te(Ce=="before"?ve-1:ve,Ce=="before");function De(et,rt,at){var mt=pe[rt],St=mt.level==1;return te(at?et-1:et,St!=at)}var Ie=We(pe,ve,Ce),ze=Ue,He=De(ve,Ie,Ce=="before");return ze!=null&&(He.other=De(ve,ze,Ce!="before")),He}function ya(e,t){var i=0;t=S(e.doc,t),e.options.lineWrapping||(i=mi(e.display)*t.ch);var n=ft(e.doc,t.line),p=Tr(n)+Mi(e.display);return{left:i,right:i,top:p,bottom:p+n.height}}function Ro(e,t,i,n,p){var B=qe(e,t,i);return B.xRel=p,n&&(B.outside=n),B}function Mo(e,t,i){var n=e.doc;if(i+=e.display.viewOffset,i<0)return Ro(n.first,0,null,-1,-1);var p=fr(n,i),B=n.first+n.size-1;if(p>B)return Ro(n.first+n.size-1,ft(n,B).text.length,null,1,1);t<0&&(t=0);for(var te=ft(n,p);;){var pe=zs(e,te,p,t,i),ve=vt(te,pe.ch+(pe.xRel>0||pe.outside>0?1:0));if(!ve)return pe;var Ce=ve.find(1);if(Ce.line==p)return Ce;te=ft(n,p=Ce.line)}}function ba(e,t,i,n){n-=Ao(t);var p=t.text.length,B=Be(function(te){return An(e,i,te-1).bottom<=n},p,0);return p=Be(function(te){return An(e,i,te).top>n},B,p),{begin:B,end:p}}function xa(e,t,i,n){i||(i=fi(e,t));var p=oo(e,t,An(e,i,n),"line").top;return ba(e,t,i,p)}function No(e,t,i,n){return e.bottom<=i?!1:e.top>i?!0:(n?e.left:e.right)>t}function zs(e,t,i,n,p){p-=Tr(t);var B=fi(e,t),te=Ao(t),pe=0,ve=t.text.length,Ce=!0,De=Ge(t,e.doc.direction);if(De){var Ie=(e.options.lineWrapping?Ks:Gs)(e,t,i,B,De,n,p);Ce=Ie.level!=1,pe=Ce?Ie.from:Ie.to-1,ve=Ce?Ie.to:Ie.from-1}var ze=null,He=null,et=Be(function(Ft){var Mt=An(e,B,Ft);return Mt.top+=te,Mt.bottom+=te,No(Mt,n,p,!1)?(Mt.top<=p&&Mt.left<=n&&(ze=Ft,He=Mt),!0):!1},pe,ve),rt,at,mt=!1;if(He){var St=n-He.left<He.right-n,gt=St==Ce;et=ze+(gt?0:1),at=gt?"after":"before",rt=St?He.left:He.right}else{!Ce&&(et==ve||et==pe)&&et++,at=et==0?"after":et==t.text.length?"before":An(e,B,et-(Ce?1:0)).bottom+te<=p==Ce?"after":"before";var Tt=Sn(e,qe(i,et,at),"line",t,B);rt=Tt.left,mt=p<Tt.top?-1:p>=Tt.bottom?1:0}return et=Te(t.text,et,1),Ro(i,et,at,mt,n-rt)}function Gs(e,t,i,n,p,B,te){var pe=Be(function(Ie){var ze=p[Ie],He=ze.level!=1;return No(Sn(e,qe(i,He?ze.to:ze.from,He?"before":"after"),"line",t,n),B,te,!0)},0,p.length-1),ve=p[pe];if(pe>0){var Ce=ve.level!=1,De=Sn(e,qe(i,Ce?ve.from:ve.to,Ce?"after":"before"),"line",t,n);No(De,B,te,!0)&&De.top>te&&(ve=p[pe-1])}return ve}function Ks(e,t,i,n,p,B,te){var pe=ba(e,t,n,te),ve=pe.begin,Ce=pe.end;/\s/.test(t.text.charAt(Ce-1))&&Ce--;for(var De=null,Ie=null,ze=0;ze<p.length;ze++){var He=p[ze];if(He.from>=Ce||He.to<=ve)continue;var et=He.level!=1,rt=An(e,n,et?Math.min(Ce,He.to)-1:Math.max(ve,He.from)).right,at=rt<B?B-rt+1e9:rt-B;(!De||Ie>at)&&(De=He,Ie=at)}return De||(De=p[p.length-1]),De.from<ve&&(De={from:ve,to:De.to,level:De.level}),De.to>Ce&&(De={from:De.from,to:Ce,level:De.level}),De}var ri;function pi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(ri==null){ri=$("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ri.appendChild(document.createTextNode("x")),ri.appendChild($("br"));ri.appendChild(document.createTextNode("x"))}G(e.measure,ri);var i=ri.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),H(e.measure),i||1}function mi(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=$("span","xxxxxxxxxx"),i=$("pre",[t],"CodeMirror-line-like");G(e.measure,i);var n=t.getBoundingClientRect(),p=(n.right-n.left)/10;return p>2&&(e.cachedCharWidth=p),p||10}function Lo(e){for(var t=e.display,i={},n={},p=t.gutters.clientLeft,B=t.gutters.firstChild,te=0;B;B=B.nextSibling,++te){var pe=e.display.gutterSpecs[te].className;i[pe]=B.offsetLeft+B.clientLeft+p,n[pe]=B.clientWidth}return{fixedPos:Io(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Io(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function wa(e){var t=pi(e.display),i=e.options.lineWrapping,n=i&&Math.max(5,e.display.scroller.clientWidth/mi(e.display)-3);return function(p){if(mr(e.doc,p))return 0;var B=0;if(p.widgets)for(var te=0;te<p.widgets.length;te++)p.widgets[te].height&&(B+=p.widgets[te].height);return i?B+(Math.ceil(p.text.length/n)||1)*t:B+t}}function Po(e){var t=e.doc,i=wa(e);t.iter(function(n){var p=i(n);p!=n.height&&Nt(n,p)})}function ni(e,t,i,n){var p=e.display;if(!i&&Xe(t).getAttribute("cm-not-content")=="true")return null;var B,te,pe=p.lineSpace.getBoundingClientRect();try{B=t.clientX-pe.left,te=t.clientY-pe.top}catch(Ie){return null}var ve=Mo(e,B,te),Ce;if(n&&ve.xRel>0&&(Ce=ft(e.doc,ve.line).text).length==ve.ch){var De=I(Ce,Ce.length,e.options.tabSize)-Ce.length;ve=qe(ve.line,Math.max(0,Math.round((B-Gn(e.display).left)/mi(e.display))-De))}return ve}function ii(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var i=e.display.view,n=0;n<i.length;n++)if(t-=i[n].size,t<0)return n}function ln(e,t,i,n){t==null&&(t=e.doc.first),i==null&&(i=e.doc.first+e.doc.size),n||(n=0);var p=e.display;if(n&&i<p.viewTo&&(p.updateLineNumbers==null||p.updateLineNumbers>t)&&(p.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=p.viewTo)zr&&It(e.doc,t)<p.viewTo&&Xn(e);else if(i<=p.viewFrom)zr&&yr(e.doc,i+n)>p.viewFrom?Xn(e):(p.viewFrom+=n,p.viewTo+=n);else if(t<=p.viewFrom&&i>=p.viewTo)Xn(e);else if(t<=p.viewFrom){var B=ao(e,i,i+n,1);B?(p.view=p.view.slice(B.index),p.viewFrom=B.lineN,p.viewTo+=n):Xn(e)}else if(i>=p.viewTo){var te=ao(e,t,t,-1);te?(p.view=p.view.slice(0,te.index),p.viewTo=te.lineN):Xn(e)}else{var pe=ao(e,t,t,-1),ve=ao(e,i,i+n,1);pe&&ve?(p.view=p.view.slice(0,pe.index).concat(ar(e,pe.lineN,ve.lineN)).concat(p.view.slice(ve.index)),p.viewTo+=n):Xn(e)}var Ce=p.externalMeasured;Ce&&(i<Ce.lineN?Ce.lineN+=n:t<Ce.lineN+Ce.size&&(p.externalMeasured=null))}function Kn(e,t,i){e.curOp.viewChanged=!0;var n=e.display,p=e.display.externalMeasured;if(p&&t>=p.lineN&&t<p.lineN+p.size&&(n.externalMeasured=null),t<n.viewFrom||t>=n.viewTo)return;var B=n.view[ii(e,t)];if(B.node==null)return;var te=B.changes||(B.changes=[]);me(te,i)==-1&&te.push(i)}function Xn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ao(e,t,i,n){var p=ii(e,t),B,te=e.display.view;if(!zr||i==e.doc.first+e.doc.size)return{index:p,lineN:i};for(var pe=e.display.viewFrom,ve=0;ve<p;ve++)pe+=te[ve].size;if(pe!=t){if(n>0){if(p==te.length-1)return null;B=pe+te[p].size-t,p++}else B=pe-t;t+=B,i+=B}for(;It(e.doc,i)!=i;){if(p==(n<0?0:te.length-1))return null;i+=n*te[p-(n<0?1:0)].size,p+=n}return{index:p,lineN:i}}function Xs(e,t,i){var n=e.display,p=n.view;p.length==0||t>=n.viewTo||i<=n.viewFrom?(n.view=ar(e,t,i),n.viewFrom=t):(n.viewFrom>t?n.view=ar(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(ii(e,t))),n.viewFrom=t,n.viewTo<i?n.view=n.view.concat(ar(e,n.viewTo,i)):n.viewTo>i&&(n.view=n.view.slice(0,ii(e,i)))),n.viewTo=i}function Ca(e){for(var t=e.display.view,i=0,n=0;n<t.length;n++){var p=t[n];!p.hidden&&(!p.node||p.changes)&&++i}return i}function Li(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Ea(e,t){t===void 0&&(t=!0);for(var i=e.doc,n={},p=n.cursors=document.createDocumentFragment(),B=n.selection=document.createDocumentFragment(),te=0;te<i.sel.ranges.length;te++){if(!t&&te==i.sel.primIndex)continue;var pe=i.sel.ranges[te];if(pe.from().line>=e.display.viewTo||pe.to().line<e.display.viewFrom)continue;var ve=pe.empty();(ve||e.options.showCursorWhenSelecting)&&Sa(e,pe.head,p),ve||Vs(e,pe,B)}return n}function Sa(e,t,i){var n=Sn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),p=i.appendChild($("div","\xA0","CodeMirror-cursor"));if(p.style.left=n.left+"px",p.style.top=n.top+"px",p.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",n.other){var B=i.appendChild($("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));B.style.display="",B.style.left=n.other.left+"px",B.style.top=n.other.top+"px",B.style.height=(n.other.bottom-n.other.top)*.85+"px"}}function so(e,t){return e.top-t.top||e.left-t.left}function Vs(e,t,i){var n=e.display,p=e.doc,B=document.createDocumentFragment(),te=Gn(e.display),pe=te.left,ve=Math.max(n.sizerWidth,ti(e)-n.sizer.offsetLeft)-te.right,Ce=p.direction=="ltr";function De(gt,Tt,Ft,Mt){Tt<0&&(Tt=0),Tt=Math.round(Tt),Mt=Math.round(Mt),B.appendChild($("div",null,"CodeMirror-selected","position: absolute; left: "+gt+`px;
|
|
|
top: `+Tt+"px; width: "+(Ft==null?ve-gt:Ft)+`px;
|
|
|
height: `+(Mt-Tt)+"px"))}function Ie(gt,Tt,Ft){var Mt=ft(p,gt),$t=Mt.text.length,pr,Br;function wr(Rr,dn){return Do(e,qe(gt,Rr),"div",Mt,dn)}function mn(Rr,dn,Hr){var Ir=xa(e,Mt,null,Rr),Mr=dn=="ltr"==(Hr=="after")?"left":"right",_r=Hr=="after"?Ir.begin:Ir.end-(/\s/.test(Mt.text.charAt(Ir.end-1))?2:1);return wr(_r,Mr)[Mr]}var cn=Ge(Mt,p.direction);return Fe(cn,Tt||0,Ft==null?$t:Ft,function(Rr,dn,Hr,Ir){var Mr=Hr=="ltr",_r=wr(Rr,Mr?"left":"right"),hn=wr(dn-1,Mr?"right":"left"),ki=Tt==null&&Rr==0,Qn=Ft==null&&dn==$t,Yr=Ir==0,Dn=!cn||Ir==cn.length-1;if(hn.top-_r.top<=3){var Ur=(Ce?ki:Qn)&&Yr,sa=(Ce?Qn:ki)&&Dn,Fn=Ur?pe:(Mr?_r:hn).left,ui=sa?ve:(Mr?hn:_r).right;De(Fn,_r.top,ui-Fn,_r.bottom)}else{var ci,en,Ai,la;Mr?(ci=Ce&&ki&&Yr?pe:_r.left,en=Ce?ve:mn(Rr,Hr,"before"),Ai=Ce?pe:mn(dn,Hr,"after"),la=Ce&&Qn&&Dn?ve:hn.right):(ci=Ce?mn(Rr,Hr,"before"):pe,en=!Ce&&ki&&Yr?ve:_r.right,Ai=!Ce&&Qn&&Dn?pe:hn.left,la=Ce?mn(dn,Hr,"after"):ve),De(ci,_r.top,en-ci,_r.bottom),_r.bottom<hn.top&&De(pe,_r.bottom,null,hn.top),De(Ai,hn.top,la-Ai,hn.bottom)}(!pr||so(_r,pr)<0)&&(pr=_r),so(hn,pr)<0&&(pr=hn),(!Br||so(_r,Br)<0)&&(Br=_r),so(hn,Br)<0&&(Br=hn)}),{start:pr,end:Br}}var ze=t.from(),He=t.to();if(ze.line==He.line)Ie(ze.line,ze.ch,He.ch);else{var et=ft(p,ze.line),rt=ft(p,He.line),at=Et(et)==Et(rt),mt=Ie(ze.line,ze.ch,at?et.text.length+1:null).end,St=Ie(He.line,at?0:null,He.ch).start;at&&(mt.top<St.top-2?(De(mt.right,mt.top,null,mt.bottom),De(pe,St.top,St.left,St.bottom)):De(mt.right,mt.top,St.left-mt.right,mt.bottom)),mt.bottom<St.top&&De(pe,mt.bottom,null,St.top)}i.appendChild(B)}function jo(e){if(!e.state.focused)return;var t=e.display;clearInterval(t.blinker);var i=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||gi(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function _a(e){e.state.focused||(e.display.input.focus(),Fo(e))}function Ta(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,gi(e))},100)}function Fo(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(Ke(e,"focus",e,t),e.state.focused=!0,q(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),jo(e)}function gi(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(Ke(e,"blur",e,t),e.state.focused=!1,P(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function lo(e){for(var t=e.display,i=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var p=t.view[n],B=e.options.lineWrapping,te=void 0,pe=0;if(p.hidden)continue;if(v&&c<8){var ve=p.node.offsetTop+p.node.offsetHeight;te=ve-i,i=ve}else{var Ce=p.node.getBoundingClientRect();te=Ce.bottom-Ce.top,!B&&p.text.firstChild&&(pe=p.text.firstChild.getBoundingClientRect().right-Ce.left-1)}var De=p.line.height-te;if((De>.005||De<-.005)&&(Nt(p.line,te),Oa(p.line),p.rest))for(var Ie=0;Ie<p.rest.length;Ie++)Oa(p.rest[Ie]);if(pe>e.display.sizerWidth){var ze=Math.ceil(pe/mi(e.display));ze>e.display.maxLineLength&&(e.display.maxLineLength=ze,e.display.maxLine=p.line,e.display.maxLineChanged=!0)}}}function Oa(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var i=e.widgets[t],n=i.node.parentNode;n&&(i.height=n.offsetHeight)}}function uo(e,t,i){var n=i&&i.top!=null?Math.max(0,i.top):e.scroller.scrollTop;n=Math.floor(n-Mi(e));var p=i&&i.bottom!=null?i.bottom:n+e.wrapper.clientHeight,B=fr(t,n),te=fr(t,p);if(i&&i.ensure){var pe=i.ensure.from.line,ve=i.ensure.to.line;pe<B?(B=pe,te=fr(t,Tr(ft(t,pe))+e.wrapper.clientHeight)):Math.min(ve,t.lastLine())>=te&&(B=fr(t,Tr(ft(t,ve))-e.wrapper.clientHeight),te=ve)}return{from:B,to:Math.max(te,B+1)}}function Ys(e,t){if($e(e,"scrollCursorIntoView"))return;var i=e.display,n=i.sizer.getBoundingClientRect(),p=null;if(t.top+n.top<0?p=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(p=!1),p!=null&&!x){var B=$("div","\u200B",null,`position: absolute;
|
|
|
top: `+(t.top-i.viewOffset-Mi(e.display))+`px;
|
|
|
height: `+(t.bottom-t.top+kn(e)+i.barHeight)+`px;
|
|
|
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(B),B.scrollIntoView(p),e.display.lineSpace.removeChild(B)}}function Js(e,t,i,n){n==null&&(n=0);var p;!e.options.lineWrapping&&t==i&&(t=t.ch?qe(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?qe(t.line,t.ch+1,"before"):t);for(var B=0;B<5;B++){var te=!1,pe=Sn(e,t),ve=!i||i==t?pe:Sn(e,i);p={left:Math.min(pe.left,ve.left),top:Math.min(pe.top,ve.top)-n,right:Math.max(pe.left,ve.left),bottom:Math.max(pe.bottom,ve.bottom)+n};var Ce=Bo(e,p),De=e.doc.scrollTop,Ie=e.doc.scrollLeft;if(Ce.scrollTop!=null&&(Pi(e,Ce.scrollTop),Math.abs(e.doc.scrollTop-De)>1&&(te=!0)),Ce.scrollLeft!=null&&(oi(e,Ce.scrollLeft),Math.abs(e.doc.scrollLeft-Ie)>1&&(te=!0)),!te)break}return p}function $s(e,t){var i=Bo(e,t);i.scrollTop!=null&&Pi(e,i.scrollTop),i.scrollLeft!=null&&oi(e,i.scrollLeft)}function Bo(e,t){var i=e.display,n=pi(e.display);t.top<0&&(t.top=0);var p=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,B=Oo(e),te={};t.bottom-t.top>B&&(t.bottom=t.top+B);var pe=e.doc.height+Qr(i),ve=t.top<n,Ce=t.bottom>pe-n;if(t.top<p)te.scrollTop=ve?0:t.top;else if(t.bottom>p+B){var De=Math.min(t.top,(Ce?pe:t.bottom)-B);De!=p&&(te.scrollTop=De)}var Ie=e.options.fixedGutter?0:i.gutters.offsetWidth,ze=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-Ie,He=ti(e)-i.gutters.offsetWidth,et=t.right-t.left>He;return et&&(t.right=t.left+He),t.left<10?te.scrollLeft=0:t.left<ze?te.scrollLeft=Math.max(0,t.left+Ie-(et?0:10)):t.right>He+ze-3&&(te.scrollLeft=t.right+(et?0:10)-He),te}function Uo(e,t){if(t==null)return;co(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function vi(e){co(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ii(e,t,i){(t!=null||i!=null)&&co(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function Zs(e,t){co(e),e.curOp.scrollToPos=t}function co(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=ya(e,t.from),n=ya(e,t.to);ka(e,i,n,t.margin)}}function ka(e,t,i,n){var p=Bo(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-n,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+n});Ii(e,p.scrollLeft,p.scrollTop)}function Pi(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;D||Ho(e,{top:t}),Aa(e,t,!0),D&&Ho(e),Bi(e,100)}function Aa(e,t,i){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!i)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function oi(e,t,i,n){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)return;e.doc.scrollLeft=t,La(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function ji(e){var t=e.display,i=t.gutters.offsetWidth,n=Math.round(e.doc.height+Qr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:n,scrollHeight:n+kn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var ai=function(e,t,i){this.cm=i;var n=this.vert=$("div",[$("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),p=this.horiz=$("div",[$("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=p.tabIndex=-1,e(n),e(p),Re(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Re(p,"scroll",function(){p.clientWidth&&t(p.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,v&&c<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ai.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var p=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+p)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var B=e.viewWidth-e.barLeft-(i?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+B)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?n:0,bottom:t?n:0}},ai.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ai.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ai.prototype.zeroWidthHack=function(){var e=E&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new se,this.disableVert=new se},ai.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function n(){var p=e.getBoundingClientRect(),B=i=="vert"?document.elementFromPoint(p.right-1,(p.top+p.bottom)/2):document.elementFromPoint((p.right+p.left)/2,p.bottom-1);B!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},ai.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Fi=function(){};Fi.prototype.update=function(){return{bottom:0,right:0}},Fi.prototype.setScrollLeft=function(){},Fi.prototype.setScrollTop=function(){},Fi.prototype.clear=function(){};function yi(e,t){t||(t=ji(e));var i=e.display.barWidth,n=e.display.barHeight;Da(e,t);for(var p=0;p<4&&i!=e.display.barWidth||n!=e.display.barHeight;p++)i!=e.display.barWidth&&e.options.lineWrapping&&lo(e),Da(e,ji(e)),i=e.display.barWidth,n=e.display.barHeight}function Da(e,t){var i=e.display,n=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=n.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=n.bottom)+"px",i.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=n.bottom+"px",i.scrollbarFiller.style.width=n.right+"px"):i.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=n.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var Ra={native:ai,null:Fi};function Ma(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&P(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ra[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Re(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?oi(e,t):Pi(e,t)},e),e.display.scrollbars.addClass&&q(e.display.wrapper,e.display.scrollbars.addClass)}var Qs=0;function si(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++Qs},kr(e.curOp)}function li(e){var t=e.curOp;t&&Wn(t,function(i){for(var n=0;n<i.ops.length;n++)i.ops[n].cm.curOp=null;el(i)})}function el(e){for(var t=e.ops,i=0;i<t.length;i++)tl(t[i]);for(var n=0;n<t.length;n++)rl(t[n]);for(var p=0;p<t.length;p++)nl(t[p]);for(var B=0;B<t.length;B++)il(t[B]);for(var te=0;te<t.length;te++)ol(t[te])}function tl(e){var t=e.cm,i=t.display;sl(t),e.updateMaxLine&&an(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<i.viewFrom||e.scrollToPos.to.line>=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ho(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function rl(e){e.updatedDisplay=e.mustUpdate&&Wo(e.cm,e.update)}function nl(e){var t=e.cm,i=t.display;e.updatedDisplay&&lo(t),e.barMeasure=ji(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ca(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+kn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-ti(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function il(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&oi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var i=e.focus&&e.focus==fe();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,i),(e.updatedDisplay||e.startHeight!=t.doc.height)&&yi(t,e.barMeasure),e.updatedDisplay&&Go(t,e.barMeasure),e.selectionChanged&&jo(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),i&&_a(e.cm)}function ol(e){var t=e.cm,i=t.display,n=t.doc;if(e.updatedDisplay&&Na(t,e.update),i.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(i.wheelStartX=i.wheelStartY=null),e.scrollTop!=null&&Aa(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&oi(t,e.scrollLeft,!0,!0),e.scrollToPos){var p=Js(t,S(n,e.scrollToPos.from),S(n,e.scrollToPos.to),e.scrollToPos.margin);Ys(t,p)}var B=e.maybeHiddenMarkers,te=e.maybeUnhiddenMarkers;if(B)for(var pe=0;pe<B.length;++pe)B[pe].lines.length||Ke(B[pe],"hide");if(te)for(var ve=0;ve<te.length;++ve)te[ve].lines.length&&Ke(te[ve],"unhide");i.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ke(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function pn(e,t){if(e.curOp)return t();si(e);try{return t()}finally{li(e)}}function jr(e,t){return function(){if(e.curOp)return t.apply(e,arguments);si(e);try{return t.apply(e,arguments)}finally{li(e)}}}function qr(e){return function(){if(this.curOp)return e.apply(this,arguments);si(this);try{return e.apply(this,arguments)}finally{li(this)}}}function Fr(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);si(t);try{return e.apply(this,arguments)}finally{li(t)}}}function Bi(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,L(al,e))}function al(e){var t=e.doc;if(t.highlightFrontier>=e.display.viewTo)return;var i=+new Date+e.options.workTime,n=ot(e,t.highlightFrontier),p=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(B){if(n.line>=e.display.viewFrom){var te=B.styles,pe=B.text.length>e.options.maxHighlightLength?Vt(t.mode,n.state):null,ve=Ne(e,B,n,!0);pe&&(n.state=pe),B.styles=ve.styles;var Ce=B.styleClasses,De=ve.classes;De?B.styleClasses=De:Ce&&(B.styleClasses=null);for(var Ie=!te||te.length!=B.styles.length||Ce!=De&&(!Ce||!De||Ce.bgClass!=De.bgClass||Ce.textClass!=De.textClass),ze=0;!Ie&&ze<te.length;++ze)Ie=te[ze]!=B.styles[ze];Ie&&p.push(n.line),B.stateAfter=n.save(),n.nextLine()}else B.text.length<=e.options.maxHighlightLength&&Ct(e,B.text,n),B.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>i)return Bi(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),p.length&&pn(e,function(){for(var B=0;B<p.length;B++)Kn(e,p[B],"text")})}var ho=function(e,t,i){var n=e.display;this.viewport=t,this.visible=uo(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=ti(e),this.force=i,this.dims=Lo(e),this.events=[]};ho.prototype.signal=function(e,t){Me(e,t)&&this.events.push(arguments)},ho.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ke.apply(null,this.events[e])};function sl(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=kn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=kn(e)+"px",t.scrollbarsClipped=!0)}function ll(e){if(e.hasFocus())return null;var t=fe();if(!t||!J(e.display.lineDiv,t))return null;var i={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&J(e.display.lineDiv,n.anchorNode)&&(i.anchorNode=n.anchorNode,i.anchorOffset=n.anchorOffset,i.focusNode=n.focusNode,i.focusOffset=n.focusOffset)}return i}function ul(e){if(!e||!e.activeElt||e.activeElt==fe())return;if(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&J(document.body,e.anchorNode)&&J(document.body,e.focusNode)){var t=window.getSelection(),i=document.createRange();i.setEnd(e.anchorNode,e.anchorOffset),i.collapse(!1),t.removeAllRanges(),t.addRange(i),t.extend(e.focusNode,e.focusOffset)}}function Wo(e,t){var i=e.display,n=e.doc;if(t.editorIsHidden)return Xn(e),!1;if(!t.force&&t.visible.from>=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&Ca(e)==0)return!1;Ia(e)&&(Xn(e),t.dims=Lo(e));var p=n.first+n.size,B=Math.max(t.visible.from-e.options.viewportMargin,n.first),te=Math.min(p,t.visible.to+e.options.viewportMargin);i.viewFrom<B&&B-i.viewFrom<20&&(B=Math.max(n.first,i.viewFrom)),i.viewTo>te&&i.viewTo-te<20&&(te=Math.min(p,i.viewTo)),zr&&(B=It(e.doc,B),te=yr(e.doc,te));var pe=B!=i.viewFrom||te!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Xs(e,B,te),i.viewOffset=Tr(ft(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var ve=Ca(e);if(!pe&&ve==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var Ce=ll(e);return ve>4&&(i.lineDiv.style.display="none"),cl(e,i.updateLineNumbers,t.dims),ve>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,ul(Ce),H(i.cursorDiv),H(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,pe&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,Bi(e,400)),i.updateLineNumbers=null,!0}function Na(e,t){for(var i=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==ti(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+Qr(e.display)-Oo(e),i.top)}),t.visible=uo(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=uo(e.display,e.doc,i));if(!Wo(e,t))break;lo(e);var p=ji(e);Li(e),yi(e,p),Go(e,p),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ho(e,t){var i=new ho(e,t);if(Wo(e,i)){lo(e),Na(e,i);var n=ji(e);Li(e),yi(e,n),Go(e,n),i.finish()}}function cl(e,t,i){var n=e.display,p=e.options.lineNumbers,B=n.lineDiv,te=B.firstChild;function pe(et){var rt=et.nextSibling;return l&&E&&e.display.currentWheelTarget==et?et.style.display="none":et.parentNode.removeChild(et),rt}for(var ve=n.view,Ce=n.viewFrom,De=0;De<ve.length;De++){var Ie=ve[De];if(!Ie.hidden)if(!Ie.node||Ie.node.parentNode!=B){var ze=no(e,Ie,Ce,i);B.insertBefore(ze,te)}else{for(;te!=Ie.node;)te=pe(te);var He=p&&t!=null&&t<=Ce&&Ie.lineNumber;Ie.changes&&(me(Ie.changes,"gutter")>-1&&(He=!1),Ri(e,Ie,Ce,i)),He&&(H(Ie.lineNumber),Ie.lineNumber.appendChild(document.createTextNode(Pr(e.options,Ce)))),te=Ie.node.nextSibling}Ce+=Ie.size}for(;te;)te=pe(te)}function zo(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Go(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+kn(e)+"px"}function La(e){var t=e.display,i=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var n=Io(t)-t.scroller.scrollLeft+e.doc.scrollLeft,p=t.gutters.offsetWidth,B=n+"px",te=0;te<i.length;te++)if(!i[te].hidden){e.options.fixedGutter&&(i[te].gutter&&(i[te].gutter.style.left=B),i[te].gutterBackground&&(i[te].gutterBackground.style.left=B));var pe=i[te].alignable;if(pe)for(var ve=0;ve<pe.length;ve++)pe[ve].style.left=B}e.options.fixedGutter&&(t.gutters.style.left=n+p+"px")}function Ia(e){if(!e.options.lineNumbers)return!1;var t=e.doc,i=Pr(e.options,t.first+t.size-1),n=e.display;if(i.length!=n.lineNumChars){var p=n.measure.appendChild($("div",[$("div",i)],"CodeMirror-linenumber CodeMirror-gutter-elt")),B=p.firstChild.offsetWidth,te=p.offsetWidth-B;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(B,n.lineGutter.offsetWidth-te)+1,n.lineNumWidth=n.lineNumInnerWidth+te,n.lineNumChars=n.lineNumInnerWidth?i.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",zo(e.display),!0}return!1}function Ko(e,t){for(var i=[],n=!1,p=0;p<e.length;p++){var B=e[p],te=null;if(typeof B!="string"&&(te=B.style,B=B.className),B=="CodeMirror-linenumbers")if(t)n=!0;else continue;i.push({className:B,style:te})}return t&&!n&&i.push({className:"CodeMirror-linenumbers",style:null}),i}function Pa(e){var t=e.gutters,i=e.gutterSpecs;H(t),e.lineGutter=null;for(var n=0;n<i.length;++n){var p=i[n],B=p.className,te=p.style,pe=t.appendChild($("div",null,"CodeMirror-gutter "+B));te&&(pe.style.cssText=te),B=="CodeMirror-linenumbers"&&(e.lineGutter=pe,pe.style.width=(e.lineNumWidth||1)+"px")}t.style.display=i.length?"":"none",zo(e)}function Ui(e){Pa(e.display),ln(e),La(e)}function dl(e,t,i,n){var p=this;this.input=i,p.scrollbarFiller=$("div",null,"CodeMirror-scrollbar-filler"),p.scrollbarFiller.setAttribute("cm-not-content","true"),p.gutterFiller=$("div",null,"CodeMirror-gutter-filler"),p.gutterFiller.setAttribute("cm-not-content","true"),p.lineDiv=he("div",null,"CodeMirror-code"),p.selectionDiv=$("div",null,null,"position: relative; z-index: 1"),p.cursorDiv=$("div",null,"CodeMirror-cursors"),p.measure=$("div",null,"CodeMirror-measure"),p.lineMeasure=$("div",null,"CodeMirror-measure"),p.lineSpace=he("div",[p.measure,p.lineMeasure,p.selectionDiv,p.cursorDiv,p.lineDiv],null,"position: relative; outline: none");var B=he("div",[p.lineSpace],"CodeMirror-lines");p.mover=$("div",[B],null,"position: relative"),p.sizer=$("div",[p.mover],"CodeMirror-sizer"),p.sizerWidth=null,p.heightForcer=$("div",null,null,"position: absolute; height: "+xe+"px; width: 1px;"),p.gutters=$("div",null,"CodeMirror-gutters"),p.lineGutter=null,p.scroller=$("div",[p.sizer,p.heightForcer,p.gutters],"CodeMirror-scroll"),p.scroller.setAttribute("tabIndex","-1"),p.wrapper=$("div",[p.scrollbarFiller,p.gutterFiller,p.scroller],"CodeMirror"),v&&c<8&&(p.gutters.style.zIndex=-1,p.scroller.style.paddingRight=0),!l&&!(D&&g)&&(p.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(p.wrapper):e(p.wrapper)),p.viewFrom=p.viewTo=t.first,p.reportedViewFrom=p.reportedViewTo=t.first,p.view=[],p.renderedView=null,p.externalMeasured=null,p.viewOffset=0,p.lastWrapHeight=p.lastWrapWidth=0,p.updateLineNumbers=null,p.nativeBarWidth=p.barHeight=p.barWidth=0,p.scrollbarsClipped=!1,p.lineNumWidth=p.lineNumInnerWidth=p.lineNumChars=null,p.alignWidgets=!1,p.cachedCharWidth=p.cachedTextHeight=p.cachedPaddingH=null,p.maxLine=null,p.maxLineLength=0,p.maxLineChanged=!1,p.wheelDX=p.wheelDY=p.wheelStartX=p.wheelStartY=null,p.shift=!1,p.selForContextMenu=null,p.activeTouch=null,p.gutterSpecs=Ko(n.gutters,n.lineNumbers),Pa(p),i.init(p)}var fo=0,yn=null;v?yn=-.53:D?yn=15:r?yn=-.7:u&&(yn=-1/3);function ja(e){var t=e.wheelDeltaX,i=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),i==null&&e.detail&&e.axis==e.VERTICAL_AXIS?i=e.detail:i==null&&(i=e.wheelDelta),{x:t,y:i}}function hl(e){var t=ja(e);return t.x*=yn,t.y*=yn,t}function Fa(e,t){var i=ja(t),n=i.x,p=i.y,B=e.display,te=B.scroller,pe=te.scrollWidth>te.clientWidth,ve=te.scrollHeight>te.clientHeight;if(!(n&&pe||p&&ve))return;if(p&&E&&l){e:for(var Ce=t.target,De=B.view;Ce!=te;Ce=Ce.parentNode)for(var Ie=0;Ie<De.length;Ie++)if(De[Ie].node==Ce){e.display.currentWheelTarget=Ce;break e}}if(n&&!D&&!d&&yn!=null){p&&ve&&Pi(e,Math.max(0,te.scrollTop+p*yn)),oi(e,Math.max(0,te.scrollLeft+n*yn)),(!p||p&&ve)&&Se(t),B.wheelStartX=null;return}if(p&&yn!=null){var ze=p*yn,He=e.doc.scrollTop,et=He+B.wrapper.clientHeight;ze<0?He=Math.max(0,He+ze-50):et=Math.min(e.doc.height,et+ze+50),Ho(e,{top:He,bottom:et})}fo<20&&(B.wheelStartX==null?(B.wheelStartX=te.scrollLeft,B.wheelStartY=te.scrollTop,B.wheelDX=n,B.wheelDY=p,setTimeout(function(){if(B.wheelStartX==null)return;var rt=te.scrollLeft-B.wheelStartX,at=te.scrollTop-B.wheelStartY,mt=at&&B.wheelDY&&at/B.wheelDY||rt&&B.wheelDX&&rt/B.wheelDX;if(B.wheelStartX=B.wheelStartY=null,!mt)return;yn=(yn*fo+mt)/(fo+1),++fo},200)):(B.wheelDX+=n,B.wheelDY+=p))}var bn=function(e,t){this.ranges=e,this.primIndex=t};bn.prototype.primary=function(){return this.ranges[this.primIndex]},bn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var i=this.ranges[t],n=e.ranges[t];if(!Wt(i.anchor,n.anchor)||!Wt(i.head,n.head))return!1}return!0},bn.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new cr(zt(this.ranges[t].anchor),zt(this.ranges[t].head));return new bn(e,this.primIndex)},bn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},bn.prototype.contains=function(e,t){t||(t=e);for(var i=0;i<this.ranges.length;i++){var n=this.ranges[i];if(pt(t,n.from())>=0&&pt(e,n.to())<=0)return i}return-1};var cr=function(e,t){this.anchor=e,this.head=t};cr.prototype.from=function(){return lr(this.anchor,this.head)},cr.prototype.to=function(){return ir(this.anchor,this.head)},cr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function _n(e,t,i){var n=e&&e.options.selectionsMayTouch,p=t[i];t.sort(function(ze,He){return pt(ze.from(),He.from())}),i=me(t,p);for(var B=1;B<t.length;B++){var te=t[B],pe=t[B-1],ve=pt(pe.to(),te.from());if(n&&!te.empty()?ve>0:ve>=0){var Ce=lr(pe.from(),te.from()),De=ir(pe.to(),te.to()),Ie=pe.empty()?te.from()==te.head:pe.from()==pe.head;B<=i&&--i,t.splice(--B,2,new cr(Ie?De:Ce,Ie?Ce:De))}}return new bn(t,i)}function Vn(e,t){return new bn([new cr(e,t||e)],0)}function Yn(e){return e.text?qe(e.from.line+e.text.length-1,Z(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ba(e,t){if(pt(e,t.from)<0)return e;if(pt(e,t.to)<=0)return Yn(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Yn(t).ch-t.to.ch),qe(i,n)}function Xo(e,t){for(var i=[],n=0;n<e.sel.ranges.length;n++){var p=e.sel.ranges[n];i.push(new cr(Ba(p.anchor,t),Ba(p.head,t)))}return _n(e.cm,i,e.sel.primIndex)}function Ua(e,t,i){return e.line==t.line?qe(i.line,e.ch-t.ch+i.ch):qe(i.line+(e.line-t.line),e.ch)}function fl(e,t,i){for(var n=[],p=qe(e.first,0),B=p,te=0;te<t.length;te++){var pe=t[te],ve=Ua(pe.from,p,B),Ce=Ua(Yn(pe),p,B);if(p=pe.to,B=Ce,i=="around"){var De=e.sel.ranges[te],Ie=pt(De.head,De.anchor)<0;n[te]=new cr(Ie?Ce:ve,Ie?ve:Ce)}else n[te]=new cr(ve,ve)}return new bn(n,e.sel.primIndex)}function Vo(e){e.doc.mode=Dt(e.options,e.doc.modeOption),Wi(e)}function Wi(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Bi(e,100),e.state.modeGen++,e.curOp&&ln(e)}function Wa(e,t){return t.from.ch==0&&t.to.ch==0&&Z(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Yo(e,t,i,n){function p(St){return i?i[St]:null}function B(St,gt,Tt){Xr(St,gt,Tt,n),Ar(St,"change",St,t)}function te(St,gt){for(var Tt=[],Ft=St;Ft<gt;++Ft)Tt.push(new Kr(Ce[Ft],p(Ft),n));return Tt}var pe=t.from,ve=t.to,Ce=t.text,De=ft(e,pe.line),Ie=ft(e,ve.line),ze=Z(Ce),He=p(Ce.length-1),et=ve.line-pe.line;if(t.full)e.insert(0,te(0,Ce.length)),e.remove(Ce.length,e.size-Ce.length);else if(Wa(e,t)){var rt=te(0,Ce.length-1);B(Ie,Ie.text,He),et&&e.remove(pe.line,et),rt.length&&e.insert(pe.line,rt)}else if(De==Ie)if(Ce.length==1)B(De,De.text.slice(0,pe.ch)+ze+De.text.slice(ve.ch),He);else{var at=te(1,Ce.length-1);at.push(new Kr(ze+De.text.slice(ve.ch),He,n)),B(De,De.text.slice(0,pe.ch)+Ce[0],p(0)),e.insert(pe.line+1,at)}else if(Ce.length==1)B(De,De.text.slice(0,pe.ch)+Ce[0]+Ie.text.slice(ve.ch),p(0)),e.remove(pe.line+1,et);else{B(De,De.text.slice(0,pe.ch)+Ce[0],p(0)),B(Ie,ze+Ie.text.slice(ve.ch),He);var mt=te(1,Ce.length-1);et>1&&e.remove(pe.line+1,et-1),e.insert(pe.line+1,mt)}Ar(e,"change",e,t)}function Jn(e,t,i){function n(p,B,te){if(p.linked)for(var pe=0;pe<p.linked.length;++pe){var ve=p.linked[pe];if(ve.doc==B)continue;var Ce=te&&ve.sharedHist;if(i&&!Ce)continue;t(ve.doc,Ce),n(ve.doc,p,Ce)}}n(e,null,!0)}function Ha(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Po(e),Vo(e),za(e),e.options.lineWrapping||an(e),e.options.mode=t.modeOption,ln(e)}function za(e){(e.doc.direction=="rtl"?q:P)(e.display.lineDiv,"CodeMirror-rtl")}function pl(e){pn(e,function(){za(e),ln(e)})}function po(e){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=e||1}function Jo(e,t){var i={from:zt(t.from),to:Yn(t),text:Yt(e,t.from,t.to)};return Xa(e,i,t.from.line,t.to.line+1),Jn(e,function(n){return Xa(n,i,t.from.line,t.to.line+1)},!0),i}function Ga(e){for(;e.length;){var t=Z(e);if(t.ranges)e.pop();else break}}function ml(e,t){if(t)return Ga(e.done),Z(e.done);if(e.done.length&&!Z(e.done).ranges)return Z(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Z(e.done)}function Ka(e,t,i,n){var p=e.history;p.undone.length=0;var B=+new Date,te,pe;if((p.lastOp==n||p.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&p.lastModTime>B-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(te=ml(p,p.lastOp==n)))pe=Z(te.changes),pt(t.from,t.to)==0&&pt(t.from,pe.to)==0?pe.to=Yn(t):te.changes.push(Jo(e,t));else{var ve=Z(p.done);for((!ve||!ve.ranges)&&mo(e.sel,p.done),te={changes:[Jo(e,t)],generation:p.generation},p.done.push(te);p.done.length>p.undoDepth;)p.done.shift(),p.done[0].ranges||p.done.shift()}p.done.push(i),p.generation=++p.maxGeneration,p.lastModTime=p.lastSelTime=B,p.lastOp=p.lastSelOp=n,p.lastOrigin=p.lastSelOrigin=t.origin,pe||Ke(e,"historyAdded")}function gl(e,t,i,n){var p=t.charAt(0);return p=="*"||p=="+"&&i.ranges.length==n.ranges.length&&i.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function vl(e,t,i,n){var p=e.history,B=n&&n.origin;i==p.lastSelOp||B&&p.lastSelOrigin==B&&(p.lastModTime==p.lastSelTime&&p.lastOrigin==B||gl(e,B,Z(p.done),t))?p.done[p.done.length-1]=t:mo(t,p.done),p.lastSelTime=+new Date,p.lastSelOrigin=B,p.lastSelOp=i,n&&n.clearRedo!==!1&&Ga(p.undone)}function mo(e,t){var i=Z(t);i&&i.ranges&&i.equals(e)||t.push(e)}function Xa(e,t,i,n){var p=t["spans_"+e.id],B=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,n),function(te){te.markedSpans&&((p||(p=t["spans_"+e.id]={}))[B]=te.markedSpans),++B})}function yl(e){if(!e)return null;for(var t,i=0;i<e.length;++i)e[i].marker.explicitlyCleared?t||(t=e.slice(0,i)):t&&t.push(e[i]);return t?t.length?t:null:e}function bl(e,t){var i=t["spans_"+e.id];if(!i)return null;for(var n=[],p=0;p<t.text.length;++p)n.push(yl(i[p]));return n}function Va(e,t){var i=bl(e,t),n=gn(e,t);if(!i)return n;if(!n)return i;for(var p=0;p<i.length;++p){var B=i[p],te=n[p];if(B&&te){e:for(var pe=0;pe<te.length;++pe){for(var ve=te[pe],Ce=0;Ce<B.length;++Ce)if(B[Ce].marker==ve.marker)continue e;B.push(ve)}}else te&&(i[p]=te)}return i}function bi(e,t,i){for(var n=[],p=0;p<e.length;++p){var B=e[p];if(B.ranges){n.push(i?bn.prototype.deepCopy.call(B):B);continue}var te=B.changes,pe=[];n.push({changes:pe});for(var ve=0;ve<te.length;++ve){var Ce=te[ve],De=void 0;if(pe.push({from:Ce.from,to:Ce.to,text:Ce.text}),t)for(var Ie in Ce)(De=Ie.match(/^spans_(\d+)$/))&&(me(t,Number(De[1]))>-1&&(Z(pe)[Ie]=Ce[Ie],delete Ce[Ie]))}}return n}function $o(e,t,i,n){if(n){var p=e.anchor;if(i){var B=pt(t,p)<0;B!=pt(i,p)<0?(p=t,t=i):B!=pt(t,i)<0&&(t=i)}return new cr(p,t)}else return new cr(i||t,t)}function go(e,t,i,n,p){p==null&&(p=e.cm&&(e.cm.display.shift||e.extend)),Vr(e,new bn([$o(e.sel.primary(),t,i,p)],0),n)}function Ya(e,t,i){for(var n=[],p=e.cm&&(e.cm.display.shift||e.extend),B=0;B<e.sel.ranges.length;B++)n[B]=$o(e.sel.ranges[B],t[B],null,p);var te=_n(e.cm,n,e.sel.primIndex);Vr(e,te,i)}function Zo(e,t,i,n){var p=e.sel.ranges.slice(0);p[t]=i,Vr(e,_n(e.cm,p,e.sel.primIndex),n)}function Ja(e,t,i,n){Vr(e,Vn(t,i),n)}function xl(e,t,i){var n={ranges:t.ranges,update:function(p){this.ranges=[];for(var B=0;B<p.length;B++)this.ranges[B]=new cr(S(e,p[B].anchor),S(e,p[B].head))},origin:i&&i.origin};return Ke(e,"beforeSelectionChange",e,n),e.cm&&Ke(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?_n(e.cm,n.ranges,n.ranges.length-1):t}function $a(e,t,i){var n=e.history.done,p=Z(n);p&&p.ranges?(n[n.length-1]=t,vo(e,t,i)):Vr(e,t,i)}function Vr(e,t,i){vo(e,t,i),vl(e,e.sel,e.cm?e.cm.curOp.id:NaN,i)}function vo(e,t,i){(Me(e,"beforeSelectionChange")||e.cm&&Me(e.cm,"beforeSelectionChange"))&&(t=xl(e,t,i));var n=i&&i.bias||(pt(t.primary().head,e.sel.primary().head)<0?-1:1);Za(e,qa(e,t,n,!0)),!(i&&i.scroll===!1)&&e.cm&&vi(e.cm)}function Za(e,t){if(t.equals(e.sel))return;e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,je(e.cm)),Ar(e,"cursorActivity",e)}function Qa(e){Za(e,qa(e,e.sel,null,!1))}function qa(e,t,i,n){for(var p,B=0;B<t.ranges.length;B++){var te=t.ranges[B],pe=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[B],ve=yo(e,te.anchor,pe&&pe.anchor,i,n),Ce=yo(e,te.head,pe&&pe.head,i,n);(p||ve!=te.anchor||Ce!=te.head)&&(p||(p=t.ranges.slice(0,B)),p[B]=new cr(ve,Ce))}return p?_n(e.cm,p,t.primIndex):t}function xi(e,t,i,n,p){var B=ft(e,t.line);if(B.markedSpans)for(var te=0;te<B.markedSpans.length;++te){var pe=B.markedSpans[te],ve=pe.marker,Ce="selectLeft"in ve?!ve.selectLeft:ve.inclusiveLeft,De="selectRight"in ve?!ve.selectRight:ve.inclusiveRight;if((pe.from==null||(Ce?pe.from<=t.ch:pe.from<t.ch))&&(pe.to==null||(De?pe.to>=t.ch:pe.to>t.ch))){if(p&&(Ke(ve,"beforeCursorEnter"),ve.explicitlyCleared))if(B.markedSpans){--te;continue}else break;if(!ve.atomic)continue;if(i){var Ie=ve.find(n<0?1:-1),ze=void 0;if((n<0?De:Ce)&&(Ie=es(e,Ie,-n,Ie&&Ie.line==t.line?B:null)),Ie&&Ie.line==t.line&&(ze=pt(Ie,i))&&(n<0?ze<0:ze>0))return xi(e,Ie,t,n,p)}var He=ve.find(n<0?-1:1);return(n<0?Ce:De)&&(He=es(e,He,n,He.line==t.line?B:null)),He?xi(e,He,t,n,p):null}}return t}function yo(e,t,i,n,p){var B=n||1,te=xi(e,t,i,B,p)||!p&&xi(e,t,i,B,!0)||xi(e,t,i,-B,p)||!p&&xi(e,t,i,-B,!0);return te||(e.cantEdit=!0,qe(e.first,0))}function es(e,t,i,n){return i<0&&t.ch==0?t.line>e.first?S(e,qe(t.line-1)):null:i>0&&t.ch==(n||ft(e,t.line)).text.length?t.line<e.first+e.size-1?qe(t.line+1,0):null:new qe(t.line,t.ch+i)}function ts(e){e.setSelection(qe(e.firstLine(),0),qe(e.lastLine()),Oe)}function rs(e,t,i){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return i&&(n.update=function(p,B,te,pe){p&&(n.from=S(e,p)),B&&(n.to=S(e,B)),te&&(n.text=te),pe!==void 0&&(n.origin=pe)}),Ke(e,"beforeChange",e,n),e.cm&&Ke(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function wi(e,t,i){if(e.cm){if(!e.cm.curOp)return jr(e.cm,wi)(e,t,i);if(e.cm.state.suppressEdits)return}if((Me(e,"beforeChange")||e.cm&&Me(e.cm,"beforeChange"))&&(t=rs(e,t,!0),!t))return;var n=Bn&&!i&&Rn(e,t.from,t.to);if(n)for(var p=n.length-1;p>=0;--p)ns(e,{from:n[p].from,to:n[p].to,text:p?[""]:t.text,origin:t.origin});else ns(e,t)}function ns(e,t){if(t.text.length==1&&t.text[0]==""&&pt(t.from,t.to)==0)return;var i=Xo(e,t);Ka(e,t,i,e.cm?e.cm.curOp.id:NaN),Hi(e,t,i,gn(e,t));var n=[];Jn(e,function(p,B){!B&&me(n,p.history)==-1&&(ss(p.history,t),n.push(p.history)),Hi(p,t,null,gn(p,t))})}function bo(e,t,i){var n=e.cm&&e.cm.state.suppressEdits;if(n&&!i)return;for(var p=e.history,B,te=e.sel,pe=t=="undo"?p.done:p.undone,ve=t=="undo"?p.undone:p.done,Ce=0;Ce<pe.length&&!(B=pe[Ce],i?B.ranges&&!B.equals(e.sel):!B.ranges);Ce++);if(Ce==pe.length)return;for(p.lastOrigin=p.lastSelOrigin=null;;)if(B=pe.pop(),B.ranges){if(mo(B,ve),i&&!B.equals(e.sel)){Vr(e,B,{clearRedo:!1});return}te=B}else if(n){pe.push(B);return}else break;var De=[];mo(te,ve),ve.push({changes:De,generation:p.generation}),p.generation=B.generation||++p.maxGeneration;for(var Ie=Me(e,"beforeChange")||e.cm&&Me(e.cm,"beforeChange"),ze=function(rt){var at=B.changes[rt];if(at.origin=t,Ie&&!rs(e,at,!1))return pe.length=0,{};De.push(Jo(e,at));var mt=rt?Xo(e,at):Z(pe);Hi(e,at,mt,Va(e,at)),!rt&&e.cm&&e.cm.scrollIntoView({from:at.from,to:Yn(at)});var St=[];Jn(e,function(gt,Tt){!Tt&&me(St,gt.history)==-1&&(ss(gt.history,at),St.push(gt.history)),Hi(gt,at,null,Va(gt,at))})},He=B.changes.length-1;He>=0;--He){var et=ze(He);if(et)return et.v}}function is(e,t){if(t==0)return;if(e.first+=t,e.sel=new bn(ue(e.sel.ranges,function(p){return new cr(qe(p.anchor.line+t,p.anchor.ch),qe(p.head.line+t,p.head.ch))}),e.sel.primIndex),e.cm){ln(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,n=i.viewFrom;n<i.viewTo;n++)Kn(e.cm,n,"gutter")}}function Hi(e,t,i,n){if(e.cm&&!e.cm.curOp)return jr(e.cm,Hi)(e,t,i,n);if(t.to.line<e.first){is(e,t.text.length-1-(t.to.line-t.from.line));return}if(t.from.line>e.lastLine())return;if(t.from.line<e.first){var p=t.text.length-1-(e.first-t.from.line);is(e,p),t={from:qe(e.first,0),to:qe(t.to.line+p,t.to.ch),text:[Z(t.text)],origin:t.origin}}var B=e.lastLine();t.to.line>B&&(t={from:t.from,to:qe(B,ft(e,B).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Yt(e,t.from,t.to),i||(i=Xo(e,t)),e.cm?wl(e.cm,t,n):Yo(e,t,n),vo(e,i,Oe),e.cantEdit&&yo(e,qe(e.firstLine(),0))&&(e.cantEdit=!1)}function wl(e,t,i){var n=e.doc,p=e.display,B=t.from,te=t.to,pe=!1,ve=B.line;e.options.lineWrapping||(ve=Pt(Et(ft(n,B.line))),n.iter(ve,te.line+1,function(He){if(He==p.maxLine)return pe=!0,!0})),n.sel.contains(t.from,t.to)>-1&&je(e),Yo(n,t,i,wa(e)),e.options.lineWrapping||(n.iter(ve,B.line+t.text.length,function(He){var et=Or(He);et>p.maxLineLength&&(p.maxLine=He,p.maxLineLength=et,p.maxLineChanged=!0,pe=!1)}),pe&&(e.curOp.updateMaxLine=!0)),$r(n,B.line),Bi(e,400);var Ce=t.text.length-(te.line-B.line)-1;t.full?ln(e):B.line==te.line&&t.text.length==1&&!Wa(e.doc,t)?Kn(e,B.line,"text"):ln(e,B.line,te.line+1,Ce);var De=Me(e,"changes"),Ie=Me(e,"change");if(Ie||De){var ze={from:B,to:te,text:t.text,removed:t.removed,origin:t.origin};Ie&&Ar(e,"change",e,ze),De&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(ze)}e.display.selForContextMenu=null}function Ci(e,t,i,n,p){var B;n||(n=i),pt(n,i)<0&&(B=[n,i],i=B[0],n=B[1]),typeof t=="string"&&(t=e.splitLines(t)),wi(e,{from:i,to:n,text:t,origin:p})}function os(e,t,i,n){i<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function as(e,t,i,n){for(var p=0;p<e.length;++p){var B=e[p],te=!0;if(B.ranges){B.copied||(B=e[p]=B.deepCopy(),B.copied=!0);for(var pe=0;pe<B.ranges.length;pe++)os(B.ranges[pe].anchor,t,i,n),os(B.ranges[pe].head,t,i,n);continue}for(var ve=0;ve<B.changes.length;++ve){var Ce=B.changes[ve];if(i<Ce.from.line)Ce.from=qe(Ce.from.line+n,Ce.from.ch),Ce.to=qe(Ce.to.line+n,Ce.to.ch);else if(t<=Ce.to.line){te=!1;break}}te||(e.splice(0,p+1),p=0)}}function ss(e,t){var i=t.from.line,n=t.to.line,p=t.text.length-(n-i)-1;as(e.done,i,n,p),as(e.undone,i,n,p)}function zi(e,t,i,n){var p=t,B=t;return typeof t=="number"?B=ft(e,ie(e,t)):p=Pt(t),p==null?null:(n(B,p)&&e.cm&&Kn(e.cm,p,i),B)}function Gi(e){this.lines=e,this.parent=null;for(var t=0,i=0;i<e.length;++i)e[i].parent=this,t+=e[i].height;this.height=t}Gi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var i=e,n=e+t;i<n;++i){var p=this.lines[i];this.height-=p.height,Nn(p),Ar(p,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,i){this.height+=i,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,i){for(var n=e+t;e<n;++e)if(i(this.lines[e]))return!0}};function Ki(e){this.children=e;for(var t=0,i=0,n=0;n<e.length;++n){var p=e[n];t+=p.chunkSize(),i+=p.height,p.parent=this}this.size=t,this.height=i,this.parent=null}Ki.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var i=0;i<this.children.length;++i){var n=this.children[i],p=n.chunkSize();if(e<p){var B=Math.min(t,p-e),te=n.height;if(n.removeInner(e,B),this.height-=te-n.height,p==B&&(this.children.splice(i--,1),n.parent=null),(t-=B)==0)break;e=0}else e-=p}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Gi))){var pe=[];this.collapse(pe),this.children=[new Gi(pe)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,i){this.size+=t.length,this.height+=i;for(var n=0;n<this.children.length;++n){var p=this.children[n],B=p.chunkSize();if(e<=B){if(p.insertInner(e,t,i),p.lines&&p.lines.length>50){for(var te=p.lines.length%25+25,pe=te;pe<p.lines.length;){var ve=new Gi(p.lines.slice(pe,pe+=25));p.height-=ve.height,this.children.splice(++n,0,ve),ve.parent=this}p.lines=p.lines.slice(0,te),this.maybeSpill()}break}e-=B}},maybeSpill:function(){if(this.children.length<=10)return;var e=this;do{var t=e.children.splice(e.children.length-5,5),i=new Ki(t);if(e.parent){e.size-=i.size,e.height-=i.height;var p=me(e.parent.children,e);e.parent.children.splice(p+1,0,i)}else{var n=new Ki(e.children);n.parent=e,e.children=[n,i],e=n}i.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()},iterN:function(e,t,i){for(var n=0;n<this.children.length;++n){var p=this.children[n],B=p.chunkSize();if(e<B){var te=Math.min(t,B-e);if(p.iterN(e,te,i))return!0;if((t-=te)==0)break;e=0}else e-=B}}};var Xi=function(e,t,i){if(i)for(var n in i)i.hasOwnProperty(n)&&(this[n]=i[n]);this.doc=e,this.node=t};Xi.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,i=this.line,n=Pt(i);if(n==null||!t)return;for(var p=0;p<t.length;++p)t[p]==this&&t.splice(p--,1);t.length||(i.widgets=null);var B=Pn(this);Nt(i,Math.max(0,i.height-B)),e&&(pn(e,function(){ls(e,i,-B),Kn(e,n,"widget")}),Ar(e,"lineWidgetCleared",e,this,n))},Xi.prototype.changed=function(){var e=this,t=this.height,i=this.doc.cm,n=this.line;this.height=null;var p=Pn(this)-t;if(!p)return;mr(this.doc,n)||Nt(n,n.height+p),i&&pn(i,function(){i.curOp.forceUpdate=!0,ls(i,n,p),Ar(i,"lineWidgetChanged",i,e,Pt(n))})},Pe(Xi);function ls(e,t,i){Tr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Uo(e,i)}function Cl(e,t,i,n){var p=new Xi(e,i,n),B=e.cm;return B&&p.noHScroll&&(B.display.alignWidgets=!0),zi(e,t,"widget",function(te){var pe=te.widgets||(te.widgets=[]);if(p.insertAt==null?pe.push(p):pe.splice(Math.min(pe.length-1,Math.max(0,p.insertAt)),0,p),p.line=te,B&&!mr(e,te)){var ve=Tr(te)<e.scrollTop;Nt(te,te.height+Pn(p)),ve&&Uo(B,p.height),B.curOp.forceUpdate=!0}return!0}),B&&Ar(B,"lineWidgetAdded",B,p,typeof t=="number"?t:Pt(t)),p}var us=0,$n=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++us};$n.prototype.clear=function(){if(this.explicitlyCleared)return;var e=this.doc.cm,t=e&&!e.curOp;if(t&&si(e),Me(this,"clear")){var i=this.find();i&&Ar(this,"clear",i.from,i.to)}for(var n=null,p=null,B=0;B<this.lines.length;++B){var te=this.lines[B],pe=rn(te.markedSpans,this);e&&!this.collapsed?Kn(e,Pt(te),"text"):e&&(pe.to!=null&&(p=Pt(te)),pe.from!=null&&(n=Pt(te))),te.markedSpans=xn(te.markedSpans,pe),pe.from==null&&this.collapsed&&!mr(this.doc,te)&&e&&Nt(te,pi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var ve=0;ve<this.lines.length;++ve){var Ce=Et(this.lines[ve]),De=Or(Ce);De>e.display.maxLineLength&&(e.display.maxLine=Ce,e.display.maxLineLength=De,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&ln(e,n,p+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Qa(e.doc)),e&&Ar(e,"markerCleared",e,this,n,p),t&&li(e),this.parent&&this.parent.clear()},$n.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,n,p=0;p<this.lines.length;++p){var B=this.lines[p],te=rn(B.markedSpans,this);if(te.from!=null&&(i=qe(t?B:Pt(B),te.from),e==-1))return i;if(te.to!=null&&(n=qe(t?B:Pt(B),te.to),e==1))return n}return i&&{from:i,to:n}},$n.prototype.changed=function(){var e=this,t=this.find(-1,!0),i=this,n=this.doc.cm;if(!t||!n)return;pn(n,function(){var p=t.line,B=Pt(t.line),te=ko(n,B);if(te&&(fa(te),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!mr(i.doc,p)&&i.height!=null){var pe=i.height;i.height=null;var ve=Pn(i)-pe;ve&&Nt(p,p.height+ve)}Ar(n,"markerChanged",n,e)})},$n.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||me(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},$n.prototype.detachLine=function(e){if(this.lines.splice(me(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Pe($n);function Ei(e,t,i,n,p){if(n&&n.shared)return El(e,t,i,n,p);if(e.cm&&!e.cm.curOp)return jr(e.cm,Ei)(e,t,i,n,p);var B=new $n(e,p),te=pt(t,i);if(n&&T(n,B,!1),te>0||te==0&&B.clearWhenEmpty!==!1)return B;if(B.replacedWith&&(B.collapsed=!0,B.widgetNode=he("span",[B.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||B.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(B.widgetNode.insertLeft=!0)),B.collapsed){if(yt(e,t.line,t,i,B)||t.line!=i.line&&yt(e,i.line,t,i,B))throw new Error("Inserting collapsed marker partially overlapping an existing one");Zr()}B.addToHistory&&Ka(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var pe=t.line,ve=e.cm,Ce;if(e.iter(pe,i.line+1,function(Ie){ve&&B.collapsed&&!ve.options.lineWrapping&&Et(Ie)==ve.display.maxLine&&(Ce=!0),B.collapsed&&pe!=t.line&&Nt(Ie,0),fn(Ie,new On(B,pe==t.line?t.ch:null,pe==i.line?i.ch:null)),++pe}),B.collapsed&&e.iter(t.line,i.line+1,function(Ie){mr(e,Ie)&&Nt(Ie,0)}),B.clearOnEnter&&Re(B,"beforeCursorEnter",function(){return B.clear()}),B.readOnly&&(Gr(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),B.collapsed&&(B.id=++us,B.atomic=!0),ve){if(Ce&&(ve.curOp.updateMaxLine=!0),B.collapsed)ln(ve,t.line,i.line+1);else if(B.className||B.startStyle||B.endStyle||B.css||B.attributes||B.title)for(var De=t.line;De<=i.line;De++)Kn(ve,De,"text");B.atomic&&Qa(ve.doc),Ar(ve,"markerAdded",ve,B)}return B}var Vi=function(e,t){this.markers=e,this.primary=t;for(var i=0;i<e.length;++i)e[i].parent=this};Vi.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Ar(this,"clear")},Vi.prototype.find=function(e,t){return this.primary.find(e,t)},Pe(Vi);function El(e,t,i,n,p){n=T(n),n.shared=!1;var B=[Ei(e,t,i,n,p)],te=B[0],pe=n.widgetNode;return Jn(e,function(ve){pe&&(n.widgetNode=pe.cloneNode(!0)),B.push(Ei(ve,S(ve,t),S(ve,i),n,p));for(var Ce=0;Ce<ve.linked.length;++Ce)if(ve.linked[Ce].isParent)return;te=Z(B)}),new Vi(B,te)}function cs(e){return e.findMarks(qe(e.first,0),e.clipPos(qe(e.lastLine())),function(t){return t.parent})}function Sl(e,t){for(var i=0;i<t.length;i++){var n=t[i],p=n.find(),B=e.clipPos(p.from),te=e.clipPos(p.to);if(pt(B,te)){var pe=Ei(e,B,te,n.primary,n.primary.type);n.markers.push(pe),pe.parent=n}}}function _l(e){for(var t=function(n){var p=e[n],B=[p.primary.doc];Jn(p.primary.doc,function(ve){return B.push(ve)});for(var te=0;te<p.markers.length;te++){var pe=p.markers[te];me(B,pe.doc)==-1&&(pe.parent=null,p.markers.splice(te--,1))}},i=0;i<e.length;i++)t(i)}var Tl=0,un=function(e,t,i,n,p){if(!(this instanceof un))return new un(e,t,i,n,p);i==null&&(i=0),Ki.call(this,[new Gi([new Kr("",null)])]),this.first=i,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=i;var B=qe(i,0);this.sel=Vn(B),this.history=new po(null),this.id=++Tl,this.modeOption=t,this.lineSep=n,this.direction=p=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Yo(this,{from:B,to:B,text:e}),Vr(this,Vn(B),Oe)};un.prototype=ae(Ki.prototype,{constructor:un,iter:function(e,t,i){i?this.iterN(e-this.first,t-e,i):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var i=0,n=0;n<t.length;++n)i+=t[n].height;this.insertInner(e-this.first,t,i)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=gr(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:Fr(function(e){var t=qe(this.first,0),i=this.first+this.size-1;wi(this,{from:t,to:qe(i,ft(this,i).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Ii(this.cm,0,0),Vr(this,Vn(t),Oe)}),replaceRange:function(e,t,i,n){t=S(this,t),i=i?S(this,i):t,Ci(this,e,t,i,n)},getRange:function(e,t,i){var n=Yt(this,S(this,e),S(this,t));return i===!1?n:n.join(i||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Wr(this,e))return ft(this,e)},getLineNumber:function(e){return Pt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=ft(this,e)),Et(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return S(this,e)},getCursor:function(e){var t=this.sel.primary(),i;return e==null||e=="head"?i=t.head:e=="anchor"?i=t.anchor:e=="end"||e=="to"||e===!1?i=t.to():i=t.from(),i},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Fr(function(e,t,i){Ja(this,S(this,typeof e=="number"?qe(e,t||0):e),null,i)}),setSelection:Fr(function(e,t,i){Ja(this,S(this,e),S(this,t||e),i)}),extendSelection:Fr(function(e,t,i){go(this,S(this,e),t&&S(this,t),i)}),extendSelections:Fr(function(e,t){Ya(this,re(this,e),t)}),extendSelectionsBy:Fr(function(e,t){var i=ue(this.sel.ranges,e);Ya(this,re(this,i),t)}),setSelections:Fr(function(e,t,i){if(!e.length)return;for(var n=[],p=0;p<e.length;p++)n[p]=new cr(S(this,e[p].anchor),S(this,e[p].head));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Vr(this,_n(this.cm,n,t),i)}),addSelection:Fr(function(e,t,i){var n=this.sel.ranges.slice(0);n.push(new cr(S(this,e),S(this,t||e))),Vr(this,_n(this.cm,n,n.length-1),i)}),getSelection:function(e){for(var t=this.sel.ranges,i,n=0;n<t.length;n++){var p=Yt(this,t[n].from(),t[n].to());i=i?i.concat(p):p}return e===!1?i:i.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],i=this.sel.ranges,n=0;n<i.length;n++){var p=Yt(this,i[n].from(),i[n].to());e!==!1&&(p=p.join(e||this.lineSeparator())),t[n]=p}return t},replaceSelection:function(e,t,i){for(var n=[],p=0;p<this.sel.ranges.length;p++)n[p]=e;this.replaceSelections(n,t,i||"+input")},replaceSelections:Fr(function(e,t,i){for(var n=[],p=this.sel,B=0;B<p.ranges.length;B++){var te=p.ranges[B];n[B]={from:te.from(),to:te.to(),text:this.splitLines(e[B]),origin:i}}for(var pe=t&&t!="end"&&fl(this,n,t),ve=n.length-1;ve>=0;ve--)wi(this,n[ve]);pe?$a(this,pe):this.cm&&vi(this.cm)}),undo:Fr(function(){bo(this,"undo")}),redo:Fr(function(){bo(this,"redo")}),undoSelection:Fr(function(){bo(this,"undo",!0)}),redoSelection:Fr(function(){bo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var p=0;p<e.undone.length;p++)e.undone[p].ranges||++i;return{undo:t,redo:i}},clearHistory:function(){var e=this;this.history=new po(this.history.maxGeneration),Jn(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:bi(this.history.done),undone:bi(this.history.undone)}},setHistory:function(e){var t=this.history=new po(this.history.maxGeneration);t.done=bi(e.done.slice(0),null,!0),t.undone=bi(e.undone.slice(0),null,!0)},setGutterMarker:Fr(function(e,t,i){return zi(this,e,"gutter",function(n){var p=n.gutterMarkers||(n.gutterMarkers={});return p[t]=i,!i&&W(p)&&(n.gutterMarkers=null),!0})}),clearGutter:Fr(function(e){var t=this;this.iter(function(i){i.gutterMarkers&&i.gutterMarkers[e]&&zi(t,i,"gutter",function(){return i.gutterMarkers[e]=null,W(i.gutterMarkers)&&(i.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Wr(this,e))return null;if(t=e,e=ft(this,e),!e)return null}else if(t=Pt(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Fr(function(e,t,i){return zi(this,e,t=="gutter"?"gutter":"class",function(n){var p=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!n[p])n[p]=i;else{if(X(i).test(n[p]))return!1;n[p]+=" "+i}return!0})}),removeLineClass:Fr(function(e,t,i){return zi(this,e,t=="gutter"?"gutter":"class",function(n){var p=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",B=n[p];if(B)if(i==null)n[p]=null;else{var te=B.match(X(i));if(!te)return!1;var pe=te.index+te[0].length;n[p]=B.slice(0,te.index)+(!te.index||pe==B.length?"":" ")+B.slice(pe)||null}else return!1;return!0})}),addLineWidget:Fr(function(e,t,i){return Cl(this,e,t,i)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,i){return Ei(this,S(this,e),S(this,t),i,i&&i.type||"range")},setBookmark:function(e,t){var i={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=S(this,e),Ei(this,e,e,i,"bookmark")},findMarksAt:function(e){e=S(this,e);var t=[],i=ft(this,e.line).markedSpans;if(i)for(var n=0;n<i.length;++n){var p=i[n];(p.from==null||p.from<=e.ch)&&(p.to==null||p.to>=e.ch)&&t.push(p.marker.parent||p.marker)}return t},findMarks:function(e,t,i){e=S(this,e),t=S(this,t);var n=[],p=e.line;return this.iter(e.line,t.line+1,function(B){var te=B.markedSpans;if(te)for(var pe=0;pe<te.length;pe++){var ve=te[pe];!(ve.to!=null&&p==e.line&&e.ch>=ve.to||ve.from==null&&p!=e.line||ve.from!=null&&p==t.line&&ve.from>=t.ch)&&(!i||i(ve.marker))&&n.push(ve.marker.parent||ve.marker)}++p}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var n=0;n<i.length;++n)i[n].from!=null&&e.push(i[n].marker)}),e},posFromIndex:function(e){var t,i=this.first,n=this.lineSeparator().length;return this.iter(function(p){var B=p.text.length+n;if(B>e)return t=e,!0;e-=B,++i}),S(this,qe(i,t))},indexFromPos:function(e){e=S(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var i=this.lineSeparator().length;return this.iter(this.first,e.line,function(n){t+=n.text.length+i}),t},copy:function(e){var t=new un(gr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,i=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<i&&(i=e.to);var n=new un(gr(this,t,i),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Sl(n,cs(this)),n},unlinkDoc:function(e){if(e instanceof br&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var i=this.linked[t];if(i.doc!=e)continue;this.linked.splice(t,1),e.unlinkDoc(this),_l(cs(this));break}if(e.history==this.history){var n=[e.id];Jn(e,function(p){return n.push(p.id)},!0),e.history=new po(null),e.history.done=bi(this.history.done,n),e.history.undone=bi(this.history.undone,n)}},iterLinkedDocs:function(e){Jn(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):xt(e)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Fr(function(e){if(e!="rtl"&&(e="ltr"),e==this.direction)return;this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&pl(this.cm)})}),un.prototype.eachLine=un.prototype.iter;var ds=0;function Ol(e){var t=this;if(hs(t),$e(t,e)||vn(t.display,e))return;Se(e),v&&(ds=+new Date);var i=ni(t,e,!0),n=e.dataTransfer.files;if(!i||t.isReadOnly())return;if(n&&n.length&&window.FileReader&&window.File)for(var p=n.length,B=Array(p),te=0,pe=function(){++te==p&&jr(t,function(){i=S(t.doc,i);var He={from:i,to:i,text:t.doc.splitLines(B.filter(function(et){return et!=null}).join(t.doc.lineSeparator())),origin:"paste"};wi(t.doc,He),$a(t.doc,Vn(S(t.doc,i),S(t.doc,Yn(He))))})()},ve=function(He,et){if(t.options.allowDropFileTypes&&me(t.options.allowDropFileTypes,He.type)==-1){pe();return}var rt=new FileReader;rt.onerror=function(){return pe()},rt.onload=function(){var at=rt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(at)){pe();return}B[et]=at,pe()},rt.readAsText(He)},Ce=0;Ce<n.length;Ce++)ve(n[Ce],Ce);else{if(t.state.draggingText&&t.doc.sel.contains(i)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var De=e.dataTransfer.getData("Text");if(De){var Ie;if(t.state.draggingText&&!t.state.draggingText.copy&&(Ie=t.listSelections()),vo(t.doc,Vn(i,i)),Ie)for(var ze=0;ze<Ie.length;++ze)Ci(t.doc,"",Ie[ze].anchor,Ie[ze].head,"drag");t.replaceSelection(De,"around","paste"),t.display.input.focus()}}catch(He){}}}function kl(e,t){if(v&&(!e.state.draggingText||+new Date-ds<100)){Le(t);return}if($e(e,t)||vn(e.display,t))return;if(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!u){var i=$("img",null,null,"position: fixed; left: 0; top: 0;");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(i.width=i.height=1,e.display.wrapper.appendChild(i),i._top=i.offsetTop),t.dataTransfer.setDragImage(i,0,0),d&&i.parentNode.removeChild(i)}}function Al(e,t){var i=ni(e,t);if(!i)return;var n=document.createDocumentFragment();Sa(e,i,n),e.display.dragCursor||(e.display.dragCursor=$("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),G(e.display.dragCursor,n)}function hs(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function fs(e){if(!document.getElementsByClassName)return;for(var t=document.getElementsByClassName("CodeMirror"),i=[],n=0;n<t.length;n++){var p=t[n].CodeMirror;p&&i.push(p)}i.length&&i[0].operation(function(){for(var B=0;B<i.length;B++)e(i[B])})}var ps=!1;function Dl(){if(ps)return;Rl(),ps=!0}function Rl(){var e;Re(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,fs(Ml)},100))}),Re(window,"blur",function(){return fs(gi)})}function Ml(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Zn={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"},Yi=0;Yi<10;Yi++)Zn[Yi+48]=Zn[Yi+96]=String(Yi);for(var xo=65;xo<=90;xo++)Zn[xo]=String.fromCharCode(xo);for(var Ji=1;Ji<=12;Ji++)Zn[Ji+111]=Zn[Ji+63235]="F"+Ji;var jn={};jn.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"},jn.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"},jn.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"},jn.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"]},jn.default=E?jn.macDefault:jn.pcDefault;function Nl(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var i,n,p,B,te=0;te<t.length-1;te++){var pe=t[te];if(/^(cmd|meta|m)$/i.test(pe))B=!0;else if(/^a(lt)?$/i.test(pe))i=!0;else if(/^(c|ctrl|control)$/i.test(pe))n=!0;else if(/^s(hift)?$/i.test(pe))p=!0;else throw new Error("Unrecognized modifier name: "+pe)}return i&&(e="Alt-"+e),n&&(e="Ctrl-"+e),B&&(e="Cmd-"+e),p&&(e="Shift-"+e),e}function Ll(e){var t={};for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];if(/^(name|fallthrough|(de|at)tach)$/.test(i))continue;if(n=="..."){delete e[i];continue}for(var p=ue(i.split(" "),Nl),B=0;B<p.length;B++){var te=void 0,pe=void 0;B==p.length-1?(pe=p.join(" "),te=n):(pe=p.slice(0,B+1).join(" "),te="...");var ve=t[pe];if(!ve)t[pe]=te;else if(ve!=te)throw new Error("Inconsistent bindings for "+pe)}delete e[i]}for(var Ce in t)e[Ce]=t[Ce];return e}function Si(e,t,i,n){t=wo(t);var p=t.call?t.call(e,n):t[e];if(p===!1)return"nothing";if(p==="...")return"multi";if(p!=null&&i(p))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Si(e,t.fallthrough,i,n);for(var B=0;B<t.fallthrough.length;B++){var te=Si(e,t.fallthrough[B],i,n);if(te)return te}}}function ms(e){var t=typeof e=="string"?e:Zn[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function gs(e,t,i){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(w?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(w?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!i&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function vs(e,t){if(d&&e.keyCode==34&&e.char)return!1;var i=Zn[e.keyCode];return i==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(i=e.code),gs(i,e,t))}function wo(e){return typeof e=="string"?jn[e]:e}function _i(e,t){for(var i=e.doc.sel.ranges,n=[],p=0;p<i.length;p++){for(var B=t(i[p]);n.length&&pt(B.from,Z(n).to)<=0;){var te=n.pop();if(pt(te.from,B.from)<0){B.from=te.from;break}}n.push(B)}pn(e,function(){for(var pe=n.length-1;pe>=0;pe--)Ci(e.doc,"",n[pe].from,n[pe].to,"+delete");vi(e)})}function Qo(e,t,i){var n=Te(e.text,t+i,i);return n<0||n>e.text.length?null:n}function qo(e,t,i){var n=Qo(e,t.ch,i);return n==null?null:new qe(t.line,n,i<0?"after":"before")}function ea(e,t,i,n,p){if(e){t.doc.direction=="rtl"&&(p=-p);var B=Ge(i,t.doc.direction);if(B){var te=p<0?Z(B):B[0],pe=p<0==(te.level==1),ve=pe?"after":"before",Ce;if(te.level>0||t.doc.direction=="rtl"){var De=fi(t,i);Ce=p<0?i.text.length-1:0;var Ie=An(t,De,Ce).top;Ce=Be(function(ze){return An(t,De,ze).top==Ie},p<0==(te.level==1)?te.from:te.to-1,Ce),ve=="before"&&(Ce=Qo(i,Ce,1))}else Ce=p<0?te.to:te.from;return new qe(n,Ce,ve)}}return new qe(n,p<0?i.text.length:0,p<0?"before":"after")}function Il(e,t,i,n){var p=Ge(t,e.doc.direction);if(!p)return qo(t,i,n);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var B=We(p,i.ch,i.sticky),te=p[B];if(e.doc.direction=="ltr"&&te.level%2==0&&(n>0?te.to>i.ch:te.from<i.ch))return qo(t,i,n);var pe=function(mt,St){return Qo(t,mt instanceof qe?mt.ch:mt,St)},ve,Ce=function(mt){return e.options.lineWrapping?(ve=ve||fi(e,t),xa(e,t,ve,mt)):{begin:0,end:t.text.length}},De=Ce(i.sticky=="before"?pe(i,-1):i.ch);if(e.doc.direction=="rtl"||te.level==1){var Ie=te.level==1==n<0,ze=pe(i,Ie?1:-1);if(ze!=null&&(Ie?ze<=te.to&&ze<=De.end:ze>=te.from&&ze>=De.begin)){var He=Ie?"before":"after";return new qe(i.line,ze,He)}}var et=function(mt,St,gt){for(var Tt=function(pr,Br){return Br?new qe(i.line,pe(pr,1),"before"):new qe(i.line,pr,"after")};mt>=0&&mt<p.length;mt+=St){var Ft=p[mt],Mt=St>0==(Ft.level!=1),$t=Mt?gt.begin:pe(gt.end,-1);if(Ft.from<=$t&&$t<Ft.to)return Tt($t,Mt);if($t=Mt?Ft.from:pe(Ft.to,-1),gt.begin<=$t&&$t<gt.end)return Tt($t,Mt)}},rt=et(B+n,n,De);if(rt)return rt;var at=n>0?De.end:pe(De.begin,-1);return at!=null&&!(n>0&&at==t.text.length)&&(rt=et(n>0?0:p.length-1,n,Ce(at)),rt)?rt:null}var $i={selectAll:ts,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Oe)},killLine:function(e){return _i(e,function(t){if(t.empty()){var i=ft(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line<e.lastLine()?{from:t.head,to:qe(t.head.line+1,0)}:{from:t.head,to:qe(t.head.line,i)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return _i(e,function(t){return{from:qe(t.from().line,0),to:S(e.doc,qe(t.to().line+1,0))}})},delLineLeft:function(e){return _i(e,function(t){return{from:qe(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return _i(e,function(t){var i=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:i},"div");return{from:n,to:t.from()}})},delWrappedLineRight:function(e){return _i(e,function(t){var i=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div");return{from:t.from(),to:n}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(qe(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(qe(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return ys(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return bs(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return Pl(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div")},ge)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:i},"div")},ge)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:i},"div");return n.ch<e.getLine(n.line).search(/\S/)?bs(e,t.head):n},ge)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],i=e.listSelections(),n=e.options.tabSize,p=0;p<i.length;p++){var B=i[p].from(),te=I(e.getLine(B.line),B.ch,n);t.push(oe(n-te%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return pn(e,function(){for(var t=e.listSelections(),i=[],n=0;n<t.length;n++){if(!t[n].empty())continue;var p=t[n].head,B=ft(e.doc,p.line).text;if(B){if(p.ch==B.length&&(p=new qe(p.line,p.ch-1)),p.ch>0)p=new qe(p.line,p.ch+1),e.replaceRange(B.charAt(p.ch-1)+B.charAt(p.ch-2),qe(p.line,p.ch-2),p,"+transpose");else if(p.line>e.doc.first){var te=ft(e.doc,p.line-1).text;te&&(p=new qe(p.line,1),e.replaceRange(B.charAt(0)+e.doc.lineSeparator()+te.charAt(te.length-1),qe(p.line-1,te.length-1),p,"+transpose"))}}i.push(new cr(p,p))}e.setSelections(i)})},newlineAndIndent:function(e){return pn(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);vi(e)})},openLine:function(e){return e.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ys(e,t){var i=ft(e.doc,t),n=Et(i);return n!=i&&(t=Pt(n)),ea(!0,e,n,t,1)}function Pl(e,t){var i=ft(e.doc,t),n=Kt(i);return n!=i&&(t=Pt(n)),ea(!0,e,i,t,-1)}function bs(e,t){var i=ys(e,t.line),n=ft(e.doc,i.line),p=Ge(n,e.doc.direction);if(!p||p[0].level==0){var B=Math.max(i.ch,n.text.search(/\S/)),te=t.line==i.line&&t.ch<=B&&t.ch;return qe(i.line,te?0:B,i.sticky)}return i}function Co(e,t,i){if(typeof t=="string"&&(t=$i[t],!t))return!1;e.display.input.ensurePolled();var n=e.display.shift,p=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),i&&(e.display.shift=!1),p=t(e)!=Ee}finally{e.display.shift=n,e.state.suppressEdits=!1}return p}function jl(e,t,i){for(var n=0;n<e.state.keyMaps.length;n++){var p=Si(t,e.state.keyMaps[n],i,e);if(p)return p}return e.options.extraKeys&&Si(t,e.options.extraKeys,i,e)||Si(t,e.options.keyMap,i,e)}var Fl=new se;function Zi(e,t,i,n){var p=e.state.keySeq;if(p){if(ms(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Fl.set(50,function(){e.state.keySeq==p&&(e.state.keySeq=null,e.display.input.reset())}),xs(e,p+" "+t,i,n))return!0}return xs(e,t,i,n)}function xs(e,t,i,n){var p=jl(e,t,n);return p=="multi"&&(e.state.keySeq=t),p=="handled"&&Ar(e,"keyHandled",e,t,i),(p=="handled"||p=="multi")&&(Se(i),jo(e)),!!p}function ws(e,t){var i=vs(t,!0);return i?t.shiftKey&&!e.state.keySeq?Zi(e,"Shift-"+i,t,function(n){return Co(e,n,!0)})||Zi(e,i,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return Co(e,n)}):Zi(e,i,t,function(n){return Co(e,n)}):!1}function Bl(e,t,i){return Zi(e,"'"+i+"'",t,function(n){return Co(e,n,!0)})}var ta=null;function Cs(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(t.curOp.focus=fe(),$e(t,e))return;v&&c<11&&e.keyCode==27&&(e.returnValue=!1);var i=e.keyCode;t.display.shift=i==16||e.shiftKey;var n=ws(t,e);d&&(ta=n?i:null,!n&&i==88&&!Rt&&(E?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),D&&!E&&!n&&i==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),i==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Ul(t)}function Ul(e){var t=e.display.lineDiv;q(t,"CodeMirror-crosshair");function i(n){(n.keyCode==18||!n.altKey)&&(P(t,"CodeMirror-crosshair"),nt(document,"keyup",i),nt(document,"mouseover",i))}Re(document,"keyup",i),Re(document,"mouseover",i)}function Es(e){e.keyCode==16&&(this.doc.sel.shift=!1),$e(this,e)}function Ss(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(vn(t.display,e)||$e(t,e)||e.ctrlKey&&!e.altKey||E&&e.metaKey)return;var i=e.keyCode,n=e.charCode;if(d&&i==ta){ta=null,Se(e);return}if(d&&(!e.which||e.which<10)&&ws(t,e))return;var p=String.fromCharCode(n==null?i:n);if(p=="\b")return;if(Bl(t,e,p))return;t.display.input.onKeyPress(e)}var Wl=400,ra=function(e,t,i){this.time=e,this.pos=t,this.button=i};ra.prototype.compare=function(e,t,i){return this.time+Wl>e&&pt(t,this.pos)==0&&i==this.button};var Qi,qi;function Hl(e,t){var i=+new Date;return qi&&qi.compare(i,e,t)?(Qi=qi=null,"triple"):Qi&&Qi.compare(i,e,t)?(qi=new ra(i,e,t),Qi=null,"double"):(Qi=new ra(i,e,t),qi=null,"single")}function _s(e){var t=this,i=t.display;if($e(t,e)||i.activeTouch&&i.input.supportsTouch())return;if(i.input.ensurePolled(),i.shift=e.shiftKey,vn(i,e)){l||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(na(t,e))return;var n=ni(t,e),p=Ae(e),B=n?Hl(n,p):"single";if(window.focus(),p==1&&t.state.selectingText&&t.state.selectingText(e),n&&zl(t,p,n,B,e))return;p==1?n?Kl(t,n,B,e):Xe(e)==i.scroller&&Se(e):p==2?(n&&go(t.doc,n),setTimeout(function(){return i.input.focus()},20)):p==3&&(Y?t.display.input.onContextMenu(e):Ta(t))}function zl(e,t,i,n,p){var B="Click";return n=="double"?B="Double"+B:n=="triple"&&(B="Triple"+B),B=(t==1?"Left":t==2?"Middle":"Right")+B,Zi(e,gs(B,p),p,function(te){if(typeof te=="string"&&(te=$i[te]),!te)return!1;var pe=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),pe=te(e,i)!=Ee}finally{e.state.suppressEdits=!1}return pe})}function Gl(e,t,i){var n=e.getOption("configureMouse"),p=n?n(e,t,i):{};if(p.unit==null){var B=A?i.shiftKey&&i.metaKey:i.altKey;p.unit=B?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(p.extend==null||e.doc.extend)&&(p.extend=e.doc.extend||i.shiftKey),p.addNew==null&&(p.addNew=E?i.metaKey:i.ctrlKey),p.moveOnDrag==null&&(p.moveOnDrag=!(E?i.altKey:i.ctrlKey)),p}function Kl(e,t,i,n){v?setTimeout(L(_a,e),0):e.curOp.focus=fe();var p=Gl(e,i,n),B=e.doc.sel,te;e.options.dragDrop&&Ye&&!e.isReadOnly()&&i=="single"&&(te=B.contains(t))>-1&&(pt((te=B.ranges[te]).from(),t)<0||t.xRel>0)&&(pt(te.to(),t)>0||t.xRel<0)?Xl(e,n,t,p):Vl(e,n,t,p)}function Xl(e,t,i,n){var p=e.display,B=!1,te=jr(e,function(Ce){l&&(p.scroller.draggable=!1),e.state.draggingText=!1,nt(p.wrapper.ownerDocument,"mouseup",te),nt(p.wrapper.ownerDocument,"mousemove",pe),nt(p.scroller,"dragstart",ve),nt(p.scroller,"drop",te),B||(Se(Ce),n.addNew||go(e.doc,i,null,null,n.extend),l&&!u||v&&c==9?setTimeout(function(){p.wrapper.ownerDocument.body.focus({preventScroll:!0}),p.input.focus()},20):p.input.focus())}),pe=function(Ce){B=B||Math.abs(t.clientX-Ce.clientX)+Math.abs(t.clientY-Ce.clientY)>=10},ve=function(){return B=!0};l&&(p.scroller.draggable=!0),e.state.draggingText=te,te.copy=!n.moveOnDrag,p.scroller.dragDrop&&p.scroller.dragDrop(),Re(p.wrapper.ownerDocument,"mouseup",te),Re(p.wrapper.ownerDocument,"mousemove",pe),Re(p.scroller,"dragstart",ve),Re(p.scroller,"drop",te),Ta(e),setTimeout(function(){return p.input.focus()},20)}function Ts(e,t,i){if(i=="char")return new cr(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new cr(qe(t.line,0),S(e.doc,qe(t.line+1,0)));var n=i(e,t);return new cr(n.from,n.to)}function Vl(e,t,i,n){var p=e.display,B=e.doc;Se(t);var te,pe,ve=B.sel,Ce=ve.ranges;if(n.addNew&&!n.extend?(pe=B.sel.contains(i),pe>-1?te=Ce[pe]:te=new cr(i,i)):(te=B.sel.primary(),pe=B.sel.primIndex),n.unit=="rectangle")n.addNew||(te=new cr(i,i)),i=ni(e,t,!0,!0),pe=-1;else{var De=Ts(e,i,n.unit);n.extend?te=$o(te,De.anchor,De.head,n.extend):te=De}n.addNew?pe==-1?(pe=Ce.length,Vr(B,_n(e,Ce.concat([te]),pe),{scroll:!1,origin:"*mouse"})):Ce.length>1&&Ce[pe].empty()&&n.unit=="char"&&!n.extend?(Vr(B,_n(e,Ce.slice(0,pe).concat(Ce.slice(pe+1)),0),{scroll:!1,origin:"*mouse"}),ve=B.sel):Zo(B,pe,te,le):(pe=0,Vr(B,new bn([te],0),le),ve=B.sel);var Ie=i;function ze(gt){if(pt(Ie,gt)==0)return;if(Ie=gt,n.unit=="rectangle"){for(var Tt=[],Ft=e.options.tabSize,Mt=I(ft(B,i.line).text,i.ch,Ft),$t=I(ft(B,gt.line).text,gt.ch,Ft),pr=Math.min(Mt,$t),Br=Math.max(Mt,$t),wr=Math.min(i.line,gt.line),mn=Math.min(e.lastLine(),Math.max(i.line,gt.line));wr<=mn;wr++){var cn=ft(B,wr).text,Rr=ye(cn,pr,Ft);pr==Br?Tt.push(new cr(qe(wr,Rr),qe(wr,Rr))):cn.length>Rr&&Tt.push(new cr(qe(wr,Rr),qe(wr,ye(cn,Br,Ft))))}Tt.length||Tt.push(new cr(i,i)),Vr(B,_n(e,ve.ranges.slice(0,pe).concat(Tt),pe),{origin:"*mouse",scroll:!1}),e.scrollIntoView(gt)}else{var dn=te,Hr=Ts(e,gt,n.unit),Ir=dn.anchor,Mr;pt(Hr.anchor,Ir)>0?(Mr=Hr.head,Ir=lr(dn.from(),Hr.anchor)):(Mr=Hr.anchor,Ir=ir(dn.to(),Hr.head));var _r=ve.ranges.slice(0);_r[pe]=Yl(e,new cr(S(B,Ir),Mr)),Vr(B,_n(e,_r,pe),le)}}var He=p.wrapper.getBoundingClientRect(),et=0;function rt(gt){var Tt=++et,Ft=ni(e,gt,!0,n.unit=="rectangle");if(!Ft)return;if(pt(Ft,Ie)!=0){e.curOp.focus=fe(),ze(Ft);var Mt=uo(p,B);(Ft.line>=Mt.to||Ft.line<Mt.from)&&setTimeout(jr(e,function(){et==Tt&&rt(gt)}),150)}else{var $t=gt.clientY<He.top?-20:gt.clientY>He.bottom?20:0;$t&&setTimeout(jr(e,function(){if(et!=Tt)return;p.scroller.scrollTop+=$t,rt(gt)}),50)}}function at(gt){e.state.selectingText=!1,et=Infinity,gt&&(Se(gt),p.input.focus()),nt(p.wrapper.ownerDocument,"mousemove",mt),nt(p.wrapper.ownerDocument,"mouseup",St),B.history.lastSelOrigin=null}var mt=jr(e,function(gt){gt.buttons===0||!Ae(gt)?at(gt):rt(gt)}),St=jr(e,at);e.state.selectingText=St,Re(p.wrapper.ownerDocument,"mousemove",mt),Re(p.wrapper.ownerDocument,"mouseup",St)}function Yl(e,t){var i=t.anchor,n=t.head,p=ft(e.doc,i.line);if(pt(i,n)==0&&i.sticky==n.sticky)return t;var B=Ge(p);if(!B)return t;var te=We(B,i.ch,i.sticky),pe=B[te];if(pe.from!=i.ch&&pe.to!=i.ch)return t;var ve=te+(pe.from==i.ch==(pe.level!=1)?0:1);if(ve==0||ve==B.length)return t;var Ce;if(n.line!=i.line)Ce=(n.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var De=We(B,n.ch,n.sticky),Ie=De-te||(n.ch-i.ch)*(pe.level==1?-1:1);De==ve-1||De==ve?Ce=Ie<0:Ce=Ie>0}var ze=B[ve+(Ce?-1:0)],He=Ce==(ze.level==1),et=He?ze.from:ze.to,rt=He?"after":"before";return i.ch==et&&i.sticky==rt?t:new cr(new qe(i.line,et,rt),n)}function Os(e,t,i,n){var p,B;if(t.touches)p=t.touches[0].clientX,B=t.touches[0].clientY;else try{p=t.clientX,B=t.clientY}catch(ze){return!1}if(p>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&Se(t);var te=e.display,pe=te.lineDiv.getBoundingClientRect();if(B>pe.bottom||!Me(e,i))return ke(t);B-=pe.top-te.viewOffset;for(var ve=0;ve<e.display.gutterSpecs.length;++ve){var Ce=te.gutters.childNodes[ve];if(Ce&&Ce.getBoundingClientRect().right>=p){var De=fr(e.doc,B),Ie=e.display.gutterSpecs[ve];return Ke(e,i,e,De,Ie.className,t),ke(t)}}}function na(e,t){return Os(e,t,"gutterClick",!0)}function ks(e,t){if(vn(e.display,t)||Jl(e,t))return;if($e(e,t,"contextmenu"))return;Y||e.display.input.onContextMenu(t)}function Jl(e,t){return Me(e,"gutterContextMenu")?Os(e,t,"gutterContextMenu",!1):!1}function As(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ni(e)}var Ti={toString:function(){return"CodeMirror.Init"}},Ds={},Eo={};function $l(e){var t=e.optionHandlers;function i(n,p,B,te){e.defaults[n]=p,B&&(t[n]=te?function(pe,ve,Ce){Ce!=Ti&&B(pe,ve,Ce)}:B)}e.defineOption=i,e.Init=Ti,i("value","",function(n,p){return n.setValue(p)},!0),i("mode",null,function(n,p){n.doc.modeOption=p,Vo(n)},!0),i("indentUnit",2,Vo,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(n){Wi(n),Ni(n),ln(n)},!0),i("lineSeparator",null,function(n,p){if(n.doc.lineSep=p,!p)return;var B=[],te=n.doc.first;n.doc.iter(function(ve){for(var Ce=0;;){var De=ve.text.indexOf(p,Ce);if(De==-1)break;Ce=De+p.length,B.push(qe(te,De))}te++});for(var pe=B.length-1;pe>=0;pe--)Ci(n.doc,p,B[pe],qe(B[pe].line,B[pe].ch+p.length))}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,p,B){n.state.specialChars=new RegExp(p.source+(p.test(" ")?"":"| "),"g"),B!=Ti&&n.refresh()}),i("specialCharPlaceholder",qt,function(n){return n.refresh()},!0),i("electricChars",!0),i("inputStyle",g?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(n,p){return n.getInputField().spellcheck=p},!0),i("autocorrect",!1,function(n,p){return n.getInputField().autocorrect=p},!0),i("autocapitalize",!1,function(n,p){return n.getInputField().autocapitalize=p},!0),i("rtlMoveVisually",!N),i("wholeLineUpdateBefore",!0),i("theme","default",function(n){As(n),Ui(n)},!0),i("keyMap","default",function(n,p,B){var te=wo(p),pe=B!=Ti&&wo(B);pe&&pe.detach&&pe.detach(n,te),te.attach&&te.attach(n,pe||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Ql,!0),i("gutters",[],function(n,p){n.display.gutterSpecs=Ko(p,n.options.lineNumbers),Ui(n)},!0),i("fixedGutter",!0,function(n,p){n.display.gutters.style.left=p?Io(n.display)+"px":"0",n.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(n){return yi(n)},!0),i("scrollbarStyle","native",function(n){Ma(n),yi(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),i("lineNumbers",!1,function(n,p){n.display.gutterSpecs=Ko(n.options.gutters,p),Ui(n)},!0),i("firstLineNumber",1,Ui,!0),i("lineNumberFormatter",function(n){return n},Ui,!0),i("showCursorWhenSelecting",!1,Li,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(n,p){p=="nocursor"&&(gi(n),n.display.input.blur()),n.display.input.readOnlyChanged(p)}),i("screenReaderLabel",null,function(n,p){p=p===""?null:p,n.display.input.screenReaderLabelChanged(p)}),i("disableInput",!1,function(n,p){p||n.display.input.reset()},!0),i("dragDrop",!0,Zl),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,Li,!0),i("singleCursorHeightPerLine",!0,Li,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Wi,!0),i("addModeClass",!1,Wi,!0),i("pollInterval",100),i("undoDepth",200,function(n,p){return n.doc.history.undoDepth=p}),i("historyEventDelay",1250),i("viewportMargin",10,function(n){return n.refresh()},!0),i("maxHighlightLength",1e4,Wi,!0),i("moveInputWithCursor",!0,function(n,p){p||n.display.input.resetPosition()}),i("tabindex",null,function(n,p){return n.display.input.getField().tabIndex=p||""}),i("autofocus",null),i("direction","ltr",function(n,p){return n.doc.setDirection(p)},!0),i("phrases",null)}function Zl(e,t,i){var n=i&&i!=Ti;if(!t!=!n){var p=e.display.dragFunctions,B=t?Re:nt;B(e.display.scroller,"dragstart",p.start),B(e.display.scroller,"dragenter",p.enter),B(e.display.scroller,"dragover",p.over),B(e.display.scroller,"dragleave",p.leave),B(e.display.scroller,"drop",p.drop)}}function Ql(e){e.options.lineWrapping?(q(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(P(e.display.wrapper,"CodeMirror-wrap"),an(e)),Po(e),ln(e),Ni(e),setTimeout(function(){return yi(e)},100)}function br(e,t){var i=this;if(!(this instanceof br))return new br(e,t);this.options=t=t?T(t):{},T(Ds,t,!1);var n=t.value;typeof n=="string"?n=new un(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var p=new br.inputStyles[t.inputStyle](this),B=this.display=new dl(e,n,p,t);B.wrapper.CodeMirror=this,As(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ma(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 se,keySeq:null,specialChars:null},t.autofocus&&!g&&B.input.focus(),v&&c<11&&setTimeout(function(){return i.display.input.reset(!0)},20),ql(this),Dl(),si(this),this.curOp.forceUpdate=!0,Ha(this,n),t.autofocus&&!g||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&Fo(i)},20):gi(this);for(var te in Eo)Eo.hasOwnProperty(te)&&Eo[te](this,t[te],Ti);Ia(this),t.finishInit&&t.finishInit(this);for(var pe=0;pe<ia.length;++pe)ia[pe](this);li(this),l&&t.lineWrapping&&getComputedStyle(B.lineDiv).textRendering=="optimizelegibility"&&(B.lineDiv.style.textRendering="auto")}br.defaults=Ds,br.optionHandlers=Eo;function ql(e){var t=e.display;Re(t.scroller,"mousedown",jr(e,_s)),v&&c<11?Re(t.scroller,"dblclick",jr(e,function(ve){if($e(e,ve))return;var Ce=ni(e,ve);if(!Ce||na(e,ve)||vn(e.display,ve))return;Se(ve);var De=e.findWordAt(Ce);go(e.doc,De.anchor,De.head)})):Re(t.scroller,"dblclick",function(ve){return $e(e,ve)||Se(ve)}),Re(t.scroller,"contextmenu",function(ve){return ks(e,ve)}),Re(t.input.getField(),"contextmenu",function(ve){t.scroller.contains(ve.target)||ks(e,ve)});var i,n={end:0};function p(){t.activeTouch&&(i=setTimeout(function(){return t.activeTouch=null},1e3),n=t.activeTouch,n.end=+new Date)}function B(ve){if(ve.touches.length!=1)return!1;var Ce=ve.touches[0];return Ce.radiusX<=1&&Ce.radiusY<=1}function te(ve,Ce){if(Ce.left==null)return!0;var De=Ce.left-ve.left,Ie=Ce.top-ve.top;return De*De+Ie*Ie>20*20}Re(t.scroller,"touchstart",function(ve){if(!$e(e,ve)&&!B(ve)&&!na(e,ve)){t.input.ensurePolled(),clearTimeout(i);var Ce=+new Date;t.activeTouch={start:Ce,moved:!1,prev:Ce-n.end<=300?n:null},ve.touches.length==1&&(t.activeTouch.left=ve.touches[0].pageX,t.activeTouch.top=ve.touches[0].pageY)}}),Re(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Re(t.scroller,"touchend",function(ve){var Ce=t.activeTouch;if(Ce&&!vn(t,ve)&&Ce.left!=null&&!Ce.moved&&new Date-Ce.start<300){var De=e.coordsChar(t.activeTouch,"page"),Ie;!Ce.prev||te(Ce,Ce.prev)?Ie=new cr(De,De):!Ce.prev.prev||te(Ce,Ce.prev.prev)?Ie=e.findWordAt(De):Ie=new cr(qe(De.line,0),S(e.doc,qe(De.line+1,0))),e.setSelection(Ie.anchor,Ie.head),e.focus(),Se(ve)}p()}),Re(t.scroller,"touchcancel",p),Re(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Pi(e,t.scroller.scrollTop),oi(e,t.scroller.scrollLeft,!0),Ke(e,"scroll",e))}),Re(t.scroller,"mousewheel",function(ve){return Fa(e,ve)}),Re(t.scroller,"DOMMouseScroll",function(ve){return Fa(e,ve)}),Re(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(ve){$e(e,ve)||Le(ve)},over:function(ve){$e(e,ve)||(Al(e,ve),Le(ve))},start:function(ve){return kl(e,ve)},drop:jr(e,Ol),leave:function(ve){$e(e,ve)||hs(e)}};var pe=t.input.getField();Re(pe,"keyup",function(ve){return Es.call(e,ve)}),Re(pe,"keydown",jr(e,Cs)),Re(pe,"keypress",jr(e,Ss)),Re(pe,"focus",function(ve){return Fo(e,ve)}),Re(pe,"blur",function(ve){return gi(e,ve)})}var ia=[];br.defineInitHook=function(e){return ia.push(e)};function eo(e,t,i,n){var p=e.doc,B;i==null&&(i="add"),i=="smart"&&(p.mode.indent?B=ot(e,t).state:i="prev");var te=e.options.tabSize,pe=ft(p,t),ve=I(pe.text,null,te);pe.stateAfter&&(pe.stateAfter=null);var Ce=pe.text.match(/^\s*/)[0],De;if(!n&&!/\S/.test(pe.text))De=0,i="not";else if(i=="smart"&&(De=p.mode.indent(B,pe.text.slice(Ce.length),pe.text),De==Ee||De>150)){if(!n)return;i="prev"}i=="prev"?t>p.first?De=I(ft(p,t-1).text,null,te):De=0:i=="add"?De=ve+e.options.indentUnit:i=="subtract"?De=ve-e.options.indentUnit:typeof i=="number"&&(De=ve+i),De=Math.max(0,De);var Ie="",ze=0;if(e.options.indentWithTabs)for(var He=Math.floor(De/te);He;--He)ze+=te,Ie+=" ";if(ze<De&&(Ie+=oe(De-ze)),Ie!=Ce)return Ci(p,Ie,qe(t,0),qe(t,Ce.length),"+input"),pe.stateAfter=null,!0;for(var et=0;et<p.sel.ranges.length;et++){var rt=p.sel.ranges[et];if(rt.head.line==t&&rt.head.ch<Ce.length){var at=qe(t,Ce.length);Zo(p,et,new cr(at,at));break}}}var Tn=null;function So(e){Tn=e}function oa(e,t,i,n,p){var B=e.doc;e.display.shift=!1,n||(n=B.sel);var te=+new Date-200,pe=p=="paste"||e.state.pasteIncoming>te,ve=xt(t),Ce=null;if(pe&&n.ranges.length>1)if(Tn&&Tn.text.join(`
|
|
|
`)==t){if(n.ranges.length%Tn.text.length==0){Ce=[];for(var De=0;De<Tn.text.length;De++)Ce.push(B.splitLines(Tn.text[De]))}}else ve.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(Ce=ue(ve,function(mt){return[mt]}));for(var Ie=e.curOp.updateInput,ze=n.ranges.length-1;ze>=0;ze--){var He=n.ranges[ze],et=He.from(),rt=He.to();He.empty()&&(i&&i>0?et=qe(et.line,et.ch-i):e.state.overwrite&&!pe?rt=qe(rt.line,Math.min(ft(B,rt.line).text.length,rt.ch+Z(ve).length)):pe&&Tn&&Tn.lineWise&&Tn.text.join(`
|
|
|
`)==ve.join(`
|
|
|
`)&&(et=rt=qe(et.line,0)));var at={from:et,to:rt,text:Ce?Ce[ze%Ce.length]:ve,origin:p||(pe?"paste":e.state.cutIncoming>te?"cut":"+input")};wi(e.doc,at),Ar(e,"inputRead",e,at)}t&&!pe&&Ms(e,t),vi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ie),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Rs(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&pn(t,function(){return oa(t,i,0,null,"paste")}),!0}function Ms(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var i=e.doc.sel,n=i.ranges.length-1;n>=0;n--){var p=i.ranges[n];if(p.head.ch>100||n&&i.ranges[n-1].head.line==p.head.line)continue;var B=e.getModeAt(p.head),te=!1;if(B.electricChars){for(var pe=0;pe<B.electricChars.length;pe++)if(t.indexOf(B.electricChars.charAt(pe))>-1){te=eo(e,p.head.line,"smart");break}}else B.electricInput&&(B.electricInput.test(ft(e.doc,p.head.line).text.slice(0,p.head.ch))&&(te=eo(e,p.head.line,"smart")));te&&Ar(e,"electricInput",e,p.head.line)}}function Ns(e){for(var t=[],i=[],n=0;n<e.doc.sel.ranges.length;n++){var p=e.doc.sel.ranges[n].head.line,B={anchor:qe(p,0),head:qe(p+1,0)};i.push(B),t.push(e.getRange(B.anchor,B.head))}return{text:t,ranges:i}}function Ls(e,t,i,n){e.setAttribute("autocorrect",i?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function Is(){var e=$("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=$("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),C&&(e.style.border="1px solid black"),Ls(e),t}function eu(e){var t=e.optionHandlers,i=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(n,p){var B=this.options,te=B[n];if(B[n]==p&&n!="mode")return;B[n]=p,t.hasOwnProperty(n)&&jr(this,t[n])(this,p,te),Ke(this,"optionChange",this,n)},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,p){this.state.keyMaps[p?"push":"unshift"](wo(n))},removeKeyMap:function(n){for(var p=this.state.keyMaps,B=0;B<p.length;++B)if(p[B]==n||p[B].name==n)return p.splice(B,1),!0},addOverlay:qr(function(n,p){var B=n.token?n:e.getMode(this.options,n);if(B.startState)throw new Error("Overlays may not be stateful.");V(this.state.overlays,{mode:B,modeSpec:n,opaque:p&&p.opaque,priority:p&&p.priority||0},function(te){return te.priority}),this.state.modeGen++,ln(this)}),removeOverlay:qr(function(n){for(var p=this.state.overlays,B=0;B<p.length;++B){var te=p[B].modeSpec;if(te==n||typeof n=="string"&&te.name==n){p.splice(B,1),this.state.modeGen++,ln(this);return}}}),indentLine:qr(function(n,p,B){typeof p!="string"&&typeof p!="number"&&(p==null?p=this.options.smartIndent?"smart":"prev":p=p?"add":"subtract"),Wr(this.doc,n)&&eo(this,n,p,B)}),indentSelection:qr(function(n){for(var p=this.doc.sel.ranges,B=-1,te=0;te<p.length;te++){var pe=p[te];if(pe.empty())pe.head.line>B&&(eo(this,pe.head.line,n,!0),B=pe.head.line,te==this.doc.sel.primIndex&&vi(this));else{var ve=pe.from(),Ce=pe.to(),De=Math.max(B,ve.line);B=Math.min(this.lastLine(),Ce.line-(Ce.ch?0:1))+1;for(var Ie=De;Ie<B;++Ie)eo(this,Ie,n);var ze=this.doc.sel.ranges;ve.ch==0&&p.length==ze.length&&ze[te].from().ch>0&&Zo(this.doc,te,new cr(ve,ze[te].to()),Oe)}}}),getTokenAt:function(n,p){return dr(this,n,p)},getLineTokens:function(n,p){return dr(this,qe(n),p,!0)},getTokenTypeAt:function(n){n=S(this.doc,n);var p=Qe(this,ft(this.doc,n.line)),B=0,te=(p.length-1)/2,pe=n.ch,ve;if(pe==0)ve=p[2];else for(;;){var Ce=B+te>>1;if((Ce?p[Ce*2-1]:0)>=pe)te=Ce;else if(p[Ce*2+1]<pe)B=Ce+1;else{ve=p[Ce*2+2];break}}var De=ve?ve.indexOf("overlay "):-1;return De<0?ve:De==0?null:ve.slice(0,De-1)},getModeAt:function(n){var p=this.doc.mode;return p.innerMode?e.innerMode(p,this.getTokenAt(n).state).mode:p},getHelper:function(n,p){return this.getHelpers(n,p)[0]},getHelpers:function(n,p){var B=[];if(!i.hasOwnProperty(p))return B;var te=i[p],pe=this.getModeAt(n);if(typeof pe[p]=="string")te[pe[p]]&&B.push(te[pe[p]]);else if(pe[p])for(var ve=0;ve<pe[p].length;ve++){var Ce=te[pe[p][ve]];Ce&&B.push(Ce)}else pe.helperType&&te[pe.helperType]?B.push(te[pe.helperType]):te[pe.name]&&B.push(te[pe.name]);for(var De=0;De<te._global.length;De++){var Ie=te._global[De];Ie.pred(pe,this)&&me(B,Ie.val)==-1&&B.push(Ie.val)}return B},getStateAfter:function(n,p){var B=this.doc;return n=ie(B,n==null?B.first+B.size-1:n),ot(this,n+1,p).state},cursorCoords:function(n,p){var B,te=this.doc.sel.primary();return n==null?B=te.head:typeof n=="object"?B=S(this.doc,n):B=n?te.from():te.to(),Sn(this,B,p||"page")},charCoords:function(n,p){return Do(this,S(this.doc,n),p||"page")},coordsChar:function(n,p){return n=va(this,n,p||"page"),Mo(this,n.left,n.top)},lineAtHeight:function(n,p){return n=va(this,{top:n,left:0},p||"page").top,fr(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,p,B){var te=!1,pe;if(typeof n=="number"){var ve=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>ve&&(n=ve,te=!0),pe=ft(this.doc,n)}else pe=n;return oo(this,pe,{top:0,left:0},p||"page",B||te).top+(te?this.doc.height-Tr(pe):0)},defaultTextHeight:function(){return pi(this.display)},defaultCharWidth:function(){return mi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,p,B,te,pe){var ve=this.display;n=Sn(this,S(this.doc,n));var Ce=n.bottom,De=n.left;if(p.style.position="absolute",p.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(p),ve.sizer.appendChild(p),te=="over")Ce=n.top;else if(te=="above"||te=="near"){var Ie=Math.max(ve.wrapper.clientHeight,this.doc.height),ze=Math.max(ve.sizer.clientWidth,ve.lineSpace.clientWidth);(te=="above"||n.bottom+p.offsetHeight>Ie)&&n.top>p.offsetHeight?Ce=n.top-p.offsetHeight:n.bottom+p.offsetHeight<=Ie&&(Ce=n.bottom),De+p.offsetWidth>ze&&(De=ze-p.offsetWidth)}p.style.top=Ce+"px",p.style.left=p.style.right="",pe=="right"?(De=ve.sizer.clientWidth-p.offsetWidth,p.style.right="0px"):(pe=="left"?De=0:pe=="middle"&&(De=(ve.sizer.clientWidth-p.offsetWidth)/2),p.style.left=De+"px"),B&&$s(this,{left:De,top:Ce,right:De+p.offsetWidth,bottom:Ce+p.offsetHeight})},triggerOnKeyDown:qr(Cs),triggerOnKeyPress:qr(Ss),triggerOnKeyUp:Es,triggerOnMouseDown:qr(_s),execCommand:function(n){if($i.hasOwnProperty(n))return $i[n].call(null,this)},triggerElectric:qr(function(n){Ms(this,n)}),findPosH:function(n,p,B,te){var pe=1;p<0&&(pe=-1,p=-p);for(var ve=S(this.doc,n),Ce=0;Ce<p&&!(ve=aa(this.doc,ve,pe,B,te),ve.hitSide);++Ce);return ve},moveH:qr(function(n,p){var B=this;this.extendSelectionsBy(function(te){return B.display.shift||B.doc.extend||te.empty()?aa(B.doc,te.head,n,p,B.options.rtlMoveVisually):n<0?te.from():te.to()},ge)}),deleteH:qr(function(n,p){var B=this.doc.sel,te=this.doc;B.somethingSelected()?te.replaceSelection("",null,"+delete"):_i(this,function(pe){var ve=aa(te,pe.head,n,p,!1);return n<0?{from:ve,to:pe.head}:{from:pe.head,to:ve}})}),findPosV:function(n,p,B,te){var pe=1,ve=te;p<0&&(pe=-1,p=-p);for(var Ce=S(this.doc,n),De=0;De<p;++De){var Ie=Sn(this,Ce,"div");if(ve==null?ve=Ie.left:Ie.left=ve,Ce=Ps(this,Ie,pe,B),Ce.hitSide)break}return Ce},moveV:qr(function(n,p){var B=this,te=this.doc,pe=[],ve=!this.display.shift&&!te.extend&&te.sel.somethingSelected();if(te.extendSelectionsBy(function(De){if(ve)return n<0?De.from():De.to();var Ie=Sn(B,De.head,"div");De.goalColumn!=null&&(Ie.left=De.goalColumn),pe.push(Ie.left);var ze=Ps(B,Ie,n,p);return p=="page"&&De==te.sel.primary()&&Uo(B,Do(B,ze,"div").top-Ie.top),ze},ge),pe.length)for(var Ce=0;Ce<te.sel.ranges.length;Ce++)te.sel.ranges[Ce].goalColumn=pe[Ce]}),findWordAt:function(n){var p=this.doc,B=ft(p,n.line).text,te=n.ch,pe=n.ch;if(B){var ve=this.getHelper(n,"wordChars");(n.sticky=="before"||pe==B.length)&&te?--te:++pe;for(var Ce=B.charAt(te),De=k(Ce,ve)?function(Ie){return k(Ie,ve)}:/\s/.test(Ce)?function(Ie){return/\s/.test(Ie)}:function(Ie){return!/\s/.test(Ie)&&!k(Ie)};te>0&&De(B.charAt(te-1));)--te;for(;pe<B.length&&De(B.charAt(pe));)++pe}return new cr(qe(n.line,te),qe(n.line,pe))},toggleOverwrite:function(n){if(n!=null&&n==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?q(this.display.cursorDiv,"CodeMirror-overwrite"):P(this.display.cursorDiv,"CodeMirror-overwrite"),Ke(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==fe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:qr(function(n,p){Ii(this,n,p)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-kn(this)-this.display.barHeight,width:n.scrollWidth-kn(this)-this.display.barWidth,clientHeight:Oo(this),clientWidth:ti(this)}},scrollIntoView:qr(function(n,p){n==null?(n={from:this.doc.sel.primary().head,to:null},p==null&&(p=this.options.cursorScrollMargin)):typeof n=="number"?n={from:qe(n,0),to:null}:n.from==null&&(n={from:n,to:null}),n.to||(n.to=n.from),n.margin=p||0,n.from.line!=null?Zs(this,n):ka(this,n.from,n.to,n.margin)}),setSize:qr(function(n,p){var B=this,te=function(ve){return typeof ve=="number"||/^\d+$/.test(String(ve))?ve+"px":ve};n!=null&&(this.display.wrapper.style.width=te(n)),p!=null&&(this.display.wrapper.style.height=te(p)),this.options.lineWrapping&&pa(this);var pe=this.display.viewFrom;this.doc.iter(pe,this.display.viewTo,function(ve){if(ve.widgets){for(var Ce=0;Ce<ve.widgets.length;Ce++)if(ve.widgets[Ce].noHScroll){Kn(B,pe,"widget");break}}++pe}),this.curOp.forceUpdate=!0,Ke(this,"refresh",this)}),operation:function(n){return pn(this,n)},startOperation:function(){return si(this)},endOperation:function(){return li(this)},refresh:qr(function(){var n=this.display.cachedTextHeight;ln(this),this.curOp.forceUpdate=!0,Ni(this),Ii(this,this.doc.scrollLeft,this.doc.scrollTop),zo(this.display),(n==null||Math.abs(n-pi(this.display))>.5||this.options.lineWrapping)&&Po(this),Ke(this,"refresh",this)}),swapDoc:qr(function(n){var p=this.doc;return p.cm=null,this.state.selectingText&&this.state.selectingText(),Ha(this,n),Ni(this),this.display.input.reset(),Ii(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,Ar(this,"swapDoc",this,p),p}),phrase:function(n){var p=this.options.phrases;return p&&Object.prototype.hasOwnProperty.call(p,n)?p[n]:n},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}},Pe(e),e.registerHelper=function(n,p,B){i.hasOwnProperty(n)||(i[n]=e[n]={_global:[]}),i[n][p]=B},e.registerGlobalHelper=function(n,p,B,te){e.registerHelper(n,p,te),i[n]._global.push({pred:B,val:te})}}function aa(e,t,i,n,p){var B=t,te=i,pe=ft(e,t.line),ve=p&&e.direction=="rtl"?-i:i;function Ce(){var St=t.line+ve;return St<e.first||St>=e.first+e.size?!1:(t=new qe(St,t.ch,t.sticky),pe=ft(e,St))}function De(St){var gt;if(n=="codepoint"){var Tt=pe.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(Tt)?gt=null:gt=new qe(t.line,Math.max(0,Math.min(pe.text.length,t.ch+i*(Tt>=55296&&Tt<56320?2:1))),-i)}else p?gt=Il(e.cm,pe,t,i):gt=qo(pe,t,i);if(gt==null)if(!St&&Ce())t=ea(p,e.cm,pe,t.line,ve);else return!1;else t=gt;return!0}if(n=="char"||n=="codepoint")De();else if(n=="column")De(!0);else if(n=="word"||n=="group")for(var Ie=null,ze=n=="group",He=e.cm&&e.cm.getHelper(t,"wordChars"),et=!0;!(i<0&&!De(!et));et=!1){var rt=pe.text.charAt(t.ch)||`
|
|
|
`,at=k(rt,He)?"w":ze&&rt==`
|
|
|
`?"n":!ze||/\s/.test(rt)?null:"p";if(ze&&!et&&!at&&(at="s"),Ie&&Ie!=at){i<0&&(i=1,De(),t.sticky="after");break}if(at&&(Ie=at),i>0&&!De(!et))break}var mt=yo(e,t,B,te,!0);return Wt(B,mt)&&(mt.hitSide=!0),mt}function Ps(e,t,i,n){var p=e.doc,B=t.left,te;if(n=="page"){var pe=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ve=Math.max(pe-.5*pi(e.display),3);te=(i>0?t.bottom:t.top)+i*ve}else n=="line"&&(te=i>0?t.bottom+3:t.top-3);for(var Ce;!(Ce=Mo(e,B,te),!Ce.outside);){if(i<0?te<=0:te>=p.height){Ce.hitSide=!0;break}te+=i*5}return Ce}var hr=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new se,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};hr.prototype.init=function(e){var t=this,i=this,n=i.cm,p=i.div=e.lineDiv;Ls(p,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function B(pe){for(var ve=pe.target;ve;ve=ve.parentNode){if(ve==p)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ve.className))break}return!1}Re(p,"paste",function(pe){if(!B(pe)||$e(n,pe)||Rs(pe,n))return;c<=11&&setTimeout(jr(n,function(){return t.updateFromDOM()}),20)}),Re(p,"compositionstart",function(pe){t.composing={data:pe.data,done:!1}}),Re(p,"compositionupdate",function(pe){t.composing||(t.composing={data:pe.data,done:!1})}),Re(p,"compositionend",function(pe){t.composing&&(pe.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Re(p,"touchstart",function(){return i.forceCompositionEnd()}),Re(p,"input",function(){t.composing||t.readFromDOMSoon()});function te(pe){if(!B(pe)||$e(n,pe))return;if(n.somethingSelected())So({lineWise:!1,text:n.getSelections()}),pe.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var ve=Ns(n);So({lineWise:!0,text:ve.text}),pe.type=="cut"&&n.operation(function(){n.setSelections(ve.ranges,0,Oe),n.replaceSelection("",null,"cut")})}else return;if(pe.clipboardData){pe.clipboardData.clearData();var Ce=Tn.text.join(`
|
|
|
`);if(pe.clipboardData.setData("Text",Ce),pe.clipboardData.getData("Text")==Ce){pe.preventDefault();return}}var De=Is(),Ie=De.firstChild;n.display.lineSpace.insertBefore(De,n.display.lineSpace.firstChild),Ie.value=Tn.text.join(`
|
|
|
`);var ze=document.activeElement;z(Ie),setTimeout(function(){n.display.lineSpace.removeChild(De),ze.focus(),ze==p&&i.showPrimarySelection()},50)}Re(p,"copy",te),Re(p,"cut",te)},hr.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},hr.prototype.prepareSelection=function(){var e=Ea(this.cm,!1);return e.focus=document.activeElement==this.div,e},hr.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},hr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},hr.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),n=i.from(),p=i.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||p.line<t.display.viewFrom){e.removeAllRanges();return}var B=_o(t,e.anchorNode,e.anchorOffset),te=_o(t,e.focusNode,e.focusOffset);if(B&&!B.bad&&te&&!te.bad&&pt(lr(B,te),n)==0&&pt(ir(B,te),p)==0)return;var pe=t.display.view,ve=n.line>=t.display.viewFrom&&js(t,n)||{node:pe[0].measure.map[2],offset:0},Ce=p.line<t.display.viewTo&&js(t,p);if(!Ce){var De=pe[pe.length-1].measure,Ie=De.maps?De.maps[De.maps.length-1]:De.map;Ce={node:Ie[Ie.length-1],offset:Ie[Ie.length-2]-Ie[Ie.length-3]}}if(!ve||!Ce){e.removeAllRanges();return}var ze=e.rangeCount&&e.getRangeAt(0),He;try{He=de(ve.node,ve.offset,Ce.offset,Ce.node)}catch(et){}He&&(!D&&t.state.focused?(e.collapse(ve.node,ve.offset),He.collapsed||(e.removeAllRanges(),e.addRange(He))):(e.removeAllRanges(),e.addRange(He)),ze&&e.anchorNode==null?e.addRange(ze):D&&this.startGracePeriod()),this.rememberSelection()},hr.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},hr.prototype.showMultipleSelections=function(e){G(this.cm.display.cursorDiv,e.cursors),G(this.cm.display.selectionDiv,e.selection)},hr.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},hr.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return J(this.div,t)},hr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},hr.prototype.blur=function(){this.div.blur()},hr.prototype.getField=function(){return this.div},hr.prototype.supportsTouch=function(){return!0},hr.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():pn(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.polling.set(this.cm.options.pollInterval,t)},hr.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},hr.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var e=this.getSelection(),t=this.cm;if(b&&r&&this.cm.display.gutterSpecs.length&&tu(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var i=_o(t,e.anchorNode,e.anchorOffset),n=_o(t,e.focusNode,e.focusOffset);i&&n&&pn(t,function(){Vr(t.doc,Vn(i,n),Oe),(i.bad||n.bad)&&(t.curOp.selectionChanged=!0)})},hr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,i=e.doc.sel.primary(),n=i.from(),p=i.to();if(n.ch==0&&n.line>e.firstLine()&&(n=qe(n.line-1,ft(e.doc,n.line-1).length)),p.ch==ft(e.doc,p.line).text.length&&p.line<e.lastLine()&&(p=qe(p.line+1,0)),n.line<t.viewFrom||p.line>t.viewTo-1)return!1;var B,te,pe;n.line==t.viewFrom||(B=ii(e,n.line))==0?(te=Pt(t.view[0].line),pe=t.view[0].node):(te=Pt(t.view[B].line),pe=t.view[B-1].node.nextSibling);var ve=ii(e,p.line),Ce,De;if(ve==t.view.length-1?(Ce=t.viewTo-1,De=t.lineDiv.lastChild):(Ce=Pt(t.view[ve+1].line)-1,De=t.view[ve+1].node.previousSibling),!pe)return!1;for(var Ie=e.doc.splitLines(ru(e,pe,De,te,Ce)),ze=Yt(e.doc,qe(te,0),qe(Ce,ft(e.doc,Ce).text.length));Ie.length>1&&ze.length>1;)if(Z(Ie)==Z(ze))Ie.pop(),ze.pop(),Ce--;else if(Ie[0]==ze[0])Ie.shift(),ze.shift(),te++;else break;for(var He=0,et=0,rt=Ie[0],at=ze[0],mt=Math.min(rt.length,at.length);He<mt&&rt.charCodeAt(He)==at.charCodeAt(He);)++He;for(var St=Z(Ie),gt=Z(ze),Tt=Math.min(St.length-(Ie.length==1?He:0),gt.length-(ze.length==1?He:0));et<Tt&&St.charCodeAt(St.length-et-1)==gt.charCodeAt(gt.length-et-1);)++et;if(Ie.length==1&&ze.length==1&&te==n.line)for(;He&&He>n.ch&&St.charCodeAt(St.length-et-1)==gt.charCodeAt(gt.length-et-1);)He--,et++;Ie[Ie.length-1]=St.slice(0,St.length-et).replace(/^\u200b+/,""),Ie[0]=Ie[0].slice(He).replace(/\u200b+$/,"");var Ft=qe(te,He),Mt=qe(Ce,ze.length?Z(ze).length-et:0);if(Ie.length>1||Ie[0]||pt(Ft,Mt))return Ci(e.doc,Ie,Ft,Mt,"+input"),!0},hr.prototype.ensurePolled=function(){this.forceCompositionEnd()},hr.prototype.reset=function(){this.forceCompositionEnd()},hr.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},hr.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},hr.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&pn(this.cm,function(){return ln(e.cm)})},hr.prototype.setUneditable=function(e){e.contentEditable="false"},hr.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||jr(this.cm,oa)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},hr.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},hr.prototype.onContextMenu=function(){},hr.prototype.resetPosition=function(){},hr.prototype.needsContentAttribute=!0;function js(e,t){var i=ko(e,t.line);if(!i||i.hidden)return null;var n=ft(e.doc,t.line),p=ua(i,n,t.line),B=Ge(n,e.doc.direction),te="left";if(B){var pe=We(B,t.ch);te=pe%2?"right":"left"}var ve=ha(p.map,t.ch,te);return ve.offset=ve.collapse=="right"?ve.end:ve.start,ve}function tu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Oi(e,t){return t&&(e.bad=!0),e}function ru(e,t,i,n,p){var B="",te=!1,pe=e.doc.lineSeparator(),ve=!1;function Ce(He){return function(et){return et.id==He}}function De(){te&&(B+=pe,ve&&(B+=pe),te=ve=!1)}function Ie(He){He&&(De(),B+=He)}function ze(He){if(He.nodeType==1){var et=He.getAttribute("cm-text");if(et){Ie(et);return}var rt=He.getAttribute("cm-marker"),at;if(rt){var mt=e.findMarks(qe(n,0),qe(p+1,0),Ce(+rt));mt.length&&(at=mt[0].find(0))&&Ie(Yt(e.doc,at.from,at.to).join(pe));return}if(He.getAttribute("contenteditable")=="false")return;var St=/^(pre|div|p|li|table|br)$/i.test(He.nodeName);if(!/^br$/i.test(He.nodeName)&&He.textContent.length==0)return;St&&De();for(var gt=0;gt<He.childNodes.length;gt++)ze(He.childNodes[gt]);/^(pre|p)$/i.test(He.nodeName)&&(ve=!0),St&&(te=!0)}else He.nodeType==3&&Ie(He.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(ze(t),t==i);)t=t.nextSibling,ve=!1;return B}function _o(e,t,i){var n;if(t==e.display.lineDiv){if(n=e.display.lineDiv.childNodes[i],!n)return Oi(e.clipPos(qe(e.display.viewTo-1)),!0);t=null,i=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var p=0;p<e.display.view.length;p++){var B=e.display.view[p];if(B.node==n)return nu(B,t,i)}}function nu(e,t,i){var n=e.text.firstChild,p=!1;if(!t||!J(n,t))return Oi(qe(Pt(e.line),0),!0);if(t==n&&(p=!0,t=n.childNodes[i],i=0,!t)){var B=e.rest?Z(e.rest):e.line;return Oi(qe(Pt(B),B.text.length),p)}var te=t.nodeType==3?t:null,pe=t;for(!te&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(te=t.firstChild,i&&(i=te.nodeValue.length));pe.parentNode!=n;)pe=pe.parentNode;var ve=e.measure,Ce=ve.maps;function De(at,mt,St){for(var gt=-1;gt<(Ce?Ce.length:0);gt++)for(var Tt=gt<0?ve.map:Ce[gt],Ft=0;Ft<Tt.length;Ft+=3){var Mt=Tt[Ft+2];if(Mt==at||Mt==mt){var $t=Pt(gt<0?e.line:e.rest[gt]),pr=Tt[Ft]+St;return(St<0||Mt!=at)&&(pr=Tt[Ft+(St?1:0)]),qe($t,pr)}}}var Ie=De(te,pe,i);if(Ie)return Oi(Ie,p);for(var ze=pe.nextSibling,He=te?te.nodeValue.length-i:0;ze;ze=ze.nextSibling){if(Ie=De(ze,ze.firstChild,0),Ie)return Oi(qe(Ie.line,Ie.ch-He),p);He+=ze.textContent.length}for(var et=pe.previousSibling,rt=i;et;et=et.previousSibling){if(Ie=De(et,et.firstChild,-1),Ie)return Oi(qe(Ie.line,Ie.ch+rt),p);rt+=et.textContent.length}}var Dr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new se,this.hasSelection=!1,this.composing=null};Dr.prototype.init=function(e){var t=this,i=this,n=this.cm;this.createField(e);var p=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),C&&(p.style.width="0px"),Re(p,"input",function(){v&&c>=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),Re(p,"paste",function(te){if($e(n,te)||Rs(te,n))return;n.state.pasteIncoming=+new Date,i.fastPoll()});function B(te){if($e(n,te))return;if(n.somethingSelected())So({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var pe=Ns(n);So({lineWise:!0,text:pe.text}),te.type=="cut"?n.setSelections(pe.ranges,null,Oe):(i.prevInput="",p.value=pe.text.join(`
|
|
|
`),z(p))}else return;te.type=="cut"&&(n.state.cutIncoming=+new Date)}Re(p,"cut",B),Re(p,"copy",B),Re(e.scroller,"paste",function(te){if(vn(e,te)||$e(n,te))return;if(!p.dispatchEvent){n.state.pasteIncoming=+new Date,i.focus();return}var pe=new Event("paste");pe.clipboardData=te.clipboardData,p.dispatchEvent(pe)}),Re(e.lineSpace,"selectstart",function(te){vn(e,te)||Se(te)}),Re(p,"compositionstart",function(){var te=n.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:te,range:n.markText(te,n.getCursor("to"),{className:"CodeMirror-composing"})}}),Re(p,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},Dr.prototype.createField=function(e){this.wrapper=Is(),this.textarea=this.wrapper.firstChild},Dr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Dr.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,n=Ea(e);if(e.options.moveInputWithCursor){var p=Sn(e,i.sel.primary().head,"div"),B=t.wrapper.getBoundingClientRect(),te=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,p.top+te.top-B.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,p.left+te.left-B.left))}return n},Dr.prototype.showSelection=function(e){var t=this.cm,i=t.display;G(i.cursorDiv,e.cursors),G(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Dr.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&z(this.textarea),v&&c>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",v&&c>=9&&(this.hasSelection=null))},Dr.prototype.getField=function(){return this.textarea},Dr.prototype.supportsTouch=function(){return!1},Dr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!g||fe()!=this.textarea))try{this.textarea.focus()}catch(e){}},Dr.prototype.blur=function(){this.textarea.blur()},Dr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Dr.prototype.receivedFocus=function(){this.slowPoll()},Dr.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Dr.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},Dr.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||ht(i)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var p=i.value;if(p==n&&!t.somethingSelected())return!1;if(v&&c>=9&&this.hasSelection===p||E&&/[\uf700-\uf7ff]/.test(p))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var B=p.charCodeAt(0);if(B==8203&&!n&&(n="\u200B"),B==8666)return this.reset(),this.cm.execCommand("undo")}for(var te=0,pe=Math.min(n.length,p.length);te<pe&&n.charCodeAt(te)==p.charCodeAt(te);)++te;return pn(t,function(){oa(t,p.slice(te),n.length-te,null,e.composing?"*compose":null),p.length>1e3||p.indexOf(`
|
|
|
`)>-1?i.value=e.prevInput="":e.prevInput=p,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Dr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Dr.prototype.onKeyPress=function(){v&&c>=9&&(this.hasSelection=null),this.fastPoll()},Dr.prototype.onContextMenu=function(e){var t=this,i=t.cm,n=i.display,p=t.textarea;t.contextMenuPending&&t.contextMenuPending();var B=ni(i,e),te=n.scroller.scrollTop;if(!B||d)return;var pe=i.options.resetSelectionOnContextMenu;pe&&i.doc.sel.contains(B)==-1&&jr(i,Vr)(i.doc,Vn(B),Oe);var ve=p.style.cssText,Ce=t.wrapper.style.cssText,De=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",p.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(e.clientY-De.top-5)+"px; left: "+(e.clientX-De.left-5)+`px;
|
|
|
z-index: 1000; background: `+(v?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ie;l&&(Ie=window.scrollY),n.input.focus(),l&&window.scrollTo(null,Ie),n.input.reset(),i.somethingSelected()||(p.value=t.prevInput=" "),t.contextMenuPending=He,n.selForContextMenu=i.doc.sel,clearTimeout(n.detectingSelectAll);function ze(){if(p.selectionStart!=null){var rt=i.somethingSelected(),at="\u200B"+(rt?p.value:"");p.value="\u21DA",p.value=at,t.prevInput=rt?"":"\u200B",p.selectionStart=1,p.selectionEnd=at.length,n.selForContextMenu=i.doc.sel}}function He(){if(t.contextMenuPending!=He)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=Ce,p.style.cssText=ve,v&&c<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=te),p.selectionStart!=null){(!v||v&&c<9)&&ze();var rt=0,at=function(){n.selForContextMenu==i.doc.sel&&p.selectionStart==0&&p.selectionEnd>0&&t.prevInput=="\u200B"?jr(i,ts)(i):rt++<10?n.detectingSelectAll=setTimeout(at,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(at,200)}}if(v&&c>=9&&ze(),Y){Le(e);var et=function(){nt(window,"mouseup",et),setTimeout(He,20)};Re(window,"mouseup",et)}else setTimeout(He,50)},Dr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Dr.prototype.setUneditable=function(){},Dr.prototype.needsContentAttribute=!1;function iu(e,t){if(t=t?T(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=fe();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function n(){e.value=pe.getValue()}var p;if(e.form&&(Re(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var B=e.form;p=B.submit;try{var te=B.submit=function(){n(),B.submit=p,B.submit(),B.submit=te}}catch(ve){}}t.finishInit=function(ve){ve.save=n,ve.getTextArea=function(){return e},ve.toTextArea=function(){ve.toTextArea=isNaN,n(),e.parentNode.removeChild(ve.getWrapperElement()),e.style.display="",e.form&&(nt(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=p))}},e.style.display="none";var pe=br(function(ve){return e.parentNode.insertBefore(ve,e.nextSibling)},t);return pe}function ou(e){e.off=nt,e.on=Re,e.wheelEventPixels=hl,e.Doc=un,e.splitLines=xt,e.countColumn=I,e.findColumn=ye,e.isWordChar=j,e.Pass=Ee,e.signal=Ke,e.Line=Kr,e.changeEnd=Yn,e.scrollbarModel=Ra,e.Pos=qe,e.cmpPos=pt,e.modes=Qt,e.mimeModes=Ut,e.resolveMode=At,e.getMode=Dt,e.modeExtensions=st,e.extendMode=_t,e.copyState=Vt,e.startState=sr,e.innerMode=tr,e.commands=$i,e.keyMap=jn,e.keyName=vs,e.isModifierKey=ms,e.lookupKey=Si,e.normalizeKeyMap=Ll,e.StringStream=Bt,e.SharedTextMarker=Vi,e.TextMarker=$n,e.LineWidget=Xi,e.e_preventDefault=Se,e.e_stopPropagation=_e,e.e_stop=Le,e.addClass=q,e.contains=J,e.rmClass=P,e.keyNames=Zn}$l(br),eu(br);var au="iter insert remove copy getEditor constructor".split(" ");for(var To in un.prototype)un.prototype.hasOwnProperty(To)&&me(au,To)<0&&(br.prototype[To]=function(e){return function(){return e.apply(this.doc,arguments)}}(un.prototype[To]));return Pe(un),br.inputStyles={textarea:Dr,contenteditable:hr},br.defineMode=function(e){!br.defaults.mode&&e!="null"&&(br.defaults.mode=e),Gt.apply(this,arguments)},br.defineMIME=Nr,br.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),br.defineMIME("text/plain","null"),br.defineExtension=function(e,t){br.prototype[e]=t},br.defineDocExtension=function(e,t){un.prototype[e]=t},br.fromTextArea=iu,ou(br),br.version="5.58.2",br})},WYAk:function(h,F,o){(function(m,a){h.exports=F=a(o("Ib8C"))})(this,function(m){(function(){var a=m,D=a.lib,O=D.Base,_=a.enc,y=_.Utf8,v=a.algo,c=v.HMAC=O.extend({init:function(l,s){l=this._hasher=new l.init,typeof s=="string"&&(s=y.parse(s));var r=l.blockSize,d=r*4;s.sigBytes>d&&(s=l.finalize(s)),s.clamp();for(var u=this._oKey=s.clone(),f=this._iKey=s.clone(),x=u.words,C=f.words,b=0;b<r;b++)x[b]^=1549556828,C[b]^=909522486;u.sigBytes=f.sigBytes=d,this.reset()},reset:function(){var l=this._hasher;l.reset(),l.update(this._iKey)},update:function(l){return this._hasher.update(l),this},finalize:function(l){var s=this._hasher,r=s.finalize(l);s.reset();var d=s.finalize(this._oKey.clone().concat(r));return d}})})()})},WaYH:function(h,F,o){"use strict";var m=o("rePB"),a=o("Ff2n"),D=o("VTBJ"),O=o("1OyB"),_=o("vuIU"),y=o("JX7q"),v=o("Ji7U"),c=o("LK+K"),l=o("q1tI"),s=o("TSYQ"),r=o.n(s),d=o("sboe"),u=o("OZM5"),f=function(Y){var X=Y.prefixCls,P=Y.level,H=Y.isStart,G=Y.isEnd;if(!P)return null;for(var $="".concat(X,"-indent-unit"),he=[],de=0;de<P;de+=1){var J;he.push(l.createElement("span",{key:de,className:r()($,(J={},Object(m.a)(J,"".concat($,"-start"),H[de+1]),Object(m.a)(J,"".concat($,"-end"),G[de+1]),Object(m.a)(J,"".concat($,"-end-first-level"),!de&&G[0]),J))}))}return l.createElement("span",{"aria-hidden":"true",className:"".concat(X,"-indent")},he)},x=f,C=o("815F"),b="open",g="close",E="---",A=function(w){Object(v.a)(X,w);var Y=Object(c.a)(X);function X(){var P;return Object(O.a)(this,X),P=Y.apply(this,arguments),P.state={dragNodeHighlight:!1},P.onSelectorClick=function(H){var G=P.props.context.onNodeClick;G(H,Object(C.b)(P.props)),P.isSelectable()?P.onSelect(H):P.onCheck(H)},P.onSelectorDoubleClick=function(H){var G=P.props.context.onNodeDoubleClick;G(H,Object(C.b)(P.props))},P.onSelect=function(H){if(P.isDisabled())return;var G=P.props.context.onNodeSelect;H.preventDefault(),G(H,Object(C.b)(P.props))},P.onCheck=function(H){if(P.isDisabled())return;var G=P.props,$=G.disableCheckbox,he=G.checked,de=P.props.context.onNodeCheck;if(!P.isCheckable()||$)return;H.preventDefault();var J=!he;de(H,Object(C.b)(P.props),J)},P.onMouseEnter=function(H){var G=P.props.context.onNodeMouseEnter;G(H,Object(C.b)(P.props))},P.onMouseLeave=function(H){var G=P.props.context.onNodeMouseLeave;G(H,Object(C.b)(P.props))},P.onContextMenu=function(H){var G=P.props.context.onNodeContextMenu;G(H,Object(C.b)(P.props))},P.onDragStart=function(H){var G=P.props.context.onNodeDragStart;H.stopPropagation(),P.setState({dragNodeHighlight:!0}),G(H,Object(y.a)(P));try{H.dataTransfer.setData("text/plain","")}catch($){}},P.onDragEnter=function(H){var G=P.props.context.onNodeDragEnter;H.preventDefault(),H.stopPropagation(),G(H,Object(y.a)(P))},P.onDragOver=function(H){var G=P.props.context.onNodeDragOver;H.preventDefault(),H.stopPropagation(),G(H,Object(y.a)(P))},P.onDragLeave=function(H){var G=P.props.context.onNodeDragLeave;H.stopPropagation(),G(H,Object(y.a)(P))},P.onDragEnd=function(H){var G=P.props.context.onNodeDragEnd;H.stopPropagation(),P.setState({dragNodeHighlight:!1}),G(H,Object(y.a)(P))},P.onDrop=function(H){var G=P.props.context.onNodeDrop;H.preventDefault(),H.stopPropagation(),P.setState({dragNodeHighlight:!1}),G(H,Object(y.a)(P))},P.onExpand=function(H){var G=P.props.context.onNodeExpand;G(H,Object(C.b)(P.props))},P.setSelectHandle=function(H){P.selectHandle=H},P.getNodeState=function(){var H=P.props.expanded;return P.isLeaf()?null:H?b:g},P.hasChildren=function(){var H=P.props.eventKey,G=P.props.context.keyEntities,$=G[H]||{},he=$.children;return!!(he||[]).length},P.isLeaf=function(){var H=P.props,G=H.isLeaf,$=H.loaded,he=P.props.context.loadData,de=P.hasChildren();return G===!1?!1:G||!he&&!de||he&&$&&!de},P.isDisabled=function(){var H=P.props.disabled,G=P.props.context.disabled;return!!(G||H)},P.isCheckable=function(){var H=P.props.checkable,G=P.props.context.checkable;return!G||H===!1?!1:G},P.syncLoadData=function(H){var G=H.expanded,$=H.loading,he=H.loaded,de=P.props.context,J=de.loadData,fe=de.onNodeLoad;if($)return;J&&G&&!P.isLeaf()&&(!P.hasChildren()&&!he&&fe(Object(C.b)(P.props)))},P.renderSwitcher=function(){var H=P.props,G=H.expanded,$=H.switcherIcon,he=P.props.context,de=he.prefixCls,J=he.switcherIcon,fe=$||J;if(P.isLeaf())return l.createElement("span",{className:r()("".concat(de,"-switcher"),"".concat(de,"-switcher-noop"))},typeof fe=="function"?fe(Object(D.a)(Object(D.a)({},P.props),{},{isLeaf:!0})):fe);var q=r()("".concat(de,"-switcher"),"".concat(de,"-switcher_").concat(G?b:g));return l.createElement("span",{onClick:P.onExpand,className:q},typeof fe=="function"?fe(Object(D.a)(Object(D.a)({},P.props),{},{isLeaf:!1})):fe)},P.renderCheckbox=function(){var H=P.props,G=H.checked,$=H.halfChecked,he=H.disableCheckbox,de=P.props.context.prefixCls,J=P.isDisabled(),fe=P.isCheckable();if(!fe)return null;var q=typeof fe!="boolean"?fe:null;return l.createElement("span",{className:r()("".concat(de,"-checkbox"),G&&"".concat(de,"-checkbox-checked"),!G&&$&&"".concat(de,"-checkbox-indeterminate"),(J||he)&&"".concat(de,"-checkbox-disabled")),onClick:P.onCheck},q)},P.renderIcon=function(){var H=P.props.loading,G=P.props.context.prefixCls;return l.createElement("span",{className:r()("".concat(G,"-iconEle"),"".concat(G,"-icon__").concat(P.getNodeState()||"docu"),H&&"".concat(G,"-icon_loading"))})},P.renderSelector=function(){var H=P.state.dragNodeHighlight,G=P.props,$=G.title,he=G.selected,de=G.icon,J=G.loading,fe=G.data,q=P.props.context,U=q.prefixCls,z=q.showIcon,L=q.icon,T=q.draggable,I=q.loadData,se=q.titleRender,me=P.isDisabled(),xe="".concat(U,"-node-content-wrapper"),Ee;if(z){var Oe=de||L;Ee=Oe?l.createElement("span",{className:r()("".concat(U,"-iconEle"),"".concat(U,"-icon__customize"))},typeof Oe=="function"?Oe(P.props):Oe):P.renderIcon()}else I&&J&&(Ee=P.renderIcon());var le;typeof $=="function"?le=$(fe):se?le=se(fe):le=$;var ge=l.createElement("span",{className:"".concat(U,"-title")},le);return l.createElement("span",{ref:P.setSelectHandle,title:typeof $=="string"?$:"",className:r()("".concat(xe),"".concat(xe,"-").concat(P.getNodeState()||"normal"),!me&&(he||H)&&"".concat(U,"-node-selected"),!me&&T&&"draggable"),draggable:!me&&T||void 0,"aria-grabbed":!me&&T||void 0,onMouseEnter:P.onMouseEnter,onMouseLeave:P.onMouseLeave,onContextMenu:P.onContextMenu,onClick:P.onSelectorClick,onDoubleClick:P.onSelectorDoubleClick,onDragStart:T?P.onDragStart:void 0},Ee,ge)},P}return Object(_.a)(X,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var H=this.props.selectable,G=this.props.context.selectable;return typeof H=="boolean"?H:G}},{key:"render",value:function(){var H,G=this.props,$=G.eventKey,he=G.className,de=G.style,J=G.dragOver,fe=G.dragOverGapTop,q=G.dragOverGapBottom,U=G.isLeaf,z=G.isStart,L=G.isEnd,T=G.expanded,I=G.selected,se=G.checked,me=G.halfChecked,xe=G.loading,Ee=G.domRef,Oe=G.active,le=G.onMouseMove,ge=Object(a.a)(G,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),ye=this.props.context,ee=ye.prefixCls,oe=ye.filterTreeNode,Z=ye.draggable,ue=ye.keyEntities,V=this.isDisabled(),Q=Object(u.f)(ge),ae=ue[$]||{},K=ae.level,j=L[L.length-1];return l.createElement("div",Object.assign({ref:Ee,className:r()(he,"".concat(ee,"-treenode"),(H={},Object(m.a)(H,"".concat(ee,"-treenode-disabled"),V),Object(m.a)(H,"".concat(ee,"-treenode-switcher-").concat(T?"open":"close"),!U),Object(m.a)(H,"".concat(ee,"-treenode-checkbox-checked"),se),Object(m.a)(H,"".concat(ee,"-treenode-checkbox-indeterminate"),me),Object(m.a)(H,"".concat(ee,"-treenode-selected"),I),Object(m.a)(H,"".concat(ee,"-treenode-loading"),xe),Object(m.a)(H,"".concat(ee,"-treenode-active"),Oe),Object(m.a)(H,"".concat(ee,"-treenode-leaf-last"),j),Object(m.a)(H,"drag-over",!V&&J),Object(m.a)(H,"drag-over-gap-top",!V&&fe),Object(m.a)(H,"drag-over-gap-bottom",!V&&q),Object(m.a)(H,"filter-node",oe&&oe(Object(C.b)(this.props))),H)),style:de,onDragEnter:Z?this.onDragEnter:void 0,onDragOver:Z?this.onDragOver:void 0,onDragLeave:Z?this.onDragLeave:void 0,onDrop:Z?this.onDrop:void 0,onDragEnd:Z?this.onDragEnd:void 0,onMouseMove:le},Q),l.createElement(x,{prefixCls:ee,level:K,isStart:z,isEnd:L}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),X}(l.Component),N=function(Y){return l.createElement(d.a.Consumer,null,function(X){return l.createElement(A,Object.assign({},Y,{context:X}))})};N.displayName="TreeNode",N.defaultProps={title:E},N.isTreeNode=1;var M=F.a=N},XIdC:function(h,F,o){"use strict";var m=o("rePB"),a=o("ODXe"),D=o("Ff2n"),O=o("q1tI"),_=o.n(O),y=o("TSYQ"),v=o.n(y),c=o("6cGi"),l=o("4IlW"),s=O.forwardRef(function(r,d){var u,f=r.prefixCls,x=f===void 0?"rc-switch":f,C=r.className,b=r.checked,g=r.defaultChecked,E=r.disabled,A=r.loadingIcon,N=r.checkedChildren,M=r.unCheckedChildren,w=r.onClick,Y=r.onChange,X=r.onKeyDown,P=Object(D.a)(r,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),H=Object(c.a)(!1,{value:b,defaultValue:g}),G=Object(a.a)(H,2),$=G[0],he=G[1];function de(U,z){var L=$;return E||(L=U,he(L),Y==null||Y(L,z)),L}function J(U){U.which===l.a.LEFT?de(!1,U):U.which===l.a.RIGHT&&de(!0,U),X==null||X(U)}function fe(U){var z=de(!$,U);w==null||w(z,U)}var q=v()(x,C,(u={},Object(m.a)(u,"".concat(x,"-checked"),$),Object(m.a)(u,"".concat(x,"-disabled"),E),u));return O.createElement("button",Object.assign({},P,{type:"button",role:"switch","aria-checked":$,disabled:E,className:q,ref:d,onKeyDown:J,onClick:fe}),A,O.createElement("span",{className:"".concat(x,"-inner")},$?N:M))});s.displayName="Switch",F.a=s},Y1PL:function(h,F,o){"use strict";o.r(F),o.d(F,"ResizableTextArea",function(){return me});var m=o("wx14"),a=o("1OyB"),D=o("vuIU"),O=o("Ji7U"),_=o("LK+K"),y=o("q1tI"),v=o("VTBJ"),c=o("rePB"),l=o("Zm9Q"),s=o("Kwbf"),r=o("c+Xe"),d=o("m+aA"),u=o("bdgK"),f=new Map;function x(Oe){Oe.forEach(function(le){var ge,ye=le.target;(ge=f.get(ye))===null||ge===void 0||ge.forEach(function(ee){return ee(ye)})})}var C=new u.default(x),b=null,g=null;function E(Oe,le){f.has(Oe)||(f.set(Oe,new Set),C.observe(Oe)),f.get(Oe).add(le)}function A(Oe,le){f.has(Oe)&&(f.get(Oe).delete(le),f.get(Oe).size||(C.unobserve(Oe),f.delete(Oe)))}var N=function(Oe){Object(O.a)(ge,Oe);var le=Object(_.a)(ge);function ge(){return Object(a.a)(this,ge),le.apply(this,arguments)}return Object(D.a)(ge,[{key:"render",value:function(){return this.props.children}}]),ge}(y.Component),M=y.createContext(null);function w(Oe){var le=Oe.children,ge=Oe.onBatchResize,ye=y.useRef(0),ee=y.useRef([]),oe=y.useContext(M),Z=y.useCallback(function(ue,V,Q){ye.current+=1;var ae=ye.current;ee.current.push({size:ue,element:V,data:Q}),Promise.resolve().then(function(){ae===ye.current&&(ge==null||ge(ee.current),ee.current=[])}),oe==null||oe(ue,V,Q)},[ge,oe]);return y.createElement(M.Provider,{value:Z},le)}function Y(Oe){var le=Oe.children,ge=Oe.disabled,ye=y.useRef(null),ee=y.useRef(null),oe=y.useContext(M),Z=y.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),ue=y.isValidElement(le)&&Object(r.c)(le),V=ue?le.ref:null,Q=y.useMemo(function(){return Object(r.a)(V,ye)},[V,ye]),ae=y.useRef(Oe);ae.current=Oe;var K=y.useCallback(function(j){var k=ae.current,W=k.onResize,we=k.data,be=j.getBoundingClientRect(),Te=be.width,Be=be.height,Fe=j.offsetWidth,Ue=j.offsetHeight,We=Math.floor(Te),Ve=Math.floor(Be);if(Z.current.width!==We||Z.current.height!==Ve||Z.current.offsetWidth!==Fe||Z.current.offsetHeight!==Ue){var Ge={width:We,height:Ve,offsetWidth:Fe,offsetHeight:Ue};Z.current=Ge;var Je=Fe===Math.round(Te)?Te:Fe,Re=Ue===Math.round(Be)?Be:Ue,Ze=Object(v.a)(Object(v.a)({},Ge),{},{offsetWidth:Je,offsetHeight:Re});oe==null||oe(Ze,j,we),W&&Promise.resolve().then(function(){W(Ze,j)})}},[]);return y.useEffect(function(){var j=Object(d.a)(ye.current)||Object(d.a)(ee.current);return j&&!ge&&E(j,K),function(){return A(j,K)}},[ye.current,ge]),y.createElement(N,{ref:ee},ue?y.cloneElement(le,{ref:Q}):le)}var X="rc-observer-key";function P(Oe){var le=Oe.children,ge=Object(l.a)(le);return ge.map(function(ye,ee){var oe=(ye==null?void 0:ye.key)||"".concat(X,"-").concat(ee);return y.createElement(Y,Object(m.a)({},Oe,{key:oe}),ye)})}P.Collection=w;var H=P,G=o("bT9E"),$=o("TSYQ"),he=o.n($),de=`
|
|
|
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
|
|
|
`,J=["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"],fe={},q;function U(Oe){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ge=Oe.getAttribute("id")||Oe.getAttribute("data-reactid")||Oe.getAttribute("name");if(le&&fe[ge])return fe[ge];var ye=window.getComputedStyle(Oe),ee=ye.getPropertyValue("box-sizing")||ye.getPropertyValue("-moz-box-sizing")||ye.getPropertyValue("-webkit-box-sizing"),oe=parseFloat(ye.getPropertyValue("padding-bottom"))+parseFloat(ye.getPropertyValue("padding-top")),Z=parseFloat(ye.getPropertyValue("border-bottom-width"))+parseFloat(ye.getPropertyValue("border-top-width")),ue=J.map(function(Q){return"".concat(Q,":").concat(ye.getPropertyValue(Q))}).join(";"),V={sizingStyle:ue,paddingSize:oe,borderSize:Z,boxSizing:ee};return le&&ge&&(fe[ge]=V),V}function z(Oe){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;q||(q=document.createElement("textarea"),q.setAttribute("tab-index","-1"),q.setAttribute("aria-hidden","true"),document.body.appendChild(q)),Oe.getAttribute("wrap")?q.setAttribute("wrap",Oe.getAttribute("wrap")):q.removeAttribute("wrap");var ee=U(Oe,le),oe=ee.paddingSize,Z=ee.borderSize,ue=ee.boxSizing,V=ee.sizingStyle;q.setAttribute("style","".concat(V,";").concat(de)),q.value=Oe.value||Oe.placeholder||"";var Q=Number.MIN_SAFE_INTEGER,ae=Number.MAX_SAFE_INTEGER,K=q.scrollHeight,j;if(ue==="border-box"?K+=Z:ue==="content-box"&&(K-=oe),ge!==null||ye!==null){q.value=" ";var k=q.scrollHeight-oe;ge!==null&&(Q=k*ge,ue==="border-box"&&(Q=Q+oe+Z),K=Math.max(Q,K)),ye!==null&&(ae=k*ye,ue==="border-box"&&(ae=ae+oe+Z),j=K>ae?"":"hidden",K=Math.min(ae,K))}return{height:K,minHeight:Q,maxHeight:ae,overflowY:j,resize:"none"}}var L=o("Gytx"),T=o.n(L),I;(function(Oe){Oe[Oe.NONE=0]="NONE",Oe[Oe.RESIZING=1]="RESIZING",Oe[Oe.RESIZED=2]="RESIZED"})(I||(I={}));var se=function(Oe){Object(O.a)(ge,Oe);var le=Object(_.a)(ge);function ge(ye){var ee;return Object(a.a)(this,ge),ee=le.call(this,ye),ee.nextFrameActionId=void 0,ee.resizeFrameId=void 0,ee.textArea=void 0,ee.saveTextArea=function(oe){ee.textArea=oe},ee.handleResize=function(oe){var Z=ee.state.resizeStatus,ue=ee.props,V=ue.autoSize,Q=ue.onResize;if(Z!==I.NONE)return;typeof Q=="function"&&Q(oe),V&&ee.resizeOnNextFrame()},ee.resizeOnNextFrame=function(){cancelAnimationFrame(ee.nextFrameActionId),ee.nextFrameActionId=requestAnimationFrame(ee.resizeTextarea)},ee.resizeTextarea=function(){var oe=ee.props.autoSize;if(!oe||!ee.textArea)return;var Z=oe.minRows,ue=oe.maxRows,V=z(ee.textArea,!1,Z,ue);ee.setState({textareaStyles:V,resizeStatus:I.RESIZING},function(){cancelAnimationFrame(ee.resizeFrameId),ee.resizeFrameId=requestAnimationFrame(function(){ee.setState({resizeStatus:I.RESIZED},function(){ee.resizeFrameId=requestAnimationFrame(function(){ee.setState({resizeStatus:I.NONE}),ee.fixFirefoxAutoScroll()})})})})},ee.renderTextArea=function(){var oe=ee.props,Z=oe.prefixCls,ue=Z===void 0?"rc-textarea":Z,V=oe.autoSize,Q=oe.onResize,ae=oe.className,K=oe.disabled,j=ee.state,k=j.textareaStyles,W=j.resizeStatus,we=Object(G.a)(ee.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),be=he()(ue,ae,Object(c.a)({},"".concat(ue,"-disabled"),K));"value"in we&&(we.value=we.value||"");var Te=Object(v.a)(Object(v.a)(Object(v.a)({},ee.props.style),k),W===I.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return y.createElement(H,{onResize:ee.handleResize,disabled:!(V||Q)},y.createElement("textarea",Object(m.a)({},we,{className:be,style:Te,ref:ee.saveTextArea})))},ee.state={textareaStyles:{},resizeStatus:I.NONE},ee}return Object(D.a)(ge,[{key:"componentDidUpdate",value:function(ee){(ee.value!==this.props.value||!T()(ee.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 ee=this.textArea.selectionStart,oe=this.textArea.selectionEnd;this.textArea.setSelectionRange(ee,oe)}}catch(Z){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ge}(y.Component),me=se,xe=function(Oe){Object(O.a)(ge,Oe);var le=Object(_.a)(ge);function ge(ye){var ee;Object(a.a)(this,ge),ee=le.call(this,ye),ee.resizableTextArea=void 0,ee.focus=function(){ee.resizableTextArea.textArea.focus()},ee.saveTextArea=function(Z){ee.resizableTextArea=Z},ee.handleChange=function(Z){var ue=ee.props.onChange;ee.setValue(Z.target.value,function(){ee.resizableTextArea.resizeTextarea()}),ue&&ue(Z)},ee.handleKeyDown=function(Z){var ue=ee.props,V=ue.onPressEnter,Q=ue.onKeyDown;Z.keyCode===13&&V&&V(Z),Q&&Q(Z)};var oe=typeof ye.value=="undefined"||ye.value===null?ye.defaultValue:ye.value;return ee.state={value:oe},ee}return Object(D.a)(ge,[{key:"setValue",value:function(ee,oe){"value"in this.props||this.setState({value:ee},oe)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return y.createElement(me,Object(m.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(ee){return"value"in ee?{value:ee.value}:null}}]),ge}(y.Component),Ee=F.default=xe},ZD9Y:function(h,F,o){"use strict";var m=o("BoS7"),a=o("Sdc0"),D=o("OaEy"),O=o("2fM7"),_=o("q1tI"),y=o.n(_),v=o("lOMy"),c=o.n(v),l=O.a.Option;F.a=function(s){var r=s.onFontSizeChange,d=s.cmFontSize,u=s.cmCodeMode,f=s.onCodeModeChange,x=s.onTabToSpace,C=s.className,b=C===void 0?"":C,g=s.tabToSpace,E=s.children;return y.a.createElement("div",{className:"tpi-code-setting ".concat(b)},y.a.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),y.a.createElement("section",null,y.a.createElement("div",{className:"file-item"},y.a.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),y.a.createElement(O.a,{bordered:!1,size:"small",value:u,onChange:f},y.a.createElement(l,{value:"vs"},"\u767D\u8272\u80CC\u666F"),y.a.createElement(l,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),y.a.createElement("div",{className:"file-item"},y.a.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),y.a.createElement(O.a,{bordered:!1,size:"small",value:d,onChange:r},y.a.createElement(l,{value:12},"12px"),y.a.createElement(l,{value:14},"14px"),y.a.createElement(l,{value:16},"16px"),y.a.createElement(l,{value:18},"18px"),y.a.createElement(l,{value:20},"20px"),y.a.createElement(l,{value:22},"22px"))),y.a.createElement("div",{className:"file-item"},y.a.createElement("b",null,"Tab\u8F6C\u6362"),y.a.createElement(a.a,{checked:g,onChange:x}))),y.a.createElement("h3",null,"\u5FEB\u6377\u952E"),y.a.createElement("section",null,y.a.createElement("div",{className:"file-item"},y.a.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),y.a.createElement("span",null,"Ctrl + S")),y.a.createElement("div",{className:"file-item"},y.a.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),y.a.createElement("span",null,"F1 / Alt + F1")),y.a.createElement("div",{className:"file-item"},y.a.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),y.a.createElement("span",null,"Ctrl + ]/[")),y.a.createElement("div",{className:"file-item"},y.a.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),y.a.createElement("span",null,"Ctrl + Shift + \\")),y.a.createElement("div",{className:"file-item"},y.a.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),y.a.createElement("span",null,"Home")),y.a.createElement("div",{className:"file-item"},y.a.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),y.a.createElement("span",null,"End"))),E)}},ZW9T:function(h,F,o){"use strict";o.d(F,"a",function(){return H});var m=o("k1fw"),a=o("oBTY"),D=o("9og8"),O=o("miYZ"),_=o("tsqr"),y=o("rAM+"),v=o("tJVT"),c=o("PpiC"),l=o("WmNS"),s=o.n(l),r=o("q1tI"),d=o.n(r),u=o("bdgK");function f(G,$,he,de,J){var fe=$.getWordUntilPosition(he),q={startLineNumber:he.lineNumber,endLineNumber:he.lineNumber,startColumn:fe.startColumn,endColumn:fe.endColumn},U=de.map(function(z){return{label:z,kind:G.languages.CompletionItemKind.Keyword,insertText:z,insertTextRules:G.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:q}});return J.map(function(z){U.push(Object(m.a)(Object(m.a)({},z),{},{range:q}))}),U}var x=function(G){var $={label:"ifelse",kind:G.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`),insertTextRules:G.languages.CompletionItemInsertTextRule.InsertAsSnippet},he=["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","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];G.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(q,U){var z=f(G,q,U,he,[$]);return{suggestions:z}}});var de=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];G.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(q,U){var z=[{label:"print",kind:G.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(`
|
|
|
`),insertTextRules:G.languages.CompletionItemInsertTextRule.InsertAsSnippet}],L=f(G,q,U,de,z);return{suggestions:L}}});var J=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];G.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(q,U){var z=[$,{label:"main",kind:G.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(`
|
|
|
`),insertTextRules:G.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:G.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(`
|
|
|
`),insertTextRules:G.languages.CompletionItemInsertTextRule.InsertAsSnippet}],L=f(G,q,U,J,z);return{suggestions:L}}})},C="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",b=o("fjLI"),g=o("LvDl"),E=o("+ua5");function A(G){return/^\d+$/.test(G)?"".concat(G,"px"):G}function N(){}var M=!1,w={"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",Scala:"scale"};function Y(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=G;if(Array.isArray(G)){for(var he=0;he<G.length;he++){var de=w[G[he]];if(de)return de}return $[0]}return w[$]||$}var X=null,P=F.b=function(G){var $=G.width,he=$===void 0?"100%":$,de=G.height,J=de===void 0?"100%":de,fe=G.value,q=G.language,U=q===void 0?"javascript":q,z=G.style,L=z===void 0?{}:z,T=G.options,I=T===void 0?{}:T,se=G.overrideServices,me=se===void 0?{}:se,xe=G.theme,Ee=xe===void 0?"vs-dark":xe,Oe=G.onEditBlur,le=G.onSave,ge=G.autoHeight,ye=ge===void 0?!1:ge,ee=G.forbidCopy,oe=ee===void 0?!1:ee,Z=G.onChange,ue=Z===void 0?N:Z,V=G.editorDidMount,Q=V===void 0?N:V,ae=G.onFocus,K=ae===void 0?N:ae,j=G.onBreakPoint,k=j===void 0?N:j,W=G.breakPointValue,we=W===void 0?[]:W,be=G.filename,Te=be===void 0?"educoder.txt":be,Be=G.errorLine,Fe=G.errorContent,Ue=Fe===void 0?"":Fe,We=G.highlightLine,Ve=G.openBreakPoint,Ge=Ve===void 0?!1:Ve,Je=Object(c.a)(G,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint"]),Re=Object(r.useRef)(),Ze=Object(r.useRef)({}),nt=Object(r.useRef)(),Ke=Object(r.useRef)(),$e=Object(r.useRef)([]),je=Object(r.useRef)(!1),Me=Object(r.useRef)(),Pe=Object(r.useState)(!1),Se=Object(v.a)(Pe,2),_e=Se[0],ke=Se[1];function Le(){var Dt;return Re.current&&(Dt=new u.default(function(st){var _t=Object(y.a)(st),Vt;try{for(_t.s();!(Vt=_t.n()).done;){var tr=Vt.value;(tr.target.offsetHeight>0||tr.target.offsetWidth>0)&&Ze.current.instance.layout()}}catch(sr){_t.e(sr)}finally{_t.f()}}),Dt.observe(Re.current)),Dt}function Xe(){_.b.warn({content:decodeURIComponent(C),key:"monaco-editor-tip"})}var Ae=function(){var st=Ze.current.instance;if(fe!=null&&st&&_e){var _t=st.getModel();_t&&fe!==_t.getValue()&&(M=!0,_t.setValue(fe),st.layout(),M=!1)}};Object(r.useEffect)(function(){try{var Dt,st=Ze.current.instance;Ke.current&&clearTimeout(Ke.current),Ke.current=setTimeout(function(){Ae()},500),st==null||((Dt=st.updateOptions)===null||Dt===void 0)||Dt.call(st,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(fe.split(/\r\n|\r|\n/g).length))+3,5)})}catch(_t){debugger}},[fe,_e,Ze.current]),Object(r.useEffect)(function(){try{if(Be&&Ze.current&&Ze.current.instance){var Dt=Ze.current.instance;Dt.changeViewZones(function(_t){var Vt=document.createElement("div");Vt.style.padding="10px 20px",Vt.style.width="calc(100% - 20px)",Vt.className="my-error-line-wrp",Vt.innerHTML=Ue,_t.addZone({afterLineNumber:Be||11,heightInLines:3,domNode:Vt})});var st={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}};Dt.addOverlayWidget(st),Dt.revealPositionInCenter({lineNumber:20,column:1})}}catch(_t){debugger}},[Be,Ze.current,_e]),Object(r.useEffect)(function(){var Dt;if((Dt=Ze.current)!==null&&Dt!==void 0&&Dt.instance&&_e&&Ge){var st=Ze.current.instance,_t=st.getModel();if(!_t)return;var Vt=function(){var pt=[],Wt=[],zt=_t.getAllDecorations(),ir=Object(y.a)(zt),lr;try{for(ir.s();!(lr=ir.n()).done;){var ie=lr.value;if(ie.options.className==="highlighted-line"){var S;pt.push(ie==null||((S=ie.range)===null||S===void 0)?void 0:S.startLineNumber),Wt.push(ie==null?void 0:ie.id)}}}catch(re){ir.e(re)}finally{ir.f()}_t.deltaDecorations(Wt,[]);var R=_t.getLineCount();!!We&&We<=R&&(st.deltaDecorations([],[{range:new X.Range(We,1,We,_t.getLineMaxColumn(We)),options:{isWholeLine:!0,className:"highlighted-line"}}]),st.revealLineInCenter(We))};Vt();var tr=function(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Wt=[],zt=[],ir=_t.getAllDecorations(),lr=Object(y.a)(ir),ie;try{for(lr.s();!(ie=lr.n()).done;){var S=ie.value;if(S.options.linesDecorationsClassName==="breakpoints"){var R;Wt.push(S==null||((R=S.range)===null||R===void 0)?void 0:R.startLineNumber),zt.push(S==null?void 0:S.id)}}}catch(re){lr.e(re)}finally{lr.f()}if(pt)return{lines:Wt,ids:zt};k(Wt)},sr=function(){var qe=Object(D.a)(s.a.mark(function pt(Wt){var zt;return s.a.wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:return zt={range:new X.Range(Wt,1,Wt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},lr.next=3,_t.deltaDecorations([],[zt]);case 3:tr();case 4:case"end":return lr.stop()}},pt)}));return function(Wt){return qe.apply(this,arguments)}}(),Bt=function(){var qe=Object(D.a)(s.a.mark(function pt(Wt){var zt,ir,lr,ie,S;return s.a.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:zt=[],ir=st.getLineDecorations(Wt),lr=Object(y.a)(ir);try{for(lr.s();!(ie=lr.n()).done;)S=ie.value,S.options.linesDecorationsClassName==="breakpoints"&&zt.push(S.id)}catch(ce){lr.e(ce)}finally{lr.f()}return re.next=6,_t.deltaDecorations(zt,[]);case 6:tr();case 7:case"end":return re.stop()}},pt)}));return function(Wt){return qe.apply(this,arguments)}}(),ft=function(pt){var Wt=st.getLineDecorations(pt),zt=Object(y.a)(Wt),ir;try{for(zt.s();!(ir=zt.n()).done;){var lr=ir.value;if(lr.options.linesDecorationsClassName==="breakpoints")return!0}}catch(ie){zt.e(ie)}finally{zt.f()}return!1};if(!Object(g.isEqual)(we,tr(!0).lines)){_t.deltaDecorations(tr(!0).ids,[]);var Yt=we.map(function(qe){return{range:new X.Range(qe,1,qe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});_t.deltaDecorations([],Yt)}var gr=st.onDidChangeModelContent(function(qe){var pt=st.getPosition();if(pt){var Wt=pt.lineNumber;_t.getLineContent(Wt).trim()===""?Bt(Wt):ft(Wt)&&(Bt(Wt),sr(Wt))}}),Nt=st.onMouseDown(function(qe){var pt,Wt,zt;if(qe.target.detail&&(pt=qe.target)!==null&&pt!==void 0&&(Wt=pt.element)!==null&&Wt!==void 0&&(zt=Wt.className)!==null&&zt!==void 0&&zt.includes("line-numbers")){var ir=qe.target.position.lineNumber;if(_t.getLineContent(ir).trim()==="")return;ft(ir)?Bt(ir):sr(ir)}}),Pt=function(pt){var Wt={range:new X.Range(pt,1,pt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};$e.current=st.deltaDecorations($e.current,[Wt])},fr=function(){$e.current=st.deltaDecorations($e.current,[])},Wr=st.onMouseMove(function(qe){var pt,Wt,zt;if(fr(),qe.target.detail&&(pt=qe.target)!==null&&pt!==void 0&&(Wt=pt.element)!==null&&Wt!==void 0&&(zt=Wt.className)!==null&&zt!==void 0&&zt.includes("line-numbers")){var ir=qe.target.position.lineNumber;if(_t.getLineContent(ir).trim()==="")return;Pt(ir)}}),Pr=st.onMouseLeave(function(){fr()});return function(){gr.dispose(),Nt.dispose(),Wr.dispose(),Pr.dispose()}}},[Ze.current,_e,we,We,Ge]);function Ye(){var Dt=Ze.current.instance;if(Dt){var st=Dt.getSelection(),_t=Ze.current.pastePos||{},Vt=new X.Range(_t.startLineNumber||st.endLineNumber,_t.startColumn||st.endColumn,_t.endLineNumber||st.endLineNumber,_t.endColumn||st.endColumn);setTimeout(function(){Dt.executeEdits("",[{range:Vt,text:""}])},300)}}function it(Dt){(window.navigator.platform.match("Mac")?Dt.metaKey:Dt.ctrlKey)&&Dt.keyCode==83&&(Dt.preventDefault(),le())}var lt=function(){if(ye&&Ze.current.instance){var st=Ze.current.instance.getContentHeight();Nr(st<J?J:st)}else Nr(J)};function dt(Dt){var st=document.createEvent("MouseEvents");st.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Dt.dispatchEvent(st)}var ut=function(st){var _t=st.keyCode,Vt=st.ctrlKey,tr=st.metaKey,sr=st.target,Bt=st.type;return(Bt==="paste"||(_t===67||_t===86)&&(tr||Vt))&&sr.nodeName==="TEXTAREA"&&(Xe(),st.preventDefault()),!1};function xt(Dt,st){var _t=window.URL||window.webkitURL||window,Vt=new Blob([st]),tr=document.createElementNS("http://www.w3.org/1999/xhtml","a");tr.href=_t.createObjectURL(Vt),tr.download=Dt,dt(tr)}Object(r.useEffect)(function(){lt()},[lt]),Object(r.useEffect)(function(){Re.current&&!_e&&o.e(27).then(o.t.bind(null,"M/lh",7)).then(function(Dt){try{X=Dt,Ze.current.instance=X.editor.create(Re.current,{value:fe,language:Y(U),theme:Ee,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},me);var st=Ze.current.instance,_t=b.c._menuItems,Vt=Object(a.a)(_t).find(function(sr){return sr[0]._debugName=="EditorContext"});if(Q(st,X),setTimeout(function(){lt(),Ze.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){xt(Te||"educoder.txt",st.getValue())}}),st.getDomNode().addEventListener("input",function(){nt.current.autoFormat&&st.getAction("editor.action.formatDocument").run()})},500),Ze.current.subscription=st.onDidChangeModelContent(function(sr){debugger;je.current?clearTimeout(Me.current):(lt(),ue(st.getValue(),sr)),Me.current=setTimeout(function(){je.current=!1},500)}),window.Monaco||x(X,Y(U)),oe&&(Re.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",ut),window.removeEventListener("paste",ut),window.addEventListener("keydown",ut),window.addEventListener("paste",ut)),window.Monaco=X,Oe&&st.onDidBlurEditorWidget(function(){Oe(st.getValue())}),K&&st.onDidFocusEditorText(function(){K(st.getValue())}),oe)try{window.addEventListener("paste",Ye)}catch(sr){}var tr=Le();return ke(!0),function(){var sr=Ze.current.instance;sr.dispose();var Bt=sr.getModel();Bt&&Bt.dispose(),Ze.current.subscription&&Ze.current.subscription.dispose(),oe&&window.removeEventListener("paste",Ye),tr.unobserve(Re.current)}}catch(sr){debugger}})},[]),Object(r.useEffect)(function(){var Dt=Ze.current.instance;if(Dt&&_e)return document.addEventListener("keydown",it,!1),function(){document.removeEventListener("keydown",it)}},[le,_e]),Object(r.useEffect)(function(){var Dt=Ze.current.instance;if(Dt&&_e){var st=Y(U);X.editor.setModelLanguage(Dt.getModel(),st)}},[U,_e]),Object(r.useEffect)(function(){var Dt=Ze.current.instance;Dt&&_e&&X.editor.setTheme(Ee)},[Ee,_e]),Object(r.useEffect)(function(){var Dt=Ze.current.instance;nt.current=I,Dt&&_e&&(Dt.updateOptions(Object(m.a)({},I)),setTimeout(function(){Dt.getModel().updateOptions(Object(m.a)({},I))},200))},[JSON.stringify(I),_e]),Object(r.useEffect)(function(){var Dt=Ze.current.instance;Dt&&_e&&Dt.layout()},[he,J,_e]);var ht=Object(r.useState)(A(he)),Rt=Object(v.a)(ht,2),Xt=Rt[0],er=Rt[1],Qt=Object(r.useState)(A(J)),Ut=Object(v.a)(Qt,2),Gt=Ut[0],Nr=Ut[1],At=Object(m.a)(Object(m.a)({},L),{},{width:Xt,height:Gt});return d.a.createElement("div",{className:"my-monaco-editor",ref:Re,style:At})};function H(G){var $=G.width,he=$===void 0?"100%":$,de=G.height,J=de===void 0?"100%":de,fe=G.original,q=G.modified,U=G.language,z=G.options,L=z===void 0?{}:z,T=Object(r.useRef)(),I=Object(r.useState)(null),se=Object(v.a)(I,2),me=se[0],xe=se[1];function Ee(ye){var ee;return T.current&&(ee=new u.default(function(oe){var Z=Object(y.a)(oe),ue;try{for(Z.s();!(ue=Z.n()).done;){var V=ue.value;(V.target.offsetHeight>0||V.target.offsetWidth>0)&&ye.layout()}}catch(Q){Z.e(Q)}finally{Z.f()}}),ee.observe(T.current)),ee}Object(r.useEffect)(function(){return T.current&&o.e(27).then(o.t.bind(null,"M/lh",7)).then(function(ye){X=ye;var ee=X.editor.createDiffEditor(T.current,Object(m.a)(Object(m.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},L),{},{wordWrap:!0}));xe(ee);var oe=Ee(ee);return function(){ee.dispose();var Z=ee.getModel();Z&&Z.dispose(),oe.unobserve(T.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(r.useEffect)(function(){me&&me.setModel({original:X.editor.createModel(fe,U),modified:X.editor.createModel(q,U)})},[fe,q,U,me]);var Oe=A(he),le=A(J),ge={width:Oe,height:le};return d.a.createElement("div",{className:"my-diff-editor",ref:T,style:ge})}},ZpRC:function(h,F,o){"use strict";function m(r){return typeof r=="object"&&r!=null&&r.nodeType===1}function a(r,d){return(!d||r!=="hidden")&&r!=="visible"&&r!=="clip"}function D(r,d){if(r.clientHeight<r.scrollHeight||r.clientWidth<r.scrollWidth){var u=getComputedStyle(r,null);return a(u.overflowY,d)||a(u.overflowX,d)||function(f){var x=function(C){if(!C.ownerDocument||!C.ownerDocument.defaultView)return null;try{return C.ownerDocument.defaultView.frameElement}catch(b){return null}}(f);return!!x&&(x.clientHeight<f.scrollHeight||x.clientWidth<f.scrollWidth)}(r)}return!1}function O(r,d,u,f,x,C,b,g){return C<r&&b>d||C>r&&b<d?0:C<=r&&g<=u||b>=d&&g>=u?C-r-f:b>d&&g<u||C<r&&g>u?b-d+x:0}var _=function(r,d){var u=window,f=d.scrollMode,x=d.block,C=d.inline,b=d.boundary,g=d.skipOverflowHiddenElements,E=typeof b=="function"?b:function(k){return k!==b};if(!m(r))throw new TypeError("Invalid target");for(var A=document.scrollingElement||document.documentElement,N=[],M=r;m(M)&&E(M);){if((M=M.parentElement)===A){N.push(M);break}M!=null&&M===document.body&&D(M)&&!D(document.documentElement)||M!=null&&D(M,g)&&N.push(M)}for(var w=u.visualViewport?u.visualViewport.width:innerWidth,Y=u.visualViewport?u.visualViewport.height:innerHeight,X=window.scrollX||pageXOffset,P=window.scrollY||pageYOffset,H=r.getBoundingClientRect(),G=H.height,$=H.width,he=H.top,de=H.right,J=H.bottom,fe=H.left,q=x==="start"||x==="nearest"?he:x==="end"?J:he+G/2,U=C==="center"?fe+$/2:C==="end"?de:fe,z=[],L=0;L<N.length;L++){var T=N[L],I=T.getBoundingClientRect(),se=I.height,me=I.width,xe=I.top,Ee=I.right,Oe=I.bottom,le=I.left;if(f==="if-needed"&&he>=0&&fe>=0&&J<=Y&&de<=w&&he>=xe&&J<=Oe&&fe>=le&&de<=Ee)return z;var ge=getComputedStyle(T),ye=parseInt(ge.borderLeftWidth,10),ee=parseInt(ge.borderTopWidth,10),oe=parseInt(ge.borderRightWidth,10),Z=parseInt(ge.borderBottomWidth,10),ue=0,V=0,Q="offsetWidth"in T?T.offsetWidth-T.clientWidth-ye-oe:0,ae="offsetHeight"in T?T.offsetHeight-T.clientHeight-ee-Z:0;if(A===T)ue=x==="start"?q:x==="end"?q-Y:x==="nearest"?O(P,P+Y,Y,ee,Z,P+q,P+q+G,G):q-Y/2,V=C==="start"?U:C==="center"?U-w/2:C==="end"?U-w:O(X,X+w,w,ye,oe,X+U,X+U+$,$),ue=Math.max(0,ue+P),V=Math.max(0,V+X);else{ue=x==="start"?q-xe-ee:x==="end"?q-Oe+Z+ae:x==="nearest"?O(xe,Oe,se,ee,Z+ae,q,q+G,G):q-(xe+se/2)+ae/2,V=C==="start"?U-le-ye:C==="center"?U-(le+me/2)+Q/2:C==="end"?U-Ee+oe+Q:O(le,Ee,me,ye,oe+Q,U,U+$,$);var K=T.scrollLeft,j=T.scrollTop;q+=j-(ue=Math.max(0,Math.min(j+ue,T.scrollHeight-se+ae))),U+=K-(V=Math.max(0,Math.min(K+V,T.scrollWidth-me+Q)))}z.push({el:T,top:ue,left:V})}return z};function y(r){return r===Object(r)&&Object.keys(r).length!==0}function v(r,d){d===void 0&&(d="auto");var u="scrollBehavior"in document.body.style;r.forEach(function(f){var x=f.el,C=f.top,b=f.left;x.scroll&&u?x.scroll({top:C,left:b,behavior:d}):(x.scrollTop=C,x.scrollLeft=b)})}function c(r){return r===!1?{block:"end",inline:"nearest"}:y(r)?r:{block:"start",inline:"nearest"}}function l(r,d){var u=!r.ownerDocument.documentElement.contains(r);if(y(d)&&typeof d.behavior=="function")return d.behavior(u?[]:_(r,d));if(u)return;var f=c(d);return v(_(r,f),f.behavior)}var s=F.a=l},Zss7:function(h,F,o){var m;(function(a){var D=/^\s+/,O=/\s+$/,_=0,y=a.round,v=a.min,c=a.max,l=a.random;function s(Z,ue){if(Z=Z||"",ue=ue||{},Z instanceof s)return Z;if(!(this instanceof s))return new s(Z,ue);var V=r(Z);this._originalInput=Z,this._r=V.r,this._g=V.g,this._b=V.b,this._a=V.a,this._roundA=y(100*this._a)/100,this._format=ue.format||V.format,this._gradientType=ue.gradientType,this._r<1&&(this._r=y(this._r)),this._g<1&&(this._g=y(this._g)),this._b<1&&(this._b=y(this._b)),this._ok=V.ok,this._tc_id=_++}s.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 Z=this.toRgb();return(Z.r*299+Z.g*587+Z.b*114)/1e3},getLuminance:function(){var Z=this.toRgb(),ue,V,Q,ae,K,j;return ue=Z.r/255,V=Z.g/255,Q=Z.b/255,ue<=.03928?ae=ue/12.92:ae=a.pow((ue+.055)/1.055,2.4),V<=.03928?K=V/12.92:K=a.pow((V+.055)/1.055,2.4),Q<=.03928?j=Q/12.92:j=a.pow((Q+.055)/1.055,2.4),.2126*ae+.7152*K+.0722*j},setAlpha:function(Z){return this._a=z(Z),this._roundA=y(100*this._a)/100,this},toHsv:function(){var Z=x(this._r,this._g,this._b);return{h:Z.h*360,s:Z.s,v:Z.v,a:this._a}},toHsvString:function(){var Z=x(this._r,this._g,this._b),ue=y(Z.h*360),V=y(Z.s*100),Q=y(Z.v*100);return this._a==1?"hsv("+ue+", "+V+"%, "+Q+"%)":"hsva("+ue+", "+V+"%, "+Q+"%, "+this._roundA+")"},toHsl:function(){var Z=u(this._r,this._g,this._b);return{h:Z.h*360,s:Z.s,l:Z.l,a:this._a}},toHslString:function(){var Z=u(this._r,this._g,this._b),ue=y(Z.h*360),V=y(Z.s*100),Q=y(Z.l*100);return this._a==1?"hsl("+ue+", "+V+"%, "+Q+"%)":"hsla("+ue+", "+V+"%, "+Q+"%, "+this._roundA+")"},toHex:function(Z){return b(this._r,this._g,this._b,Z)},toHexString:function(Z){return"#"+this.toHex(Z)},toHex8:function(Z){return g(this._r,this._g,this._b,this._a,Z)},toHex8String:function(Z){return"#"+this.toHex8(Z)},toRgb:function(){return{r:y(this._r),g:y(this._g),b:y(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+y(this._r)+", "+y(this._g)+", "+y(this._b)+")":"rgba("+y(this._r)+", "+y(this._g)+", "+y(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:y(L(this._r,255)*100)+"%",g:y(L(this._g,255)*100)+"%",b:y(L(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+y(L(this._r,255)*100)+"%, "+y(L(this._g,255)*100)+"%, "+y(L(this._b,255)*100)+"%)":"rgba("+y(L(this._r,255)*100)+"%, "+y(L(this._g,255)*100)+"%, "+y(L(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:q[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(Z){var ue="#"+E(this._r,this._g,this._b,this._a),V=ue,Q=this._gradientType?"GradientType = 1, ":"";if(Z){var ae=s(Z);V="#"+E(ae._r,ae._g,ae._b,ae._a)}return"progid:DXImageTransform.Microsoft.gradient("+Q+"startColorstr="+ue+",endColorstr="+V+")"},toString:function(Z){var ue=!!Z;Z=Z||this._format;var V=!1,Q=this._a<1&&this._a>=0,ae=!ue&&Q&&(Z==="hex"||Z==="hex6"||Z==="hex3"||Z==="hex4"||Z==="hex8"||Z==="name");return ae?Z==="name"&&this._a===0?this.toName():this.toRgbString():(Z==="rgb"&&(V=this.toRgbString()),Z==="prgb"&&(V=this.toPercentageRgbString()),(Z==="hex"||Z==="hex6")&&(V=this.toHexString()),Z==="hex3"&&(V=this.toHexString(!0)),Z==="hex4"&&(V=this.toHex8String(!0)),Z==="hex8"&&(V=this.toHex8String()),Z==="name"&&(V=this.toName()),Z==="hsl"&&(V=this.toHslString()),Z==="hsv"&&(V=this.toHsvString()),V||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(Z,ue){var V=Z.apply(null,[this].concat([].slice.call(ue)));return this._r=V._r,this._g=V._g,this._b=V._b,this.setAlpha(V._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(Y,arguments)},darken:function(){return this._applyModification(X,arguments)},desaturate:function(){return this._applyModification(A,arguments)},saturate:function(){return this._applyModification(N,arguments)},greyscale:function(){return this._applyModification(M,arguments)},spin:function(){return this._applyModification(P,arguments)},_applyCombination:function(Z,ue){return Z.apply(null,[this].concat([].slice.call(ue)))},analogous:function(){return this._applyCombination(de,arguments)},complement:function(){return this._applyCombination(H,arguments)},monochromatic:function(){return this._applyCombination(J,arguments)},splitcomplement:function(){return this._applyCombination(he,arguments)},triad:function(){return this._applyCombination(G,arguments)},tetrad:function(){return this._applyCombination($,arguments)}},s.fromRatio=function(Z,ue){if(typeof Z=="object"){var V={};for(var Q in Z)Z.hasOwnProperty(Q)&&(Q==="a"?V[Q]=Z[Q]:V[Q]=Ee(Z[Q]));Z=V}return s(Z,ue)};function r(Z){var ue={r:0,g:0,b:0},V=1,Q=null,ae=null,K=null,j=!1,k=!1;return typeof Z=="string"&&(Z=ee(Z)),typeof Z=="object"&&(ye(Z.r)&&ye(Z.g)&&ye(Z.b)?(ue=d(Z.r,Z.g,Z.b),j=!0,k=String(Z.r).substr(-1)==="%"?"prgb":"rgb"):ye(Z.h)&&ye(Z.s)&&ye(Z.v)?(Q=Ee(Z.s),ae=Ee(Z.v),ue=C(Z.h,Q,ae),j=!0,k="hsv"):ye(Z.h)&&ye(Z.s)&&ye(Z.l)&&(Q=Ee(Z.s),K=Ee(Z.l),ue=f(Z.h,Q,K),j=!0,k="hsl"),Z.hasOwnProperty("a")&&(V=Z.a)),V=z(V),{ok:j,format:Z.format||k,r:v(255,c(ue.r,0)),g:v(255,c(ue.g,0)),b:v(255,c(ue.b,0)),a:V}}function d(Z,ue,V){return{r:L(Z,255)*255,g:L(ue,255)*255,b:L(V,255)*255}}function u(Z,ue,V){Z=L(Z,255),ue=L(ue,255),V=L(V,255);var Q=c(Z,ue,V),ae=v(Z,ue,V),K,j,k=(Q+ae)/2;if(Q==ae)K=j=0;else{var W=Q-ae;j=k>.5?W/(2-Q-ae):W/(Q+ae);switch(Q){case Z:K=(ue-V)/W+(ue<V?6:0);break;case ue:K=(V-Z)/W+2;break;case V:K=(Z-ue)/W+4;break}K/=6}return{h:K,s:j,l:k}}function f(Z,ue,V){var Q,ae,K;Z=L(Z,360),ue=L(ue,100),V=L(V,100);function j(we,be,Te){return Te<0&&(Te+=1),Te>1&&(Te-=1),Te<1/6?we+(be-we)*6*Te:Te<1/2?be:Te<2/3?we+(be-we)*(2/3-Te)*6:we}if(ue===0)Q=ae=K=V;else{var k=V<.5?V*(1+ue):V+ue-V*ue,W=2*V-k;Q=j(W,k,Z+1/3),ae=j(W,k,Z),K=j(W,k,Z-1/3)}return{r:Q*255,g:ae*255,b:K*255}}function x(Z,ue,V){Z=L(Z,255),ue=L(ue,255),V=L(V,255);var Q=c(Z,ue,V),ae=v(Z,ue,V),K,j,k=Q,W=Q-ae;if(j=Q===0?0:W/Q,Q==ae)K=0;else{switch(Q){case Z:K=(ue-V)/W+(ue<V?6:0);break;case ue:K=(V-Z)/W+2;break;case V:K=(Z-ue)/W+4;break}K/=6}return{h:K,s:j,v:k}}function C(Z,ue,V){Z=L(Z,360)*6,ue=L(ue,100),V=L(V,100);var Q=a.floor(Z),ae=Z-Q,K=V*(1-ue),j=V*(1-ae*ue),k=V*(1-(1-ae)*ue),W=Q%6,we=[V,j,K,K,k,V][W],be=[k,V,V,j,K,K][W],Te=[K,K,k,V,V,j][W];return{r:we*255,g:be*255,b:Te*255}}function b(Z,ue,V,Q){var ae=[xe(y(Z).toString(16)),xe(y(ue).toString(16)),xe(y(V).toString(16))];return Q&&ae[0].charAt(0)==ae[0].charAt(1)&&ae[1].charAt(0)==ae[1].charAt(1)&&ae[2].charAt(0)==ae[2].charAt(1)?ae[0].charAt(0)+ae[1].charAt(0)+ae[2].charAt(0):ae.join("")}function g(Z,ue,V,Q,ae){var K=[xe(y(Z).toString(16)),xe(y(ue).toString(16)),xe(y(V).toString(16)),xe(Oe(Q))];return ae&&K[0].charAt(0)==K[0].charAt(1)&&K[1].charAt(0)==K[1].charAt(1)&&K[2].charAt(0)==K[2].charAt(1)&&K[3].charAt(0)==K[3].charAt(1)?K[0].charAt(0)+K[1].charAt(0)+K[2].charAt(0)+K[3].charAt(0):K.join("")}function E(Z,ue,V,Q){var ae=[xe(Oe(Q)),xe(y(Z).toString(16)),xe(y(ue).toString(16)),xe(y(V).toString(16))];return ae.join("")}s.equals=function(Z,ue){return!Z||!ue?!1:s(Z).toRgbString()==s(ue).toRgbString()},s.random=function(){return s.fromRatio({r:l(),g:l(),b:l()})};function A(Z,ue){ue=ue===0?0:ue||10;var V=s(Z).toHsl();return V.s-=ue/100,V.s=T(V.s),s(V)}function N(Z,ue){ue=ue===0?0:ue||10;var V=s(Z).toHsl();return V.s+=ue/100,V.s=T(V.s),s(V)}function M(Z){return s(Z).desaturate(100)}function w(Z,ue){ue=ue===0?0:ue||10;var V=s(Z).toHsl();return V.l+=ue/100,V.l=T(V.l),s(V)}function Y(Z,ue){ue=ue===0?0:ue||10;var V=s(Z).toRgb();return V.r=c(0,v(255,V.r-y(255*-(ue/100)))),V.g=c(0,v(255,V.g-y(255*-(ue/100)))),V.b=c(0,v(255,V.b-y(255*-(ue/100)))),s(V)}function X(Z,ue){ue=ue===0?0:ue||10;var V=s(Z).toHsl();return V.l-=ue/100,V.l=T(V.l),s(V)}function P(Z,ue){var V=s(Z).toHsl(),Q=(V.h+ue)%360;return V.h=Q<0?360+Q:Q,s(V)}function H(Z){var ue=s(Z).toHsl();return ue.h=(ue.h+180)%360,s(ue)}function G(Z){var ue=s(Z).toHsl(),V=ue.h;return[s(Z),s({h:(V+120)%360,s:ue.s,l:ue.l}),s({h:(V+240)%360,s:ue.s,l:ue.l})]}function $(Z){var ue=s(Z).toHsl(),V=ue.h;return[s(Z),s({h:(V+90)%360,s:ue.s,l:ue.l}),s({h:(V+180)%360,s:ue.s,l:ue.l}),s({h:(V+270)%360,s:ue.s,l:ue.l})]}function he(Z){var ue=s(Z).toHsl(),V=ue.h;return[s(Z),s({h:(V+72)%360,s:ue.s,l:ue.l}),s({h:(V+216)%360,s:ue.s,l:ue.l})]}function de(Z,ue,V){ue=ue||6,V=V||30;var Q=s(Z).toHsl(),ae=360/V,K=[s(Z)];for(Q.h=(Q.h-(ae*ue>>1)+720)%360;--ue;)Q.h=(Q.h+ae)%360,K.push(s(Q));return K}function J(Z,ue){ue=ue||6;for(var V=s(Z).toHsv(),Q=V.h,ae=V.s,K=V.v,j=[],k=1/ue;ue--;)j.push(s({h:Q,s:ae,v:K})),K=(K+k)%1;return j}s.mix=function(Z,ue,V){V=V===0?0:V||50;var Q=s(Z).toRgb(),ae=s(ue).toRgb(),K=V/100,j={r:(ae.r-Q.r)*K+Q.r,g:(ae.g-Q.g)*K+Q.g,b:(ae.b-Q.b)*K+Q.b,a:(ae.a-Q.a)*K+Q.a};return s(j)},s.readability=function(Z,ue){var V=s(Z),Q=s(ue);return(a.max(V.getLuminance(),Q.getLuminance())+.05)/(a.min(V.getLuminance(),Q.getLuminance())+.05)},s.isReadable=function(Z,ue,V){var Q=s.readability(Z,ue),ae,K;K=!1,ae=oe(V);switch(ae.level+ae.size){case"AAsmall":case"AAAlarge":K=Q>=4.5;break;case"AAlarge":K=Q>=3;break;case"AAAsmall":K=Q>=7;break}return K},s.mostReadable=function(Z,ue,V){var Q=null,ae=0,K,j,k,W;V=V||{},j=V.includeFallbackColors,k=V.level,W=V.size;for(var we=0;we<ue.length;we++)K=s.readability(Z,ue[we]),K>ae&&(ae=K,Q=s(ue[we]));return s.isReadable(Z,Q,{level:k,size:W})||!j?Q:(V.includeFallbackColors=!1,s.mostReadable(Z,["#fff","#000"],V))};var fe=s.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"},q=s.hexNames=U(fe);function U(Z){var ue={};for(var V in Z)Z.hasOwnProperty(V)&&(ue[Z[V]]=V);return ue}function z(Z){return Z=parseFloat(Z),(isNaN(Z)||Z<0||Z>1)&&(Z=1),Z}function L(Z,ue){se(Z)&&(Z="100%");var V=me(Z);return Z=v(ue,c(0,parseFloat(Z))),V&&(Z=parseInt(Z*ue,10)/100),a.abs(Z-ue)<1e-6?1:Z%ue/parseFloat(ue)}function T(Z){return v(1,c(0,Z))}function I(Z){return parseInt(Z,16)}function se(Z){return typeof Z=="string"&&Z.indexOf(".")!=-1&&parseFloat(Z)===1}function me(Z){return typeof Z=="string"&&Z.indexOf("%")!=-1}function xe(Z){return Z.length==1?"0"+Z:""+Z}function Ee(Z){return Z<=1&&(Z=Z*100+"%"),Z}function Oe(Z){return a.round(parseFloat(Z)*255).toString(16)}function le(Z){return I(Z)/255}var ge=function(){var Z="[-\\+]?\\d+%?",ue="[-\\+]?\\d*\\.\\d+%?",V="(?:"+ue+")|(?:"+Z+")",Q="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",ae="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?";return{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+Q),rgba:new RegExp("rgba"+ae),hsl:new RegExp("hsl"+Q),hsla:new RegExp("hsla"+ae),hsv:new RegExp("hsv"+Q),hsva:new RegExp("hsva"+ae),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(Z){return!!ge.CSS_UNIT.exec(Z)}function ee(Z){Z=Z.replace(D,"").replace(O,"").toLowerCase();var ue=!1;if(fe[Z])Z=fe[Z],ue=!0;else if(Z=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var V;return(V=ge.rgb.exec(Z))?{r:V[1],g:V[2],b:V[3]}:(V=ge.rgba.exec(Z))?{r:V[1],g:V[2],b:V[3],a:V[4]}:(V=ge.hsl.exec(Z))?{h:V[1],s:V[2],l:V[3]}:(V=ge.hsla.exec(Z))?{h:V[1],s:V[2],l:V[3],a:V[4]}:(V=ge.hsv.exec(Z))?{h:V[1],s:V[2],v:V[3]}:(V=ge.hsva.exec(Z))?{h:V[1],s:V[2],v:V[3],a:V[4]}:(V=ge.hex8.exec(Z))?{r:I(V[1]),g:I(V[2]),b:I(V[3]),a:le(V[4]),format:ue?"name":"hex8"}:(V=ge.hex6.exec(Z))?{r:I(V[1]),g:I(V[2]),b:I(V[3]),format:ue?"name":"hex"}:(V=ge.hex4.exec(Z))?{r:I(V[1]+""+V[1]),g:I(V[2]+""+V[2]),b:I(V[3]+""+V[3]),a:le(V[4]+""+V[4]),format:ue?"name":"hex8"}:(V=ge.hex3.exec(Z))?{r:I(V[1]+""+V[1]),g:I(V[2]+""+V[2]),b:I(V[3]+""+V[3]),format:ue?"name":"hex"}:!1}function oe(Z){var ue,V;return Z=Z||{level:"AA",size:"small"},ue=(Z.level||"AA").toUpperCase(),V=(Z.size||"small").toLowerCase(),ue!=="AA"&&ue!=="AAA"&&(ue="AA"),V!=="small"&&V!=="large"&&(V="small"),{level:ue,size:V}}h.exports?h.exports=s:!(m=function(){return s}.call(F,o,F,h),m!==void 0&&(h.exports=m))})(Math)},bCnd:function(h,F,o){"use strict";o.d(F,"b",function(){return O}),o.d(F,"a",function(){return _});var m=o("je13"),a=o.n(m),D=!1;function O(y,v){var c=a.a.get("__ec");c||(c={}),c[y]=v,a.a.set("__ec",c)}function _(y,v){var c=a.a.get("__ec");return c?c[y]===void 0?v:c[y]:v}},bQjk:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("OLod"))})(this,function(m){return function(a){var D=m,O=D.lib,_=O.CipherParams,y=D.enc,v=y.Hex,c=D.format,l=c.Hex={stringify:function(s){return s.ciphertext.toString(v)},parse:function(s){var r=v.parse(s);return _.create({ciphertext:r})}}}(),m.format.Hex})},bT9E:function(h,F,o){"use strict";o.d(F,"a",function(){return a});var m=o("VTBJ");function a(D,O){var _=Object(m.a)({},D);return Array.isArray(O)&&O.forEach(function(y){delete _[y]}),_}},c5Ni:function(h,F,o){},cDPC:function(h,F,o){"use strict";var m=o("tJVT"),a=o("q1tI"),D=o.n(a),O=o("i3hx"),_=o.n(O);F.a=function(y){var v=y.defaultX,c=v===void 0?"40%":v,l=y.leftChild,s=y.rightChild,r=y.className,d=y.hideResize,u=d===void 0?!1:d,f=Object(a.useState)(c),x=Object(m.a)(f,2),C=x[0],b=x[1],g=Object(a.useRef)();function E(){g.current=!0}Object(a.useEffect)(function(){function M(Y){g.current&&b(Y.pageX)}function w(){g.current=!1}return window.addEventListener("mousemove",M),window.addEventListener("mouseup",w),function(){window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",w)}},[]);var A=typeof C=="number"&&C!==.01?"".concat(C,"px"):c,N="calc(100% - ".concat(u?"0px":"4px"," - ").concat(A,")");return D.a.createElement("div",{className:"split-panel-container ".concat(r)},D.a.createElement("section",{style:{width:A,display:C===.01?"none":""}},l),D.a.createElement("section",{className:"resize-x-bar",onMouseDown:E},D.a.createElement("a",{className:"btn-resize"},D.a.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},D.a.createElement("path",{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"})))),D.a.createElement("section",{style:{width:N}},s))}},cv67:function(h,F,o){(function(m,a){h.exports=F=a(o("Ib8C"))})(this,function(m){return function(a){var D=m,O=D.lib,_=O.WordArray,y=O.Hasher,v=D.algo,c=[];(function(){for(var f=0;f<64;f++)c[f]=a.abs(a.sin(f+1))*4294967296|0})();var l=v.MD5=y.extend({_doReset:function(){this._hash=new _.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(f,x){for(var C=0;C<16;C++){var b=x+C,g=f[b];f[b]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var E=this._hash.words,A=f[x+0],N=f[x+1],M=f[x+2],w=f[x+3],Y=f[x+4],X=f[x+5],P=f[x+6],H=f[x+7],G=f[x+8],$=f[x+9],he=f[x+10],de=f[x+11],J=f[x+12],fe=f[x+13],q=f[x+14],U=f[x+15],z=E[0],L=E[1],T=E[2],I=E[3];z=s(z,L,T,I,A,7,c[0]),I=s(I,z,L,T,N,12,c[1]),T=s(T,I,z,L,M,17,c[2]),L=s(L,T,I,z,w,22,c[3]),z=s(z,L,T,I,Y,7,c[4]),I=s(I,z,L,T,X,12,c[5]),T=s(T,I,z,L,P,17,c[6]),L=s(L,T,I,z,H,22,c[7]),z=s(z,L,T,I,G,7,c[8]),I=s(I,z,L,T,$,12,c[9]),T=s(T,I,z,L,he,17,c[10]),L=s(L,T,I,z,de,22,c[11]),z=s(z,L,T,I,J,7,c[12]),I=s(I,z,L,T,fe,12,c[13]),T=s(T,I,z,L,q,17,c[14]),L=s(L,T,I,z,U,22,c[15]),z=r(z,L,T,I,N,5,c[16]),I=r(I,z,L,T,P,9,c[17]),T=r(T,I,z,L,de,14,c[18]),L=r(L,T,I,z,A,20,c[19]),z=r(z,L,T,I,X,5,c[20]),I=r(I,z,L,T,he,9,c[21]),T=r(T,I,z,L,U,14,c[22]),L=r(L,T,I,z,Y,20,c[23]),z=r(z,L,T,I,$,5,c[24]),I=r(I,z,L,T,q,9,c[25]),T=r(T,I,z,L,w,14,c[26]),L=r(L,T,I,z,G,20,c[27]),z=r(z,L,T,I,fe,5,c[28]),I=r(I,z,L,T,M,9,c[29]),T=r(T,I,z,L,H,14,c[30]),L=r(L,T,I,z,J,20,c[31]),z=d(z,L,T,I,X,4,c[32]),I=d(I,z,L,T,G,11,c[33]),T=d(T,I,z,L,de,16,c[34]),L=d(L,T,I,z,q,23,c[35]),z=d(z,L,T,I,N,4,c[36]),I=d(I,z,L,T,Y,11,c[37]),T=d(T,I,z,L,H,16,c[38]),L=d(L,T,I,z,he,23,c[39]),z=d(z,L,T,I,fe,4,c[40]),I=d(I,z,L,T,A,11,c[41]),T=d(T,I,z,L,w,16,c[42]),L=d(L,T,I,z,P,23,c[43]),z=d(z,L,T,I,$,4,c[44]),I=d(I,z,L,T,J,11,c[45]),T=d(T,I,z,L,U,16,c[46]),L=d(L,T,I,z,M,23,c[47]),z=u(z,L,T,I,A,6,c[48]),I=u(I,z,L,T,H,10,c[49]),T=u(T,I,z,L,q,15,c[50]),L=u(L,T,I,z,X,21,c[51]),z=u(z,L,T,I,J,6,c[52]),I=u(I,z,L,T,w,10,c[53]),T=u(T,I,z,L,he,15,c[54]),L=u(L,T,I,z,N,21,c[55]),z=u(z,L,T,I,G,6,c[56]),I=u(I,z,L,T,U,10,c[57]),T=u(T,I,z,L,P,15,c[58]),L=u(L,T,I,z,fe,21,c[59]),z=u(z,L,T,I,Y,6,c[60]),I=u(I,z,L,T,de,10,c[61]),T=u(T,I,z,L,M,15,c[62]),L=u(L,T,I,z,$,21,c[63]),E[0]=E[0]+z|0,E[1]=E[1]+L|0,E[2]=E[2]+T|0,E[3]=E[3]+I|0},_doFinalize:function(){var f=this._data,x=f.words,C=this._nDataBytes*8,b=f.sigBytes*8;x[b>>>5]|=128<<24-b%32;var g=a.floor(C/4294967296),E=C;x[(b+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,x[(b+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,f.sigBytes=(x.length+1)*4,this._process();for(var A=this._hash,N=A.words,M=0;M<4;M++){var w=N[M];N[M]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}return A},clone:function(){var f=y.clone.call(this);return f._hash=this._hash.clone(),f}});function s(f,x,C,b,g,E,A){var N=f+(x&C|~x&b)+g+A;return(N<<E|N>>>32-E)+x}function r(f,x,C,b,g,E,A){var N=f+(x&b|C&~b)+g+A;return(N<<E|N>>>32-E)+x}function d(f,x,C,b,g,E,A){var N=f+(x^C^b)+g+A;return(N<<E|N>>>32-E)+x}function u(f,x,C,b,g,E,A){var N=f+(C^(x|~b))+g+A;return(N<<E|N>>>32-E)+x}D.MD5=y._createHelper(l),D.HmacMD5=y._createHmacHelper(l)}(Math),m.MD5})},dejd:function(h,F,o){},dmUQ:function(h,F,o){"use strict";var m=o("Ff2n"),a=o("rePB"),D=o("1OyB"),O=o("vuIU"),_=o("Ji7U"),y=o("md7G"),v=o("foSv"),c=o("q1tI"),l=o.n(c),s=o("TSYQ"),r=o.n(s),d=o("4IlW");function u(G,$){var he=Object.keys(G);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(G);$&&(de=de.filter(function(J){return Object.getOwnPropertyDescriptor(G,J).enumerable})),he.push.apply(he,de)}return he}function f(G){for(var $=1;$<arguments.length;$++){var he=arguments[$]!=null?arguments[$]:{};$%2?u(Object(he),!0).forEach(function(de){Object(a.a)(G,de,he[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(he)):u(Object(he)).forEach(function(de){Object.defineProperty(G,de,Object.getOwnPropertyDescriptor(he,de))})}return G}function x(G){var $=C();return function(){var de=Object(v.a)(G),J;if($){var fe=Object(v.a)(this).constructor;J=Reflect.construct(de,arguments,fe)}else J=de.apply(this,arguments);return Object(y.a)(this,J)}}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(G){return!1}}function b(){}function g(G){G.preventDefault()}var E=function($){return $.replace(/[^\w.-]+/g,"")},A=200,N=600,M=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,w=function($){return $!=null},Y=function($,he){return he===$||typeof he=="number"&&typeof $=="number"&&isNaN(he)&&isNaN($)},X=function(G){Object(_.a)(he,G);var $=x(he);function he(de){var J;Object(D.a)(this,he),J=$.call(this,de),J.onKeyDown=function(U){var z=J.props,L=z.onKeyDown,T=z.onPressEnter;if(U.keyCode===d.a.UP){var I=J.getRatio(U);J.up(U,I,null),J.stop()}else if(U.keyCode===d.a.DOWN){var se=J.getRatio(U);J.down(U,se,null),J.stop()}else U.keyCode===d.a.ENTER&&T&&T(U);if(J.recordCursorPosition(),J.lastKeyCode=U.keyCode,L){for(var me=arguments.length,xe=new Array(me>1?me-1:0),Ee=1;Ee<me;Ee++)xe[Ee-1]=arguments[Ee];L.apply(void 0,[U].concat(xe))}},J.onKeyUp=function(U){var z=J.props.onKeyUp;if(J.stop(),J.recordCursorPosition(),z){for(var L=arguments.length,T=new Array(L>1?L-1:0),I=1;I<L;I++)T[I-1]=arguments[I];z.apply(void 0,[U].concat(T))}},J.onChange=function(U){var z=J.props.onChange;J.state.focused&&(J.inputting=!0),J.rawInput=J.props.parser(J.getValueFromEvent(U)),J.setState({inputValue:J.rawInput}),z(J.toNumber(J.rawInput))},J.onMouseUp=function(){var U=J.props.onMouseUp;J.recordCursorPosition(),U&&U.apply(void 0,arguments)},J.onFocus=function(){var U;J.setState({focused:!0}),(U=J.props).onFocus.apply(U,arguments)},J.onBlur=function(){var U=J.props.onBlur;J.inputting=!1,J.setState({focused:!1});var z=J.getCurrentValidValue(J.state.inputValue),L=J.setValue(z,b);if(U){var T=J.input.value,I=J.getInputDisplayValue({focus:!1,value:L});J.input.value=I&&Number(I),U.apply(void 0,arguments),J.input.value=T}},J.getRatio=function(U){var z=1;return U.metaKey||U.ctrlKey?z=.1:U.shiftKey&&(z=10),z},J.getFullNum=function(U){return isNaN(U)?U:/e/i.test(String(U))?Number(U).toFixed(18).replace(/\.?0+$/,""):U},J.getPrecision=function(U){if(w(J.props.precision))return J.props.precision;var z=String(U);if(z.indexOf("e-")>=0)return parseInt(z.slice(z.indexOf("e-")+2),10);var L=0;return z.indexOf(".")>=0&&(L=z.length-z.indexOf(".")-1),L},J.getInputDisplayValue=function(U){var z=U||J.state,L=z.focused,T=z.inputValue,I=z.value,se;L?se=T:se=J.toPrecisionAsStep(I),se==null&&(se="");var me=J.formatWrapper(se);return w(J.props.decimalSeparator)&&(me=me.toString().replace(".",J.props.decimalSeparator)),me},J.recordCursorPosition=function(){try{J.cursorStart=J.input.selectionStart,J.cursorEnd=J.input.selectionEnd,J.currentValue=J.input.value,J.cursorBefore=J.input.value.substring(0,J.cursorStart),J.cursorAfter=J.input.value.substring(J.cursorEnd)}catch(U){}},J.restoreByAfter=function(U){if(U===void 0)return!1;var z=J.input.value,L=z.lastIndexOf(U);if(L===-1)return!1;var T=J.cursorBefore.length;return J.lastKeyCode===d.a.DELETE&&J.cursorBefore.charAt(T-1)===U[0]?(J.fixCaret(T,T),!0):L+U.length===z.length?(J.fixCaret(L,L),!0):!1},J.partRestoreByAfter=function(U){return U===void 0?!1:Array.prototype.some.call(U,function(z,L){var T=U.substring(L);return J.restoreByAfter(T)})},J.isNotCompleteNumber=function(U){return isNaN(U)||U===""||U===null||U&&U.toString().indexOf(".")===U.toString().length-1},J.stop=function(){J.autoStepTimer&&clearTimeout(J.autoStepTimer)},J.down=function(U,z,L){J.pressingUpOrDown=!0,J.step("down",U,z,L)},J.up=function(U,z,L){J.pressingUpOrDown=!0,J.step("up",U,z,L)},J.saveInput=function(U){J.input=U};var fe=de.value;fe===void 0&&(fe=de.defaultValue),J.state={focused:de.autoFocus};var q=J.getValidValue(J.toNumber(fe));return J.state=f(f({},J.state),{},{inputValue:J.toPrecisionAsStep(q),value:q}),J}return Object(O.a)(he,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(J){var fe=this.props,q=fe.value,U=fe.onChange,z=fe.max,L=fe.min,T=this.state.focused;if(J){if(!Y(J.value,q)||!Y(J.max,z)||!Y(J.min,L)){var I=T?q:this.getValidValue(q),se;this.pressingUpOrDown?se=I:this.inputting?se=this.rawInput:se=this.toPrecisionAsStep(I),this.setState({value:I,inputValue:se})}var me="value"in this.props?q:this.state.value;"max"in this.props&&J.max!==z&&typeof me=="number"&&me>z&&U&&U(z),"min"in this.props&&J.min!==L&&typeof me=="number"&&me<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 xe=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===d.a.BACKSPACE?xe=this.cursorStart-1:this.lastKeyCode===d.a.DELETE&&(xe=this.cursorStart):xe=this.input.value.length,this.fixCaret(xe,xe)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case d.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case d.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(J){var fe=J;return fe===""?fe="":this.isNotCompleteNumber(parseFloat(fe))?fe=this.state.value:fe=this.getValidValue(fe),this.toNumber(fe)}},{key:"getValueFromEvent",value:function(J){var fe=J.target.value.trim().replace(/。/g,".");return w(this.props.decimalSeparator)&&(fe=fe.replace(this.props.decimalSeparator,".")),fe}},{key:"getValidValue",value:function(J){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,U=parseFloat(J);return isNaN(U)?J:(U<fe&&(U=fe),U>q&&(U=q),U)}},{key:"setValue",value:function(J,fe){var q=this.props.precision,U=this.isNotCompleteNumber(parseFloat(J))?null:parseFloat(J),z=this.state.value,L=z===void 0?null:z,T=this.state.inputValue,I=T===void 0?null:T,se=typeof U=="number"?U.toFixed(q):"".concat(U),me=U!==L||se!=="".concat(I);return"value"in this.props?(I=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:I},fe)):this.setState({value:U,inputValue:this.toPrecisionAsStep(J)},fe),me&&this.props.onChange(U),U}},{key:"getMaxPrecision",value:function(J){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,q=this.props,U=q.precision,z=q.step;if(w(U))return U;var L=this.getPrecision(fe),T=this.getPrecision(z),I=this.getPrecision(J);return J?Math.max(I,L+T):L+T}},{key:"getPrecisionFactor",value:function(J){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,q=this.getMaxPrecision(J,fe);return Math.pow(10,q)}},{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(J){return this.props.formatter?this.props.formatter(J):J}},{key:"toPrecisionAsStep",value:function(J){if(this.isNotCompleteNumber(J)||J==="")return J;var fe=Math.abs(this.getMaxPrecision(J));return isNaN(fe)?J.toString():Number(J).toFixed(fe)}},{key:"toNumber",value:function(J){var fe=this.props.precision,q=this.state.focused,U=J&&J.length>16&&q;return this.isNotCompleteNumber(J)||U?J:w(fe)?Math.round(J*Math.pow(10,fe))/Math.pow(10,fe):Number(J)}},{key:"upStep",value:function(J,fe){var q=this.props.step,U=this.getPrecisionFactor(J,fe),z=Math.abs(this.getMaxPrecision(J,fe)),L=((U*J+U*q*fe)/U).toFixed(z);return this.toNumber(L)}},{key:"downStep",value:function(J,fe){var q=this.props.step,U=this.getPrecisionFactor(J,fe),z=Math.abs(this.getMaxPrecision(J,fe)),L=((U*J-U*q*fe)/U).toFixed(z);return this.toNumber(L)}},{key:"step",value:function(J,fe){var q=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,z=arguments.length>3?arguments[3]:void 0;this.stop(),fe&&(fe.persist(),fe.preventDefault());var L=this.props;if(L.disabled)return;var T=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(T))return;var I=this["".concat(J,"Step")](T,U),se=I>L.max||I<L.min;if(I>L.max?I=L.max:I<L.min&&(I=L.min),this.setValue(I,null),this.setState({focused:!0},function(){q.pressingUpOrDown=!1}),se)return;this.autoStepTimer=setTimeout(function(){q[J](fe,U,!0)},z?A:N)}},{key:"fixCaret",value:function(J,fe){if(J===void 0||fe===void 0||!this.input||!this.input.value)return;try{var q=this.input.selectionStart,U=this.input.selectionEnd;(J!==q||fe!==U)&&this.input.setSelectionRange(J,fe)}catch(z){}}},{key:"render",value:function(){var J,fe=this.props,q=fe.prefixCls,U=fe.disabled,z=fe.readOnly,L=fe.useTouch,T=fe.autoComplete,I=fe.upHandler,se=fe.downHandler,me=fe.className,xe=fe.max,Ee=fe.min,Oe=fe.style,le=fe.title,ge=fe.onMouseEnter,ye=fe.onMouseLeave,ee=fe.onMouseOver,oe=fe.onMouseOut,Z=fe.required,ue=fe.onClick,V=fe.tabIndex,Q=fe.type,ae=fe.placeholder,K=fe.id,j=fe.inputMode,k=fe.pattern,W=fe.step,we=fe.maxLength,be=fe.autoFocus,Te=fe.name,Be=fe.onPaste,Fe=fe.onInput,Ue=Object(m.a)(fe,["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"]),We=this.state,Ve=We.value,Ge=We.focused,Je=r()(q,(J={},Object(a.a)(J,me,!!me),Object(a.a)(J,"".concat(q,"-disabled"),U),Object(a.a)(J,"".concat(q,"-focused"),Ge),J)),Re={};Object.keys(Ue).forEach(function(Le){(Le.substr(0,5)==="data-"||Le.substr(0,5)==="aria-"||Le==="role")&&(Re[Le]=Ue[Le])});var Ze=!z&&!U,nt=this.getInputDisplayValue(null),Ke=(Ve||Ve===0)&&(isNaN(Ve)||Number(Ve)>=xe),$e=(Ve||Ve===0)&&(isNaN(Ve)||Number(Ve)<=Ee),je=Ke||U||z,Me=$e||U||z,Pe=r()("".concat(q,"-handler"),"".concat(q,"-handler-up"),Object(a.a)({},"".concat(q,"-handler-up-disabled"),je)),Se=r()("".concat(q,"-handler"),"".concat(q,"-handler-down"),Object(a.a)({},"".concat(q,"-handler-down-disabled"),Me)),_e=L?{onTouchStart:je?b:this.up,onTouchEnd:this.stop}:{onMouseDown:je?b:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},ke=L?{onTouchStart:Me?b:this.down,onTouchEnd:this.stop}:{onMouseDown:Me?b:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return l.a.createElement("div",{className:Je,style:Oe,title:le,onMouseEnter:ge,onMouseLeave:ye,onMouseOver:ee,onMouseOut:oe,onFocus:function(){return null},onBlur:function(){return null}},l.a.createElement("div",{className:"".concat(q,"-handler-wrap")},l.a.createElement("span",Object.assign({unselectable:"on"},_e,{role:"button","aria-label":"Increase Value","aria-disabled":je,className:Pe}),I||l.a.createElement("span",{unselectable:"on",className:"".concat(q,"-handler-up-inner"),onClick:g})),l.a.createElement("span",Object.assign({unselectable:"on"},ke,{role:"button","aria-label":"Decrease Value","aria-disabled":Me,className:Se}),se||l.a.createElement("span",{unselectable:"on",className:"".concat(q,"-handler-down-inner"),onClick:g}))),l.a.createElement("div",{className:"".concat(q,"-input-wrap")},l.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ee,"aria-valuemax":xe,"aria-valuenow":Ve,required:Z,type:Q,placeholder:ae,onPaste:Be,onClick:ue,onMouseUp:this.onMouseUp,className:"".concat(q,"-input"),tabIndex:V,autoComplete:T,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Ze?this.onKeyDown:b,onKeyUp:Ze?this.onKeyUp:b,autoFocus:be,maxLength:we,readOnly:z,disabled:U,max:xe,min:Ee,step:W,name:Te,title:le,id:K,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(nt),pattern:k,inputMode:j,onInput:Fe},Re))))}}]),he}(l.a.Component);X.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:M,min:-M,step:1,style:{},onChange:b,onKeyDown:b,onPressEnter:b,onFocus:b,onBlur:b,parser:E,required:!1,autoComplete:"off"};var P=X,H=F.a=P},e7zE:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("3y9D"),o("WYAk"))})(this,function(m){return function(){var a=m,D=a.lib,O=D.Base,_=D.WordArray,y=a.algo,v=y.SHA1,c=y.HMAC,l=y.PBKDF2=O.extend({cfg:O.extend({keySize:128/32,hasher:v,iterations:1}),init:function(s){this.cfg=this.cfg.extend(s)},compute:function(s,r){for(var d=this.cfg,u=c.create(d.hasher,s),f=_.create(),x=_.create([1]),C=f.words,b=x.words,g=d.keySize,E=d.iterations;C.length<g;){var A=u.update(r).finalize(x);u.reset();for(var N=A.words,M=N.length,w=A,Y=1;Y<E;Y++){w=u.finalize(w),u.reset();for(var X=w.words,P=0;P<M;P++)N[P]^=X[P]}f.concat(A),b[0]++}return f.sigBytes=g*4,f}});a.PBKDF2=function(s,r,d){return l.create(d).compute(s,r)}}(),m.PBKDF2})},fAei:function(h,F,o){"use strict";o.d(F,"a",function(){return A.a});var m=o("rePB"),a=o("VTBJ"),D=o("KQm4"),O=o("1OyB"),_=o("vuIU"),y=o("Ji7U"),v=o("LK+K"),c=o("q1tI"),l=o("4IlW"),s=o("Kwbf"),r=o("TSYQ"),d=o.n(r),u=o("sboe"),f=o("OZM5"),x=o("815F"),C=o("ODXe"),b=o("Ff2n"),g=o("+nKL"),E=o("8XRh"),A=o("WaYH"),N=function(Ee,Oe){var le=Ee.className,ge=Ee.style,ye=Ee.motion,ee=Ee.motionNodes,oe=Ee.motionType,Z=Ee.onMotionStart,ue=Ee.onMotionEnd,V=Ee.active,Q=Ee.treeNodeRequiredProps,ae=Object(b.a)(Ee,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),K=c.useState(!0),j=Object(C.a)(K,2),k=j[0],W=j[1],we=c.useContext(u.a),be=we.prefixCls,Te=c.useRef(!1),Be=function(){Te.current||ue(),Te.current=!0};return Object(c.useEffect)(function(){ee&&oe==="hide"&&k&&W(!1)},[ee]),Object(c.useEffect)(function(){return ee&&Z(),function(){ee&&Be()}},[]),ee?c.createElement(E.default,Object.assign({ref:Oe,visible:k},ye,{motionAppear:oe==="show",onAppearEnd:Be,onLeaveEnd:Be}),function(Fe,Ue){var We=Fe.className,Ve=Fe.style;return c.createElement("div",{ref:Ue,className:d()("".concat(be,"-treenode-motion"),We),style:Ve},ee.map(function(Ge){var Je=Ge.data,Re=Je.key,Ze=Object(b.a)(Je,["key"]),nt=Ge.isStart,Ke=Ge.isEnd;delete Ze.children;var $e=Object(x.f)(Re,Q);return c.createElement(A.a,Object.assign({},Ze,$e,{active:V,data:Ge.data,key:Re,isStart:nt,isEnd:Ke}))}))}):c.createElement(A.a,Object.assign({domRef:Oe,className:le,style:ge},ae,{active:V}))};N.displayName="MotionTreeNode";var M=c.forwardRef(N),w=M;function Y(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Oe=xe.length,le=Ee.length;if(Math.abs(Oe-le)!==1)return{add:!1,key:null};function ge(ye,ee){var oe=new Map;ye.forEach(function(ue){oe.set(ue,!0)});var Z=ee.filter(function(ue){return!oe.has(ue)});return Z.length===1?Z[0]:null}return Oe<le?{add:!0,key:ge(xe,Ee)}:{add:!1,key:ge(Ee,xe)}}function X(xe,Ee,Oe){var le=xe.findIndex(function(oe){var Z=oe.data;return Z.key===Oe}),ge=xe[le+1],ye=Ee.findIndex(function(oe){var Z=oe.data;return Z.key===Oe});if(ge){var ee=Ee.findIndex(function(oe){var Z=oe.data;return Z.key===ge.data.key});return Ee.slice(ye+1,ee)}return Ee.slice(ye+1)}var P={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},H=function(){},G="RC_TREE_MOTION_".concat(Math.random()),$={key:G},he={key:G,level:0,index:0,pos:"0",node:$},de={parent:null,children:[],pos:he.pos,data:$,isStart:[],isEnd:[]};function J(xe,Ee,Oe,le){return Ee===!1||!Oe?xe:xe.slice(0,Math.ceil(Oe/le)+1)}function fe(xe){var Ee=xe.data.key,Oe=xe.pos;return Object(x.e)(Ee,Oe)}function q(xe){for(var Ee=String(xe.data.key),Oe=xe;Oe.parent;)Oe=Oe.parent,Ee="".concat(Oe.data.key," > ").concat(Ee);return Ee}var U=function(Ee,Oe){var le=Ee.prefixCls,ge=Ee.data,ye=Ee.selectable,ee=Ee.checkable,oe=Ee.expandedKeys,Z=Ee.selectedKeys,ue=Ee.checkedKeys,V=Ee.loadedKeys,Q=Ee.loadingKeys,ae=Ee.halfCheckedKeys,K=Ee.keyEntities,j=Ee.disabled,k=Ee.dragging,W=Ee.dragOverNodeKey,we=Ee.dropPosition,be=Ee.motion,Te=Ee.height,Be=Ee.itemHeight,Fe=Ee.virtual,Ue=Ee.focusable,We=Ee.activeItem,Ve=Ee.focused,Ge=Ee.tabIndex,Je=Ee.onKeyDown,Re=Ee.onFocus,Ze=Ee.onBlur,nt=Ee.onActiveChange,Ke=Ee.onListChangeStart,$e=Ee.onListChangeEnd,je=Object(b.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"]),Me=c.useRef(null);c.useImperativeHandle(Oe,function(){return{scrollTo:function(_t){Me.current.scrollTo(_t)}}});var Pe=c.useState(oe),Se=Object(C.a)(Pe,2),_e=Se[0],ke=Se[1],Le=c.useState(ge),Xe=Object(C.a)(Le,2),Ae=Xe[0],Ye=Xe[1],it=c.useState(ge),lt=Object(C.a)(it,2),dt=lt[0],ut=lt[1],xt=c.useState([]),ht=Object(C.a)(xt,2),Rt=ht[0],Xt=ht[1],er=c.useState(null),Qt=Object(C.a)(er,2),Ut=Qt[0],Gt=Qt[1];function Nr(){Ye(ge),ut(ge),Xt([]),Gt(null),$e()}c.useEffect(function(){ke(oe);var st=Y(_e,oe);if(st.key!==null)if(st.add){var _t=Ae.findIndex(function(Yt){var gr=Yt.data.key;return gr===st.key}),Vt=J(X(Ae,ge,st.key),Fe,Te,Be),tr=Ae.slice();tr.splice(_t+1,0,de),ut(tr),Xt(Vt),Gt("show")}else{var sr=ge.findIndex(function(Yt){var gr=Yt.data.key;return gr===st.key}),Bt=J(X(ge,Ae,st.key),Fe,Te,Be),ft=ge.slice();ft.splice(sr+1,0,de),ut(ft),Xt(Bt),Gt("hide")}else Ae!==ge&&(Ye(ge),ut(ge))},[oe,ge]),c.useEffect(function(){k||Nr()},[k]);var At=be?dt:ge,Dt={expandedKeys:oe,selectedKeys:Z,loadedKeys:V,loadingKeys:Q,checkedKeys:ue,halfCheckedKeys:ae,dragOverNodeKey:W,dropPosition:we,keyEntities:K};return c.createElement(c.Fragment,null,Ve&&We&&c.createElement("span",{style:P,"aria-live":"assertive"},q(We)),c.createElement("div",{role:"tree"},c.createElement("input",{style:P,disabled:Ue===!1||j,tabIndex:Ue!==!1?Ge:null,onKeyDown:Je,onFocus:Re,onBlur:Ze,value:"",onChange:H})),c.createElement(g.a,Object.assign({},je,{data:At,itemKey:fe,height:Te,fullHeight:!1,virtual:Fe,itemHeight:Be,prefixCls:"".concat(le,"-list"),ref:Me}),function(st){var _t=st.pos,Vt=st.data,tr=Vt.key,sr=Object(b.a)(Vt,["key"]),Bt=st.isStart,ft=st.isEnd,Yt=Object(x.e)(tr,_t);delete sr.children;var gr=Object(x.f)(Yt,Dt);return c.createElement(w,Object.assign({},sr,gr,{active:We&&tr===We.data.key,pos:_t,data:st.data,isStart:Bt,isEnd:ft,motion:be,motionNodes:tr===G?Rt:null,motionType:Ut,onMotionStart:Ke,onMotionEnd:Nr,treeNodeRequiredProps:Dt,onMouseMove:function(){nt(null)}}))}))},z=c.forwardRef(U);z.displayName="NodeList";var L=z,T=o("NvD2"),I=function(xe){Object(y.a)(Oe,xe);var Ee=Object(v.a)(Oe);function Oe(){var le;return Object(O.a)(this,Oe),le=Ee.apply(this,arguments),le.destroyed=!1,le.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},le.listRef=c.createRef(),le.onNodeDragStart=function(ge,ye){var ee=le.state,oe=ee.expandedKeys,Z=ee.keyEntities,ue=le.props.onDragStart,V=ye.props.eventKey;le.dragNode=ye;var Q=Object(f.b)(oe,V);le.setState({dragging:!0,dragNodesKeys:Object(f.g)(V,Z)}),le.setExpandedKeys(Q),ue&&ue({event:ge,node:Object(x.b)(ye.props)})},le.onNodeDragEnter=function(ge,ye){var ee=le.state,oe=ee.expandedKeys,Z=ee.keyEntities,ue=ee.dragNodesKeys,V=le.props.onDragEnter,Q=ye.props,ae=Q.pos,K=Q.eventKey;if(!le.dragNode||ue.indexOf(K)!==-1)return;var j=Object(f.c)(ge,ye);if(le.dragNode.props.eventKey===K&&j===0){le.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){le.setState({dragOverNodeKey:K,dropPosition:j}),le.delayedDragEnterLogic||(le.delayedDragEnterLogic={}),Object.keys(le.delayedDragEnterLogic).forEach(function(k){clearTimeout(le.delayedDragEnterLogic[k])}),le.delayedDragEnterLogic[ae]=window.setTimeout(function(){if(!le.state.dragging)return;var k=Object(D.a)(oe),W=Z[K];W&&(W.children||[]).length&&(k=Object(f.a)(oe,K)),"expandedKeys"in le.props||le.setExpandedKeys(k),V&&V({event:ge,node:Object(x.b)(ye.props),expandedKeys:k})},400)},0)},le.onNodeDragOver=function(ge,ye){var ee=le.state.dragNodesKeys,oe=le.props.onDragOver,Z=ye.props.eventKey;if(ee.indexOf(Z)!==-1)return;if(le.dragNode&&Z===le.state.dragOverNodeKey){var ue=Object(f.c)(ge,ye);if(ue===le.state.dropPosition)return;le.setState({dropPosition:ue})}oe&&oe({event:ge,node:Object(x.b)(ye.props)})},le.onNodeDragLeave=function(ge,ye){var ee=le.props.onDragLeave;le.setState({dragOverNodeKey:""}),ee&&ee({event:ge,node:Object(x.b)(ye.props)})},le.onNodeDragEnd=function(ge,ye){var ee=le.props.onDragEnd;le.setState({dragOverNodeKey:""}),le.cleanDragState(),ee&&ee({event:ge,node:Object(x.b)(ye.props)}),le.dragNode=null},le.onNodeDrop=function(ge,ye){var ee=le.state,oe=ee.dragNodesKeys,Z=oe===void 0?[]:oe,ue=ee.dropPosition,V=le.props.onDrop,Q=ye.props,ae=Q.eventKey,K=Q.pos;if(le.setState({dragOverNodeKey:""}),le.cleanDragState(),Z.indexOf(ae)!==-1){Object(s.a)(!1,"Can not drop to dragNode(include it's children node)");return}var j=Object(f.k)(K),k={event:ge,node:Object(x.b)(ye.props),dragNode:le.dragNode?Object(x.b)(le.dragNode.props):null,dragNodesKeys:Z.slice(),dropPosition:ue+Number(j[j.length-1]),dropToGap:!1};ue!==0&&(k.dropToGap=!0),V&&V(k),le.dragNode=null},le.cleanDragState=function(){var ge=le.state.dragging;ge&&le.setState({dragging:!1})},le.onNodeClick=function(ge,ye){var ee=le.props.onClick;ee&&ee(ge,ye)},le.onNodeDoubleClick=function(ge,ye){var ee=le.props.onDoubleClick;ee&&ee(ge,ye)},le.onNodeSelect=function(ge,ye){var ee=le.state.selectedKeys,oe=le.state.keyEntities,Z=le.props,ue=Z.onSelect,V=Z.multiple,Q=ye.selected,ae=ye.key,K=!Q;K?V?ee=Object(f.a)(ee,ae):ee=[ae]:ee=Object(f.b)(ee,ae);var j=ee.map(function(k){var W=oe[k];return W?W.node:null}).filter(function(k){return k});le.setUncontrolledState({selectedKeys:ee}),ue&&ue(ee,{event:"select",selected:K,node:ye,selectedNodes:j,nativeEvent:ge.nativeEvent})},le.onNodeCheck=function(ge,ye,ee){var oe=le.state,Z=oe.keyEntities,ue=oe.checkedKeys,V=oe.halfCheckedKeys,Q=le.props,ae=Q.checkStrictly,K=Q.onCheck,j=ye.key,k,W={event:"check",node:ye,checked:ee,nativeEvent:ge.nativeEvent};if(ae){var we=ee?Object(f.a)(ue,j):Object(f.b)(ue,j),be=Object(f.b)(V,j);k={checked:we,halfChecked:be},W.checkedNodes=we.map(function(Ve){return Z[Ve]}).filter(function(Ve){return Ve}).map(function(Ve){return Ve.node}),le.setUncontrolledState({checkedKeys:we})}else{var Te=Object(T.a)([].concat(Object(D.a)(ue),[j]),!0,Z),Be=Te.checkedKeys,Fe=Te.halfCheckedKeys;if(!ee){var Ue=new Set(Be);Ue.delete(j);var We=Object(T.a)(Array.from(Ue),{checked:!1,halfCheckedKeys:Fe},Z);Be=We.checkedKeys,Fe=We.halfCheckedKeys}k=Be,W.checkedNodes=[],W.checkedNodesPositions=[],W.halfCheckedKeys=Fe,Be.forEach(function(Ve){var Ge=Z[Ve];if(!Ge)return;var Je=Ge.node,Re=Ge.pos;W.checkedNodes.push(Je),W.checkedNodesPositions.push({node:Je,pos:Re})}),le.setUncontrolledState({checkedKeys:Be},!1,{halfCheckedKeys:Fe})}K&&K(k,W)},le.onNodeLoad=function(ge){return new Promise(function(ye){le.setState(function(ee){var oe=ee.loadedKeys,Z=oe===void 0?[]:oe,ue=ee.loadingKeys,V=ue===void 0?[]:ue,Q=le.props,ae=Q.loadData,K=Q.onLoad,j=ge.key;if(!ae||Z.indexOf(j)!==-1||V.indexOf(j)!==-1)return{};var k=ae(ge);return k.then(function(){var W=le.state,we=W.loadedKeys,be=W.loadingKeys,Te=Object(f.a)(we,j),Be=Object(f.b)(be,j);K&&K(Te,{event:"load",node:ge}),le.setUncontrolledState({loadedKeys:Te}),le.setState({loadingKeys:Be}),ye()}),{loadingKeys:Object(f.a)(V,j)}})})},le.onNodeMouseEnter=function(ge,ye){var ee=le.props.onMouseEnter;ee&&ee({event:ge,node:ye})},le.onNodeMouseLeave=function(ge,ye){var ee=le.props.onMouseLeave;ee&&ee({event:ge,node:ye})},le.onNodeContextMenu=function(ge,ye){var ee=le.props.onRightClick;ee&&(ge.preventDefault(),ee({event:ge,node:ye}))},le.onFocus=function(){var ge=le.props.onFocus;le.setState({focused:!0}),ge&&ge.apply(void 0,arguments)},le.onBlur=function(){var ge=le.props.onBlur;le.setState({focused:!1}),le.onActiveChange(null),ge&&ge.apply(void 0,arguments)},le.getTreeNodeRequiredProps=function(){var ge=le.state,ye=ge.expandedKeys,ee=ge.selectedKeys,oe=ge.loadedKeys,Z=ge.loadingKeys,ue=ge.checkedKeys,V=ge.halfCheckedKeys,Q=ge.dragOverNodeKey,ae=ge.dropPosition,K=ge.keyEntities;return{expandedKeys:ye||[],selectedKeys:ee||[],loadedKeys:oe||[],loadingKeys:Z||[],checkedKeys:ue||[],halfCheckedKeys:V||[],dragOverNodeKey:Q,dropPosition:ae,keyEntities:K}},le.setExpandedKeys=function(ge){var ye=le.state.treeData,ee=Object(x.d)(ye,ge);le.setUncontrolledState({expandedKeys:ge,flattenNodes:ee},!0)},le.onNodeExpand=function(ge,ye){var ee=le.state.expandedKeys,oe=le.state.listChanging,Z=le.props,ue=Z.onExpand,V=Z.loadData,Q=ye.key,ae=ye.expanded;if(oe)return;var K=ee.indexOf(Q),j=!ae;if(Object(s.a)(ae&&K!==-1||!ae&&K===-1,"Expand state not sync with index check"),j?ee=Object(f.a)(ee,Q):ee=Object(f.b)(ee,Q),le.setExpandedKeys(ee),ue&&ue(ee,{node:ye,expanded:j,nativeEvent:ge.nativeEvent}),j&&V){var k=le.onNodeLoad(ye);k&&k.then(function(){var W=Object(x.d)(le.state.treeData,ee);le.setUncontrolledState({flattenNodes:W})})}},le.onListChangeStart=function(){le.setUncontrolledState({listChanging:!0})},le.onListChangeEnd=function(){setTimeout(function(){le.setUncontrolledState({listChanging:!1})})},le.onActiveChange=function(ge){var ye=le.state.activeKey,ee=le.props.onActiveChange;if(ye===ge)return;le.setState({activeKey:ge}),ge!==null&&le.scrollTo({key:ge}),ee&&ee(ge)},le.getActiveItem=function(){var ge=le.state,ye=ge.activeKey,ee=ge.flattenNodes;return ye===null?null:ee.find(function(oe){var Z=oe.data.key;return Z===ye})||null},le.offsetActiveKey=function(ge){var ye=le.state,ee=ye.flattenNodes,oe=ye.activeKey,Z=ee.findIndex(function(Q){var ae=Q.data.key;return ae===oe});Z===-1&&ge<0&&(Z=ee.length),Z=(Z+ge+ee.length)%ee.length;var ue=ee[Z];if(ue){var V=ue.data.key;le.onActiveChange(V)}else le.onActiveChange(null)},le.onKeyDown=function(ge){var ye=le.state,ee=ye.activeKey,oe=ye.expandedKeys,Z=ye.checkedKeys,ue=le.props,V=ue.onKeyDown,Q=ue.checkable,ae=ue.selectable;switch(ge.which){case l.a.UP:{le.offsetActiveKey(-1),ge.preventDefault();break}case l.a.DOWN:{le.offsetActiveKey(1),ge.preventDefault();break}}var K=le.getActiveItem();if(K&&K.data){var j=le.getTreeNodeRequiredProps(),k=K.data.isLeaf===!1||!!(K.data.children||[]).length,W=Object(x.b)(Object(a.a)(Object(a.a)({},Object(x.f)(ee,j)),{},{data:K.data,active:!0}));switch(ge.which){case l.a.LEFT:{k&&oe.includes(ee)?le.onNodeExpand({},W):K.parent&&le.onActiveChange(K.parent.data.key),ge.preventDefault();break}case l.a.RIGHT:{k&&!oe.includes(ee)?le.onNodeExpand({},W):K.children&&K.children.length&&le.onActiveChange(K.children[0].data.key),ge.preventDefault();break}case l.a.ENTER:case l.a.SPACE:{Q&&!W.disabled&&W.checkable!==!1&&!W.disableCheckbox?le.onNodeCheck({},W,!Z.includes(ee)):!Q&&ae&&!W.disabled&&W.selectable!==!1&&le.onNodeSelect({},W);break}}}V&&V(ge)},le.setUncontrolledState=function(ge){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(le.destroyed)return;var oe=!1,Z=!0,ue={};Object.keys(ge).forEach(function(V){if(V in le.props){Z=!1;return}oe=!0,ue[V]=ge[V]}),oe&&(!ye||Z)&&le.setState(Object(a.a)(Object(a.a)({},ue),ee))},le.scrollTo=function(ge){le.listRef.current.scrollTo(ge)},le}return Object(_.a)(Oe,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var ge,ye=this.state,ee=ye.focused,oe=ye.flattenNodes,Z=ye.keyEntities,ue=ye.dragging,V=ye.activeKey,Q=this.props,ae=Q.prefixCls,K=Q.className,j=Q.style,k=Q.showLine,W=Q.focusable,we=Q.tabIndex,be=we===void 0?0:we,Te=Q.selectable,Be=Q.showIcon,Fe=Q.icon,Ue=Q.switcherIcon,We=Q.draggable,Ve=Q.checkable,Ge=Q.checkStrictly,Je=Q.disabled,Re=Q.motion,Ze=Q.loadData,nt=Q.filterTreeNode,Ke=Q.height,$e=Q.itemHeight,je=Q.virtual,Me=Q.titleRender,Pe=Q.onContextMenu,Se=Object(f.f)(this.props);return c.createElement(u.a.Provider,{value:{prefixCls:ae,selectable:Te,showIcon:Be,icon:Fe,switcherIcon:Ue,draggable:We,checkable:Ve,checkStrictly:Ge,disabled:Je,keyEntities:Z,loadData:Ze,filterTreeNode:nt,titleRender:Me,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}},c.createElement("div",{className:d()(ae,K,(ge={},Object(m.a)(ge,"".concat(ae,"-show-line"),k),Object(m.a)(ge,"".concat(ae,"-focused"),ee),Object(m.a)(ge,"".concat(ae,"-active-focused"),V!==null),ge))},c.createElement(L,Object.assign({ref:this.listRef,prefixCls:ae,style:j,data:oe,disabled:Je,selectable:Te,checkable:!!Ve,motion:Re,dragging:ue,height:Ke,itemHeight:$e,virtual:je,focusable:W,focused:ee,tabIndex:be,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Pe},this.getTreeNodeRequiredProps(),Se))))}}],[{key:"getDerivedStateFromProps",value:function(ge,ye){var ee=ye.prevProps,oe={prevProps:ge};function Z(Fe){return!ee&&Fe in ge||ee&&ee[Fe]!==ge[Fe]}var ue;if(Z("treeData")?ue=ge.treeData:Z("children")&&(Object(s.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ue=Object(x.c)(ge.children)),ue){oe.treeData=ue;var V=Object(x.a)(ue);oe.keyEntities=Object(a.a)(Object(m.a)({},G,he),V.keyEntities)}var Q=oe.keyEntities||ye.keyEntities;if(Z("expandedKeys")||ee&&Z("autoExpandParent"))oe.expandedKeys=ge.autoExpandParent||!ee&&ge.defaultExpandParent?Object(f.e)(ge.expandedKeys,Q):ge.expandedKeys;else if(!ee&&ge.defaultExpandAll){var ae=Object(a.a)({},Q);delete ae[G],oe.expandedKeys=Object.keys(ae).map(function(Fe){return ae[Fe].key})}else!ee&&ge.defaultExpandedKeys&&(oe.expandedKeys=ge.autoExpandParent||ge.defaultExpandParent?Object(f.e)(ge.defaultExpandedKeys,Q):ge.defaultExpandedKeys);if(oe.expandedKeys||delete oe.expandedKeys,ue||oe.expandedKeys){var K=Object(x.d)(ue||ye.treeData,oe.expandedKeys||ye.expandedKeys);oe.flattenNodes=K}if(ge.selectable&&(Z("selectedKeys")?oe.selectedKeys=Object(f.d)(ge.selectedKeys,ge):!ee&&ge.defaultSelectedKeys&&(oe.selectedKeys=Object(f.d)(ge.defaultSelectedKeys,ge))),ge.checkable){var j;if(Z("checkedKeys")?j=Object(f.j)(ge.checkedKeys)||{}:!ee&&ge.defaultCheckedKeys?j=Object(f.j)(ge.defaultCheckedKeys)||{}:ue&&(j=Object(f.j)(ge.checkedKeys)||{checkedKeys:ye.checkedKeys,halfCheckedKeys:ye.halfCheckedKeys}),j){var k=j,W=k.checkedKeys,we=W===void 0?[]:W,be=k.halfCheckedKeys,Te=be===void 0?[]:be;if(!ge.checkStrictly){var Be=Object(T.a)(we,!0,Q);we=Be.checkedKeys,Te=Be.halfCheckedKeys}oe.checkedKeys=we,oe.halfCheckedKeys=Te}}return Z("loadedKeys")&&(oe.loadedKeys=ge.loadedKeys),oe}}]),Oe}(c.Component);I.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:[]},I.TreeNode=A.a;var se=I,me=F.b=se},fcSX:function(h,F,o){"use strict";var m=o("Ff2n"),a=o("1OyB"),D=o("vuIU"),O=o("Ji7U"),_=o("md7G"),y=o("foSv"),v=o("1W/9"),c=o("q1tI"),l=o("rePB"),s=o("JX7q"),r=o("TSYQ"),d=o.n(r),u=o("qx4F"),f=o("4IlW");function x(U){return Array.isArray(U)?U:[U]}var C={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},b=Object.keys(C).filter(function(U){if(typeof document=="undefined")return!1;var z=document.getElementsByTagName("html")[0];return U in(z?z.style:{})})[0],g=C[b];function E(U,z,L,T){U.addEventListener?U.addEventListener(z,L,T):U.attachEvent&&U.attachEvent("on".concat(z),L)}function A(U,z,L,T){U.removeEventListener?U.removeEventListener(z,L,T):U.attachEvent&&U.detachEvent("on".concat(z),L)}function N(U,z){var L=typeof U=="function"?U(z):U;return Array.isArray(L)?L.length===2?L:[L[0],L[1]]:[L]}var M=function(z){return!isNaN(parseFloat(z))&&isFinite(z)},w=!(typeof window!="undefined"&&window.document&&window.document.createElement),Y=function U(z,L,T,I){if(!L||L===document||L instanceof Document)return!1;if(L===z.parentNode)return!0;var se=Math.max(Math.abs(T),Math.abs(I))===Math.abs(I),me=Math.max(Math.abs(T),Math.abs(I))===Math.abs(T),xe=L.scrollHeight-L.clientHeight,Ee=L.scrollWidth-L.clientWidth,Oe=document.defaultView.getComputedStyle(L),le=Oe.overflowY==="auto"||Oe.overflowY==="scroll",ge=Oe.overflowX==="auto"||Oe.overflowX==="scroll",ye=xe&&le,ee=Ee&≥return se&&(!ye||ye&&(L.scrollTop>=xe&&I<0||L.scrollTop<=0&&I>0))||me&&(!ee||ee&&(L.scrollLeft>=Ee&&T<0||L.scrollLeft<=0&&T>0))?U(z,L.parentNode,T,I):!1};function X(U){var z=P();return function(){var T=Object(y.a)(U),I;if(z){var se=Object(y.a)(this).constructor;I=Reflect.construct(T,arguments,se)}else I=T.apply(this,arguments);return Object(_.a)(this,I)}}function P(){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={},G=function(U){Object(O.a)(L,U);var z=X(L);function L(T){var I;return Object(a.a)(this,L),I=z.call(this,T),I.domFocus=function(){I.dom&&I.dom.focus()},I.removeStartHandler=function(se){if(se.touches.length>1)return;I.startPos={x:se.touches[0].clientX,y:se.touches[0].clientY}},I.removeMoveHandler=function(se){if(se.changedTouches.length>1)return;var me=se.currentTarget,xe=se.changedTouches[0].clientX-I.startPos.x,Ee=se.changedTouches[0].clientY-I.startPos.y;(me===I.maskDom||me===I.handlerDom||me===I.contentDom&&Y(me,se.target,xe,Ee))&&se.cancelable&&se.preventDefault()},I.transitionEnd=function(se){var me=se.target;A(me,g,I.transitionEnd),me.style.transition=""},I.onKeyDown=function(se){if(se.keyCode===f.a.ESC){var me=I.props.onClose;se.stopPropagation(),me&&me(se)}},I.onWrapperTransitionEnd=function(se){var me=I.props,xe=me.open,Ee=me.afterVisibleChange;se.target===I.contentWrapper&&se.propertyName.match(/transform$/)&&(I.dom.style.transition="",!xe&&I.getCurrentDrawerSome()&&(document.body.style.overflowX="",I.maskDom&&(I.maskDom.style.left="",I.maskDom.style.width="")),Ee&&Ee(!!xe))},I.openLevelTransition=function(){var se=I.props,me=se.open,xe=se.width,Ee=se.height,Oe=I.getHorizontalBoolAndPlacementName(),le=Oe.isHorizontal,ge=Oe.placementName,ye=I.contentDom?I.contentDom.getBoundingClientRect()[le?"width":"height"]:0,ee=(le?xe:Ee)||ye;I.setLevelAndScrolling(me,ge,ee)},I.setLevelTransform=function(se,me,xe,Ee){var Oe=I.props,le=Oe.placement,ge=Oe.levelMove,ye=Oe.duration,ee=Oe.ease,oe=Oe.showMask;I.levelDom.forEach(function(Z){Z.style.transition="transform ".concat(ye," ").concat(ee),E(Z,g,I.transitionEnd);var ue=se?xe:0;if(ge){var V=N(ge,{target:Z,open:se});ue=se?V[0]:V[1]||0}var Q=typeof ue=="number"?"".concat(ue,"px"):ue,ae=le==="left"||le==="top"?Q:"-".concat(Q);ae=oe&&le==="right"&&Ee?"calc(".concat(ae," + ").concat(Ee,"px)"):ae,Z.style.transform=ue?"".concat(me,"(").concat(ae,")"):""})},I.setLevelAndScrolling=function(se,me,xe){var Ee=I.props.onChange;if(!w){var Oe=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(u.a)(!0):0;I.setLevelTransform(se,me,xe,Oe),I.toggleScrollingToDrawerAndBody(Oe)}Ee&&Ee(se)},I.toggleScrollingToDrawerAndBody=function(se){var me=I.props,xe=me.getOpenCount,Ee=me.getContainer,Oe=me.showMask,le=me.open,ge=Ee&&Ee(),ye=xe&&xe();if(ge&&ge.parentNode===document.body&&Oe){var ee=["touchstart"],oe=[document.body,I.maskDom,I.handlerDom,I.contentDom];le&&document.body.style.overflow!=="hidden"?(se&&I.addScrollingEffect(se),ye===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",oe.forEach(function(Z,ue){if(!Z)return;E(Z,ee[ue]||"touchmove",ue?I.removeMoveHandler:I.removeStartHandler,I.passive)})):I.getCurrentDrawerSome()&&(ye||(document.body.style.overflow=""),document.body.style.touchAction="",se&&I.remScrollingEffect(se),oe.forEach(function(Z,ue){if(!Z)return;A(Z,ee[ue]||"touchmove",ue?I.removeMoveHandler:I.removeStartHandler,I.passive)}))}},I.addScrollingEffect=function(se){var me=I.props,xe=me.placement,Ee=me.duration,Oe=me.ease,le=me.getOpenCount,ge=me.switchScrollingEffect,ye=le&&le();ye===1&&ge();var ee="width ".concat(Ee," ").concat(Oe),oe="transform ".concat(Ee," ").concat(Oe);I.dom.style.transition="none";switch(xe){case"right":I.dom.style.transform="translateX(-".concat(se,"px)");break;case"top":case"bottom":I.dom.style.width="calc(100% - ".concat(se,"px)"),I.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(I.timeout),I.timeout=setTimeout(function(){I.dom&&(I.dom.style.transition="".concat(oe,",").concat(ee),I.dom.style.width="",I.dom.style.transform="")})},I.remScrollingEffect=function(se){var me=I.props,xe=me.placement,Ee=me.duration,Oe=me.ease,le=me.getOpenCount,ge=me.switchScrollingEffect,ye=le&&le();ye||ge(!0),b&&(document.body.style.overflowX="hidden"),I.dom.style.transition="none";var ee,oe="width ".concat(Ee," ").concat(Oe),Z="transform ".concat(Ee," ").concat(Oe);switch(xe){case"left":{I.dom.style.width="100%",oe="width 0s ".concat(Oe," ").concat(Ee);break}case"right":{I.dom.style.transform="translateX(".concat(se,"px)"),I.dom.style.width="100%",oe="width 0s ".concat(Oe," ").concat(Ee),I.maskDom&&(I.maskDom.style.left="-".concat(se,"px"),I.maskDom.style.width="calc(100% + ".concat(se,"px)"));break}case"top":case"bottom":{I.dom.style.width="calc(100% + ".concat(se,"px)"),I.dom.style.height="100%",I.dom.style.transform="translateZ(0)",ee="height 0s ".concat(Oe," ").concat(Ee);break}default:break}clearTimeout(I.timeout),I.timeout=setTimeout(function(){I.dom&&(I.dom.style.transition="".concat(Z,",").concat(ee?"".concat(ee,","):"").concat(oe),I.dom.style.transform="",I.dom.style.width="",I.dom.style.height="")})},I.getCurrentDrawerSome=function(){return!Object.keys(H).some(function(se){return H[se]})},I.getLevelDom=function(se){var me=se.level,xe=se.getContainer;if(w)return;var Ee=xe&&xe(),Oe=Ee?Ee.parentNode:null;if(I.levelDom=[],me==="all"){var le=Oe?Array.prototype.slice.call(Oe.children):[];le.forEach(function(ge){ge.nodeName!=="SCRIPT"&&ge.nodeName!=="STYLE"&&ge.nodeName!=="LINK"&&ge!==Ee&&I.levelDom.push(ge)})}else me&&x(me).forEach(function(ge){document.querySelectorAll(ge).forEach(function(ye){I.levelDom.push(ye)})})},I.getHorizontalBoolAndPlacementName=function(){var se=I.props.placement,me=se==="left"||se==="right",xe="translate".concat(me?"X":"Y");return{isHorizontal:me,placementName:xe}},I.state={_self:Object(s.a)(I)},I}return Object(D.a)(L,[{key:"componentDidMount",value:function(){var I=this;if(!w){var se=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return se=!0,null}}))}catch(le){}this.passive=se?{passive:!1}:!1}var me=this.props,xe=me.open,Ee=me.getContainer,Oe=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),xe&&(Oe&&Oe.parentNode===document.body&&(H[this.drawerId]=xe),this.openLevelTransition(),this.forceUpdate(function(){I.domFocus()}))}},{key:"componentDidUpdate",value:function(I){var se=this.props,me=se.open,xe=se.getContainer,Ee=xe&&xe();me!==I.open&&(me&&this.domFocus(),Ee&&Ee.parentNode===document.body&&(H[this.drawerId]=!!me),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var I=this.props,se=I.getOpenCount,me=I.open,xe=I.switchScrollingEffect,Ee=typeof se=="function"&&se();delete H[this.drawerId],me&&(this.setLevelTransform(!1),document.body.style.touchAction=""),Ee||(document.body.style.overflow="",xe(!0))}},{key:"render",value:function(){var I,se=this,me=this.props,xe=me.className,Ee=me.children,Oe=me.style,le=me.width,ge=me.height,ye=me.defaultOpen,ee=me.open,oe=me.prefixCls,Z=me.placement,ue=me.level,V=me.levelMove,Q=me.ease,ae=me.duration,K=me.getContainer,j=me.handler,k=me.onChange,W=me.afterVisibleChange,we=me.showMask,be=me.maskClosable,Te=me.maskStyle,Be=me.onClose,Fe=me.onHandleClick,Ue=me.keyboard,We=me.getOpenCount,Ve=me.switchScrollingEffect,Ge=Object(m.a)(me,["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"]),Je=this.dom?ee:!1,Re=d()(oe,(I={},Object(l.a)(I,"".concat(oe,"-").concat(Z),!0),Object(l.a)(I,"".concat(oe,"-open"),Je),Object(l.a)(I,xe||"",!!xe),Object(l.a)(I,"no-mask",!we),I)),Ze=this.getHorizontalBoolAndPlacementName(),nt=Ze.placementName,Ke=Z==="left"||Z==="top"?"-100%":"100%",$e=Je?"":"".concat(nt,"(").concat(Ke,")"),je=j&&c.cloneElement(j,{onClick:function(Pe){j.props.onClick&&j.props.onClick(),Fe&&Fe(Pe)},ref:function(Pe){se.handlerDom=Pe}});return c.createElement("div",Object.assign({},Ge,{tabIndex:-1,className:Re,style:Oe,ref:function(Pe){se.dom=Pe},onKeyDown:Je&&Ue?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),we&&c.createElement("div",{className:"".concat(oe,"-mask"),onClick:be?Be:void 0,style:Te,ref:function(Pe){se.maskDom=Pe}}),c.createElement("div",{className:"".concat(oe,"-content-wrapper"),style:{transform:$e,msTransform:$e,width:M(le)?"".concat(le,"px"):le,height:M(ge)?"".concat(ge,"px"):ge},ref:function(Pe){se.contentWrapper=Pe}},c.createElement("div",{className:"".concat(oe,"-content"),ref:function(Pe){se.contentDom=Pe},onTouchStart:Je&&we?this.removeStartHandler:void 0,onTouchMove:Je&&we?this.removeMoveHandler:void 0},Ee),je))}}],[{key:"getDerivedStateFromProps",value:function(I,se){var me=se.prevProps,xe=se._self,Ee={prevProps:I};if(me!==void 0){var Oe=I.placement,le=I.level;Oe!==me.placement&&(xe.contentDom=null),le!==me.level&&xe.getLevelDom(I)}return Ee}}]),L}(c.Component);G.defaultProps={switchScrollingEffect:function(){}};var $=G;function he(U){var z=de();return function(){var T=Object(y.a)(U),I;if(z){var se=Object(y.a)(this).constructor;I=Reflect.construct(T,arguments,se)}else I=T.apply(this,arguments);return Object(_.a)(this,I)}}function de(){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 J=function(U){Object(O.a)(L,U);var z=he(L);function L(T){var I;Object(a.a)(this,L),I=z.call(this,T),I.onHandleClick=function(me){var xe=I.props,Ee=xe.onHandleClick,Oe=xe.open;if(Ee&&Ee(me),typeof Oe=="undefined"){var le=I.state.open;I.setState({open:!le})}},I.onClose=function(me){var xe=I.props,Ee=xe.onClose,Oe=xe.open;Ee&&Ee(me),typeof Oe=="undefined"&&I.setState({open:!1})};var se=typeof T.open!="undefined"?T.open:!!T.defaultOpen;return I.state={open:se},"onMaskClick"in T&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),I}return Object(D.a)(L,[{key:"render",value:function(){var I=this,se=this.props,me=se.defaultOpen,xe=se.getContainer,Ee=se.wrapperClassName,Oe=se.forceRender,le=se.handler,ge=Object(m.a)(se,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),ye=this.state.open;if(!xe)return c.createElement("div",{className:Ee,ref:function(Z){I.dom=Z}},c.createElement($,Object.assign({},ge,{open:ye,handler:le,getContainer:function(){return I.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var ee=!!le||Oe;return c.createElement(v.a,{visible:ye,forceRender:ee,getContainer:xe,wrapperClassName:Ee},function(oe){var Z=oe.visible,ue=oe.afterClose,V=Object(m.a)(oe,["visible","afterClose"]);return c.createElement($,Object.assign({},ge,V,{open:Z!==void 0?Z:ye,afterVisibleChange:ue!==void 0?ue:ge.afterVisibleChange,handler:le,onClose:I.onClose,onHandleClick:I.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(I,se){var me=se.prevProps,xe={prevProps:I};return typeof me!="undefined"&&I.open!==me.open&&(xe.open=I.open),xe}}]),L}(c.Component);J.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:c.createElement("div",{className:"drawer-handle"},c.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var fe=J,q=F.a=fe},fcyK:function(h,F,o){},fjLI:function(h,F,o){"use strict";o.d(F,"e",function(){return s}),o.d(F,"a",function(){return r}),o.d(F,"c",function(){return d}),o.d(F,"d",function(){return f}),o.d(F,"b",function(){return x});var m=o("8HAY"),a=o("Cg/j"),D=o("T8No"),O=o("nnTU"),_=o("MI8n"),y=function(){var C=function(b,g){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var N in A)A.hasOwnProperty(N)&&(E[N]=A[N])},C(b,g)};return function(b,g){C(b,g);function E(){this.constructor=b}b.prototype=g===null?Object.create(g):(E.prototype=g.prototype,new E)}}(),v=function(C,b,g,E){var A=arguments.length,N=A<3?b:E===null?E=Object.getOwnPropertyDescriptor(b,g):E,M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(C,b,g,E);else for(var w=C.length-1;w>=0;w--)(M=C[w])&&(N=(A<3?M(N):A>3?M(b,g,N):M(b,g))||N);return A>3&&N&&Object.defineProperty(b,g,N),N},c=function(C,b){return function(g,E){b(g,E,C)}},l=function(){for(var C=0,b=0,g=arguments.length;b<g;b++)C+=arguments[b].length;for(var E=Array(C),A=0,b=0;b<g;b++)for(var N=arguments[b],M=0,w=N.length;M<w;M++,A++)E[A]=N[M];return E};function s(C){return C.command!==void 0}var r=Object(a.c)("menuService"),d=new(function(){function C(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new _.a,this.onDidChangeMenu=this._onDidChangeMenu.event}return C.prototype.addCommand=function(b){var g=this;return this._commands.set(b.id,b),this._onDidChangeMenu.fire(0),{dispose:function(){g._commands.delete(b.id)&&g._onDidChangeMenu.fire(0)}}},C.prototype.getCommand=function(b){return this._commands.get(b)},C.prototype.getCommands=function(){var b=new Map;return this._commands.forEach(function(g,E){return b.set(E,g)}),b},C.prototype.appendMenuItem=function(b,g){var E=this,A=this._menuItems.get(b);return A?A.push(g):(A=[g],this._menuItems.set(b,A)),this._onDidChangeMenu.fire(b),{dispose:function(){var N=A.indexOf(g);N>=0&&(A.splice(N,1),E._onDidChangeMenu.fire(b))}}},C.prototype.getMenuItems=function(b){var g=(this._menuItems.get(b)||[]).slice(0);return b===0&&this._appendImplicitItems(g),g},C.prototype._appendImplicitItems=function(b){for(var g=new Set,E=b.filter(function(X){return s(X)}),A=0,N=E;A<N.length;A++){var M=N[A],w=M.command,Y=M.alt;g.add(w.id),Y&&g.add(Y.id)}this._commands.forEach(function(X,P){g.has(P)||b.push({command:X})})},C}()),u=function(C){y(b,C);function b(g,E,A){var N=C.call(this,g,E)||this;return N._commandService=A,N}return b.prototype.run=function(){for(var g,E=[],A=0;A<arguments.length;A++)E[A]=arguments[A];return(g=this._commandService).executeCommand.apply(g,l([this.id],E))},b=v([c(2,O.b)],b),b}(m.a),f=function(C){y(b,C);function b(g){var E=this;return typeof g.title=="string"?E=C.call(this,"",g.title,"submenu")||this:E=C.call(this,"",g.title.value,"submenu")||this,E.item=g,E}return b}(m.a),x=function(C){y(b,C);function b(g,E,A,N,M){var w=this;return typeof g.title=="string"?w=C.call(this,g.id,g.title,M)||this:w=C.call(this,g.id,g.title.value,M)||this,w._cssClass=void 0,w._enabled=!g.precondition||N.contextMatchesRules(g.precondition),w._checked=Boolean(g.toggled&&N.contextMatchesRules(g.toggled)),w._options=A||{},w.item=g,w.alt=E?new b(E,void 0,w._options,N,M):void 0,w}return b.prototype.dispose=function(){this.alt&&this.alt.dispose(),C.prototype.dispose.call(this)},b.prototype.run=function(){for(var g=[],E=0;E<arguments.length;E++)g[E]=arguments[E];var A=[];return this._options.arg&&(A=l(A,[this._options.arg])),this._options.shouldForwardArgs&&(A=l(A,g)),C.prototype.run.apply(this,A)},b=v([c(3,D.c),c(4,O.b)],b),b}(u)},gRFJ:function(h,F,o){h.exports=[o("rdUC"),o("ynwM"),o("RELg"),o("DlR+"),o("CrYA"),o("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(h){return h<10?"0"+h:h}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(h){return rx_escapable.lastIndex=0,rx_escapable.test(h)?'"'+h.replace(rx_escapable,function(F){var o=meta[F];return typeof o=="string"?o:"\\u"+("0000"+F.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+h+'"'}function str(h,F){var o,m,a,D,O=gap,_,y=F[h];y&&typeof y=="object"&&typeof y.toJSON=="function"&&(y=y.toJSON(h)),typeof rep=="function"&&(y=rep.call(F,h,y));switch(typeof y){case"string":return quote(y);case"number":return isFinite(y)?String(y):"null";case"boolean":case"null":return String(y);case"object":if(!y)return"null";if(gap+=indent,_=[],Object.prototype.toString.apply(y)==="[object Array]"){for(D=y.length,o=0;o<D;o+=1)_[o]=str(o,y)||"null";return a=_.length===0?"[]":gap?`[
|
|
|
`+gap+_.join(`,
|
|
|
`+gap)+`
|
|
|
`+O+"]":"["+_.join(",")+"]",gap=O,a}if(rep&&typeof rep=="object")for(D=rep.length,o=0;o<D;o+=1)typeof rep[o]=="string"&&(m=rep[o],a=str(m,y),a&&_.push(quote(m)+(gap?": ":":")+a));else for(m in y)Object.prototype.hasOwnProperty.call(y,m)&&(a=str(m,y),a&&_.push(quote(m)+(gap?": ":":")+a));return a=_.length===0?"{}":gap?`{
|
|
|
`+gap+_.join(`,
|
|
|
`+gap)+`
|
|
|
`+O+"}":"{"+_.join(",")+"}",gap=O,a}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(h,F,o){var m;if(gap="",indent="",typeof o=="number")for(m=0;m<o;m+=1)indent+=" ";else typeof o=="string"&&(indent=o);if(rep=F,F&&typeof F!="function"&&(typeof F!="object"||typeof F.length!="number"))throw new Error("JSON.stringify");return str("",{"":h})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(h,F){var o,m,a=h[F];if(a&&typeof a=="object")for(o in a)Object.prototype.hasOwnProperty.call(a,o)&&(m=walk(a,o),m!==void 0?a[o]=m:delete a[o]);return reviver.call(h,F,a)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(h){return"\\u"+("0000"+h.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(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("OLod"))})(this,function(m){return m.mode.ECB=function(){var a=m.lib.BlockCipherMode.extend();return a.Encryptor=a.extend({processBlock:function(D,O){this._cipher.encryptBlock(D,O)}}),a.Decryptor=a.extend({processBlock:function(D,O){this._cipher.decryptBlock(D,O)}}),a}(),m.mode.ECB})},h78n:function(h,F,o){"use strict";o.d(F,"a",function(){return J});var m=o("q1tI"),a=o.n(m),D=o("TSYQ"),O=o.n(D),_={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},y=function(U){var z=U.map(function(){return Object(m.useRef)()}),L=Object(m.useRef)();return Object(m.useEffect)(function(){var T=Date.now(),I=!1;Object.keys(z).forEach(function(se){var me=z[se].current;if(!me)return;I=!0;var xe=me.style;xe.transitionDuration=".3s, .3s, .3s, .06s",L.current&&T-L.current<100&&(xe.transitionDuration="0s, 0s")}),I&&(L.current=Date.now())}),[z]};function v(){return v=Object.assign||function(q){for(var U=1;U<arguments.length;U++){var z=arguments[U];for(var L in z)Object.prototype.hasOwnProperty.call(z,L)&&(q[L]=z[L])}return q},v.apply(this,arguments)}function c(q,U){return u(q)||d(q,U)||s(q,U)||l()}function l(){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 s(q,U){if(!q)return;if(typeof q=="string")return r(q,U);var z=Object.prototype.toString.call(q).slice(8,-1);if(z==="Object"&&q.constructor&&(z=q.constructor.name),z==="Map"||z==="Set")return Array.from(q);if(z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return r(q,U)}function r(q,U){(U==null||U>q.length)&&(U=q.length);for(var z=0,L=new Array(U);z<U;z++)L[z]=q[z];return L}function d(q,U){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(q)))return;var z=[],L=!0,T=!1,I=void 0;try{for(var se=q[Symbol.iterator](),me;!(L=(me=se.next()).done)&&!(z.push(me.value),U&&z.length===U);L=!0);}catch(xe){T=!0,I=xe}finally{try{!L&&se.return!=null&&se.return()}finally{if(T)throw I}}return z}function u(q){if(Array.isArray(q))return q}function f(q,U){if(q==null)return{};var z=x(q,U),L,T;if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(q);for(T=0;T<I.length;T++){if(L=I[T],U.indexOf(L)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(q,L))continue;z[L]=q[L]}}return z}function x(q,U){if(q==null)return{};var z={},L=Object.keys(q),T,I;for(I=0;I<L.length;I++){if(T=L[I],U.indexOf(T)>=0)continue;z[T]=q[T]}return z}var C=function(U){var z=U.className,L=U.percent,T=U.prefixCls,I=U.strokeColor,se=U.strokeLinecap,me=U.strokeWidth,xe=U.style,Ee=U.trailColor,Oe=U.trailWidth,le=U.transition,ge=f(U,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ge.gapPosition;var ye=Array.isArray(L)?L:[L],ee=Array.isArray(I)?I:[I],oe=y(ye),Z=c(oe,1),ue=Z[0],V=me/2,Q=100-me/2,ae="M ".concat(se==="round"?V:0,",").concat(V,`
|
|
|
L `).concat(se==="round"?Q:100,",").concat(V),K="0 0 100 ".concat(me),j=0;return a.a.createElement("svg",v({className:O()("".concat(T,"-line"),z),viewBox:K,preserveAspectRatio:"none",style:xe},ge),a.a.createElement("path",{className:"".concat(T,"-line-trail"),d:ae,strokeLinecap:se,stroke:Ee,strokeWidth:Oe||me,fillOpacity:"0"}),ye.map(function(k,W){var we={strokeDasharray:"".concat(k,"px, 100px"),strokeDashoffset:"-".concat(j,"px"),transition:le||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},be=ee[W]||ee[ee.length-1];return j+=k,a.a.createElement("path",{key:W,className:"".concat(T,"-line-path"),d:ae,strokeLinecap:se,stroke:be,strokeWidth:me,fillOpacity:"0",ref:ue[W],style:we})}))};C.defaultProps=_;var b=C;function g(){return g=Object.assign||function(q){for(var U=1;U<arguments.length;U++){var z=arguments[U];for(var L in z)Object.prototype.hasOwnProperty.call(z,L)&&(q[L]=z[L])}return q},g.apply(this,arguments)}function E(q,U){return Y(q)||w(q,U)||N(q,U)||A()}function A(){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 N(q,U){if(!q)return;if(typeof q=="string")return M(q,U);var z=Object.prototype.toString.call(q).slice(8,-1);if(z==="Object"&&q.constructor&&(z=q.constructor.name),z==="Map"||z==="Set")return Array.from(q);if(z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z))return M(q,U)}function M(q,U){(U==null||U>q.length)&&(U=q.length);for(var z=0,L=new Array(U);z<U;z++)L[z]=q[z];return L}function w(q,U){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(q)))return;var z=[],L=!0,T=!1,I=void 0;try{for(var se=q[Symbol.iterator](),me;!(L=(me=se.next()).done)&&!(z.push(me.value),U&&z.length===U);L=!0);}catch(xe){T=!0,I=xe}finally{try{!L&&se.return!=null&&se.return()}finally{if(T)throw I}}return z}function Y(q){if(Array.isArray(q))return q}function X(q,U){if(q==null)return{};var z=P(q,U),L,T;if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(q);for(T=0;T<I.length;T++){if(L=I[T],U.indexOf(L)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(q,L))continue;z[L]=q[L]}}return z}function P(q,U){if(q==null)return{};var z={},L=Object.keys(q),T,I;for(I=0;I<L.length;I++){if(T=L[I],U.indexOf(T)>=0)continue;z[T]=q[T]}return z}var H=0;function G(q){return+q.replace("%","")}function $(q){return Array.isArray(q)?q:[q]}function he(q,U,z,L){var T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,I=arguments.length>5?arguments[5]:void 0,se=50-L/2,me=0,xe=-se,Ee=0,Oe=-2*se;switch(I){case"left":me=-se,xe=0,Ee=2*se,Oe=0;break;case"right":me=se,xe=0,Ee=-2*se,Oe=0;break;case"bottom":xe=se,Oe=2*se;break;default:}var le="M 50,50 m ".concat(me,",").concat(xe,`
|
|
|
a `).concat(se,",").concat(se," 0 1 1 ").concat(Ee,",").concat(-Oe,`
|
|
|
a `).concat(se,",").concat(se," 0 1 1 ").concat(-Ee,",").concat(Oe),ge=Math.PI*2*se,ye={stroke:z,strokeDasharray:"".concat(U/100*(ge-T),"px ").concat(ge,"px"),strokeDashoffset:"-".concat(T/2+q/100*(ge-T),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:le,pathStyle:ye}}var de=function(U){var z=U.prefixCls,L=U.strokeWidth,T=U.trailWidth,I=U.gapDegree,se=U.gapPosition,me=U.trailColor,xe=U.strokeLinecap,Ee=U.style,Oe=U.className,le=U.strokeColor,ge=U.percent,ye=X(U,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),ee=Object(m.useMemo)(function(){return H+=1,H},[]),oe=he(0,100,me,L,I,se),Z=oe.pathString,ue=oe.pathStyle,V=$(ge),Q=$(le),ae=Q.find(function(we){return Object.prototype.toString.call(we)==="[object Object]"}),K=y(V),j=E(K,1),k=j[0],W=function(){var be=0;return V.map(function(Te,Be){var Fe=Q[Be]||Q[Q.length-1],Ue=Object.prototype.toString.call(Fe)==="[object Object]"?"url(#".concat(z,"-gradient-").concat(ee,")"):"",We=he(be,Te,Fe,L,I,se);return be+=Te,a.a.createElement("path",{key:Be,className:"".concat(z,"-circle-path"),d:We.pathString,stroke:Ue,strokeLinecap:xe,strokeWidth:L,opacity:Te===0?0:1,fillOpacity:"0",style:We.pathStyle,ref:k[Be]})})};return a.a.createElement("svg",g({className:O()("".concat(z,"-circle"),Oe),viewBox:"0 0 100 100",style:Ee},ye),ae&&a.a.createElement("defs",null,a.a.createElement("linearGradient",{id:"".concat(z,"-gradient-").concat(ee),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(ae).sort(function(we,be){return G(we)-G(be)}).map(function(we,be){return a.a.createElement("stop",{key:be,offset:we,stopColor:ae[we]})}))),a.a.createElement("path",{className:"".concat(z,"-circle-trail"),d:Z,stroke:me,strokeLinecap:xe,strokeWidth:T||L,fillOpacity:"0",style:ue}),W().reverse())};de.defaultProps=_;var J=de,fe={Line:b,Circle:J}},i3hx:function(h,F,o){},i58Z:function(h,F,o){h.exports={wrap:"wrap___Yg2Z9",addKnowledge:"addKnowledge___2FlI0",disabled:"disabled___1_wxN"}},jO9C:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("OLod"))})(this,function(m){return m.pad.Iso97971={pad:function(a,D){a.concat(m.lib.WordArray.create([2147483648],1)),m.pad.ZeroPadding.pad(a,D)},unpad:function(a){m.pad.ZeroPadding.unpad(a),a.sigBytes--}},m.pad.Iso97971})},je13:function(h,F,o){var m=o("5nXd"),a=o("gRFJ"),D=[o("uQRt")];h.exports=m.createStore(a,D)},kSUc:function(h,F,o){},lOMy:function(h,F,o){},lPiR:function(h,F,o){(function(m,a){h.exports=F=a(o("Ib8C"))})(this,function(m){return function(a){var D=m,O=D.lib,_=O.WordArray,y=O.Hasher,v=D.algo,c=[],l=[];(function(){function d(C){for(var b=a.sqrt(C),g=2;g<=b;g++)if(!(C%g))return!1;return!0}function u(C){return(C-(C|0))*4294967296|0}for(var f=2,x=0;x<64;)d(f)&&(x<8&&(c[x]=u(a.pow(f,1/2))),l[x]=u(a.pow(f,1/3)),x++),f++})();var s=[],r=v.SHA256=y.extend({_doReset:function(){this._hash=new _.init(c.slice(0))},_doProcessBlock:function(d,u){for(var f=this._hash.words,x=f[0],C=f[1],b=f[2],g=f[3],E=f[4],A=f[5],N=f[6],M=f[7],w=0;w<64;w++){if(w<16)s[w]=d[u+w]|0;else{var Y=s[w-15],X=(Y<<25|Y>>>7)^(Y<<14|Y>>>18)^Y>>>3,P=s[w-2],H=(P<<15|P>>>17)^(P<<13|P>>>19)^P>>>10;s[w]=X+s[w-7]+H+s[w-16]}var G=E&A^~E&N,$=x&C^x&b^C&b,he=(x<<30|x>>>2)^(x<<19|x>>>13)^(x<<10|x>>>22),de=(E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25),J=M+de+G+l[w]+s[w],fe=he+$;M=N,N=A,A=E,E=g+J|0,g=b,b=C,C=x,x=J+fe|0}f[0]=f[0]+x|0,f[1]=f[1]+C|0,f[2]=f[2]+b|0,f[3]=f[3]+g|0,f[4]=f[4]+E|0,f[5]=f[5]+A|0,f[6]=f[6]+N|0,f[7]=f[7]+M|0},_doFinalize:function(){var d=this._data,u=d.words,f=this._nDataBytes*8,x=d.sigBytes*8;return u[x>>>5]|=128<<24-x%32,u[(x+64>>>9<<4)+14]=a.floor(f/4294967296),u[(x+64>>>9<<4)+15]=f,d.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var d=y.clone.call(this);return d._hash=this._hash.clone(),d}});D.SHA256=y._createHelper(r),D.HmacSHA256=y._createHmacHelper(r)}(Math),m.SHA256})},lZu9:function(h,F,o){(function(m){m(o("VrN/"),o("1eCo"),o("8EBN"))})(function(m){"use strict";m.defineMode("markdown",function(a,D){var O=m.getMode(a,"text/html"),_=O.name=="null";function y(L){if(m.findModeByName){var T=m.findModeByName(L);T&&(L=T.mime||T.mimes[0])}var I=m.getMode(a,L);return I.name=="null"?null:I}D.highlightFormatting===void 0&&(D.highlightFormatting=!1),D.maxBlockquoteDepth===void 0&&(D.maxBlockquoteDepth=0),D.taskLists===void 0&&(D.taskLists=!1),D.strikethrough===void 0&&(D.strikethrough=!1),D.emoji===void 0&&(D.emoji=!1),D.fencedCodeBlockHighlighting===void 0&&(D.fencedCodeBlockHighlighting=!0),D.fencedCodeBlockDefaultMode===void 0&&(D.fencedCodeBlockDefaultMode="text/plain"),D.xml===void 0&&(D.xml=!0),D.tokenTypeOverrides===void 0&&(D.tokenTypeOverrides={});var v={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 c in v)v.hasOwnProperty(c)&&D.tokenTypeOverrides[c]&&(v[c]=D.tokenTypeOverrides[c]);var l=/^([*\-_])(?:\s*\1){2,}\s*$/,s=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,r=/^\[(x| )\](?=\s)/i,d=D.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,u=/^ {0,3}(?:\={1,}|-{2,})\s*$/,f=/^[^#!\[\]*_\\<>` "'(~:]+/,x=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,C=/^\s*\[[^\]]+?\]:.*$/,b=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,g=" ";function E(L,T,I){return T.f=T.inline=I,I(L,T)}function A(L,T,I){return T.f=T.block=I,I(L,T)}function N(L){return!L||!/\S/.test(L.string)}function M(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==Y){var T=_;if(!T){var I=m.innerMode(O,L.htmlState);T=I.mode.name=="xml"&&I.state.tagStart===null&&!I.state.context&&I.state.tokenize.isInText}T&&(L.f=G,L.block=w,L.htmlState=null)}return L.trailingSpace=0,L.trailingSpaceNewLine=!1,L.prevLine=L.thisLine,L.thisLine={stream:null},null}function w(L,T){var I=L.column()===T.indentation,se=N(T.prevLine.stream),me=T.indentedCode,xe=T.prevLine.hr,Ee=T.list!==!1,Oe=(T.listStack[T.listStack.length-1]||0)+3;T.indentedCode=!1;var le=T.indentation;if(T.indentationDiff===null&&(T.indentationDiff=T.indentation,Ee)){for(T.list=null;le<T.listStack[T.listStack.length-1];)T.listStack.pop(),T.listStack.length?T.indentation=T.listStack[T.listStack.length-1]:T.list=!1;T.list!==!1&&(T.indentationDiff=le-T.listStack[T.listStack.length-1])}var ge=!se&&!xe&&!T.prevLine.header&&(!Ee||!me)&&!T.prevLine.fencedCodeEnd,ye=(T.list===!1||xe||se)&&T.indentation<=Oe&&L.match(l),ee=null;if(T.indentationDiff>=4&&(me||T.prevLine.fencedCodeEnd||T.prevLine.header||se))return L.skipToEnd(),T.indentedCode=!0,v.code;if(L.eatSpace())return null;if(I&&T.indentation<=Oe&&(ee=L.match(d))&&ee[1].length<=6)return T.quote=0,T.header=ee[1].length,T.thisLine.header=!0,D.highlightFormatting&&(T.formatting="header"),T.f=T.inline,P(T);if(T.indentation<=Oe&&L.eat(">"))return T.quote=I?1:T.quote+1,D.highlightFormatting&&(T.formatting="quote"),L.eatSpace(),P(T);if(!ye&&!T.setext&&I&&T.indentation<=Oe&&(ee=L.match(s))){var oe=ee[1]?"ol":"ul";return T.indentation=le+L.current().length,T.list=!0,T.quote=0,T.listStack.push(T.indentation),T.em=!1,T.strong=!1,T.code=!1,T.strikethrough=!1,D.taskLists&&L.match(r,!1)&&(T.taskList=!0),T.f=T.inline,D.highlightFormatting&&(T.formatting=["list","list-"+oe]),P(T)}else{if(I&&T.indentation<=Oe&&(ee=L.match(x,!0)))return T.quote=0,T.fencedEndRE=new RegExp(ee[1]+"+ *$"),T.localMode=D.fencedCodeBlockHighlighting&&y(ee[2]||D.fencedCodeBlockDefaultMode),T.localMode&&(T.localState=m.startState(T.localMode)),T.f=T.block=X,D.highlightFormatting&&(T.formatting="code-block"),T.code=-1,P(T);if(T.setext||(!ge||!Ee)&&!T.quote&&T.list===!1&&!T.code&&!ye&&!C.test(L.string)&&(ee=L.lookAhead(1))&&(ee=ee.match(u)))return T.setext?(T.header=T.setext,T.setext=0,L.skipToEnd(),D.highlightFormatting&&(T.formatting="header")):(T.header=ee[0].charAt(0)=="="?1:2,T.setext=T.header),T.thisLine.header=!0,T.f=T.inline,P(T);if(ye)return L.skipToEnd(),T.hr=!0,T.thisLine.hr=!0,v.hr;if(L.peek()==="[")return E(L,T,fe)}return E(L,T,T.inline)}function Y(L,T){var I=O.token(L,T.htmlState);if(!_){var se=m.innerMode(O,T.htmlState);(se.mode.name=="xml"&&se.state.tagStart===null&&!se.state.context&&se.state.tokenize.isInText||T.md_inside&&L.current().indexOf(">")>-1)&&(T.f=G,T.block=w,T.htmlState=null)}return I}function X(L,T){var I=T.listStack[T.listStack.length-1]||0,se=T.indentation<I,me=I+3;if(T.fencedEndRE&&T.indentation<=me&&(se||L.match(T.fencedEndRE))){D.highlightFormatting&&(T.formatting="code-block");var xe;return se||(xe=P(T)),T.localMode=T.localState=null,T.block=w,T.f=G,T.fencedEndRE=null,T.code=0,T.thisLine.fencedCodeEnd=!0,se?A(L,T,T.block):xe}else return T.localMode?T.localMode.token(L,T.localState):(L.skipToEnd(),v.code)}function P(L){var T=[];if(L.formatting){T.push(v.formatting),typeof L.formatting=="string"&&(L.formatting=[L.formatting]);for(var I=0;I<L.formatting.length;I++)T.push(v.formatting+"-"+L.formatting[I]),L.formatting[I]==="header"&&T.push(v.formatting+"-"+L.formatting[I]+"-"+L.header),L.formatting[I]==="quote"&&(!D.maxBlockquoteDepth||D.maxBlockquoteDepth>=L.quote?T.push(v.formatting+"-"+L.formatting[I]+"-"+L.quote):T.push("error"))}if(L.taskOpen)return T.push("meta"),T.length?T.join(" "):null;if(L.taskClosed)return T.push("property"),T.length?T.join(" "):null;if(L.linkHref?T.push(v.linkHref,"url"):(L.strong&&T.push(v.strong),L.em&&T.push(v.em),L.strikethrough&&T.push(v.strikethrough),L.emoji&&T.push(v.emoji),L.linkText&&T.push(v.linkText),L.code&&T.push(v.code),L.image&&T.push(v.image),L.imageAltText&&T.push(v.imageAltText,"link"),L.imageMarker&&T.push(v.imageMarker)),L.header&&T.push(v.header,v.header+"-"+L.header),L.quote&&(T.push(v.quote),!D.maxBlockquoteDepth||D.maxBlockquoteDepth>=L.quote?T.push(v.quote+"-"+L.quote):T.push(v.quote+"-"+D.maxBlockquoteDepth)),L.list!==!1){var se=(L.listStack.length-1)%3;se?se===1?T.push(v.list2):T.push(v.list3):T.push(v.list1)}return L.trailingSpaceNewLine?T.push("trailing-space-new-line"):L.trailingSpace&&T.push("trailing-space-"+(L.trailingSpace%2?"a":"b")),T.length?T.join(" "):null}function H(L,T){return L.match(f,!0)?P(T):void 0}function G(L,T){var I=T.text(L,T);if(typeof I!="undefined")return I;if(T.list)return T.list=null,P(T);if(T.taskList){var se=L.match(r,!0)[1]===" ";return se?T.taskOpen=!0:T.taskClosed=!0,D.highlightFormatting&&(T.formatting="task"),T.taskList=!1,P(T)}if(T.taskOpen=!1,T.taskClosed=!1,T.header&&L.match(/^#+$/,!0))return D.highlightFormatting&&(T.formatting="header"),P(T);var me=L.next();if(T.linkTitle){T.linkTitle=!1;var xe=me;me==="("&&(xe=")"),xe=(xe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ee="^\\s*(?:[^"+xe+"\\\\]+|\\\\\\\\|\\\\.)"+xe;if(L.match(new RegExp(Ee),!0))return v.linkHref}if(me==="`"){var Oe=T.formatting;D.highlightFormatting&&(T.formatting="code"),L.eatWhile("`");var le=L.current().length;if(T.code==0&&(!T.quote||le==1))return T.code=le,P(T);if(le==T.code){var ge=P(T);return T.code=0,ge}else return T.formatting=Oe,P(T)}else if(T.code)return P(T);if(me==="\\"&&(L.next(),D.highlightFormatting)){var ye=P(T),ee=v.formatting+"-escape";return ye?ye+" "+ee:ee}if(me==="!"&&L.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return T.imageMarker=!0,T.image=!0,D.highlightFormatting&&(T.formatting="image"),P(T);if(me==="["&&T.imageMarker&&L.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return T.imageMarker=!1,T.imageAltText=!0,D.highlightFormatting&&(T.formatting="image"),P(T);if(me==="]"&&T.imageAltText){D.highlightFormatting&&(T.formatting="image");var ye=P(T);return T.imageAltText=!1,T.image=!1,T.inline=T.f=he,ye}if(me==="["&&!T.image)return T.linkText&&L.match(/^.*?\]/)||(T.linkText=!0,D.highlightFormatting&&(T.formatting="link")),P(T);if(me==="]"&&T.linkText){D.highlightFormatting&&(T.formatting="link");var ye=P(T);return T.linkText=!1,T.inline=T.f=L.match(/\(.*?\)| ?\[.*?\]/,!1)?he:G,ye}if(me==="<"&&L.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){T.f=T.inline=$,D.highlightFormatting&&(T.formatting="link");var ye=P(T);return ye?ye+=" ":ye="",ye+v.linkInline}if(me==="<"&&L.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){T.f=T.inline=$,D.highlightFormatting&&(T.formatting="link");var ye=P(T);return ye?ye+=" ":ye="",ye+v.linkEmail}if(D.xml&&me==="<"&&L.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var oe=L.string.indexOf(">",L.pos);if(oe!=-1){var Z=L.string.substring(L.start,oe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Z)&&(T.md_inside=!0)}return L.backUp(1),T.htmlState=m.startState(O),A(L,T,Y)}if(D.xml&&me==="<"&&L.match(/^\/\w*?>/))return T.md_inside=!1,"tag";if(me==="*"||me==="_"){for(var ue=1,V=L.pos==1?" ":L.string.charAt(L.pos-2);ue<3&&L.eat(me);)ue++;var Q=L.peek()||" ",ae=!/\s/.test(Q)&&(!b.test(Q)||/\s/.test(V)||b.test(V)),K=!/\s/.test(V)&&(!b.test(V)||/\s/.test(Q)||b.test(Q)),j=null,k=null;if(ue%2&&(!T.em&&ae&&(me==="*"||!K||b.test(V))?j=!0:T.em==me&&K&&(me==="*"||!ae||b.test(Q))&&(j=!1)),ue>1&&(!T.strong&&ae&&(me==="*"||!K||b.test(V))?k=!0:T.strong==me&&K&&(me==="*"||!ae||b.test(Q))&&(k=!1)),k!=null||j!=null){D.highlightFormatting&&(T.formatting=j==null?"strong":k==null?"em":"strong em"),j===!0&&(T.em=me),k===!0&&(T.strong=me);var ge=P(T);return j===!1&&(T.em=!1),k===!1&&(T.strong=!1),ge}}else if(me===" "&&(L.eat("*")||L.eat("_"))){if(L.peek()===" ")return P(T);L.backUp(1)}if(D.strikethrough){if(me==="~"&&L.eatWhile(me)){if(T.strikethrough){D.highlightFormatting&&(T.formatting="strikethrough");var ge=P(T);return T.strikethrough=!1,ge}else if(L.match(/^[^\s]/,!1))return T.strikethrough=!0,D.highlightFormatting&&(T.formatting="strikethrough"),P(T)}else if(me===" "&&L.match(/^~~/,!0)){if(L.peek()===" ")return P(T);L.backUp(2)}}if(D.emoji&&me===":"&&L.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){T.emoji=!0,D.highlightFormatting&&(T.formatting="emoji");var W=P(T);return T.emoji=!1,W}return me===" "&&(L.match(/^ +$/,!1)?T.trailingSpace++:T.trailingSpace&&(T.trailingSpaceNewLine=!0)),P(T)}function $(L,T){var I=L.next();if(I===">"){T.f=T.inline=G,D.highlightFormatting&&(T.formatting="link");var se=P(T);return se?se+=" ":se="",se+v.linkInline}return L.match(/^[^>]+/,!0),v.linkInline}function he(L,T){if(L.eatSpace())return null;var I=L.next();return I==="("||I==="["?(T.f=T.inline=J(I==="("?")":"]"),D.highlightFormatting&&(T.formatting="link-string"),T.linkHref=!0,P(T)):"error"}var de={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function J(L){return function(T,I){var se=T.next();if(se===L){I.f=I.inline=G,D.highlightFormatting&&(I.formatting="link-string");var me=P(I);return I.linkHref=!1,me}return T.match(de[L]),I.linkHref=!0,P(I)}}function fe(L,T){return L.match(/^([^\]\\]|\\.)*\]:/,!1)?(T.f=q,L.next(),D.highlightFormatting&&(T.formatting="link"),T.linkText=!0,P(T)):E(L,T,G)}function q(L,T){if(L.match(/^\]:/,!0)){T.f=T.inline=U,D.highlightFormatting&&(T.formatting="link");var I=P(T);return T.linkText=!1,I}return L.match(/^([^\]\\]|\\.)+/,!0),v.linkText}function U(L,T){return L.eatSpace()?null:(L.match(/^[^\s]+/,!0),L.peek()===void 0?T.linkTitle=!0:L.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),T.f=T.inline=G,v.linkHref+" url")}var z={startState:function(){return{f:w,prevLine:{stream:null},thisLine:{stream:null},block:w,htmlState:null,indentation:0,inline:G,text:H,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&&m.copyState(O,L.htmlState),indentation:L.indentation,localMode:L.localMode,localState:L.localMode?m.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,T){if(T.formatting=!1,L!=T.thisLine.stream){if(T.header=0,T.hr=!1,L.match(/^\s*$/,!0))return M(T),null;if(T.prevLine=T.thisLine,T.thisLine={stream:L},T.taskList=!1,T.trailingSpace=0,T.trailingSpaceNewLine=!1,!T.localState&&(T.f=T.block,T.f!=Y)){var I=L.match(/^\s*/,!0)[0].replace(/\t/g,g).length;if(T.indentation=I,T.indentationDiff=null,I>0)return null}}return T.f(L,T)},innerMode:function(L){return L.block==Y?{state:L.htmlState,mode:O}:L.localState?{state:L.localState,mode:L.localMode}:{state:L,mode:z}},indent:function(L,T,I){return L.block==Y&&O.indent?O.indent(L.htmlState,T,I):L.localState&&L.localMode.indent?L.localMode.indent(L.localState,T,I):m.Pass},blankLine:M,getType:P,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return z},"xml"),m.defineMIME("text/markdown","markdown"),m.defineMIME("text/x-markdown","markdown")})},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(h){if(!0)module.exports=h();else var F})(function(){var define,module,exports;return function(){function h(F,o,m){function a(_,y){if(!o[_]){if(!F[_]){var v=typeof require=="function"&&require;if(!y&&v)return require(_,!0);if(D)return D(_,!0);var c=new Error("Cannot find module '"+_+"'");throw c.code="MODULE_NOT_FOUND",c}var l=o[_]={exports:{}};F[_][0].call(l.exports,function(s){var r=F[_][1][s];return a(r||s)},l,l.exports,h,F,o,m)}return o[_].exports}for(var D=typeof require=="function"&&require,O=0;O<m.length;O++)a(m[O]);return a}return h}()({1:[function(h,F,o){"use strict";var m=h("./browser/client");m.Buffer=h("buffer").Buffer,m.urllib=h("../shims/xhr"),m.version=h("./browser/version").version,F.exports=m},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(h,F,o){(function(m,a){"use strict";var D=h("babel-runtime/core-js/promise"),O=l(D),_=h("babel-runtime/regenerator"),y=l(_),v=h("babel-runtime/core-js/object/assign"),c=l(v);function l(fe){return fe&&fe.__esModule?fe:{default:fe}}var s=h("debug")("ali-oss"),r=h("copy-to"),d=h("xml2js"),u=h("agentkeepalive"),f=h("merge-descriptors"),x=h("url"),C=h("is-type-of"),b=h("platform"),g=h("utility"),E=h("urllib"),A=h("./version"),N=h("bowser"),M=h("../common/signUtils"),w=h("../common/utils/isIP"),Y=w.isIP,X=h("../common/client/initOptions"),P=h("../common/utils/createRequest"),H=P.createRequest,G=new u;function $(){var fe=b.name,q=b.version;fe&&fe.toLowerCase&&fe.toLowerCase()==="ie"&&q.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function he(){return location&&location.protocol==="https:"}function de(fe,q){if($(),!(this instanceof de))return new de(fe,q);fe&&fe.inited?this.options=fe:this.options=de.initOptions(fe),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=E,this.agent=this.options.agent||G),this.ctx=q,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}F.exports=de,de.initOptions=function(q){q.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var U=(0,c.default)({secure:he(),useFetch:!1},q);return X(U)};var J=de.prototype;J.debug=s,f(J,h("./object")),f(J,h("../common/bucket/getBucketWebsite")),f(J,h("../common/bucket/putBucketWebsite")),f(J,h("../common/bucket/deleteBucketWebsite")),f(J,h("../common/bucket/getBucketLifecycle")),f(J,h("../common/bucket/putBucketLifecycle")),f(J,h("../common/bucket/deleteBucketLifecycle")),f(J,h("../common/bucket/putBucketVersioning")),f(J,h("../common/bucket/getBucketVersioning")),f(J,h("./managed-upload")),f(J,h("../common/multipart")),f(J,h("../common/parallel")),J.signature=function(q){return this.debug("authorization stringToSign: %s",q,"info"),M.computeSignature(this.options.accessKeySecret,q)},J.authorization=function(q,U,z,L){var T=M.buildCanonicalString(q.toUpperCase(),U,{headers:L,parameters:z});return M.authorization(this.options.accessKeyId,this.options.accessKeySecret,T)},J.request=function(q){var U,z,L,T,I,se;return y.default.async(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return U=H.call(this,q),this.options.useFetch||(U.params.mode="disable-fetch"),z=void 0,L=void 0,T=!!q.stream,xe.prev=5,xe.next=8,y.default.awrap(this.urllib.request(U.url,U.params));case 8:z=xe.sent,this.debug("response %s %s, got %s, headers: %j",q.method,U.url,z.status,z.headers,"info"),xe.next=15;break;case 12:xe.prev=12,xe.t0=xe.catch(5),L=xe.t0;case 15:if(I=void 0,!(z&&q.successStatuses&&q.successStatuses.indexOf(z.status)===-1)){xe.next=28;break}return xe.next=19,y.default.awrap(this.requestError(z));case 19:if(I=xe.sent,!(I.code==="RequestTimeTooSkewed"&&!T)){xe.next=25;break}return this.options.amendTimeSkewed=+new Date(I.serverTime)-new Date,xe.next=24,y.default.awrap(this.request(q));case 24:return xe.abrupt("return",xe.sent);case 25:I.params=q,xe.next=32;break;case 28:if(!L){xe.next=32;break}return xe.next=31,y.default.awrap(this.requestError(L));case 31:I=xe.sent;case 32:if(!I){xe.next=34;break}throw I;case 34:if(!q.xmlResponse){xe.next=39;break}return xe.next=37,y.default.awrap(this.parseXML(z.data));case 37:se=xe.sent,z.data=se;case 39:return xe.abrupt("return",z);case 40:case"end":return xe.stop()}},null,this,[[5,12]])},J._getResource=function(q){var U="/";return q.bucket&&(U+=q.bucket+"/"),q.object&&(U+=q.object),U},J._isIP=Y,J._escape=function(q){return g.encodeURIComponent(q).replace(/%2F/g,"/")},J._getReqUrl=function(q){var U={};r(this.options.endpoint).to(U);var z=this._isIP(U.hostname),L=this.options.cname;q.bucket&&!L&&!z&&(U.host=q.bucket+"."+U.host);var T="/";q.bucket&&z&&(T+=q.bucket+"/"),q.object&&(T+=this._escape(q.object).replace(/\+/g,"%2B")),U.pathname=T;var I={};if(q.query&&f(I,q.query),q.subres){var se={};C.string(q.subres)?se[q.subres]="":C.array(q.subres)?q.subres.forEach(function(me){se[me]=""}):se=q.subres,f(I,se)}return U.query=I,x.format(U)},J._getUserAgent=function(){var q=a&&a.browser?"js":"nodejs",U="aliyun-sdk-"+q+"/"+A.version,z=b.description;return!z&&a&&(z="Node.js "+a.version.slice(1)+" on "+a.platform+" "+a.arch),this._checkUserAgent(U+" "+z)},J._checkUserAgent=function(q){var U=q.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return U},J.checkBrowserAndVersion=function(q,U){return N.name===q&&N.version.split(".")[0]===U},J.parseXML=function(q){return new O.default(function(U,z){m.isBuffer(q)&&(q=q.toString()),d.parseString(q,{explicitRoot:!1,explicitArray:!1},function(L,T){L?z(L):U(T)})})},J.requestError=function(q){var U,z,L,T;return y.default.async(function(se){for(;;)switch(se.prev=se.next){case 0:if(U=null,!(!q.data||!q.data.length)){se.next=5;break}q.status===-1||q.status===-2?(U=new Error(q.message),U.name=q.name,U.status=q.status,U.code=q.name):(q.status===404?(U=new Error("Object not exists"),U.name="NoSuchKeyError",U.status=404,U.code="NoSuchKey"):q.status===412?(U=new Error("Pre condition failed"),U.name="PreconditionFailedError",U.status=412,U.code="PreconditionFailed"):(U=new Error("Unknow error, status: "+q.status),U.name="UnknowError",U.status=q.status),U.requestId=q.headers["x-oss-request-id"],U.host=""),se.next=33;break;case 5:return z=String(q.data),this.debug("request response error data: %s",z,"error"),L=void 0,se.prev=8,se.next=11,y.default.awrap(this.parseXML(z));case 11:if(se.t0=se.sent,se.t0){se.next=14;break}se.t0={};case 14:L=se.t0,se.next=24;break;case 17:return se.prev=17,se.t1=se.catch(8),this.debug(z,"error"),se.t1.message+=`
|
|
|
raw xml: `+z,se.t1.status=q.status,se.t1.requestId=q.headers["x-oss-request-id"],se.abrupt("return",se.t1);case 24:T=L.Message||"unknow request error, status: "+q.status,L.Condition&&(T+=" (condition: "+L.Condition+")"),U=new Error(T),U.name=L.Code?L.Code+"Error":"UnknowError",U.status=q.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"),se.abrupt("return",U);case 35:case"end":return se.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:h("../../node_modules/is-buffer/index.js")},h("_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(h,F,o){(function(m){"use strict";var a=h("babel-runtime/core-js/array/from"),D=c(a),O=h("babel-runtime/core-js/promise"),_=c(O),y=h("babel-runtime/regenerator"),v=c(y);function c(M){return M&&M.__esModule?M:{default:M}}var l=h("is-type-of"),s=h("util"),r=h("path"),d=h("mime"),u=h("copy-to"),f=h("../common/utils/isBlob"),x=f.isBlob,C=h("../common/utils/isFile"),b=C.isFile,g=o;g.multipartUpload=function(w,Y,X){var P,H,G,$,he,de,J,fe,q;return v.default.async(function(z){for(;;)switch(z.prev=z.next){case 0:if(this.resetCancelFlag(),X=X||{},!(X.checkpoint&&X.checkpoint.uploadId)){z.next=6;break}return z.next=5,v.default.awrap(this._resumeMultipart(X.checkpoint,X));case 5:return z.abrupt("return",z.sent);case 6:return P=100*1024,X.mime||(b(Y)?X.mime=d.getType(r.extname(Y.name)):x(Y)?X.mime=Y.type:X.mime=d.getType(r.extname(Y))),X.headers=X.headers||{},this._convertMetaToHeaders(X.meta,X.headers),z.next=12,v.default.awrap(this._getFileSize(Y));case 12:if(H=z.sent,!(H<P)){z.next=25;break}return G=this._createStream(Y,0,H),X.contentLength=H,z.next=18,v.default.awrap(this.putStream(w,G,X));case 18:if($=z.sent,!(X&&X.progress)){z.next=22;break}return z.next=22,v.default.awrap(X.progress(1));case 22:return he={res:$.res,bucket:this.options.bucket,name:w,etag:$.res.headers.etag},(X.headers&&X.headers["x-oss-callback"]||X.callback)&&(he.data=$.data),z.abrupt("return",he);case 25:if(!(X.partSize&&!(parseInt(X.partSize,10)===X.partSize))){z.next=27;break}throw new Error("partSize must be int number");case 27:if(!(X.partSize&&X.partSize<P)){z.next=29;break}throw new Error("partSize must not be smaller than "+P);case 29:return z.next=31,v.default.awrap(this.initMultipartUpload(w,X));case 31:if(de=z.sent,J=de.uploadId,fe=this._getPartSize(H,X.partSize),q={file:Y,name:w,fileSize:H,partSize:fe,uploadId:J,doneParts:[]},!(X&&X.progress)){z.next=38;break}return z.next=38,v.default.awrap(X.progress(0,q,de.res));case 38:return z.next=40,v.default.awrap(this._resumeMultipart(q,X));case 40:return z.abrupt("return",z.sent);case 41:case"end":return z.stop()}},null,this)},g._resumeMultipart=function(w,Y){var X,P,H,G,$,he,de,J,fe,q,U,z,L,T,I,se,me,xe;return v.default.async(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(X=this,!this.isCancel()){Oe.next=3;break}throw this._makeCancelEvent();case 3:return P=w.file,H=w.fileSize,G=w.partSize,$=w.uploadId,he=w.doneParts,de=w.name,J=[],he.length>0&&u(he).to(J),fe=this._divideParts(H,G),q=fe.length,U=!1,z=function(ge,ye){var ee=this;return new _.default(function(Z,ue){var V,Q,ae,K;return v.default.async(function(k){for(;;)switch(k.prev=k.next){case 0:if(k.prev=0,ge.isCancel()){k.next=18;break}return V=fe[ye-1],Q={stream:ge._createStream(P,V.start,V.end),size:V.end-V.start},k.next=6,v.default.awrap(ge._uploadPart(de,$,ye,Q));case 6:if(ae=k.sent,!(!ge.isCancel()&&!U)){k.next=15;break}if(w.doneParts.push({number:ye,etag:ae.res.headers.etag}),!Y.progress){k.next=12;break}return k.next=12,v.default.awrap(Y.progress(he.length/q,w,ae.res));case 12:Z({number:ye,etag:ae.res.headers.etag}),k.next=16;break;case 15:Z();case 16:k.next=19;break;case 18:Z();case 19:k.next=30;break;case 21:k.prev=21,k.t0=k.catch(0),K=new Error,K.name=k.t0.name,K.message=k.t0.message,K.stack=k.t0.stack,K.partNum=ye,u(k.t0).to(K),ue(K);case 30:case"end":return k.stop()}},null,ee,[[0,21]])})},L=(0,D.default)(new Array(q),function(le,ge){return ge+1}),T=J.map(function(le){return le.number}),I=L.filter(function(le){return T.indexOf(le)<0}),se=5,me=Y.parallel||se,Oe.next=17,v.default.awrap(this._parallel(I,me,function(le){return new _.default(function(ge,ye){z(X,le).then(function(ee){ee&&J.push(ee),ge()}).catch(function(ee){ye(ee)})})}));case 17:if(xe=Oe.sent,U=!0,!this.isCancel()){Oe.next=22;break}throw z=null,this._makeCancelEvent();case 22:if(!(xe&&xe.length>0)){Oe.next=25;break}throw xe[0].message="Failed to upload some parts with error: "+xe[0].toString()+" part_num: "+xe[0].partNum,xe[0];case 25:return Oe.next=27,v.default.awrap(this.completeMultipartUpload(de,$,J,Y));case 27:return Oe.abrupt("return",Oe.sent);case 28:case"end":return Oe.stop()}},null,this)},g._getFileSize=function(w){return v.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:if(!l.buffer(w)){X.next=4;break}return X.abrupt("return",w.length);case 4:if(!(x(w)||b(w))){X.next=6;break}return X.abrupt("return",w.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return X.stop()}},null,this)};var E=h("stream"),A=E.Readable;function N(M,w){if(!(this instanceof N))return new N(M,w);A.call(this,w),this.file=M,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}s.inherits(N,A),N.prototype.readFileAndPush=function(w){if(this.fileBuffer)for(var Y=!0;Y&&this.fileBuffer&&this.start<this.fileBuffer.length;){var X=this.start,P=X+w;P=P>this.fileBuffer.length?this.fileBuffer.length:P,this.start=P,Y=this.push(this.fileBuffer.slice(X,P))}},N.prototype._read=function(w){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 Y=16*1024;w=w||Y;var X=this;this.reader.onload=function(H){X.fileBuffer=m.from(new Uint8Array(H.target.result)),X.file=null,X.readFileAndPush(w)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(w)},g._createStream=function(w,Y,X){if(x(w)||b(w))return new N(w.slice(Y,X));throw new Error("_createStream requires File/Blob.")},g._getPartSize=function(w,Y){var X=10*1e3,P=1024*1024;return Y?Math.max(Math.ceil(w/X),Y):P},g._divideParts=function(w,Y){for(var X=Math.ceil(w/Y),P=[],H=0;H<X;H++){var G=Y*H,$=Math.min(G+Y,w);P.push({start:G,end:$})}return P}}).call(this,h("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(h,F,o){"use strict";var m=h("babel-runtime/core-js/promise"),a=l(m),D=h("babel-runtime/core-js/object/keys"),O=l(D),_=h("babel-runtime/core-js/object/assign"),y=l(_),v=h("babel-runtime/regenerator"),c=l(v);function l(X){return X&&X.__esModule?X:{default:X}}var s=h("utility"),r=h("fs"),d=h("is-type-of"),u=h("url"),f=h("copy-to"),x=h("path"),C=h("mime"),b=h("../common/callback"),g=h("../common/signUtils"),E=h("merge-descriptors"),A=h("../common/utils/isBlob"),N=A.isBlob,M=h("../common/utils/isFile"),w=M.isFile,Y=o;Y.append=function(P,H,G){var $;return c.default.async(function(de){for(;;)switch(de.prev=de.next){case 0:return G=G||{},G.position===void 0&&(G.position="0"),G.subres={append:"",position:G.position},G.method="POST",de.next=6,c.default.awrap(this.put(P,H,G));case 6:return $=de.sent,$.nextAppendPosition=$.res.headers["x-oss-next-append-position"],de.abrupt("return",$);case 9:case"end":return de.stop()}},null,this)},Y.put=function(P,H,G){var $,he,de,J,fe,q,U;return c.default.async(function(L){for(;;)switch(L.prev=L.next){case 0:if($=void 0,G=G||{},P=this._objectName(P),!d.buffer(H)){L.next=7;break}$=H,L.next=33;break;case 7:if(!(N(H)||w(H))){L.next=32;break}return G.mime||(w(H)?G.mime=C.getType(x.extname(H.name)):G.mime=H.type),he=this._createStream(H,0,H.size),L.next=12,c.default.awrap(this._getFileSize(H));case 12:return G.contentLength=L.sent,L.prev=13,L.next=16,c.default.awrap(this.putStream(P,he,G));case 16:return de=L.sent,L.abrupt("return",de);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,c.default.awrap(this.put(P,H,G));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 G.headers=G.headers||{},this._convertMetaToHeaders(G.meta,G.headers),J=G.method||"PUT",fe=this._objectRequestParams(J,P,G),b.encodeCallback(fe,G),fe.mime=G.mime,fe.content=$,fe.successStatuses=[200],L.next=43,c.default.awrap(this.request(fe));case 43:return q=L.sent,U={name:P,url:this._objectUrl(P),res:q.res},fe.headers&&fe.headers["x-oss-callback"]&&(U.data=JSON.parse(q.data.toString())),L.abrupt("return",U);case 47:case"end":return L.stop()}},null,this,[[13,20]])},Y.putStream=function(P,H,G){var $,he,de,J;return c.default.async(function(q){for(;;)switch(q.prev=q.next){case 0:return G=G||{},G.headers=G.headers||{},P=this._objectName(P),G.contentLength?G.headers["Content-Length"]=G.contentLength:G.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(G.meta,G.headers),$=G.method||"PUT",he=this._objectRequestParams($,P,G),b.encodeCallback(he,G),he.mime=G.mime,he.stream=H,he.successStatuses=[200],q.next=13,c.default.awrap(this.request(he));case 13:return de=q.sent,J={name:P,url:this._objectUrl(P),res:de.res},he.headers&&he.headers["x-oss-callback"]&&(J.data=JSON.parse(de.data.toString())),q.abrupt("return",J);case 17:case"end":return q.stop()}},null,this)},E(Y,h("../common/object/copyObject")),E(Y,h("../common/object/getObjectTagging")),E(Y,h("../common/object/putObjectTagging")),E(Y,h("../common/object/deleteObjectTagging")),E(Y,h("../common/image")),E(Y,h("../common/object/getBucketVersions")),E(Y,h("../common/object/getACL")),E(Y,h("../common/object/putACL")),E(Y,h("../common/object/head")),E(Y,h("../common/object/delete")),E(Y,h("../common/object/get")),E(Y,h("../common/object/putSymlink")),E(Y,h("../common/object/getSymlink")),E(Y,h("../common/object/deleteMulti")),E(Y,h("../common/object/getObjectMeta")),Y.putMeta=function(P,H,G){var $;return c.default.async(function(de){for(;;)switch(de.prev=de.next){case 0:return de.next=2,c.default.awrap(this.copy(P,P,{meta:H||{},timeout:G&&G.timeout,ctx:G&&G.ctx}));case 2:return $=de.sent,de.abrupt("return",$);case 4:case"end":return de.stop()}},null,this)},Y.list=function(P,H){var G,$,he,de,J;return c.default.async(function(q){for(;;)switch(q.prev=q.next){case 0:return G=this._objectRequestParams("GET","",H),G.query=P,G.xmlResponse=!0,G.successStatuses=[200],q.next=6,c.default.awrap(this.request(G));case 6:return $=q.sent,he=$.data.Contents,de=this,he&&(Array.isArray(he)||(he=[he]),he=he.map(function(U){return{name:U.Key,url:de._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}}})),J=$.data.CommonPrefixes||null,J&&(Array.isArray(J)||(J=[J]),J=J.map(function(U){return U.Prefix})),q.abrupt("return",{res:$.res,objects:he,prefixes:J,nextMarker:$.data.NextMarker||null,isTruncated:$.data.IsTruncated==="true"});case 13:case"end":return q.stop()}},null,this)},Y.restore=function(P,H){var G,$;return c.default.async(function(de){for(;;)switch(de.prev=de.next){case 0:return H=H||{},H.subres=(0,y.default)({restore:""},H.subres),H.versionId&&(H.subres.versionId=H.versionId),G=this._objectRequestParams("POST",P,H),G.successStatuses=[202],de.next=7,c.default.awrap(this.request(G));case 7:return $=de.sent,de.abrupt("return",{res:$.res});case 9:case"end":return de.stop()}},null,this)},Y.signatureUrl=function(P,H){H=H||{},P=this._objectName(P),H.method=H.method||"GET";var G=s.timestamp()+(H.expires||1800),$={bucket:this.options.bucket,object:P},he=this._getResource($);this.options.stsToken&&(H["security-token"]=this.options.stsToken);var de=g._signatureForURL(this.options.accessKeySecret,H,he,G),J=u.parse(this._getReqUrl($));return J.query={OSSAccessKeyId:this.options.accessKeyId,Expires:G,Signature:de.Signature},f(de.subResource).to(J.query),J.format()},Y.getObjectUrl=function(P,H){return H?H[H.length-1]!=="/"&&(H+="/"):H=this.options.endpoint.format(),H+this._escape(this._objectName(P))},Y._objectUrl=function(P){return this._getReqUrl({bucket:this.options.bucket,object:P})},Y.generateObjectUrl=function(X,P){if(P)P[P.length-1]!=="/"&&(P+="/");else{P=this.options.endpoint.format();var H=u.parse(P),G=this.options.bucket;H.hostname=G+"."+H.hostname,H.host=G+"."+H.host,P=H.format()}return P+this._escape(this._objectName(X))},Y._objectRequestParams=function(P,H,G){if(!this.options.bucket)throw new Error("Please create a bucket first");G=G||{},H=this._objectName(H);var $={object:H,bucket:this.options.bucket,method:P,subres:G&&G.subres,timeout:G&&G.timeout,ctx:G&&G.ctx};return G.headers&&($.headers={},f(G.headers).to($.headers)),$},Y._objectName=function(P){return P.replace(/^\/+/,"")},Y._convertMetaToHeaders=function(P,H){if(!P)return;(0,O.default)(P).forEach(function(G){H["x-oss-meta-"+G]=P[G]})},Y._deleteFileSafe=function(P){var H=this;return new a.default(function(G){r.exists(P,function($){$?r.unlink(P,function(he){he&&H.debug("unlink %j error: %s",P,he,"error"),G()}):G()})})}},{"../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(h,F,o){"use strict";o.version="6.10.0"},{}],6:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=D(m);function D(v){return v&&v.__esModule?v:{default:v}}var O=h("../utils/checkBucketName"),_=O.checkBucketName,y=o;y.deleteBucketLifecycle=function(c,l){var s,r;return a.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return _(c),s=this._bucketRequestParams("DELETE",c,"lifecycle",l),s.successStatuses=[204],u.next=5,a.default.awrap(this.request(s));case 5:return r=u.sent,u.abrupt("return",{res:r.res});case 7:case"end":return u.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=D(m);function D(v){return v&&v.__esModule?v:{default:v}}var O=h("../utils/checkBucketName"),_=O.checkBucketName,y=o;y.deleteBucketWebsite=function(c,l){var s,r;return a.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return _(c),s=this._bucketRequestParams("DELETE",c,"website",l),s.successStatuses=[204],u.next=5,a.default.awrap(this.request(s));case 5:return r=u.sent,u.abrupt("return",{res:r.res});case 7:case"end":return u.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=D(m);function D(r){return r&&r.__esModule?r:{default:r}}var O=h("../utils/checkBucketName"),_=O.checkBucketName,y=h("../utils/isArray"),v=y.isArray,c=h("../utils/formatObjKey"),l=c.formatObjKey,s=o;s.getBucketLifecycle=function(d,u){var f,x,C;return a.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return _(d),f=this._bucketRequestParams("GET",d,"lifecycle",u),f.successStatuses=[200],f.xmlResponse=!0,g.next=6,a.default.awrap(this.request(f));case 6:return x=g.sent,C=x.data.Rule||null,C&&(v(C)||(C=[C]),C=C.map(function(E){return E.ID&&(E.id=E.ID,delete E.ID),E.Tag&&!v(E.Tag)&&(E.Tag=[E.Tag]),l(E,"firstLowerCase")})),g.abrupt("return",{rules:C,res:x.res});case 10:case"end":return g.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=D(m);function D(v){return v&&v.__esModule?v:{default:v}}var O=h("../utils/checkBucketName"),_=O.checkBucketName,y=o;y.getBucketVersioning=function(c,l){var s,r,d;return a.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return _(c),s=this._bucketRequestParams("GET",c,"versioning",l),s.xmlResponse=!0,s.successStatuses=[200],f.next=6,a.default.awrap(this.request(s));case 6:return r=f.sent,d=r.data.Status,f.abrupt("return",{status:r.status,versionStatus:d,res:r.res});case 9:case"end":return f.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=D(m);function D(l){return l&&l.__esModule?l:{default:l}}var O=h("../utils/checkBucketName"),_=O.checkBucketName,y=h("../utils/isObject"),v=y.isObject,c=o;c.getBucketWebsite=function(s,r){var d,u,f;return a.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:return _(s),d=this._bucketRequestParams("GET",s,"website",r),d.successStatuses=[200],d.xmlResponse=!0,C.next=6,a.default.awrap(this.request(d));case 6:return u=C.sent,f=[],u.data.RoutingRules&&u.data.RoutingRules.RoutingRule&&(v(u.data.RoutingRules.RoutingRule)?f=[u.data.RoutingRules.RoutingRule]:f=u.data.RoutingRules.RoutingRule),C.abrupt("return",{index:u.data.IndexDocument&&u.data.IndexDocument.Suffix||"",supportSubDir:u.data.IndexDocument&&u.data.IndexDocument.SupportSubDir||"false",type:u.data.IndexDocument&&u.data.IndexDocument.Type,routingRules:f,error:u.data.ErrorDocument&&u.data.ErrorDocument.Key||null,res:u.res});case 10:case"end":return C.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=D(m);function D(w){return w&&w.__esModule?w:{default:w}}var O=h("../utils/checkBucketName"),_=O.checkBucketName,y=h("../utils/isArray"),v=y.isArray,c=h("../utils/deepCopy"),l=c.deepCopy,s=h("../utils/isObject"),r=s.isObject,d=h("../utils/obj2xml"),u=d.obj2xml,f=h("../utils/checkObjectTag"),x=f.checkObjectTag,C=h("../utils/getStrBytesCount"),b=C.getStrBytesCount,g=o;g.putBucketLifecycle=function(Y,X,P){var H,G,$,he,de;return a.default.async(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(_(Y),v(X)){fe.next=3;break}throw new Error("rules must be Array");case 3:return H=this._bucketRequestParams("PUT",Y,"lifecycle",P),G=[],$={LifecycleConfiguration:{Rule:G}},X.forEach(function(q){E(q),M(q),q.id&&(q.ID=q.id,delete q.id),G.push(q)}),he=u($,{headers:!0,firstUpperCase:!0}),H.content=he,H.mime="xml",H.successStatuses=[200],fe.next=13,a.default.awrap(this.request(H));case 13:return de=fe.sent,fe.abrupt("return",{res:de.res});case 15:case"end":return fe.stop()}},null,this)};function E(w){w.days&&(w.expiration={days:w.days}),w.date&&(w.expiration={createdBeforeDate:w.date})}function A(w,Y){var X=w.days,P=w.createdBeforeDate;if(!X&&!P)throw new Error(Y+" must includes days or createdBeforeDate");if(X&&!/^[1-9][0-9]*$/.test(X))throw new Error("days must be a positive integer");if(P&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(P))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function N(w){if(!v(w)&&!r(w))throw new Error("tag must be Object or Array");w=r(w)?[w]:w;var Y={},X=l(w);X.forEach(function(P){Y[P.key]=P.value}),x(Y)}function M(w){if(w.id&&b(w.id)>255)throw new Error("ID is composed of 255 bytes at most");if(w.prefix===""||w.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(w.status))throw new Error("Status must be Enabled or Disabled");if(w.transition){if(!["IA","Archive"].includes(w.transition.storageClass))throw new Error("StorageClass must be IA or Archive");A(w.transition,"Transition")}if(w.expiration){if(!w.expiration.expiredObjectDeleteMarker)A(w.expiration,"Expiration");else if(w.expiration.days||w.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(w.abortMultipartUpload&&A(w.abortMultipartUpload,"AbortMultipartUpload"),!w.expiration&&!w.abortMultipartUpload&&!w.transition&&!w.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(w.tag){if(w.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");N(w.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(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=D(m);function D(l){return l&&l.__esModule?l:{default:l}}var O=h("../utils/checkBucketName"),_=O.checkBucketName,y=h("../utils/obj2xml"),v=y.obj2xml,c=o;c.putBucketVersioning=function(s,r){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u,f,x;return a.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:if(_(s),["Enabled","Suspended"].includes(r)){b.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return u=this._bucketRequestParams("PUT",s,"versioning",d),f={VersioningConfiguration:{Status:r}},u.mime="xml",u.content=v(f,{headers:!0}),b.next=9,a.default.awrap(this.request(u));case 9:return x=b.sent,b.abrupt("return",{res:x.res,status:x.status});case 11:case"end":return b.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=D(m);function D(r){return r&&r.__esModule?r:{default:r}}var O=h("../utils/checkBucketName"),_=O.checkBucketName,y=h("../utils/obj2xml"),v=y.obj2xml,c=h("../utils/isArray"),l=c.isArray,s=o;s.putBucketWebsite=function(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=arguments[2],x,C,b,g,E;return a.default.async(function(N){for(;;)switch(N.prev=N.next){case 0:if(_(d),x=this._bucketRequestParams("PUT",d,"website",f),C={Suffix:u.index||"index.html"},b={IndexDocument:C},g={WebsiteConfiguration:b},u.supportSubDir&&(C.SupportSubDir=u.supportSubDir),u.type&&(C.Type=u.type),u.error&&(b.ErrorDocument={Key:u.error}),!(u.routingRules!==void 0)){N.next=12;break}if(l(u.routingRules)){N.next=11;break}throw new Error("RoutingRules must be Array");case 11:b.RoutingRules={RoutingRule:u.routingRules};case 12:return g=v(g),x.content=g,x.mime="xml",x.successStatuses=[200],N.next=18,a.default.awrap(this.request(x));case 18:return E=N.sent,N.abrupt("return",{res:E.res});case 20:case"end":return N.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(h,F,o){(function(m){"use strict";var a=h("babel-runtime/core-js/object/keys"),D=y(a),O=h("babel-runtime/core-js/json/stringify"),_=y(O);function y(v){return v&&v.__esModule?v:{default:v}}o.encodeCallback=function(c,l){if(c.headers=c.headers||{},!Object.prototype.hasOwnProperty.call(c.headers,"x-oss-callback")&&l.callback){var s={callbackUrl:encodeURI(l.callback.url),callbackBody:l.callback.body};l.callback.host&&(s.callbackHost=l.callback.host),l.callback.contentType&&(s.callbackBodyType=l.callback.contentType);var r=m.from((0,_.default)(s)).toString("base64");if(c.headers["x-oss-callback"]=r,l.callback.customValue){var d={};(0,D.default)(l.callback.customValue).forEach(function(u){d["x:"+u]=l.callback.customValue[u]}),c.headers["x-oss-callback-var"]=m.from((0,_.default)(d)).toString("base64")}}}}).call(this,h("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/assign"),a=D(m);function D(s){return s&&s.__esModule?s:{default:s}}var O=h("humanize-ms"),_=h("url"),y=h("../utils/checkBucketName"),v=y.checkBucketName;function c(s,r){var d=_.parse(s);if(d.protocol||(d=_.parse("http"+(r?"s":"")+"://"+s)),d.protocol!=="http:"&&d.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return d}function l(s,r,d){var u=d?"https://":"http://",f=r?"-internal.aliyuncs.com":".aliyuncs.com",x="vpc100-oss-cn-";return s.substr(0,x.length)===x&&(f=".aliyuncs.com"),_.parse(u+s+f)}F.exports=function(s){if(!s||!s.accessKeyId||!s.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");s.bucket&&v(s.bucket);var r=(0,a.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},s);if(r.accessKeyId=r.accessKeyId.trim(),r.accessKeySecret=r.accessKeySecret.trim(),r.timeout&&(r.timeout=O(r.timeout)),r.endpoint)r.endpoint=c(r.endpoint,r.secure);else if(r.region)r.endpoint=l(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(h,F,o){"use strict";var m=h("merge-descriptors"),a=o;m(a,h("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=D(m);function D(r){return r&&r.__esModule?r:{default:r}}var O=h("../utils/checkBucketName"),_=O.checkBucketName,y=h("querystring"),v=h("js-base64"),c=v.Base64.encode,l=o;l.processObjectSave=function(d,u,f,x){var C,b,g,E;return a.default.async(function(N){for(;;)switch(N.prev=N.next){case 0:return s(d,"sourceObject"),s(u,"targetObject"),s(f,"process"),u=this._objectName(u),x&&_(x),C=this._objectRequestParams("POST",d,{subres:"x-oss-process"}),b=x?",b_"+c(x):"",u=c(u),g={"x-oss-process":f+"|sys/saveas,o_"+u+b},C.content=y.stringify(g),N.next=12,a.default.awrap(this.request(C));case 12:return E=N.sent,N.abrupt("return",{res:E.res,status:E.res.status});case 14:case"end":return N.stop()}},null,this)};function s(r,d){if(!r)throw new Error(d+" is required");if(typeof r!="string")throw new Error(d+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=D(m);function D(l){return l&&l.__esModule?l:{default:l}}var O=h("copy-to"),_=h("./callback"),y=h("./utils/deepCopy"),v=y.deepCopy,c=o;c.listUploads=function(s,r){var d,u,f,x;return a.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return r=r||{},d={},O(r).to(d),d.subres="uploads",u=this._objectRequestParams("GET","",d),u.query=s,u.xmlResponse=!0,u.successStatuses=[200],b.next=10,a.default.awrap(this.request(u));case 10:return f=b.sent,x=f.data.Upload||[],Array.isArray(x)||(x=[x]),x=x.map(function(g){return{name:g.Key,uploadId:g.UploadId,initiated:g.Initiated}}),b.abrupt("return",{res:f.res,uploads:x,bucket:f.data.Bucket,nextKeyMarker:f.data.NextKeyMarker,nextUploadIdMarker:f.data.NextUploadIdMarker,isTruncated:f.data.IsTruncated==="true"});case 15:case"end":return b.stop()}},null,this)},c.listParts=function(s,r,d,u){var f,x,C;return a.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return u=u||{},f={},O(u).to(f),f.subres={uploadId:r},x=this._objectRequestParams("GET",s,f),x.query=d,x.xmlResponse=!0,x.successStatuses=[200],g.next=10,a.default.awrap(this.request(x));case 10:return C=g.sent,g.abrupt("return",{res:C.res,uploadId:C.data.UploadId,bucket:C.data.Bucket,name:C.data.Key,partNumberMarker:C.data.PartNumberMarker,nextPartNumberMarker:C.data.NextPartNumberMarker,maxParts:C.data.MaxParts,isTruncated:C.data.IsTruncated,parts:C.data.Part||[]});case 12:case"end":return g.stop()}},null,this)},c.abortMultipartUpload=function(s,r,d){var u,f,x;return a.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return this._stop(),d=d||{},u={},O(d).to(u),u.subres={uploadId:r},f=this._objectRequestParams("DELETE",s,u),f.successStatuses=[204],b.next=9,a.default.awrap(this.request(f));case 9:return x=b.sent,b.abrupt("return",{res:x.res});case 11:case"end":return b.stop()}},null,this)},c.initMultipartUpload=function(s,r){var d,u,f;return a.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:return r=r||{},d={},O(r).to(d),d.headers=d.headers||{},this._convertMetaToHeaders(r.meta,d.headers),d.subres="uploads",u=this._objectRequestParams("POST",s,d),u.mime=r.mime,u.xmlResponse=!0,u.successStatuses=[200],C.next=12,a.default.awrap(this.request(u));case 12:return f=C.sent,C.abrupt("return",{res:f.res,bucket:f.data.Bucket,name:f.data.Key,uploadId:f.data.UploadId});case 14:case"end":return C.stop()}},null,this)},c.uploadPart=function(s,r,d,u,f,x,C){var b;return a.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:return b={stream:this._createStream(u,f,x),size:x-f},E.next=3,a.default.awrap(this._uploadPart(s,r,d,b,C));case 3:return E.abrupt("return",E.sent);case 4:case"end":return E.stop()}},null,this)},c.completeMultipartUpload=function(s,r,d,u){var f,x,C,b,g,E,A,N;return a.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:for(f=d.concat().sort(function(Y,X){return Y.number-X.number}).filter(function(Y,X,P){return!X||Y.number!==P[X-1].number}),x=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,C=0;C<f.length;C++)b=f[C],x+=`<Part>
|
|
|
`,x+="<PartNumber>"+b.number+`</PartNumber>
|
|
|
`,x+="<ETag>"+b.etag+`</ETag>
|
|
|
`,x+=`</Part>
|
|
|
`;return x+="</CompleteMultipartUpload>",u=u||{},g={},g=v(u),g.headers&&delete g.headers["x-oss-server-side-encryption"],g.subres={uploadId:r},E=this._objectRequestParams("POST",s,g),_.encodeCallback(E,g),E.mime="xml",E.content=x,E.headers&&E.headers["x-oss-callback"]||(E.xmlResponse=!0),E.successStatuses=[200],w.next=17,a.default.awrap(this.request(E));case 17:return A=w.sent,N={res:A.res,bucket:E.bucket,name:s,etag:A.res.headers.etag},E.headers&&E.headers["x-oss-callback"]&&(N.data=JSON.parse(A.data.toString())),w.abrupt("return",N);case 21:case"end":return w.stop()}},null,this)},c._uploadPart=function(s,r,d,u,f){var x,C,b;return a.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:return f=f||{},x={},O(f).to(x),x.headers={"Content-Length":u.size},x.subres={partNumber:d,uploadId:r},C=this._objectRequestParams("PUT",s,x),C.mime=x.mime,C.stream=u.stream,C.successStatuses=[200],E.next=11,a.default.awrap(this.request(C));case 11:if(b=E.sent,b.res.headers.etag){E.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 u.stream=null,C.stream=null,E.abrupt("return",{name:s,etag:b.res.headers.etag,res:b.res});case 17:case"end":return E.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=v(m),D=h("babel-runtime/core-js/object/keys"),O=v(D),_=h("babel-runtime/helpers/typeof"),y=v(_);function v(r){return r&&r.__esModule?r:{default:r}}var c=h("../utils/checkBucketName"),l=c.checkBucketName,s=o;s.copy=function(d,u,f,x){var C,b,g;return a.default.async(function(A){for(;;)switch(A.prev=A.next){case 0:return(typeof f=="undefined"?"undefined":(0,y.default)(f))==="object"&&(x=f),x=x||{},x.headers=x.headers||{},(0,O.default)(x.headers).forEach(function(N){x.headers["x-oss-copy-source-"+N.toLowerCase()]=x.headers[N]}),x.meta&&(x.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(x.meta,x.headers),u=this._getSourceName(u,f),x.versionId&&(u=u+"?versionId="+x.versionId),x.headers["x-oss-copy-source"]=u,C=this._objectRequestParams("PUT",d,x),C.xmlResponse=!0,C.successStatuses=[200,304],A.next=14,a.default.awrap(this.request(C));case 14:return b=A.sent,g=b.data,g&&(g={etag:g.ETag,lastModified:g.LastModified}),A.abrupt("return",{data:g,res:b.res});case 18:case"end":return A.stop()}},null,this)},s._getSourceName=function(d,u){return typeof u=="string"?d=this._objectName(d):d[0]!=="/"?u=this.options.bucket:(u=d.replace(/\/(.+?)(\/.*)/,"$1"),d=d.replace(/(\/.+?\/)(.*)/,"$2")),l(u),d=encodeURI(d),d="/"+u+"/"+d,d}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=_(m),D=h("babel-runtime/core-js/object/assign"),O=_(D);function _(v){return v&&v.__esModule?v:{default:v}}var y=o;y.delete=function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,r;return a.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return l.subres=(0,O.default)({},l.subres),l.versionId&&(l.subres.versionId=l.versionId),s=this._objectRequestParams("DELETE",c,l),s.successStatuses=[204],u.next=6,a.default.awrap(this.request(s));case 6:return r=u.sent,u.abrupt("return",{res:r.res});case 8:case"end":return u.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=_(m),D=h("babel-runtime/core-js/object/assign"),O=_(D);function _(s){return s&&s.__esModule?s:{default:s}}var y=h("utility"),v=h("../utils/obj2xml"),c=v.obj2xml,l=o;l.deleteMulti=function(r){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,f,x,C,b,g,E,A,N,M,w,Y;return a.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:if(u=[],!(!r||!r.length)){P.next=3;break}throw new Error("names is required");case 3:for(f=0;f<r.length;f++)x={},typeof r[f]=="string"?x.Key=y.escape(this._objectName(r[f])):(C=r[f],b=C.key,g=C.versionId,x.Key=y.escape(this._objectName(b)),x.VersionId=g),u.push(x);return E={Delete:{Quiet:!!d.quiet,Object:u}},A=c(E,{headers:!0}),d.subres=(0,O.default)({delete:""},d.subres),d.versionId&&(d.subres.versionId=d.versionId),N=this._objectRequestParams("POST","",d),N.mime="xml",N.content=A,N.xmlResponse=!0,N.successStatuses=[200],P.next=15,a.default.awrap(this.request(N));case 15:return M=P.sent,w=M.data,Y=w&&w.Deleted||null,Y&&(Array.isArray(Y)||(Y=[Y])),P.abrupt("return",{res:M.res,deleted:Y||[]});case 20:case"end":return P.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=_(m),D=h("babel-runtime/core-js/object/assign"),O=_(D);function _(v){return v&&v.__esModule?v:{default:v}}var y=o;y.deleteObjectTagging=function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,r;return a.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return l.subres=(0,O.default)({tagging:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),c=this._objectName(c),s=this._objectRequestParams("DELETE",c,l),s.successStatuses=[204],u.next=7,a.default.awrap(this.request(s));case 7:return r=u.sent,u.abrupt("return",{status:r.status,res:r.res});case 9:case"end":return u.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=_(m),D=h("babel-runtime/core-js/object/assign"),O=_(D);function _(l){return l&&l.__esModule?l:{default:l}}var y=h("fs"),v=h("is-type-of"),c=o;c.get=function(s,r){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u,f,x,C;return a.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return u=null,f=!1,v.writableStream(r)?u=r:v.string(r)?(u=y.createWriteStream(r),f=!0):d=r,d=d||{},d.subres=(0,O.default)({},d.subres),d.versionId&&(d.subres.versionId=d.versionId),d.process&&(d.subres["x-oss-process"]=d.process),x=void 0,g.prev=8,C=this._objectRequestParams("GET",s,d),C.writeStream=u,C.successStatuses=[200,206,304],g.next=14,a.default.awrap(this.request(C));case 14:x=g.sent,f&&u.destroy(),g.next=25;break;case 18:if(g.prev=18,g.t0=g.catch(8),!f){g.next=24;break}return u.destroy(),g.next=24,a.default.awrap(this._deleteFileSafe(r));case 24:throw g.t0;case 25:return g.abrupt("return",{res:x.res,content:x.data});case 26:case"end":return g.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=_(m),D=h("babel-runtime/core-js/object/assign"),O=_(D);function _(v){return v&&v.__esModule?v:{default:v}}var y=o;y.getACL=function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,r;return a.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return l.subres=(0,O.default)({acl:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),c=this._objectName(c),s=this._objectRequestParams("GET",c,l),s.successStatuses=[200],s.xmlResponse=!0,u.next=8,a.default.awrap(this.request(s));case 8:return r=u.sent,u.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 u.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/keys"),a=v(m),D=h("babel-runtime/regenerator"),O=v(D),_=h("babel-runtime/core-js/object/assign"),y=v(_);function v(C){return C&&C.__esModule?C:{default:C}}var c=o,l=h("../utils/isObject"),s=l.isObject,r=h("../utils/isArray"),d=r.isArray;c.getBucketVersions=u,c.listObjectVersions=u;function u(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g,E,A,N,M,w;return O.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:if(!(C.versionIdMarker&&C.keyMarker===void 0)){X.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return b.subres=(0,y.default)({versions:""},b.subres),b.versionId&&(b.subres.versionId=b.versionId),g=this._objectRequestParams("GET","",b),g.xmlResponse=!0,g.successStatuses=[200],g.query=x(C),X.next=10,O.default.awrap(this.request(g));case 10:return E=X.sent,A=E.data.Version||[],N=E.data.DeleteMarker||[],M=this,A&&(Array.isArray(A)||(A=[A]),A=A.map(function(P){return{name:P.Key,url:M._objectUrl(P.Key),lastModified:P.LastModified,isLatest:P.IsLatest==="true",versionId:P.VersionId,etag:P.ETag,type:P.Type,size:Number(P.Size),storageClass:P.StorageClass,owner:{id:P.Owner.ID,displayName:P.Owner.DisplayName}}})),N&&(d(N)||(N=[N]),N=N.map(function(P){return{name:P.Key,lastModified:P.LastModified,versionId:P.VersionId,owner:{id:P.Owner.ID,displayName:P.Owner.DisplayName}}})),w=E.data.CommonPrefixes||null,w&&(d(w)||(w=[w]),w=w.map(function(P){return P.Prefix})),X.abrupt("return",{res:E.res,objects:A,deleteMarker:N,prefixes:w,nextMarker:E.data.NextMarker||null,NextVersionIdMarker:E.data.NextVersionIdMarker||null,isTruncated:E.data.IsTruncated==="true"});case 19:case"end":return X.stop()}},null,this)}function f(C){return C.replace(/([A-Z])/g,"-$1").toLowerCase()}function x(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b={};return s(C)&&(0,a.default)(C).forEach(function(g){b[f(g)]=C[g]}),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(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=_(m),D=h("babel-runtime/core-js/object/assign"),O=_(D);function _(v){return v&&v.__esModule?v:{default:v}}var y=o;y.getObjectMeta=function(c,l){var s,r;return a.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return l=l||{},c=this._objectName(c),l.subres=(0,O.default)({objectMeta:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),s=this._objectRequestParams("HEAD",c,l),s.successStatuses=[200],u.next=8,a.default.awrap(this.request(s));case 8:return r=u.sent,u.abrupt("return",{status:r.status,res:r.res});case 10:case"end":return u.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=_(m),D=h("babel-runtime/core-js/object/assign"),O=_(D);function _(l){return l&&l.__esModule?l:{default:l}}var y=o,v=h("../utils/isObject"),c=v.isObject;y.getObjectTagging=function(s){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d,u,f,x,C;return a.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return r.subres=(0,O.default)({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),s=this._objectName(s),d=this._objectRequestParams("GET",s,r),d.successStatuses=[200],g.next=7,a.default.awrap(this.request(d));case 7:return u=g.sent,g.next=10,a.default.awrap(this.parseXML(u.data));case 10:return f=g.sent,x=f.TagSet.Tag,x=x&&c(x)?[x]:x||[],C={},x.forEach(function(E){C[E.Key]=E.Value}),g.abrupt("return",{status:u.status,res:u.res,tag:C});case 16:case"end":return g.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=_(m),D=h("babel-runtime/core-js/object/assign"),O=_(D);function _(v){return v&&v.__esModule?v:{default:v}}var y=o;y.getSymlink=function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,r,d;return a.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return l.subres=(0,O.default)({symlink:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),c=this._objectName(c),s=this._objectRequestParams("GET",c,l),s.successStatuses=[200],f.next=7,a.default.awrap(this.request(s));case 7:return r=f.sent,d=r.res.headers["x-oss-symlink-target"],f.abrupt("return",{targetName:decodeURIComponent(d),res:r.res});case 10:case"end":return f.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=v(m),D=h("babel-runtime/core-js/object/keys"),O=v(D),_=h("babel-runtime/core-js/object/assign"),y=v(_);function v(l){return l&&l.__esModule?l:{default:l}}var c=o;c.head=function(s){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d,u,f;return a.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:return r.subres=(0,y.default)({},r.subres),r.versionId&&(r.subres.versionId=r.versionId),d=this._objectRequestParams("HEAD",s,r),d.successStatuses=[200,304],C.next=6,a.default.awrap(this.request(d));case 6:return u=C.sent,f={meta:null,res:u.res,status:u.status},u.status===200&&(0,O.default)(u.headers).forEach(function(b){b.indexOf("x-oss-meta-")===0&&(f.meta||(f.meta={}),f.meta[b.substring(11)]=u.headers[b])}),C.abrupt("return",f);case 10:case"end":return C.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=_(m),D=h("babel-runtime/core-js/object/assign"),O=_(D);function _(v){return v&&v.__esModule?v:{default:v}}var y=o;y.putACL=function(c,l,s){var r,d;return a.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return s=s||{},s.subres=(0,O.default)({acl:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),s.headers=s.headers||{},s.headers["x-oss-object-acl"]=l,c=this._objectName(c),r=this._objectRequestParams("PUT",c,s),r.successStatuses=[200],f.next=10,a.default.awrap(this.request(r));case 10:return d=f.sent,f.abrupt("return",{res:d.res});case 12:case"end":return f.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=v(m),D=h("babel-runtime/core-js/object/keys"),O=v(D),_=h("babel-runtime/core-js/object/assign"),y=v(_);function v(u){return u&&u.__esModule?u:{default:u}}var c=h("../utils/obj2xml"),l=c.obj2xml,s=h("../utils/checkObjectTag"),r=s.checkObjectTag,d=o;d.putObjectTagging=function(f,x){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b,g,E;return a.default.async(function(N){for(;;)switch(N.prev=N.next){case 0:return r(x),C.subres=(0,y.default)({tagging:""},C.subres),C.versionId&&(C.subres.versionId=C.versionId),f=this._objectName(f),b=this._objectRequestParams("PUT",f,C),b.successStatuses=[200],x=(0,O.default)(x).map(function(M){return{Key:M,Value:x[M]}}),g={Tagging:{TagSet:{Tag:x}}},b.mime="xml",b.content=l(g),N.next=12,a.default.awrap(this.request(b));case 12:return E=N.sent,N.abrupt("return",{res:E.res,status:E.status});case 14:case"end":return N.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(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=_(m),D=h("babel-runtime/core-js/object/assign"),O=_(D);function _(v){return v&&v.__esModule?v:{default:v}}var y=o;y.putSymlink=function(c,l,s){var r,d;return a.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return s=s||{},s.headers=s.headers||{},l=this._escape(this._objectName(l)),this._convertMetaToHeaders(s.meta,s.headers),s.headers["x-oss-symlink-target"]=l,s.subres=(0,O.default)({symlink:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),s.storageClass&&(s.headers["x-oss-storage-class"]=s.storageClass),c=this._objectName(c),r=this._objectRequestParams("PUT",c,s),r.successStatuses=[200],f.next=13,a.default.awrap(this.request(r));case 13:return d=f.sent,f.abrupt("return",{res:d.res});case 15:case"end":return f.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(h,F,o){"use strict";var m=h("babel-runtime/regenerator"),a=_(m),D=h("babel-runtime/core-js/promise"),O=_(D);function _(v){return v&&v.__esModule?v:{default:v}}var y=o;y._parallelNode=function(c,l,s,r){var d,u,f,x,C,b,g,E;return a.default.async(function(N){for(;;)switch(N.prev=N.next){case 0:d=this,u=[],f=[],x=c.length/l,C=c.length%l,b=C===0?x:(c.length-C)/l+1,g=1,E=0;case 8:if(!(E<c.length)){N.next=26;break}if(!d.isCancel()){N.next=11;break}return N.abrupt("break",26);case 11:if(r?f.push(s(d,c[E],r)):f.push(s(d,c[E])),!(f.length===l||g===b&&E===c.length-1)){N.next=23;break}return N.prev=13,g+=1,N.next=17,a.default.awrap(O.default.all(f));case 17:N.next=22;break;case 19:N.prev=19,N.t0=N.catch(13),u.push(N.t0);case 22:f=[];case 23:E++,N.next=8;break;case 26:return N.abrupt("return",u);case 27:case"end":return N.stop()}},null,this,[[13,19]])},y._parallel=function(c,l,s){var r=this;return new O.default(function(d){var u=[];if(l<=0||!c){d(u);return}function f(w){return function(){if(w===null)throw new Error("Callback was already called.");var Y=w;w=null;for(var X=arguments.length,P=Array(X),H=0;H<X;H++)P[H]=arguments[H];Y.apply(this,P)}}function x(w){var Y=-1,X=w.length;return function(){return++Y<X&&!r.isCancel()?{value:w[Y],key:Y}:null}}var C=x(c),b=!1,g=0,E=!1;function A(w,Y){g-=1,w?(b=!0,u.push(w),d(u)):Y==={}||b&&g<=0?(b=!0,d(u)):E||(r.isCancel()?d(u):M())}function N(w,Y){s(w).then(function(X){Y(null,X)}).catch(function(X){Y(X)})}function M(){for(E=!0;g<l&&!b&&!r.isCancel();){var w=C();if(w===null||u.length>0){b=!0,g<=0&&d(u);return}g+=1,N(w.value,f(A))}E=!1}M()})},y.cancel=function(c){this.options.cancelFlag=!0,c&&this.abortMultipartUpload(c.name,c.uploadId,c.options)},y.isCancel=function(){return this.options.cancelFlag},y.resetCancelFlag=function(){this.options.cancelFlag=!1},y._stop=function(){this.options.cancelFlag=!0},y._makeCancelEvent=function(){var c={status:0,name:"cancel"};return c}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(h,F,o){(function(m){"use strict";var a=h("babel-runtime/core-js/json/stringify"),D=y(a),O=h("babel-runtime/core-js/object/keys"),_=y(O);function y(l){return l&&l.__esModule?l:{default:l}}var v=h("./../../shims/crypto/crypto.js"),c=h("is-type-of");o.buildCanonicalizedResource=function(s,r){var d=""+s,u="?";if(c.string(r)&&r.trim()!=="")d+=u+r;else if(c.array(r))r.sort(),d+=u+r.join("&");else if(r){var f=function(b,g){return b[0]>g[0]?1:b[0]<g[0]?-1:0},x=function(b){d+=u+b,r[b]&&(d+="="+r[b]),u="&"};(0,_.default)(r).sort(f).forEach(x)}return d},o.buildCanonicalString=function(s,r,d,u){d=d||{};var f=d.headers||{},x="x-oss-",C=[],b={},g=[s.toUpperCase(),f["Content-Md5"]||"",f["Content-Type"]||f["Content-Type".toLowerCase()],u||f["x-oss-date"]];return(0,_.default)(f).forEach(function(E){var A=E.toLowerCase();A.indexOf(x)===0&&(b[A]=String(f[E]).trim())}),(0,_.default)(b).sort().forEach(function(E){C.push(E+":"+b[E])}),g=g.concat(C),g.push(this.buildCanonicalizedResource(r,d.parameters)),g.join(`
|
|
|
`)},o.computeSignature=function(s,r){var d=v.createHmac("sha1",s);return d.update(m.from(r,"utf8")).digest("base64")},o.authorization=function(s,r,d){return"OSS "+s+":"+this.computeSignature(r,d)},o._signatureForURL=function(s){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=arguments[2],u=arguments[3],f={},x=r.subResource,C=x===void 0?{}:x;if(r.process){var b="x-oss-process";C[b]=r.process}if(r.trafficLimit){var g="x-oss-traffic-limit";C[g]=r.trafficLimit}if(r.response&&(0,_.default)(r.response).forEach(function(M){var w="response-"+M.toLowerCase();C[w]=r.response[M]}),(0,_.default)(r).forEach(function(M){var w=M.toLowerCase(),Y=r[M];w.indexOf("x-oss-")===0?f[w]=Y:(w.indexOf("content-md5")===0||w.indexOf("content-type")===0)&&(f[M]=Y)}),Object.prototype.hasOwnProperty.call(r,"security-token")&&(C["security-token"]=r["security-token"]),Object.prototype.hasOwnProperty.call(r,"callback")){var E={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body};if(r.callback.host&&(E.callbackHost=r.callback.host),r.callback.contentType&&(E.callbackBodyType=r.callback.contentType),C.callback=m.from((0,D.default)(E)).toString("base64"),r.callback.customValue){var A={};(0,_.default)(r.callback.customValue).forEach(function(M){A["x:"+M]=r.callback.customValue[M]}),C["callback-var"]=m.from((0,D.default)(A)).toString("base64")}}var N=this.buildCanonicalString(r.method,d,{headers:f,parameters:C},u.toString());return{Signature:this.computeSignature(s,N),subResource:C}}}).call(this,h("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(h,F,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.checkBucketName=void 0,o.checkBucketName=function(m,a){var D=a?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!D.test(m))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/entries"),a=D(m);function D(r){return r&&r.__esModule?r:{default:r}}Object.defineProperty(o,"__esModule",{value:!0}),o.checkObjectTag=void 0;var O=h("./checkValid"),_=O.checkValid,y=h("./isObject"),v=y.isObject,c=[{validator:function(d){if(typeof d!="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 (/)"}],l={key:[].concat(c,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(c,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function s(r){if(!v(r))throw new Error("tag must be Object");var d=(0,a.default)(r);if(d.length>10)throw new Error("maximum of 10 tags for a object");var u=["key","value"];d.forEach(function(f){f.forEach(function(x,C){_(x,l[u[C]])})})}o.checkObjectTag=s},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(h,F,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.checkValid=void 0;function m(a,D){D.forEach(function(O){if(O.validator)O.validator(a);else if(O.pattern&&!O.pattern.test(a))throw new Error(O.msg)})}o.checkValid=m},{}],38:[function(h,F,o){(function(m){"use strict";var a=h("babel-runtime/core-js/object/assign"),D=O(a);function O(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(o,"__esModule",{value:!0}),o.createRequest=void 0;var _=h("./../../../shims/crypto/crypto.js"),y=h("debug")("ali-oss"),v=h("mime"),c=h("dateformat"),l=h("copy-to"),s=h("path");function r(f,x){return f[x]||f[x.toLowerCase()]}function d(f,x){delete f[x],delete f[x.toLowerCase()]}function u(f){var x=new Date;this.options.amendTimeSkewed&&(x=+new Date+this.options.amendTimeSkewed);var C={"x-oss-date":c(x,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(C["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,D.default)(C,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(C["x-oss-security-token"]=this.options.stsToken),l(f.headers).to(C),r(C,"Content-Type")||(f.mime&&f.mime.indexOf("/")>0?C["Content-Type"]=f.mime:C["Content-Type"]=v.getType(f.mime||s.extname(f.object||""))),r(C,"Content-Type")||d(C,"Content-Type"),f.content&&(C["Content-Md5"]=_.createHash("md5").update(m.from(f.content,"utf8")).digest("base64"),C["Content-Length"]||(C["Content-Length"]=f.content.length));var b=this._getResource(f);C.authorization=this.authorization(f.method,b,f.subres,C);var g=this._getReqUrl(f);y("request %s %s, with headers %j, !!stream: %s",f.method,g,C,!!f.stream);var E=f.timeout||this.options.timeout,A={method:f.method,content:f.content,stream:f.stream,headers:C,timeout:E,writeStream:f.writeStream,customResponse:f.customResponse,ctx:f.ctx||this.ctx};return this.agent&&(A.agent=this.agent),this.httpsAgent&&(A.httpsAgent=this.httpsAgent),{url:g,params:A}}o.createRequest=u}).call(this,h("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(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/keys"),a=_(m),D=h("babel-runtime/helpers/typeof"),O=_(D);function _(y){return y&&y.__esModule?y:{default:y}}Object.defineProperty(o,"__esModule",{value:!0}),o.deepCopy=void 0,o.deepCopy=function(y){if(y===null||(typeof y=="undefined"?"undefined":(0,O.default)(y))!=="object")return y;var v=Array.isArray(y)?[]:{};return(0,a.default)(y).forEach(function(c){v[c]=o.deepCopy(y[c])}),v}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/keys"),a=_(m),D=h("babel-runtime/helpers/typeof"),O=_(D);function _(c){return c&&c.__esModule?c:{default:c}}Object.defineProperty(o,"__esModule",{value:!0}),o.formatObjKey=void 0;function y(c,l){if(c===null||(typeof c=="undefined"?"undefined":(0,O.default)(c))!=="object")return c;var s=void 0;if(Array.isArray(c)){s=[];for(var r=0;r<c.length;r++)s.push(y(c[r],l))}else s={},(0,a.default)(c).forEach(function(d){s[v(d,l)]=y(c[d],l)});return s}o.formatObjKey=y;function v(c,l){return l==="firstUpperCase"?c=c.replace(/^./,function(s){return s.toUpperCase()}):l==="firstLowerCase"&&(c=c.replace(/^./,function(s){return s.toLowerCase()})),c}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(h,F,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getStrBytesCount=void 0;function m(a){for(var D=0,O=0;O<a.length;O++){var _=a.charAt(O);/^[\u00-\uff]$/.test(_)?D+=1:D+=2}return D}o.getStrBytesCount=m},{}],42:[function(h,F,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isArray=void 0,o.isArray=function(m){return Object.prototype.toString.call(m)==="[object Array]"}},{}],43:[function(h,F,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isBlob=void 0;function m(a){return typeof Blob!="undefined"&&a instanceof Blob}o.isBlob=m},{}],44:[function(h,F,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isFile=void 0,o.isFile=function(m){return typeof File!="undefined"&&m instanceof File}},{}],45:[function(h,F,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isIP=void 0,o.isIP=function(m){var a=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,D=/^\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 a.test(m)||D.test(m)}},{}],46:[function(h,F,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isObject=void 0,o.isObject=function(m){return Object.prototype.toString.call(m)==="[object Object]"}},{}],47:[function(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/keys"),a=D(m);function D(v){return v&&v.__esModule?v:{default:v}}Object.defineProperty(o,"__esModule",{value:!0}),o.obj2xml=void 0;var O=h("./formatObjKey");function _(v){return Object.prototype.toString.call(v).replace(/(.*? |])/g,"").toLowerCase()}function y(v,c){var l="";return c&&c.headers&&(l=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),c&&c.firstUpperCase&&(v=O.formatObjKey(v,"firstUpperCase")),_(v)==="object"?(0,a.default)(v).forEach(function(s){_(v[s])==="string"||_(v[s])==="number"?l+="<"+s+">"+v[s]+"</"+s+">":_(v[s])==="object"?l+="<"+s+">"+y(v[s])+"</"+s+">":_(v[s])==="array"?l+=v[s].map(function(r){return"<"+s+">"+y(r)+"</"+s+">"}).join(""):l+="<"+s+">"+v[s].toString()+"</"+s+">"}):l+=v.toString(),l}o.obj2xml=y},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(h,F,o){F.exports=m,F.exports.HttpsAgent=m;function m(){}},{}],49:[function(h,F,o){F.exports=h("./register")().Promise},{"./register":51}],50:[function(h,F,o){"use strict";var m="@@any-promise/REGISTRATION",a=null;F.exports=function(D,O){return function(y,v){y=y||null,v=v||{};var c=v.global!==!1;if(a===null&&c&&(a=D[m]||null),a!==null&&y!==null&&a.implementation!==y)throw new Error('any-promise already defined as "'+a.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return a===null&&(y!==null&&typeof v.Promise!="undefined"?a={Promise:v.Promise,implementation:y}:a=O(y),c&&(D[m]=a)),a}}},{}],51:[function(h,F,o){"use strict";F.exports=h("./loader")(window,m);function m(){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(h,F,o){F.exports={default:h("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(h,F,o){F.exports={default:h("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(h,F,o){F.exports={default:h("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(h,F,o){F.exports={default:h("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(h,F,o){F.exports={default:h("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(h,F,o){F.exports={default:h("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(h,F,o){F.exports={default:h("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(h,F,o){F.exports={default:h("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(h,F,o){F.exports={default:h("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(h,F,o){F.exports={default:h("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(h,F,o){F.exports={default:h("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(h,F,o){F.exports={default:h("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(h,F,o){F.exports={default:h("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(h,F,o){F.exports={default:h("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(h,F,o){F.exports={default:h("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(h,F,o){"use strict";o.__esModule=!0;var m=h("../core-js/symbol/iterator"),a=y(m),D=h("../core-js/symbol"),O=y(D),_=typeof O.default=="function"&&typeof a.default=="symbol"?function(v){return typeof v}:function(v){return v&&typeof O.default=="function"&&v.constructor===O.default&&v!==O.default.prototype?"symbol":typeof v};function y(v){return v&&v.__esModule?v:{default:v}}o.default=typeof O.default=="function"&&_(a.default)==="symbol"?function(v){return typeof v=="undefined"?"undefined":_(v)}:function(v){return v&&typeof O.default=="function"&&v.constructor===O.default&&v!==O.default.prototype?"symbol":typeof v=="undefined"?"undefined":_(v)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(h,F,o){F.exports=h("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(h,F,o){"use strict";o.byteLength=c,o.toByteArray=s,o.fromByteArray=u;for(var m=[],a=[],D=typeof Uint8Array!="undefined"?Uint8Array:Array,O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_=0,y=O.length;_<y;++_)m[_]=O[_],a[O.charCodeAt(_)]=_;a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63;function v(f){var x=f.length;if(x%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var C=f.indexOf("=");C===-1&&(C=x);var b=C===x?0:4-C%4;return[C,b]}function c(f){var x=v(f),C=x[0],b=x[1];return(C+b)*3/4-b}function l(f,x,C){return(x+C)*3/4-C}function s(f){var x,C=v(f),b=C[0],g=C[1],E=new D(l(f,b,g)),A=0,N=g>0?b-4:b,M;for(M=0;M<N;M+=4)x=a[f.charCodeAt(M)]<<18|a[f.charCodeAt(M+1)]<<12|a[f.charCodeAt(M+2)]<<6|a[f.charCodeAt(M+3)],E[A++]=x>>16&255,E[A++]=x>>8&255,E[A++]=x&255;return g===2&&(x=a[f.charCodeAt(M)]<<2|a[f.charCodeAt(M+1)]>>4,E[A++]=x&255),g===1&&(x=a[f.charCodeAt(M)]<<10|a[f.charCodeAt(M+1)]<<4|a[f.charCodeAt(M+2)]>>2,E[A++]=x>>8&255,E[A++]=x&255),E}function r(f){return m[f>>18&63]+m[f>>12&63]+m[f>>6&63]+m[f&63]}function d(f,x,C){for(var b,g=[],E=x;E<C;E+=3)b=(f[E]<<16&16711680)+(f[E+1]<<8&65280)+(f[E+2]&255),g.push(r(b));return g.join("")}function u(f){for(var x,C=f.length,b=C%3,g=[],E=16383,A=0,N=C-b;A<N;A+=E)g.push(d(f,A,A+E>N?N:A+E));return b===1?(x=f[C-1],g.push(m[x>>2]+m[x<<4&63]+"==")):b===2&&(x=(f[C-2]<<8)+f[C-1],g.push(m[x>>10]+m[x>>4&63]+m[x<<2&63]+"=")),g.join("")}},{}],70:[function(h,F,o){/*!
|
|
|
* Bowser - a browser detector
|
|
|
* https://github.com/ded/bowser
|
|
|
* MIT License | (c) Dustin Diaz 2015
|
|
|
*/!function(m,a,D){typeof F!="undefined"&&F.exports?F.exports=D():typeof define=="function"&&define.amd?define(a,D):m[a]=D()}(this,"bowser",function(){var m=!0;function a(l){function s(z){var L=l.match(z);return L&&L.length>1&&L[1]||""}function r(z){var L=l.match(z);return L&&L.length>1&&L[2]||""}var d=s(/(ipod|iphone|ipad)/i).toLowerCase(),u=/like android/i.test(l),f=!u&&/android/i.test(l),x=/nexus\s*[0-6]\s*/i.test(l),C=!x&&/nexus\s*[0-9]+/i.test(l),b=/CrOS/.test(l),g=/silk/i.test(l),E=/sailfish/i.test(l),A=/tizen/i.test(l),N=/(web|hpw)(o|0)s/i.test(l),M=/windows phone/i.test(l),w=/SamsungBrowser/i.test(l),Y=!M&&/windows/i.test(l),X=!d&&!g&&/macintosh/i.test(l),P=!f&&!E&&!A&&!N&&/linux/i.test(l),H=r(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),G=s(/version\/(\d+(\.\d+)?)/i),$=/tablet/i.test(l)&&!/tablet pc/i.test(l),he=!$&&/[^-]mobi/i.test(l),de=/xbox/i.test(l),J;/opera/i.test(l)?J={name:"Opera",opera:m,version:G||s(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(l)?J={name:"Opera",opera:m,version:s(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||G}:/SamsungBrowser/i.test(l)?J={name:"Samsung Internet for Android",samsungBrowser:m,version:G||s(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(l)?J={name:"NAVER Whale browser",whale:m,version:s(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(l)?J={name:"MZ Browser",mzbrowser:m,version:s(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(l)?J={name:"Opera Coast",coast:m,version:G||s(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(l)?J={name:"Focus",focus:m,version:s(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(l)?J={name:"Yandex Browser",yandexbrowser:m,version:G||s(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(l)?J={name:"UC Browser",ucbrowser:m,version:s(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(l)?J={name:"Maxthon",maxthon:m,version:s(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(l)?J={name:"Epiphany",epiphany:m,version:s(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(l)?J={name:"Puffin",puffin:m,version:s(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(l)?J={name:"Sleipnir",sleipnir:m,version:s(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(l)?J={name:"K-Meleon",kMeleon:m,version:s(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:M?(J={name:"Windows Phone",osname:"Windows Phone",windowsphone:m},H?(J.msedge=m,J.version=H):(J.msie=m,J.version=s(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(l)?J={name:"Internet Explorer",msie:m,version:s(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:b?J={name:"Chrome",osname:"Chrome OS",chromeos:m,chromeBook:m,chrome:m,version:s(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(l)?J={name:"Microsoft Edge",msedge:m,version:H}:/vivaldi/i.test(l)?J={name:"Vivaldi",vivaldi:m,version:s(/vivaldi\/(\d+(\.\d+)?)/i)||G}:E?J={name:"Sailfish",osname:"Sailfish OS",sailfish:m,version:s(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(l)?J={name:"SeaMonkey",seamonkey:m,version:s(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(l)?(J={name:"Firefox",firefox:m,version:s(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(l)&&(J.firefoxos=m,J.osname="Firefox OS")):g?J={name:"Amazon Silk",silk:m,version:s(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(l)?J={name:"PhantomJS",phantom:m,version:s(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(l)?J={name:"SlimerJS",slimer:m,version:s(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(l)||/rim\stablet/i.test(l)?J={name:"BlackBerry",osname:"BlackBerry OS",blackberry:m,version:G||s(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:N?(J={name:"WebOS",osname:"WebOS",webos:m,version:G||s(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(l)&&(J.touchpad=m)):/bada/i.test(l)?J={name:"Bada",osname:"Bada",bada:m,version:s(/dolfin\/(\d+(\.\d+)?)/i)}:A?J={name:"Tizen",osname:"Tizen",tizen:m,version:s(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||G}:/qupzilla/i.test(l)?J={name:"QupZilla",qupzilla:m,version:s(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||G}:/chromium/i.test(l)?J={name:"Chromium",chromium:m,version:s(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||G}:/chrome|crios|crmo/i.test(l)?J={name:"Chrome",chrome:m,version:s(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:f?J={name:"Android",version:G}:/safari|applewebkit/i.test(l)?(J={name:"Safari",safari:m},G&&(J.version=G)):d?(J={name:d=="iphone"?"iPhone":d=="ipad"?"iPad":"iPod"},G&&(J.version=G)):/googlebot/i.test(l)?J={name:"Googlebot",googlebot:m,version:s(/googlebot\/(\d+(\.\d+))/i)||G}:J={name:s(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!J.msedge&&/(apple)?webkit/i.test(l)?(/(apple)?webkit\/537\.36/i.test(l)?(J.name=J.name||"Blink",J.blink=m):(J.name=J.name||"Webkit",J.webkit=m),!J.version&&G&&(J.version=G)):!J.opera&&/gecko\//i.test(l)&&(J.name=J.name||"Gecko",J.gecko=m,J.version=J.version||s(/gecko\/(\d+(\.\d+)?)/i)),!J.windowsphone&&(f||J.silk)?(J.android=m,J.osname="Android"):!J.windowsphone&&d?(J[d]=m,J.ios=m,J.osname="iOS"):X?(J.mac=m,J.osname="macOS"):de?(J.xbox=m,J.osname="Xbox"):Y?(J.windows=m,J.osname="Windows"):P&&(J.linux=m,J.osname="Linux");function fe(z){switch(z){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 q="";J.windows?q=fe(s(/Windows ((NT|XP)( \d\d?.\d)?)/i)):J.windowsphone?q=s(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):J.mac?(q=s(/Mac OS X (\d+([_\.\s]\d+)*)/i),q=q.replace(/[_\s]/g,".")):d?(q=s(/os (\d+([_\s]\d+)*) like mac os x/i),q=q.replace(/[_\s]/g,".")):f?q=s(/android[ \/-](\d+(\.\d+)*)/i):J.webos?q=s(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):J.blackberry?q=s(/rim\stablet\sos\s(\d+(\.\d+)*)/i):J.bada?q=s(/bada\/(\d+(\.\d+)*)/i):J.tizen&&(q=s(/tizen[\/\s](\d+(\.\d+)*)/i)),q&&(J.osversion=q);var U=!J.windows&&q.split(".")[0];return $||C||d=="ipad"||f&&(U==3||U>=4&&!he)||J.silk?J.tablet=m:(he||d=="iphone"||d=="ipod"||f||x||J.blackberry||J.webos||J.bada)&&(J.mobile=m),J.msedge||J.msie&&J.version>=10||J.yandexbrowser&&J.version>=15||J.vivaldi&&J.version>=1||J.chrome&&J.version>=20||J.samsungBrowser&&J.version>=4||J.whale&&y([J.version,"1.0"])===1||J.mzbrowser&&y([J.version,"6.0"])===1||J.focus&&y([J.version,"1.0"])===1||J.firefox&&J.version>=20||J.safari&&J.version>=6||J.opera&&J.version>=10||J.ios&&J.osversion&&J.osversion.split(".")[0]>=6||J.blackberry&&J.version>=10.1||J.chromium&&J.version>=20?J.a=m:J.msie&&J.version<10||J.chrome&&J.version<20||J.firefox&&J.version<20||J.safari&&J.version<6||J.opera&&J.version<10||J.ios&&J.osversion&&J.osversion.split(".")[0]<6||J.chromium&&J.version<20?J.c=m:J.x=m,J}var D=a(typeof navigator!="undefined"&&navigator.userAgent||"");D.test=function(l){for(var s=0;s<l.length;++s){var r=l[s];if(typeof r=="string"&&r in D)return!0}return!1};function O(l){return l.split(".").length}function _(l,s){var r=[],d;if(Array.prototype.map)return Array.prototype.map.call(l,s);for(d=0;d<l.length;d++)r.push(s(l[d]));return r}function y(l){for(var s=Math.max(O(l[0]),O(l[1])),r=_(l,function(d){var u=s-O(d);return d=d+new Array(u+1).join(".0"),_(d.split("."),function(f){return new Array(20-f.length).join("0")+f}).reverse()});--s>=0;){if(r[0][s]>r[1][s])return 1;if(r[0][s]===r[1][s]){if(s===0)return 0}else return-1}}function v(l,s,r){var d=D;typeof s=="string"&&(r=s,s=void 0),s===void 0&&(s=!1),r&&(d=a(r));var u=""+d.version;for(var f in l)if(l.hasOwnProperty(f)&&d[f]){if(typeof l[f]!="string")throw new Error("Browser version in the minVersion map should be a string: "+f+": "+String(l));return y([u,l[f]])<0}return s}function c(l,s,r){return!v(l,s,r)}return D.isUnsupportedBrowser=v,D.compareVersions=y,D.check=c,D._detect=a,D.detect=a,D})},{}],71:[function(h,F,o){},{}],72:[function(h,F,o){var m=h("buffer").Buffer,a=m.isEncoding||function(c){switch(c&&c.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 D(c){if(c&&!a(c))throw new Error("Unknown encoding: "+c)}var O=o.StringDecoder=function(c){this.encoding=(c||"utf8").toLowerCase().replace(/[-_]/,""),D(c);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=y;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=v;break;default:this.write=_;return}this.charBuffer=new m(6),this.charReceived=0,this.charLength=0};O.prototype.write=function(c){for(var l="";this.charLength;){var s=c.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:c.length;if(c.copy(this.charBuffer,this.charReceived,0,s),this.charReceived+=s,this.charReceived<this.charLength)return"";c=c.slice(s,c.length),l=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var d=l.charCodeAt(l.length-1);if(d>=55296&&d<=56319){this.charLength+=this.surrogateSize,l="";continue}if(this.charReceived=this.charLength=0,c.length===0)return l;break}this.detectIncompleteChar(c);var r=c.length;this.charLength&&(c.copy(this.charBuffer,0,c.length-this.charReceived,r),r-=this.charReceived),l+=c.toString(this.encoding,0,r);var r=l.length-1,d=l.charCodeAt(r);if(d>=55296&&d<=56319){var u=this.surrogateSize;return this.charLength+=u,this.charReceived+=u,this.charBuffer.copy(this.charBuffer,u,0,u),c.copy(this.charBuffer,0,0,u),l.substring(0,r)}return l},O.prototype.detectIncompleteChar=function(c){for(var l=c.length>=3?3:c.length;l>0;l--){var s=c[c.length-l];if(l==1&&s>>5==6){this.charLength=2;break}if(l<=2&&s>>4==14){this.charLength=3;break}if(l<=3&&s>>3==30){this.charLength=4;break}}this.charReceived=l},O.prototype.end=function(c){var l="";if(c&&c.length&&(l=this.write(c)),this.charReceived){var s=this.charReceived,r=this.charBuffer,d=this.encoding;l+=r.slice(0,s).toString(d)}return l};function _(c){return c.toString(this.encoding)}function y(c){this.charReceived=c.length%2,this.charLength=this.charReceived?2:0}function v(c){this.charReceived=c.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(h,F,o){(function(m,a){/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/"use strict";var D=h("base64-js"),O=h("ieee754"),_=h("isarray");o.Buffer=a,o.SlowBuffer=g,o.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=m.TYPED_ARRAY_SUPPORT!==void 0?m.TYPED_ARRAY_SUPPORT:y(),o.kMaxLength=v();function y(){try{var K=new Uint8Array(1);return K.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},K.foo()===42&&typeof K.subarray=="function"&&K.subarray(1,1).byteLength===0}catch(j){return!1}}function v(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(K,j){if(v()<j)throw new RangeError("Invalid typed array length");return a.TYPED_ARRAY_SUPPORT?(K=new Uint8Array(j),K.__proto__=a.prototype):(K===null&&(K=new a(j)),K.length=j),K}function a(K,j,k){if(!a.TYPED_ARRAY_SUPPORT&&!(this instanceof a))return new a(K,j,k);if(typeof K=="number"){if(typeof j=="string")throw new Error("If encoding is specified then the first argument must be a string");return d(this,K)}return l(this,K,j,k)}a.poolSize=8192,a._augment=function(K){return K.__proto__=a.prototype,K};function l(K,j,k,W){if(typeof j=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&j instanceof ArrayBuffer?x(K,j,k,W):typeof j=="string"?u(K,j,k):C(K,j)}a.from=function(K,j,k){return l(null,K,j,k)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0}));function s(K){if(typeof K!="number")throw new TypeError('"size" argument must be a number');if(K<0)throw new RangeError('"size" argument must not be negative')}function r(K,j,k,W){return s(j),j<=0?c(K,j):k!==void 0?typeof W=="string"?c(K,j).fill(k,W):c(K,j).fill(k):c(K,j)}a.alloc=function(K,j,k){return r(null,K,j,k)};function d(K,j){if(s(j),K=c(K,j<0?0:b(j)|0),!a.TYPED_ARRAY_SUPPORT)for(var k=0;k<j;++k)K[k]=0;return K}a.allocUnsafe=function(K){return d(null,K)},a.allocUnsafeSlow=function(K){return d(null,K)};function u(K,j,k){if((typeof k!="string"||k==="")&&(k="utf8"),!a.isEncoding(k))throw new TypeError('"encoding" must be a valid string encoding');var W=E(j,k)|0;K=c(K,W);var we=K.write(j,k);return we!==W&&(K=K.slice(0,we)),K}function f(K,j){var k=j.length<0?0:b(j.length)|0;K=c(K,k);for(var W=0;W<k;W+=1)K[W]=j[W]&255;return K}function x(K,j,k,W){if(j.byteLength,k<0||j.byteLength<k)throw new RangeError("'offset' is out of bounds");if(j.byteLength<k+(W||0))throw new RangeError("'length' is out of bounds");return k===void 0&&W===void 0?j=new Uint8Array(j):W===void 0?j=new Uint8Array(j,k):j=new Uint8Array(j,k,W),a.TYPED_ARRAY_SUPPORT?(K=j,K.__proto__=a.prototype):K=f(K,j),K}function C(K,j){if(a.isBuffer(j)){var k=b(j.length)|0;return K=c(K,k),K.length===0||j.copy(K,0,0,k),K}if(j){if(typeof ArrayBuffer!="undefined"&&j.buffer instanceof ArrayBuffer||"length"in j)return typeof j.length!="number"||ae(j.length)?c(K,0):f(K,j);if(j.type==="Buffer"&&_(j.data))return f(K,j.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function b(K){if(K>=v())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+v().toString(16)+" bytes");return K|0}function g(K){return+K!=K&&(K=0),a.alloc(+K)}a.isBuffer=function(j){return!!(j!=null&&j._isBuffer)},a.compare=function(j,k){if(!a.isBuffer(j)||!a.isBuffer(k))throw new TypeError("Arguments must be Buffers");if(j===k)return 0;for(var W=j.length,we=k.length,be=0,Te=Math.min(W,we);be<Te;++be)if(j[be]!==k[be]){W=j[be],we=k[be];break}return W<we?-1:we<W?1:0},a.isEncoding=function(j){switch(String(j).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}},a.concat=function(j,k){if(!_(j))throw new TypeError('"list" argument must be an Array of Buffers');if(j.length===0)return a.alloc(0);var W;if(k===void 0)for(k=0,W=0;W<j.length;++W)k+=j[W].length;var we=a.allocUnsafe(k),be=0;for(W=0;W<j.length;++W){var Te=j[W];if(!a.isBuffer(Te))throw new TypeError('"list" argument must be an Array of Buffers');Te.copy(we,be),be+=Te.length}return we};function E(K,j){if(a.isBuffer(K))return K.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(K)||K instanceof ArrayBuffer))return K.byteLength;typeof K!="string"&&(K=""+K);var k=K.length;if(k===0)return 0;for(var W=!1;;)switch(j){case"ascii":case"latin1":case"binary":return k;case"utf8":case"utf-8":case void 0:return oe(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k*2;case"hex":return k>>>1;case"base64":return V(K).length;default:if(W)return oe(K).length;j=(""+j).toLowerCase(),W=!0}}a.byteLength=E;function A(K,j,k){var W=!1;if((j===void 0||j<0)&&(j=0),j>this.length)return"";if((k===void 0||k>this.length)&&(k=this.length),k<=0)return"";if(k>>>=0,j>>>=0,k<=j)return"";for(K||(K="utf8");;)switch(K){case"hex":return z(this,j,k);case"utf8":case"utf-8":return de(this,j,k);case"ascii":return q(this,j,k);case"latin1":case"binary":return U(this,j,k);case"base64":return he(this,j,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,j,k);default:if(W)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),W=!0}}a.prototype._isBuffer=!0;function N(K,j,k){var W=K[j];K[j]=K[k],K[k]=W}a.prototype.swap16=function(){var j=this.length;if(j%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var k=0;k<j;k+=2)N(this,k,k+1);return this},a.prototype.swap32=function(){var j=this.length;if(j%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var k=0;k<j;k+=4)N(this,k,k+3),N(this,k+1,k+2);return this},a.prototype.swap64=function(){var j=this.length;if(j%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var k=0;k<j;k+=8)N(this,k,k+7),N(this,k+1,k+6),N(this,k+2,k+5),N(this,k+3,k+4);return this},a.prototype.toString=function(){var j=this.length|0;return j===0?"":arguments.length===0?de(this,0,j):A.apply(this,arguments)},a.prototype.equals=function(j){if(!a.isBuffer(j))throw new TypeError("Argument must be a Buffer");return this===j?!0:a.compare(this,j)===0},a.prototype.inspect=function(){var j="",k=o.INSPECT_MAX_BYTES;return this.length>0&&(j=this.toString("hex",0,k).match(/.{2}/g).join(" "),this.length>k&&(j+=" ... ")),"<Buffer "+j+">"},a.prototype.compare=function(j,k,W,we,be){if(!a.isBuffer(j))throw new TypeError("Argument must be a Buffer");if(k===void 0&&(k=0),W===void 0&&(W=j?j.length:0),we===void 0&&(we=0),be===void 0&&(be=this.length),k<0||W>j.length||we<0||be>this.length)throw new RangeError("out of range index");if(we>=be&&k>=W)return 0;if(we>=be)return-1;if(k>=W)return 1;if(k>>>=0,W>>>=0,we>>>=0,be>>>=0,this===j)return 0;for(var Te=be-we,Be=W-k,Fe=Math.min(Te,Be),Ue=this.slice(we,be),We=j.slice(k,W),Ve=0;Ve<Fe;++Ve)if(Ue[Ve]!==We[Ve]){Te=Ue[Ve],Be=We[Ve];break}return Te<Be?-1:Be<Te?1:0};function M(K,j,k,W,we){if(K.length===0)return-1;if(typeof k=="string"?(W=k,k=0):k>2147483647?k=2147483647:k<-2147483648&&(k=-2147483648),k=+k,isNaN(k)&&(k=we?0:K.length-1),k<0&&(k=K.length+k),k>=K.length){if(we)return-1;k=K.length-1}else if(k<0)if(we)k=0;else return-1;if(typeof j=="string"&&(j=a.from(j,W)),a.isBuffer(j))return j.length===0?-1:w(K,j,k,W,we);if(typeof j=="number")return j=j&255,a.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?we?Uint8Array.prototype.indexOf.call(K,j,k):Uint8Array.prototype.lastIndexOf.call(K,j,k):w(K,[j],k,W,we);throw new TypeError("val must be string, number or Buffer")}function w(K,j,k,W,we){var be=1,Te=K.length,Be=j.length;if(W!==void 0&&(W=String(W).toLowerCase(),W==="ucs2"||W==="ucs-2"||W==="utf16le"||W==="utf-16le")){if(K.length<2||j.length<2)return-1;be=2,Te/=2,Be/=2,k/=2}function Fe(Je,Re){return be===1?Je[Re]:Je.readUInt16BE(Re*be)}var Ue;if(we){var We=-1;for(Ue=k;Ue<Te;Ue++)if(Fe(K,Ue)===Fe(j,We===-1?0:Ue-We)){if(We===-1&&(We=Ue),Ue-We+1===Be)return We*be}else We!==-1&&(Ue-=Ue-We),We=-1}else for(k+Be>Te&&(k=Te-Be),Ue=k;Ue>=0;Ue--){for(var Ve=!0,Ge=0;Ge<Be;Ge++)if(Fe(K,Ue+Ge)!==Fe(j,Ge)){Ve=!1;break}if(Ve)return Ue}return-1}a.prototype.includes=function(j,k,W){return this.indexOf(j,k,W)!==-1},a.prototype.indexOf=function(j,k,W){return M(this,j,k,W,!0)},a.prototype.lastIndexOf=function(j,k,W){return M(this,j,k,W,!1)};function Y(K,j,k,W){k=Number(k)||0;var we=K.length-k;W?(W=Number(W),W>we&&(W=we)):W=we;var be=j.length;if(be%2!==0)throw new TypeError("Invalid hex string");W>be/2&&(W=be/2);for(var Te=0;Te<W;++Te){var Be=parseInt(j.substr(Te*2,2),16);if(isNaN(Be))return Te;K[k+Te]=Be}return Te}function X(K,j,k,W){return Q(oe(j,K.length-k),K,k,W)}function P(K,j,k,W){return Q(Z(j),K,k,W)}function H(K,j,k,W){return P(K,j,k,W)}function G(K,j,k,W){return Q(V(j),K,k,W)}function $(K,j,k,W){return Q(ue(j,K.length-k),K,k,W)}a.prototype.write=function(j,k,W,we){if(k===void 0)we="utf8",W=this.length,k=0;else if(W===void 0&&typeof k=="string")we=k,W=this.length,k=0;else if(isFinite(k))k=k|0,isFinite(W)?(W=W|0,we===void 0&&(we="utf8")):(we=W,W=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var be=this.length-k;if((W===void 0||W>be)&&(W=be),j.length>0&&(W<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");we||(we="utf8");for(var Te=!1;;)switch(we){case"hex":return Y(this,j,k,W);case"utf8":case"utf-8":return X(this,j,k,W);case"ascii":return P(this,j,k,W);case"latin1":case"binary":return H(this,j,k,W);case"base64":return G(this,j,k,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,j,k,W);default:if(Te)throw new TypeError("Unknown encoding: "+we);we=(""+we).toLowerCase(),Te=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function he(K,j,k){return j===0&&k===K.length?D.fromByteArray(K):D.fromByteArray(K.slice(j,k))}function de(K,j,k){k=Math.min(K.length,k);for(var W=[],we=j;we<k;){var be=K[we],Te=null,Be=be>239?4:be>223?3:be>191?2:1;if(we+Be<=k){var Fe,Ue,We,Ve;switch(Be){case 1:be<128&&(Te=be);break;case 2:Fe=K[we+1],(Fe&192)===128&&(Ve=(be&31)<<6|Fe&63,Ve>127&&(Te=Ve));break;case 3:Fe=K[we+1],Ue=K[we+2],(Fe&192)===128&&(Ue&192)===128&&(Ve=(be&15)<<12|(Fe&63)<<6|Ue&63,Ve>2047&&(Ve<55296||Ve>57343)&&(Te=Ve));break;case 4:Fe=K[we+1],Ue=K[we+2],We=K[we+3],(Fe&192)===128&&(Ue&192)===128&&(We&192)===128&&(Ve=(be&15)<<18|(Fe&63)<<12|(Ue&63)<<6|We&63,Ve>65535&&Ve<1114112&&(Te=Ve))}}Te===null?(Te=65533,Be=1):Te>65535&&(Te-=65536,W.push(Te>>>10&1023|55296),Te=56320|Te&1023),W.push(Te),we+=Be}return fe(W)}var J=4096;function fe(K){var j=K.length;if(j<=J)return String.fromCharCode.apply(String,K);for(var k="",W=0;W<j;)k+=String.fromCharCode.apply(String,K.slice(W,W+=J));return k}function q(K,j,k){var W="";k=Math.min(K.length,k);for(var we=j;we<k;++we)W+=String.fromCharCode(K[we]&127);return W}function U(K,j,k){var W="";k=Math.min(K.length,k);for(var we=j;we<k;++we)W+=String.fromCharCode(K[we]);return W}function z(K,j,k){var W=K.length;(!j||j<0)&&(j=0),(!k||k<0||k>W)&&(k=W);for(var we="",be=j;be<k;++be)we+=ee(K[be]);return we}function L(K,j,k){for(var W=K.slice(j,k),we="",be=0;be<W.length;be+=2)we+=String.fromCharCode(W[be]+W[be+1]*256);return we}a.prototype.slice=function(j,k){var W=this.length;j=~~j,k=k===void 0?W:~~k,j<0?(j+=W,j<0&&(j=0)):j>W&&(j=W),k<0?(k+=W,k<0&&(k=0)):k>W&&(k=W),k<j&&(k=j);var we;if(a.TYPED_ARRAY_SUPPORT)we=this.subarray(j,k),we.__proto__=a.prototype;else{var be=k-j;we=new a(be,void 0);for(var Te=0;Te<be;++Te)we[Te]=this[Te+j]}return we};function T(K,j,k){if(K%1!==0||K<0)throw new RangeError("offset is not uint");if(K+j>k)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUIntLE=function(j,k,W){j=j|0,k=k|0,W||T(j,k,this.length);for(var we=this[j],be=1,Te=0;++Te<k&&(be*=256);)we+=this[j+Te]*be;return we},a.prototype.readUIntBE=function(j,k,W){j=j|0,k=k|0,W||T(j,k,this.length);for(var we=this[j+--k],be=1;k>0&&(be*=256);)we+=this[j+--k]*be;return we},a.prototype.readUInt8=function(j,k){return k||T(j,1,this.length),this[j]},a.prototype.readUInt16LE=function(j,k){return k||T(j,2,this.length),this[j]|this[j+1]<<8},a.prototype.readUInt16BE=function(j,k){return k||T(j,2,this.length),this[j]<<8|this[j+1]},a.prototype.readUInt32LE=function(j,k){return k||T(j,4,this.length),(this[j]|this[j+1]<<8|this[j+2]<<16)+this[j+3]*16777216},a.prototype.readUInt32BE=function(j,k){return k||T(j,4,this.length),this[j]*16777216+(this[j+1]<<16|this[j+2]<<8|this[j+3])},a.prototype.readIntLE=function(j,k,W){j=j|0,k=k|0,W||T(j,k,this.length);for(var we=this[j],be=1,Te=0;++Te<k&&(be*=256);)we+=this[j+Te]*be;return be*=128,we>=be&&(we-=Math.pow(2,8*k)),we},a.prototype.readIntBE=function(j,k,W){j=j|0,k=k|0,W||T(j,k,this.length);for(var we=k,be=1,Te=this[j+--we];we>0&&(be*=256);)Te+=this[j+--we]*be;return be*=128,Te>=be&&(Te-=Math.pow(2,8*k)),Te},a.prototype.readInt8=function(j,k){return k||T(j,1,this.length),this[j]&128?(255-this[j]+1)*-1:this[j]},a.prototype.readInt16LE=function(j,k){k||T(j,2,this.length);var W=this[j]|this[j+1]<<8;return W&32768?W|4294901760:W},a.prototype.readInt16BE=function(j,k){k||T(j,2,this.length);var W=this[j+1]|this[j]<<8;return W&32768?W|4294901760:W},a.prototype.readInt32LE=function(j,k){return k||T(j,4,this.length),this[j]|this[j+1]<<8|this[j+2]<<16|this[j+3]<<24},a.prototype.readInt32BE=function(j,k){return k||T(j,4,this.length),this[j]<<24|this[j+1]<<16|this[j+2]<<8|this[j+3]},a.prototype.readFloatLE=function(j,k){return k||T(j,4,this.length),O.read(this,j,!0,23,4)},a.prototype.readFloatBE=function(j,k){return k||T(j,4,this.length),O.read(this,j,!1,23,4)},a.prototype.readDoubleLE=function(j,k){return k||T(j,8,this.length),O.read(this,j,!0,52,8)},a.prototype.readDoubleBE=function(j,k){return k||T(j,8,this.length),O.read(this,j,!1,52,8)};function I(K,j,k,W,we,be){if(!a.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(j>we||j<be)throw new RangeError('"value" argument is out of bounds');if(k+W>K.length)throw new RangeError("Index out of range")}a.prototype.writeUIntLE=function(j,k,W,we){if(j=+j,k=k|0,W=W|0,!we){var be=Math.pow(2,8*W)-1;I(this,j,k,W,be,0)}var Te=1,Be=0;for(this[k]=j&255;++Be<W&&(Te*=256);)this[k+Be]=j/Te&255;return k+W},a.prototype.writeUIntBE=function(j,k,W,we){if(j=+j,k=k|0,W=W|0,!we){var be=Math.pow(2,8*W)-1;I(this,j,k,W,be,0)}var Te=W-1,Be=1;for(this[k+Te]=j&255;--Te>=0&&(Be*=256);)this[k+Te]=j/Be&255;return k+W},a.prototype.writeUInt8=function(j,k,W){return j=+j,k=k|0,W||I(this,j,k,1,255,0),a.TYPED_ARRAY_SUPPORT||(j=Math.floor(j)),this[k]=j&255,k+1};function se(K,j,k,W){j<0&&(j=65535+j+1);for(var we=0,be=Math.min(K.length-k,2);we<be;++we)K[k+we]=(j&255<<8*(W?we:1-we))>>>(W?we:1-we)*8}a.prototype.writeUInt16LE=function(j,k,W){return j=+j,k=k|0,W||I(this,j,k,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[k]=j&255,this[k+1]=j>>>8):se(this,j,k,!0),k+2},a.prototype.writeUInt16BE=function(j,k,W){return j=+j,k=k|0,W||I(this,j,k,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[k]=j>>>8,this[k+1]=j&255):se(this,j,k,!1),k+2};function me(K,j,k,W){j<0&&(j=4294967295+j+1);for(var we=0,be=Math.min(K.length-k,4);we<be;++we)K[k+we]=j>>>(W?we:3-we)*8&255}a.prototype.writeUInt32LE=function(j,k,W){return j=+j,k=k|0,W||I(this,j,k,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[k+3]=j>>>24,this[k+2]=j>>>16,this[k+1]=j>>>8,this[k]=j&255):me(this,j,k,!0),k+4},a.prototype.writeUInt32BE=function(j,k,W){return j=+j,k=k|0,W||I(this,j,k,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[k]=j>>>24,this[k+1]=j>>>16,this[k+2]=j>>>8,this[k+3]=j&255):me(this,j,k,!1),k+4},a.prototype.writeIntLE=function(j,k,W,we){if(j=+j,k=k|0,!we){var be=Math.pow(2,8*W-1);I(this,j,k,W,be-1,-be)}var Te=0,Be=1,Fe=0;for(this[k]=j&255;++Te<W&&(Be*=256);)j<0&&Fe===0&&this[k+Te-1]!==0&&(Fe=1),this[k+Te]=(j/Be>>0)-Fe&255;return k+W},a.prototype.writeIntBE=function(j,k,W,we){if(j=+j,k=k|0,!we){var be=Math.pow(2,8*W-1);I(this,j,k,W,be-1,-be)}var Te=W-1,Be=1,Fe=0;for(this[k+Te]=j&255;--Te>=0&&(Be*=256);)j<0&&Fe===0&&this[k+Te+1]!==0&&(Fe=1),this[k+Te]=(j/Be>>0)-Fe&255;return k+W},a.prototype.writeInt8=function(j,k,W){return j=+j,k=k|0,W||I(this,j,k,1,127,-128),a.TYPED_ARRAY_SUPPORT||(j=Math.floor(j)),j<0&&(j=255+j+1),this[k]=j&255,k+1},a.prototype.writeInt16LE=function(j,k,W){return j=+j,k=k|0,W||I(this,j,k,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[k]=j&255,this[k+1]=j>>>8):se(this,j,k,!0),k+2},a.prototype.writeInt16BE=function(j,k,W){return j=+j,k=k|0,W||I(this,j,k,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[k]=j>>>8,this[k+1]=j&255):se(this,j,k,!1),k+2},a.prototype.writeInt32LE=function(j,k,W){return j=+j,k=k|0,W||I(this,j,k,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[k]=j&255,this[k+1]=j>>>8,this[k+2]=j>>>16,this[k+3]=j>>>24):me(this,j,k,!0),k+4},a.prototype.writeInt32BE=function(j,k,W){return j=+j,k=k|0,W||I(this,j,k,4,2147483647,-2147483648),j<0&&(j=4294967295+j+1),a.TYPED_ARRAY_SUPPORT?(this[k]=j>>>24,this[k+1]=j>>>16,this[k+2]=j>>>8,this[k+3]=j&255):me(this,j,k,!1),k+4};function xe(K,j,k,W,we,be){if(k+W>K.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("Index out of range")}function Ee(K,j,k,W,we){return we||xe(K,j,k,4,34028234663852886e22,-34028234663852886e22),O.write(K,j,k,W,23,4),k+4}a.prototype.writeFloatLE=function(j,k,W){return Ee(this,j,k,!0,W)},a.prototype.writeFloatBE=function(j,k,W){return Ee(this,j,k,!1,W)};function Oe(K,j,k,W,we){return we||xe(K,j,k,8,17976931348623157e292,-17976931348623157e292),O.write(K,j,k,W,52,8),k+8}a.prototype.writeDoubleLE=function(j,k,W){return Oe(this,j,k,!0,W)},a.prototype.writeDoubleBE=function(j,k,W){return Oe(this,j,k,!1,W)},a.prototype.copy=function(j,k,W,we){if(W||(W=0),!we&&we!==0&&(we=this.length),k>=j.length&&(k=j.length),k||(k=0),we>0&&we<W&&(we=W),we===W)return 0;if(j.length===0||this.length===0)return 0;if(k<0)throw new RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw new RangeError("sourceStart out of bounds");if(we<0)throw new RangeError("sourceEnd out of bounds");we>this.length&&(we=this.length),j.length-k<we-W&&(we=j.length-k+W);var be=we-W,Te;if(this===j&&W<k&&k<we)for(Te=be-1;Te>=0;--Te)j[Te+k]=this[Te+W];else if(be<1e3||!a.TYPED_ARRAY_SUPPORT)for(Te=0;Te<be;++Te)j[Te+k]=this[Te+W];else Uint8Array.prototype.set.call(j,this.subarray(W,W+be),k);return be},a.prototype.fill=function(j,k,W,we){if(typeof j=="string"){if(typeof k=="string"?(we=k,k=0,W=this.length):typeof W=="string"&&(we=W,W=this.length),j.length===1){var be=j.charCodeAt(0);be<256&&(j=be)}if(we!==void 0&&typeof we!="string")throw new TypeError("encoding must be a string");if(typeof we=="string"&&!a.isEncoding(we))throw new TypeError("Unknown encoding: "+we)}else typeof j=="number"&&(j=j&255);if(k<0||this.length<k||this.length<W)throw new RangeError("Out of range index");if(W<=k)return this;k=k>>>0,W=W===void 0?this.length:W>>>0,j||(j=0);var Te;if(typeof j=="number")for(Te=k;Te<W;++Te)this[Te]=j;else{var Be=a.isBuffer(j)?j:oe(new a(j,we).toString()),Fe=Be.length;for(Te=0;Te<W-k;++Te)this[Te+k]=Be[Te%Fe]}return this};var le=/[^+\/0-9A-Za-z-_]/g;function ge(K){if(K=ye(K).replace(le,""),K.length<2)return"";for(;K.length%4!==0;)K=K+"=";return K}function ye(K){return K.trim?K.trim():K.replace(/^\s+|\s+$/g,"")}function ee(K){return K<16?"0"+K.toString(16):K.toString(16)}function oe(K,j){j=j||Infinity;for(var k,W=K.length,we=null,be=[],Te=0;Te<W;++Te){if(k=K.charCodeAt(Te),k>55295&&k<57344){if(!we){if(k>56319){(j-=3)>-1&&be.push(239,191,189);continue}else if(Te+1===W){(j-=3)>-1&&be.push(239,191,189);continue}we=k;continue}if(k<56320){(j-=3)>-1&&be.push(239,191,189),we=k;continue}k=(we-55296<<10|k-56320)+65536}else we&&((j-=3)>-1&&be.push(239,191,189));if(we=null,k<128){if((j-=1)<0)break;be.push(k)}else if(k<2048){if((j-=2)<0)break;be.push(k>>6|192,k&63|128)}else if(k<65536){if((j-=3)<0)break;be.push(k>>12|224,k>>6&63|128,k&63|128)}else if(k<1114112){if((j-=4)<0)break;be.push(k>>18|240,k>>12&63|128,k>>6&63|128,k&63|128)}else throw new Error("Invalid code point")}return be}function Z(K){for(var j=[],k=0;k<K.length;++k)j.push(K.charCodeAt(k)&255);return j}function ue(K,j){for(var k,W,we,be=[],Te=0;Te<K.length&&!((j-=2)<0);++Te)k=K.charCodeAt(Te),W=k>>8,we=k%256,be.push(we),be.push(W);return be}function V(K){return D.toByteArray(ge(K))}function Q(K,j,k,W){for(var we=0;we<W&&!(we+k>=j.length||we>=K.length);++we)j[we+k]=K[we];return we}function ae(K){return K!==K}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},h("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(h,F,o){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(h,F,o){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(h,F,o){/*!
|
|
|
* copy-to - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var m=Array.prototype.slice;F.exports=a;function a(O,_){if(!(this instanceof a))return new a(O,_);this.src=O,this._withAccess=_}a.prototype.withAccess=function(O){return this._withAccess=O!==!1,this},a.prototype.pick=function(O){return Array.isArray(O)||(O=m.call(arguments)),O.length&&(this.keys=O),this},a.prototype.to=function(O){if(O=O||{},!this.src)return O;var _=this.keys||Object.keys(this.src);if(!this._withAccess){for(var y=0;y<_.length;y++){if(v=_[y],O[v]!==void 0)continue;O[v]=this.src[v]}return O}for(var y=0;y<_.length;y++){var v=_[y];if(!D(O,v))continue;var c=this.src.__lookupGetter__(v),l=this.src.__lookupSetter__(v);c&&O.__defineGetter__(v,c),l&&O.__defineSetter__(v,l),!c&&!l&&(O[v]=this.src[v])}return O},a.prototype.toCover=function(O){for(var _=this.keys||Object.keys(this.src),y=0;y<_.length;y++){var v=_[y];delete O[v];var c=this.src.__lookupGetter__(v),l=this.src.__lookupSetter__(v);c&&O.__defineGetter__(v,c),l&&O.__defineSetter__(v,l),!c&&!l&&(O[v]=this.src[v])}},a.prototype.override=a.prototype.toCover,a.prototype.and=function(O){var _={};return this.to(_),this.src=O,this.to(_),this.src=_,this};function D(O,_){return O[_]===void 0&&O.__lookupGetter__(_)===void 0&&O.__lookupSetter__(_)===void 0}},{}],77:[function(h,F,o){h("../../modules/es6.string.iterator"),h("../../modules/es6.array.from"),F.exports=h("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(h,F,o){var m=h("../../modules/_core"),a=m.JSON||(m.JSON={stringify:JSON.stringify});F.exports=function(O){return a.stringify.apply(a,arguments)}},{"../../modules/_core":99}],79:[function(h,F,o){h("../../modules/es6.object.assign"),F.exports=h("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(h,F,o){h("../../modules/es6.object.create");var m=h("../../modules/_core").Object;F.exports=function(D,O){return m.create(D,O)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(h,F,o){h("../../modules/es6.object.define-property");var m=h("../../modules/_core").Object;F.exports=function(D,O,_){return m.defineProperty(D,O,_)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(h,F,o){h("../../modules/es7.object.entries"),F.exports=h("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(h,F,o){h("../../modules/es6.object.get-own-property-names");var m=h("../../modules/_core").Object;F.exports=function(D){return m.getOwnPropertyNames(D)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(h,F,o){h("../../modules/es6.object.get-prototype-of"),F.exports=h("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(h,F,o){h("../../modules/es6.object.keys"),F.exports=h("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(h,F,o){h("../modules/es6.object.to-string"),h("../modules/es6.string.iterator"),h("../modules/web.dom.iterable"),h("../modules/es6.promise"),h("../modules/es7.promise.finally"),h("../modules/es7.promise.try"),F.exports=h("../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(h,F,o){h("../modules/web.immediate"),F.exports=h("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(h,F,o){h("../../modules/es6.string.from-code-point"),F.exports=h("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(h,F,o){h("../../modules/es6.function.has-instance"),F.exports=h("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(h,F,o){h("../../modules/es6.symbol"),h("../../modules/es6.object.to-string"),h("../../modules/es7.symbol.async-iterator"),h("../../modules/es7.symbol.observable"),F.exports=h("../../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(h,F,o){h("../../modules/es6.string.iterator"),h("../../modules/web.dom.iterable"),F.exports=h("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(h,F,o){F.exports=function(m){if(typeof m!="function")throw TypeError(m+" is not a function!");return m}},{}],93:[function(h,F,o){F.exports=function(){}},{}],94:[function(h,F,o){F.exports=function(m,a,D,O){if(!(m instanceof a)||O!==void 0&&O in m)throw TypeError(D+": incorrect invocation!");return m}},{}],95:[function(h,F,o){var m=h("./_is-object");F.exports=function(a){if(!m(a))throw TypeError(a+" is not an object!");return a}},{"./_is-object":119}],96:[function(h,F,o){var m=h("./_to-iobject"),a=h("./_to-length"),D=h("./_to-absolute-index");F.exports=function(O){return function(_,y,v){var c=m(_),l=a(c.length),s=D(v,l),r;if(O&&y!=y){for(;l>s;)if(r=c[s++],r!=r)return!0}else for(;l>s;s++)if((O||s in c)&&c[s]===y)return O||s||0;return!O&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(h,F,o){var m=h("./_cof"),a=h("./_wks")("toStringTag"),D=m(function(){return arguments}())=="Arguments",O=function(_,y){try{return _[y]}catch(v){}};F.exports=function(_){var y,v,c;return _===void 0?"Undefined":_===null?"Null":typeof(v=O(y=Object(_),a))=="string"?v:D?m(y):(c=m(y))=="Object"&&typeof y.callee=="function"?"Arguments":c}},{"./_cof":98,"./_wks":166}],98:[function(h,F,o){var m={}.toString;F.exports=function(a){return m.call(a).slice(8,-1)}},{}],99:[function(h,F,o){var m=F.exports={version:"2.6.11"};typeof __e=="number"&&(__e=m)},{}],100:[function(h,F,o){"use strict";var m=h("./_object-dp"),a=h("./_property-desc");F.exports=function(D,O,_){O in D?m.f(D,O,a(0,_)):D[O]=_}},{"./_object-dp":132,"./_property-desc":146}],101:[function(h,F,o){var m=h("./_a-function");F.exports=function(a,D,O){if(m(a),D===void 0)return a;switch(O){case 1:return function(_){return a.call(D,_)};case 2:return function(_,y){return a.call(D,_,y)};case 3:return function(_,y,v){return a.call(D,_,y,v)}}return function(){return a.apply(D,arguments)}}},{"./_a-function":92}],102:[function(h,F,o){F.exports=function(m){if(m==null)throw TypeError("Can't call method on "+m);return m}},{}],103:[function(h,F,o){F.exports=!h("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(h,F,o){var m=h("./_is-object"),a=h("./_global").document,D=m(a)&&m(a.createElement);F.exports=function(O){return D?a.createElement(O):{}}},{"./_global":110,"./_is-object":119}],105:[function(h,F,o){F.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(h,F,o){var m=h("./_object-keys"),a=h("./_object-gops"),D=h("./_object-pie");F.exports=function(O){var _=m(O),y=a.f;if(y)for(var v=y(O),c=D.f,l=0,s;v.length>l;)c.call(O,s=v[l++])&&_.push(s);return _}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(h,F,o){var m=h("./_global"),a=h("./_core"),D=h("./_ctx"),O=h("./_hide"),_=h("./_has"),y="prototype",v=function(c,l,s){var r=c&v.F,d=c&v.G,u=c&v.S,f=c&v.P,x=c&v.B,C=c&v.W,b=d?a:a[l]||(a[l]={}),g=b[y],E=d?m:u?m[l]:(m[l]||{})[y],A,N,M;d&&(s=l);for(A in s){if(N=!r&&E&&E[A]!==void 0,N&&_(b,A))continue;M=N?E[A]:s[A],b[A]=d&&typeof E[A]!="function"?s[A]:x&&N?D(M,m):C&&E[A]==M?function(w){var Y=function(X,P,H){if(this instanceof w){switch(arguments.length){case 0:return new w;case 1:return new w(X);case 2:return new w(X,P)}return new w(X,P,H)}return w.apply(this,arguments)};return Y[y]=w[y],Y}(M):f&&typeof M=="function"?D(Function.call,M):M,f&&((b.virtual||(b.virtual={}))[A]=M,c&v.R&&g&&!g[A]&&O(g,A,M))}};v.F=1,v.G=2,v.S=4,v.P=8,v.B=16,v.W=32,v.U=64,v.R=128,F.exports=v},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(h,F,o){F.exports=function(m){try{return!!m()}catch(a){return!0}}},{}],109:[function(h,F,o){var m=h("./_ctx"),a=h("./_iter-call"),D=h("./_is-array-iter"),O=h("./_an-object"),_=h("./_to-length"),y=h("./core.get-iterator-method"),v={},c={},o=F.exports=function(l,s,r,d,u){var f=u?function(){return l}:y(l),x=m(r,d,s?2:1),C=0,b,g,E,A;if(typeof f!="function")throw TypeError(l+" is not iterable!");if(D(f)){for(b=_(l.length);b>C;C++)if(A=s?x(O(g=l[C])[0],g[1]):x(l[C]),A===v||A===c)return A}else for(E=f.call(l);!(g=E.next()).done;)if(A=a(E,x,g.value,s),A===v||A===c)return A};o.BREAK=v,o.RETURN=c},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(h,F,o){var m=F.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=m)},{}],111:[function(h,F,o){var m={}.hasOwnProperty;F.exports=function(a,D){return m.call(a,D)}},{}],112:[function(h,F,o){var m=h("./_object-dp"),a=h("./_property-desc");F.exports=h("./_descriptors")?function(D,O,_){return m.f(D,O,a(1,_))}:function(D,O,_){return D[O]=_,D}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(h,F,o){var m=h("./_global").document;F.exports=m&&m.documentElement},{"./_global":110}],114:[function(h,F,o){F.exports=!h("./_descriptors")&&!h("./_fails")(function(){return Object.defineProperty(h("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(h,F,o){F.exports=function(m,a,D){var O=D===void 0;switch(a.length){case 0:return O?m():m.call(D);case 1:return O?m(a[0]):m.call(D,a[0]);case 2:return O?m(a[0],a[1]):m.call(D,a[0],a[1]);case 3:return O?m(a[0],a[1],a[2]):m.call(D,a[0],a[1],a[2]);case 4:return O?m(a[0],a[1],a[2],a[3]):m.call(D,a[0],a[1],a[2],a[3])}return m.apply(D,a)}},{}],116:[function(h,F,o){var m=h("./_cof");F.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return m(a)=="String"?a.split(""):Object(a)}},{"./_cof":98}],117:[function(h,F,o){var m=h("./_iterators"),a=h("./_wks")("iterator"),D=Array.prototype;F.exports=function(O){return O!==void 0&&(m.Array===O||D[a]===O)}},{"./_iterators":125,"./_wks":166}],118:[function(h,F,o){var m=h("./_cof");F.exports=Array.isArray||function(D){return m(D)=="Array"}},{"./_cof":98}],119:[function(h,F,o){F.exports=function(m){return typeof m=="object"?m!==null:typeof m=="function"}},{}],120:[function(h,F,o){var m=h("./_an-object");F.exports=function(a,D,O,_){try{return _?D(m(O)[0],O[1]):D(O)}catch(v){var y=a.return;throw y!==void 0&&m(y.call(a)),v}}},{"./_an-object":95}],121:[function(h,F,o){"use strict";var m=h("./_object-create"),a=h("./_property-desc"),D=h("./_set-to-string-tag"),O={};h("./_hide")(O,h("./_wks")("iterator"),function(){return this}),F.exports=function(_,y,v){_.prototype=m(O,{next:a(1,v)}),D(_,y+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(h,F,o){"use strict";var m=h("./_library"),a=h("./_export"),D=h("./_redefine"),O=h("./_hide"),_=h("./_iterators"),y=h("./_iter-create"),v=h("./_set-to-string-tag"),c=h("./_object-gpo"),l=h("./_wks")("iterator"),s=!([].keys&&"next"in[].keys()),r="@@iterator",d="keys",u="values",f=function(){return this};F.exports=function(x,C,b,g,E,A,N){y(b,C,g);var M=function(q){if(!s&&q in P)return P[q];switch(q){case d:return function(){return new b(this,q)};case u:return function(){return new b(this,q)}}return function(){return new b(this,q)}},w=C+" Iterator",Y=E==u,X=!1,P=x.prototype,H=P[l]||P[r]||E&&P[E],G=H||M(E),$=E?Y?M("entries"):G:void 0,he=C=="Array"&&P.entries||H,de,J,fe;if(he&&(fe=c(he.call(new x)),fe!==Object.prototype&&fe.next&&(v(fe,w,!0),!m&&typeof fe[l]!="function"&&O(fe,l,f))),Y&&H&&H.name!==u&&(X=!0,G=function(){return H.call(this)}),(!m||N)&&(s||X||!P[l])&&O(P,l,G),_[C]=G,_[w]=f,E)if(de={values:Y?G:M(u),keys:A?G:M(d),entries:$},N)for(J in de)J in P||D(P,J,de[J]);else a(a.P+a.F*(s||X),C,de);return de}},{"./_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(h,F,o){var m=h("./_wks")("iterator"),a=!1;try{var D=[7][m]();D.return=function(){a=!0},Array.from(D,function(){throw 2})}catch(O){}F.exports=function(O,_){if(!_&&!a)return!1;var y=!1;try{var v=[7],c=v[m]();c.next=function(){return{done:y=!0}},v[m]=function(){return c},O(v)}catch(l){}return y}},{"./_wks":166}],124:[function(h,F,o){F.exports=function(m,a){return{value:a,done:!!m}}},{}],125:[function(h,F,o){F.exports={}},{}],126:[function(h,F,o){F.exports=!0},{}],127:[function(h,F,o){var m=h("./_uid")("meta"),a=h("./_is-object"),D=h("./_has"),O=h("./_object-dp").f,_=0,y=Object.isExtensible||function(){return!0},v=!h("./_fails")(function(){return y(Object.preventExtensions({}))}),c=function(u){O(u,m,{value:{i:"O"+ ++_,w:{}}})},l=function(u,f){if(!a(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!D(u,m)){if(!y(u))return"F";if(!f)return"E";c(u)}return u[m].i},s=function(u,f){if(!D(u,m)){if(!y(u))return!0;if(!f)return!1;c(u)}return u[m].w},r=function(u){return v&&d.NEED&&y(u)&&!D(u,m)&&c(u),u},d=F.exports={KEY:m,NEED:!1,fastKey:l,getWeak:s,onFreeze:r}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(h,F,o){var m=h("./_global"),a=h("./_task").set,D=m.MutationObserver||m.WebKitMutationObserver,O=m.process,_=m.Promise,y=h("./_cof")(O)=="process";F.exports=function(){var v,c,l,s=function(){var f,x;for(y&&(f=O.domain)&&f.exit();v;){x=v.fn,v=v.next;try{x()}catch(C){throw v?l():c=void 0,C}}c=void 0,f&&f.enter()};if(y)l=function(){O.nextTick(s)};else if(D&&!(m.navigator&&m.navigator.standalone)){var r=!0,d=document.createTextNode("");new D(s).observe(d,{characterData:!0}),l=function(){d.data=r=!r}}else if(_&&_.resolve){var u=_.resolve(void 0);l=function(){u.then(s)}}else l=function(){a.call(m,s)};return function(f){var x={fn:f,next:void 0};c&&(c.next=x),v||(v=x,l()),c=x}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(h,F,o){"use strict";var m=h("./_a-function");function a(D){var O,_;this.promise=new D(function(y,v){if(O!==void 0||_!==void 0)throw TypeError("Bad Promise constructor");O=y,_=v}),this.resolve=m(O),this.reject=m(_)}F.exports.f=function(D){return new a(D)}},{"./_a-function":92}],130:[function(h,F,o){"use strict";var m=h("./_descriptors"),a=h("./_object-keys"),D=h("./_object-gops"),O=h("./_object-pie"),_=h("./_to-object"),y=h("./_iobject"),v=Object.assign;F.exports=!v||h("./_fails")(function(){var c={},l={},s=Symbol(),r="abcdefghijklmnopqrst";return c[s]=7,r.split("").forEach(function(d){l[d]=d}),v({},c)[s]!=7||Object.keys(v({},l)).join("")!=r})?function(l,s){for(var r=_(l),d=arguments.length,u=1,f=D.f,x=O.f;d>u;)for(var C=y(arguments[u++]),b=f?a(C).concat(f(C)):a(C),g=b.length,E=0,A;g>E;)A=b[E++],(!m||x.call(C,A))&&(r[A]=C[A]);return r}:v},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(h,F,o){var m=h("./_an-object"),a=h("./_object-dps"),D=h("./_enum-bug-keys"),O=h("./_shared-key")("IE_PROTO"),_=function(){},y="prototype",v=function(){var c=h("./_dom-create")("iframe"),l=D.length,s="<",r=">",d;for(c.style.display="none",h("./_html").appendChild(c),c.src="javascript:",d=c.contentWindow.document,d.open(),d.write(s+"script"+r+"document.F=Object"+s+"/script"+r),d.close(),v=d.F;l--;)delete v[y][D[l]];return v()};F.exports=Object.create||function(l,s){var r;return l!==null?(_[y]=m(l),r=new _,_[y]=null,r[O]=l):r=v(),s===void 0?r:a(r,s)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(h,F,o){var m=h("./_an-object"),a=h("./_ie8-dom-define"),D=h("./_to-primitive"),O=Object.defineProperty;o.f=h("./_descriptors")?Object.defineProperty:function(y,v,c){if(m(y),v=D(v,!0),m(c),a)try{return O(y,v,c)}catch(l){}if("get"in c||"set"in c)throw TypeError("Accessors not supported!");return"value"in c&&(y[v]=c.value),y}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(h,F,o){var m=h("./_object-dp"),a=h("./_an-object"),D=h("./_object-keys");F.exports=h("./_descriptors")?Object.defineProperties:function(_,y){a(_);for(var v=D(y),c=v.length,l=0,s;c>l;)m.f(_,s=v[l++],y[s]);return _}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(h,F,o){var m=h("./_object-pie"),a=h("./_property-desc"),D=h("./_to-iobject"),O=h("./_to-primitive"),_=h("./_has"),y=h("./_ie8-dom-define"),v=Object.getOwnPropertyDescriptor;o.f=h("./_descriptors")?v:function(l,s){if(l=D(l),s=O(s,!0),y)try{return v(l,s)}catch(r){}if(_(l,s))return a(!m.f.call(l,s),l[s])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(h,F,o){var m=h("./_to-iobject"),a=h("./_object-gopn").f,D={}.toString,O=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_=function(y){try{return a(y)}catch(v){return O.slice()}};F.exports.f=function(v){return O&&D.call(v)=="[object Window]"?_(v):a(m(v))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(h,F,o){var m=h("./_object-keys-internal"),a=h("./_enum-bug-keys").concat("length","prototype");o.f=Object.getOwnPropertyNames||function(O){return m(O,a)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(h,F,o){o.f=Object.getOwnPropertySymbols},{}],138:[function(h,F,o){var m=h("./_has"),a=h("./_to-object"),D=h("./_shared-key")("IE_PROTO"),O=Object.prototype;F.exports=Object.getPrototypeOf||function(_){return _=a(_),m(_,D)?_[D]:typeof _.constructor=="function"&&_ instanceof _.constructor?_.constructor.prototype:_ instanceof Object?O:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(h,F,o){var m=h("./_has"),a=h("./_to-iobject"),D=h("./_array-includes")(!1),O=h("./_shared-key")("IE_PROTO");F.exports=function(_,y){var v=a(_),c=0,l=[],s;for(s in v)s!=O&&(m(v,s)&&l.push(s));for(;y.length>c;)m(v,s=y[c++])&&(~D(l,s)||l.push(s));return l}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(h,F,o){var m=h("./_object-keys-internal"),a=h("./_enum-bug-keys");F.exports=Object.keys||function(O){return m(O,a)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(h,F,o){o.f={}.propertyIsEnumerable},{}],142:[function(h,F,o){var m=h("./_export"),a=h("./_core"),D=h("./_fails");F.exports=function(O,_){var y=(a.Object||{})[O]||Object[O],v={};v[O]=_(y),m(m.S+m.F*D(function(){y(1)}),"Object",v)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(h,F,o){var m=h("./_descriptors"),a=h("./_object-keys"),D=h("./_to-iobject"),O=h("./_object-pie").f;F.exports=function(_){return function(y){for(var v=D(y),c=a(v),l=c.length,s=0,r=[],d;l>s;)d=c[s++],(!m||O.call(v,d))&&r.push(_?[d,v[d]]:v[d]);return r}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(h,F,o){F.exports=function(m){try{return{e:!1,v:m()}}catch(a){return{e:!0,v:a}}}},{}],145:[function(h,F,o){var m=h("./_an-object"),a=h("./_is-object"),D=h("./_new-promise-capability");F.exports=function(O,_){if(m(O),a(_)&&_.constructor===O)return _;var y=D.f(O),v=y.resolve;return v(_),y.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(h,F,o){F.exports=function(m,a){return{enumerable:!(m&1),configurable:!(m&2),writable:!(m&4),value:a}}},{}],147:[function(h,F,o){var m=h("./_hide");F.exports=function(a,D,O){for(var _ in D)O&&a[_]?a[_]=D[_]:m(a,_,D[_]);return a}},{"./_hide":112}],148:[function(h,F,o){F.exports=h("./_hide")},{"./_hide":112}],149:[function(h,F,o){"use strict";var m=h("./_global"),a=h("./_core"),D=h("./_object-dp"),O=h("./_descriptors"),_=h("./_wks")("species");F.exports=function(y){var v=typeof a[y]=="function"?a[y]:m[y];O&&v&&!v[_]&&D.f(v,_,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(h,F,o){var m=h("./_object-dp").f,a=h("./_has"),D=h("./_wks")("toStringTag");F.exports=function(O,_,y){O&&!a(O=y?O:O.prototype,D)&&m(O,D,{configurable:!0,value:_})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(h,F,o){var m=h("./_shared")("keys"),a=h("./_uid");F.exports=function(D){return m[D]||(m[D]=a(D))}},{"./_shared":152,"./_uid":162}],152:[function(h,F,o){var m=h("./_core"),a=h("./_global"),D="__core-js_shared__",O=a[D]||(a[D]={});(F.exports=function(_,y){return O[_]||(O[_]=y!==void 0?y:{})})("versions",[]).push({version:m.version,mode:h("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(h,F,o){var m=h("./_an-object"),a=h("./_a-function"),D=h("./_wks")("species");F.exports=function(O,_){var y=m(O).constructor,v;return y===void 0||(v=m(y)[D])==null?_:a(v)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(h,F,o){var m=h("./_to-integer"),a=h("./_defined");F.exports=function(D){return function(O,_){var y=String(a(O)),v=m(_),c=y.length,l,s;return v<0||v>=c?D?"":void 0:(l=y.charCodeAt(v),l<55296||l>56319||v+1===c||(s=y.charCodeAt(v+1))<56320||s>57343?D?y.charAt(v):l:D?y.slice(v,v+2):(l-55296<<10)+(s-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(h,F,o){var m=h("./_ctx"),a=h("./_invoke"),D=h("./_html"),O=h("./_dom-create"),_=h("./_global"),y=_.process,v=_.setImmediate,c=_.clearImmediate,l=_.MessageChannel,s=_.Dispatch,r=0,d={},u="onreadystatechange",f,x,C,b=function(){var E=+this;if(d.hasOwnProperty(E)){var A=d[E];delete d[E],A()}},g=function(E){b.call(E.data)};(!v||!c)&&(v=function(A){for(var N=[],M=1;arguments.length>M;)N.push(arguments[M++]);return d[++r]=function(){a(typeof A=="function"?A:Function(A),N)},f(r),r},c=function(A){delete d[A]},h("./_cof")(y)=="process"?f=function(E){y.nextTick(m(b,E,1))}:s&&s.now?f=function(E){s.now(m(b,E,1))}:l?(x=new l,C=x.port2,x.port1.onmessage=g,f=m(C.postMessage,C,1)):_.addEventListener&&typeof postMessage=="function"&&!_.importScripts?(f=function(E){_.postMessage(E+"","*")},_.addEventListener("message",g,!1)):u in O("script")?f=function(E){D.appendChild(O("script"))[u]=function(){D.removeChild(this),b.call(E)}}:f=function(E){setTimeout(m(b,E,1),0)}),F.exports={set:v,clear:c}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(h,F,o){var m=h("./_to-integer"),a=Math.max,D=Math.min;F.exports=function(O,_){return O=m(O),O<0?a(O+_,0):D(O,_)}},{"./_to-integer":157}],157:[function(h,F,o){var m=Math.ceil,a=Math.floor;F.exports=function(D){return isNaN(D=+D)?0:(D>0?a:m)(D)}},{}],158:[function(h,F,o){var m=h("./_iobject"),a=h("./_defined");F.exports=function(D){return m(a(D))}},{"./_defined":102,"./_iobject":116}],159:[function(h,F,o){var m=h("./_to-integer"),a=Math.min;F.exports=function(D){return D>0?a(m(D),9007199254740991):0}},{"./_to-integer":157}],160:[function(h,F,o){var m=h("./_defined");F.exports=function(a){return Object(m(a))}},{"./_defined":102}],161:[function(h,F,o){var m=h("./_is-object");F.exports=function(a,D){if(!m(a))return a;var O,_;if(D&&typeof(O=a.toString)=="function"&&!m(_=O.call(a)))return _;if(typeof(O=a.valueOf)=="function"&&!m(_=O.call(a)))return _;if(!D&&typeof(O=a.toString)=="function"&&!m(_=O.call(a)))return _;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(h,F,o){var m=0,a=Math.random();F.exports=function(D){return"Symbol(".concat(D===void 0?"":D,")_",(++m+a).toString(36))}},{}],163:[function(h,F,o){var m=h("./_global"),a=m.navigator;F.exports=a&&a.userAgent||""},{"./_global":110}],164:[function(h,F,o){var m=h("./_global"),a=h("./_core"),D=h("./_library"),O=h("./_wks-ext"),_=h("./_object-dp").f;F.exports=function(y){var v=a.Symbol||(a.Symbol=D?{}:m.Symbol||{});y.charAt(0)!="_"&&!(y in v)&&_(v,y,{value:O.f(y)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(h,F,o){o.f=h("./_wks")},{"./_wks":166}],166:[function(h,F,o){var m=h("./_shared")("wks"),a=h("./_uid"),D=h("./_global").Symbol,O=typeof D=="function",_=F.exports=function(y){return m[y]||(m[y]=O&&D[y]||(O?D:a)("Symbol."+y))};_.store=m},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(h,F,o){var m=h("./_classof"),a=h("./_wks")("iterator"),D=h("./_iterators");F.exports=h("./_core").getIteratorMethod=function(O){if(O!=null)return O[a]||O["@@iterator"]||D[m(O)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(h,F,o){"use strict";var m=h("./_ctx"),a=h("./_export"),D=h("./_to-object"),O=h("./_iter-call"),_=h("./_is-array-iter"),y=h("./_to-length"),v=h("./_create-property"),c=h("./core.get-iterator-method");a(a.S+a.F*!h("./_iter-detect")(function(l){Array.from(l)}),"Array",{from:function(s){var r=D(s),d=typeof this=="function"?this:Array,u=arguments.length,f=u>1?arguments[1]:void 0,x=f!==void 0,C=0,b=c(r),g,E,A,N;if(x&&(f=m(f,u>2?arguments[2]:void 0,2)),b!=null&&!(d==Array&&_(b)))for(N=b.call(r),E=new d;!(A=N.next()).done;C++)v(E,C,x?O(N,f,[A.value,C],!0):A.value);else for(g=y(r.length),E=new d(g);g>C;C++)v(E,C,x?f(r[C],C):r[C]);return E.length=C,E}})},{"./_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(h,F,o){"use strict";var m=h("./_add-to-unscopables"),a=h("./_iter-step"),D=h("./_iterators"),O=h("./_to-iobject");F.exports=h("./_iter-define")(Array,"Array",function(_,y){this._t=O(_),this._i=0,this._k=y},function(){var _=this._t,y=this._k,v=this._i++;return!_||v>=_.length?(this._t=void 0,a(1)):y=="keys"?a(0,v):y=="values"?a(0,_[v]):a(0,[v,_[v]])},"values"),D.Arguments=D.Array,m("keys"),m("values"),m("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(h,F,o){"use strict";var m=h("./_is-object"),a=h("./_object-gpo"),D=h("./_wks")("hasInstance"),O=Function.prototype;D in O||h("./_object-dp").f(O,D,{value:function(_){if(typeof this!="function"||!m(_))return!1;if(!m(this.prototype))return _ instanceof this;for(;_=a(_);)if(this.prototype===_)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(h,F,o){var m=h("./_export");m(m.S+m.F,"Object",{assign:h("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(h,F,o){var m=h("./_export");m(m.S,"Object",{create:h("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(h,F,o){var m=h("./_export");m(m.S+m.F*!h("./_descriptors"),"Object",{defineProperty:h("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(h,F,o){h("./_object-sap")("getOwnPropertyNames",function(){return h("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(h,F,o){var m=h("./_to-object"),a=h("./_object-gpo");h("./_object-sap")("getPrototypeOf",function(){return function(O){return a(m(O))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(h,F,o){var m=h("./_to-object"),a=h("./_object-keys");h("./_object-sap")("keys",function(){return function(O){return a(m(O))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(h,F,o){arguments[4][71][0].apply(o,arguments)},{dup:71}],178:[function(h,F,o){"use strict";var m=h("./_library"),a=h("./_global"),D=h("./_ctx"),O=h("./_classof"),_=h("./_export"),y=h("./_is-object"),v=h("./_a-function"),c=h("./_an-instance"),l=h("./_for-of"),s=h("./_species-constructor"),r=h("./_task").set,d=h("./_microtask")(),u=h("./_new-promise-capability"),f=h("./_perform"),x=h("./_user-agent"),C=h("./_promise-resolve"),b="Promise",g=a.TypeError,E=a.process,A=E&&E.versions,N=A&&A.v8||"",M=a[b],w=O(E)=="process",Y=function(){},X,P,H,G,$=P=u.f,he=!!function(){try{var T=M.resolve(1),I=(T.constructor={})[h("./_wks")("species")]=function(se){se(Y,Y)};return(w||typeof PromiseRejectionEvent=="function")&&T.then(Y)instanceof I&&N.indexOf("6.6")!==0&&x.indexOf("Chrome/66")===-1}catch(se){}}(),de=function(T){var I;return y(T)&&typeof(I=T.then)=="function"?I:!1},J=function(T,I){if(T._n)return;T._n=!0;var se=T._c;d(function(){for(var me=T._v,xe=T._s==1,Ee=0,Oe=function(le){var ge=xe?le.ok:le.fail,ye=le.resolve,ee=le.reject,oe=le.domain,Z,ue,V;try{ge?(xe||(T._h==2&&U(T),T._h=1),ge===!0?Z=me:(oe&&oe.enter(),Z=ge(me),oe&&(oe.exit(),V=!0)),Z===le.promise?ee(g("Promise-chain cycle")):(ue=de(Z))?ue.call(Z,ye,ee):ye(Z)):ee(me)}catch(Q){oe&&!V&&oe.exit(),ee(Q)}};se.length>Ee;)Oe(se[Ee++]);T._c=[],T._n=!1,I&&!T._h&&fe(T)})},fe=function(T){r.call(a,function(){var I=T._v,se=q(T),me,xe,Ee;if(se&&(me=f(function(){w?E.emit("unhandledRejection",I,T):(xe=a.onunhandledrejection)?xe({promise:T,reason:I}):(Ee=a.console)&&Ee.error&&Ee.error("Unhandled promise rejection",I)}),T._h=w||q(T)?2:1),T._a=void 0,se&&me.e)throw me.v})},q=function(T){return T._h!==1&&(T._a||T._c).length===0},U=function(T){r.call(a,function(){var I;w?E.emit("rejectionHandled",T):(I=a.onrejectionhandled)&&I({promise:T,reason:T._v})})},z=function(T){var I=this;if(I._d)return;I._d=!0,I=I._w||I,I._v=T,I._s=2,I._a||(I._a=I._c.slice()),J(I,!0)},L=function(T){var I=this,se;if(I._d)return;I._d=!0,I=I._w||I;try{if(I===T)throw g("Promise can't be resolved itself");(se=de(T))?d(function(){var me={_w:I,_d:!1};try{se.call(T,D(L,me,1),D(z,me,1))}catch(xe){z.call(me,xe)}}):(I._v=T,I._s=1,J(I,!1))}catch(me){z.call({_w:I,_d:!1},me)}};he||(M=function(I){c(this,M,b,"_h"),v(I),X.call(this);try{I(D(L,this,1),D(z,this,1))}catch(se){z.call(this,se)}},X=function(I){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},X.prototype=h("./_redefine-all")(M.prototype,{then:function(I,se){var me=$(s(this,M));return me.ok=typeof I=="function"?I:!0,me.fail=typeof se=="function"&&se,me.domain=w?E.domain:void 0,this._c.push(me),this._a&&this._a.push(me),this._s&&J(this,!1),me.promise},catch:function(T){return this.then(void 0,T)}}),H=function(){var T=new X;this.promise=T,this.resolve=D(L,T,1),this.reject=D(z,T,1)},u.f=$=function(T){return T===M||T===G?new H(T):P(T)}),_(_.G+_.W+_.F*!he,{Promise:M}),h("./_set-to-string-tag")(M,b),h("./_set-species")(b),G=h("./_core")[b],_(_.S+_.F*!he,b,{reject:function(I){var se=$(this),me=se.reject;return me(I),se.promise}}),_(_.S+_.F*(m||!he),b,{resolve:function(I){return C(m&&this===G?M:this,I)}}),_(_.S+_.F*!(he&&h("./_iter-detect")(function(T){M.all(T).catch(Y)})),b,{all:function(I){var se=this,me=$(se),xe=me.resolve,Ee=me.reject,Oe=f(function(){var le=[],ge=0,ye=1;l(I,!1,function(ee){var oe=ge++,Z=!1;le.push(void 0),ye++,se.resolve(ee).then(function(ue){if(Z)return;Z=!0,le[oe]=ue,--ye||xe(le)},Ee)}),--ye||xe(le)});return Oe.e&&Ee(Oe.v),me.promise},race:function(I){var se=this,me=$(se),xe=me.reject,Ee=f(function(){l(I,!1,function(Oe){se.resolve(Oe).then(me.resolve,xe)})});return Ee.e&&xe(Ee.v),me.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(h,F,o){var m=h("./_export"),a=h("./_to-absolute-index"),D=String.fromCharCode,O=String.fromCodePoint;m(m.S+m.F*(!!O&&O.length!=1),"String",{fromCodePoint:function(y){for(var v=[],c=arguments.length,l=0,s;c>l;){if(s=+arguments[l++],a(s,1114111)!==s)throw RangeError(s+" is not a valid code point");v.push(s<65536?D(s):D(((s-=65536)>>10)+55296,s%1024+56320))}return v.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(h,F,o){"use strict";var m=h("./_string-at")(!0);h("./_iter-define")(String,"String",function(a){this._t=String(a),this._i=0},function(){var a=this._t,D=this._i,O;return D>=a.length?{value:void 0,done:!0}:(O=m(a,D),this._i+=O.length,{value:O,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(h,F,o){"use strict";var m=h("./_global"),a=h("./_has"),D=h("./_descriptors"),O=h("./_export"),_=h("./_redefine"),y=h("./_meta").KEY,v=h("./_fails"),c=h("./_shared"),l=h("./_set-to-string-tag"),s=h("./_uid"),r=h("./_wks"),d=h("./_wks-ext"),u=h("./_wks-define"),f=h("./_enum-keys"),x=h("./_is-array"),C=h("./_an-object"),b=h("./_is-object"),g=h("./_to-object"),E=h("./_to-iobject"),A=h("./_to-primitive"),N=h("./_property-desc"),M=h("./_object-create"),w=h("./_object-gopn-ext"),Y=h("./_object-gopd"),X=h("./_object-gops"),P=h("./_object-dp"),H=h("./_object-keys"),G=Y.f,$=P.f,he=w.f,de=m.Symbol,J=m.JSON,fe=J&&J.stringify,q="prototype",U=r("_hidden"),z=r("toPrimitive"),L={}.propertyIsEnumerable,T=c("symbol-registry"),I=c("symbols"),se=c("op-symbols"),me=Object[q],xe=typeof de=="function"&&!!X.f,Ee=m.QObject,Oe=!Ee||!Ee[q]||!Ee[q].findChild,le=D&&v(function(){return M($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a!=7})?function(be,Te,Be){var Fe=G(me,Te);Fe&&delete me[Te],$(be,Te,Be),Fe&&be!==me&&$(me,Te,Fe)}:$,ge=function(be){var Te=I[be]=M(de[q]);return Te._k=be,Te},ye=xe&&typeof de.iterator=="symbol"?function(be){return typeof be=="symbol"}:function(be){return be instanceof de},ee=function(Te,Be,Fe){return Te===me&&ee(se,Be,Fe),C(Te),Be=A(Be,!0),C(Fe),a(I,Be)?(Fe.enumerable?(a(Te,U)&&Te[U][Be]&&(Te[U][Be]=!1),Fe=M(Fe,{enumerable:N(0,!1)})):(a(Te,U)||$(Te,U,N(1,{})),Te[U][Be]=!0),le(Te,Be,Fe)):$(Te,Be,Fe)},oe=function(Te,Be){C(Te);for(var Fe=f(Be=E(Be)),Ue=0,We=Fe.length,Ve;We>Ue;)ee(Te,Ve=Fe[Ue++],Be[Ve]);return Te},Z=function(Te,Be){return Be===void 0?M(Te):oe(M(Te),Be)},ue=function(Te){var Be=L.call(this,Te=A(Te,!0));return this===me&&a(I,Te)&&!a(se,Te)?!1:Be||!a(this,Te)||!a(I,Te)||a(this,U)&&this[U][Te]?Be:!0},V=function(Te,Be){if(Te=E(Te),Be=A(Be,!0),Te===me&&a(I,Be)&&!a(se,Be))return;var Fe=G(Te,Be);return Fe&&a(I,Be)&&!(a(Te,U)&&Te[U][Be])&&(Fe.enumerable=!0),Fe},Q=function(Te){for(var Be=he(E(Te)),Fe=[],Ue=0,We;Be.length>Ue;)!a(I,We=Be[Ue++])&&We!=U&&We!=y&&Fe.push(We);return Fe},ae=function(Te){for(var Be=Te===me,Fe=he(Be?se:E(Te)),Ue=[],We=0,Ve;Fe.length>We;)a(I,Ve=Fe[We++])&&(Be?a(me,Ve):!0)&&Ue.push(I[Ve]);return Ue};xe||(de=function(){if(this instanceof de)throw TypeError("Symbol is not a constructor!");var Te=s(arguments.length>0?arguments[0]:void 0),Be=function(Fe){this===me&&Be.call(se,Fe),a(this,U)&&a(this[U],Te)&&(this[U][Te]=!1),le(this,Te,N(1,Fe))};return D&&Oe&&le(me,Te,{configurable:!0,set:Be}),ge(Te)},_(de[q],"toString",function(){return this._k}),Y.f=V,P.f=ee,h("./_object-gopn").f=w.f=Q,h("./_object-pie").f=ue,X.f=ae,D&&!h("./_library")&&_(me,"propertyIsEnumerable",ue,!0),d.f=function(be){return ge(r(be))}),O(O.G+O.W+O.F*!xe,{Symbol:de});for(var K="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),j=0;K.length>j;)r(K[j++]);for(var k=H(r.store),W=0;k.length>W;)u(k[W++]);O(O.S+O.F*!xe,"Symbol",{for:function(be){return a(T,be+="")?T[be]:T[be]=de(be)},keyFor:function(Te){if(!ye(Te))throw TypeError(Te+" is not a symbol!");for(var Be in T)if(T[Be]===Te)return Be},useSetter:function(){Oe=!0},useSimple:function(){Oe=!1}}),O(O.S+O.F*!xe,"Object",{create:Z,defineProperty:ee,defineProperties:oe,getOwnPropertyDescriptor:V,getOwnPropertyNames:Q,getOwnPropertySymbols:ae});var we=v(function(){X.f(1)});O(O.S+O.F*we,"Object",{getOwnPropertySymbols:function(Te){return X.f(g(Te))}}),J&&O(O.S+O.F*(!xe||v(function(){var be=de();return fe([be])!="[null]"||fe({a:be})!="{}"||fe(Object(be))!="{}"})),"JSON",{stringify:function(Te){for(var Be=[Te],Fe=1,Ue,We;arguments.length>Fe;)Be.push(arguments[Fe++]);return We=Ue=Be[1],!b(Ue)&&Te===void 0||ye(Te)?void 0:(x(Ue)||(Ue=function(Ve,Ge){if(typeof We=="function"&&(Ge=We.call(this,Ve,Ge)),!ye(Ge))return Ge}),Be[1]=Ue,fe.apply(J,Be))}}),de[q][z]||h("./_hide")(de[q],z,de[q].valueOf),l(de,"Symbol"),l(Math,"Math",!0),l(m.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(h,F,o){var m=h("./_export"),a=h("./_object-to-array")(!0);m(m.S,"Object",{entries:function(O){return a(O)}})},{"./_export":107,"./_object-to-array":143}],183:[function(h,F,o){"use strict";var m=h("./_export"),a=h("./_core"),D=h("./_global"),O=h("./_species-constructor"),_=h("./_promise-resolve");m(m.P+m.R,"Promise",{finally:function(y){var v=O(this,a.Promise||D.Promise),c=typeof y=="function";return this.then(c?function(l){return _(v,y()).then(function(){return l})}:y,c?function(l){return _(v,y()).then(function(){throw l})}:y)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(h,F,o){"use strict";var m=h("./_export"),a=h("./_new-promise-capability"),D=h("./_perform");m(m.S,"Promise",{try:function(O){var _=a.f(this),y=D(O);return(y.e?_.reject:_.resolve)(y.v),_.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(h,F,o){h("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(h,F,o){h("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(h,F,o){h("./es6.array.iterator");for(var m=h("./_global"),a=h("./_hide"),D=h("./_iterators"),O=h("./_wks")("toStringTag"),_="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(","),y=0;y<_.length;y++){var v=_[y],c=m[v],l=c&&c.prototype;l&&!l[O]&&a(l,O,v),D[v]=D.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(h,F,o){var m=h("./_export"),a=h("./_task");m(m.G+m.B,{setImmediate:a.set,clearImmediate:a.clear})},{"./_export":107,"./_task":155}],189:[function(h,F,o){(function(m){"use strict";var a=h("babel-runtime/helpers/typeof"),D=O(a);function O(A){return A&&A.__esModule?A:{default:A}}function _(A){return Array.isArray?Array.isArray(A):E(A)==="[object Array]"}o.isArray=_;function y(A){return typeof A=="boolean"}o.isBoolean=y;function v(A){return A===null}o.isNull=v;function c(A){return A==null}o.isNullOrUndefined=c;function l(A){return typeof A=="number"}o.isNumber=l;function s(A){return typeof A=="string"}o.isString=s;function r(A){return(typeof A=="undefined"?"undefined":(0,D.default)(A))==="symbol"}o.isSymbol=r;function d(A){return A===void 0}o.isUndefined=d;function u(A){return E(A)==="[object RegExp]"}o.isRegExp=u;function f(A){return(typeof A=="undefined"?"undefined":(0,D.default)(A))==="object"&&A!==null}o.isObject=f;function x(A){return E(A)==="[object Date]"}o.isDate=x;function C(A){return E(A)==="[object Error]"||A instanceof Error}o.isError=C;function b(A){return typeof A=="function"}o.isFunction=b;function g(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||(typeof A=="undefined"?"undefined":(0,D.default)(A))==="symbol"||typeof A=="undefined"}o.isPrimitive=g,o.isBuffer=m.isBuffer;function E(A){return Object.prototype.toString.call(A)}}).call(this,{isBuffer:h("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(h,F,o){"use strict";var m=h("babel-runtime/helpers/typeof"),a=D(m);function D(O){return O&&O.__esModule?O:{default:O}}(function(O){"use strict";var _=function(){var s=/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,d=/[^-+\dA-Z]/g;return function(u,f,x,C){if(arguments.length===1&&l(u)==="string"&&!/\d/.test(u)&&(f=u,u=void 0),u=u||new Date,u instanceof Date||(u=new Date(u)),isNaN(u))throw TypeError("Invalid date");f=String(_.masks[f]||f||_.masks.default);var b=f.slice(0,4);(b==="UTC:"||b==="GMT:")&&(f=f.slice(4),x=!0,b==="GMT:"&&(C=!0));var g=x?"getUTC":"get",E=u[g+"Date"](),A=u[g+"Day"](),N=u[g+"Month"](),M=u[g+"FullYear"](),w=u[g+"Hours"](),Y=u[g+"Minutes"](),X=u[g+"Seconds"](),P=u[g+"Milliseconds"](),H=x?0:u.getTimezoneOffset(),G=v(u),$=c(u),he={d:E,dd:y(E),ddd:_.i18n.dayNames[A],dddd:_.i18n.dayNames[A+7],m:N+1,mm:y(N+1),mmm:_.i18n.monthNames[N],mmmm:_.i18n.monthNames[N+12],yy:String(M).slice(2),yyyy:M,h:w%12||12,hh:y(w%12||12),H:w,HH:y(w),M:Y,MM:y(Y),s:X,ss:y(X),l:y(P,3),L:y(Math.round(P/10)),t:w<12?"a":"p",tt:w<12?"am":"pm",T:w<12?"A":"P",TT:w<12?"AM":"PM",Z:C?"GMT":x?"UTC":(String(u).match(r)||[""]).pop().replace(d,""),o:(H>0?"-":"+")+y(Math.floor(Math.abs(H)/60)*100+Math.abs(H)%60,4),S:["th","st","nd","rd"][E%10>3?0:(E%100-E%10!=10)*E%10],W:G,N:$};return f.replace(s,function(de){return de in he?he[de]:de.slice(1,de.length-1)})}}();_.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"},_.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 y(s,r){for(s=String(s),r=r||2;s.length<r;)s="0"+s;return s}function v(s){var r=new Date(s.getFullYear(),s.getMonth(),s.getDate());r.setDate(r.getDate()-(r.getDay()+6)%7+3);var d=new Date(r.getFullYear(),0,4);d.setDate(d.getDate()-(d.getDay()+6)%7+3);var u=r.getTimezoneOffset()-d.getTimezoneOffset();r.setHours(r.getHours()-u);var f=(r-d)/(864e5*7);return 1+Math.floor(f)}function c(s){var r=s.getDay();return r===0&&(r=7),r}function l(s){return s===null?"null":s===void 0?"undefined":(typeof s=="undefined"?"undefined":(0,a.default)(s))!=="object"?typeof s=="undefined"?"undefined":(0,a.default)(s):Array.isArray(s)?"array":{}.toString.call(s).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return _}):(typeof o=="undefined"?"undefined":(0,a.default)(o))==="object"?F.exports=_:O.dateFormat=_})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(h,F,o){/*!
|
|
|
* escape-html
|
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
|
* Copyright(c) 2015 Andreas Lubbe
|
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var m=/["'&<>]/;F.exports=a;function a(D){var O=""+D,_=m.exec(O);if(!_)return O;var y,v="",c=0,l=0;for(c=_.index;c<O.length;c++){switch(O.charCodeAt(c)){case 34:y=""";break;case 38:y="&";break;case 39:y="'";break;case 60:y="<";break;case 62:y=">";break;default:continue}l!==c&&(v+=O.substring(l,c)),l=c+1,v+=y}return l!==c?v+O.substring(l,c):v}},{}],192:[function(h,F,o){function m(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}F.exports=m,m.EventEmitter=m,m.prototype._events=void 0,m.prototype._maxListeners=void 0,m.defaultMaxListeners=10,m.prototype.setMaxListeners=function(y){if(!D(y)||y<0||isNaN(y))throw TypeError("n must be a positive number");return this._maxListeners=y,this},m.prototype.emit=function(y){var v,c,l,s,r,d;if(this._events||(this._events={}),y==="error"&&(!this._events.error||O(this._events.error)&&!this._events.error.length)){if(v=arguments[1],v instanceof Error)throw v;var u=new Error('Uncaught, unspecified "error" event. ('+v+")");throw u.context=v,u}if(c=this._events[y],_(c))return!1;if(a(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),c.apply(this,s)}else if(O(c))for(s=Array.prototype.slice.call(arguments,1),d=c.slice(),l=d.length,r=0;r<l;r++)d[r].apply(this,s);return!0},m.prototype.addListener=function(y,v){var c;if(!a(v))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",y,a(v.listener)?v.listener:v),this._events[y]?O(this._events[y])?this._events[y].push(v):this._events[y]=[this._events[y],v]:this._events[y]=v,O(this._events[y])&&!this._events[y].warned&&(_(this._maxListeners)?c=m.defaultMaxListeners:c=this._maxListeners,c&&c>0&&this._events[y].length>c&&(this._events[y].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[y].length),typeof console.trace=="function"&&console.trace())),this},m.prototype.on=m.prototype.addListener,m.prototype.once=function(y,v){if(!a(v))throw TypeError("listener must be a function");var c=!1;function l(){this.removeListener(y,l),c||(c=!0,v.apply(this,arguments))}return l.listener=v,this.on(y,l),this},m.prototype.removeListener=function(y,v){var c,l,s,r;if(!a(v))throw TypeError("listener must be a function");if(!this._events||!this._events[y])return this;if(c=this._events[y],s=c.length,l=-1,c===v||a(c.listener)&&c.listener===v)delete this._events[y],this._events.removeListener&&this.emit("removeListener",y,v);else if(O(c)){for(r=s;r-- >0;)if(c[r]===v||c[r].listener&&c[r].listener===v){l=r;break}if(l<0)return this;c.length===1?(c.length=0,delete this._events[y]):c.splice(l,1),this._events.removeListener&&this.emit("removeListener",y,v)}return this},m.prototype.removeAllListeners=function(y){var v,c;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[y]&&delete this._events[y],this;if(arguments.length===0){for(v in this._events){if(v==="removeListener")continue;this.removeAllListeners(v)}return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[y],a(c))this.removeListener(y,c);else if(c)for(;c.length;)this.removeListener(y,c[c.length-1]);return delete this._events[y],this},m.prototype.listeners=function(y){var v;return!this._events||!this._events[y]?v=[]:a(this._events[y])?v=[this._events[y]]:v=this._events[y].slice(),v},m.prototype.listenerCount=function(y){if(this._events){var v=this._events[y];if(a(v))return 1;if(v)return v.length}return 0},m.listenerCount=function(y,v){return y.listenerCount(v)};function a(y){return typeof y=="function"}function D(y){return typeof y=="number"}function O(y){return typeof y=="object"&&y!==null}function _(y){return y===void 0}},{}],193:[function(h,F,o){var m=h("http"),a=F.exports;for(var D in m)m.hasOwnProperty(D)&&(a[D]=m[D]);a.request=function(O,_){return O||(O={}),O.scheme="https",O.protocol="https:",m.request.call(this,O,_)}},{http:231}],194:[function(h,F,o){/*!
|
|
|
* humanize-ms - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var m=h("util"),a=h("ms");F.exports=function(D){if(typeof D=="number")return D;var O=a(D);if(O===void 0){var _=new Error(m.format("humanize-ms(%j) result undefined",D));console.warn(_.stack)}return O}},{ms:204,util:243}],195:[function(h,F,o){o.read=function(m,a,D,O,_){var y,v,c=_*8-O-1,l=(1<<c)-1,s=l>>1,r=-7,d=D?_-1:0,u=D?-1:1,f=m[a+d];for(d+=u,y=f&(1<<-r)-1,f>>=-r,r+=c;r>0;y=y*256+m[a+d],d+=u,r-=8);for(v=y&(1<<-r)-1,y>>=-r,r+=O;r>0;v=v*256+m[a+d],d+=u,r-=8);if(y===0)y=1-s;else{if(y===l)return v?NaN:(f?-1:1)*Infinity;v=v+Math.pow(2,O),y=y-s}return(f?-1:1)*v*Math.pow(2,y-O)},o.write=function(m,a,D,O,_,y){var v,c,l,s=y*8-_-1,r=(1<<s)-1,d=r>>1,u=_===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=O?0:y-1,x=O?1:-1,C=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===Infinity?(c=isNaN(a)?1:0,v=r):(v=Math.floor(Math.log(a)/Math.LN2),a*(l=Math.pow(2,-v))<1&&(v--,l*=2),v+d>=1?a+=u/l:a+=u*Math.pow(2,1-d),a*l>=2&&(v++,l/=2),v+d>=r?(c=0,v=r):v+d>=1?(c=(a*l-1)*Math.pow(2,_),v=v+d):(c=a*Math.pow(2,d-1)*Math.pow(2,_),v=0));_>=8;m[D+f]=c&255,f+=x,c/=256,_-=8);for(v=v<<_|c,s+=_;s>0;m[D+f]=v&255,f+=x,v/=256,s-=8);m[D+f-x]|=C*128}},{}],196:[function(h,F,o){typeof Object.create=="function"?F.exports=function(a,D){D&&(a.super_=D,a.prototype=Object.create(D.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:F.exports=function(a,D){if(D){a.super_=D;var O=function(){};O.prototype=D.prototype,a.prototype=new O,a.prototype.constructor=a}}},{}],197:[function(h,F,o){/*!
|
|
|
* Determine if an object is a Buffer
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
* @license MIT
|
|
|
*/F.exports=function(D){return D!=null&&(m(D)||a(D)||!!D._isBuffer)};function m(D){return!!D.constructor&&typeof D.constructor.isBuffer=="function"&&D.constructor.isBuffer(D)}function a(D){return typeof D.readFloatLE=="function"&&typeof D.slice=="function"&&m(D.slice(0,0))}},{}],198:[function(h,F,o){var m={}.toString;F.exports=Array.isArray||function(a){return m.call(a)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(h,F){typeof exports=="object"&&typeof module!="undefined"?module.exports=F(h):typeof define=="function"&&define.amd?define(F):F(h)})(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(h){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(h){for(var F={},o=0,m=h.length;o<m;o++)F[h.charAt(o)]=o;return F}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(h){if(h.length<2){var F=h.charCodeAt(0);return F<128?h: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+(h.charCodeAt(0)-55296)*1024+(h.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(h){return h.replace(re_utob,cb_utob)},cb_encode=function(h){var F=[0,2,1][h.length%3],o=h.charCodeAt(0)<<16|(h.length>1?h.charCodeAt(1):0)<<8|(h.length>2?h.charCodeAt(2):0),m=[b64chars.charAt(o>>>18),b64chars.charAt(o>>>12&63),F>=2?"=":b64chars.charAt(o>>>6&63),F>=1?"=":b64chars.charAt(o&63)];return m.join("")},btoa=global.btoa?function(h){return global.btoa(h)}:function(h){return h.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(h){var F=Object.prototype.toString.call(h)==="[object Uint8Array]";return F?h.toString("base64"):btoa(utob(String(h)))},encode=function(h,F){return F?_encode(String(h)).replace(/[+\/]/g,function(o){return o=="+"?"-":"_"}).replace(/=/g,""):_encode(h)},encodeURI=function(h){return encode(h,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(h){switch(h.length){case 4:var F=(7&h.charCodeAt(0))<<18|(63&h.charCodeAt(1))<<12|(63&h.charCodeAt(2))<<6|63&h.charCodeAt(3),o=F-65536;return fromCharCode((o>>>10)+55296)+fromCharCode((o&1023)+56320);case 3:return fromCharCode((15&h.charCodeAt(0))<<12|(63&h.charCodeAt(1))<<6|63&h.charCodeAt(2));default:return fromCharCode((31&h.charCodeAt(0))<<6|63&h.charCodeAt(1))}},btou=function(h){return h.replace(re_btou,cb_btou)},cb_decode=function(h){var F=h.length,o=F%4,m=(F>0?b64tab[h.charAt(0)]<<18:0)|(F>1?b64tab[h.charAt(1)]<<12:0)|(F>2?b64tab[h.charAt(2)]<<6:0)|(F>3?b64tab[h.charAt(3)]:0),a=[fromCharCode(m>>>16),fromCharCode(m>>>8&255),fromCharCode(m&255)];return a.length-=[0,0,2,1][o],a.join("")},_atob=global.atob?function(h){return global.atob(h)}:function(h){return h.replace(/\S{1,4}/g,cb_decode)},atob=function(h){return _atob(String(h).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(h){return(h.constructor===buffer.constructor?h:buffer.from(h,"base64")).toString()}:function(h){return(h.constructor===buffer.constructor?h:new buffer(h,"base64")).toString()}:function(h){return btou(_atob(h))},decode=function(h){return _decode(String(h).replace(/[-_]/g,function(F){return F=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var h=global.Base64;return global.Base64=_Base64,h};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(h){return{value:h,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(h){return encode(this,h)})),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(h,F,o){/*!
|
|
|
* merge-descriptors
|
|
|
* Copyright(c) 2014 Jonathan Ong
|
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
|
* MIT Licensed
|
|
|
*/"use strict";F.exports=a;var m=Object.prototype.hasOwnProperty;function a(D,O,_){if(!D)throw new TypeError("argument dest is required");if(!O)throw new TypeError("argument src is required");return _===void 0&&(_=!0),Object.getOwnPropertyNames(O).forEach(function(v){if(!_&&m.call(D,v))return;var c=Object.getOwnPropertyDescriptor(O,v);Object.defineProperty(D,v,c)}),D}},{}],201:[function(h,F,o){"use strict";function m(){this._types=Object.create(null),this._extensions=Object.create(null);for(var a=0;a<arguments.length;a++)this.define(arguments[a]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}m.prototype.define=function(a,D){for(var O in a){var _=a[O].map(function(c){return c.toLowerCase()});O=O.toLowerCase();for(var y=0;y<_.length;y++){var v=_[y];if(v[0]=="*")continue;if(!D&&v in this._types)throw new Error('Attempt to change mapping for "'+v+'" extension from "'+this._types[v]+'" to "'+O+'". Pass `force=true` to allow this, otherwise remove "'+v+'" from the list of extensions for "'+O+'".');this._types[v]=O}if(D||!this._extensions[O]){var v=_[0];this._extensions[O]=v[0]!="*"?v:v.substr(1)}}},m.prototype.getType=function(a){a=String(a);var D=a.replace(/^.*[/\\]/,"").toLowerCase(),O=D.replace(/^.*\./,"").toLowerCase(),_=D.length<a.length,y=O.length<D.length-1;return(y||!_)&&this._types[O]||null},m.prototype.getExtension=function(a){return a=/^\s*([^;\s]*)/.test(a)&&RegExp.$1,a&&this._extensions[a.toLowerCase()]||null},F.exports=m},{}],202:[function(h,F,o){"use strict";var m=h("./Mime");F.exports=new m(h("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(h,F,o){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(h,F,o){var m=1e3,a=m*60,D=a*60,O=D*24,_=O*7,y=O*365.25;F.exports=function(r,d){d=d||{};var u=typeof r;if(u==="string"&&r.length>0)return v(r);if(u==="number"&&isFinite(r))return d.long?l(r):c(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function v(r){if(r=String(r),r.length>100)return;var d=/^(-?(?:\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(!d)return;var u=parseFloat(d[1]),f=(d[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return u*y;case"weeks":case"week":case"w":return u*_;case"days":case"day":case"d":return u*O;case"hours":case"hour":case"hrs":case"hr":case"h":return u*D;case"minutes":case"minute":case"mins":case"min":case"m":return u*a;case"seconds":case"second":case"secs":case"sec":case"s":return u*m;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}function c(r){var d=Math.abs(r);return d>=O?Math.round(r/O)+"d":d>=D?Math.round(r/D)+"h":d>=a?Math.round(r/a)+"m":d>=m?Math.round(r/m)+"s":r+"ms"}function l(r){var d=Math.abs(r);return d>=O?s(r,d,O,"day"):d>=D?s(r,d,D,"hour"):d>=a?s(r,d,a,"minute"):d>=m?s(r,d,m,"second"):r+" ms"}function s(r,d,u,f){var x=d>=u*1.5;return Math.round(r/u)+" "+f+(x?"s":"")}},{}],205:[function(h,F,o){(function(m){function a(y,v){for(var c=0,l=y.length-1;l>=0;l--){var s=y[l];s==="."?y.splice(l,1):s===".."?(y.splice(l,1),c++):c&&(y.splice(l,1),c--)}if(v)for(;c--;c)y.unshift("..");return y}o.resolve=function(){for(var y="",v=!1,c=arguments.length-1;c>=-1&&!v;c--){var l=c>=0?arguments[c]:m.cwd();if(typeof l!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!l)continue;y=l+"/"+y,v=l.charAt(0)==="/"}return y=a(O(y.split("/"),function(s){return!!s}),!v).join("/"),(v?"/":"")+y||"."},o.normalize=function(y){var v=o.isAbsolute(y),c=_(y,-1)==="/";return y=a(O(y.split("/"),function(l){return!!l}),!v).join("/"),!y&&!v&&(y="."),y&&c&&(y+="/"),(v?"/":"")+y},o.isAbsolute=function(y){return y.charAt(0)==="/"},o.join=function(){var y=Array.prototype.slice.call(arguments,0);return o.normalize(O(y,function(v,c){if(typeof v!="string")throw new TypeError("Arguments to path.join must be strings");return v}).join("/"))},o.relative=function(y,v){y=o.resolve(y).substr(1),v=o.resolve(v).substr(1);function c(x){for(var C=0;C<x.length&&!(x[C]!=="");C++);for(var b=x.length-1;b>=0&&!(x[b]!=="");b--);return C>b?[]:x.slice(C,b-C+1)}for(var l=c(y.split("/")),s=c(v.split("/")),r=Math.min(l.length,s.length),d=r,u=0;u<r;u++)if(l[u]!==s[u]){d=u;break}for(var f=[],u=d;u<l.length;u++)f.push("..");return f=f.concat(s.slice(d)),f.join("/")},o.sep="/",o.delimiter=":",o.dirname=function(y){if(typeof y!="string"&&(y=y+""),y.length===0)return".";for(var v=y.charCodeAt(0),c=v===47,l=-1,s=!0,r=y.length-1;r>=1;--r)if(v=y.charCodeAt(r),v===47){if(!s){l=r;break}}else s=!1;return l===-1?c?"/":".":c&&l===1?"/":y.slice(0,l)};function D(y){typeof y!="string"&&(y=y+"");var v=0,c=-1,l=!0,s;for(s=y.length-1;s>=0;--s)if(y.charCodeAt(s)===47){if(!l){v=s+1;break}}else c===-1&&(l=!1,c=s+1);return c===-1?"":y.slice(v,c)}o.basename=function(y,v){var c=D(y);return v&&c.substr(-1*v.length)===v&&(c=c.substr(0,c.length-v.length)),c},o.extname=function(y){typeof y!="string"&&(y=y+"");for(var v=-1,c=0,l=-1,s=!0,r=0,d=y.length-1;d>=0;--d){var u=y.charCodeAt(d);if(u===47){if(!s){c=d+1;break}continue}l===-1&&(s=!1,l=d+1),u===46?v===-1?v=d:r!==1&&(r=1):v!==-1&&(r=-1)}return v===-1||l===-1||r===0||r===1&&v===l-1&&v===c+1?"":y.slice(v,l)};function O(y,v){if(y.filter)return y.filter(v);for(var c=[],l=0;l<y.length;l++)v(y[l],l,y)&&c.push(y[l]);return c}var _="ab".substr(-1)==="b"?function(y,v,c){return y.substr(v,c)}:function(y,v,c){return v<0&&(v=y.length+v),y.substr(v,c)}}).call(this,h("_process"))},{_process:208}],206:[function(h,F,o){(function(m){/*!
|
|
|
* 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 a={function:!0,object:!0},D=a[typeof window]&&window||this,O=D,_=a[typeof o]&&o,y=a[typeof F]&&F&&!F.nodeType&&F,v=_&&y&&typeof m=="object"&&m;v&&(v.global===v||v.window===v||v.self===v)&&(D=v);var c=Math.pow(2,53)-1,l=/\bOpera/,s=this,r=Object.prototype,d=r.hasOwnProperty,u=r.toString;function f(P){return P=String(P),P.charAt(0).toUpperCase()+P.slice(1)}function x(P,H,G){var $={"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 H&&G&&/^Win/i.test(P)&&!/^Windows Phone /i.test(P)&&($=$[/[\d.]+$/.exec(P)])&&(P="Windows "+$),P=String(P),H&&G&&(P=P.replace(RegExp(H,"i"),G)),P=b(P.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]),P}function C(P,H){var G=-1,$=P?P.length:0;if(typeof $=="number"&&$>-1&&$<=c)for(;++G<$;)H(P[G],G,P);else g(P,H)}function b(P){return P=w(P),/^(?:webOS|i(?:OS|P))/.test(P)?P:f(P)}function g(P,H){for(var G in P)d.call(P,G)&&H(P[G],G,P)}function E(P){return P==null?f(P):u.call(P).slice(8,-1)}function A(P,H){var G=P!=null?typeof P[H]:"number";return!/^(?:boolean|number|string|undefined)$/.test(G)&&(G=="object"?!!P[H]:!0)}function N(P){return String(P).replace(/([ -])(?!$)/g,"$1?")}function M(P,H){var G=null;return C(P,function($,he){G=H(G,$,he,P)}),G}function w(P){return String(P).replace(/^ +| +$/g,"")}function Y(P){var H=D,G=P&&typeof P=="object"&&E(P)!="String";G&&(H=P,P=null);var $=H.navigator||{},he=$.userAgent||"";P||(P=he);var de=G||s==O,J=G?!!$.likeChrome:/\bChrome\b/.test(P)&&!/internal|\n/i.test(u.toString()),fe="Object",q=G?fe:"ScriptBridgingProxyObject",U=G?fe:"Environment",z=G&&H.java?"JavaPackage":E(H.java),L=G?fe:"RuntimeObject",T=/\bJava/.test(z)&&H.java,I=T&&E(H.environment)==U,se=T?"a":"\u03B1",me=T?"b":"\u03B2",xe=H.document||{},Ee=H.operamini||H.opera,Oe=l.test(Oe=G&&Ee?Ee["[[Class]]"]:E(Ee))?Oe:Ee=null,le,ge=P,ye=[],ee=null,oe=P==he,Z=oe&&Ee&&typeof Ee.version=="function"&&Ee.version(),ue,V=k([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Q=we(["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"]),ae=Te([{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"]),K=W({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}}),j=be(["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 k(We){return M(We,function(Ve,Ge){return Ve||RegExp("\\b"+(Ge.pattern||N(Ge))+"\\b","i").exec(P)&&(Ge.label||Ge)})}function W(We){return M(We,function(Ve,Ge,Je){return Ve||(Ge[ae]||Ge[/^[a-z]+(?: +[a-z]+\b)*/i.exec(ae)]||RegExp("\\b"+N(Je)+"(?:\\b|\\w*\\d)","i").exec(P))&&Je})}function we(We){return M(We,function(Ve,Ge){return Ve||RegExp("\\b"+(Ge.pattern||N(Ge))+"\\b","i").exec(P)&&(Ge.label||Ge)})}function be(We){return M(We,function(Ve,Ge){var Je=Ge.pattern||N(Ge);return!Ve&&(Ve=RegExp("\\b"+Je+"(?:/[\\d.]+|[ \\w.]*)","i").exec(P))&&(Ve=x(Ve,Je,Ge.label||Ge)),Ve})}function Te(We){return M(We,function(Ve,Ge){var Je=Ge.pattern||N(Ge);return!Ve&&(Ve=RegExp("\\b"+Je+" *\\d+[.\\w_]*","i").exec(P)||RegExp("\\b"+Je+" *\\w+-[\\w]*","i").exec(P)||RegExp("\\b"+Je+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(P))&&((Ve=String(Ge.label&&!RegExp(Je,"i").test(Ge.label)?Ge.label:Ve).split("/"))[1]&&!/[\d.]+/.test(Ve[0])&&(Ve[0]+=" "+Ve[1]),Ge=Ge.label||Ge,Ve=b(Ve[0].replace(RegExp(Je,"i"),Ge).replace(RegExp("; *(?:"+Ge+"[_-])?","i")," ").replace(RegExp("("+Ge+")[-_.]?(\\w)","i"),"$1 $2"))),Ve})}function Be(We){return M(We,function(Ve,Ge){return Ve||(RegExp(Ge+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(P)||0)[1]||null})}function Fe(){return this.description||""}if(V&&(V=[V]),K&&!ae&&(ae=Te([K])),(le=/\bGoogle TV\b/.exec(ae))&&(ae=le[0]),/\bSimulator\b/i.test(P)&&(ae=(ae?ae+" ":"")+"Simulator"),Q=="Opera Mini"&&/\bOPiOS\b/.test(P)&&ye.push("running in Turbo/Uncompressed mode"),Q=="IE"&&/\blike iPhone OS\b/.test(P)?(le=Y(P.replace(/like iPhone OS/,"")),K=le.manufacturer,ae=le.product):/^iP/.test(ae)?(Q||(Q="Safari"),j="iOS"+((le=/ OS ([\d_]+)/i.exec(P))?" "+le[1].replace(/_/g,"."):"")):Q=="Konqueror"&&!/buntu/i.test(j)?j="Kubuntu":K&&K!="Google"&&(/Chrome/.test(Q)&&!/\bMobile Safari\b/i.test(P)||/\bVita\b/.test(ae))||/\bAndroid\b/.test(j)&&/^Chrome/.test(Q)&&/\bVersion\//i.test(P)?(Q="Android Browser",j=/\bAndroid\b/.test(j)?j:"Android"):Q=="Silk"?(/\bMobi/i.test(P)||(j="Android",ye.unshift("desktop mode")),/Accelerated *= *true/i.test(P)&&ye.unshift("accelerated")):Q=="PaleMoon"&&(le=/\bFirefox\/([\d.]+)\b/.exec(P))?ye.push("identifying as Firefox "+le[1]):Q=="Firefox"&&(le=/\b(Mobile|Tablet|TV)\b/i.exec(P))?(j||(j="Firefox OS"),ae||(ae=le[1])):!Q||(le=!/\bMinefield\b/i.test(P)&&/\b(?:Firefox|Safari)\b/.exec(Q))?(Q&&!ae&&/[\/,]|^[^(]+?\)/.test(P.slice(P.indexOf(le+"/")+8))&&(Q=null),(le=ae||K||j)&&(ae||K||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(j))&&(Q=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(j)?j:le)+" Browser")):Q=="Electron"&&(le=(/\bChrome\/([\d.]+)\b/.exec(P)||0)[1])&&ye.push("Chromium "+le),Z||(Z=Be(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",N(Q),"(?:Firefox|Minefield|NetFront)"])),(le=V=="iCab"&&parseFloat(Z)>3&&"WebKit"||/\bOpera\b/.test(Q)&&(/\bOPR\b/.test(P)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(P)&&!/^(?:Trident|EdgeHTML)$/.test(V)&&"WebKit"||!V&&/\bMSIE\b/i.test(P)&&(j=="Mac OS"?"Tasman":"Trident")||V=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Q)&&"NetFront")&&(V=[le]),Q=="IE"&&(le=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(P)||0)[1])?(Q+=" Mobile",j="Windows Phone "+(/\+$/.test(le)?le:le+".x"),ye.unshift("desktop mode")):/\bWPDesktop\b/i.test(P)?(Q="IE Mobile",j="Windows Phone 8.x",ye.unshift("desktop mode"),Z||(Z=(/\brv:([\d.]+)/.exec(P)||0)[1])):Q!="IE"&&V=="Trident"&&(le=/\brv:([\d.]+)/.exec(P))&&(Q&&ye.push("identifying as "+Q+(Z?" "+Z:"")),Q="IE",Z=le[1]),oe){if(A(H,"global"))if(T&&(le=T.lang.System,ge=le.getProperty("os.arch"),j=j||le.getProperty("os.name")+" "+le.getProperty("os.version")),I){try{Z=H.require("ringo/engine").version.join("."),Q="RingoJS"}catch(We){(le=H.system)&&le.global.system==H.system&&(Q="Narwhal",j||(j=le[0].os||null))}Q||(Q="Rhino")}else typeof H.process=="object"&&!H.process.browser&&(le=H.process)&&(typeof le.versions=="object"&&(typeof le.versions.electron=="string"?(ye.push("Node "+le.versions.node),Q="Electron",Z=le.versions.electron):typeof le.versions.nw=="string"&&(ye.push("Chromium "+Z,"Node "+le.versions.node),Q="NW.js",Z=le.versions.nw)),Q||(Q="Node.js",ge=le.arch,j=le.platform,Z=/[\d.]+/.exec(le.version),Z=Z?Z[0]:null));else E(le=H.runtime)==q?(Q="Adobe AIR",j=le.flash.system.Capabilities.os):E(le=H.phantom)==L?(Q="PhantomJS",Z=(le=le.version||null)&&le.major+"."+le.minor+"."+le.patch):typeof xe.documentMode=="number"&&(le=/\bTrident\/(\d+)/i.exec(P))?(Z=[Z,xe.documentMode],(le=+le[1]+4)!=Z[1]&&(ye.push("IE "+Z[1]+" mode"),V&&(V[1]=""),Z[1]=le),Z=Q=="IE"?String(Z[1].toFixed(1)):Z[0]):typeof xe.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Q)&&(ye.push("masking as "+Q+" "+Z),Q="IE",Z="11.0",V=["Trident"],j="Windows");j=j&&b(j)}if(Z&&(le=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Z)||/(?:alpha|beta)(?: ?\d)?/i.exec(P+";"+(oe&&$.appMinorVersion))||/\bMinefield\b/i.test(P)&&"a")&&(ee=/b/i.test(le)?"beta":"alpha",Z=Z.replace(RegExp(le+"\\+?$"),"")+(ee=="beta"?me:se)+(/\d+\+?/.exec(le)||"")),Q=="Fennec"||Q=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(j))Q="Firefox Mobile";else if(Q=="Maxthon"&&Z)Z=Z.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(ae))ae=="Xbox 360"&&(j=null),ae=="Xbox 360"&&/\bIEMobile\b/.test(P)&&ye.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Q)||Q&&!ae&&!/Browser|Mobi/.test(Q))&&(j=="Windows CE"||/Mobi/i.test(P)))Q+=" Mobile";else if(Q=="IE"&&oe)try{H.external===null&&ye.unshift("platform preview")}catch(We){ye.unshift("embedded")}else(/\bBlackBerry\b/.test(ae)||/\bBB10\b/.test(P))&&(le=(RegExp(ae.replace(/ +/g," *")+"/([.\\d]+)","i").exec(P)||0)[1]||Z)?(le=[le,/BB10/.test(P)],j=(le[1]?(ae=null,K="BlackBerry"):"Device Software")+" "+le[0],Z=null):this!=g&&ae!="Wii"&&(oe&&Ee||/Opera/.test(Q)&&/\b(?:MSIE|Firefox)\b/i.test(P)||Q=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(j)||Q=="IE"&&(j&&!/^Win/.test(j)&&Z>5.5||/\bWindows XP\b/.test(j)&&Z>8||Z==8&&!/\bTrident\b/.test(P)))&&!l.test(le=Y.call(g,P.replace(l,"")+";"))&&le.name&&(le="ing as "+le.name+((le=le.version)?" "+le:""),l.test(Q)?(/\bIE\b/.test(le)&&j=="Mac OS"&&(j=null),le="identify"+le):(le="mask"+le,Oe?Q=b(Oe.replace(/([a-z])([A-Z])/g,"$1 $2")):Q="Opera",/\bIE\b/.test(le)&&(j=null),oe||(Z=null)),V=["Presto"],ye.push(le));(le=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(P)||0)[1])&&(le=[parseFloat(le.replace(/\.(\d)$/,".0$1")),le],Q=="Safari"&&le[1].slice(-1)=="+"?(Q="WebKit Nightly",ee="alpha",Z=le[1].slice(0,-1)):(Z==le[1]||Z==(le[2]=(/\bSafari\/([\d.]+\+?)/i.exec(P)||0)[1]))&&(Z=null),le[1]=(/\bChrome\/([\d.]+)/i.exec(P)||0)[1],le[0]==537.36&&le[2]==537.36&&parseFloat(le[1])>=28&&V=="WebKit"&&(V=["Blink"]),!oe||!J&&!le[1]?(V&&(V[1]="like Safari"),le=(le=le[0],le<400?1:le<500?2:le<526?3:le<533?4:le<534?"4+":le<535?5:le<537?6:le<538?7:le<601?8:"8")):(V&&(V[1]="like Chrome"),le=le[1]||(le=le[0],le<530?1:le<532?2:le<532.05?3:le<533?4:le<534.03?5:le<534.07?6:le<534.1?7:le<534.13?8:le<534.16?9:le<534.24?10:le<534.3?11:le<535.01?12:le<535.02?"13+":le<535.07?15:le<535.11?16:le<535.19?17:le<536.05?18:le<536.1?19:le<537.01?20:le<537.11?"21+":le<537.13?23:le<537.18?24:le<537.24?25:le<537.36?26:V!="Blink"?"27":"28")),V&&(V[1]+=" "+(le+=typeof le=="number"?".x":/[.+]/.test(le)?"":"+")),Q=="Safari"&&(!Z||parseInt(Z)>45)&&(Z=le)),Q=="Opera"&&(le=/\bzbov|zvav$/.exec(j))?(Q+=" ",ye.unshift("desktop mode"),le=="zvav"?(Q+="Mini",Z=null):Q+="Mobile",j=j.replace(RegExp(" *"+le+"$"),"")):Q=="Safari"&&/\bChrome\b/.exec(V&&V[1])&&(ye.unshift("desktop mode"),Q="Chrome Mobile",Z=null,/\bOS X\b/.test(j)?(K="Apple",j="iOS 4.3+"):j=null),Z&&Z.indexOf(le=/[\d.]+$/.exec(j))==0&&P.indexOf("/"+le+"-")>-1&&(j=w(j.replace(le,""))),V&&!/\b(?:Avant|Nook)\b/.test(Q)&&(/Browser|Lunascape|Maxthon/.test(Q)||Q!="Safari"&&/^iOS/.test(j)&&/\bSafari\b/.test(V[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(Q)&&V[1])&&((le=V[V.length-1])&&ye.push(le)),ye.length&&(ye=["("+ye.join("; ")+")"]),K&&ae&&ae.indexOf(K)<0&&ye.push("on "+K),ae&&ye.push((/^on /.test(ye[ye.length-1])?"":"on ")+ae),j&&(le=/ ([\d.+]+)$/.exec(j),ue=le&&j.charAt(j.length-le[0].length-1)=="/",j={architecture:32,family:le&&!ue?j.replace(le[0],""):j,version:le?le[1]:null,toString:function(){var We=this.version;return this.family+(We&&!ue?" "+We:"")+(this.architecture==64?" 64-bit":"")}}),(le=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ge))&&!/\bi686\b/i.test(ge)?(j&&(j.architecture=64,j.family=j.family.replace(RegExp(" *"+le),"")),Q&&(/\bWOW64\b/i.test(P)||oe&&/\w(?:86|32)$/.test($.cpuClass||$.platform)&&!/\bWin64; x64\b/i.test(P))&&ye.unshift("32-bit")):j&&/^OS X/.test(j.family)&&Q=="Chrome"&&parseFloat(Z)>=39&&(j.architecture=64),P||(P=null);var Ue={};return Ue.description=P,Ue.layout=V&&V[0],Ue.manufacturer=K,Ue.name=Q,Ue.prerelease=ee,Ue.product=ae,Ue.ua=P,Ue.version=Q&&Z,Ue.os=j||{architecture:null,family:null,version:null,toString:function(){return"null"}},Ue.parse=Y,Ue.toString=Fe,Ue.version&&ye.unshift(Z),Ue.name&&ye.unshift(Q),j&&Q&&!(j==String(j).split(" ")[0]&&(j==Q.split(" ")[0]||ae))&&ye.push(ae?"("+j+")":"on "+j),ye.length&&(Ue.description=ye.join(" ")),Ue}var X=Y();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(D.platform=X,define(function(){return X})):_&&y?g(X,function(P,H){_[H]=P}):D.platform=X}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(h,F,o){(function(m){"use strict";typeof m=="undefined"||!m.version||m.version.indexOf("v0.")===0||m.version.indexOf("v1.")===0&&m.version.indexOf("v1.8.")!==0?F.exports={nextTick:a}:F.exports=m;function a(D,O,_,y){if(typeof D!="function")throw new TypeError('"callback" argument must be a function');var v=arguments.length,c,l;switch(v){case 0:case 1:return m.nextTick(D);case 2:return m.nextTick(function(){D.call(null,O)});case 3:return m.nextTick(function(){D.call(null,O,_)});case 4:return m.nextTick(function(){D.call(null,O,_,y)});default:for(c=new Array(v-1),l=0;l<c.length;)c[l++]=arguments[l];return m.nextTick(function(){D.apply(null,c)})}}}).call(this,h("_process"))},{_process:208}],208:[function(h,F,o){var m=F.exports={},a,D;function O(){throw new Error("setTimeout has not been defined")}function _(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?a=setTimeout:a=O}catch(C){a=O}try{typeof clearTimeout=="function"?D=clearTimeout:D=_}catch(C){D=_}})();function y(C){if(a===setTimeout)return setTimeout(C,0);if((a===O||!a)&&setTimeout)return a=setTimeout,setTimeout(C,0);try{return a(C,0)}catch(b){try{return a.call(null,C,0)}catch(g){return a.call(this,C,0)}}}function v(C){if(D===clearTimeout)return clearTimeout(C);if((D===_||!D)&&clearTimeout)return D=clearTimeout,clearTimeout(C);try{return D(C)}catch(b){try{return D.call(null,C)}catch(g){return D.call(this,C)}}}var c=[],l=!1,s,r=-1;function d(){if(!l||!s)return;l=!1,s.length?c=s.concat(c):r=-1,c.length&&u()}function u(){if(l)return;var C=y(d);l=!0;for(var b=c.length;b;){for(s=c,c=[];++r<b;)s&&s[r].run();r=-1,b=c.length}s=null,l=!1,v(C)}m.nextTick=function(C){var b=new Array(arguments.length-1);if(arguments.length>1)for(var g=1;g<arguments.length;g++)b[g-1]=arguments[g];c.push(new f(C,b)),c.length===1&&!l&&y(u)};function f(C,b){this.fun=C,this.array=b}f.prototype.run=function(){this.fun.apply(null,this.array)},m.title="browser",m.browser=!0,m.env={},m.argv=[],m.version="",m.versions={};function x(){}m.on=x,m.addListener=x,m.once=x,m.off=x,m.removeListener=x,m.removeAllListeners=x,m.emit=x,m.prependListener=x,m.prependOnceListener=x,m.listeners=function(C){return[]},m.binding=function(C){throw new Error("process.binding is not supported")},m.cwd=function(){return"/"},m.chdir=function(C){throw new Error("process.chdir is not supported")},m.umask=function(){return 0}},{}],209:[function(h,F,o){(function(m){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(a){var D=typeof o=="object"&&o&&!o.nodeType&&o,O=typeof F=="object"&&F&&!F.nodeType&&F,_=typeof m=="object"&&m;(_.global===_||_.window===_||_.self===_)&&(a=_);var y,v=2147483647,c=36,l=1,s=26,r=38,d=700,u=72,f=128,x="-",C=/^xn--/,b=/[^\x20-\x7E]/,g=/[\x2E\u3002\uFF0E\uFF61]/g,E={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},A=c-l,N=Math.floor,M=String.fromCharCode,w;function Y(z){throw new RangeError(E[z])}function X(z,L){for(var T=z.length,I=[];T--;)I[T]=L(z[T]);return I}function P(z,L){var T=z.split("@"),I="";T.length>1&&(I=T[0]+"@",z=T[1]),z=z.replace(g,".");var se=z.split("."),me=X(se,L).join(".");return I+me}function H(z){for(var L=[],T=0,I=z.length,se,me;T<I;)se=z.charCodeAt(T++),se>=55296&&se<=56319&&T<I?(me=z.charCodeAt(T++),(me&64512)==56320?L.push(((se&1023)<<10)+(me&1023)+65536):(L.push(se),T--)):L.push(se);return L}function G(z){return X(z,function(L){var T="";return L>65535&&(L-=65536,T+=M(L>>>10&1023|55296),L=56320|L&1023),T+=M(L),T}).join("")}function $(z){return z-48<10?z-22:z-65<26?z-65:z-97<26?z-97:c}function he(z,L){return z+22+75*(z<26)-((L!=0)<<5)}function de(z,L,T){var I=0;for(z=T?N(z/d):z>>1,z+=N(z/L);z>A*s>>1;I+=c)z=N(z/A);return N(I+(A+1)*z/(z+r))}function J(z){var L=[],T=z.length,I,se=0,me=f,xe=u,Ee,Oe,le,ge,ye,ee,oe,Z,ue;for(Ee=z.lastIndexOf(x),Ee<0&&(Ee=0),Oe=0;Oe<Ee;++Oe)z.charCodeAt(Oe)>=128&&Y("not-basic"),L.push(z.charCodeAt(Oe));for(le=Ee>0?Ee+1:0;le<T;){for(ge=se,ye=1,ee=c;!(le>=T&&Y("invalid-input"),oe=$(z.charCodeAt(le++)),(oe>=c||oe>N((v-se)/ye))&&Y("overflow"),se+=oe*ye,Z=ee<=xe?l:ee>=xe+s?s:ee-xe,oe<Z);ee+=c)ue=c-Z,ye>N(v/ue)&&Y("overflow"),ye*=ue;I=L.length+1,xe=de(se-ge,I,ge==0),N(se/I)>v-me&&Y("overflow"),me+=N(se/I),se%=I,L.splice(se++,0,me)}return G(L)}function fe(z){var L,T,I,se,me,xe,Ee,Oe,le,ge,ye,ee=[],oe,Z,ue,V;for(z=H(z),oe=z.length,L=f,T=0,me=u,xe=0;xe<oe;++xe)ye=z[xe],ye<128&&ee.push(M(ye));for(I=se=ee.length,se&&ee.push(x);I<oe;){for(Ee=v,xe=0;xe<oe;++xe)ye=z[xe],ye>=L&&ye<Ee&&(Ee=ye);for(Z=I+1,Ee-L>N((v-T)/Z)&&Y("overflow"),T+=(Ee-L)*Z,L=Ee,xe=0;xe<oe;++xe)if(ye=z[xe],ye<L&&++T>v&&Y("overflow"),ye==L){for(Oe=T,le=c;!(ge=le<=me?l:le>=me+s?s:le-me,Oe<ge);le+=c)V=Oe-ge,ue=c-ge,ee.push(M(he(ge+V%ue,0))),Oe=N(V/ue);ee.push(M(he(Oe,0))),me=de(T,Z,I==se),T=0,++I}++T,++L}return ee.join("")}function q(z){return P(z,function(L){return C.test(L)?J(L.slice(4).toLowerCase()):L})}function U(z){return P(z,function(L){return b.test(L)?"xn--"+fe(L):L})}if(y={version:"1.4.1",ucs2:{decode:H,encode:G},decode:J,encode:fe,toASCII:U,toUnicode:q},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return y});else if(D&&O)if(F.exports==D)O.exports=y;else for(w in y)y.hasOwnProperty(w)&&(D[w]=y[w]);else a.punycode=y})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(h,F,o){"use strict";function m(D,O){return Object.prototype.hasOwnProperty.call(D,O)}F.exports=function(D,O,_,y){O=O||"&",_=_||"=";var v={};if(typeof D!="string"||D.length===0)return v;var c=/\+/g;D=D.split(O);var l=1e3;y&&typeof y.maxKeys=="number"&&(l=y.maxKeys);var s=D.length;l>0&&s>l&&(s=l);for(var r=0;r<s;++r){var d=D[r].replace(c,"%20"),u=d.indexOf(_),f,x,C,b;u>=0?(f=d.substr(0,u),x=d.substr(u+1)):(f=d,x=""),C=decodeURIComponent(f),b=decodeURIComponent(x),m(v,C)?a(v[C])?v[C].push(b):v[C]=[v[C],b]:v[C]=b}return v};var a=Array.isArray||function(D){return Object.prototype.toString.call(D)==="[object Array]"}},{}],211:[function(h,F,o){"use strict";var m=function(_){switch(typeof _){case"string":return _;case"boolean":return _?"true":"false";case"number":return isFinite(_)?_:"";default:return""}};F.exports=function(_,y,v,c){return y=y||"&",v=v||"=",_===null&&(_=void 0),typeof _=="object"?D(O(_),function(l){var s=encodeURIComponent(m(l))+v;return a(_[l])?D(_[l],function(r){return s+encodeURIComponent(m(r))}).join(y):s+encodeURIComponent(m(_[l]))}).join(y):c?encodeURIComponent(m(c))+v+encodeURIComponent(m(_)):""};var a=Array.isArray||function(_){return Object.prototype.toString.call(_)==="[object Array]"};function D(_,y){if(_.map)return _.map(y);for(var v=[],c=0;c<_.length;c++)v.push(y(_[c],c));return v}var O=Object.keys||function(_){var y=[];for(var v in _)Object.prototype.hasOwnProperty.call(_,v)&&y.push(v);return y}},{}],212:[function(h,F,o){"use strict";o.decode=o.parse=h("./decode"),o.encode=o.stringify=h("./encode")},{"./decode":210,"./encode":211}],213:[function(h,F,o){F.exports=h("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/create"),a=_(m),D=h("babel-runtime/core-js/object/keys"),O=_(D);function _(b){return b&&b.__esModule?b:{default:b}}var y=h("process-nextick-args"),v=O.default||function(b){var g=[];for(var E in b)g.push(E);return g};F.exports=f;var c=(0,a.default)(h("core-util-is"));c.inherits=h("inherits");var l=h("./_stream_readable"),s=h("./_stream_writable");c.inherits(f,l);for(var r=v(s.prototype),d=0;d<r.length;d++){var u=r[d];f.prototype[u]||(f.prototype[u]=s.prototype[u])}function f(b){if(!(this instanceof f))return new f(b);l.call(this,b),s.call(this,b),b&&b.readable===!1&&(this.readable=!1),b&&b.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,b&&b.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",x)}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function x(){if(this.allowHalfOpen||this._writableState.ended)return;y.nextTick(C,this)}function C(b){b.end()}Object.defineProperty(f.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(g){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=g,this._writableState.destroyed=g}}),f.prototype._destroy=function(b,g){this.push(null),this.end(),y.nextTick(g,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(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/create"),a=D(m);function D(v){return v&&v.__esModule?v:{default:v}}F.exports=y;var O=h("./_stream_transform"),_=(0,a.default)(h("core-util-is"));_.inherits=h("inherits"),_.inherits(y,O);function y(v){if(!(this instanceof y))return new y(v);O.call(this,v)}y.prototype._transform=function(v,c,l){l(null,v)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(h,F,o){(function(m,a){"use strict";var D=h("babel-runtime/core-js/object/get-prototype-of"),O=v(D),_=h("babel-runtime/core-js/object/create"),y=v(_);function v(V){return V&&V.__esModule?V:{default:V}}var c=h("process-nextick-args");F.exports=H;var l=h("isarray"),s;H.ReadableState=P;var r=h("events").EventEmitter,d=function(Q,ae){return Q.listeners(ae).length},u=h("./internal/streams/stream"),f=h("safe-buffer").Buffer,x=a.Uint8Array||function(){};function C(V){return f.from(V)}function b(V){return f.isBuffer(V)||V instanceof x}var g=(0,y.default)(h("core-util-is"));g.inherits=h("inherits");var E=h("util"),A=void 0;E&&E.debuglog?A=E.debuglog("stream"):A=function(){};var N=h("./internal/streams/BufferList"),M=h("./internal/streams/destroy"),w;g.inherits(H,u);var Y=["error","close","destroy","pause","resume"];function X(V,Q,ae){if(typeof V.prependListener=="function")return V.prependListener(Q,ae);!V._events||!V._events[Q]?V.on(Q,ae):l(V._events[Q])?V._events[Q].unshift(ae):V._events[Q]=[ae,V._events[Q]]}function P(V,Q){s=s||h("./_stream_duplex"),V=V||{};var ae=Q instanceof s;this.objectMode=!!V.objectMode,ae&&(this.objectMode=this.objectMode||!!V.readableObjectMode);var K=V.highWaterMark,j=V.readableHighWaterMark,k=this.objectMode?16:16*1024;K||K===0?this.highWaterMark=K:ae&&(j||j===0)?this.highWaterMark=j:this.highWaterMark=k,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new N,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=V.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,V.encoding&&(w||(w=h("string_decoder/").StringDecoder),this.decoder=new w(V.encoding),this.encoding=V.encoding)}function H(V){if(s=s||h("./_stream_duplex"),!(this instanceof H))return new H(V);this._readableState=new P(V,this),this.readable=!0,V&&(typeof V.read=="function"&&(this._read=V.read),typeof V.destroy=="function"&&(this._destroy=V.destroy)),u.call(this)}Object.defineProperty(H.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Q){if(!this._readableState)return;this._readableState.destroyed=Q}}),H.prototype.destroy=M.destroy,H.prototype._undestroy=M.undestroy,H.prototype._destroy=function(V,Q){this.push(null),Q(V)},H.prototype.push=function(V,Q){var ae=this._readableState,K;return ae.objectMode?K=!0:typeof V=="string"&&(Q=Q||ae.defaultEncoding,Q!==ae.encoding&&(V=f.from(V,Q),Q=""),K=!0),G(this,V,Q,!1,K)},H.prototype.unshift=function(V){return G(this,V,null,!0,!1)};function G(V,Q,ae,K,j){var k=V._readableState;if(Q===null)k.reading=!1,U(V,k);else{var W;j||(W=he(k,Q)),W?V.emit("error",W):k.objectMode||Q&&Q.length>0?(typeof Q!="string"&&!k.objectMode&&(0,O.default)(Q)!==f.prototype&&(Q=C(Q)),K?k.endEmitted?V.emit("error",new Error("stream.unshift() after end event")):$(V,k,Q,!0):k.ended?V.emit("error",new Error("stream.push() after EOF")):(k.reading=!1,k.decoder&&!ae?(Q=k.decoder.write(Q),k.objectMode||Q.length!==0?$(V,k,Q,!1):T(V,k)):$(V,k,Q,!1))):K||(k.reading=!1)}return de(k)}function $(V,Q,ae,K){Q.flowing&&Q.length===0&&!Q.sync?(V.emit("data",ae),V.read(0)):(Q.length+=Q.objectMode?1:ae.length,K?Q.buffer.unshift(ae):Q.buffer.push(ae),Q.needReadable&&z(V)),T(V,Q)}function he(V,Q){var ae;return!b(Q)&&typeof Q!="string"&&Q!==void 0&&!V.objectMode&&(ae=new TypeError("Invalid non-string/buffer chunk")),ae}function de(V){return!V.ended&&(V.needReadable||V.length<V.highWaterMark||V.length===0)}H.prototype.isPaused=function(){return this._readableState.flowing===!1},H.prototype.setEncoding=function(V){return w||(w=h("string_decoder/").StringDecoder),this._readableState.decoder=new w(V),this._readableState.encoding=V,this};var J=8388608;function fe(V){return V>=J?V=J:(V--,V|=V>>>1,V|=V>>>2,V|=V>>>4,V|=V>>>8,V|=V>>>16,V++),V}function q(V,Q){return V<=0||Q.length===0&&Q.ended?0:Q.objectMode?1:V!==V?Q.flowing&&Q.length?Q.buffer.head.data.length:Q.length:(V>Q.highWaterMark&&(Q.highWaterMark=fe(V)),V<=Q.length?V:Q.ended?Q.length:(Q.needReadable=!0,0))}H.prototype.read=function(V){A("read",V),V=parseInt(V,10);var Q=this._readableState,ae=V;if(V!==0&&(Q.emittedReadable=!1),V===0&&Q.needReadable&&(Q.length>=Q.highWaterMark||Q.ended))return A("read: emitReadable",Q.length,Q.ended),Q.length===0&&Q.ended?oe(this):z(this),null;if(V=q(V,Q),V===0&&Q.ended)return Q.length===0&&oe(this),null;var K=Q.needReadable;A("need readable",K),(Q.length===0||Q.length-V<Q.highWaterMark)&&(K=!0,A("length less than watermark",K)),Q.ended||Q.reading?(K=!1,A("reading or ended",K)):K&&(A("do read"),Q.reading=!0,Q.sync=!0,Q.length===0&&(Q.needReadable=!0),this._read(Q.highWaterMark),Q.sync=!1,Q.reading||(V=q(ae,Q)));var j;return V>0?j=le(V,Q):j=null,j===null?(Q.needReadable=!0,V=0):Q.length-=V,Q.length===0&&(Q.ended||(Q.needReadable=!0),ae!==V&&Q.ended&&oe(this)),j!==null&&this.emit("data",j),j};function U(V,Q){if(Q.ended)return;if(Q.decoder){var ae=Q.decoder.end();ae&&ae.length&&(Q.buffer.push(ae),Q.length+=Q.objectMode?1:ae.length)}Q.ended=!0,z(V)}function z(V){var Q=V._readableState;Q.needReadable=!1,Q.emittedReadable||(A("emitReadable",Q.flowing),Q.emittedReadable=!0,Q.sync?c.nextTick(L,V):L(V))}function L(V){A("emit readable"),V.emit("readable"),Oe(V)}function T(V,Q){Q.readingMore||(Q.readingMore=!0,c.nextTick(I,V,Q))}function I(V,Q){for(var ae=Q.length;!Q.reading&&!Q.flowing&&!Q.ended&&Q.length<Q.highWaterMark&&!(A("maybeReadMore read 0"),V.read(0),ae===Q.length);)ae=Q.length;Q.readingMore=!1}H.prototype._read=function(V){this.emit("error",new Error("_read() is not implemented"))},H.prototype.pipe=function(V,Q){var ae=this,K=this._readableState;switch(K.pipesCount){case 0:K.pipes=V;break;case 1:K.pipes=[K.pipes,V];break;default:K.pipes.push(V);break}K.pipesCount+=1,A("pipe count=%d opts=%j",K.pipesCount,Q);var j=(!Q||Q.end!==!1)&&V!==m.stdout&&V!==m.stderr,k=j?we:Je;K.endEmitted?c.nextTick(k):ae.once("end",k),V.on("unpipe",W);function W(Re,Ze){A("onunpipe"),Re===ae&&(Ze&&Ze.hasUnpiped===!1&&(Ze.hasUnpiped=!0,Be()))}function we(){A("onend"),V.end()}var be=se(ae);V.on("drain",be);var Te=!1;function Be(){A("cleanup"),V.removeListener("close",Ve),V.removeListener("finish",Ge),V.removeListener("drain",be),V.removeListener("error",We),V.removeListener("unpipe",W),ae.removeListener("end",we),ae.removeListener("end",Je),ae.removeListener("data",Ue),Te=!0,K.awaitDrain&&(!V._writableState||V._writableState.needDrain)&&be()}var Fe=!1;ae.on("data",Ue);function Ue(Re){A("ondata"),Fe=!1;var Ze=V.write(Re);Ze===!1&&!Fe&&((K.pipesCount===1&&K.pipes===V||K.pipesCount>1&&ue(K.pipes,V)!==-1)&&!Te&&(A("false write response, pause",ae._readableState.awaitDrain),ae._readableState.awaitDrain++,Fe=!0),ae.pause())}function We(Re){A("onerror",Re),Je(),V.removeListener("error",We),d(V,"error")===0&&V.emit("error",Re)}X(V,"error",We);function Ve(){V.removeListener("finish",Ge),Je()}V.once("close",Ve);function Ge(){A("onfinish"),V.removeListener("close",Ve),Je()}V.once("finish",Ge);function Je(){A("unpipe"),ae.unpipe(V)}return V.emit("pipe",ae),K.flowing||(A("pipe resume"),ae.resume()),V};function se(V){return function(){var Q=V._readableState;A("pipeOnDrain",Q.awaitDrain),Q.awaitDrain&&Q.awaitDrain--,Q.awaitDrain===0&&d(V,"data")&&(Q.flowing=!0,Oe(V))}}H.prototype.unpipe=function(V){var Q=this._readableState,ae={hasUnpiped:!1};if(Q.pipesCount===0)return this;if(Q.pipesCount===1)return V&&V!==Q.pipes?this:(V||(V=Q.pipes),Q.pipes=null,Q.pipesCount=0,Q.flowing=!1,V&&V.emit("unpipe",this,ae),this);if(!V){var K=Q.pipes,j=Q.pipesCount;Q.pipes=null,Q.pipesCount=0,Q.flowing=!1;for(var k=0;k<j;k++)K[k].emit("unpipe",this,ae);return this}var W=ue(Q.pipes,V);return W===-1?this:(Q.pipes.splice(W,1),Q.pipesCount-=1,Q.pipesCount===1&&(Q.pipes=Q.pipes[0]),V.emit("unpipe",this,ae),this)},H.prototype.on=function(V,Q){var ae=u.prototype.on.call(this,V,Q);if(V==="data")this._readableState.flowing!==!1&&this.resume();else if(V==="readable"){var K=this._readableState;!K.endEmitted&&!K.readableListening&&(K.readableListening=K.needReadable=!0,K.emittedReadable=!1,K.reading?K.length&&z(this):c.nextTick(me,this))}return ae},H.prototype.addListener=H.prototype.on;function me(V){A("readable nexttick read 0"),V.read(0)}H.prototype.resume=function(){var V=this._readableState;return V.flowing||(A("resume"),V.flowing=!0,xe(this,V)),this};function xe(V,Q){Q.resumeScheduled||(Q.resumeScheduled=!0,c.nextTick(Ee,V,Q))}function Ee(V,Q){Q.reading||(A("resume read 0"),V.read(0)),Q.resumeScheduled=!1,Q.awaitDrain=0,V.emit("resume"),Oe(V),Q.flowing&&!Q.reading&&V.read(0)}H.prototype.pause=function(){return A("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(A("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Oe(V){var Q=V._readableState;for(A("flow",Q.flowing);Q.flowing&&V.read()!==null;);}H.prototype.wrap=function(V){var Q=this,ae=this._readableState,K=!1;V.on("end",function(){if(A("wrapped end"),ae.decoder&&!ae.ended){var W=ae.decoder.end();W&&W.length&&Q.push(W)}Q.push(null)}),V.on("data",function(W){if(A("wrapped data"),ae.decoder&&(W=ae.decoder.write(W)),ae.objectMode&&W==null)return;if(!ae.objectMode&&(!W||!W.length))return;var we=Q.push(W);we||(K=!0,V.pause())});for(var j in V)this[j]===void 0&&typeof V[j]=="function"&&(this[j]=function(W){return function(){return V[W].apply(V,arguments)}}(j));for(var k=0;k<Y.length;k++)V.on(Y[k],this.emit.bind(this,Y[k]));return this._read=function(W){A("wrapped _read",W),K&&(K=!1,V.resume())},this},Object.defineProperty(H.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),H._fromList=le;function le(V,Q){if(Q.length===0)return null;var ae;return Q.objectMode?ae=Q.buffer.shift():!V||V>=Q.length?(Q.decoder?ae=Q.buffer.join(""):Q.buffer.length===1?ae=Q.buffer.head.data:ae=Q.buffer.concat(Q.length),Q.buffer.clear()):ae=ge(V,Q.buffer,Q.decoder),ae}function ge(V,Q,ae){var K;return V<Q.head.data.length?(K=Q.head.data.slice(0,V),Q.head.data=Q.head.data.slice(V)):V===Q.head.data.length?K=Q.shift():K=ae?ye(V,Q):ee(V,Q),K}function ye(V,Q){var ae=Q.head,K=1,j=ae.data;for(V-=j.length;ae=ae.next;){var k=ae.data,W=V>k.length?k.length:V;if(W===k.length?j+=k:j+=k.slice(0,V),V-=W,V===0){W===k.length?(++K,ae.next?Q.head=ae.next:Q.head=Q.tail=null):(Q.head=ae,ae.data=k.slice(W));break}++K}return Q.length-=K,j}function ee(V,Q){var ae=f.allocUnsafe(V),K=Q.head,j=1;for(K.data.copy(ae),V-=K.data.length;K=K.next;){var k=K.data,W=V>k.length?k.length:V;if(k.copy(ae,ae.length-V,0,W),V-=W,V===0){W===k.length?(++j,K.next?Q.head=K.next:Q.head=Q.tail=null):(Q.head=K,K.data=k.slice(W));break}++j}return Q.length-=j,ae}function oe(V){var Q=V._readableState;if(Q.length>0)throw new Error('"endReadable()" called on non-empty stream');Q.endEmitted||(Q.ended=!0,c.nextTick(Z,Q,V))}function Z(V,Q){!V.endEmitted&&V.length===0&&(V.endEmitted=!0,Q.readable=!1,Q.emit("end"))}function ue(V,Q){for(var ae=0,K=V.length;ae<K;ae++)if(V[ae]===Q)return ae;return-1}}).call(this,h("_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(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/create"),a=D(m);function D(s){return s&&s.__esModule?s:{default:s}}F.exports=v;var O=h("./_stream_duplex"),_=(0,a.default)(h("core-util-is"));_.inherits=h("inherits"),_.inherits(v,O);function y(s,r){var d=this._transformState;d.transforming=!1;var u=d.writecb;if(!u)return this.emit("error",new Error("write callback called multiple times"));d.writechunk=null,d.writecb=null,r!=null&&this.push(r),u(s);var f=this._readableState;f.reading=!1,(f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}function v(s){if(!(this instanceof v))return new v(s);O.call(this,s),this._transformState={afterTransform:y.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,s&&(typeof s.transform=="function"&&(this._transform=s.transform),typeof s.flush=="function"&&(this._flush=s.flush)),this.on("prefinish",c)}function c(){var s=this;typeof this._flush=="function"?this._flush(function(r,d){l(s,r,d)}):l(this,null,null)}v.prototype.push=function(s,r){return this._transformState.needTransform=!1,O.prototype.push.call(this,s,r)},v.prototype._transform=function(s,r,d){throw new Error("_transform() is not implemented")},v.prototype._write=function(s,r,d){var u=this._transformState;if(u.writecb=d,u.writechunk=s,u.writeencoding=r,!u.transforming){var f=this._readableState;(u.needTransform||f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}},v.prototype._read=function(s){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},v.prototype._destroy=function(s,r){var d=this;O.prototype._destroy.call(this,s,function(u){r(u),d.emit("close")})};function l(s,r,d){if(r)return s.emit("error",r);if(d!=null&&s.push(d),s._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(s._transformState.transforming)throw new Error("Calling transform done when still transforming");return s.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(h,F,o){(function(m,a){"use strict";var D=h("babel-runtime/core-js/object/define-property"),O=u(D),_=h("babel-runtime/core-js/symbol/has-instance"),y=u(_),v=h("babel-runtime/core-js/symbol"),c=u(v),l=h("babel-runtime/core-js/object/create"),s=u(l),r=h("babel-runtime/core-js/set-immediate"),d=u(r);function u(ee){return ee&&ee.__esModule?ee:{default:ee}}var f=h("process-nextick-args");F.exports=he;function x(ee,oe,Z){this.chunk=ee,this.encoding=oe,this.callback=Z,this.next=null}function C(ee){var oe=this;this.next=null,this.entry=null,this.finish=function(){ye(oe,ee)}}var b=!m.browser&&["v0.10","v0.9."].indexOf(m.version.slice(0,5))>-1?d.default:f.nextTick,g;he.WritableState=G;var E=(0,s.default)(h("core-util-is"));E.inherits=h("inherits");var A={deprecate:h("util-deprecate")},N=h("./internal/streams/stream"),M=h("safe-buffer").Buffer,w=a.Uint8Array||function(){};function Y(ee){return M.from(ee)}function X(ee){return M.isBuffer(ee)||ee instanceof w}var P=h("./internal/streams/destroy");E.inherits(he,N);function H(){}function G(ee,oe){g=g||h("./_stream_duplex"),ee=ee||{};var Z=oe instanceof g;this.objectMode=!!ee.objectMode,Z&&(this.objectMode=this.objectMode||!!ee.writableObjectMode);var ue=ee.highWaterMark,V=ee.writableHighWaterMark,Q=this.objectMode?16:16*1024;ue||ue===0?this.highWaterMark=ue:Z&&(V||V===0)?this.highWaterMark=V:this.highWaterMark=Q,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 ae=ee.decodeStrings===!1;this.decodeStrings=!ae,this.defaultEncoding=ee.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(K){T(oe,K)},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 C(this)}G.prototype.getBuffer=function(){for(var oe=this.bufferedRequest,Z=[];oe;)Z.push(oe),oe=oe.next;return Z},function(){try{Object.defineProperty(G.prototype,"buffer",{get:A.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ee){}}();var $;typeof c.default=="function"&&y.default&&typeof Function.prototype[y.default]=="function"?($=Function.prototype[y.default],(0,O.default)(he,y.default,{value:function(oe){return $.call(this,oe)?!0:this!==he?!1:oe&&oe._writableState instanceof G}})):$=function(oe){return oe instanceof this};function he(ee){if(g=g||h("./_stream_duplex"),!$.call(he,this)&&!(this instanceof g))return new he(ee);this._writableState=new G(ee,this),this.writable=!0,ee&&(typeof ee.write=="function"&&(this._write=ee.write),typeof ee.writev=="function"&&(this._writev=ee.writev),typeof ee.destroy=="function"&&(this._destroy=ee.destroy),typeof ee.final=="function"&&(this._final=ee.final)),N.call(this)}he.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function de(ee,oe){var Z=new Error("write after end");ee.emit("error",Z),f.nextTick(oe,Z)}function J(ee,oe,Z,ue){var V=!0,Q=!1;return Z===null?Q=new TypeError("May not write null values to stream"):typeof Z!="string"&&Z!==void 0&&!oe.objectMode&&(Q=new TypeError("Invalid non-string/buffer chunk")),Q&&(ee.emit("error",Q),f.nextTick(ue,Q),V=!1),V}he.prototype.write=function(ee,oe,Z){var ue=this._writableState,V=!1,Q=!ue.objectMode&&X(ee);return Q&&!M.isBuffer(ee)&&(ee=Y(ee)),typeof oe=="function"&&(Z=oe,oe=null),Q?oe="buffer":oe||(oe=ue.defaultEncoding),typeof Z!="function"&&(Z=H),ue.ended?de(this,Z):(Q||J(this,ue,ee,Z))&&(ue.pendingcb++,V=q(this,ue,Q,ee,oe,Z)),V},he.prototype.cork=function(){var ee=this._writableState;ee.corked++},he.prototype.uncork=function(){var ee=this._writableState;ee.corked&&(ee.corked--,!ee.writing&&!ee.corked&&!ee.finished&&!ee.bufferProcessing&&ee.bufferedRequest&&me(this,ee))},he.prototype.setDefaultEncoding=function(oe){if(typeof oe=="string"&&(oe=oe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((oe+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+oe);return this._writableState.defaultEncoding=oe,this};function fe(ee,oe,Z){return!ee.objectMode&&ee.decodeStrings!==!1&&typeof oe=="string"&&(oe=M.from(oe,Z)),oe}Object.defineProperty(he.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function q(ee,oe,Z,ue,V,Q){if(!Z){var ae=fe(oe,ue,V);ue!==ae&&(Z=!0,V="buffer",ue=ae)}var K=oe.objectMode?1:ue.length;oe.length+=K;var j=oe.length<oe.highWaterMark;if(j||(oe.needDrain=!0),oe.writing||oe.corked){var k=oe.lastBufferedRequest;oe.lastBufferedRequest={chunk:ue,encoding:V,isBuf:Z,callback:Q,next:null},k?k.next=oe.lastBufferedRequest:oe.bufferedRequest=oe.lastBufferedRequest,oe.bufferedRequestCount+=1}else U(ee,oe,!1,K,ue,V,Q);return j}function U(ee,oe,Z,ue,V,Q,ae){oe.writelen=ue,oe.writecb=ae,oe.writing=!0,oe.sync=!0,Z?ee._writev(V,oe.onwrite):ee._write(V,Q,oe.onwrite),oe.sync=!1}function z(ee,oe,Z,ue,V){--oe.pendingcb,Z?(f.nextTick(V,ue),f.nextTick(le,ee,oe),ee._writableState.errorEmitted=!0,ee.emit("error",ue)):(V(ue),ee._writableState.errorEmitted=!0,ee.emit("error",ue),le(ee,oe))}function L(ee){ee.writing=!1,ee.writecb=null,ee.length-=ee.writelen,ee.writelen=0}function T(ee,oe){var Z=ee._writableState,ue=Z.sync,V=Z.writecb;if(L(Z),oe)z(ee,Z,ue,oe,V);else{var Q=xe(Z);!Q&&!Z.corked&&!Z.bufferProcessing&&Z.bufferedRequest&&me(ee,Z),ue?b(I,ee,Z,Q,V):I(ee,Z,Q,V)}}function I(ee,oe,Z,ue){Z||se(ee,oe),oe.pendingcb--,ue(),le(ee,oe)}function se(ee,oe){oe.length===0&&oe.needDrain&&(oe.needDrain=!1,ee.emit("drain"))}function me(ee,oe){oe.bufferProcessing=!0;var Z=oe.bufferedRequest;if(ee._writev&&Z&&Z.next){var ue=oe.bufferedRequestCount,V=new Array(ue),Q=oe.corkedRequestsFree;Q.entry=Z;for(var ae=0,K=!0;Z;)V[ae]=Z,Z.isBuf||(K=!1),Z=Z.next,ae+=1;V.allBuffers=K,U(ee,oe,!0,oe.length,V,"",Q.finish),oe.pendingcb++,oe.lastBufferedRequest=null,Q.next?(oe.corkedRequestsFree=Q.next,Q.next=null):oe.corkedRequestsFree=new C(oe),oe.bufferedRequestCount=0}else{for(;Z;){var j=Z.chunk,k=Z.encoding,W=Z.callback,we=oe.objectMode?1:j.length;if(U(ee,oe,!1,we,j,k,W),Z=Z.next,oe.bufferedRequestCount--,oe.writing)break}Z===null&&(oe.lastBufferedRequest=null)}oe.bufferedRequest=Z,oe.bufferProcessing=!1}he.prototype._write=function(ee,oe,Z){Z(new Error("_write() is not implemented"))},he.prototype._writev=null,he.prototype.end=function(ee,oe,Z){var ue=this._writableState;typeof ee=="function"?(Z=ee,ee=null,oe=null):typeof oe=="function"&&(Z=oe,oe=null),ee!=null&&this.write(ee,oe),ue.corked&&(ue.corked=1,this.uncork()),!ue.ending&&!ue.finished&&ge(this,ue,Z)};function xe(ee){return ee.ending&&ee.length===0&&ee.bufferedRequest===null&&!ee.finished&&!ee.writing}function Ee(ee,oe){ee._final(function(Z){oe.pendingcb--,Z&&ee.emit("error",Z),oe.prefinished=!0,ee.emit("prefinish"),le(ee,oe)})}function Oe(ee,oe){!oe.prefinished&&!oe.finalCalled&&(typeof ee._final=="function"?(oe.pendingcb++,oe.finalCalled=!0,f.nextTick(Ee,ee,oe)):(oe.prefinished=!0,ee.emit("prefinish")))}function le(ee,oe){var Z=xe(oe);return Z&&(Oe(ee,oe),oe.pendingcb===0&&(oe.finished=!0,ee.emit("finish"))),Z}function ge(ee,oe,Z){oe.ending=!0,le(ee,oe),Z&&(oe.finished?f.nextTick(Z):ee.once("finish",Z)),oe.ended=!0,ee.writable=!1}function ye(ee,oe,Z){var ue=ee.entry;for(ee.entry=null;ue;){var V=ue.callback;oe.pendingcb--,V(Z),ue=ue.next}oe.corkedRequestsFree?oe.corkedRequestsFree.next=ee:oe.corkedRequestsFree=ee}Object.defineProperty(he.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(oe){if(!this._writableState)return;this._writableState.destroyed=oe}}),he.prototype.destroy=P.destroy,he.prototype._undestroy=P.undestroy,he.prototype._destroy=function(ee,oe){this.end(),oe(ee)}}).call(this,h("_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(h,F,o){"use strict";function m(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}var a=h("safe-buffer").Buffer,D=h("util");function O(_,y,v){_.copy(y,v)}F.exports=function(){function _(){m(this,_),this.head=null,this.tail=null,this.length=0}return _.prototype.push=function(v){var c={data:v,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length},_.prototype.unshift=function(v){var c={data:v,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length},_.prototype.shift=function(){if(this.length===0)return;var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v},_.prototype.clear=function(){this.head=this.tail=null,this.length=0},_.prototype.join=function(v){if(this.length===0)return"";for(var c=this.head,l=""+c.data;c=c.next;)l+=v+c.data;return l},_.prototype.concat=function(v){if(this.length===0)return a.alloc(0);if(this.length===1)return this.head.data;for(var c=a.allocUnsafe(v>>>0),l=this.head,s=0;l;)O(l.data,c,s),s+=l.data.length,l=l.next;return c},_}(),D&&D.inspect&&D.inspect.custom&&(F.exports.prototype[D.inspect.custom]=function(){var _=D.inspect({length:this.length});return this.constructor.name+" "+_})},{"safe-buffer":228,util:71}],220:[function(h,F,o){"use strict";var m=h("process-nextick-args");function a(_,y){var v=this,c=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return c||l?(y?y(_):_&&(!this._writableState||!this._writableState.errorEmitted)&&m.nextTick(O,this,_),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(_||null,function(s){!y&&s?(m.nextTick(O,v,s),v._writableState&&(v._writableState.errorEmitted=!0)):y&&y(s)}),this)}function D(){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 O(_,y){_.emit("error",y)}F.exports={destroy:a,undestroy:D}},{"process-nextick-args":207}],221:[function(h,F,o){"use strict";F.exports=h("events").EventEmitter},{events:192}],222:[function(h,F,o){F.exports=h("./readable").PassThrough},{"./readable":223}],223:[function(h,F,o){o=F.exports=h("./lib/_stream_readable.js"),o.Stream=o,o.Readable=o,o.Writable=h("./lib/_stream_writable.js"),o.Duplex=h("./lib/_stream_duplex.js"),o.Transform=h("./lib/_stream_transform.js"),o.PassThrough=h("./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(h,F,o){F.exports=h("./readable").Transform},{"./readable":223}],225:[function(h,F,o){F.exports=h("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(h,F,o){var m=function(){return this}()||Function("return this")(),a=m.regeneratorRuntime&&Object.getOwnPropertyNames(m).indexOf("regeneratorRuntime")>=0,D=a&&m.regeneratorRuntime;if(m.regeneratorRuntime=void 0,F.exports=h("./runtime"),a)m.regeneratorRuntime=D;else try{delete m.regeneratorRuntime}catch(O){m.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(h,F,o){!function(m){"use strict";var a=Object.prototype,D=a.hasOwnProperty,O,_=typeof Symbol=="function"?Symbol:{},y=_.iterator||"@@iterator",v=_.asyncIterator||"@@asyncIterator",c=_.toStringTag||"@@toStringTag",l=typeof F=="object",s=m.regeneratorRuntime;if(s){l&&(F.exports=s);return}s=m.regeneratorRuntime=l?F.exports:{};function r(q,U,z,L){var T=U&&U.prototype instanceof g?U:g,I=Object.create(T.prototype),se=new de(L||[]);return I._invoke=H(q,z,se),I}s.wrap=r;function d(q,U,z){try{return{type:"normal",arg:q.call(U,z)}}catch(L){return{type:"throw",arg:L}}}var u="suspendedStart",f="suspendedYield",x="executing",C="completed",b={};function g(){}function E(){}function A(){}var N={};N[y]=function(){return this};var M=Object.getPrototypeOf,w=M&&M(M(J([])));w&&w!==a&&D.call(w,y)&&(N=w);var Y=A.prototype=g.prototype=Object.create(N);E.prototype=Y.constructor=A,A.constructor=E,A[c]=E.displayName="GeneratorFunction";function X(q){["next","throw","return"].forEach(function(U){q[U]=function(z){return this._invoke(U,z)}})}s.isGeneratorFunction=function(q){var U=typeof q=="function"&&q.constructor;return U?U===E||(U.displayName||U.name)==="GeneratorFunction":!1},s.mark=function(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,A):(q.__proto__=A,c in q||(q[c]="GeneratorFunction")),q.prototype=Object.create(Y),q},s.awrap=function(q){return{__await:q}};function P(q){function U(T,I,se,me){var xe=d(q[T],q,I);if(xe.type==="throw")me(xe.arg);else{var Ee=xe.arg,Oe=Ee.value;return Oe&&typeof Oe=="object"&&D.call(Oe,"__await")?Promise.resolve(Oe.__await).then(function(le){U("next",le,se,me)},function(le){U("throw",le,se,me)}):Promise.resolve(Oe).then(function(le){Ee.value=le,se(Ee)},me)}}var z;function L(T,I){function se(){return new Promise(function(me,xe){U(T,I,me,xe)})}return z=z?z.then(se,se):se()}this._invoke=L}X(P.prototype),P.prototype[v]=function(){return this},s.AsyncIterator=P,s.async=function(q,U,z,L){var T=new P(r(q,U,z,L));return s.isGeneratorFunction(U)?T:T.next().then(function(I){return I.done?I.value:T.next()})};function H(q,U,z){var L=u;return function(I,se){if(L===x)throw new Error("Generator is already running");if(L===C){if(I==="throw")throw se;return fe()}for(z.method=I,z.arg=se;;){var me=z.delegate;if(me){var xe=G(me,z);if(xe){if(xe===b)continue;return xe}}if(z.method==="next")z.sent=z._sent=z.arg;else if(z.method==="throw"){if(L===u)throw L=C,z.arg;z.dispatchException(z.arg)}else z.method==="return"&&z.abrupt("return",z.arg);L=x;var Ee=d(q,U,z);if(Ee.type==="normal"){if(L=z.done?C:f,Ee.arg===b)continue;return{value:Ee.arg,done:z.done}}else Ee.type==="throw"&&(L=C,z.method="throw",z.arg=Ee.arg)}}}function G(q,U){var z=q.iterator[U.method];if(z===O){if(U.delegate=null,U.method==="throw"){if(q.iterator.return&&(U.method="return",U.arg=O,G(q,U),U.method==="throw"))return b;U.method="throw",U.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var L=d(z,q.iterator,U.arg);if(L.type==="throw")return U.method="throw",U.arg=L.arg,U.delegate=null,b;var T=L.arg;if(!T)return U.method="throw",U.arg=new TypeError("iterator result is not an object"),U.delegate=null,b;if(T.done)U[q.resultName]=T.value,U.next=q.nextLoc,U.method!=="return"&&(U.method="next",U.arg=O);else return T;return U.delegate=null,b}X(Y),Y[c]="Generator",Y[y]=function(){return this},Y.toString=function(){return"[object Generator]"};function $(q){var U={tryLoc:q[0]};1 in q&&(U.catchLoc=q[1]),2 in q&&(U.finallyLoc=q[2],U.afterLoc=q[3]),this.tryEntries.push(U)}function he(q){var U=q.completion||{};U.type="normal",delete U.arg,q.completion=U}function de(q){this.tryEntries=[{tryLoc:"root"}],q.forEach($,this),this.reset(!0)}s.keys=function(q){var U=[];for(var z in q)U.push(z);return U.reverse(),function L(){for(;U.length;){var T=U.pop();if(T in q)return L.value=T,L.done=!1,L}return L.done=!0,L}};function J(q){if(q){var U=q[y];if(U)return U.call(q);if(typeof q.next=="function")return q;if(!isNaN(q.length)){var z=-1,L=function T(){for(;++z<q.length;)if(D.call(q,z))return T.value=q[z],T.done=!1,T;return T.value=O,T.done=!0,T};return L.next=L}}return{next:fe}}s.values=J;function fe(){return{value:O,done:!0}}de.prototype={constructor:de,reset:function(q){if(this.prev=0,this.next=0,this.sent=this._sent=O,this.done=!1,this.delegate=null,this.method="next",this.arg=O,this.tryEntries.forEach(he),!q)for(var U in this)U.charAt(0)==="t"&&D.call(this,U)&&!isNaN(+U.slice(1))&&(this[U]=O)},stop:function(){this.done=!0;var q=this.tryEntries[0],U=q.completion;if(U.type==="throw")throw U.arg;return this.rval},dispatchException:function(q){if(this.done)throw q;var U=this;function z(xe,Ee){return I.type="throw",I.arg=q,U.next=xe,Ee&&(U.method="next",U.arg=O),!!Ee}for(var L=this.tryEntries.length-1;L>=0;--L){var T=this.tryEntries[L],I=T.completion;if(T.tryLoc==="root")return z("end");if(T.tryLoc<=this.prev){var se=D.call(T,"catchLoc"),me=D.call(T,"finallyLoc");if(se&&me){if(this.prev<T.catchLoc)return z(T.catchLoc,!0);if(this.prev<T.finallyLoc)return z(T.finallyLoc)}else if(se){if(this.prev<T.catchLoc)return z(T.catchLoc,!0)}else if(me){if(this.prev<T.finallyLoc)return z(T.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(q,U){for(var z=this.tryEntries.length-1;z>=0;--z){var L=this.tryEntries[z];if(L.tryLoc<=this.prev&&D.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var T=L;break}}T&&(q==="break"||q==="continue")&&T.tryLoc<=U&&U<=T.finallyLoc&&(T=null);var I=T?T.completion:{};return I.type=q,I.arg=U,T?(this.method="next",this.next=T.finallyLoc,b):this.complete(I)},complete:function(q,U){if(q.type==="throw")throw q.arg;return q.type==="break"||q.type==="continue"?this.next=q.arg:q.type==="return"?(this.rval=this.arg=q.arg,this.method="return",this.next="end"):q.type==="normal"&&U&&(this.next=U),b},finish:function(q){for(var U=this.tryEntries.length-1;U>=0;--U){var z=this.tryEntries[U];if(z.finallyLoc===q)return this.complete(z.completion,z.afterLoc),he(z),b}},catch:function(q){for(var U=this.tryEntries.length-1;U>=0;--U){var z=this.tryEntries[U];if(z.tryLoc===q){var L=z.completion;if(L.type==="throw"){var T=L.arg;he(z)}return T}}throw new Error("illegal catch attempt")},delegateYield:function(q,U,z){return this.delegate={iterator:J(q),resultName:U,nextLoc:z},this.method==="next"&&(this.arg=O),b}}}(function(){return this}()||Function("return this")())},{}],228:[function(h,F,o){var m=h("buffer"),a=m.Buffer;function D(_,y){for(var v in _)y[v]=_[v]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?F.exports=m:(D(m,o),o.Buffer=O);function O(_,y,v){return a(_,y,v)}D(a,O),O.from=function(_,y,v){if(typeof _=="number")throw new TypeError("Argument must not be a number");return a(_,y,v)},O.alloc=function(_,y,v){if(typeof _!="number")throw new TypeError("Argument must be a number");var c=a(_);return y!==void 0?typeof v=="string"?c.fill(y,v):c.fill(y):c.fill(0),c},O.allocUnsafe=function(_){if(typeof _!="number")throw new TypeError("Argument must be a number");return a(_)},O.allocUnsafeSlow=function(_){if(typeof _!="number")throw new TypeError("Argument must be a number");return m.SlowBuffer(_)}},{buffer:73}],229:[function(h,F,o){(function(m){"use strict";var a=h("babel-runtime/core-js/string/from-code-point"),D=f(a),O=h("babel-runtime/core-js/json/stringify"),_=f(O),y=h("babel-runtime/helpers/typeof"),v=f(y),c=h("babel-runtime/core-js/object/define-property"),l=f(c),s=h("babel-runtime/core-js/object/keys"),r=f(s),d=h("babel-runtime/core-js/object/create"),u=f(d);function f(x){return x&&x.__esModule?x:{default:x}}(function(x){x.parser=function(k,W){return new b(k,W)},x.SAXParser=b,x.SAXStream=Y,x.createStream=w,x.MAX_BUFFER_LENGTH=64*1024;var C=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];x.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function b(k,W){if(!(this instanceof b))return new b(k,W);var we=this;E(we),we.q=we.c="",we.bufferCheckPosition=x.MAX_BUFFER_LENGTH,we.opt=W||{},we.opt.lowercase=we.opt.lowercase||we.opt.lowercasetags,we.looseCase=we.opt.lowercase?"toLowerCase":"toUpperCase",we.tags=[],we.closed=we.closedRoot=we.sawRoot=!1,we.tag=we.error=null,we.strict=!!k,we.noscript=!!(k||we.opt.noscript),we.state=I.BEGIN,we.strictEntities=we.opt.strictEntities,we.ENTITIES=we.strictEntities?(0,u.default)(x.XML_ENTITIES):(0,u.default)(x.ENTITIES),we.attribList=[],we.opt.xmlns&&(we.ns=(0,u.default)($)),we.trackPosition=we.opt.position!==!1,we.trackPosition&&(we.position=we.line=we.column=0),me(we,"onready")}u.default||(Object.create=function(k){function W(){}W.prototype=k;var we=new W;return we}),r.default||(Object.keys=function(k){var W=[];for(var we in k)k.hasOwnProperty(we)&&W.push(we);return W});function g(k){for(var W=Math.max(x.MAX_BUFFER_LENGTH,10),we=0,be=0,Te=C.length;be<Te;be++){var Be=k[C[be]].length;if(Be>W)switch(C[be]){case"textNode":Ee(k);break;case"cdata":xe(k,"oncdata",k.cdata),k.cdata="";break;case"script":xe(k,"onscript",k.script),k.script="";break;default:le(k,"Max buffer length exceeded: "+C[be])}we=Math.max(we,Be)}var Fe=x.MAX_BUFFER_LENGTH-we;k.bufferCheckPosition=Fe+k.position}function E(k){for(var W=0,we=C.length;W<we;W++)k[C[W]]=""}function A(k){Ee(k),k.cdata!==""&&(xe(k,"oncdata",k.cdata),k.cdata=""),k.script!==""&&(xe(k,"onscript",k.script),k.script="")}b.prototype={end:function(){ge(this)},write:j,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){A(this)}};var N;try{N=h("stream").Stream}catch(k){N=function(){}}var M=x.EVENTS.filter(function(k){return k!=="error"&&k!=="end"});function w(k,W){return new Y(k,W)}function Y(k,W){if(!(this instanceof Y))return new Y(k,W);N.apply(this),this._parser=new b(k,W),this.writable=!0,this.readable=!0;var we=this;this._parser.onend=function(){we.emit("end")},this._parser.onerror=function(be){we.emit("error",be),we._parser.error=null},this._decoder=null,M.forEach(function(be){(0,l.default)(we,"on"+be,{get:function(){return we._parser["on"+be]},set:function(Be){if(!Be)return we.removeAllListeners(be),we._parser["on"+be]=Be,Be;we.on(be,Be)},enumerable:!0,configurable:!1})})}Y.prototype=(0,u.default)(N.prototype,{constructor:{value:Y}}),Y.prototype.write=function(k){if(typeof m=="function"&&typeof m.isBuffer=="function"&&m.isBuffer(k)){if(!this._decoder){var W=h("string_decoder").StringDecoder;this._decoder=new W("utf8")}k=this._decoder.write(k)}return this._parser.write(k.toString()),this.emit("data",k),!0},Y.prototype.end=function(k){return k&&k.length&&this.write(k),this._parser.end(),!0},Y.prototype.on=function(k,W){var we=this;return!we._parser["on"+k]&&M.indexOf(k)!==-1&&(we._parser["on"+k]=function(){var be=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);be.splice(0,0,k),we.emit.apply(we,be)}),N.prototype.on.call(we,k,W)};var X="[CDATA[",P="DOCTYPE",H="http://www.w3.org/XML/1998/namespace",G="http://www.w3.org/2000/xmlns/",$={xml:H,xmlns:G},he=/[:_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]/,de=/[:_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-]/,J=/[#:_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]/,fe=/[#:_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 q(k){return k===" "||k===`
|
|
|
`||k==="\r"||k===" "}function U(k){return k==='"'||k==="'"}function z(k){return k===">"||q(k)}function L(k,W){return k.test(W)}function T(k,W){return!L(k,W)}var I=0;x.STATE={BEGIN:I++,BEGIN_WHITESPACE:I++,TEXT:I++,TEXT_ENTITY:I++,OPEN_WAKA:I++,SGML_DECL:I++,SGML_DECL_QUOTED:I++,DOCTYPE:I++,DOCTYPE_QUOTED:I++,DOCTYPE_DTD:I++,DOCTYPE_DTD_QUOTED:I++,COMMENT_STARTING:I++,COMMENT:I++,COMMENT_ENDING:I++,COMMENT_ENDED:I++,CDATA:I++,CDATA_ENDING:I++,CDATA_ENDING_2:I++,PROC_INST:I++,PROC_INST_BODY:I++,PROC_INST_ENDING:I++,OPEN_TAG:I++,OPEN_TAG_SLASH:I++,ATTRIB:I++,ATTRIB_NAME:I++,ATTRIB_NAME_SAW_WHITE:I++,ATTRIB_VALUE:I++,ATTRIB_VALUE_QUOTED:I++,ATTRIB_VALUE_CLOSED:I++,ATTRIB_VALUE_UNQUOTED:I++,ATTRIB_VALUE_ENTITY_Q:I++,ATTRIB_VALUE_ENTITY_U:I++,CLOSE_TAG:I++,CLOSE_TAG_SAW_WHITE:I++,SCRIPT:I++,SCRIPT_ENDING:I++},x.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},x.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)(x.ENTITIES).forEach(function(k){var W=x.ENTITIES[k],we=typeof W=="number"?String.fromCharCode(W):W;x.ENTITIES[k]=we});for(var se in x.STATE)x.STATE[x.STATE[se]]=se;I=x.STATE;function me(k,W,we){k[W]&&k[W](we)}function xe(k,W,we){k.textNode&&Ee(k),me(k,W,we)}function Ee(k){k.textNode=Oe(k.opt,k.textNode),k.textNode&&me(k,"ontext",k.textNode),k.textNode=""}function Oe(k,W){return k.trim&&(W=W.trim()),k.normalize&&(W=W.replace(/\s+/g," ")),W}function le(k,W){return Ee(k),k.trackPosition&&(W+=`
|
|
|
Line: `+k.line+`
|
|
|
Column: `+k.column+`
|
|
|
Char: `+k.c),W=new Error(W),k.error=W,me(k,"onerror",W),k}function ge(k){return k.sawRoot&&!k.closedRoot&&ye(k,"Unclosed root tag"),k.state!==I.BEGIN&&k.state!==I.BEGIN_WHITESPACE&&k.state!==I.TEXT&&le(k,"Unexpected end"),Ee(k),k.c="",k.closed=!0,me(k,"onend"),b.call(k,k.strict,k.opt),k}function ye(k,W){if((typeof k=="undefined"?"undefined":(0,v.default)(k))!=="object"||!(k instanceof b))throw new Error("bad call to strictFail");k.strict&&le(k,W)}function ee(k){k.strict||(k.tagName=k.tagName[k.looseCase]());var W=k.tags[k.tags.length-1]||k,we=k.tag={name:k.tagName,attributes:{}};k.opt.xmlns&&(we.ns=W.ns),k.attribList.length=0,xe(k,"onopentagstart",we)}function oe(k,W){var we=k.indexOf(":"),be=we<0?["",k]:k.split(":"),Te=be[0],Be=be[1];return W&&k==="xmlns"&&(Te="xmlns",Be=""),{prefix:Te,local:Be}}function Z(k){if(k.strict||(k.attribName=k.attribName[k.looseCase]()),k.attribList.indexOf(k.attribName)!==-1||k.tag.attributes.hasOwnProperty(k.attribName)){k.attribName=k.attribValue="";return}if(k.opt.xmlns){var W=oe(k.attribName,!0),we=W.prefix,be=W.local;if(we==="xmlns")if(be==="xml"&&k.attribValue!==H)ye(k,"xml: prefix must be bound to "+H+`
|
|
|
Actual: `+k.attribValue);else if(be==="xmlns"&&k.attribValue!==G)ye(k,"xmlns: prefix must be bound to "+G+`
|
|
|
Actual: `+k.attribValue);else{var Te=k.tag,Be=k.tags[k.tags.length-1]||k;Te.ns===Be.ns&&(Te.ns=(0,u.default)(Be.ns)),Te.ns[be]=k.attribValue}k.attribList.push([k.attribName,k.attribValue])}else k.tag.attributes[k.attribName]=k.attribValue,xe(k,"onattribute",{name:k.attribName,value:k.attribValue});k.attribName=k.attribValue=""}function ue(k,W){if(k.opt.xmlns){var we=k.tag,be=oe(k.tagName);we.prefix=be.prefix,we.local=be.local,we.uri=we.ns[be.prefix]||"",we.prefix&&!we.uri&&(ye(k,"Unbound namespace prefix: "+(0,_.default)(k.tagName)),we.uri=be.prefix);var Te=k.tags[k.tags.length-1]||k;we.ns&&Te.ns!==we.ns&&(0,r.default)(we.ns).forEach(function(Ke){xe(k,"onopennamespace",{prefix:Ke,uri:we.ns[Ke]})});for(var Be=0,Fe=k.attribList.length;Be<Fe;Be++){var Ue=k.attribList[Be],We=Ue[0],Ve=Ue[1],Ge=oe(We,!0),Je=Ge.prefix,Re=Ge.local,Ze=Je===""?"":we.ns[Je]||"",nt={name:We,value:Ve,prefix:Je,local:Re,uri:Ze};Je&&Je!=="xmlns"&&!Ze&&(ye(k,"Unbound namespace prefix: "+(0,_.default)(Je)),nt.uri=Je),k.tag.attributes[We]=nt,xe(k,"onattribute",nt)}k.attribList.length=0}k.tag.isSelfClosing=!!W,k.sawRoot=!0,k.tags.push(k.tag),xe(k,"onopentag",k.tag),W||(!k.noscript&&k.tagName.toLowerCase()==="script"?k.state=I.SCRIPT:k.state=I.TEXT,k.tag=null,k.tagName=""),k.attribName=k.attribValue="",k.attribList.length=0}function V(k){if(!k.tagName){ye(k,"Weird empty close tag."),k.textNode+="</>",k.state=I.TEXT;return}if(k.script){if(k.tagName!=="script"){k.script+="</"+k.tagName+">",k.tagName="",k.state=I.SCRIPT;return}xe(k,"onscript",k.script),k.script=""}var W=k.tags.length,we=k.tagName;k.strict||(we=we[k.looseCase]());for(var be=we;W--;){var Te=k.tags[W];if(Te.name!==be)ye(k,"Unexpected close tag");else break}if(W<0){ye(k,"Unmatched closing tag: "+k.tagName),k.textNode+="</"+k.tagName+">",k.state=I.TEXT;return}k.tagName=we;for(var Be=k.tags.length;Be-- >W;){var Fe=k.tag=k.tags.pop();k.tagName=k.tag.name,xe(k,"onclosetag",k.tagName);var Ue={};for(var We in Fe.ns)Ue[We]=Fe.ns[We];var Ve=k.tags[k.tags.length-1]||k;k.opt.xmlns&&Fe.ns!==Ve.ns&&(0,r.default)(Fe.ns).forEach(function(Ge){var Je=Fe.ns[Ge];xe(k,"onclosenamespace",{prefix:Ge,uri:Je})})}W===0&&(k.closedRoot=!0),k.tagName=k.attribValue=k.attribName="",k.attribList.length=0,k.state=I.TEXT}function Q(k){var W=k.entity,we=W.toLowerCase(),be,Te="";return k.ENTITIES[W]?k.ENTITIES[W]:k.ENTITIES[we]?k.ENTITIES[we]:(W=we,W.charAt(0)==="#"&&(W.charAt(1)==="x"?(W=W.slice(2),be=parseInt(W,16),Te=be.toString(16)):(W=W.slice(1),be=parseInt(W,10),Te=be.toString(10))),W=W.replace(/^0+/,""),isNaN(be)||Te.toLowerCase()!==W?(ye(k,"Invalid character entity"),"&"+k.entity+";"):(0,D.default)(be))}function ae(k,W){W==="<"?(k.state=I.OPEN_WAKA,k.startTagPosition=k.position):q(W)||(ye(k,"Non-whitespace before first tag."),k.textNode=W,k.state=I.TEXT)}function K(k,W){var we="";return W<k.length&&(we=k.charAt(W)),we}function j(k){var W=this;if(this.error)throw this.error;if(W.closed)return le(W,"Cannot write after close. Assign an onready handler.");if(k===null)return ge(W);(typeof k=="undefined"?"undefined":(0,v.default)(k))==="object"&&(k=k.toString());for(var we=0,be="";!(be=K(k,we++),W.c=be,!be);){W.trackPosition&&(W.position++,be===`
|
|
|
`?(W.line++,W.column=0):W.column++);switch(W.state){case I.BEGIN:if(W.state=I.BEGIN_WHITESPACE,be==="\uFEFF")continue;ae(W,be);continue;case I.BEGIN_WHITESPACE:ae(W,be);continue;case I.TEXT:if(W.sawRoot&&!W.closedRoot){for(var Te=we-1;be&&be!=="<"&&be!=="&";)be=K(k,we++),be&&W.trackPosition&&(W.position++,be===`
|
|
|
`?(W.line++,W.column=0):W.column++);W.textNode+=k.substring(Te,we-1)}be==="<"&&!(W.sawRoot&&W.closedRoot&&!W.strict)?(W.state=I.OPEN_WAKA,W.startTagPosition=W.position):(!q(be)&&(!W.sawRoot||W.closedRoot)&&ye(W,"Text data outside of root node."),be==="&"?W.state=I.TEXT_ENTITY:W.textNode+=be);continue;case I.SCRIPT:be==="<"?W.state=I.SCRIPT_ENDING:W.script+=be;continue;case I.SCRIPT_ENDING:be==="/"?W.state=I.CLOSE_TAG:(W.script+="<"+be,W.state=I.SCRIPT);continue;case I.OPEN_WAKA:if(be==="!")W.state=I.SGML_DECL,W.sgmlDecl="";else if(!q(be))if(L(he,be))W.state=I.OPEN_TAG,W.tagName=be;else if(be==="/")W.state=I.CLOSE_TAG,W.tagName="";else if(be==="?")W.state=I.PROC_INST,W.procInstName=W.procInstBody="";else{if(ye(W,"Unencoded <"),W.startTagPosition+1<W.position){var Be=W.position-W.startTagPosition;be=new Array(Be).join(" ")+be}W.textNode+="<"+be,W.state=I.TEXT}continue;case I.SGML_DECL:(W.sgmlDecl+be).toUpperCase()===X?(xe(W,"onopencdata"),W.state=I.CDATA,W.sgmlDecl="",W.cdata=""):W.sgmlDecl+be==="--"?(W.state=I.COMMENT,W.comment="",W.sgmlDecl=""):(W.sgmlDecl+be).toUpperCase()===P?(W.state=I.DOCTYPE,(W.doctype||W.sawRoot)&&ye(W,"Inappropriately located doctype declaration"),W.doctype="",W.sgmlDecl=""):be===">"?(xe(W,"onsgmldeclaration",W.sgmlDecl),W.sgmlDecl="",W.state=I.TEXT):(U(be)&&(W.state=I.SGML_DECL_QUOTED),W.sgmlDecl+=be);continue;case I.SGML_DECL_QUOTED:be===W.q&&(W.state=I.SGML_DECL,W.q=""),W.sgmlDecl+=be;continue;case I.DOCTYPE:be===">"?(W.state=I.TEXT,xe(W,"ondoctype",W.doctype),W.doctype=!0):(W.doctype+=be,be==="["?W.state=I.DOCTYPE_DTD:U(be)&&(W.state=I.DOCTYPE_QUOTED,W.q=be));continue;case I.DOCTYPE_QUOTED:W.doctype+=be,be===W.q&&(W.q="",W.state=I.DOCTYPE);continue;case I.DOCTYPE_DTD:W.doctype+=be,be==="]"?W.state=I.DOCTYPE:U(be)&&(W.state=I.DOCTYPE_DTD_QUOTED,W.q=be);continue;case I.DOCTYPE_DTD_QUOTED:W.doctype+=be,be===W.q&&(W.state=I.DOCTYPE_DTD,W.q="");continue;case I.COMMENT:be==="-"?W.state=I.COMMENT_ENDING:W.comment+=be;continue;case I.COMMENT_ENDING:be==="-"?(W.state=I.COMMENT_ENDED,W.comment=Oe(W.opt,W.comment),W.comment&&xe(W,"oncomment",W.comment),W.comment=""):(W.comment+="-"+be,W.state=I.COMMENT);continue;case I.COMMENT_ENDED:be!==">"?(ye(W,"Malformed comment"),W.comment+="--"+be,W.state=I.COMMENT):W.state=I.TEXT;continue;case I.CDATA:be==="]"?W.state=I.CDATA_ENDING:W.cdata+=be;continue;case I.CDATA_ENDING:be==="]"?W.state=I.CDATA_ENDING_2:(W.cdata+="]"+be,W.state=I.CDATA);continue;case I.CDATA_ENDING_2:be===">"?(W.cdata&&xe(W,"oncdata",W.cdata),xe(W,"onclosecdata"),W.cdata="",W.state=I.TEXT):be==="]"?W.cdata+="]":(W.cdata+="]]"+be,W.state=I.CDATA);continue;case I.PROC_INST:be==="?"?W.state=I.PROC_INST_ENDING:q(be)?W.state=I.PROC_INST_BODY:W.procInstName+=be;continue;case I.PROC_INST_BODY:if(!W.procInstBody&&q(be))continue;be==="?"?W.state=I.PROC_INST_ENDING:W.procInstBody+=be;continue;case I.PROC_INST_ENDING:be===">"?(xe(W,"onprocessinginstruction",{name:W.procInstName,body:W.procInstBody}),W.procInstName=W.procInstBody="",W.state=I.TEXT):(W.procInstBody+="?"+be,W.state=I.PROC_INST_BODY);continue;case I.OPEN_TAG:L(de,be)?W.tagName+=be:(ee(W),be===">"?ue(W):be==="/"?W.state=I.OPEN_TAG_SLASH:(q(be)||ye(W,"Invalid character in tag name"),W.state=I.ATTRIB));continue;case I.OPEN_TAG_SLASH:be===">"?(ue(W,!0),V(W)):(ye(W,"Forward-slash in opening tag not followed by >"),W.state=I.ATTRIB);continue;case I.ATTRIB:if(q(be))continue;be===">"?ue(W):be==="/"?W.state=I.OPEN_TAG_SLASH:L(he,be)?(W.attribName=be,W.attribValue="",W.state=I.ATTRIB_NAME):ye(W,"Invalid attribute name");continue;case I.ATTRIB_NAME:be==="="?W.state=I.ATTRIB_VALUE:be===">"?(ye(W,"Attribute without value"),W.attribValue=W.attribName,Z(W),ue(W)):q(be)?W.state=I.ATTRIB_NAME_SAW_WHITE:L(de,be)?W.attribName+=be:ye(W,"Invalid attribute name");continue;case I.ATTRIB_NAME_SAW_WHITE:if(be==="=")W.state=I.ATTRIB_VALUE;else{if(q(be))continue;ye(W,"Attribute without value"),W.tag.attributes[W.attribName]="",W.attribValue="",xe(W,"onattribute",{name:W.attribName,value:""}),W.attribName="",be===">"?ue(W):L(he,be)?(W.attribName=be,W.state=I.ATTRIB_NAME):(ye(W,"Invalid attribute name"),W.state=I.ATTRIB)}continue;case I.ATTRIB_VALUE:if(q(be))continue;U(be)?(W.q=be,W.state=I.ATTRIB_VALUE_QUOTED):(ye(W,"Unquoted attribute value"),W.state=I.ATTRIB_VALUE_UNQUOTED,W.attribValue=be);continue;case I.ATTRIB_VALUE_QUOTED:if(be!==W.q){be==="&"?W.state=I.ATTRIB_VALUE_ENTITY_Q:W.attribValue+=be;continue}Z(W),W.q="",W.state=I.ATTRIB_VALUE_CLOSED;continue;case I.ATTRIB_VALUE_CLOSED:q(be)?W.state=I.ATTRIB:be===">"?ue(W):be==="/"?W.state=I.OPEN_TAG_SLASH:L(he,be)?(ye(W,"No whitespace between attributes"),W.attribName=be,W.attribValue="",W.state=I.ATTRIB_NAME):ye(W,"Invalid attribute name");continue;case I.ATTRIB_VALUE_UNQUOTED:if(!z(be)){be==="&"?W.state=I.ATTRIB_VALUE_ENTITY_U:W.attribValue+=be;continue}Z(W),be===">"?ue(W):W.state=I.ATTRIB;continue;case I.CLOSE_TAG:if(W.tagName)be===">"?V(W):L(de,be)?W.tagName+=be:W.script?(W.script+="</"+W.tagName,W.tagName="",W.state=I.SCRIPT):(q(be)||ye(W,"Invalid tagname in closing tag"),W.state=I.CLOSE_TAG_SAW_WHITE);else{if(q(be))continue;T(he,be)?W.script?(W.script+="</"+be,W.state=I.SCRIPT):ye(W,"Invalid tagname in closing tag."):W.tagName=be}continue;case I.CLOSE_TAG_SAW_WHITE:if(q(be))continue;be===">"?V(W):ye(W,"Invalid characters in closing tag");continue;case I.TEXT_ENTITY:case I.ATTRIB_VALUE_ENTITY_Q:case I.ATTRIB_VALUE_ENTITY_U:var Fe,Ue;switch(W.state){case I.TEXT_ENTITY:Fe=I.TEXT,Ue="textNode";break;case I.ATTRIB_VALUE_ENTITY_Q:Fe=I.ATTRIB_VALUE_QUOTED,Ue="attribValue";break;case I.ATTRIB_VALUE_ENTITY_U:Fe=I.ATTRIB_VALUE_UNQUOTED,Ue="attribValue";break}be===";"?(W[Ue]+=Q(W),W.entity="",W.state=Fe):L(W.entity.length?fe:J,be)?W.entity+=be:(ye(W,"Invalid character in entity name"),W[Ue]+="&"+W.entity+be,W.entity="",W.state=Fe);continue;default:throw new Error(W,"Unknown state: "+W.state)}}return W.position>=W.bufferCheckPosition&&g(W),W}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */D.default||function(){var k=String.fromCharCode,W=Math.floor,we=function(){var Te=16384,Be=[],Fe,Ue,We=-1,Ve=arguments.length;if(!Ve)return"";for(var Ge="";++We<Ve;){var Je=Number(arguments[We]);if(!isFinite(Je)||Je<0||Je>1114111||W(Je)!==Je)throw RangeError("Invalid code point: "+Je);Je<=65535?Be.push(Je):(Je-=65536,Fe=(Je>>10)+55296,Ue=Je%1024+56320,Be.push(Fe,Ue)),(We+1===Ve||Be.length>Te)&&(Ge+=k.apply(null,Be),Be.length=0)}return Ge};l.default?Object.defineProperty(String,"fromCodePoint",{value:we,configurable:!0,writable:!0}):String.fromCodePoint=we}()})(typeof o=="undefined"?(void 0).sax={}:o)}).call(this,h("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(h,F,o){F.exports=D;var m=h("events").EventEmitter,a=h("inherits");a(D,m),D.Readable=h("readable-stream/readable.js"),D.Writable=h("readable-stream/writable.js"),D.Duplex=h("readable-stream/duplex.js"),D.Transform=h("readable-stream/transform.js"),D.PassThrough=h("readable-stream/passthrough.js"),D.Stream=D;function D(){m.call(this)}D.prototype.pipe=function(O,_){var y=this;function v(f){O.writable&&(O.write(f)===!1&&y.pause&&y.pause())}y.on("data",v);function c(){y.readable&&y.resume&&y.resume()}O.on("drain",c),!O._isStdio&&(!_||_.end!==!1)&&(y.on("end",s),y.on("close",r));var l=!1;function s(){if(l)return;l=!0,O.end()}function r(){if(l)return;l=!0,typeof O.destroy=="function"&&O.destroy()}function d(f){if(u(),m.listenerCount(this,"error")===0)throw f}y.on("error",d),O.on("error",d);function u(){y.removeListener("data",v),O.removeListener("drain",c),y.removeListener("end",s),y.removeListener("close",r),y.removeListener("error",d),O.removeListener("error",d),y.removeListener("end",u),y.removeListener("close",u),O.removeListener("close",u)}return y.on("end",u),y.on("close",u),O.on("close",u),O.emit("pipe",y),O}},{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(h,F,o){(function(m){var a=h("./lib/request"),D=h("./lib/response"),O=h("xtend"),_=h("builtin-status-codes"),y=h("url"),v=o;v.request=function(c,l){typeof c=="string"?c=y.parse(c):c=O(c);var s=m.location.protocol.search(/^https?:$/)===-1?"http:":"",r=c.protocol||s,d=c.hostname||c.host,u=c.port,f=c.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),c.url=(d?r+"//"+d:"")+(u?":"+u:"")+f,c.method=(c.method||"GET").toUpperCase(),c.headers=c.headers||{};var x=new a(c);return l&&x.on("response",l),x},v.get=function(l,s){var r=v.request(l,s);return r.end(),r},v.ClientRequest=a,v.IncomingMessage=D.IncomingMessage,v.Agent=function(){},v.Agent.defaultMaxSockets=4,v.globalAgent=new v.Agent,v.STATUS_CODES=_,v.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(h,F,o){(function(m){"use strict";o.fetch=v(m.fetch)&&v(m.ReadableStream),o.writableStream=v(m.WritableStream),o.abortController=v(m.AbortController),o.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),o.blobConstructor=!0}catch(c){}var a;function D(){if(a!==void 0)return a;if(m.XMLHttpRequest){a=new m.XMLHttpRequest;try{a.open("GET",m.XDomainRequest?"/":"https://example.com")}catch(c){a=null}}else a=null;return a}function O(c){var l=D();if(!l)return!1;try{return l.responseType=c,l.responseType===c}catch(s){}return!1}var _=typeof m.ArrayBuffer!="undefined",y=_&&v(m.ArrayBuffer.prototype.slice);o.arraybuffer=o.fetch||_&&O("arraybuffer"),o.msstream=!o.fetch&&y&&O("ms-stream"),o.mozchunkedarraybuffer=!o.fetch&&_&&O("moz-chunked-arraybuffer"),o.overrideMimeType=o.fetch||(D()?v(D().overrideMimeType):!1),o.vbArray=v(m.VBArray);function v(c){return typeof c=="function"}a=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(h,F,o){(function(m,a,D){"use strict";var O=h("babel-runtime/core-js/object/keys"),_=y(O);function y(g){return g&&g.__esModule?g:{default:g}}var v=h("./capability"),c=h("inherits"),l=h("./response"),s=h("readable-stream"),r=h("to-arraybuffer"),d=l.IncomingMessage,u=l.readyStates;function f(g,E){return v.fetch&&E?"fetch":v.mozchunkedarraybuffer?"moz-chunked-arraybuffer":v.msstream?"ms-stream":v.arraybuffer&&g?"arraybuffer":v.vbArray&&g?"text:vbarray":"text"}var x=F.exports=function(g){var E=this;s.Writable.call(E),E._opts=g,E._body=[],E._headers={},g.auth&&E.setHeader("Authorization","Basic "+new D(g.auth).toString("base64")),(0,_.default)(g.headers).forEach(function(M){E.setHeader(M,g.headers[M])});var A,N=!0;if(g.mode==="disable-fetch"||"requestTimeout"in g&&!v.abortController)N=!1,A=!0;else if(g.mode==="prefer-streaming")A=!1;else if(g.mode==="allow-wrong-content-type")A=!v.overrideMimeType;else if(!g.mode||g.mode==="default"||g.mode==="prefer-fast")A=!0;else throw new Error("Invalid value for opts.mode");E._mode=f(A,N),E._fetchTimer=null,E.on("finish",function(){E._onFinish()})};c(x,s.Writable),x.prototype.setHeader=function(g,E){var A=this,N=g.toLowerCase();if(b.indexOf(N)!==-1)return;A._headers[N]={name:g,value:E}},x.prototype.getHeader=function(g){var E=this._headers[g.toLowerCase()];return E?E.value:null},x.prototype.removeHeader=function(g){var E=this;delete E._headers[g.toLowerCase()]},x.prototype._onFinish=function(){var g=this;if(g._destroyed)return;var E=g._opts,A=g._headers,N=null;E.method!=="GET"&&E.method!=="HEAD"&&(v.arraybuffer?N=r(D.concat(g._body)):v.blobConstructor?N=new a.Blob(g._body.map(function(H){return r(H)}),{type:(A["content-type"]||{}).value||""}):N=D.concat(g._body).toString());var M=[];if((0,_.default)(A).forEach(function(H){var G=A[H].name,$=A[H].value;Array.isArray($)?$.forEach(function(he){M.push([G,he])}):M.push([G,$])}),g._mode==="fetch"){var w=null,Y=null;if(v.abortController){var X=new AbortController;w=X.signal,g._fetchAbortController=X,"requestTimeout"in E&&E.requestTimeout!==0&&(g._fetchTimer=a.setTimeout(function(){g.emit("requestTimeout"),g._fetchAbortController&&g._fetchAbortController.abort()},E.requestTimeout))}a.fetch(g._opts.url,{method:g._opts.method,headers:M,body:N||void 0,mode:"cors",credentials:E.withCredentials?"include":"same-origin",signal:w}).then(function(H){g._fetchResponse=H,g._connect()},function(H){a.clearTimeout(g._fetchTimer),g._destroyed||g.emit("error",H)})}else{var P=g._xhr=new a.XMLHttpRequest;try{P.open(g._opts.method,g._opts.url,!0)}catch(H){m.nextTick(function(){g.emit("error",H)});return}"responseType"in P&&(P.responseType=g._mode.split(":")[0]),"withCredentials"in P&&(P.withCredentials=!!E.withCredentials),g._mode==="text"&&"overrideMimeType"in P&&P.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in E&&(P.timeout=E.requestTimeout,P.ontimeout=function(){g.emit("requestTimeout")}),M.forEach(function(H){P.setRequestHeader(H[0],H[1])}),g._response=null,P.onreadystatechange=function(){switch(P.readyState){case u.LOADING:case u.DONE:g._onXHRProgress();break}},g._mode==="moz-chunked-arraybuffer"&&(P.onprogress=function(){g._onXHRProgress()}),P.onerror=function(){if(g._destroyed)return;g.emit("error",new Error("XHR error"))};try{P.send(N)}catch(H){m.nextTick(function(){g.emit("error",H)});return}}};function C(g){try{var E=g.status;return E!==null&&E!==0}catch(A){return!1}}x.prototype._onXHRProgress=function(){var g=this;if(!C(g._xhr)||g._destroyed)return;g._response||g._connect(),g._response._onXHRProgress()},x.prototype._connect=function(){var g=this;if(g._destroyed)return;g._response=new d(g._xhr,g._fetchResponse,g._mode,g._fetchTimer),g._response.on("error",function(E){g.emit("error",E)}),g.emit("response",g._response)},x.prototype._write=function(g,E,A){var N=this;N._body.push(g),A()},x.prototype.abort=x.prototype.destroy=function(){var g=this;g._destroyed=!0,a.clearTimeout(g._fetchTimer),g._response&&(g._response._destroyed=!0),g._xhr?g._xhr.abort():g._fetchAbortController&&g._fetchAbortController.abort()},x.prototype.end=function(g,E,A){var N=this;typeof g=="function"&&(A=g,g=void 0),s.Writable.prototype.end.call(N,g,E,A)},x.prototype.flushHeaders=function(){},x.prototype.setTimeout=function(){},x.prototype.setNoDelay=function(){},x.prototype.setSocketKeepAlive=function(){};var b=["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,h("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},h("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(h,F,o){(function(m,a,D){"use strict";var O=h("babel-runtime/core-js/promise"),_=y(O);function y(d){return d&&d.__esModule?d:{default:d}}var v=h("./capability"),c=h("inherits"),l=h("readable-stream"),s=o.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},r=o.IncomingMessage=function(d,u,f,x){var C=this;if(l.Readable.call(C),C._mode=f,C.headers={},C.rawHeaders=[],C.trailers={},C.rawTrailers=[],C.on("end",function(){m.nextTick(function(){C.emit("close")})}),f==="fetch"){var b=function w(){E.read().then(function(Y){if(C._destroyed)return;if(Y.done){a.clearTimeout(x),C.push(null);return}C.push(new D(Y.value)),w()}).catch(function(Y){a.clearTimeout(x),C._destroyed||C.emit("error",Y)})};if(C._fetchResponse=u,C.url=u.url,C.statusCode=u.status,C.statusMessage=u.statusText,u.headers.forEach(function(w,Y){C.headers[Y.toLowerCase()]=w,C.rawHeaders.push(Y,w)}),v.writableStream){var g=new WritableStream({write:function(Y){return new _.default(function(X,P){C._destroyed?P():C.push(new D(Y))?X():C._resumeFetch=X})},close:function(){a.clearTimeout(x),C._destroyed||C.push(null)},abort:function(Y){C._destroyed||C.emit("error",Y)}});try{u.body.pipeTo(g).catch(function(w){a.clearTimeout(x),C._destroyed||C.emit("error",w)});return}catch(w){}}var E=u.body.getReader();b()}else{C._xhr=d,C._pos=0,C.url=d.responseURL,C.statusCode=d.status,C.statusMessage=d.statusText;var A=d.getAllResponseHeaders().split(/\r?\n/);if(A.forEach(function(w){var Y=w.match(/^([^:]+):\s*(.*)/);if(Y){var X=Y[1].toLowerCase();X==="set-cookie"?(C.headers[X]===void 0&&(C.headers[X]=[]),C.headers[X].push(Y[2])):C.headers[X]!==void 0?C.headers[X]+=", "+Y[2]:C.headers[X]=Y[2],C.rawHeaders.push(Y[1],Y[2])}}),C._charset="x-user-defined",!v.overrideMimeType){var N=C.rawHeaders["mime-type"];if(N){var M=N.match(/;\s*charset=([^;])(;|$)/);M&&(C._charset=M[1].toLowerCase())}C._charset||(C._charset="utf-8")}}};c(r,l.Readable),r.prototype._read=function(){var d=this,u=d._resumeFetch;u&&(d._resumeFetch=null,u())},r.prototype._onXHRProgress=function(){var d=this,u=d._xhr,f=null;switch(d._mode){case"text:vbarray":if(u.readyState!==s.DONE)break;try{f=new a.VBArray(u.responseBody).toArray()}catch(E){}if(f!==null){d.push(new D(f));break}case"text":try{f=u.responseText}catch(E){d._mode="text:vbarray";break}if(f.length>d._pos){var x=f.substr(d._pos);if(d._charset==="x-user-defined"){for(var C=new D(x.length),b=0;b<x.length;b++)C[b]=x.charCodeAt(b)&255;d.push(C)}else d.push(x,d._charset);d._pos=f.length}break;case"arraybuffer":if(u.readyState!==s.DONE||!u.response)break;f=u.response,d.push(new D(new Uint8Array(f)));break;case"moz-chunked-arraybuffer":if(f=u.response,u.readyState!==s.LOADING||!f)break;d.push(new D(new Uint8Array(f)));break;case"ms-stream":if(f=u.response,u.readyState!==s.LOADING)break;var g=new a.MSStreamReader;g.onprogress=function(){g.result.byteLength>d._pos&&(d.push(new D(new Uint8Array(g.result.slice(d._pos)))),d._pos=g.result.byteLength)},g.onload=function(){d.push(null)},g.readAsArrayBuffer(f);break}d._xhr.readyState===s.DONE&&d._mode!=="ms-stream"&&d.push(null)}}).call(this,h("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},h("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(h,F,o){"use strict";var m=h("safe-buffer").Buffer,a=m.isEncoding||function(g){g=""+g;switch(g&&g.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 D(g){if(!g)return"utf8";for(var E;;)switch(g){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 g;default:if(E)return;g=(""+g).toLowerCase(),E=!0}}function O(g){var E=D(g);if(typeof E!="string"&&(m.isEncoding===a||!a(g)))throw new Error("Unknown encoding: "+g);return E||g}o.StringDecoder=_;function _(g){this.encoding=O(g);var E;switch(this.encoding){case"utf16le":this.text=d,this.end=u,E=4;break;case"utf8":this.fillLast=l,E=4;break;case"base64":this.text=f,this.end=x,E=3;break;default:this.write=C,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=m.allocUnsafe(E)}_.prototype.write=function(g){if(g.length===0)return"";var E,A;if(this.lastNeed){if(E=this.fillLast(g),E===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A<g.length?E?E+this.text(g,A):this.text(g,A):E||""},_.prototype.end=r,_.prototype.text=s,_.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length};function y(g){return g<=127?0:g>>5===6?2:g>>4===14?3:g>>3===30?4:g>>6===2?-1:-2}function v(g,E,A){var N=E.length-1;if(N<A)return 0;var M=y(E[N]);return M>=0?(M>0&&(g.lastNeed=M-1),M):--N<A||M===-2?0:(M=y(E[N]),M>=0?(M>0&&(g.lastNeed=M-2),M):--N<A||M===-2?0:(M=y(E[N]),M>=0?(M>0&&(M===2?M=0:g.lastNeed=M-3),M):0))}function c(g,E,A){if((E[0]&192)!==128)return g.lastNeed=0,"\uFFFD";if(g.lastNeed>1&&E.length>1){if((E[1]&192)!==128)return g.lastNeed=1,"\uFFFD";if(g.lastNeed>2&&E.length>2&&(E[2]&192)!==128)return g.lastNeed=2,"\uFFFD"}}function l(g){var E=this.lastTotal-this.lastNeed,A=c(this,g,E);if(A!==void 0)return A;if(this.lastNeed<=g.length)return g.copy(this.lastChar,E,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,E,0,g.length),this.lastNeed-=g.length}function s(g,E){var A=v(this,g,E);if(!this.lastNeed)return g.toString("utf8",E);this.lastTotal=A;var N=g.length-(A-this.lastNeed);return g.copy(this.lastChar,0,N),g.toString("utf8",E,N)}function r(g){var E=g&&g.length?this.write(g):"";return this.lastNeed?E+"\uFFFD":E}function d(g,E){if((g.length-E)%2===0){var A=g.toString("utf16le",E);if(A){var N=A.charCodeAt(A.length-1);if(N>=55296&&N<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",E,g.length-1)}function u(g){var E=g&&g.length?this.write(g):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return E+this.lastChar.toString("utf16le",0,A)}return E}function f(g,E){var A=(g.length-E)%3;return A===0?g.toString("base64",E):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",E,g.length-A))}function x(g){var E=g&&g.length?this.write(g):"";return this.lastNeed?E+this.lastChar.toString("base64",0,3-this.lastNeed):E}function C(g){return g.toString(this.encoding)}function b(g){return g&&g.length?this.write(g):""}},{"safe-buffer":228}],236:[function(h,F,o){(function(m,a){var D=h("process/browser.js").nextTick,O=Function.prototype.apply,_=Array.prototype.slice,y={},v=0;o.setTimeout=function(){return new c(O.call(setTimeout,window,arguments),clearTimeout)},o.setInterval=function(){return new c(O.call(setInterval,window,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(l){l.close()};function c(l,s){this._id=l,this._clearFn=s}c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},o.enroll=function(l,s){clearTimeout(l._idleTimeoutId),l._idleTimeout=s},o.unenroll=function(l){clearTimeout(l._idleTimeoutId),l._idleTimeout=-1},o._unrefActive=o.active=function(l){clearTimeout(l._idleTimeoutId);var s=l._idleTimeout;s>=0&&(l._idleTimeoutId=setTimeout(function(){l._onTimeout&&l._onTimeout()},s))},o.setImmediate=typeof m=="function"?m:function(l){var s=v++,r=arguments.length<2?!1:_.call(arguments,1);return y[s]=!0,D(function(){y[s]&&(r?l.apply(null,r):l.call(null),o.clearImmediate(s))}),s},o.clearImmediate=typeof a=="function"?a:function(l){delete y[l]}}).call(this,h("timers").setImmediate,h("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(h,F,o){var m=h("buffer").Buffer;F.exports=function(a){if(a instanceof Uint8Array){if(a.byteOffset===0&&a.byteLength===a.buffer.byteLength)return a.buffer;if(typeof a.buffer.slice=="function")return a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength)}if(m.isBuffer(a)){for(var D=new Uint8Array(a.length),O=a.length,_=0;_<O;_++)D[_]=a[_];return D.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(h,F,o){"use strict";var m=h("punycode"),a=h("./util");o.parse=E,o.resolve=N,o.resolveObject=M,o.format=A,o.Url=D;function D(){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 O=/^([a-z0-9.+-]+:)/i,_=/:[0-9]*$/,y=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,v=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],c=["{","}","|","\\","^","`"].concat(v),l=["'"].concat(c),s=["%","/","?",";","#"].concat(l),r=["/","?","#"],d=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},C={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=h("querystring");function E(w,Y,X){if(w&&a.isObject(w)&&w instanceof D)return w;var P=new D;return P.parse(w,Y,X),P}D.prototype.parse=function(w,Y,X){if(!a.isString(w))throw new TypeError("Parameter 'url' must be a string, not "+typeof w);var P=w.indexOf("?"),H=P!==-1&&P<w.indexOf("#")?"?":"#",G=w.split(H),$=/\\/g;G[0]=G[0].replace($,"/"),w=G.join(H);var he=w;if(he=he.trim(),!X&&w.split("#").length===1){var de=y.exec(he);if(de)return this.path=he,this.href=he,this.pathname=de[1],de[2]?(this.search=de[2],Y?this.query=g.parse(this.search.substr(1)):this.query=this.search.substr(1)):Y&&(this.search="",this.query={}),this}var J=O.exec(he);if(J){J=J[0];var fe=J.toLowerCase();this.protocol=fe,he=he.substr(J.length)}if(X||J||he.match(/^\/\/[^@\/]+@[^@\/]+/)){var q=he.substr(0,2)==="//";q&&!(J&&C[J])&&(he=he.substr(2),this.slashes=!0)}if(!C[J]&&(q||J&&!b[J])){for(var U=-1,z=0;z<r.length;z++){var L=he.indexOf(r[z]);L!==-1&&(U===-1||L<U)&&(U=L)}var T,I;U===-1?I=he.lastIndexOf("@"):I=he.lastIndexOf("@",U),I!==-1&&(T=he.slice(0,I),he=he.slice(I+1),this.auth=decodeURIComponent(T)),U=-1;for(var z=0;z<s.length;z++){var L=he.indexOf(s[z]);L!==-1&&(U===-1||L<U)&&(U=L)}U===-1&&(U=he.length),this.host=he.slice(0,U),he=he.slice(U),this.parseHost(),this.hostname=this.hostname||"";var se=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!se)for(var me=this.hostname.split(/\./),z=0,xe=me.length;z<xe;z++){var Ee=me[z];if(!Ee)continue;if(!Ee.match(u)){for(var Oe="",le=0,ge=Ee.length;le<ge;le++)Ee.charCodeAt(le)>127?Oe+="x":Oe+=Ee[le];if(!Oe.match(u)){var ye=me.slice(0,z),ee=me.slice(z+1),oe=Ee.match(f);oe&&(ye.push(oe[1]),ee.unshift(oe[2])),ee.length&&(he="/"+ee.join(".")+he),this.hostname=ye.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),se||(this.hostname=m.toASCII(this.hostname));var Z=this.port?":"+this.port:"",ue=this.hostname||"";this.host=ue+Z,this.href+=this.host,se&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),he[0]!=="/"&&(he="/"+he))}if(!x[fe])for(var z=0,xe=l.length;z<xe;z++){var V=l[z];if(he.indexOf(V)===-1)continue;var Q=encodeURIComponent(V);Q===V&&(Q=escape(V)),he=he.split(V).join(Q)}var ae=he.indexOf("#");ae!==-1&&(this.hash=he.substr(ae),he=he.slice(0,ae));var K=he.indexOf("?");if(K!==-1?(this.search=he.substr(K),this.query=he.substr(K+1),Y&&(this.query=g.parse(this.query)),he=he.slice(0,K)):Y&&(this.search="",this.query={}),he&&(this.pathname=he),b[fe]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Z=this.pathname||"",j=this.search||"";this.path=Z+j}return this.href=this.format(),this};function A(w){return a.isString(w)&&(w=E(w)),w instanceof D?w.format():D.prototype.format.call(w)}D.prototype.format=function(){var w=this.auth||"";w&&(w=encodeURIComponent(w),w=w.replace(/%3A/i,":"),w+="@");var Y=this.protocol||"",X=this.pathname||"",P=this.hash||"",H=!1,G="";this.host?H=w+this.host:this.hostname&&(H=w+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(H+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(G=g.stringify(this.query));var $=this.search||G&&"?"+G||"";return Y&&Y.substr(-1)!==":"&&(Y+=":"),this.slashes||(!Y||b[Y])&&H!==!1?(H="//"+(H||""),X&&X.charAt(0)!=="/"&&(X="/"+X)):H||(H=""),P&&P.charAt(0)!=="#"&&(P="#"+P),$&&$.charAt(0)!=="?"&&($="?"+$),X=X.replace(/[?#]/g,function(he){return encodeURIComponent(he)}),$=$.replace("#","%23"),Y+H+X+$+P};function N(w,Y){return E(w,!1,!0).resolve(Y)}D.prototype.resolve=function(w){return this.resolveObject(E(w,!1,!0)).format()};function M(w,Y){return w?E(w,!1,!0).resolveObject(Y):Y}D.prototype.resolveObject=function(w){if(a.isString(w)){var Y=new D;Y.parse(w,!1,!0),w=Y}for(var X=new D,P=Object.keys(this),H=0;H<P.length;H++){var G=P[H];X[G]=this[G]}if(X.hash=w.hash,w.href==="")return X.href=X.format(),X;if(w.slashes&&!w.protocol){for(var $=Object.keys(w),he=0;he<$.length;he++){var de=$[he];de!=="protocol"&&(X[de]=w[de])}return b[X.protocol]&&X.hostname&&!X.pathname&&(X.path=X.pathname="/"),X.href=X.format(),X}if(w.protocol&&w.protocol!==X.protocol){if(!b[w.protocol]){for(var J=Object.keys(w),fe=0;fe<J.length;fe++){var q=J[fe];X[q]=w[q]}return X.href=X.format(),X}if(X.protocol=w.protocol,!w.host&&!C[w.protocol]){for(var xe=(w.pathname||"").split("/");xe.length&&!(w.host=xe.shift()););w.host||(w.host=""),w.hostname||(w.hostname=""),xe[0]!==""&&xe.unshift(""),xe.length<2&&xe.unshift(""),X.pathname=xe.join("/")}else X.pathname=w.pathname;if(X.search=w.search,X.query=w.query,X.host=w.host||"",X.auth=w.auth,X.hostname=w.hostname||w.host,X.port=w.port,X.pathname||X.search){var U=X.pathname||"",z=X.search||"";X.path=U+z}return X.slashes=X.slashes||w.slashes,X.href=X.format(),X}var L=X.pathname&&X.pathname.charAt(0)==="/",T=w.host||w.pathname&&w.pathname.charAt(0)==="/",I=T||L||X.host&&w.pathname,se=I,me=X.pathname&&X.pathname.split("/")||[],xe=w.pathname&&w.pathname.split("/")||[],Ee=X.protocol&&!b[X.protocol];if(Ee&&(X.hostname="",X.port=null,X.host&&(me[0]===""?me[0]=X.host:me.unshift(X.host)),X.host="",w.protocol&&(w.hostname=null,w.port=null,w.host&&(xe[0]===""?xe[0]=w.host:xe.unshift(w.host)),w.host=null),I=I&&(xe[0]===""||me[0]==="")),T)X.host=w.host||w.host===""?w.host:X.host,X.hostname=w.hostname||w.hostname===""?w.hostname:X.hostname,X.search=w.search,X.query=w.query,me=xe;else if(xe.length)me||(me=[]),me.pop(),me=me.concat(xe),X.search=w.search,X.query=w.query;else if(!a.isNullOrUndefined(w.search)){if(Ee){X.hostname=X.host=me.shift();var Oe=X.host&&X.host.indexOf("@")>0?X.host.split("@"):!1;Oe&&(X.auth=Oe.shift(),X.host=X.hostname=Oe.shift())}return X.search=w.search,X.query=w.query,(!a.isNull(X.pathname)||!a.isNull(X.search))&&(X.path=(X.pathname?X.pathname:"")+(X.search?X.search:"")),X.href=X.format(),X}if(!me.length)return X.pathname=null,X.search?X.path="/"+X.search:X.path=null,X.href=X.format(),X;for(var le=me.slice(-1)[0],ge=(X.host||w.host||me.length>1)&&(le==="."||le==="..")||le==="",ye=0,ee=me.length;ee>=0;ee--)le=me[ee],le==="."?me.splice(ee,1):le===".."?(me.splice(ee,1),ye++):ye&&(me.splice(ee,1),ye--);if(!I&&!se)for(;ye--;ye)me.unshift("..");I&&me[0]!==""&&(!me[0]||me[0].charAt(0)!=="/")&&me.unshift(""),ge&&me.join("/").substr(-1)!=="/"&&me.push("");var oe=me[0]===""||me[0]&&me[0].charAt(0)==="/";if(Ee){X.hostname=X.host=oe?"":me.length?me.shift():"";var Oe=X.host&&X.host.indexOf("@")>0?X.host.split("@"):!1;Oe&&(X.auth=Oe.shift(),X.host=X.hostname=Oe.shift())}return I=I||X.host&&me.length,I&&!oe&&me.unshift(""),me.length?X.pathname=me.join("/"):(X.pathname=null,X.path=null),(!a.isNull(X.pathname)||!a.isNull(X.search))&&(X.path=(X.pathname?X.pathname:"")+(X.search?X.search:"")),X.auth=w.auth||X.auth,X.slashes=X.slashes||w.slashes,X.href=X.format(),X},D.prototype.parseHost=function(){var w=this.host,Y=_.exec(w);Y&&(Y=Y[0],Y!==":"&&(this.port=Y.substr(1)),w=w.substr(0,w.length-Y.length)),w&&(this.hostname=w)}},{"./util":239,punycode:209,querystring:212}],239:[function(h,F,o){"use strict";F.exports={isString:function(m){return typeof m=="string"},isObject:function(m){return typeof m=="object"&&m!==null},isNull:function(m){return m===null},isNullOrUndefined:function(m){return m==null}}},{}],240:[function(h,F,o){(function(m){F.exports=a;function a(O,_){if(D("noDeprecation"))return O;var y=!1;function v(){if(!y){if(D("throwDeprecation"))throw new Error(_);D("traceDeprecation")?console.trace(_):console.warn(_),y=!0}return O.apply(this,arguments)}return v}function D(O){try{if(!m.localStorage)return!1}catch(y){return!1}var _=m.localStorage[O];return _==null?!1:String(_).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(h,F,o){typeof Object.create=="function"?F.exports=function(a,D){a.super_=D,a.prototype=Object.create(D.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})}:F.exports=function(a,D){a.super_=D;var O=function(){};O.prototype=D.prototype,a.prototype=new O,a.prototype.constructor=a}},{}],242:[function(h,F,o){F.exports=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"}},{}],243:[function(h,F,o){(function(m,a){var D=/%[sdj%]/g;o.format=function(U){if(!N(U)){for(var z=[],L=0;L<arguments.length;L++)z.push(y(arguments[L]));return z.join(" ")}for(var L=1,T=arguments,I=T.length,se=String(U).replace(D,function(xe){if(xe==="%%")return"%";if(L>=I)return xe;switch(xe){case"%s":return String(T[L++]);case"%d":return Number(T[L++]);case"%j":try{return JSON.stringify(T[L++])}catch(Ee){return"[Circular]"}default:return xe}}),me=T[L];L<I;me=T[++L])g(me)||!X(me)?se+=" "+me:se+=" "+y(me);return se},o.deprecate=function(U,z){if(w(a.process))return function(){return o.deprecate(U,z).apply(this,arguments)};if(m.noDeprecation===!0)return U;var L=!1;function T(){if(!L){if(m.throwDeprecation)throw new Error(z);m.traceDeprecation?console.trace(z):console.error(z),L=!0}return U.apply(this,arguments)}return T};var O={},_;o.debuglog=function(U){if(w(_)&&(_=m.env.NODE_DEBUG||""),U=U.toUpperCase(),!O[U])if(new RegExp("\\b"+U+"\\b","i").test(_)){var z=m.pid;O[U]=function(){var L=o.format.apply(o,arguments);console.error("%s %d: %s",U,z,L)}}else O[U]=function(){};return O[U]};function y(U,z){var L={seen:[],stylize:c};return arguments.length>=3&&(L.depth=arguments[2]),arguments.length>=4&&(L.colors=arguments[3]),b(z)?L.showHidden=z:z&&o._extend(L,z),w(L.showHidden)&&(L.showHidden=!1),w(L.depth)&&(L.depth=2),w(L.colors)&&(L.colors=!1),w(L.customInspect)&&(L.customInspect=!0),L.colors&&(L.stylize=v),s(L,U,L.depth)}o.inspect=y,y.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]},y.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function v(U,z){var L=y.styles[z];return L?"["+y.colors[L][0]+"m"+U+"["+y.colors[L][1]+"m":U}function c(U,z){return U}function l(U){var z={};return U.forEach(function(L,T){z[L]=!0}),z}function s(U,z,L){if(U.customInspect&&z&&G(z.inspect)&&z.inspect!==o.inspect&&!(z.constructor&&z.constructor.prototype===z)){var T=z.inspect(L,U);return N(T)||(T=s(U,T,L)),T}var I=r(U,z);if(I)return I;var se=Object.keys(z),me=l(se);if(U.showHidden&&(se=Object.getOwnPropertyNames(z)),H(z)&&(se.indexOf("message")>=0||se.indexOf("description")>=0))return d(z);if(se.length===0){if(G(z)){var xe=z.name?": "+z.name:"";return U.stylize("[Function"+xe+"]","special")}if(Y(z))return U.stylize(RegExp.prototype.toString.call(z),"regexp");if(P(z))return U.stylize(Date.prototype.toString.call(z),"date");if(H(z))return d(z)}var Ee="",Oe=!1,le=["{","}"];if(C(z)&&(Oe=!0,le=["[","]"]),G(z)){var ge=z.name?": "+z.name:"";Ee=" [Function"+ge+"]"}if(Y(z)&&(Ee=" "+RegExp.prototype.toString.call(z)),P(z)&&(Ee=" "+Date.prototype.toUTCString.call(z)),H(z)&&(Ee=" "+d(z)),se.length===0&&(!Oe||z.length==0))return le[0]+Ee+le[1];if(L<0)return Y(z)?U.stylize(RegExp.prototype.toString.call(z),"regexp"):U.stylize("[Object]","special");U.seen.push(z);var ye;return Oe?ye=u(U,z,L,me,se):ye=se.map(function(ee){return f(U,z,L,me,ee,Oe)}),U.seen.pop(),x(ye,Ee,le)}function r(U,z){if(w(z))return U.stylize("undefined","undefined");if(N(z)){var L="'"+JSON.stringify(z).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return U.stylize(L,"string")}if(A(z))return U.stylize(""+z,"number");if(b(z))return U.stylize(""+z,"boolean");if(g(z))return U.stylize("null","null")}function d(U){return"["+Error.prototype.toString.call(U)+"]"}function u(U,z,L,T,I){for(var se=[],me=0,xe=z.length;me<xe;++me)q(z,String(me))?se.push(f(U,z,L,T,String(me),!0)):se.push("");return I.forEach(function(Ee){Ee.match(/^\d+$/)||se.push(f(U,z,L,T,Ee,!0))}),se}function f(U,z,L,T,I,se){var me,xe,Ee;if(Ee=Object.getOwnPropertyDescriptor(z,I)||{value:z[I]},Ee.get?Ee.set?xe=U.stylize("[Getter/Setter]","special"):xe=U.stylize("[Getter]","special"):Ee.set&&(xe=U.stylize("[Setter]","special")),q(T,I)||(me="["+I+"]"),xe||(U.seen.indexOf(Ee.value)<0?(g(L)?xe=s(U,Ee.value,null):xe=s(U,Ee.value,L-1),xe.indexOf(`
|
|
|
`)>-1&&(se?xe=xe.split(`
|
|
|
`).map(function(Oe){return" "+Oe}).join(`
|
|
|
`).substr(2):xe=`
|
|
|
`+xe.split(`
|
|
|
`).map(function(Oe){return" "+Oe}).join(`
|
|
|
`))):xe=U.stylize("[Circular]","special")),w(me)){if(se&&I.match(/^\d+$/))return xe;me=JSON.stringify(""+I),me.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(me=me.substr(1,me.length-2),me=U.stylize(me,"name")):(me=me.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),me=U.stylize(me,"string"))}return me+": "+xe}function x(U,z,L){var T=0,I=U.reduce(function(se,me){return T++,me.indexOf(`
|
|
|
`)>=0&&T++,se+me.replace(/\u001b\[\d\d?m/g,"").length+1},0);return I>60?L[0]+(z===""?"":z+`
|
|
|
`)+" "+U.join(`,
|
|
|
`)+" "+L[1]:L[0]+z+" "+U.join(", ")+" "+L[1]}function C(U){return Array.isArray(U)}o.isArray=C;function b(U){return typeof U=="boolean"}o.isBoolean=b;function g(U){return U===null}o.isNull=g;function E(U){return U==null}o.isNullOrUndefined=E;function A(U){return typeof U=="number"}o.isNumber=A;function N(U){return typeof U=="string"}o.isString=N;function M(U){return typeof U=="symbol"}o.isSymbol=M;function w(U){return U===void 0}o.isUndefined=w;function Y(U){return X(U)&&he(U)==="[object RegExp]"}o.isRegExp=Y;function X(U){return typeof U=="object"&&U!==null}o.isObject=X;function P(U){return X(U)&&he(U)==="[object Date]"}o.isDate=P;function H(U){return X(U)&&(he(U)==="[object Error]"||U instanceof Error)}o.isError=H;function G(U){return typeof U=="function"}o.isFunction=G;function $(U){return U===null||typeof U=="boolean"||typeof U=="number"||typeof U=="string"||typeof U=="symbol"||typeof U=="undefined"}o.isPrimitive=$,o.isBuffer=h("./support/isBuffer");function he(U){return Object.prototype.toString.call(U)}function de(U){return U<10?"0"+U.toString(10):U.toString(10)}var J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function fe(){var U=new Date,z=[de(U.getHours()),de(U.getMinutes()),de(U.getSeconds())].join(":");return[U.getDate(),J[U.getMonth()],z].join(" ")}o.log=function(){console.log("%s - %s",fe(),o.format.apply(o,arguments))},o.inherits=h("inherits"),o._extend=function(U,z){if(!z||!X(z))return U;for(var L=Object.keys(z),T=L.length;T--;)U[L[T]]=z[L[T]];return U};function q(U,z){return Object.prototype.hasOwnProperty.call(U,z)}}).call(this,h("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(h,F,o){"use strict";(function(){"use strict";o.stripBOM=function(m){return m[0]==="\uFEFF"?m.substring(1):m}}).call(void 0)},{}],245:[function(h,F,o){"use strict";var m=h("babel-runtime/helpers/typeof"),a=_(m),D=h("babel-runtime/core-js/object/keys"),O=_(D);function _(y){return y&&y.__esModule?y:{default:y}}(function(){"use strict";var y,v,c,l,s,r={}.hasOwnProperty;y=h("xmlbuilder"),v=h("./defaults").defaults,l=function(u){return typeof u=="string"&&(u.indexOf("&")>=0||u.indexOf(">")>=0||u.indexOf("<")>=0)},s=function(u){return"<![CDATA["+c(u)+"]]>"},c=function(u){return u.replace("]]>","]]]]><![CDATA[>")},o.Builder=function(){function d(u){var f,x,C;this.options={},x=v["0.2"];for(f in x){if(!r.call(x,f))continue;C=x[f],this.options[f]=C}for(f in u){if(!r.call(u,f))continue;C=u[f],this.options[f]=C}}return d.prototype.buildObject=function(u){var f,x,C,b,g;return f=this.options.attrkey,x=this.options.charkey,(0,O.default)(u).length===1&&this.options.rootName===v["0.2"].rootName?(g=(0,O.default)(u)[0],u=u[g]):g=this.options.rootName,C=function(E){return function(A,N){var M,w,Y,X,P,H;if((typeof N=="undefined"?"undefined":(0,a.default)(N))!=="object")E.options.cdata&&l(N)?A.raw(s(N)):A.txt(N);else if(Array.isArray(N))for(X in N){if(!r.call(N,X))continue;w=N[X];for(P in w)Y=w[P],A=C(A.ele(P),Y).up()}else for(P in N){if(!r.call(N,P))continue;if(w=N[P],P===f){if((typeof w=="undefined"?"undefined":(0,a.default)(w))==="object")for(M in w)H=w[M],A=A.att(M,H)}else if(P===x)E.options.cdata&&l(w)?A=A.raw(s(w)):A=A.txt(w);else if(Array.isArray(w))for(X in w){if(!r.call(w,X))continue;Y=w[X],typeof Y=="string"?E.options.cdata&&l(Y)?A=A.ele(P).raw(s(Y)).up():A=A.ele(P,Y).up():A=C(A.ele(P),Y).up()}else(typeof w=="undefined"?"undefined":(0,a.default)(w))==="object"?A=C(A.ele(P),w).up():typeof w=="string"&&E.options.cdata&&l(w)?A=A.ele(P).raw(s(w)).up():(w==null&&(w=""),A=A.ele(P,w.toString()).up())}return A}}(this),b=y.create(g,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),C(b,u).end(this.options.renderOpts)},d}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(h,F,o){"use strict";(function(){o.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(h,F,o){"use strict";var m=h("babel-runtime/core-js/promise"),a=l(m),D=h("babel-runtime/core-js/object/get-own-property-names"),O=l(D),_=h("babel-runtime/core-js/object/keys"),y=l(_),v=h("babel-runtime/helpers/typeof"),c=l(v);function l(s){return s&&s.__esModule?s:{default:s}}(function(){"use strict";var s,r,d,u,f,x,C,b,g=function(M,w){return function(){return M.apply(w,arguments)}},E=function(M,w){for(var Y in w)A.call(w,Y)&&(M[Y]=w[Y]);function X(){this.constructor=M}return X.prototype=w.prototype,M.prototype=new X,M.__super__=w.prototype,M},A={}.hasOwnProperty;C=h("sax"),d=h("events"),s=h("./bom"),x=h("./processors"),b=h("timers").setImmediate,r=h("./defaults").defaults,u=function(M){return(typeof M=="undefined"?"undefined":(0,c.default)(M))==="object"&&M!=null&&(0,y.default)(M).length===0},f=function(M,w,Y){var X,P,H;for(X=0,P=M.length;X<P;X++)H=M[X],w=H(w,Y);return w},o.Parser=function(N){E(M,N);function M(w){this.parseStringPromise=g(this.parseStringPromise,this),this.parseString=g(this.parseString,this),this.reset=g(this.reset,this),this.assignOrPush=g(this.assignOrPush,this),this.processAsync=g(this.processAsync,this);var Y,X,P;if(!(this instanceof o.Parser))return new o.Parser(w);this.options={},X=r["0.2"];for(Y in X){if(!A.call(X,Y))continue;P=X[Y],this.options[Y]=P}for(Y in w){if(!A.call(w,Y))continue;P=w[Y],this.options[Y]=P}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(x.normalize)),this.reset()}return M.prototype.processAsync=function(){var w,Y;try{return this.remaining.length<=this.options.chunkSize?(w=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(w),this.saxParser.close()):(w=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(w),b(this.processAsync))}catch(X){if(Y=X,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(Y)}},M.prototype.assignOrPush=function(w,Y,X){return Y in w?(w[Y]instanceof Array||(w[Y]=[w[Y]]),w[Y].push(X)):this.options.explicitArray?w[Y]=[X]:w[Y]=X},M.prototype.reset=function(){var w,Y,X,P;return this.removeAllListeners(),this.saxParser=C.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(H){return function(G){if(H.saxParser.resume(),!H.saxParser.errThrown)return H.saxParser.errThrown=!0,H.emit("error",G)}}(this),this.saxParser.onend=function(H){return function(){if(!H.saxParser.ended)return H.saxParser.ended=!0,H.emit("end",H.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,P=[],w=this.options.attrkey,Y=this.options.charkey,this.saxParser.onopentag=function(H){return function(G){var $,he,de,J,fe;if(de={},de[Y]="",!H.options.ignoreAttrs){fe=G.attributes;for($ in fe){if(!A.call(fe,$))continue;!(w in de)&&!H.options.mergeAttrs&&(de[w]={}),he=H.options.attrValueProcessors?f(H.options.attrValueProcessors,G.attributes[$],$):G.attributes[$],J=H.options.attrNameProcessors?f(H.options.attrNameProcessors,$):$,H.options.mergeAttrs?H.assignOrPush(de,J,he):de[w][J]=he}}return de["#name"]=H.options.tagNameProcessors?f(H.options.tagNameProcessors,G.name):G.name,H.options.xmlns&&(de[H.options.xmlnskey]={uri:G.uri,local:G.local}),P.push(de)}}(this),this.saxParser.onclosetag=function(H){return function(){var G,$,he,de,J,fe,q,U,z,L;if(fe=P.pop(),J=fe["#name"],(!H.options.explicitChildren||!H.options.preserveChildrenOrder)&&delete fe["#name"],fe.cdata===!0&&(G=fe.cdata,delete fe.cdata),z=P[P.length-1],fe[Y].match(/^\s*$/)&&!G?($=fe[Y],delete fe[Y]):(H.options.trim&&(fe[Y]=fe[Y].trim()),H.options.normalize&&(fe[Y]=fe[Y].replace(/\s{2,}/g," ").trim()),fe[Y]=H.options.valueProcessors?f(H.options.valueProcessors,fe[Y],J):fe[Y],(0,y.default)(fe).length===1&&Y in fe&&!H.EXPLICIT_CHARKEY&&(fe=fe[Y])),u(fe)&&(fe=H.options.emptyTag!==""?H.options.emptyTag:$),H.options.validator!=null&&(L="/"+function(){var T,I,se;for(se=[],T=0,I=P.length;T<I;T++)de=P[T],se.push(de["#name"]);return se}().concat(J).join("/"),function(){var T;try{return fe=H.options.validator(L,z&&z[J],fe)}catch(I){return T=I,H.emit("error",T)}}()),H.options.explicitChildren&&!H.options.mergeAttrs&&(typeof fe=="undefined"?"undefined":(0,c.default)(fe))==="object"){if(!H.options.preserveChildrenOrder)de={},H.options.attrkey in fe&&(de[H.options.attrkey]=fe[H.options.attrkey],delete fe[H.options.attrkey]),!H.options.charsAsChildren&&H.options.charkey in fe&&(de[H.options.charkey]=fe[H.options.charkey],delete fe[H.options.charkey]),(0,O.default)(fe).length>0&&(de[H.options.childkey]=fe),fe=de;else if(z){z[H.options.childkey]=z[H.options.childkey]||[],q={};for(he in fe){if(!A.call(fe,he))continue;q[he]=fe[he]}z[H.options.childkey].push(q),delete fe["#name"],(0,y.default)(fe).length===1&&Y in fe&&!H.EXPLICIT_CHARKEY&&(fe=fe[Y])}}return P.length>0?H.assignOrPush(z,J,fe):(H.options.explicitRoot&&(U=fe,fe={},fe[J]=U),H.resultObject=fe,H.saxParser.ended=!0,H.emit("end",H.resultObject))}}(this),X=function(H){return function(G){var $,he;if(he=P[P.length-1],he)return he[Y]+=G,H.options.explicitChildren&&H.options.preserveChildrenOrder&&H.options.charsAsChildren&&(H.options.includeWhiteChars||G.replace(/\\n/g,"").trim()!=="")&&(he[H.options.childkey]=he[H.options.childkey]||[],$={"#name":"__text__"},$[Y]=G,H.options.normalize&&($[Y]=$[Y].replace(/\s{2,}/g," ").trim()),he[H.options.childkey].push($)),he}}(this),this.saxParser.ontext=X,this.saxParser.oncdata=function(H){return function(G){var $;if($=X(G),$)return $.cdata=!0}}(this)},M.prototype.parseString=function(w,Y){var X;Y!=null&&typeof Y=="function"&&(this.on("end",function(P){return this.reset(),Y(null,P)}),this.on("error",function(P){return this.reset(),Y(P)}));try{return w=w.toString(),w.trim()===""?(this.emit("end",null),!0):(w=s.stripBOM(w),this.options.async?(this.remaining=w,b(this.processAsync),this.saxParser):this.saxParser.write(w).close())}catch(P){if(X=P,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw X}else return this.emit("error",X),this.saxParser.errThrown=!0}},M.prototype.parseStringPromise=function(w){return new a.default(function(Y){return function(X,P){return Y.parseString(w,function(H,G){return H?P(H):X(G)})}}(this))},M}(d),o.parseString=function(N,M,w){var Y,X,P;return w!=null?(typeof w=="function"&&(Y=w),(typeof M=="undefined"?"undefined":(0,c.default)(M))==="object"&&(X=M)):(typeof M=="function"&&(Y=M),X={}),P=new o.Parser(X),P.parseString(N,Y)},o.parseStringPromise=function(N,M){var w,Y;return(typeof M=="undefined"?"undefined":(0,c.default)(M))==="object"&&(w=M),Y=new o.Parser(w),Y.parseStringPromise(N)}}).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(h,F,o){"use strict";(function(){"use strict";var m;m=new RegExp(/(?!xmlns)^.*:/),o.normalize=function(a){return a.toLowerCase()},o.firstCharLowerCase=function(a){return a.charAt(0).toLowerCase()+a.slice(1)},o.stripPrefix=function(a){return a.replace(m,"")},o.parseNumbers=function(a){return isNaN(a)||(a=a%1===0?parseInt(a,10):parseFloat(a)),a},o.parseBooleans=function(a){return/^(?:true|false)$/i.test(a)&&(a=a.toLowerCase()==="true"),a}}).call(void 0)},{}],249:[function(h,F,o){"use strict";(function(){"use strict";var m,a,D,O,_=function(c,l){for(var s in l)y.call(l,s)&&(c[s]=l[s]);function r(){this.constructor=c}return r.prototype=l.prototype,c.prototype=new r,c.__super__=l.prototype,c},y={}.hasOwnProperty;a=h("./defaults"),m=h("./builder"),D=h("./parser"),O=h("./processors"),o.defaults=a.defaults,o.processors=O,o.ValidationError=function(v){_(c,v);function c(l){this.message=l}return c}(Error),o.Builder=m.Builder,o.Parser=D.Parser,o.parseString=D.parseString,o.parseStringPromise=D.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(h,F,o){"use strict";(function(){F.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(h,F,o){"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(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/get-prototype-of"),a=v(m),D=h("babel-runtime/helpers/typeof"),O=v(D),_=h("babel-runtime/core-js/object/assign"),y=v(_);function v(c){return c&&c.__esModule?c:{default:c}}(function(){var c,l,s,r,d,u,f,x=[].slice,C={}.hasOwnProperty;c=function(){var g,E,A,N,M,w;if(w=arguments[0],M=2<=arguments.length?x.call(arguments,1):[],d(y.default))y.default.apply(null,arguments);else for(g=0,A=M.length;g<A;g++)if(N=M[g],N!=null)for(E in N){if(!C.call(N,E))continue;w[E]=N[E]}return w},d=function(g){return!!g&&Object.prototype.toString.call(g)==="[object Function]"},u=function(g){var E;return!!g&&((E=typeof g=="undefined"?"undefined":(0,O.default)(g))==="function"||E==="object")},s=function(g){return d(Array.isArray)?Array.isArray(g):Object.prototype.toString.call(g)==="[object Array]"},r=function(g){var E;if(s(g))return!g.length;for(E in g){if(!C.call(g,E))continue;return!1}return!0},f=function(g){var E,A;return u(g)&&(A=(0,a.default)(g))&&(E=A.constructor)&&typeof E=="function"&&E instanceof E&&Function.prototype.toString.call(E)===Function.prototype.toString.call(Object)},l=function(g){return d(g.valueOf)?g.valueOf():g},F.exports.assign=c,F.exports.isFunction=d,F.exports.isObject=u,F.exports.isArray=s,F.exports.isEmpty=r,F.exports.isPlainObject=f,F.exports.getValue=l}).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(h,F,o){"use strict";(function(){F.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/create"),a=D(m);function D(O){return O&&O.__esModule?O:{default:O}}(function(){var O,_,y;O=h("./NodeType"),y=h("./XMLNode"),F.exports=_=function(){function v(c,l,s){if(this.parent=c,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),l==null)throw new Error("Missing attribute name. "+this.debugInfo(l));this.name=this.stringify.name(l),this.value=this.stringify.attValue(s),this.type=O.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(v.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(v.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(v.prototype,"textContent",{get:function(){return this.value},set:function(l){return this.value=l||""}}),Object.defineProperty(v.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(v.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(v.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(v.prototype,"specified",{get:function(){return!0}}),v.prototype.clone=function(){return(0,a.default)(this)},v.prototype.toString=function(c){return this.options.writer.attribute(this,this.options.writer.filterOptions(c))},v.prototype.debugInfo=function(c){return c=c||this.name,c==null?"parent: <"+this.parent.name+">":"attribute: {"+c+"}, parent: <"+this.parent.name+">"},v.prototype.isEqualNode=function(c){return c.namespaceURI!==this.namespaceURI||(c.prefix!==this.prefix||c.localName!==this.localName)?!1:!(c.value!==this.value)},v}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/create"),a=D(m);function D(O){return O&&O.__esModule?O:{default:O}}(function(){var O,_,y,v=function(s,r){for(var d in r)c.call(r,d)&&(s[d]=r[d]);function u(){this.constructor=s}return u.prototype=r.prototype,s.prototype=new u,s.__super__=r.prototype,s},c={}.hasOwnProperty;O=h("./NodeType"),y=h("./XMLCharacterData"),F.exports=_=function(l){v(s,l);function s(r,d){if(s.__super__.constructor.call(this,r),d==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=O.CData,this.value=this.stringify.cdata(d)}return s.prototype.clone=function(){return(0,a.default)(this)},s.prototype.toString=function(r){return this.options.writer.cdata(this,this.options.writer.filterOptions(r))},s}(y)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/create"),a=D(m);function D(O){return O&&O.__esModule?O:{default:O}}(function(){var O,_,y=function(l,s){for(var r in s)v.call(s,r)&&(l[r]=s[r]);function d(){this.constructor=l}return d.prototype=s.prototype,l.prototype=new d,l.__super__=s.prototype,l},v={}.hasOwnProperty;_=h("./XMLNode"),F.exports=O=function(c){y(l,c);function l(s){l.__super__.constructor.call(this,s),this.value=""}return Object.defineProperty(l.prototype,"data",{get:function(){return this.value},set:function(r){return this.value=r||""}}),Object.defineProperty(l.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(l.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}}),l.prototype.clone=function(){return(0,a.default)(this)},l.prototype.substringData=function(s,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.appendData=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.insertData=function(s,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.deleteData=function(s,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.replaceData=function(s,r,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.isEqualNode=function(s){return l.__super__.isEqualNode.apply(this,arguments).isEqualNode(s)?!(s.data!==this.data):!1},l}(_)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/create"),a=D(m);function D(O){return O&&O.__esModule?O:{default:O}}(function(){var O,_,y,v=function(s,r){for(var d in r)c.call(r,d)&&(s[d]=r[d]);function u(){this.constructor=s}return u.prototype=r.prototype,s.prototype=new u,s.__super__=r.prototype,s},c={}.hasOwnProperty;O=h("./NodeType"),_=h("./XMLCharacterData"),F.exports=y=function(l){v(s,l);function s(r,d){if(s.__super__.constructor.call(this,r),d==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=O.Comment,this.value=this.stringify.comment(d)}return s.prototype.clone=function(){return(0,a.default)(this)},s.prototype.toString=function(r){return this.options.writer.comment(this,this.options.writer.filterOptions(r))},s}(_)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/keys"),a=_(m),D=h("babel-runtime/core-js/object/create"),O=_(D);function _(y){return y&&y.__esModule?y:{default:y}}(function(){var y,v,c;v=h("./XMLDOMErrorHandler"),c=h("./XMLDOMStringList"),F.exports=y=function(){function l(){var s;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new v,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=s=(0,O.default)(this.defaultParams)}return Object.defineProperty(l.prototype,"parameterNames",{get:function(){return new c((0,a.default)(this.defaultParams))}}),l.prototype.getParameter=function(s){return this.params.hasOwnProperty(s)?this.params[s]:null},l.prototype.canSetParameter=function(s,r){return!0},l.prototype.setParameter=function(s,r){return r!=null?this.params[s]=r:delete this.params[s]},l}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(h,F,o){"use strict";(function(){var m;F.exports=m=function(){function a(){}return a.prototype.handleError=function(D){throw new Error(D)},a}()}).call(void 0)},{}],260:[function(h,F,o){"use strict";(function(){var m;F.exports=m=function(){function a(){}return a.prototype.hasFeature=function(D,O){return!0},a.prototype.createDocumentType=function(D,O,_){throw new Error("This DOM method is not implemented.")},a.prototype.createDocument=function(D,O,_){throw new Error("This DOM method is not implemented.")},a.prototype.createHTMLDocument=function(D){throw new Error("This DOM method is not implemented.")},a.prototype.getFeature=function(D,O){throw new Error("This DOM method is not implemented.")},a}()}).call(void 0)},{}],261:[function(h,F,o){"use strict";(function(){var m;F.exports=m=function(){function a(D){this.arr=D||[]}return Object.defineProperty(a.prototype,"length",{get:function(){return this.arr.length}}),a.prototype.item=function(D){return this.arr[D]||null},a.prototype.contains=function(D){return this.arr.indexOf(D)!==-1},a}()}).call(void 0)},{}],262:[function(h,F,o){"use strict";(function(){var m,a,D,O=function(v,c){for(var l in c)_.call(c,l)&&(v[l]=c[l]);function s(){this.constructor=v}return s.prototype=c.prototype,v.prototype=new s,v.__super__=c.prototype,v},_={}.hasOwnProperty;D=h("./XMLNode"),m=h("./NodeType"),F.exports=a=function(y){O(v,y);function v(c,l,s,r,d,u){if(v.__super__.constructor.call(this,c),l==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(s==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(l));if(!r)throw new Error("Missing DTD attribute type. "+this.debugInfo(l));if(!d)throw new Error("Missing DTD attribute default. "+this.debugInfo(l));if(d.indexOf("#")!==0&&(d="#"+d),!d.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(l));if(u&&!d.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(l));this.elementName=this.stringify.name(l),this.type=m.AttributeDeclaration,this.attributeName=this.stringify.name(s),this.attributeType=this.stringify.dtdAttType(r),u&&(this.defaultValue=this.stringify.dtdAttDefault(u)),this.defaultValueType=d}return v.prototype.toString=function(c){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(c))},v}(D)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(h,F,o){"use strict";(function(){var m,a,D,O=function(v,c){for(var l in c)_.call(c,l)&&(v[l]=c[l]);function s(){this.constructor=v}return s.prototype=c.prototype,v.prototype=new s,v.__super__=c.prototype,v},_={}.hasOwnProperty;D=h("./XMLNode"),m=h("./NodeType"),F.exports=a=function(y){O(v,y);function v(c,l,s){if(v.__super__.constructor.call(this,c),l==null)throw new Error("Missing DTD element name. "+this.debugInfo());s||(s="(#PCDATA)"),Array.isArray(s)&&(s="("+s.join(",")+")"),this.name=this.stringify.name(l),this.type=m.ElementDeclaration,this.value=this.stringify.dtdElementValue(s)}return v.prototype.toString=function(c){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(c))},v}(D)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(h,F,o){"use strict";(function(){var m,a,D,O,_=function(c,l){for(var s in l)y.call(l,s)&&(c[s]=l[s]);function r(){this.constructor=c}return r.prototype=l.prototype,c.prototype=new r,c.__super__=l.prototype,c},y={}.hasOwnProperty;O=h("./Utility").isObject,D=h("./XMLNode"),m=h("./NodeType"),F.exports=a=function(v){_(c,v);function c(l,s,r,d){if(c.__super__.constructor.call(this,l),r==null)throw new Error("Missing DTD entity name. "+this.debugInfo(r));if(d==null)throw new Error("Missing DTD entity value. "+this.debugInfo(r));if(this.pe=!!s,this.name=this.stringify.name(r),this.type=m.EntityDeclaration,!O(d))this.value=this.stringify.dtdEntityValue(d),this.internal=!0;else{if(!d.pubID&&!d.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(r));if(d.pubID&&!d.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(r));if(this.internal=!1,d.pubID!=null&&(this.pubID=this.stringify.dtdPubID(d.pubID)),d.sysID!=null&&(this.sysID=this.stringify.dtdSysID(d.sysID)),d.nData!=null&&(this.nData=this.stringify.dtdNData(d.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(r))}}return Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(c.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return null}}),c.prototype.toString=function(l){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(l))},c}(D)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(h,F,o){"use strict";(function(){var m,a,D,O=function(v,c){for(var l in c)_.call(c,l)&&(v[l]=c[l]);function s(){this.constructor=v}return s.prototype=c.prototype,v.prototype=new s,v.__super__=c.prototype,v},_={}.hasOwnProperty;D=h("./XMLNode"),m=h("./NodeType"),F.exports=a=function(y){O(v,y);function v(c,l,s){if(v.__super__.constructor.call(this,c),l==null)throw new Error("Missing DTD notation name. "+this.debugInfo(l));if(!s.pubID&&!s.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(l));this.name=this.stringify.name(l),this.type=m.NotationDeclaration,s.pubID!=null&&(this.pubID=this.stringify.dtdPubID(s.pubID)),s.sysID!=null&&(this.sysID=this.stringify.dtdSysID(s.sysID))}return Object.defineProperty(v.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(v.prototype,"systemId",{get:function(){return this.sysID}}),v.prototype.toString=function(c){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(c))},v}(D)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(h,F,o){"use strict";(function(){var m,a,D,O,_=function(c,l){for(var s in l)y.call(l,s)&&(c[s]=l[s]);function r(){this.constructor=c}return r.prototype=l.prototype,c.prototype=new r,c.__super__=l.prototype,c},y={}.hasOwnProperty;O=h("./Utility").isObject,D=h("./XMLNode"),m=h("./NodeType"),F.exports=a=function(v){_(c,v);function c(l,s,r,d){var u;c.__super__.constructor.call(this,l),O(s)&&(u=s,s=u.version,r=u.encoding,d=u.standalone),s||(s="1.0"),this.type=m.Declaration,this.version=this.stringify.xmlVersion(s),r!=null&&(this.encoding=this.stringify.xmlEncoding(r)),d!=null&&(this.standalone=this.stringify.xmlStandalone(d))}return c.prototype.toString=function(l){return this.options.writer.declaration(this,this.options.writer.filterOptions(l))},c}(D)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(h,F,o){"use strict";(function(){var m,a,D,O,_,y,v,c,l,s=function(u,f){for(var x in f)r.call(f,x)&&(u[x]=f[x]);function C(){this.constructor=u}return C.prototype=f.prototype,u.prototype=new C,u.__super__=f.prototype,u},r={}.hasOwnProperty;l=h("./Utility").isObject,c=h("./XMLNode"),m=h("./NodeType"),a=h("./XMLDTDAttList"),O=h("./XMLDTDEntity"),D=h("./XMLDTDElement"),_=h("./XMLDTDNotation"),v=h("./XMLNamedNodeMap"),F.exports=y=function(d){s(u,d);function u(f,x,C){var b,g,E,A,N,M;if(u.__super__.constructor.call(this,f),this.type=m.DocType,f.children){for(A=f.children,g=0,E=A.length;g<E;g++)if(b=A[g],b.type===m.Element){this.name=b.name;break}}this.documentObject=f,l(x)&&(N=x,x=N.pubID,C=N.sysID),C==null&&(M=[x,C],C=M[0],x=M[1]),x!=null&&(this.pubID=this.stringify.dtdPubID(x)),C!=null&&(this.sysID=this.stringify.dtdSysID(C))}return Object.defineProperty(u.prototype,"entities",{get:function(){var x,C,b,g,E;for(g={},E=this.children,C=0,b=E.length;C<b;C++)x=E[C],x.type===m.EntityDeclaration&&!x.pe&&(g[x.name]=x);return new v(g)}}),Object.defineProperty(u.prototype,"notations",{get:function(){var x,C,b,g,E;for(g={},E=this.children,C=0,b=E.length;C<b;C++)x=E[C],x.type===m.NotationDeclaration&&(g[x.name]=x);return new v(g)}}),Object.defineProperty(u.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(u.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(u.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),u.prototype.element=function(f,x){var C;return C=new D(this,f,x),this.children.push(C),this},u.prototype.attList=function(f,x,C,b,g){var E;return E=new a(this,f,x,C,b,g),this.children.push(E),this},u.prototype.entity=function(f,x){var C;return C=new O(this,!1,f,x),this.children.push(C),this},u.prototype.pEntity=function(f,x){var C;return C=new O(this,!0,f,x),this.children.push(C),this},u.prototype.notation=function(f,x){var C;return C=new _(this,f,x),this.children.push(C),this},u.prototype.toString=function(f){return this.options.writer.docType(this,this.options.writer.filterOptions(f))},u.prototype.ele=function(f,x){return this.element(f,x)},u.prototype.att=function(f,x,C,b,g){return this.attList(f,x,C,b,g)},u.prototype.ent=function(f,x){return this.entity(f,x)},u.prototype.pent=function(f,x){return this.pEntity(f,x)},u.prototype.not=function(f,x){return this.notation(f,x)},u.prototype.up=function(){return this.root()||this.documentObject},u.prototype.isEqualNode=function(f){return u.__super__.isEqualNode.apply(this,arguments).isEqualNode(f)?f.name!==this.name||f.publicId!==this.publicId?!1:!(f.systemId!==this.systemId):!1},u}(c)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(h,F,o){"use strict";(function(){var m,a,D,O,_,y,v,c,l=function(d,u){for(var f in u)s.call(u,f)&&(d[f]=u[f]);function x(){this.constructor=d}return x.prototype=u.prototype,d.prototype=new x,d.__super__=u.prototype,d},s={}.hasOwnProperty;c=h("./Utility").isPlainObject,D=h("./XMLDOMImplementation"),a=h("./XMLDOMConfiguration"),_=h("./XMLNode"),m=h("./NodeType"),v=h("./XMLStringifier"),y=h("./XMLStringWriter"),F.exports=O=function(r){l(d,r);function d(u){d.__super__.constructor.call(this,null),this.name="#document",this.type=m.Document,this.documentURI=null,this.domConfig=new a,u||(u={}),u.writer||(u.writer=new y),this.options=u,this.stringify=new v(u)}return Object.defineProperty(d.prototype,"implementation",{value:new D}),Object.defineProperty(d.prototype,"doctype",{get:function(){var f,x,C,b;for(b=this.children,x=0,C=b.length;x<C;x++)if(f=b[x],f.type===m.DocType)return f;return null}}),Object.defineProperty(d.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(d.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(d.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(d.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===m.Declaration?this.children[0].encoding:null}}),Object.defineProperty(d.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===m.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(d.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===m.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(d.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(d.prototype,"origin",{get:function(){return null}}),Object.defineProperty(d.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(d.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(d.prototype,"contentType",{get:function(){return null}}),d.prototype.end=function(u){var f;return f={},u?c(u)&&(f=u,u=this.options.writer):u=this.options.writer,u.document(this,u.filterOptions(f))},d.prototype.toString=function(u){return this.options.writer.document(this,this.options.writer.filterOptions(u))},d.prototype.createElement=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.createTextNode=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.createComment=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.createCDATASection=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.createProcessingInstruction=function(u,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.createAttribute=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.createEntityReference=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.getElementsByTagName=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.importNode=function(u,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.createElementNS=function(u,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.createAttributeNS=function(u,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.getElementsByTagNameNS=function(u,f){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.getElementById=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.adoptNode=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.renameNode=function(u,f,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.getElementsByClassName=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.createEvent=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.createNodeIterator=function(u,f,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},d.prototype.createTreeWalker=function(u,f,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},d}(_)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(h,F,o){"use strict";(function(){var m,a,D,O,_,y,v,c,l,s,r,d,u,f,x,C,b,g,E,A,N,M,w,Y,X={}.hasOwnProperty;Y=h("./Utility"),M=Y.isObject,N=Y.isFunction,w=Y.isPlainObject,A=Y.getValue,m=h("./NodeType"),d=h("./XMLDocument"),f=h("./XMLElement"),O=h("./XMLCData"),_=h("./XMLComment"),C=h("./XMLRaw"),E=h("./XMLText"),x=h("./XMLProcessingInstruction"),s=h("./XMLDeclaration"),r=h("./XMLDocType"),y=h("./XMLDTDAttList"),c=h("./XMLDTDEntity"),v=h("./XMLDTDElement"),l=h("./XMLDTDNotation"),D=h("./XMLAttribute"),g=h("./XMLStringifier"),b=h("./XMLStringWriter"),a=h("./WriterState"),F.exports=u=function(){function P(H,G,$){var he;this.name="?xml",this.type=m.Document,H||(H={}),he={},H.writer?w(H.writer)&&(he=H.writer,H.writer=new b):H.writer=new b,this.options=H,this.writer=H.writer,this.writerOptions=this.writer.filterOptions(he),this.stringify=new g(H),this.onDataCallback=G||function(){},this.onEndCallback=$||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return P.prototype.createChildNode=function(H){var G,$,he,de,J,fe,q,U;switch(H.type){case m.CData:this.cdata(H.value);break;case m.Comment:this.comment(H.value);break;case m.Element:he={},q=H.attribs;for($ in q){if(!X.call(q,$))continue;G=q[$],he[$]=G.value}this.node(H.name,he);break;case m.Dummy:this.dummy();break;case m.Raw:this.raw(H.value);break;case m.Text:this.text(H.value);break;case m.ProcessingInstruction:this.instruction(H.target,H.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+H.constructor.name)}for(U=H.children,J=0,fe=U.length;J<fe;J++)de=U[J],this.createChildNode(de),de.type===m.Element&&this.up();return this},P.prototype.dummy=function(){return this},P.prototype.node=function(H,G,$){var he;if(H==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(H));return this.openCurrent(),H=A(H),G==null&&(G={}),G=A(G),M(G)||(he=[G,$],$=he[0],G=he[1]),this.currentNode=new f(this,H,G),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,$!=null&&this.text($),this},P.prototype.element=function(H,G,$){var he,de,J,fe,q,U;if(this.currentNode&&this.currentNode.type===m.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(H)||M(H)||N(H))for(fe=this.options.noValidation,this.options.noValidation=!0,U=new d(this.options).element("TEMP_ROOT"),U.element(H),this.options.noValidation=fe,q=U.children,de=0,J=q.length;de<J;de++)he=q[de],this.createChildNode(he),he.type===m.Element&&this.up();else this.node(H,G,$);return this},P.prototype.attribute=function(H,G){var $,he;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(H));if(H!=null&&(H=A(H)),M(H))for($ in H){if(!X.call(H,$))continue;he=H[$],this.attribute($,he)}else N(G)&&(G=G.apply()),this.options.keepNullAttributes&&G==null?this.currentNode.attribs[H]=new D(this,H,""):G!=null&&(this.currentNode.attribs[H]=new D(this,H,G));return this},P.prototype.text=function(H){var G;return this.openCurrent(),G=new E(this,H),this.onData(this.writer.text(G,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},P.prototype.cdata=function(H){var G;return this.openCurrent(),G=new O(this,H),this.onData(this.writer.cdata(G,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},P.prototype.comment=function(H){var G;return this.openCurrent(),G=new _(this,H),this.onData(this.writer.comment(G,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},P.prototype.raw=function(H){var G;return this.openCurrent(),G=new C(this,H),this.onData(this.writer.raw(G,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},P.prototype.instruction=function(H,G){var $,he,de,J,fe;if(this.openCurrent(),H!=null&&(H=A(H)),G!=null&&(G=A(G)),Array.isArray(H))for($=0,J=H.length;$<J;$++)he=H[$],this.instruction(he);else if(M(H))for(he in H){if(!X.call(H,he))continue;de=H[he],this.instruction(he,de)}else N(G)&&(G=G.apply()),fe=new x(this,H,G),this.onData(this.writer.processingInstruction(fe,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},P.prototype.declaration=function(H,G,$){var he;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return he=new s(this,H,G,$),this.onData(this.writer.declaration(he,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},P.prototype.doctype=function(H,G,$){if(this.openCurrent(),H==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,G,$),this.currentNode.rootNodeName=H,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},P.prototype.dtdElement=function(H,G){var $;return this.openCurrent(),$=new v(this,H,G),this.onData(this.writer.dtdElement($,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},P.prototype.attList=function(H,G,$,he,de){var J;return this.openCurrent(),J=new y(this,H,G,$,he,de),this.onData(this.writer.dtdAttList(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},P.prototype.entity=function(H,G){var $;return this.openCurrent(),$=new c(this,!1,H,G),this.onData(this.writer.dtdEntity($,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},P.prototype.pEntity=function(H,G){var $;return this.openCurrent(),$=new c(this,!0,H,G),this.onData(this.writer.dtdEntity($,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},P.prototype.notation=function(H,G){var $;return this.openCurrent(),$=new l(this,H,G),this.onData(this.writer.dtdNotation($,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},P.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},P.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},P.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},P.prototype.openNode=function(H){var G,$,he,de;if(!H.isOpen){if(!this.root&&this.currentLevel===0&&H.type===m.Element&&(this.root=H),$="",H.type===m.Element){this.writerOptions.state=a.OpenTag,$=this.writer.indent(H,this.writerOptions,this.currentLevel)+"<"+H.name,de=H.attribs;for(he in de){if(!X.call(de,he))continue;G=de[he],$+=this.writer.attribute(G,this.writerOptions,this.currentLevel)}$+=(H.children?">":"/>")+this.writer.endline(H,this.writerOptions,this.currentLevel),this.writerOptions.state=a.InsideTag}else this.writerOptions.state=a.OpenTag,$=this.writer.indent(H,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+H.rootNodeName,H.pubID&&H.sysID?$+=' PUBLIC "'+H.pubID+'" "'+H.sysID+'"':H.sysID&&($+=' SYSTEM "'+H.sysID+'"'),H.children?($+=" [",this.writerOptions.state=a.InsideTag):(this.writerOptions.state=a.CloseTag,$+=">"),$+=this.writer.endline(H,this.writerOptions,this.currentLevel);return this.onData($,this.currentLevel),H.isOpen=!0}},P.prototype.closeNode=function(H){var G;if(!H.isClosed)return G="",this.writerOptions.state=a.CloseTag,H.type===m.Element?G=this.writer.indent(H,this.writerOptions,this.currentLevel)+"</"+H.name+">"+this.writer.endline(H,this.writerOptions,this.currentLevel):G=this.writer.indent(H,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(H,this.writerOptions,this.currentLevel),this.writerOptions.state=a.None,this.onData(G,this.currentLevel),H.isClosed=!0},P.prototype.onData=function(H,G){return this.documentStarted=!0,this.onDataCallback(H,G+1)},P.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},P.prototype.debugInfo=function(H){return H==null?"":"node: <"+H+">"},P.prototype.ele=function(){return this.element.apply(this,arguments)},P.prototype.nod=function(H,G,$){return this.node(H,G,$)},P.prototype.txt=function(H){return this.text(H)},P.prototype.dat=function(H){return this.cdata(H)},P.prototype.com=function(H){return this.comment(H)},P.prototype.ins=function(H,G){return this.instruction(H,G)},P.prototype.dec=function(H,G,$){return this.declaration(H,G,$)},P.prototype.dtd=function(H,G,$){return this.doctype(H,G,$)},P.prototype.e=function(H,G,$){return this.element(H,G,$)},P.prototype.n=function(H,G,$){return this.node(H,G,$)},P.prototype.t=function(H){return this.text(H)},P.prototype.d=function(H){return this.cdata(H)},P.prototype.c=function(H){return this.comment(H)},P.prototype.r=function(H){return this.raw(H)},P.prototype.i=function(H,G){return this.instruction(H,G)},P.prototype.att=function(){return this.currentNode&&this.currentNode.type===m.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},P.prototype.a=function(){return this.currentNode&&this.currentNode.type===m.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},P.prototype.ent=function(H,G){return this.entity(H,G)},P.prototype.pent=function(H,G){return this.pEntity(H,G)},P.prototype.not=function(H,G){return this.notation(H,G)},P}()}).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(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/create"),a=D(m);function D(O){return O&&O.__esModule?O:{default:O}}(function(){var O,_,y,v=function(s,r){for(var d in r)c.call(r,d)&&(s[d]=r[d]);function u(){this.constructor=s}return u.prototype=r.prototype,s.prototype=new u,s.__super__=r.prototype,s},c={}.hasOwnProperty;y=h("./XMLNode"),O=h("./NodeType"),F.exports=_=function(l){v(s,l);function s(r){s.__super__.constructor.call(this,r),this.type=O.Dummy}return s.prototype.clone=function(){return(0,a.default)(this)},s.prototype.toString=function(r){return""},s}(y)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/create"),a=D(m);function D(O){return O&&O.__esModule?O:{default:O}}(function(){var O,_,y,v,c,l,s,r,d,u=function(C,b){for(var g in b)f.call(b,g)&&(C[g]=b[g]);function E(){this.constructor=C}return E.prototype=b.prototype,C.prototype=new E,C.__super__=b.prototype,C},f={}.hasOwnProperty;d=h("./Utility"),r=d.isObject,s=d.isFunction,l=d.getValue,c=h("./XMLNode"),O=h("./NodeType"),_=h("./XMLAttribute"),v=h("./XMLNamedNodeMap"),F.exports=y=function(x){u(C,x);function C(b,g,E){var A,N,M,w;if(C.__super__.constructor.call(this,b),g==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(g),this.type=O.Element,this.attribs={},this.schemaTypeInfo=null,E!=null&&this.attribute(E),b.type===O.Document&&(this.isRoot=!0,this.documentObject=b,b.rootObject=this,b.children)){for(w=b.children,N=0,M=w.length;N<M;N++)if(A=w[N],A.type===O.DocType){A.name=this.name;break}}}return Object.defineProperty(C.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(C.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(C.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(C.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(C.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(C.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(C.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(C.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new v(this.attribs)),this.attributeMap}}),C.prototype.clone=function(){var b,g,E,A;E=(0,a.default)(this),E.isRoot&&(E.documentObject=null),E.attribs={},A=this.attribs;for(g in A){if(!f.call(A,g))continue;b=A[g],E.attribs[g]=b.clone()}return E.children=[],this.children.forEach(function(N){var M;return M=N.clone(),M.parent=E,E.children.push(M)}),E},C.prototype.attribute=function(b,g){var E,A;if(b!=null&&(b=l(b)),r(b))for(E in b){if(!f.call(b,E))continue;A=b[E],this.attribute(E,A)}else s(g)&&(g=g.apply()),this.options.keepNullAttributes&&g==null?this.attribs[b]=new _(this,b,""):g!=null&&(this.attribs[b]=new _(this,b,g));return this},C.prototype.removeAttribute=function(b){var g,E,A;if(b==null)throw new Error("Missing attribute name. "+this.debugInfo());if(b=l(b),Array.isArray(b))for(E=0,A=b.length;E<A;E++)g=b[E],delete this.attribs[g];else delete this.attribs[b];return this},C.prototype.toString=function(b){return this.options.writer.element(this,this.options.writer.filterOptions(b))},C.prototype.att=function(b,g){return this.attribute(b,g)},C.prototype.a=function(b,g){return this.attribute(b,g)},C.prototype.getAttribute=function(b){return this.attribs.hasOwnProperty(b)?this.attribs[b].value:null},C.prototype.setAttribute=function(b,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.getAttributeNode=function(b){return this.attribs.hasOwnProperty(b)?this.attribs[b]:null},C.prototype.setAttributeNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.removeAttributeNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.getElementsByTagName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.getAttributeNS=function(b,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.setAttributeNS=function(b,g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.removeAttributeNS=function(b,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.getAttributeNodeNS=function(b,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.setAttributeNodeNS=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.getElementsByTagNameNS=function(b,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.hasAttribute=function(b){return this.attribs.hasOwnProperty(b)},C.prototype.hasAttributeNS=function(b,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.setIdAttribute=function(b,g){return this.attribs.hasOwnProperty(b)?this.attribs[b].isId:g},C.prototype.setIdAttributeNS=function(b,g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.setIdAttributeNode=function(b,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.getElementsByTagName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.getElementsByTagNameNS=function(b,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.getElementsByClassName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.isEqualNode=function(b){var g,E,A;if(!C.__super__.isEqualNode.apply(this,arguments).isEqualNode(b))return!1;if(b.namespaceURI!==this.namespaceURI)return!1;if(b.prefix!==this.prefix)return!1;if(b.localName!==this.localName)return!1;if(b.attribs.length!==this.attribs.length)return!1;for(g=E=0,A=this.attribs.length-1;0<=A?E<=A:E>=A;g=0<=A?++E:--E)if(!this.attribs[g].isEqualNode(b.attribs[g]))return!1;return!0},C}(c)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/keys"),a=D(m);function D(O){return O&&O.__esModule?O:{default:O}}(function(){var O;F.exports=O=function(){function _(y){this.nodes=y}return Object.defineProperty(_.prototype,"length",{get:function(){return(0,a.default)(this.nodes).length||0}}),_.prototype.clone=function(){return this.nodes=null},_.prototype.getNamedItem=function(y){return this.nodes[y]},_.prototype.setNamedItem=function(y){var v;return v=this.nodes[y.nodeName],this.nodes[y.nodeName]=y,v||null},_.prototype.removeNamedItem=function(y){var v;return v=this.nodes[y],delete this.nodes[y],v||null},_.prototype.item=function(y){return this.nodes[(0,a.default)(this.nodes)[y]]||null},_.prototype.getNamedItemNS=function(y,v){throw new Error("This DOM method is not implemented.")},_.prototype.setNamedItemNS=function(y){throw new Error("This DOM method is not implemented.")},_.prototype.removeNamedItemNS=function(y,v){throw new Error("This DOM method is not implemented.")},_}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(h,F,o){"use strict";(function(){var m,a,D,O,_,y,v,c,l,s,r,d,u,f,x,C,b,g,E,A={}.hasOwnProperty;E=h("./Utility"),g=E.isObject,b=E.isFunction,C=E.isEmpty,x=E.getValue,c=null,D=null,O=null,_=null,y=null,u=null,f=null,d=null,v=null,a=null,r=null,l=null,m=null,F.exports=s=function(){function N(M){this.parent=M,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,c||(c=h("./XMLElement"),D=h("./XMLCData"),O=h("./XMLComment"),_=h("./XMLDeclaration"),y=h("./XMLDocType"),u=h("./XMLRaw"),f=h("./XMLText"),d=h("./XMLProcessingInstruction"),v=h("./XMLDummy"),a=h("./NodeType"),r=h("./XMLNodeList"),l=h("./XMLNamedNodeMap"),m=h("./DocumentPosition"))}return Object.defineProperty(N.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(N.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(N.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(N.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(N.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new r(this.children)),this.childNodeList}}),Object.defineProperty(N.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(N.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(N.prototype,"previousSibling",{get:function(){var w;return w=this.parent.children.indexOf(this),this.parent.children[w-1]||null}}),Object.defineProperty(N.prototype,"nextSibling",{get:function(){var w;return w=this.parent.children.indexOf(this),this.parent.children[w+1]||null}}),Object.defineProperty(N.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(N.prototype,"textContent",{get:function(){var w,Y,X,P,H;if(this.nodeType===a.Element||this.nodeType===a.DocumentFragment){for(H="",P=this.children,Y=0,X=P.length;Y<X;Y++)w=P[Y],w.textContent&&(H+=w.textContent);return H}else return null},set:function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),N.prototype.setParent=function(M){var w,Y,X,P,H;for(this.parent=M,M&&(this.options=M.options,this.stringify=M.stringify),P=this.children,H=[],Y=0,X=P.length;Y<X;Y++)w=P[Y],H.push(w.setParent(this));return H},N.prototype.element=function(M,w,Y){var X,P,H,G,$,he,de,J,fe,q,U;if(he=null,w===null&&Y==null&&(fe=[{},null],w=fe[0],Y=fe[1]),w==null&&(w={}),w=x(w),g(w)||(q=[w,Y],Y=q[0],w=q[1]),M!=null&&(M=x(M)),Array.isArray(M))for(H=0,de=M.length;H<de;H++)P=M[H],he=this.element(P);else if(b(M))he=this.element(M.apply());else if(g(M))for($ in M){if(!A.call(M,$))continue;if(U=M[$],b(U)&&(U=U.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&$.indexOf(this.stringify.convertAttKey)===0)he=this.attribute($.substr(this.stringify.convertAttKey.length),U);else if(!this.options.separateArrayItems&&Array.isArray(U)&&C(U))he=this.dummy();else if(g(U)&&C(U))he=this.element($);else if(!this.options.keepNullNodes&&U==null)he=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(U))for(G=0,J=U.length;G<J;G++)P=U[G],X={},X[$]=P,he=this.element(X);else g(U)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&$.indexOf(this.stringify.convertTextKey)===0?he=this.element(U):(he=this.element($),he.element(U)):he=this.element($,U)}else!this.options.keepNullNodes&&Y===null?he=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&M.indexOf(this.stringify.convertTextKey)===0?he=this.text(Y):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&M.indexOf(this.stringify.convertCDataKey)===0?he=this.cdata(Y):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&M.indexOf(this.stringify.convertCommentKey)===0?he=this.comment(Y):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&M.indexOf(this.stringify.convertRawKey)===0?he=this.raw(Y):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&M.indexOf(this.stringify.convertPIKey)===0?he=this.instruction(M.substr(this.stringify.convertPIKey.length),Y):he=this.node(M,w,Y);if(he==null)throw new Error("Could not create any elements with: "+M+". "+this.debugInfo());return he},N.prototype.insertBefore=function(M,w,Y){var X,P,H,G,$;if(M!=null?M.type:void 0)return H=M,G=w,H.setParent(this),G?(P=children.indexOf(G),$=children.splice(P),children.push(H),Array.prototype.push.apply(children,$)):children.push(H),H;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(M));return P=this.parent.children.indexOf(this),$=this.parent.children.splice(P),X=this.parent.element(M,w,Y),Array.prototype.push.apply(this.parent.children,$),X},N.prototype.insertAfter=function(M,w,Y){var X,P,H;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(M));return P=this.parent.children.indexOf(this),H=this.parent.children.splice(P+1),X=this.parent.element(M,w,Y),Array.prototype.push.apply(this.parent.children,H),X},N.prototype.remove=function(){var M,w;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return M=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[M,M-M+1].concat(w=[])),this.parent},N.prototype.node=function(M,w,Y){var X,P;return M!=null&&(M=x(M)),w||(w={}),w=x(w),g(w)||(P=[w,Y],Y=P[0],w=P[1]),X=new c(this,M,w),Y!=null&&X.text(Y),this.children.push(X),X},N.prototype.text=function(M){var w;return g(M)&&this.element(M),w=new f(this,M),this.children.push(w),this},N.prototype.cdata=function(M){var w;return w=new D(this,M),this.children.push(w),this},N.prototype.comment=function(M){var w;return w=new O(this,M),this.children.push(w),this},N.prototype.commentBefore=function(M){var w,Y,X;return Y=this.parent.children.indexOf(this),X=this.parent.children.splice(Y),w=this.parent.comment(M),Array.prototype.push.apply(this.parent.children,X),this},N.prototype.commentAfter=function(M){var w,Y,X;return Y=this.parent.children.indexOf(this),X=this.parent.children.splice(Y+1),w=this.parent.comment(M),Array.prototype.push.apply(this.parent.children,X),this},N.prototype.raw=function(M){var w;return w=new u(this,M),this.children.push(w),this},N.prototype.dummy=function(){var M;return M=new v(this),M},N.prototype.instruction=function(M,w){var Y,X,P,H,G;if(M!=null&&(M=x(M)),w!=null&&(w=x(w)),Array.isArray(M))for(H=0,G=M.length;H<G;H++)Y=M[H],this.instruction(Y);else if(g(M))for(Y in M){if(!A.call(M,Y))continue;X=M[Y],this.instruction(Y,X)}else b(w)&&(w=w.apply()),P=new d(this,M,w),this.children.push(P);return this},N.prototype.instructionBefore=function(M,w){var Y,X,P;return X=this.parent.children.indexOf(this),P=this.parent.children.splice(X),Y=this.parent.instruction(M,w),Array.prototype.push.apply(this.parent.children,P),this},N.prototype.instructionAfter=function(M,w){var Y,X,P;return X=this.parent.children.indexOf(this),P=this.parent.children.splice(X+1),Y=this.parent.instruction(M,w),Array.prototype.push.apply(this.parent.children,P),this},N.prototype.declaration=function(M,w,Y){var X,P;return X=this.document(),P=new _(X,M,w,Y),X.children.length===0?X.children.unshift(P):X.children[0].type===a.Declaration?X.children[0]=P:X.children.unshift(P),X.root()||X},N.prototype.dtd=function(M,w){var Y,X,P,H,G,$,he,de,J,fe;for(X=this.document(),P=new y(X,M,w),J=X.children,H=G=0,he=J.length;G<he;H=++G)if(Y=J[H],Y.type===a.DocType)return X.children[H]=P,P;for(fe=X.children,H=$=0,de=fe.length;$<de;H=++$)if(Y=fe[H],Y.isRoot)return X.children.splice(H,0,P),P;return X.children.push(P),P},N.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},N.prototype.root=function(){var M;for(M=this;M;){if(M.type===a.Document)return M.rootObject;if(M.isRoot)return M;M=M.parent}},N.prototype.document=function(){var M;for(M=this;M;){if(M.type===a.Document)return M;M=M.parent}},N.prototype.end=function(M){return this.document().end(M)},N.prototype.prev=function(){var M;if(M=this.parent.children.indexOf(this),M<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[M-1]},N.prototype.next=function(){var M;if(M=this.parent.children.indexOf(this),M===-1||M===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[M+1]},N.prototype.importDocument=function(M){var w;return w=M.root().clone(),w.parent=this,w.isRoot=!1,this.children.push(w),this},N.prototype.debugInfo=function(M){var w,Y;return M=M||this.name,M==null&&!((w=this.parent)!=null?w.name:void 0)?"":M==null?"parent: <"+this.parent.name+">":((Y=this.parent)!=null?Y.name:void 0)?"node: <"+M+">, parent: <"+this.parent.name+">":"node: <"+M+">"},N.prototype.ele=function(M,w,Y){return this.element(M,w,Y)},N.prototype.nod=function(M,w,Y){return this.node(M,w,Y)},N.prototype.txt=function(M){return this.text(M)},N.prototype.dat=function(M){return this.cdata(M)},N.prototype.com=function(M){return this.comment(M)},N.prototype.ins=function(M,w){return this.instruction(M,w)},N.prototype.doc=function(){return this.document()},N.prototype.dec=function(M,w,Y){return this.declaration(M,w,Y)},N.prototype.e=function(M,w,Y){return this.element(M,w,Y)},N.prototype.n=function(M,w,Y){return this.node(M,w,Y)},N.prototype.t=function(M){return this.text(M)},N.prototype.d=function(M){return this.cdata(M)},N.prototype.c=function(M){return this.comment(M)},N.prototype.r=function(M){return this.raw(M)},N.prototype.i=function(M,w){return this.instruction(M,w)},N.prototype.u=function(){return this.up()},N.prototype.importXMLBuilder=function(M){return this.importDocument(M)},N.prototype.replaceChild=function(M,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},N.prototype.removeChild=function(M){throw new Error("This DOM method is not implemented."+this.debugInfo())},N.prototype.appendChild=function(M){throw new Error("This DOM method is not implemented."+this.debugInfo())},N.prototype.hasChildNodes=function(){return this.children.length!==0},N.prototype.cloneNode=function(M){throw new Error("This DOM method is not implemented."+this.debugInfo())},N.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},N.prototype.isSupported=function(M,w){return!0},N.prototype.hasAttributes=function(){return this.attribs.length!==0},N.prototype.compareDocumentPosition=function(M){var w,Y;return w=this,w===M?0:this.document()!==M.document()?(Y=m.Disconnected|m.ImplementationSpecific,Math.random()<.5?Y|=m.Preceding:Y|=m.Following,Y):w.isAncestor(M)?m.Contains|m.Preceding:w.isDescendant(M)?m.Contains|m.Following:w.isPreceding(M)?m.Preceding:m.Following},N.prototype.isSameNode=function(M){throw new Error("This DOM method is not implemented."+this.debugInfo())},N.prototype.lookupPrefix=function(M){throw new Error("This DOM method is not implemented."+this.debugInfo())},N.prototype.isDefaultNamespace=function(M){throw new Error("This DOM method is not implemented."+this.debugInfo())},N.prototype.lookupNamespaceURI=function(M){throw new Error("This DOM method is not implemented."+this.debugInfo())},N.prototype.isEqualNode=function(M){var w,Y,X;if(M.nodeType!==this.nodeType)return!1;if(M.children.length!==this.children.length)return!1;for(w=Y=0,X=this.children.length-1;0<=X?Y<=X:Y>=X;w=0<=X?++Y:--Y)if(!this.children[w].isEqualNode(M.children[w]))return!1;return!0},N.prototype.getFeature=function(M,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},N.prototype.setUserData=function(M,w,Y){throw new Error("This DOM method is not implemented."+this.debugInfo())},N.prototype.getUserData=function(M){throw new Error("This DOM method is not implemented."+this.debugInfo())},N.prototype.contains=function(M){return M?M===this||this.isDescendant(M):!1},N.prototype.isDescendant=function(M){var w,Y,X,P,H;for(H=this.children,X=0,P=H.length;X<P;X++){if(w=H[X],M===w)return!0;if(Y=w.isDescendant(M),Y)return!0}return!1},N.prototype.isAncestor=function(M){return M.isDescendant(this)},N.prototype.isPreceding=function(M){var w,Y;return w=this.treePosition(M),Y=this.treePosition(this),w===-1||Y===-1?!1:w<Y},N.prototype.isFollowing=function(M){var w,Y;return w=this.treePosition(M),Y=this.treePosition(this),w===-1||Y===-1?!1:w>Y},N.prototype.treePosition=function(M){var w,Y;return Y=0,w=!1,this.foreachTreeNode(this.document(),function(X){if(Y++,!w&&X===M)return w=!0}),w?Y:-1},N.prototype.foreachTreeNode=function(M,w){var Y,X,P,H,G;for(M||(M=this.document()),H=M.children,X=0,P=H.length;X<P;X++){if(Y=H[X],G=w(Y))return G;if(G=this.foreachTreeNode(Y,w),G)return G}},N}()}).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(h,F,o){"use strict";(function(){var m;F.exports=m=function(){function a(D){this.nodes=D}return Object.defineProperty(a.prototype,"length",{get:function(){return this.nodes.length||0}}),a.prototype.clone=function(){return this.nodes=null},a.prototype.item=function(D){return this.nodes[D]||null},a}()}).call(void 0)},{}],275:[function(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/create"),a=D(m);function D(O){return O&&O.__esModule?O:{default:O}}(function(){var O,_,y,v=function(s,r){for(var d in r)c.call(r,d)&&(s[d]=r[d]);function u(){this.constructor=s}return u.prototype=r.prototype,s.prototype=new u,s.__super__=r.prototype,s},c={}.hasOwnProperty;O=h("./NodeType"),_=h("./XMLCharacterData"),F.exports=y=function(l){v(s,l);function s(r,d,u){if(s.__super__.constructor.call(this,r),d==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=O.ProcessingInstruction,this.target=this.stringify.insTarget(d),this.name=this.target,u&&(this.value=this.stringify.insValue(u))}return s.prototype.clone=function(){return(0,a.default)(this)},s.prototype.toString=function(r){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(r))},s.prototype.isEqualNode=function(r){return s.__super__.isEqualNode.apply(this,arguments).isEqualNode(r)?!(r.target!==this.target):!1},s}(_)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/create"),a=D(m);function D(O){return O&&O.__esModule?O:{default:O}}(function(){var O,_,y,v=function(s,r){for(var d in r)c.call(r,d)&&(s[d]=r[d]);function u(){this.constructor=s}return u.prototype=r.prototype,s.prototype=new u,s.__super__=r.prototype,s},c={}.hasOwnProperty;O=h("./NodeType"),_=h("./XMLNode"),F.exports=y=function(l){v(s,l);function s(r,d){if(s.__super__.constructor.call(this,r),d==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=O.Raw,this.value=this.stringify.raw(d)}return s.prototype.clone=function(){return(0,a.default)(this)},s.prototype.toString=function(r){return this.options.writer.raw(this,this.options.writer.filterOptions(r))},s}(_)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(h,F,o){"use strict";(function(){var m,a,D,O,_=function(c,l){for(var s in l)y.call(l,s)&&(c[s]=l[s]);function r(){this.constructor=c}return r.prototype=l.prototype,c.prototype=new r,c.__super__=l.prototype,c},y={}.hasOwnProperty;m=h("./NodeType"),O=h("./XMLWriterBase"),a=h("./WriterState"),F.exports=D=function(v){_(c,v);function c(l,s){this.stream=l,c.__super__.constructor.call(this,s)}return c.prototype.endline=function(l,s,r){return l.isLastRootNode&&s.state===a.CloseTag?"":c.__super__.endline.call(this,l,s,r)},c.prototype.document=function(l,s){var r,d,u,f,x,C,b,g,E;for(b=l.children,d=u=0,x=b.length;u<x;d=++u)r=b[d],r.isLastRootNode=d===l.children.length-1;for(s=this.filterOptions(s),g=l.children,E=[],f=0,C=g.length;f<C;f++)r=g[f],E.push(this.writeChildNode(r,s,0));return E},c.prototype.attribute=function(l,s,r){return this.stream.write(c.__super__.attribute.call(this,l,s,r))},c.prototype.cdata=function(l,s,r){return this.stream.write(c.__super__.cdata.call(this,l,s,r))},c.prototype.comment=function(l,s,r){return this.stream.write(c.__super__.comment.call(this,l,s,r))},c.prototype.declaration=function(l,s,r){return this.stream.write(c.__super__.declaration.call(this,l,s,r))},c.prototype.docType=function(l,s,r){var d,u,f,x;if(r||(r=0),this.openNode(l,s,r),s.state=a.OpenTag,this.stream.write(this.indent(l,s,r)),this.stream.write("<!DOCTYPE "+l.root().name),l.pubID&&l.sysID?this.stream.write(' PUBLIC "'+l.pubID+'" "'+l.sysID+'"'):l.sysID&&this.stream.write(' SYSTEM "'+l.sysID+'"'),l.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(l,s,r)),s.state=a.InsideTag,x=l.children,u=0,f=x.length;u<f;u++)d=x[u],this.writeChildNode(d,s,r+1);s.state=a.CloseTag,this.stream.write("]")}return s.state=a.CloseTag,this.stream.write(s.spaceBeforeSlash+">"),this.stream.write(this.endline(l,s,r)),s.state=a.None,this.closeNode(l,s,r)},c.prototype.element=function(l,s,r){var d,u,f,x,C,b,g,E,A,N;r||(r=0),this.openNode(l,s,r),s.state=a.OpenTag,this.stream.write(this.indent(l,s,r)+"<"+l.name),A=l.attribs;for(g in A){if(!y.call(A,g))continue;d=A[g],this.attribute(d,s,r)}if(f=l.children.length,x=f===0?null:l.children[0],f===0||l.children.every(function(M){return(M.type===m.Text||M.type===m.Raw)&&M.value===""}))s.allowEmpty?(this.stream.write(">"),s.state=a.CloseTag,this.stream.write("</"+l.name+">")):(s.state=a.CloseTag,this.stream.write(s.spaceBeforeSlash+"/>"));else if(s.pretty&&f===1&&(x.type===m.Text||x.type===m.Raw)&&x.value!=null)this.stream.write(">"),s.state=a.InsideTag,s.suppressPrettyCount++,E=!0,this.writeChildNode(x,s,r+1),s.suppressPrettyCount--,E=!1,s.state=a.CloseTag,this.stream.write("</"+l.name+">");else{for(this.stream.write(">"+this.endline(l,s,r)),s.state=a.InsideTag,N=l.children,C=0,b=N.length;C<b;C++)u=N[C],this.writeChildNode(u,s,r+1);s.state=a.CloseTag,this.stream.write(this.indent(l,s,r)+"</"+l.name+">")}return this.stream.write(this.endline(l,s,r)),s.state=a.None,this.closeNode(l,s,r)},c.prototype.processingInstruction=function(l,s,r){return this.stream.write(c.__super__.processingInstruction.call(this,l,s,r))},c.prototype.raw=function(l,s,r){return this.stream.write(c.__super__.raw.call(this,l,s,r))},c.prototype.text=function(l,s,r){return this.stream.write(c.__super__.text.call(this,l,s,r))},c.prototype.dtdAttList=function(l,s,r){return this.stream.write(c.__super__.dtdAttList.call(this,l,s,r))},c.prototype.dtdElement=function(l,s,r){return this.stream.write(c.__super__.dtdElement.call(this,l,s,r))},c.prototype.dtdEntity=function(l,s,r){return this.stream.write(c.__super__.dtdEntity.call(this,l,s,r))},c.prototype.dtdNotation=function(l,s,r){return this.stream.write(c.__super__.dtdNotation.call(this,l,s,r))},c}(O)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(h,F,o){"use strict";(function(){var m,a,D=function(y,v){for(var c in v)O.call(v,c)&&(y[c]=v[c]);function l(){this.constructor=y}return l.prototype=v.prototype,y.prototype=new l,y.__super__=v.prototype,y},O={}.hasOwnProperty;a=h("./XMLWriterBase"),F.exports=m=function(_){D(y,_);function y(v){y.__super__.constructor.call(this,v)}return y.prototype.document=function(v,c){var l,s,r,d,u;for(c=this.filterOptions(c),d="",u=v.children,s=0,r=u.length;s<r;s++)l=u[s],d+=this.writeChildNode(l,c,0);return c.pretty&&d.slice(-c.newline.length)===c.newline&&(d=d.slice(0,-c.newline.length)),d},y}(a)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(h,F,o){"use strict";(function(){var m,a=function(_,y){return function(){return _.apply(y,arguments)}},D={}.hasOwnProperty;F.exports=m=function(){function O(_){this.assertLegalName=a(this.assertLegalName,this),this.assertLegalChar=a(this.assertLegalChar,this);var y,v,c;_||(_={}),this.options=_,this.options.version||(this.options.version="1.0"),v=_.stringify||{};for(y in v){if(!D.call(v,y))continue;c=v[y],this[y]=c}}return O.prototype.name=function(_){return this.options.noValidation?_:this.assertLegalName(""+_||"")},O.prototype.text=function(_){return this.options.noValidation?_:this.assertLegalChar(this.textEscape(""+_||""))},O.prototype.cdata=function(_){return this.options.noValidation?_:(_=""+_||"",_=_.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(_))},O.prototype.comment=function(_){if(this.options.noValidation)return _;if(_=""+_||"",_.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+_);return this.assertLegalChar(_)},O.prototype.raw=function(_){return this.options.noValidation?_:""+_||""},O.prototype.attValue=function(_){return this.options.noValidation?_:this.assertLegalChar(this.attEscape(_=""+_||""))},O.prototype.insTarget=function(_){return this.options.noValidation?_:this.assertLegalChar(""+_||"")},O.prototype.insValue=function(_){if(this.options.noValidation)return _;if(_=""+_||"",_.match(/\?>/))throw new Error("Invalid processing instruction value: "+_);return this.assertLegalChar(_)},O.prototype.xmlVersion=function(_){if(this.options.noValidation)return _;if(_=""+_||"",!_.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+_);return _},O.prototype.xmlEncoding=function(_){if(this.options.noValidation)return _;if(_=""+_||"",!_.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+_);return this.assertLegalChar(_)},O.prototype.xmlStandalone=function(_){return this.options.noValidation?_:_?"yes":"no"},O.prototype.dtdPubID=function(_){return this.options.noValidation?_:this.assertLegalChar(""+_||"")},O.prototype.dtdSysID=function(_){return this.options.noValidation?_:this.assertLegalChar(""+_||"")},O.prototype.dtdElementValue=function(_){return this.options.noValidation?_:this.assertLegalChar(""+_||"")},O.prototype.dtdAttType=function(_){return this.options.noValidation?_:this.assertLegalChar(""+_||"")},O.prototype.dtdAttDefault=function(_){return this.options.noValidation?_:this.assertLegalChar(""+_||"")},O.prototype.dtdEntityValue=function(_){return this.options.noValidation?_:this.assertLegalChar(""+_||"")},O.prototype.dtdNData=function(_){return this.options.noValidation?_:this.assertLegalChar(""+_||"")},O.prototype.convertAttKey="@",O.prototype.convertPIKey="?",O.prototype.convertTextKey="#text",O.prototype.convertCDataKey="#cdata",O.prototype.convertCommentKey="#comment",O.prototype.convertRawKey="#raw",O.prototype.assertLegalChar=function(_){var y,v;if(this.options.noValidation)return _;if(y="",this.options.version==="1.0"){if(y=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,v=_.match(y))throw new Error("Invalid character in string: "+_+" at index "+v.index)}else if(this.options.version==="1.1"&&(y=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,v=_.match(y)))throw new Error("Invalid character in string: "+_+" at index "+v.index);return _},O.prototype.assertLegalName=function(_){var y;if(this.options.noValidation)return _;if(this.assertLegalChar(_),y=/^([: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])*$/,!_.match(y))throw new Error("Invalid character in name");return _},O.prototype.textEscape=function(_){var y;return this.options.noValidation?_:(y=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,_.replace(y,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},O.prototype.attEscape=function(_){var y;return this.options.noValidation?_:(y=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,_.replace(y,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},O}()}).call(void 0)},{}],280:[function(h,F,o){"use strict";var m=h("babel-runtime/core-js/object/create"),a=D(m);function D(O){return O&&O.__esModule?O:{default:O}}(function(){var O,_,y,v=function(s,r){for(var d in r)c.call(r,d)&&(s[d]=r[d]);function u(){this.constructor=s}return u.prototype=r.prototype,s.prototype=new u,s.__super__=r.prototype,s},c={}.hasOwnProperty;O=h("./NodeType"),_=h("./XMLCharacterData"),F.exports=y=function(l){v(s,l);function s(r,d){if(s.__super__.constructor.call(this,r),d==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=O.Text,this.value=this.stringify.text(d)}return Object.defineProperty(s.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"wholeText",{get:function(){var d,u,f;for(f="",u=this.previousSibling;u;)f=u.data+f,u=u.previousSibling;for(f+=this.data,d=this.nextSibling;d;)f=f+d.data,d=d.nextSibling;return f}}),s.prototype.clone=function(){return(0,a.default)(this)},s.prototype.toString=function(r){return this.options.writer.text(this,this.options.writer.filterOptions(r))},s.prototype.splitText=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.replaceWholeText=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},s}(_)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(h,F,o){"use strict";(function(){var m,a,D,O,_,y,v,c,l,s,r,d,u,f,x,C,b,g={}.hasOwnProperty;b=h("./Utility").assign,m=h("./NodeType"),l=h("./XMLDeclaration"),s=h("./XMLDocType"),D=h("./XMLCData"),O=h("./XMLComment"),d=h("./XMLElement"),f=h("./XMLRaw"),x=h("./XMLText"),u=h("./XMLProcessingInstruction"),r=h("./XMLDummy"),_=h("./XMLDTDAttList"),y=h("./XMLDTDElement"),v=h("./XMLDTDEntity"),c=h("./XMLDTDNotation"),a=h("./WriterState"),F.exports=C=function(){function E(A){var N,M,w;A||(A={}),this.options=A,M=A.writer||{};for(N in M){if(!g.call(M,N))continue;w=M[N],this["_"+N]=this[N],this[N]=w}}return E.prototype.filterOptions=function(A){var N,M,w,Y,X,P,H,G;return A||(A={}),A=b({},this.options,A),N={writer:this},N.pretty=A.pretty||!1,N.allowEmpty=A.allowEmpty||!1,N.indent=(M=A.indent)!=null?M:" ",N.newline=(w=A.newline)!=null?w:`
|
|
|
`,N.offset=(Y=A.offset)!=null?Y:0,N.dontPrettyTextNodes=(X=(P=A.dontPrettyTextNodes)!=null?P:A.dontprettytextnodes)!=null?X:0,N.spaceBeforeSlash=(H=(G=A.spaceBeforeSlash)!=null?G:A.spacebeforeslash)!=null?H:"",N.spaceBeforeSlash===!0&&(N.spaceBeforeSlash=" "),N.suppressPrettyCount=0,N.user={},N.state=a.None,N},E.prototype.indent=function(A,N,M){var w;return!N.pretty||N.suppressPrettyCount?"":N.pretty&&(w=(M||0)+N.offset+1,w>0)?new Array(w).join(N.indent):""},E.prototype.endline=function(A,N,M){return!N.pretty||N.suppressPrettyCount?"":N.newline},E.prototype.attribute=function(A,N,M){var w;return this.openAttribute(A,N,M),w=" "+A.name+'="'+A.value+'"',this.closeAttribute(A,N,M),w},E.prototype.cdata=function(A,N,M){var w;return this.openNode(A,N,M),N.state=a.OpenTag,w=this.indent(A,N,M)+"<![CDATA[",N.state=a.InsideTag,w+=A.value,N.state=a.CloseTag,w+="]]>"+this.endline(A,N,M),N.state=a.None,this.closeNode(A,N,M),w},E.prototype.comment=function(A,N,M){var w;return this.openNode(A,N,M),N.state=a.OpenTag,w=this.indent(A,N,M)+"<!-- ",N.state=a.InsideTag,w+=A.value,N.state=a.CloseTag,w+=" -->"+this.endline(A,N,M),N.state=a.None,this.closeNode(A,N,M),w},E.prototype.declaration=function(A,N,M){var w;return this.openNode(A,N,M),N.state=a.OpenTag,w=this.indent(A,N,M)+"<?xml",N.state=a.InsideTag,w+=' version="'+A.version+'"',A.encoding!=null&&(w+=' encoding="'+A.encoding+'"'),A.standalone!=null&&(w+=' standalone="'+A.standalone+'"'),N.state=a.CloseTag,w+=N.spaceBeforeSlash+"?>",w+=this.endline(A,N,M),N.state=a.None,this.closeNode(A,N,M),w},E.prototype.docType=function(A,N,M){var w,Y,X,P,H;if(M||(M=0),this.openNode(A,N,M),N.state=a.OpenTag,P=this.indent(A,N,M),P+="<!DOCTYPE "+A.root().name,A.pubID&&A.sysID?P+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.sysID&&(P+=' SYSTEM "'+A.sysID+'"'),A.children.length>0){for(P+=" [",P+=this.endline(A,N,M),N.state=a.InsideTag,H=A.children,Y=0,X=H.length;Y<X;Y++)w=H[Y],P+=this.writeChildNode(w,N,M+1);N.state=a.CloseTag,P+="]"}return N.state=a.CloseTag,P+=N.spaceBeforeSlash+">",P+=this.endline(A,N,M),N.state=a.None,this.closeNode(A,N,M),P},E.prototype.element=function(A,N,M){var w,Y,X,P,H,G,$,he,de,J,fe,q,U,z;M||(M=0),J=!1,fe="",this.openNode(A,N,M),N.state=a.OpenTag,fe+=this.indent(A,N,M)+"<"+A.name,q=A.attribs;for(de in q){if(!g.call(q,de))continue;w=q[de],fe+=this.attribute(w,N,M)}if(X=A.children.length,P=X===0?null:A.children[0],X===0||A.children.every(function(L){return(L.type===m.Text||L.type===m.Raw)&&L.value===""}))N.allowEmpty?(fe+=">",N.state=a.CloseTag,fe+="</"+A.name+">"+this.endline(A,N,M)):(N.state=a.CloseTag,fe+=N.spaceBeforeSlash+"/>"+this.endline(A,N,M));else if(N.pretty&&X===1&&(P.type===m.Text||P.type===m.Raw)&&P.value!=null)fe+=">",N.state=a.InsideTag,N.suppressPrettyCount++,J=!0,fe+=this.writeChildNode(P,N,M+1),N.suppressPrettyCount--,J=!1,N.state=a.CloseTag,fe+="</"+A.name+">"+this.endline(A,N,M);else{if(N.dontPrettyTextNodes){for(U=A.children,H=0,$=U.length;H<$;H++)if(Y=U[H],(Y.type===m.Text||Y.type===m.Raw)&&Y.value!=null){N.suppressPrettyCount++,J=!0;break}}for(fe+=">"+this.endline(A,N,M),N.state=a.InsideTag,z=A.children,G=0,he=z.length;G<he;G++)Y=z[G],fe+=this.writeChildNode(Y,N,M+1);N.state=a.CloseTag,fe+=this.indent(A,N,M)+"</"+A.name+">",J&&N.suppressPrettyCount--,fe+=this.endline(A,N,M),N.state=a.None}return this.closeNode(A,N,M),fe},E.prototype.writeChildNode=function(A,N,M){switch(A.type){case m.CData:return this.cdata(A,N,M);case m.Comment:return this.comment(A,N,M);case m.Element:return this.element(A,N,M);case m.Raw:return this.raw(A,N,M);case m.Text:return this.text(A,N,M);case m.ProcessingInstruction:return this.processingInstruction(A,N,M);case m.Dummy:return"";case m.Declaration:return this.declaration(A,N,M);case m.DocType:return this.docType(A,N,M);case m.AttributeDeclaration:return this.dtdAttList(A,N,M);case m.ElementDeclaration:return this.dtdElement(A,N,M);case m.EntityDeclaration:return this.dtdEntity(A,N,M);case m.NotationDeclaration:return this.dtdNotation(A,N,M);default:throw new Error("Unknown XML node type: "+A.constructor.name)}},E.prototype.processingInstruction=function(A,N,M){var w;return this.openNode(A,N,M),N.state=a.OpenTag,w=this.indent(A,N,M)+"<?",N.state=a.InsideTag,w+=A.target,A.value&&(w+=" "+A.value),N.state=a.CloseTag,w+=N.spaceBeforeSlash+"?>",w+=this.endline(A,N,M),N.state=a.None,this.closeNode(A,N,M),w},E.prototype.raw=function(A,N,M){var w;return this.openNode(A,N,M),N.state=a.OpenTag,w=this.indent(A,N,M),N.state=a.InsideTag,w+=A.value,N.state=a.CloseTag,w+=this.endline(A,N,M),N.state=a.None,this.closeNode(A,N,M),w},E.prototype.text=function(A,N,M){var w;return this.openNode(A,N,M),N.state=a.OpenTag,w=this.indent(A,N,M),N.state=a.InsideTag,w+=A.value,N.state=a.CloseTag,w+=this.endline(A,N,M),N.state=a.None,this.closeNode(A,N,M),w},E.prototype.dtdAttList=function(A,N,M){var w;return this.openNode(A,N,M),N.state=a.OpenTag,w=this.indent(A,N,M)+"<!ATTLIST",N.state=a.InsideTag,w+=" "+A.elementName+" "+A.attributeName+" "+A.attributeType,A.defaultValueType!=="#DEFAULT"&&(w+=" "+A.defaultValueType),A.defaultValue&&(w+=' "'+A.defaultValue+'"'),N.state=a.CloseTag,w+=N.spaceBeforeSlash+">"+this.endline(A,N,M),N.state=a.None,this.closeNode(A,N,M),w},E.prototype.dtdElement=function(A,N,M){var w;return this.openNode(A,N,M),N.state=a.OpenTag,w=this.indent(A,N,M)+"<!ELEMENT",N.state=a.InsideTag,w+=" "+A.name+" "+A.value,N.state=a.CloseTag,w+=N.spaceBeforeSlash+">"+this.endline(A,N,M),N.state=a.None,this.closeNode(A,N,M),w},E.prototype.dtdEntity=function(A,N,M){var w;return this.openNode(A,N,M),N.state=a.OpenTag,w=this.indent(A,N,M)+"<!ENTITY",N.state=a.InsideTag,A.pe&&(w+=" %"),w+=" "+A.name,A.value?w+=' "'+A.value+'"':(A.pubID&&A.sysID?w+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.sysID&&(w+=' SYSTEM "'+A.sysID+'"'),A.nData&&(w+=" NDATA "+A.nData)),N.state=a.CloseTag,w+=N.spaceBeforeSlash+">"+this.endline(A,N,M),N.state=a.None,this.closeNode(A,N,M),w},E.prototype.dtdNotation=function(A,N,M){var w;return this.openNode(A,N,M),N.state=a.OpenTag,w=this.indent(A,N,M)+"<!NOTATION",N.state=a.InsideTag,w+=" "+A.name,A.pubID&&A.sysID?w+=' PUBLIC "'+A.pubID+'" "'+A.sysID+'"':A.pubID?w+=' PUBLIC "'+A.pubID+'"':A.sysID&&(w+=' SYSTEM "'+A.sysID+'"'),N.state=a.CloseTag,w+=N.spaceBeforeSlash+">"+this.endline(A,N,M),N.state=a.None,this.closeNode(A,N,M),w},E.prototype.openNode=function(A,N,M){},E.prototype.closeNode=function(A,N,M){},E.prototype.openAttribute=function(A,N,M){},E.prototype.closeAttribute=function(A,N,M){},E}()}).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(h,F,o){"use strict";(function(){var m,a,D,O,_,y,v,c,l,s;s=h("./Utility"),c=s.assign,l=s.isFunction,D=h("./XMLDOMImplementation"),O=h("./XMLDocument"),_=h("./XMLDocumentCB"),v=h("./XMLStringWriter"),y=h("./XMLStreamWriter"),m=h("./NodeType"),a=h("./WriterState"),F.exports.create=function(r,d,u,f){var x,C;if(r==null)throw new Error("Root element needs a name.");return f=c({},d,u,f),x=new O(f),C=x.element(r),f.headless||(x.declaration(f),(f.pubID!=null||f.sysID!=null)&&x.dtd(f)),C},F.exports.begin=function(r,d,u){var f;return l(r)&&(f=[r,d],d=f[0],u=f[1],r={}),d?new _(r,d,u):new O(r)},F.exports.stringWriter=function(r){return new v(r)},F.exports.streamWriter=function(r,d){return new y(r,d)},F.exports.implementation=new D,F.exports.nodeType=m,F.exports.writerState=a}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(h,F,o){F.exports=a;var m=Object.prototype.hasOwnProperty;function a(){for(var D={},O=0;O<arguments.length;O++){var _=arguments[O];for(var y in _)m.call(_,y)&&(D[y]=_[y])}return D}},{}],284:[function(h,F,o){"use strict";var m=h("buffer").Buffer,a=h("./sha"),D=h("./md5"),O={sha1:a,md5:D},_=64,y=m.alloc(_);y.fill(0);function v(s,r,d){m.isBuffer(r)||(r=m.from(r)),m.isBuffer(d)||(d=m.from(d)),r.length>_?r=s(r):r.length<_&&(r=m.concat([r,y],_));for(var u=m.alloc(_),f=m.alloc(_),x=0;x<_;x++)u[x]=r[x]^54,f[x]=r[x]^92;var C=s(m.concat([u,d]));return s(m.concat([f,C]))}function c(s,r){s=s||"sha1";var d=O[s],u=[],f=0;return d||l("algorithm:",s,"is not yet supported"),{update:function(C){return m.isBuffer(C)||(C=m.from(C)),u.push(C),f+=C.length,this},digest:function(C){var b=m.concat(u),g=r?v(d,r,b):d(b);return u=null,C?g.toString(C):g}}}function l(){var s=[].slice.call(arguments).join(" ");throw new Error([s,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}o.createHash=function(s){return c(s)},o.createHmac=function(s,r){return c(s,r)},o.createCredentials=function(){l("sorry,createCredentials is not implemented yet")},o.createCipher=function(){l("sorry,createCipher is not implemented yet")},o.createCipheriv=function(){l("sorry,createCipheriv is not implemented yet")},o.createDecipher=function(){l("sorry,createDecipher is not implemented yet")},o.createDecipheriv=function(){l("sorry,createDecipheriv is not implemented yet")},o.createSign=function(){l("sorry,createSign is not implemented yet")},o.createVerify=function(){l("sorry,createVerify is not implemented yet")},o.createDiffieHellman=function(){l("sorry,createDiffieHellman is not implemented yet")},o.pbkdf2=function(){l("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(h,F,o){"use strict";var m=h("buffer").Buffer,a=4,D=m.alloc(a);D.fill(0);var O=8;function _(c,l){if(c.length%a!==0){var s=c.length+(a-c.length%a);c=m.concat([c,D],s)}for(var r=[],d=l?c.readInt32BE:c.readInt32LE,u=0;u<c.length;u+=a)r.push(d.call(c,u));return r}function y(c,l,s){for(var r=m.alloc(l),d=s?r.writeInt32BE:r.writeInt32LE,u=0;u<c.length;u++)d.call(r,c[u],u*4,!0);return r}function v(c,l,s,r){m.isBuffer(c)||(c=m.from(c));var d=l(_(c,r),c.length*O);return y(d,s,r)}F.exports={hash:v}},{buffer:73}],286:[function(h,F,o){"use strict";var m=h("./helpers");function a(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function D(r,d){r[d>>5]|=128<<d%32,r[(d+64>>>9<<4)+14]=d;for(var u=1732584193,f=-271733879,x=-1732584194,C=271733878,b=0;b<r.length;b+=16){var g=u,E=f,A=x,N=C;u=_(u,f,x,C,r[b+0],7,-680876936),C=_(C,u,f,x,r[b+1],12,-389564586),x=_(x,C,u,f,r[b+2],17,606105819),f=_(f,x,C,u,r[b+3],22,-1044525330),u=_(u,f,x,C,r[b+4],7,-176418897),C=_(C,u,f,x,r[b+5],12,1200080426),x=_(x,C,u,f,r[b+6],17,-1473231341),f=_(f,x,C,u,r[b+7],22,-45705983),u=_(u,f,x,C,r[b+8],7,1770035416),C=_(C,u,f,x,r[b+9],12,-1958414417),x=_(x,C,u,f,r[b+10],17,-42063),f=_(f,x,C,u,r[b+11],22,-1990404162),u=_(u,f,x,C,r[b+12],7,1804603682),C=_(C,u,f,x,r[b+13],12,-40341101),x=_(x,C,u,f,r[b+14],17,-1502002290),f=_(f,x,C,u,r[b+15],22,1236535329),u=y(u,f,x,C,r[b+1],5,-165796510),C=y(C,u,f,x,r[b+6],9,-1069501632),x=y(x,C,u,f,r[b+11],14,643717713),f=y(f,x,C,u,r[b+0],20,-373897302),u=y(u,f,x,C,r[b+5],5,-701558691),C=y(C,u,f,x,r[b+10],9,38016083),x=y(x,C,u,f,r[b+15],14,-660478335),f=y(f,x,C,u,r[b+4],20,-405537848),u=y(u,f,x,C,r[b+9],5,568446438),C=y(C,u,f,x,r[b+14],9,-1019803690),x=y(x,C,u,f,r[b+3],14,-187363961),f=y(f,x,C,u,r[b+8],20,1163531501),u=y(u,f,x,C,r[b+13],5,-1444681467),C=y(C,u,f,x,r[b+2],9,-51403784),x=y(x,C,u,f,r[b+7],14,1735328473),f=y(f,x,C,u,r[b+12],20,-1926607734),u=v(u,f,x,C,r[b+5],4,-378558),C=v(C,u,f,x,r[b+8],11,-2022574463),x=v(x,C,u,f,r[b+11],16,1839030562),f=v(f,x,C,u,r[b+14],23,-35309556),u=v(u,f,x,C,r[b+1],4,-1530992060),C=v(C,u,f,x,r[b+4],11,1272893353),x=v(x,C,u,f,r[b+7],16,-155497632),f=v(f,x,C,u,r[b+10],23,-1094730640),u=v(u,f,x,C,r[b+13],4,681279174),C=v(C,u,f,x,r[b+0],11,-358537222),x=v(x,C,u,f,r[b+3],16,-722521979),f=v(f,x,C,u,r[b+6],23,76029189),u=v(u,f,x,C,r[b+9],4,-640364487),C=v(C,u,f,x,r[b+12],11,-421815835),x=v(x,C,u,f,r[b+15],16,530742520),f=v(f,x,C,u,r[b+2],23,-995338651),u=c(u,f,x,C,r[b+0],6,-198630844),C=c(C,u,f,x,r[b+7],10,1126891415),x=c(x,C,u,f,r[b+14],15,-1416354905),f=c(f,x,C,u,r[b+5],21,-57434055),u=c(u,f,x,C,r[b+12],6,1700485571),C=c(C,u,f,x,r[b+3],10,-1894986606),x=c(x,C,u,f,r[b+10],15,-1051523),f=c(f,x,C,u,r[b+1],21,-2054922799),u=c(u,f,x,C,r[b+8],6,1873313359),C=c(C,u,f,x,r[b+15],10,-30611744),x=c(x,C,u,f,r[b+6],15,-1560198380),f=c(f,x,C,u,r[b+13],21,1309151649),u=c(u,f,x,C,r[b+4],6,-145523070),C=c(C,u,f,x,r[b+11],10,-1120210379),x=c(x,C,u,f,r[b+2],15,718787259),f=c(f,x,C,u,r[b+9],21,-343485551),u=l(u,g),f=l(f,E),x=l(x,A),C=l(C,N)}return Array(u,f,x,C)}function O(r,d,u,f,x,C){return l(s(l(l(d,r),l(f,C)),x),u)}function _(r,d,u,f,x,C,b){return O(d&u|~d&f,r,d,x,C,b)}function y(r,d,u,f,x,C,b){return O(d&f|u&~f,r,d,x,C,b)}function v(r,d,u,f,x,C,b){return O(d^u^f,r,d,x,C,b)}function c(r,d,u,f,x,C,b){return O(u^(d|~f),r,d,x,C,b)}function l(r,d){var u=(r&65535)+(d&65535),f=(r>>16)+(d>>16)+(u>>16);return f<<16|u&65535}function s(r,d){return r<<d|r>>>32-d}F.exports=function(d){return m.hash(d,D,16)}},{"./helpers":285}],287:[function(h,F,o){"use strict";var m=h("./helpers");function a(v,c){v[c>>5]|=128<<24-c%32,v[(c+64>>9<<4)+15]=c;for(var l=Array(80),s=1732584193,r=-271733879,d=-1732584194,u=271733878,f=-1009589776,x=0;x<v.length;x+=16){for(var C=s,b=r,g=d,E=u,A=f,N=0;N<80;N++){N<16?l[N]=v[x+N]:l[N]=y(l[N-3]^l[N-8]^l[N-14]^l[N-16],1);var M=_(_(y(s,5),D(N,r,d,u)),_(_(f,l[N]),O(N)));f=u,u=d,d=y(r,30),r=s,s=M}s=_(s,C),r=_(r,b),d=_(d,g),u=_(u,E),f=_(f,A)}return Array(s,r,d,u,f)}function D(v,c,l,s){return v<20?c&l|~c&s:v<40?c^l^s:v<60?c&l|c&s|l&s:c^l^s}function O(v){return v<20?1518500249:v<40?1859775393:v<60?-1894007588:-899497514}function _(v,c){var l=(v&65535)+(c&65535),s=(v>>16)+(c>>16)+(l>>16);return s<<16|l&65535}function y(v,c){return v<<c|v>>>32-c}F.exports=function(c){return m.hash(c,a,20,!0)}},{"./helpers":285}],288:[function(h,F,o){"use strict";F.exports=function(){return function(){}}},{}],289:[function(h,F,o){(function(m){"use strict";var a=h("babel-runtime/helpers/typeof"),D=O(a);function O(s){return s&&s.__esModule?s:{default:s}}var _=h("stream"),y=_.Stream,v=h("../lib/common/utils/isArray"),c=v.isArray;F.exports.string=function(r){return typeof r=="string"},F.exports.array=c,F.exports.buffer=m.isBuffer;function l(s){return s instanceof y}F.exports.writableStream=function(r){return l(r)&&typeof r._write=="function"&&(0,D.default)(r._writableState)==="object"}}).call(this,{isBuffer:h("../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(h,F,o){"use strict";o.encodeURIComponent=function(m){try{return encodeURIComponent(m)}catch(a){return m}},o.escape=h("escape-html"),o.timestamp=function(a){if(a){var D=a;return typeof D=="string"&&(D=Number(D)),String(a).length===10&&(D*=1e3),new Date(D)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(h,F,o){(function(m,a){"use strict";var D=h("babel-runtime/core-js/json/stringify"),O=v(D),_=h("babel-runtime/helpers/typeof"),y=v(_);function v(N){return N&&N.__esModule?N:{default:N}}var c=h("util"),l=h("url"),s=h("http"),r=h("https"),d=h("debug")("urllib"),u=h("humanize-ms"),f,x=0,C=Math.pow(2,31)-10,b=/^https?:\/\//i;function g(N,M){return N===void 0?M:N}function E(N,M){return function(w,Y,X){if(w)return M(w);N({data:Y,status:X.statusCode,headers:X.headers,res:X})}}o.TIMEOUTS=[u("300s"),u("300s")];var A=["json","text"];o.request=function(M,w,Y){return arguments.length===2&&typeof w=="function"&&(Y=w,w=null),typeof Y=="function"?o.requestWithCallback(M,w,Y):(f||(f=h("any-promise")),new f(function(X,P){o.requestWithCallback(M,w,E(X,P))}))},o.requestWithCallback=function(M,w,Y){if(!M||typeof M!="string"&&(typeof M=="undefined"?"undefined":(0,y.default)(M))!=="object"){var X=c.format("expect request url to be a string or a http request options, but got %j",M);throw new Error(X)}arguments.length===2&&typeof w=="function"&&(Y=w,w=null),w=w||{},x>=C&&(x=0);var P=++x;w.requestUrls=w.requestUrls||[];var H={requestId:P,url:M,args:w,ctx:w.ctx};w.emitter&&w.emitter.emit("request",H),w.timeout=w.timeout||o.TIMEOUTS,w.maxRedirects=w.maxRedirects||10,w.streaming=w.streaming||w.customResponse;var G=Date.now(),$;typeof M=="string"?(b.test(M)||(M="http://"+M),$=l.parse(M)):$=M;var he=(w.type||w.method||$.method||"GET").toUpperCase(),de=$.port||80,J=s,fe=g(w.agent,o.agent),q=w.fixJSONCtlChars;$.protocol==="https:"&&(J=r,fe=g(w.httpsAgent,o.httpsAgent),$.port||(de=443));var U={host:$.hostname||$.host||"localhost",path:$.path||"/",method:he,port:de,agent:fe,headers:w.headers||{},lookup:w.lookup};Array.isArray(w.timeout)?U.requestTimeout=w.timeout[w.timeout.length-1]:typeof w.timeout!="undefined"&&(U.requestTimeout=w.timeout);for(var z=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],L=0;L<z.length;L++){var T=z[L];w.hasOwnProperty(T)&&(U[T]=w[T])}U.rejectUnauthorized===!1&&!U.hasOwnProperty("secureOptions")&&(U.secureOptions=h("constants").SSL_OP_NO_TLSv1_2);var I=w.auth||$.auth;I&&(U.auth=I);var se=w.content||w.data,me=he==="GET"||he==="HEAD"||w.dataAsQueryString;if(!w.content&&(se&&!(typeof se=="string"||a.isBuffer(se))))if(me)se=w.nestedQuerystring?qs.stringify(se):querystring.stringify(se);else{var xe=U.headers["Content-Type"]||U.headers["content-type"];xe||(w.contentType==="json"?xe="application/json":xe="application/x-www-form-urlencoded",U.headers["Content-Type"]=xe),parseContentType(xe).type==="application/json"?se=(0,O.default)(se):se=w.nestedQuerystring?qs.stringify(se):querystring.stringify(se)}me&&se&&(U.path+=($.query?"&":"?")+se,se=null);var Ee=0;if(se){var Oe=se.length;a.isBuffer(se)||(Oe=a.byteLength(se)),Ee=U.headers["Content-Length"]=Oe}w.dataType==="json"&&(U.headers.Accept="application/json"),typeof w.beforeRequest=="function"&&w.beforeRequest(U);var le=null,ge=null,ye=null,ee=!1,oe=!1,Z=0,ue=-1,V=!1,Q="",ae="",K=null;w.timing&&(K={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function j(){le&&(clearTimeout(le),le=null)}function k(){ge&&(clearTimeout(ge),ge=null)}function W(Re,Ze,nt){if(k(),!Y){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),P,m.pid,U.method,M),Re&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),P,m.pid,Re.name,Re.message,Re.stack);return}var Ke=Y;Y=null;var $e={};if(nt&&(ue=nt.statusCode,$e=nt.headers),ue===401&&$e["www-authenticate"]&&(!w.headers||!w.headers.Authorization)&&w.digestAuth){var je=$e["www-authenticate"];if(je.indexOf("Digest ")>=0)return d("Request#%d %s: got digest auth header WWW-Authenticate: %s",P,M,je),w.headers=w.headers||{},w.headers.Authorization=digestAuthHeader(U.method,U.path,je,w.digestAuth),d("Request#%d %s: auth with digest header: %s",P,M,w.headers.Authorization),nt.headers["set-cookie"]&&(w.headers.Cookie=nt.headers["set-cookie"].join(";")),o.requestWithCallback(M,w,Ke)}var Me=Date.now()-G;K&&(K.contentDownload=Me),d("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Me,Z,ue,U.method,U.host,U.path,oe,K);var Pe={status:ue,statusCode:ue,headers:$e,size:Z,aborted:V,rt:Me,keepAliveSocket:oe,data:Ze,requestUrls:w.requestUrls,timing:K,remoteAddress:Q,remotePort:ae};if(Re){var Se="";fe&&typeof fe.getCurrentStatus=="function"&&(Se=", agent status: "+(0,O.default)(fe.getCurrentStatus())),Re.message+=", "+U.method+" "+M+" "+ue+" (connected: "+ee+", keepalive socket: "+oe+Se+`)
|
|
|
headers: `+(0,O.default)($e),Re.data=Ze,Re.path=U.path,Re.status=ue,Re.headers=$e,Re.res=Pe}Ke(Re,Ze,w.streaming?nt:Pe),w.emitter&&(H.url=M,H.socket=Ge&&Ge.connection,H.options=U,H.size=Ee,w.emitter.emit("response",{requestId:P,error:Re,ctx:w.ctx,req:H,res:Pe}))}function we(Re){var Ze=null;if(w.followRedirect&&statuses.redirect[Re.statusCode]){w._followRedirectCount=(w._followRedirectCount||0)+1;var nt=Re.headers.location;if(!nt)Ze=new Error("Got statusCode "+Re.statusCode+" but cannot resolve next location from headers"),Ze.name="FollowRedirectError";else if(w._followRedirectCount>w.maxRedirects)Ze=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+M),Ze.name="MaxRedirectError";else{var Ke=w.formatRedirectUrl?w.formatRedirectUrl(M,nt):l.resolve(M,nt);d("Request#%d %s: `redirected` from %s to %s",P,U.path,M,Ke),k(),w.headers&&w.headers.Host&&b.test(nt)&&(w.headers.Host=null);var $e=Y;return Y=null,o.requestWithCallback(Ke,w,$e),{redirect:!0,error:null}}}return{redirect:!1,error:Ze}}!U.headers["User-Agent"]&&!U.headers["user-agent"]&&(U.headers["User-Agent"]=navigator.userAgent),w.gzip&&(!U.headers["Accept-Encoding"]&&!U.headers["accept-encoding"]&&(U.headers["Accept-Encoding"]="gzip"));function be(Re,Ze,nt){var Ke=Re.headers["content-encoding"];return nt(null,Ze,Ke)}var Te=w.writeStream;d("Request#%d %s %s with headers %j, options.path: %s",P,he,M,U.headers,U.path),w.requestUrls.push(M);function Be(Re){if(K&&(K.waiting=Date.now()-G),d("Request#%d %s `req response` event emit: status %d, headers: %j",P,M,Re.statusCode,Re.headers),w.streaming){var Ze=we(Re);if(Ze.redirect){Re.resume();return}return Ze.error?(Re.resume(),W(Ze.error,null,Re)):W(null,null,Re)}if(Re.on("close",function(){d("Request#%d %s: `res close` event emit, total size %d",P,M,Z)}),Re.on("error",function(){d("Request#%d %s: `res error` event emit, total size %d",P,M,Z)}),Re.on("aborted",function(){V=!0,d("Request#%d %s: `res aborted` event emit, total size %d",P,M,Z)}),Te){var Ze=we(Re);if(Ze.redirect){Re.resume();return}return Ze.error?(Re.resume(),Te.end(),W(Ze.error,null,Re)):(w.consumeWriteStream===!1?Re.on("end",W.bind(null,null,null,Re)):isNode010||isNode012?first([[Te,"close"],[Re,"aborted"]],function($e,je,Me){d("Request#%d %s: writeStream or res %s event emitted",P,M,Me),W(ye||null,null,Re)}):Te.on("close",function(){d("Request#%d %s: writeStream close event emitted",P,M),W(ye||null,null,Re)}),Re.pipe(Te))}var nt=[];Re.on("data",function(Ke){d("Request#%d %s: `res data` event emit, size %d",P,M,Ke.length),Z+=Ke.length,nt.push(Ke)}),Re.on("end",function(){var Ke=a.concat(nt,Z);if(d("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",P,M,Z,Re._dumped),ye)return W(ye,Ke,Re);var $e=we(Re);if($e.error)return W($e.error,Ke,Re);if($e.redirect)return;be(Re,Ke,function(je,Me,Pe){if(je)return W(je,Ke,Re);if(!Pe&&A.indexOf(w.dataType)>=0){try{Me=decodeBodyByCharset(Me,Re)}catch(_e){return d("decodeBodyByCharset error: %s",_e),W(null,Me,Re)}if(w.dataType==="json")if(Z===0)Me=null;else{var Se=parseJSON(Me,q);Se.error?je=Se.error:Me=Se.data}}V&&d("Request#%d %s: Remote socket was terminated before `response.end()` was called",P,M),W(je,Me,Re)})})}var Fe,Ue;Array.isArray(w.timeout)?(Fe=u(w.timeout[0]),Ue=u(w.timeout[1])):Fe=Ue=u(w.timeout),d("ConnectTimeout: %d, ResponseTimeout: %d",Fe,Ue);function We(){d("Connect timer ticking, timeout: %d",Fe),le=setTimeout(function(){le=null,ue===-1&&(ue=-2);var Re="Connect timeout for "+Fe+"ms",Ze="ConnectionTimeoutError";Ge.socket||(Ze="SocketAssignTimeoutError",Re+=", working sockets is full"),ye=new Error(Re),ye.name=Ze,ye.requestId=P,d("ConnectTimeout: Request#%d %s %s: %s, connected: %s",P,M,ye.name,Re,ee),Je()},Fe)}function Ve(){d("Response timer ticking, timeout: %d",Ue),ge=setTimeout(function(){ge=null;var Re="Response timeout for "+Ue+"ms",Ze="ResponseTimeoutError";ye=new Error(Re),ye.name=Ze,ye.requestId=P,d("ResponseTimeout: Request#%d %s %s: %s, connected: %s",P,M,ye.name,Re,ee),Je()},Ue)}var Ge;U.mode=w.mode?w.mode:"";try{Ge=J.request(U,Be)}catch(Re){return W(Re)}typeof window=="undefined"?We():Ge.on("requestTimeout",function(){ue===-1&&(ue=-2);var Re="Connect timeout for "+Fe+"ms",Ze="ConnectionTimeoutError";ye=new Error(Re),ye.name=Ze,ye.requestId=P,Je()});function Je(){d("Request#%d %s abort, connected: %s",P,M,ee),Ge.socket||(ye.noSocket=!0,W(ye)),Ge.abort()}return K&&Ge.on("finish",function(){K.requestSent=Date.now()-G}),Ge.once("socket",function(Re){K&&(K.queuing=Date.now()-G),isNode010&&Re.socket&&(Re=Re.socket);var Ze=Re.readyState;if(Ze==="opening"){Re.once("lookup",function(nt,Ke,$e){d("Request#%d %s lookup: %s, %s, %s",P,M,nt,Ke,$e),K&&(K.dnslookup=Date.now()-G),Ke&&(Q=Ke)}),Re.once("connect",function(){K&&(K.connected=Date.now()-G),j(),Ve(),d("Request#%d %s new socket connected",P,M),ee=!0,Q||(Q=Re.remoteAddress),ae=Re.remotePort});return}d("Request#%d %s reuse socket connected, readyState: %s",P,M,Ze),ee=!0,oe=!0,Q||(Q=Re.remoteAddress),ae=Re.remotePort,j(),Ve()}),Ge.on("error",function(Re){(Re.name==="Error"||Re.name==="TypeError")&&(Re.name=ee?"ResponseError":"RequestError"),Re.message+=' (req "error")',d("Request#%d %s `req error` event emit, %s: %s",P,M,Re.name,Re.message),W(ye||Re)}),Te&&Te.once("error",function(Re){Re.message+=' (writeStream "error")',ye=Re,d("Request#%d %s `writeStream error` event emit, %s: %s",P,M,Re.name,Re.message),Je()}),w.stream?(w.stream.pipe(Ge),w.stream.once("error",function(Re){Re.message+=' (stream "error")',ye=Re,d("Request#%d %s `readStream error` event emit, %s: %s",P,M,Re.name,Re.message),Je()})):Ge.end(se),Ge.requestId=P,Ge}}).call(this,h("_process"),h("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"))},nj2k:function(h,F,o){h.exports=o.p+"static/nodata.c3b0b86c.svg"},nnTU:function(h,F,o){"use strict";o.d(F,"b",function(){return c}),o.d(F,"a",function(){return l});var m=o("pmY6"),a=o("746U"),D=o("Cg/j"),O=o("MI8n"),_=o("24hK"),y=o("QDVR"),v=function(){for(var s=0,r=0,d=arguments.length;r<d;r++)s+=arguments[r].length;for(var u=Array(s),f=0,r=0;r<d;r++)for(var x=arguments[r],C=0,b=x.length;C<b;C++,f++)u[f]=x[C];return u},c=Object(D.c)("commandService"),l=new(function(){function s(){this._commands=new Map,this._onDidRegisterCommand=new O.a,this.onDidRegisterCommand=this._onDidRegisterCommand.event}return s.prototype.registerCommand=function(r,d){var u=this;if(!r)throw new Error("invalid command");if(typeof r=="string"){if(!d)throw new Error("invalid command");return this.registerCommand({id:r,handler:d})}if(r.description){for(var f=[],x=0,C=r.description.args;x<C.length;x++){var b=C[x];f.push(b.constraint)}var g=r.handler;r.handler=function(w){for(var Y=[],X=1;X<arguments.length;X++)Y[X-1]=arguments[X];return Object(a.m)(Y,f),g.apply(void 0,v([w],Y))}}var E=r.id,A=this._commands.get(E);A||(A=new _.a,this._commands.set(E,A));var N=A.unshift(r),M=Object(m.h)(function(){N();var w=u._commands.get(E);(w==null?void 0:w.isEmpty())&&u._commands.delete(E)});return this._onDidRegisterCommand.fire(E),M},s.prototype.registerCommandAlias=function(r,d){return l.registerCommand(r,function(u){for(var f,x=[],C=1;C<arguments.length;C++)x[C-1]=arguments[C];return(f=u.get(c)).executeCommand.apply(f,v([d],x))})},s.prototype.getCommand=function(r){var d=this._commands.get(r);return!d||d.isEmpty()?void 0:d.iterator().next().value},s.prototype.getCommands=function(){for(var r=new Map,d=0,u=Object(y.d)(this._commands);d<u.length;d++){var f=u[d],x=this.getCommand(f);x&&r.set(f,x)}return r},s}())},oRuE:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("OLod"))})(this,function(m){return m.pad.Iso10126={pad:function(a,D){var O=D*4,_=O-a.sigBytes%O;a.concat(m.lib.WordArray.random(_-1)).concat(m.lib.WordArray.create([_<<24],1))},unpad:function(a){var D=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=D}},m.pad.Iso10126})},osHv:function(h,F,o){(function(m){m(o("VrN/"))})(function(m){"use strict";var a=m.Pos;function D(b,g){return b.line-g.line||b.ch-g.ch}var O="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",_=O+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",y=new RegExp("<(/?)(["+O+"]["+_+"]*)","g");function v(b,g,E,A){this.line=g,this.ch=E,this.cm=b,this.text=b.getLine(g),this.min=A?Math.max(A.from,b.firstLine()):b.firstLine(),this.max=A?Math.min(A.to-1,b.lastLine()):b.lastLine()}function c(b,g){var E=b.cm.getTokenTypeAt(a(b.line,g));return E&&/\btag\b/.test(E)}function l(b){return b.line>=b.max?void 0:(b.ch=0,b.text=b.cm.getLine(++b.line),!0)}function s(b){return b.line<=b.min?void 0:(b.text=b.cm.getLine(--b.line),b.ch=b.text.length,!0)}function r(b){for(;;){var g=b.text.indexOf(">",b.ch);if(g==-1){if(l(b))continue;return}if(!c(b,g+1)){b.ch=g+1;continue}var E=b.text.lastIndexOf("/",g),A=E>-1&&!/\S/.test(b.text.slice(E+1,g));return b.ch=g+1,A?"selfClose":"regular"}}function d(b){for(;;){var g=b.ch?b.text.lastIndexOf("<",b.ch-1):-1;if(g==-1){if(s(b))continue;return}if(!c(b,g+1)){b.ch=g;continue}y.lastIndex=g,b.ch=g;var E=y.exec(b.text);if(E&&E.index==g)return E}}function u(b){for(;;){y.lastIndex=b.ch;var g=y.exec(b.text);if(!g){if(l(b))continue;return}if(!c(b,g.index+1)){b.ch=g.index+1;continue}return b.ch=g.index+g[0].length,g}}function f(b){for(;;){var g=b.ch?b.text.lastIndexOf(">",b.ch-1):-1;if(g==-1){if(s(b))continue;return}if(!c(b,g+1)){b.ch=g;continue}var E=b.text.lastIndexOf("/",g),A=E>-1&&!/\S/.test(b.text.slice(E+1,g));return b.ch=g+1,A?"selfClose":"regular"}}function x(b,g){for(var E=[];;){var A=u(b),N,M=b.line,w=b.ch-(A?A[0].length:0);if(!A||!(N=r(b)))return;if(N=="selfClose")continue;if(A[1]){for(var Y=E.length-1;Y>=0;--Y)if(E[Y]==A[2]){E.length=Y;break}if(Y<0&&(!g||g==A[2]))return{tag:A[2],from:a(M,w),to:a(b.line,b.ch)}}else E.push(A[2])}}function C(b,g){for(var E=[];;){var A=f(b);if(!A)return;if(A=="selfClose"){d(b);continue}var N=b.line,M=b.ch,w=d(b);if(!w)return;if(w[1])E.push(w[2]);else{for(var Y=E.length-1;Y>=0;--Y)if(E[Y]==w[2]){E.length=Y;break}if(Y<0&&(!g||g==w[2]))return{tag:w[2],from:a(b.line,b.ch),to:a(N,M)}}}}m.registerHelper("fold","xml",function(b,g){for(var E=new v(b,g.line,0);;){var A=u(E);if(!A||E.line!=g.line)return;var N=r(E);if(!N)return;if(!A[1]&&N!="selfClose"){var M=a(E.line,E.ch),w=x(E,A[2]);return w&&D(w.from,M)>0?{from:M,to:w.from}:null}}}),m.findMatchingTag=function(b,g,E){var A=new v(b,g.line,g.ch,E);if(A.text.indexOf(">")==-1&&A.text.indexOf("<")==-1)return;var N=r(A),M=N&&a(A.line,A.ch),w=N&&d(A);if(!N||!w||D(A,g)>0)return;var Y={from:a(A.line,A.ch),to:M,tag:w[2]};return N=="selfClose"?{open:Y,close:null,at:"open"}:w[1]?{open:C(A,w[2]),close:Y,at:"close"}:(A=new v(b,M.line,M.ch,E),{open:Y,close:x(A,w[2]),at:"open"})},m.findEnclosingTag=function(b,g,E,A){for(var N=new v(b,g.line,g.ch,E);;){var M=C(N,A);if(!M)break;var w=new v(b,g.line,g.ch,E),Y=x(w,M.tag);if(Y)return{open:M,close:Y}}},m.scanForClosingTag=function(b,g,E,A){var N=new v(b,g.line,g.ch,A?{from:0,to:A}:null);return x(N,E)}})},p5ED:function(h,F,o){"use strict";var m=o("+L6B"),a=o("2/Rp"),D=o("5Dmo"),O=o("3S7+"),_=o("k1fw"),y=o("9og8"),v=o("tJVT"),c=o("WmNS"),l=o.n(c),s=o("q1tI"),r=o.n(s),d=o("vHTk"),u=o.n(d),f=o("yEEn"),x=o("ZW9T"),C=o("1vsH"),b=o("V0Rq"),g=o("m3rI");F.a=function(E){var A,N,M,w,Y,X,P=E.editOffice,H=P===void 0?"view":P,G=E.name,$=E.data,he=E.theme,de=E.type,J=E.filename,fe=E.monacoEditor,q=E.className,U=E.style,z=E.close,L=E.onClose,T=E.hasMask,I=E.disabledDownload,se=E.onImgDimensions,me=E.otherData,xe=Object(s.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),Ee=Object(v.a)(xe,2),Oe=Ee[0],le=Ee[1],ge=Object(s.useState)(""),ye=Object(v.a)(ge,2),ee=ye[0],oe=ye[1],Z=Object(s.useState)(),ue=Object(v.a)(Z,2),V=ue[0],Q=ue[1],ae=window.ENV==="build"?"/react/build":"",K=location.host.startsWith("localhost")?g.a.PROXY_SERVER:g.a.API_SERVER,j,k=1024*1024,W=10*k,we=Object(s.useRef)();(A=$)!==null&&A!==void 0&&A.startsWith("/api")&&de!=="txt"&&($=g.a.API_SERVER+$),de==="office"&&(j=Object(C.P)($).filesize,j>W&&(de="other")),J&&(fe.filename=J),Object(s.useEffect)(function(){var Fe,Ue,We=(Fe=document.cookie)===null||Fe===void 0||((Ue=Fe.replace(/\s/g,""))===null||Ue===void 0)?void 0:Ue.split(";");We==null||We.map(function(Ve){var Ge=Ve.split("=");Ge[0]==="_educoder_session"&&oe(Ge[1])})},[]),Object(s.useEffect)(function(){de==="office"&&be()},[de,$]);var be=function(){var Fe=Object(y.a)(l.a.mark(function Ue(){var We,Ve,Ge;return l.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return console.log("data:",$),We=$,$.startsWith("http")||(We=location.origin+We),Ve=new URL(We).pathname.split("/").pop(),Re.next=6,Object(b.U)({attachment_id:Ve});case 6:Ge=Re.sent,Q(Ge);case 8:case"end":return Re.stop()}},Ue)}));return function(){return Fe.apply(this,arguments)}}(),Te=function(){if($.startsWith("http")||$.startsWith("blob:")){Be();return}Object(C.x)(J||"educoder",$,J)},Be=function(){Object(C.v)(J||"educoder",decodeURIComponent($))};return r.a.createElement("div",{style:Object(_.a)({},U||{}),className:"".concat(T&&u.a.bgBlack," ").concat(de?u.a.wrp:"hide")},z&&r.a.createElement("div",{className:u.a.close,ref:we},!!se&&r.a.createElement(O.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return we.current}},r.a.createElement("span",{onClick:function(){L(),se()}},r.a.createElement("i",{className:"icon-yulanpizhu"}))),!I&&r.a.createElement(O.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return we.current}},r.a.createElement("span",{onClick:Be},r.a.createElement("i",{className:"icon-quxiaozhiding"}))),r.a.createElement(O.a,{title:"\u5173\u95ED",getPopupContainer:function(){return we.current}},r.a.createElement("span",{className:"",onClick:L},r.a.createElement("i",{className:"icon-guanbi1"})))),r.a.createElement("div",{className:"".concat(u.a[q]," ").concat(q," ").concat(u.a.monaco," ").concat(de==="txt"?"show":"hide")},de==="txt"&&r.a.createElement(x.b,fe)),de==="audio"&&r.a.createElement("audio",{src:"".concat(((N=$)===null||N===void 0?void 0:N.indexOf("http://"))>-1||((M=$)===null||M===void 0?void 0:M.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat($),autoPlay:!0}),de==="video"&&r.a.createElement(r.a.Fragment,null,((w=$)===null||w===void 0?void 0:w.indexOf("http"))>-1?r.a.createElement("video",{controls:!0,src:"".concat($),autoPlay:!0}):r.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat($),autoPlay:!0})),de==="office"&&V&&r.a.createElement("iframe",{src:"".concat(ae,"/office.html?key=").concat(V.key,"&url=").concat(K+V.url,"&callbackUrl=").concat(K+V.callbackUrl,"&fileType=").concat(V.fileType,"&title=").concat(V.title,"&model=").concat(H,"&officeServer=").concat(g.a.OFFICE_SERVER,"&disabledDownload=").concat(!!I)}),(de==="xlsx"||de==="doc"||de==="pptx"||de==="docx")&&r.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(me.key,"&url=").concat(g.a.API_SERVER+me.url,"&callbackUrl=").concat(g.a.API_SERVER+me.callbackUrl,"&fileType=").concat(me.fileType,"&title=").concat(me.title,"&model=").concat(me.model)}),de==="html"&&r.a.createElement("iframe",{src:$+"&disposition=inline"}),de==="pdf"&&r.a.createElement("embed",{className:u.a.embed,src:$}),de==="image"&&r.a.createElement("img",{src:"".concat(((Y=$)===null||Y===void 0?void 0:Y.indexOf("http://"))>-1||((X=$)===null||X===void 0?void 0:X.indexOf("https://"))>-1?"":"data:image/png;base64,").concat($)}),de==="other"&&r.a.createElement("div",null,r.a.createElement(a.a,{type:"primary",size:"large",onClick:Te},r.a.createElement(f.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),de==="download"&&r.a.createElement(a.a,{type:"primary",size:"large",onClick:Te},r.a.createElement(f.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(h,F,o){},pA7S:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(m){return function(){var a=m,D=a.lib,O=D.WordArray,_=D.BlockCipher,y=a.algo,v=[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],c=[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],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],s=[{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],d=y.DES=_.extend({_doReset:function(){for(var C=this._key,b=C.words,g=[],E=0;E<56;E++){var A=v[E]-1;g[E]=b[A>>>5]>>>31-A%32&1}for(var N=this._subKeys=[],M=0;M<16;M++){for(var w=N[M]=[],Y=l[M],E=0;E<24;E++)w[E/6|0]|=g[(c[E]-1+Y)%28]<<31-E%6,w[4+(E/6|0)]|=g[28+(c[E+24]-1+Y)%28]<<31-E%6;w[0]=w[0]<<1|w[0]>>>31;for(var E=1;E<7;E++)w[E]=w[E]>>>(E-1)*4+3;w[7]=w[7]<<5|w[7]>>>27}for(var X=this._invSubKeys=[],E=0;E<16;E++)X[E]=N[15-E]},encryptBlock:function(C,b){this._doCryptBlock(C,b,this._subKeys)},decryptBlock:function(C,b){this._doCryptBlock(C,b,this._invSubKeys)},_doCryptBlock:function(C,b,g){this._lBlock=C[b],this._rBlock=C[b+1],u.call(this,4,252645135),u.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),u.call(this,1,1431655765);for(var E=0;E<16;E++){for(var A=g[E],N=this._lBlock,M=this._rBlock,w=0,Y=0;Y<8;Y++)w|=s[Y][((M^A[Y])&r[Y])>>>0];this._lBlock=M,this._rBlock=N^w}var X=this._lBlock;this._lBlock=this._rBlock,this._rBlock=X,u.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),u.call(this,16,65535),u.call(this,4,252645135),C[b]=this._lBlock,C[b+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function u(C,b){var g=(this._lBlock>>>C^this._rBlock)&b;this._rBlock^=g,this._lBlock^=g<<C}function f(C,b){var g=(this._rBlock>>>C^this._lBlock)&b;this._lBlock^=g,this._rBlock^=g<<C}a.DES=_._createHelper(d);var x=y.TripleDES=_.extend({_doReset:function(){var C=this._key,b=C.words;if(b.length!==2&&b.length!==4&&b.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var g=b.slice(0,2),E=b.length<4?b.slice(0,2):b.slice(2,4),A=b.length<6?b.slice(0,2):b.slice(4,6);this._des1=d.createEncryptor(O.create(g)),this._des2=d.createEncryptor(O.create(E)),this._des3=d.createEncryptor(O.create(A))},encryptBlock:function(C,b){this._des1.encryptBlock(C,b),this._des2.decryptBlock(C,b),this._des3.encryptBlock(C,b)},decryptBlock:function(C,b){this._des3.decryptBlock(C,b),this._des2.encryptBlock(C,b),this._des1.decryptBlock(C,b)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=_._createHelper(x)}(),m.TripleDES})},pmY6:function(h,F,o){"use strict";o.d(F,"g",function(){return _}),o.d(F,"f",function(){return y}),o.d(F,"e",function(){return v}),o.d(F,"h",function(){return c}),o.d(F,"b",function(){return l}),o.d(F,"a",function(){return s}),o.d(F,"d",function(){return r}),o.d(F,"c",function(){return d});var m=!1,a="__is_disposable_tracked__";function D(u){if(!m)return;if(u&&u!==s.None)try{u[a]=!0}catch(f){}}function O(u){if(!m)return u;var f=new Error("Potentially leaked disposable").stack;return setTimeout(function(){u[a]||console.log(f)},3e3),u}function _(u){return typeof u.dispose=="function"&&u.dispose.length===0}function y(u){return Array.isArray(u)?(u.forEach(function(f){f&&(D(f),f.dispose())}),[]):u?(D(u),u.dispose(),u):void 0}function v(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return u.forEach(D),O({dispose:function(){return y(u)}})}function c(u){var f=O({dispose:function(){D(f),u()}});return f}var l=function(){function u(){this._toDispose=new Set,this._isDisposed=!1}return u.prototype.dispose=function(){if(this._isDisposed)return;D(this),this._isDisposed=!0,this.clear()},u.prototype.clear=function(){this._toDispose.forEach(function(f){return f.dispose()}),this._toDispose.clear()},u.prototype.add=function(f){if(!f)return f;if(f===this)throw new Error("Cannot register a disposable on itself!");return D(f),this._isDisposed?console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(f),f},u}(),s=function(){function u(){this._store=new l,O(this)}return u.prototype.dispose=function(){D(this),this._store.dispose()},u.prototype._register=function(f){if(f===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(f)},u.None=Object.freeze({dispose:function(){}}),u}(),r=function(){function u(){this._isDisposed=!1,O(this)}return Object.defineProperty(u.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(f){if(this._isDisposed||f===this._value)return;this._value&&this._value.dispose(),f&&D(f),this._value=f},enumerable:!0,configurable:!0}),u.prototype.clear=function(){this.value=void 0},u.prototype.dispose=function(){this._isDisposed=!0,D(this),this._value&&this._value.dispose(),this._value=void 0},u}(),d=function(){function u(f){this.object=f}return u.prototype.dispose=function(){},u}()},qBft:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("OLod"))})(this,function(m){return m.pad.AnsiX923={pad:function(a,D){var O=a.sigBytes,_=D*4,y=_-O%_,v=O+y-1;a.clamp(),a.words[v>>>2]|=y<<24-v%4*8,a.sigBytes+=y},unpad:function(a){var D=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=D}},m.pad.Ansix923})},qM6L:function(h,F,o){(function(m,a){h.exports=F=a(o("Ib8C"))})(this,function(m){return function(){var a=m,D=a.lib,O=D.WordArray,_=a.enc,y=_.Utf16=_.Utf16BE={stringify:function(c){for(var l=c.words,s=c.sigBytes,r=[],d=0;d<s;d+=2){var u=l[d>>>2]>>>16-d%4*8&65535;r.push(String.fromCharCode(u))}return r.join("")},parse:function(c){for(var l=c.length,s=[],r=0;r<l;r++)s[r>>>1]|=c.charCodeAt(r)<<16-r%2*16;return O.create(s,l*2)}};_.Utf16LE={stringify:function(c){for(var l=c.words,s=c.sigBytes,r=[],d=0;d<s;d+=2){var u=v(l[d>>>2]>>>16-d%4*8&65535);r.push(String.fromCharCode(u))}return r.join("")},parse:function(c){for(var l=c.length,s=[],r=0;r<l;r++)s[r>>>1]|=v(c.charCodeAt(r)<<16-r%2*16);return O.create(s,l*2)}};function v(c){return c<<8&4278255360|c>>>8&16711935}}(),m.enc.Utf16})},qu8F:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("OLod"))})(this,function(m){/** @preserve
|
|
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
|
* derived from CryptoJS.mode.CTR
|
|
|
* Jan Hruby jhruby.web@gmail.com
|
|
|
*/return m.mode.CTRGladman=function(){var a=m.lib.BlockCipherMode.extend();function D(y){if((y>>24&255)===255){var v=y>>16&255,c=y>>8&255,l=y&255;v===255?(v=0,c===255?(c=0,l===255?l=0:++l):++c):++v,y=0,y+=v<<16,y+=c<<8,y+=l}else y+=1<<24;return y}function O(y){return(y[0]=D(y[0]))===0&&(y[1]=D(y[1])),y}var _=a.Encryptor=a.extend({processBlock:function(y,v){var c=this._cipher,l=c.blockSize,s=this._iv,r=this._counter;s&&(r=this._counter=s.slice(0),this._iv=void 0),O(r);var d=r.slice(0);c.encryptBlock(d,0);for(var u=0;u<l;u++)y[v+u]^=d[u]}});return a.Decryptor=_,a}(),m.mode.CTRGladman})},"rAM+":function(h,F,o){"use strict";o.d(F,"a",function(){return a});var m=o("Qw5x");function a(D,O){var _;if(typeof Symbol=="undefined"||D[Symbol.iterator]==null){if(Array.isArray(D)||(_=Object(m.a)(D))||O&&D&&typeof D.length=="number"){_&&(D=_);var y=0,v=function(){};return{s:v,n:function(){return y>=D.length?{done:!0}:{done:!1,value:D[y++]}},e:function(d){throw d},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,l=!1,s;return{s:function(){_=D[Symbol.iterator]()},n:function(){var d=_.next();return c=d.done,d},e:function(d){l=!0,s=d},f:function(){try{!c&&_.return!=null&&_.return()}finally{if(l)throw s}}}}},rUJ1:function(h,F){const o=/[&<>"']/,m=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,D=/[<>"']|&(?!#?\w+;)/g,O={"&":"&","<":"<",">":">",'"':""","'":"'"},_=X=>O[X];function y(X,P){if(P){if(o.test(X))return X.replace(m,_)}else if(a.test(X))return X.replace(D,_);return X}const v=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function c(X){return X.replace(v,(P,H)=>(H=H.toLowerCase(),H==="colon"?":":H.charAt(0)==="#"?H.charAt(1)==="x"?String.fromCharCode(parseInt(H.substring(2),16)):String.fromCharCode(+H.substring(1)):""))}const l=/(^|[^\[])\^/g;function s(X,P){X=X.source||X,P=P||"";const H={replace:(G,$)=>($=$.source||$,$=$.replace(l,"$1"),X=X.replace(G,$),H),getRegex:()=>new RegExp(X,P)};return H}const r=/[^\w:]/g,d=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function u(X,P,H){if(X){let G;try{G=decodeURIComponent(c(H)).replace(r,"").toLowerCase()}catch($){return null}if(G.indexOf("javascript:")===0||G.indexOf("vbscript:")===0||G.indexOf("data:")===0)return null}P&&!d.test(H)&&(H=g(P,H));try{H=encodeURI(H).replace(/%25/g,"%")}catch(G){return null}return H}const f={},x=/^[^:]+:\/*[^/]*$/,C=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;function g(X,P){f[" "+X]||(x.test(X)?f[" "+X]=X+"/":f[" "+X]=M(X,"/",!0)),X=f[" "+X];const H=X.indexOf(":")===-1;return P.substring(0,2)==="//"?H?P:X.replace(C,"$1")+P:P.charAt(0)==="/"?H?P:X.replace(b,"$1")+P:X+P}const E={exec:function(){}};function A(X){let P=1,H,G;for(;P<arguments.length;P++){H=arguments[P];for(G in H)Object.prototype.hasOwnProperty.call(H,G)&&(X[G]=H[G])}return X}function N(X,P){const H=X.replace(/\|/g,(he,de,J)=>{let fe=!1,q=de;for(;--q>=0&&J[q]==="\\";)fe=!fe;return fe?"|":" |"}),G=H.split(/ \|/);let $=0;if(G.length>P)G.splice(P);else for(;G.length<P;)G.push("");for(;$<G.length;$++)G[$]=G[$].trim().replace(/\\\|/g,"|");return G}function M(X,P,H){const G=X.length;if(G===0)return"";let $=0;for(;$<G;){const he=X.charAt(G-$-1);if(he===P&&!H)$++;else if(he!==P&&H)$++;else break}return X.substr(0,G-$)}function w(X,P){if(X.indexOf(P[1])===-1)return-1;const H=X.length;let G=0,$=0;for(;$<H;$++)if(X[$]==="\\")$++;else if(X[$]===P[0])G++;else if(X[$]===P[1]&&(G--,G<0))return $;return-1}function Y(X){X&&X.sanitize&&!X.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")}h.exports={escape:y,unescape:c,edit:s,cleanUrl:u,resolveUrl:g,noopTest:E,merge:A,splitCells:N,rtrim:M,findClosingBracket:w,checkSanitizeDeprecation:Y}},rdUC:function(h,F,o){var m=o("MFOe"),a=m.Global;h.exports={name:"localStorage",read:O,write:_,each:y,remove:v,clearAll:c};function D(){return a.localStorage}function O(l){return D().getItem(l)}function _(l,s){return D().setItem(l,s)}function y(l){for(var s=D().length-1;s>=0;s--){var r=D().key(s);l(O(r),r)}}function v(l){return D().removeItem(l)}function c(){return D().clear()}},sboe:function(h,F,o){"use strict";o.d(F,"a",function(){return D});var m=o("q1tI"),a=o.n(m),D=m.createContext(null)},spXi:function(h,F,o){h.exports={flex_box_center:"flex_box_center___2B_Y7",flex_space_between:"flex_space_between___2olzC",flex_box_vertical_center:"flex_box_vertical_center___2Z4dV",flex_box_center_end:"flex_box_center_end___3FiwX",flex_box_column:"flex_box_column___8kyK-",customTree:"customTree___1KOYx",name:"name___3pqs4"}},u2Z1:function(h,F,o){"use strict";o.d(F,"a",function(){return M});var m=o("miYZ"),a=o("tsqr"),D=o("9og8"),O=o("5NDa"),_=o("5rEg"),y=o("2qtc"),v=o("kLXV"),c=o("oBTY"),l=o("tJVT"),s=o("OaEy"),r=o("2fM7"),d=o("WmNS"),u=o.n(d),f=o("q1tI"),x=o.n(f),C=o("ErOA"),b=o("i58Z"),g=o.n(b),E=o("T1X5"),A=o.n(E),N=r.a.Option,M=function(Y){var X=Y.subId,P=Y.value,H=Y.selectvalues,G=Y.disabled,$=Y.knowledgeOptions,he=$===void 0?[]:$,de=Y.onChange,J=de===void 0?function(){}:de,fe=Y.onAddKnowledgeFinish,q=fe===void 0?function(){}:fe,U=Object(f.useRef)(),z=Object(f.useState)([]),L=Object(l.a)(z,2),T=L[0],I=L[1];P=P||[];var se=function(Ee,Oe){Ee?(I([Oe.key]),J([Oe.key])):(I([]),J([]))};Object(f.useEffect)(function(){(H==null?void 0:H.length)>0&&(I(Object(c.a)(H)),J(Object(c.a)(H)))},[he]),Object(f.useEffect)(function(){var xe;((xe=P)===null||xe===void 0?void 0:xe.length)>0&&J(Object(c.a)(P))},[he]);var me=function(Ee){Ee.preventDefault(),U.current="",v.a.confirm({centered:!0,width:700,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",className:"custom-modal-divider",content:x.a.createElement("div",{className:"font14"},x.a.createElement("div",{style:{display:"flex",marginTop:"48px",marginBottom:"36px"}},x.a.createElement("img",{src:A.a,style:{width:"108px",height:"108px",marginRight:"29px"}}),"\u60A8\u586B\u5199\u7684\u77E5\u8BC6\u70B9\u6682\u65F6\u4EC5\u5BF9\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u540E\u5C06\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF1B",x.a.createElement("br",null),"\u5E73\u53F0\u5BA1\u6838\u8FC7\u7A0B\u4E2D\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF08\u5305\u62EC\u4F46\u4E0D\u9650\u4E8E\u9519\u8BEF\u3001\u975E\u6CD5\u3001\u4E0D\u96C5\u3001\u4E0D\u5339\u914D\u5F53\u524D\u8BFE\u7A0B\u7B49\u60C5\u5F62\uFF09\uFF0C\u5220\u9664\u540E\u53EF\u80FD\u5F71\u54CD\u60A8\u7684\u8BD5\u9898\u7684\u6B63\u5E38\u4F7F\u7528\u3002",x.a.createElement("br",null),"\u8BF7\u8BA4\u771F\u586B\u5199\u4E0E\u6559\u5B66\u5185\u5BB9\u76F8\u5173\u7684\u771F\u5B9E\u77E5\u8BC6\u70B9 ",x.a.createElement("br",null)),x.a.createElement(_.a,{className:"mt5",maxLength:20,style:{marginBottom:"42px"},placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:U.current,onChange:function(le){U.current=le.target.value}})),onOk:function(){return new Promise(function(){var le=Object(D.a)(u.a.mark(function ge(ye,ee){var oe,Z;return u.a.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(U.current){V.next=3;break}return a.b.warn("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),V.abrupt("return",ee());case 3:if(!(U.current.length>20)){V.next=6;break}return a.b.warn("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),V.abrupt("return",ee());case 6:return V.next=8,Object(C.a)("/api/tag_disciplines.json",{method:"post",body:{name:U.current,sub_discipline_id:X}});case 8:return oe=V.sent,(oe==null?void 0:oe.status)===0&&(q({id:oe.tag_discipline_id,name:U.current,type:"personal"}),Z=[],Z.push(oe.tag_discipline_id),J([].concat(Z)),I([oe.tag_discipline_id]),J([].concat(Z))),V.abrupt("return",ye());case 11:case"end":return V.stop()}},ge)}));return function(ge,ye){return le.apply(this,arguments)}}())}})};return x.a.createElement("div",{className:g.a.wrap},x.a.createElement(r.a,{disabled:!X||G,className:"mr5",style:{width:"242px"},onChange:se,showSearch:!0,allowClear:!0,value:he==null?void 0:he.filter(function(xe){return(T==null?void 0:T.includes(xe==null?void 0:xe.id))||(T==null?void 0:T.includes((xe==null?void 0:xe.id)+""))}).map(function(xe){return xe.name})},he==null?void 0:he.map(function(xe){return x.a.createElement(N,{key:xe.id,value:xe.name},x.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},x.a.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},xe.name),x.a.createElement("span",null,xe.type==="personal"?"\uFF08\u81EA\u7528\uFF09":"")))})),x.a.createElement("button",{disabled:!X,className:"".concat(g.a.addKnowledge," ").concat(X?"":g.a.disabled),onClick:me},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"))}},uGsb:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("MlIO"),o("1uat"))})(this,function(m){return function(){var a=m,D=a.x64,O=D.Word,_=D.WordArray,y=a.algo,v=y.SHA512,c=y.SHA384=v.extend({_doReset:function(){this._hash=new _.init([new O.init(3418070365,3238371032),new O.init(1654270250,914150663),new O.init(2438529370,812702999),new O.init(355462360,4144912697),new O.init(1731405415,4290775857),new O.init(2394180231,1750603025),new O.init(3675008525,1694076839),new O.init(1203062813,3204075428)])},_doFinalize:function(){var l=v._doFinalize.call(this);return l.sigBytes-=16,l}});a.SHA384=v._createHelper(c),a.HmacSHA384=v._createHmacHelper(c)}(),m.SHA384})},uGxW:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("OLod"))})(this,function(m){return m.pad.NoPadding={pad:function(){},unpad:function(){}},m.pad.NoPadding})},uK0f:function(h,F,o){(function(m,a){h.exports=a()})(this,function(){"use strict";function m(a,D,O){O=O||{},O.childrenKeyName=O.childrenKeyName||"children";var _=a||[],y=[],v=0;do{var c=_.filter(function(l){return D(l,v)})[0];if(!c)break;y.push(c),_=c[O.childrenKeyName]||[],v+=1}while(_.length>0);return y}return m})},uMZB:function(h,F,o){h.exports={header:"header___3a50V",checkboxs:"checkboxs___3TnBC",field:"field___SHW6f","oj-form-container":"oj-form-container___36KBv","oj-left-panel":"oj-left-panel___3Fdj5","oj-form-info":"oj-form-info___dilPb",footer:"footer___1Ie9U","test-case-name":"test-case-name___356US","btn-remove-case":"btn-remove-case___1Z5cd","icon-tag":"icon-tag___3zUaP",btn_back:"btn_back___2UBbR",testJi:"testJi___1dyLk",upBtn:"upBtn___1I0SJ"}},uQRt:function(h,F,o){h.exports=m;function m(){return o("gaXo"),{}}},vHTk:function(h,F,o){h.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},w7YG:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(m){return function(){var a=m,D=a.lib,O=D.StreamCipher,_=a.algo,y=_.RC4=O.extend({_doReset:function(){for(var l=this._key,s=l.words,r=l.sigBytes,d=this._S=[],u=0;u<256;u++)d[u]=u;for(var u=0,f=0;u<256;u++){var x=u%r,C=s[x>>>2]>>>24-x%4*8&255;f=(f+d[u]+C)%256;var b=d[u];d[u]=d[f],d[f]=b}this._i=this._j=0},_doProcessBlock:function(l,s){l[s]^=v.call(this)},keySize:256/32,ivSize:0});function v(){for(var l=this._S,s=this._i,r=this._j,d=0,u=0;u<4;u++){s=(s+1)%256,r=(r+l[s])%256;var f=l[s];l[s]=l[r],l[r]=f,d|=l[(l[s]+l[r])%256]<<24-u*8}return this._i=s,this._j=r,d}a.RC4=O._createHelper(y);var c=_.RC4Drop=y.extend({cfg:y.cfg.extend({drop:192}),_doReset:function(){y._doReset.call(this);for(var l=this.cfg.drop;l>0;l--)v.call(this)}});a.RC4Drop=O._createHelper(c)}(),m.RC4})},wZgz:function(h,F,o){(function(m,a,D){h.exports=F=a(o("Ib8C"),o("ETIr"),o("cv67"),o("K3mO"),o("OLod"))})(this,function(m){return function(){var a=m,D=a.lib,O=D.BlockCipher,_=a.algo,y=[],v=[],c=[],l=[],s=[],r=[],d=[],u=[],f=[],x=[];(function(){for(var g=[],E=0;E<256;E++)E<128?g[E]=E<<1:g[E]=E<<1^283;for(var A=0,N=0,E=0;E<256;E++){var M=N^N<<1^N<<2^N<<3^N<<4;M=M>>>8^M&255^99,y[A]=M,v[M]=A;var w=g[A],Y=g[w],X=g[Y],P=g[M]*257^M*16843008;c[A]=P<<24|P>>>8,l[A]=P<<16|P>>>16,s[A]=P<<8|P>>>24,r[A]=P;var P=X*16843009^Y*65537^w*257^A*16843008;d[M]=P<<24|P>>>8,u[M]=P<<16|P>>>16,f[M]=P<<8|P>>>24,x[M]=P,A?(A=w^g[g[g[X^w]]],N^=g[g[N]]):A=N=1}})();var C=[0,1,2,4,8,16,32,64,128,27,54],b=_.AES=O.extend({_doReset:function(){var g;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var E=this._keyPriorReset=this._key,A=E.words,N=E.sigBytes/4,M=this._nRounds=N+6,w=(M+1)*4,Y=this._keySchedule=[],X=0;X<w;X++)X<N?Y[X]=A[X]:(g=Y[X-1],X%N?N>6&&X%N==4&&(g=y[g>>>24]<<24|y[g>>>16&255]<<16|y[g>>>8&255]<<8|y[g&255]):(g=g<<8|g>>>24,g=y[g>>>24]<<24|y[g>>>16&255]<<16|y[g>>>8&255]<<8|y[g&255],g^=C[X/N|0]<<24),Y[X]=Y[X-N]^g);for(var P=this._invKeySchedule=[],H=0;H<w;H++){var X=w-H;if(H%4)var g=Y[X];else var g=Y[X-4];H<4||X<=4?P[H]=g:P[H]=d[y[g>>>24]]^u[y[g>>>16&255]]^f[y[g>>>8&255]]^x[y[g&255]]}},encryptBlock:function(g,E){this._doCryptBlock(g,E,this._keySchedule,c,l,s,r,y)},decryptBlock:function(g,E){var A=g[E+1];g[E+1]=g[E+3],g[E+3]=A,this._doCryptBlock(g,E,this._invKeySchedule,d,u,f,x,v);var A=g[E+1];g[E+1]=g[E+3],g[E+3]=A},_doCryptBlock:function(g,E,A,N,M,w,Y,X){for(var P=this._nRounds,H=g[E]^A[0],G=g[E+1]^A[1],$=g[E+2]^A[2],he=g[E+3]^A[3],de=4,J=1;J<P;J++){var fe=N[H>>>24]^M[G>>>16&255]^w[$>>>8&255]^Y[he&255]^A[de++],q=N[G>>>24]^M[$>>>16&255]^w[he>>>8&255]^Y[H&255]^A[de++],U=N[$>>>24]^M[he>>>16&255]^w[H>>>8&255]^Y[G&255]^A[de++],z=N[he>>>24]^M[H>>>16&255]^w[G>>>8&255]^Y[$&255]^A[de++];H=fe,G=q,$=U,he=z}var fe=(X[H>>>24]<<24|X[G>>>16&255]<<16|X[$>>>8&255]<<8|X[he&255])^A[de++],q=(X[G>>>24]<<24|X[$>>>16&255]<<16|X[he>>>8&255]<<8|X[H&255])^A[de++],U=(X[$>>>24]<<24|X[he>>>16&255]<<16|X[H>>>8&255]<<8|X[G&255])^A[de++],z=(X[he>>>24]<<24|X[H>>>16&255]<<16|X[G>>>8&255]<<8|X[$&255])^A[de++];g[E]=fe,g[E+1]=q,g[E+2]=U,g[E+3]=z},keySize:256/32});a.AES=O._createHelper(b)}(),m.AES})},wbyO:function(h,F,o){(function(m,a){h.exports=F=a(o("Ib8C"))})(this,function(m){return function(){var a=m,D=a.lib,O=D.WordArray,_=a.enc,y=_.Base64url={stringify:function(c,l=!0){var s=c.words,r=c.sigBytes,d=l?this._safe_map:this._map;c.clamp();for(var u=[],f=0;f<r;f+=3)for(var x=s[f>>>2]>>>24-f%4*8&255,C=s[f+1>>>2]>>>24-(f+1)%4*8&255,b=s[f+2>>>2]>>>24-(f+2)%4*8&255,g=x<<16|C<<8|b,E=0;E<4&&f+E*.75<r;E++)u.push(d.charAt(g>>>6*(3-E)&63));var A=d.charAt(64);if(A)for(;u.length%4;)u.push(A);return u.join("")},parse:function(c,l=!0){var s=c.length,r=l?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var u=0;u<r.length;u++)d[r.charCodeAt(u)]=u}var f=r.charAt(64);if(f){var x=c.indexOf(f);x!==-1&&(s=x)}return v(c,s,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function v(c,l,s){for(var r=[],d=0,u=0;u<l;u++)if(u%4){var f=s[c.charCodeAt(u-1)]<<u%4*2,x=s[c.charCodeAt(u)]>>>6-u%4*2,C=f|x;r[d>>>2]|=C<<24-d%4*8,d++}return O.create(r,d)}}(),m.enc.Base64url})},ynwM:function(h,F,o){var m=o("MFOe"),a=m.Global;h.exports={name:"oldFF-globalStorage",read:O,write:_,each:y,remove:v,clearAll:c};var D=a.globalStorage;function O(l){return D[l]}function _(l,s){D[l]=s}function y(l){for(var s=D.length-1;s>=0;s--){var r=D.key(s);l(D[r],r)}}function v(l){return D.removeItem(l)}function c(){y(function(l,s){delete D[l]})}}}]);
|