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

213 lines
980 KiB

This file contains invisible Unicode characters!

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

(window.webpackJsonp=window.webpackJsonp||[]).push([[180,6,7,11,16,19],{"+NIl":function(s,z,d){(function(h){h(d("VrN/"))})(function(h){"use strict";h.defineMode("stex",function(a,T){"use strict";function _(g,E){g.cmdState.push(E)}function x(g){return g.cmdState.length>0?g.cmdState[g.cmdState.length-1]:null}function p(g){var E=g.cmdState.pop();E&&E.closeBracket()}function f(g){for(var E=g.cmdState,w=E.length-1;w>=0;w--){var O=E[w];if(O.name=="DEFAULT")continue;return O}return{styleIdentifier:function(){return null}}}function o(g,E,w){return function(){this.name=g,this.bracketNo=0,this.style=E,this.styles=w,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var i={};i.importmodule=o("importmodule","tag",["string","builtin"]),i.documentclass=o("documentclass","tag",["","atom"]),i.usepackage=o("usepackage","tag",["atom"]),i.begin=o("begin","tag",["atom"]),i.end=o("end","tag",["atom"]),i.label=o("label","tag",["atom"]),i.ref=o("ref","tag",["atom"]),i.eqref=o("eqref","tag",["atom"]),i.cite=o("cite","tag",["atom"]),i.bibitem=o("bibitem","tag",["atom"]),i.Bibitem=o("Bibitem","tag",["atom"]),i.RBibitem=o("RBibitem","tag",["atom"]),i.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function u(g,E){g.f=E}function l(g,E){var w;if(g.match(/^\\[a-zA-Z@]+/)){var O=g.current().slice(1);return w=i.hasOwnProperty(O)?i[O]:i.DEFAULT,w=new w,_(E,w),u(E,m),w.style}if(g.match(/^\\[$&%#{}_]/))return"tag";if(g.match(/^\\[,;!\/\\]/))return"tag";if(g.match("\\["))return u(E,function(M,N){return v(M,N,"\\]")}),"keyword";if(g.match("\\("))return u(E,function(M,N){return v(M,N,"\\)")}),"keyword";if(g.match("$$"))return u(E,function(M,N){return v(M,N,"$$")}),"keyword";if(g.match("$"))return u(E,function(M,N){return v(M,N,"$")}),"keyword";var C=g.next();if(C=="%")return g.skipToEnd(),"comment";if(C=="}"||C=="]"){if(w=x(E),w)w.closeBracket(C),u(E,m);else return"error";return"bracket"}else return C=="{"||C=="["?(w=i.DEFAULT,w=new w,_(E,w),"bracket"):/\d/.test(C)?(g.eatWhile(/[\w.%]/),"atom"):(g.eatWhile(/[\w\-_]/),w=f(E),w.name=="begin"&&(w.argument=g.current()),w.styleIdentifier())}function v(g,E,w){if(g.eatSpace())return null;if(w&&g.match(w))return u(E,l),"keyword";if(g.match(/^\\[a-zA-Z@]+/))return"tag";if(g.match(/^[a-zA-Z]+/))return"variable-2";if(g.match(/^\\[$&%#{}_]/))return"tag";if(g.match(/^\\[,;!\/]/))return"tag";if(g.match(/^[\^_&]/))return"tag";if(g.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(g.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var O=g.next();return O=="{"||O=="}"||O=="["||O=="]"||O=="("||O==")"?"bracket":O=="%"?(g.skipToEnd(),"comment"):"error"}function m(g,E){var w=g.peek(),O;return w=="{"||w=="["?(O=x(E),O.openBracket(w),g.eat(w),u(E,l),"bracket"):/[ \t\r]/.test(w)?(g.eat(w),null):(u(E,l),p(E),l(g,E))}return{startState:function(){var g=T.inMathMode?function(E,w){return v(E,w)}:l;return{cmdState:[],f:g}},copyState:function(g){return{cmdState:g.cmdState.slice(),f:g.f}},token:function(g,E){return E.f(g,E)},blankLine:function(g){g.f=l,g.cmdState.length=0},lineComment:"%"}}),h.defineMIME("text/x-stex","stex"),h.defineMIME("text/x-latex","stex")})},"19Vz":function(s,z,d){(function(h){h(d("VrN/"))})(function(h){h.defineOption("placeholder","",function(o,i,u){var l=u&&u!=h.Init;if(i&&!l)o.on("blur",x),o.on("change",p),o.on("swapDoc",p),h.on(o.getInputField(),"compositionupdate",o.state.placeholderCompose=function(){_(o)}),p(o);else if(!i&&l){o.off("blur",x),o.off("change",p),o.off("swapDoc",p),h.off(o.getInputField(),"compositionupdate",o.state.placeholderCompose),a(o);var v=o.getWrapperElement();v.className=v.className.replace(" CodeMirror-empty","")}i&&!o.hasFocus()&&x(o)});function a(o){o.state.placeholder&&(o.state.placeholder.parentNode.removeChild(o.state.placeholder),o.state.placeholder=null)}function T(o){a(o);var i=o.state.placeholder=document.createElement("pre");i.style.cssText="height: 0; overflow: visible",i.style.direction=o.getOption("direction"),i.className="CodeMirror-placeholder CodeMirror-line-like";var u=o.getOption("placeholder");typeof u=="string"&&(u=document.createTextNode(u)),i.appendChild(u),o.display.lineSpace.insertBefore(i,o.display.lineSpace.firstChild)}function _(o){setTimeout(function(){var i=!1,u=o.getInputField();u.nodeName=="TEXTAREA"?i=!u.value:o.lineCount()==1&&(i=!/[^\u200b]/.test(u.querySelector(".CodeMirror-line").textContent)),i?T(o):a(o)},20)}function x(o){f(o)&&T(o)}function p(o){var i=o.getWrapperElement(),u=f(o);i.className=i.className.replace(" CodeMirror-empty","")+(u?" CodeMirror-empty":""),u?T(o):a(o)}function f(o){return o.lineCount()===1&&o.getLine(0)===""}})},"1eCo":function(s,z,d){(function(h){h(d("VrN/"))})(function(h){"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},T={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};h.defineMode("xml",function(_,x){var p=_.indentUnit,f={},o=x.htmlMode?a:T;for(var i in o)f[i]=o[i];for(var i in x)f[i]=x[i];var u,l;function v(J,ae){function se(q){return ae.tokenize=q,q(J,ae)}var G=J.next();if(G=="<")return J.eat("!")?J.eat("[")?J.match("CDATA[")?se(E("atom","]]>")):null:J.match("--")?se(E("comment","-->")):J.match("DOCTYPE",!0,!0)?(J.eatWhile(/[\w\._\-]/),se(w(1))):null:J.eat("?")?(J.eatWhile(/[\w\._\-]/),ae.tokenize=E("meta","?>"),"meta"):(u=J.eat("/")?"closeTag":"openTag",ae.tokenize=m,"tag bracket");if(G=="&"){var he;return J.eat("#")?J.eat("x")?he=J.eatWhile(/[a-fA-F\d]/)&&J.eat(";"):he=J.eatWhile(/[\d]/)&&J.eat(";"):he=J.eatWhile(/[\w\.\-:]/)&&J.eat(";"),he?"atom":"error"}else return J.eatWhile(/[^&<]/),null}v.isInText=!0;function m(J,ae){var se=J.next();if(se==">"||se=="/"&&J.eat(">"))return ae.tokenize=v,u=se==">"?"endTag":"selfcloseTag","tag bracket";if(se=="=")return u="equals",null;if(se=="<"){ae.tokenize=v,ae.state=N,ae.tagName=ae.tagStart=null;var G=ae.tokenize(J,ae);return G?G+" tag error":"tag error"}else return/[\'\"]/.test(se)?(ae.tokenize=g(se),ae.stringStartCol=J.column(),ae.tokenize(J,ae)):(J.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function g(J){var ae=function(se,G){for(;!se.eol();)if(se.next()==J){G.tokenize=m;break}return"string"};return ae.isInAttribute=!0,ae}function E(J,ae){return function(se,G){for(;!se.eol();){if(se.match(ae)){G.tokenize=v;break}se.next()}return J}}function w(J){return function(ae,se){for(var G;(G=ae.next())!=null;){if(G=="<")return se.tokenize=w(J+1),se.tokenize(ae,se);if(G==">")if(J==1){se.tokenize=v;break}else return se.tokenize=w(J-1),se.tokenize(ae,se)}return"meta"}}function O(J,ae,se){this.prev=J.context,this.tagName=ae,this.indent=J.indented,this.startOfLine=se,(f.doNotIndent.hasOwnProperty(ae)||J.context&&J.context.noIndent)&&(this.noIndent=!0)}function C(J){J.context&&(J.context=J.context.prev)}function M(J,ae){for(var se;;){if(!J.context)return;if(se=J.context.tagName,!f.contextGrabbers.hasOwnProperty(se)||!f.contextGrabbers[se].hasOwnProperty(ae))return;C(J)}}function N(J,ae,se){return J=="openTag"?(se.tagStart=ae.column(),P):J=="closeTag"?k:N}function P(J,ae,se){return J=="word"?(se.tagName=ae.current(),l="tag",X):f.allowMissingTagName&&J=="endTag"?(l="tag bracket",X(J,ae,se)):(l="error",P)}function k(J,ae,se){if(J=="word"){var G=ae.current();return se.context&&se.context.tagName!=G&&f.implicitlyClosed.hasOwnProperty(se.context.tagName)&&C(se),se.context&&se.context.tagName==G||f.matchClosing===!1?(l="tag",b):(l="tag error",V)}else return f.allowMissingTagName&&J=="endTag"?(l="tag bracket",b(J,ae,se)):(l="error",V)}function b(J,ae,se){return J!="endTag"?(l="error",b):(C(se),N)}function V(J,ae,se){return l="error",b(J,ae,se)}function X(J,ae,se){if(J=="word")return l="attribute",D;if(J=="endTag"||J=="selfcloseTag"){var G=se.tagName,he=se.tagStart;return se.tagName=se.tagStart=null,J=="selfcloseTag"||f.autoSelfClosers.hasOwnProperty(G)?M(se,G):(M(se,G),se.context=new O(se,G,he==se.indented)),N}return l="error",X}function D(J,ae,se){return J=="equals"?L:(f.allowMissing||(l="error"),X(J,ae,se))}function L(J,ae,se){return J=="string"?U:J=="word"&&f.allowUnquoted?(l="string",X):(l="error",X(J,ae,se))}function U(J,ae,se){return J=="string"?U:X(J,ae,se)}return{startState:function(J){var ae={tokenize:v,state:N,indented:J||0,tagName:null,tagStart:null,context:null};return J!=null&&(ae.baseIndent=J),ae},token:function(J,ae){if(!ae.tagName&&J.sol()&&(ae.indented=J.indentation()),J.eatSpace())return null;u=null;var se=ae.tokenize(J,ae);return(se||u)&&se!="comment"&&(l=null,ae.state=ae.state(u||se,J,ae),l&&(se=l=="error"?se+" error":l)),se},indent:function(J,ae,se){var G=J.context;if(J.tokenize.isInAttribute)return J.tagStart==J.indented?J.stringStartCol+1:J.indented+p;if(G&&G.noIndent)return h.Pass;if(J.tokenize!=m&&J.tokenize!=v)return se?se.match(/^(\s*)/)[0].length:0;if(J.tagName)return f.multilineTagIndentPastTag!==!1?J.tagStart+J.tagName.length+2:J.tagStart+p*(f.multilineTagIndentFactor||1);if(f.alignCDATA&&/<!\[CDATA\[/.test(ae))return 0;var he=ae&&/^<(\/)?([\w_:\.-]*)/.exec(ae);if(he&&he[1])for(;G;)if(G.tagName==he[2]){G=G.prev;break}else if(f.implicitlyClosed.hasOwnProperty(G.tagName))G=G.prev;else break;else if(he)for(;G;){var q=f.contextGrabbers[G.tagName];if(q&&q.hasOwnProperty(he[2]))G=G.prev;else break}for(;G&&G.prev&&!G.startOfLine;)G=G.prev;return G?G.indent+p:J.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:f.htmlMode?"html":"xml",helperType:f.htmlMode?"html":"xml",skipAttribute:function(J){J.state==L&&(J.state=X)},xmlCurrentTag:function(J){return J.tagName?{name:J.tagName,close:J.type=="closeTag"}:null},xmlCurrentContext:function(J){for(var ae=[],se=J.context;se;se=se.prev)se.tagName&&ae.push(se.tagName);return ae.reverse()}}}),h.defineMIME("text/xml","xml"),h.defineMIME("application/xml","xml"),h.mimeModes.hasOwnProperty("text/html")||h.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1uat":function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("MlIO"))})(this,function(h){return function(){var a=h,T=a.lib,_=T.Hasher,x=a.x64,p=x.Word,f=x.WordArray,o=a.algo;function i(){return p.create.apply(p,arguments)}var u=[i(1116352408,3609767458),i(1899447441,602891725),i(3049323471,3964484399),i(3921009573,2173295548),i(961987163,4081628472),i(1508970993,3053834265),i(2453635748,2937671579),i(2870763221,3664609560),i(3624381080,2734883394),i(310598401,1164996542),i(607225278,1323610764),i(1426881987,3590304994),i(1925078388,4068182383),i(2162078206,991336113),i(2614888103,633803317),i(3248222580,3479774868),i(3835390401,2666613458),i(4022224774,944711139),i(264347078,2341262773),i(604807628,2007800933),i(770255983,1495990901),i(1249150122,1856431235),i(1555081692,3175218132),i(1996064986,2198950837),i(2554220882,3999719339),i(2821834349,766784016),i(2952996808,2566594879),i(3210313671,3203337956),i(3336571891,1034457026),i(3584528711,2466948901),i(113926993,3758326383),i(338241895,168717936),i(666307205,1188179964),i(773529912,1546045734),i(1294757372,1522805485),i(1396182291,2643833823),i(1695183700,2343527390),i(1986661051,1014477480),i(2177026350,1206759142),i(2456956037,344077627),i(2730485921,1290863460),i(2820302411,3158454273),i(3259730800,3505952657),i(3345764771,106217008),i(3516065817,3606008344),i(3600352804,1432725776),i(4094571909,1467031594),i(275423344,851169720),i(430227734,3100823752),i(506948616,1363258195),i(659060556,3750685593),i(883997877,3785050280),i(958139571,3318307427),i(1322822218,3812723403),i(1537002063,2003034995),i(1747873779,3602036899),i(1955562222,1575990012),i(2024104815,1125592928),i(2227730452,2716904306),i(2361852424,442776044),i(2428436474,593698344),i(2756734187,3733110249),i(3204031479,2999351573),i(3329325298,3815920427),i(3391569614,3928383900),i(3515267271,566280711),i(3940187606,3454069534),i(4118630271,4000239992),i(116418474,1914138554),i(174292421,2731055270),i(289380356,3203993006),i(460393269,320620315),i(685471733,587496836),i(852142971,1086792851),i(1017036298,365543100),i(1126000580,2618297676),i(1288033470,3409855158),i(1501505948,4234509866),i(1607167915,987167468),i(1816402316,1246189591)],l=[];(function(){for(var m=0;m<80;m++)l[m]=i()})();var v=o.SHA512=_.extend({_doReset:function(){this._hash=new f.init([new p.init(1779033703,4089235720),new p.init(3144134277,2227873595),new p.init(1013904242,4271175723),new p.init(2773480762,1595750129),new p.init(1359893119,2917565137),new p.init(2600822924,725511199),new p.init(528734635,4215389547),new p.init(1541459225,327033209)])},_doProcessBlock:function(m,g){for(var E=this._hash.words,w=E[0],O=E[1],C=E[2],M=E[3],N=E[4],P=E[5],k=E[6],b=E[7],V=w.high,X=w.low,D=O.high,L=O.low,U=C.high,J=C.low,ae=M.high,se=M.low,G=N.high,he=N.low,q=P.high,W=P.low,H=k.high,R=k.low,y=b.high,A=b.low,ee=V,oe=X,de=D,be=L,xe=U,te=J,le=ae,ue=se,Z=G,ne=he,Y=q,re=W,F=H,K=R,pe=y,$=A,j=0;j<80;j++){var S,B,me=l[j];if(j<16)B=me.high=m[g+j*2]|0,S=me.low=m[g+j*2+1]|0;else{var fe=l[j-15],we=fe.high,ke=fe.low,Me=(we>>>1|ke<<31)^(we>>>8|ke<<24)^we>>>7,Ne=(ke>>>1|we<<31)^(ke>>>8|we<<24)^(ke>>>7|we<<25),Le=l[j-2],We=Le.high,Fe=Le.low,He=(We>>>19|Fe<<13)^(We<<3|Fe>>>29)^We>>>6,Oe=(Fe>>>19|We<<13)^(Fe<<3|We>>>29)^(Fe>>>6|We<<26),Ve=l[j-7],$e=Ve.high,Ue=Ve.low,Ke=l[j-16],Re=Ke.high,Te=Ke.low;S=Ne+Ue,B=Me+$e+(S>>>0<Ne>>>0?1:0),S=S+Oe,B=B+He+(S>>>0<Oe>>>0?1:0),S=S+Te,B=B+Re+(S>>>0<Te>>>0?1:0),me.high=B,me.low=S}var Ee=Z&Y^~Z&F,ve=ne&re^~ne&K,ye=ee&de^ee&xe^de&xe,_e=oe&be^oe&te^be&te,Se=(ee>>>28|oe<<4)^(ee<<30|oe>>>2)^(ee<<25|oe>>>7),Ie=(oe>>>28|ee<<4)^(oe<<30|ee>>>2)^(oe<<25|ee>>>7),De=(Z>>>14|ne<<18)^(Z>>>18|ne<<14)^(Z<<23|ne>>>9),ze=(ne>>>14|Z<<18)^(ne>>>18|Z<<14)^(ne<<23|Z>>>9),qe=u[j],tt=qe.high,ot=qe.low,nt=$+ze,pt=pe+De+(nt>>>0<$>>>0?1:0),nt=nt+ve,pt=pt+Ee+(nt>>>0<ve>>>0?1:0),nt=nt+ot,pt=pt+tt+(nt>>>0<ot>>>0?1:0),nt=nt+S,pt=pt+B+(nt>>>0<S>>>0?1:0),ft=Ie+_e,_t=Se+ye+(ft>>>0<Ie>>>0?1:0);pe=F,$=K,F=Y,K=re,Y=Z,re=ne,ne=ue+nt|0,Z=le+pt+(ne>>>0<ue>>>0?1:0)|0,le=xe,ue=te,xe=de,te=be,de=ee,be=oe,oe=nt+ft|0,ee=pt+_t+(oe>>>0<nt>>>0?1:0)|0}X=w.low=X+oe,w.high=V+ee+(X>>>0<oe>>>0?1:0),L=O.low=L+be,O.high=D+de+(L>>>0<be>>>0?1:0),J=C.low=J+te,C.high=U+xe+(J>>>0<te>>>0?1:0),se=M.low=se+ue,M.high=ae+le+(se>>>0<ue>>>0?1:0),he=N.low=he+ne,N.high=G+Z+(he>>>0<ne>>>0?1:0),W=P.low=W+re,P.high=q+Y+(W>>>0<re>>>0?1:0),R=k.low=R+K,k.high=H+F+(R>>>0<K>>>0?1:0),A=b.low=A+$,b.high=y+pe+(A>>>0<$>>>0?1:0)},_doFinalize:function(){var m=this._data,g=m.words,E=this._nDataBytes*8,w=m.sigBytes*8;g[w>>>5]|=128<<24-w%32,g[(w+128>>>10<<5)+30]=Math.floor(E/4294967296),g[(w+128>>>10<<5)+31]=E,m.sigBytes=g.length*4,this._process();var O=this._hash.toX32();return O},clone:function(){var m=_.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});a.SHA512=_._createHelper(v),a.HmacSHA512=_._createHmacHelper(v)}(),h.SHA512})},"3y9D":function(s,z,d){(function(h,a){s.exports=z=a(d("Ib8C"))})(this,function(h){return function(){var a=h,T=a.lib,_=T.WordArray,x=T.Hasher,p=a.algo,f=[],o=p.SHA1=x.extend({_doReset:function(){this._hash=new _.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(i,u){for(var l=this._hash.words,v=l[0],m=l[1],g=l[2],E=l[3],w=l[4],O=0;O<80;O++){if(O<16)f[O]=i[u+O]|0;else{var C=f[O-3]^f[O-8]^f[O-14]^f[O-16];f[O]=C<<1|C>>>31}var M=(v<<5|v>>>27)+w+f[O];O<20?M+=(m&g|~m&E)+1518500249:O<40?M+=(m^g^E)+1859775393:O<60?M+=(m&g|m&E|g&E)-1894007588:M+=(m^g^E)-899497514,w=E,E=g,g=m<<30|m>>>2,m=v,v=M}l[0]=l[0]+v|0,l[1]=l[1]+m|0,l[2]=l[2]+g|0,l[3]=l[3]+E|0,l[4]=l[4]+w|0},_doFinalize:function(){var i=this._data,u=i.words,l=this._nDataBytes*8,v=i.sigBytes*8;return u[v>>>5]|=128<<24-v%32,u[(v+64>>>9<<4)+14]=Math.floor(l/4294967296),u[(v+64>>>9<<4)+15]=l,i.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var i=x.clone.call(this);return i._hash=this._hash.clone(),i}});a.SHA1=x._createHelper(o),a.HmacSHA1=x._createHmacHelper(o)}(),h.SHA1})},4:function(s,z){},"5hvy":function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("MlIO"))})(this,function(h){return function(a){var T=h,_=T.lib,x=_.WordArray,p=_.Hasher,f=T.x64,o=f.Word,i=T.algo,u=[],l=[],v=[];(function(){for(var E=1,w=0,O=0;O<24;O++){u[E+5*w]=(O+1)*(O+2)/2%64;var C=w%5,M=(2*E+3*w)%5;E=C,w=M}for(var E=0;E<5;E++)for(var w=0;w<5;w++)l[E+5*w]=w+(2*E+3*w)%5*5;for(var N=1,P=0;P<24;P++){for(var k=0,b=0,V=0;V<7;V++){if(N&1){var X=(1<<V)-1;X<32?b^=1<<X:k^=1<<X-32}N&128?N=N<<1^113:N<<=1}v[P]=o.create(k,b)}})();var m=[];(function(){for(var E=0;E<25;E++)m[E]=o.create()})();var g=i.SHA3=p.extend({cfg:p.cfg.extend({outputLength:512}),_doReset:function(){for(var E=this._state=[],w=0;w<25;w++)E[w]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(E,w){for(var O=this._state,C=this.blockSize/2,M=0;M<C;M++){var N=E[w+2*M],P=E[w+2*M+1];N=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360;var k=O[M];k.high^=P,k.low^=N}for(var b=0;b<24;b++){for(var V=0;V<5;V++){for(var X=0,D=0,L=0;L<5;L++){var k=O[V+5*L];X^=k.high,D^=k.low}var U=m[V];U.high=X,U.low=D}for(var V=0;V<5;V++)for(var J=m[(V+4)%5],ae=m[(V+1)%5],se=ae.high,G=ae.low,X=J.high^(se<<1|G>>>31),D=J.low^(G<<1|se>>>31),L=0;L<5;L++){var k=O[V+5*L];k.high^=X,k.low^=D}for(var he=1;he<25;he++){var X,D,k=O[he],q=k.high,W=k.low,H=u[he];H<32?(X=q<<H|W>>>32-H,D=W<<H|q>>>32-H):(X=W<<H-32|q>>>64-H,D=q<<H-32|W>>>64-H);var R=m[l[he]];R.high=X,R.low=D}var y=m[0],A=O[0];y.high=A.high,y.low=A.low;for(var V=0;V<5;V++)for(var L=0;L<5;L++){var he=V+5*L,k=O[he],ee=m[he],oe=m[(V+1)%5+5*L],de=m[(V+2)%5+5*L];k.high=ee.high^~oe.high&de.high,k.low=ee.low^~oe.low&de.low}var k=O[0],be=v[b];k.high^=be.high,k.low^=be.low}},_doFinalize:function(){var E=this._data,w=E.words,O=this._nDataBytes*8,C=E.sigBytes*8,M=this.blockSize*32;w[C>>>5]|=1<<24-C%32,w[(a.ceil((C+1)/M)*M>>>5)-1]|=128,E.sigBytes=w.length*4,this._process();for(var N=this._state,P=this.cfg.outputLength/8,k=P/8,b=[],V=0;V<k;V++){var X=N[V],D=X.high,L=X.low;D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,L=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,b.push(L),b.push(D)}return new x.init(b,P)},clone:function(){for(var E=p.clone.call(this),w=E._state=this._state.slice(0),O=0;O<25;O++)w[O]=w[O].clone();return E}});T.SHA3=p._createHelper(g),T.HmacSHA3=p._createHmacHelper(g)}(Math),h.SHA3})},"5nXd":function(s,z,d){var h=d("MFOe"),a=h.slice,T=h.pluck,_=h.each,x=h.bind,p=h.create,f=h.isList,o=h.isFunction,i=h.isObject;s.exports={createStore:v};var u={version:"2.0.12",enabled:!1,get:function(m,g){var E=this.storage.read(this._namespacePrefix+m);return this._deserialize(E,g)},set:function(m,g){return g===void 0?this.remove(m):(this.storage.write(this._namespacePrefix+m,this._serialize(g)),g)},remove:function(m){this.storage.remove(this._namespacePrefix+m)},each:function(m){var g=this;this.storage.each(function(E,w){m.call(g,g._deserialize(E),(w||"").replace(g._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(m){return this._namespacePrefix=="__storejs_"+m+"_"},createStore:function(){return v.apply(this,arguments)},addPlugin:function(m){this._addPlugin(m)},namespace:function(m){return v(this.storage,this.plugins,m)}};function l(){var m=typeof console=="undefined"?null:console;if(!m)return;var g=m.warn?m.warn:m.log;g.apply(m,arguments)}function v(m,g,E){E||(E=""),m&&!f(m)&&(m=[m]),g&&!f(g)&&(g=[g]);var w=E?"__storejs_"+E+"_":"",O=E?new RegExp("^"+w):null,C=/^[a-zA-Z0-9_\-]*$/;if(!C.test(E))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var M={_namespacePrefix:w,_namespaceRegexp:O,_testStorage:function(P){try{var k="__storejs__test__";P.write(k,k);var b=P.read(k)===k;return P.remove(k),b}catch(V){return!1}},_assignPluginFnProp:function(P,k){var b=this[k];this[k]=function(){var X=a(arguments,0),D=this;function L(){return b?(_(arguments,function(J,ae){X[ae]=J}),b.apply(D,X)):void 0}var U=[L].concat(X);return P.apply(D,U)}},_serialize:function(P){return JSON.stringify(P)},_deserialize:function(P,k){if(!P)return k;var b="";try{b=JSON.parse(P)}catch(V){b=P}return b!==void 0?b:k},_addStorage:function(P){if(this.enabled)return;this._testStorage(P)&&(this.storage=P,this.enabled=!0)},_addPlugin:function(P){var k=this;if(f(P)){_(P,function(X){k._addPlugin(X)});return}var b=T(this.plugins,function(X){return P===X});if(b)return;if(this.plugins.push(P),!o(P))throw new Error("Plugins must be function values that return objects");var V=P.call(this);if(!i(V))throw new Error("Plugins must return an object of function properties");_(V,function(X,D){if(!o(X))throw new Error("Bad plugin property: "+D+" from plugin "+P.name+". Plugins should only return functions.");k._assignPluginFnProp(X,D)})},addStorage:function(P){l("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(P)}},N=p(M,u,{plugins:[]});return N.raw={},_(N,function(P,k){o(P)&&(N.raw[k]=x(N,P))}),_(m,function(P){N._addStorage(P)}),_(g,function(P){N._addPlugin(P)}),N}},"7Cbv":function(s,z,d){"use strict";var h=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 T(){if(!h)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return h(a)}var _=/^(?:[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 x(m){return typeof m=="string"&&_.test(m)}for(var p=x,f=[],o=0;o<256;++o)f.push((o+256).toString(16).substr(1));function i(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,E=(f[m[g+0]]+f[m[g+1]]+f[m[g+2]]+f[m[g+3]]+"-"+f[m[g+4]]+f[m[g+5]]+"-"+f[m[g+6]]+f[m[g+7]]+"-"+f[m[g+8]]+f[m[g+9]]+"-"+f[m[g+10]]+f[m[g+11]]+f[m[g+12]]+f[m[g+13]]+f[m[g+14]]+f[m[g+15]]).toLowerCase();if(!p(E))throw TypeError("Stringified UUID is invalid");return E}var u=i;function l(m,g,E){m=m||{};var w=m.random||(m.rng||T)();if(w[6]=w[6]&15|64,w[8]=w[8]&63|128,g){E=E||0;for(var O=0;O<16;++O)g[E+O]=w[O];return g}return u(w)}var v=z.a=l},"7ahc":function(s,z,d){"use strict";d.d(z,"a",function(){return P});var h=d("k1fw"),a=d("0Owb"),T=d("+L6B"),_=d("2/Rp"),x=d("y8nQ"),p=d("Vl3Y"),f=d("tJVT"),o=d("OaEy"),i=d("2fM7"),u=d("q1tI"),l=d.n(u),v=d("VrN/"),m=d.n(v),g=d("p77/"),E=d.n(g),w=d("c5Ni"),O=d.n(w),C=i.a.Option,M={labelCol:{span:4},wrapperCol:{span:20}},N={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"]};z.b=function(k){var b=k.callback,V=k.onCancel,X=Object(u.useState)("python"),D=Object(f.a)(X,2),L=D[0],U=D[1];function J(se){U(N[se][1])}function ae(se){b(se)}return l.a.createElement(p.a,Object(a.a)({},M,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ae}),l.a.createElement(p.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},l.a.createElement(i.a,{onChange:J},Object.keys(N).map(function(se){return l.a.createElement(C,{key:se,value:se},N[se][0])}))),l.a.createElement(p.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},l.a.createElement(P,{mode:L})),l.a.createElement("div",{className:"flex-container flex-end"},l.a.createElement(_.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),l.a.createElement(_.a,{type:"ghost",onClick:V},"\u53D6\u6D88")))};function P(k){var b=k.value,V=k.onChange,X=k.mode,D=k.options,L=D===void 0?{}:D,U=Object(u.useRef)(),J=Object(u.useState)(),ae=Object(f.a)(J,2),se=ae[0],G=ae[1];return Object(u.useEffect)(function(){if(se){function he(q){var W=q.getValue();V&&V(W)}return se.on("change",he),function(){se.off("change",he)}}},[se,V]),Object(u.useEffect)(function(){se&&se.setOption("mode",X)},[se,X]),Object(u.useEffect)(function(){se&&((b!==se.getValue()||b==="")&&setTimeout(function(){se.setValue(b||" ")},300))},[se,b]),Object(u.useEffect)(function(){if(U.current&&!se){var he=m.a.fromTextArea(U.current,Object(h.a)({mode:X,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},L));G(he)}},[U.current,se]),l.a.createElement("div",{className:"my-codemirror-container"},l.a.createElement("textarea",{ref:U}))}},"7ixt":function(s,z,d){"use strict";d.d(z,"a",function(){return T});var h={adjustX:1,adjustY:1},a=[0,0],T={left:{points:["cr","cl"],overflow:h,offset:[-4,0],targetOffset:a},right:{points:["cl","cr"],overflow:h,offset:[4,0],targetOffset:a},top:{points:["bc","tc"],overflow:h,offset:[0,-4],targetOffset:a},bottom:{points:["tc","bc"],overflow:h,offset:[0,4],targetOffset:a},topLeft:{points:["bl","tl"],overflow:h,offset:[0,-4],targetOffset:a},leftTop:{points:["tr","tl"],overflow:h,offset:[-4,0],targetOffset:a},topRight:{points:["br","tr"],overflow:h,offset:[0,-4],targetOffset:a},rightTop:{points:["tl","tr"],overflow:h,offset:[4,0],targetOffset:a},bottomRight:{points:["tr","br"],overflow:h,offset:[0,4],targetOffset:a},rightBottom:{points:["bl","br"],overflow:h,offset:[4,0],targetOffset:a},bottomLeft:{points:["tl","bl"],overflow:h,offset:[0,4],targetOffset:a},leftBottom:{points:["br","bl"],overflow:h,offset:[-4,0],targetOffset:a}},_=T},"815F":function(s,z,d){"use strict";d.d(z,"e",function(){return f}),d.d(z,"c",function(){return i}),d.d(z,"d",function(){return u}),d.d(z,"a",function(){return v}),d.d(z,"f",function(){return m}),d.d(z,"b",function(){return g});var h=d("KQm4"),a=d("VTBJ"),T=d("Ff2n"),_=d("Zm9Q"),x=d("Kwbf"),p=d("OZM5");function f(E,w){return E!=null?E:w}function o(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=new Map;function O(C){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(C||[]).forEach(function(N){var P=N.key,k=N.children;Object(x.a)(P!=null,"Tree node must have a certain key: [".concat(M).concat(P,"]"));var b=String(P);Object(x.a)(!w.has(b)||P===null||P===void 0,"Same 'key' exist in the Tree: ".concat(b)),w.set(b,!0),O(k,"".concat(M).concat(b," > "))})}O(E)}function i(E){function w(O){var C=Object(_.a)(O);return C.map(function(M){if(!Object(p.i)(M))return Object(x.a)(!M,"Tree/TreeNode can only accept TreeNode as children."),null;var N=M.key,P=M.props,k=P.children,b=Object(T.a)(P,["children"]),V=Object(a.a)({key:N},b),X=w(k);return X.length&&(V.children=X),V}).filter(function(M){return M})}return w(E)}function u(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],O=new Set(w===!0?[]:w),C=[];function M(N){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return N.map(function(k,b){var V=Object(p.h)(P?P.pos:"0",b),X=f(k.key,V),D=Object(a.a)(Object(a.a)({},k),{},{parent:P,pos:V,children:null,data:k,isStart:[].concat(Object(h.a)(P?P.isStart:[]),[b===0]),isEnd:[].concat(Object(h.a)(P?P.isEnd:[]),[b===N.length-1])});return C.push(D),w===!0||O.has(X)?D.children=M(k.children||[],D):D.children=[],D})}return M(E),C}function l(E,w,O){var C;O?typeof O=="string"?C=function(P){return P[O]}:typeof O=="function"&&(C=function(P){return O(P)}):C=function(P,k){return f(P.key,k)};function M(N,P,k){var b=N?N.children:E,V=N?Object(p.h)(k.pos,P):"0";if(N){var X=C(N,V),D={node:N,index:P,pos:V,key:X,parentPos:k.node?k.pos:null,level:k.level+1};w(D)}b&&b.forEach(function(L,U){M(L,U,{node:N,pos:V,level:k?k.level+1:-1})})}M(null)}function v(E){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=w.initWrapper,C=w.processEntity,M=w.onProcessFinished,N=arguments.length>2?arguments[2]:void 0,P={},k={},b={posEntities:P,keyEntities:k};return O&&(b=O(b)||b),l(E,function(V){var X=V.node,D=V.index,L=V.pos,U=V.key,J=V.parentPos,ae=V.level,se={node:X,index:D,key:U,pos:L,level:ae},G=f(U,L);P[L]=se,k[G]=se,se.parent=P[J],se.parent&&(se.parent.children=se.parent.children||[],se.parent.children.push(se)),C&&C(se,b)},N),M&&M(b),b}function m(E,w){var O=w.expandedKeys,C=w.selectedKeys,M=w.loadedKeys,N=w.loadingKeys,P=w.checkedKeys,k=w.halfCheckedKeys,b=w.dragOverNodeKey,V=w.dropPosition,X=w.keyEntities,D=X[E],L={eventKey:E,expanded:O.indexOf(E)!==-1,selected:C.indexOf(E)!==-1,loaded:M.indexOf(E)!==-1,loading:N.indexOf(E)!==-1,checked:P.indexOf(E)!==-1,halfChecked:k.indexOf(E)!==-1,pos:String(D?D.pos:""),dragOver:b===E&&V===0,dragOverGapTop:b===E&&V===-1,dragOverGapBottom:b===E&&V===1};return L}function g(E){var w=E.data,O=E.expanded,C=E.selected,M=E.checked,N=E.loaded,P=E.loading,k=E.halfChecked,b=E.dragOver,V=E.dragOverGapTop,X=E.dragOverGapBottom,D=E.pos,L=E.active,U=Object(a.a)(Object(a.a)({},w),{},{expanded:O,selected:C,checked:M,loaded:N,loading:P,halfChecked:k,dragOver:b,dragOverGapTop:V,dragOverGapBottom:X,pos:D,active:L});return"props"in U||Object.defineProperty(U,"props",{get:function(){return Object(x.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),E}}),U}},"8EBN":function(s,z,d){(function(h){h(d("VrN/"))})(function(h){"use strict";h.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<h.modeInfo.length;a++){var T=h.modeInfo[a];T.mimes&&(T.mime=T.mimes[0])}h.findModeByMIME=function(_){_=_.toLowerCase();for(var x=0;x<h.modeInfo.length;x++){var p=h.modeInfo[x];if(p.mime==_)return p;if(p.mimes){for(var f=0;f<p.mimes.length;f++)if(p.mimes[f]==_)return p}}if(/\+xml$/.test(_))return h.findModeByMIME("application/xml");if(/\+json$/.test(_))return h.findModeByMIME("application/json")},h.findModeByExtension=function(_){_=_.toLowerCase();for(var x=0;x<h.modeInfo.length;x++){var p=h.modeInfo[x];if(p.ext){for(var f=0;f<p.ext.length;f++)if(p.ext[f]==_)return p}}},h.findModeByFileName=function(_){for(var x=0;x<h.modeInfo.length;x++){var p=h.modeInfo[x];if(p.file&&p.file.test(_))return p}var f=_.lastIndexOf("."),o=f>-1&&_.substring(f+1,_.length);if(o)return h.findModeByExtension(o)},h.findModeByName=function(_){_=_.toLowerCase();for(var x=0;x<h.modeInfo.length;x++){var p=h.modeInfo[x];if(p.name.toLowerCase()==_)return p;if(p.alias){for(var f=0;f<p.alias.length;f++)if(p.alias[f].toLowerCase()==_)return p}}}})},"9Bee":function(s,z,d){"use strict";var h=d("k1fw"),a=d("tJVT"),T=d("q1tI"),_=d.n(T),x=d("vg9a"),p=d("DlQD"),f=d.n(p),o=d("rUJ1");function i(A,ee){var oe=A.match(/^(\s+)(?:```)/);if(oe===null)return ee;var de=oe[1];return ee.split(`
`).map(function(be){var xe=be.match(/^\s+/);if(xe===null)return be;var te=Object(a.a)(xe,1),le=te[0];return le.length>=de.length?be.slice(de.length):be}).join(`
`)}var u=[],l=["<ul>"],v=new f.a.Renderer,m=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function g(){u.length=0,l=["<ul>"]}var E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function w(A,ee,oe,de){if(ee>=A.length||A[ee].level<=oe)return ee;var be=A[ee];de.push("<li><a href='#"+be.anchor+"'>"+be.text+"</a>"),ee++;var xe=[];return ee=w(A,ee,be.level,xe),xe.length>0&&(de.push("<ul>"),xe.forEach(function(te){de.push(te)}),de.push("</ul>")),de.push("</li>"),ee=w(A,ee,oe,de),ee}function O(){return w(u,0,0,l),l.push("</ul>"),l.join("")}var C={heading:function(ee){var oe=m.exec(ee);if(oe)return{type:"heading",raw:oe[0],depth:oe[1].length,text:oe[2]}},fences:function(ee){var oe=this.rules.block.fences.exec(ee);if(oe){var de=oe[0],be=i(de,oe[3]||""),xe=oe[2]?oe[2].trim():oe[2];if(["latex","katex","math"].indexOf(xe)>=0){var te=P(),le=be;be=te,k[te]={type:"block",expression:le}}return{type:"code",raw:de,lang:xe,text:be}}}},M=/(?:\${2})([^\n`]+?)(?:\${2})/gi,N=0,P=function(){return"__special_katext_id_".concat(N++,"__")},k={};function b(){return k}function V(){N=0,k={}}function X(A){return A=A.replace(M,function(ee,oe){var de=P();return k[de]={type:"inline",expression:oe},de}),A}var D=v.listitem;v.listitem=function(A){return D(X(A))};var L=v.paragraph;v.paragraph=function(A){return L(X(A))};var U=v.tablecell;v.tablecell=function(A,ee){return U(X(A),ee)},v.code=function(A,ee,oe){var de=(ee||"").match(/\S*/)[0];return de?["latex","katex","math"].indexOf(de)>=0?"<p class='editormd-tex'>".concat(A,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(ee,'">').concat(oe?A:Object(o.escape)(A,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(oe?A:Object(o.escape)(A,!0))+"</code></pre>"},v.heading=function(A,ee,oe){var de=this.options.headerPrefix+oe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return u.push({anchor:de,level:ee,text:A}),"<h"+ee+' id="'+de+'">'+A+"</h"+ee+">"},f.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),f.a.use({tokenizer:C,renderer:v});var J=f.a,ae=d("SJMd"),se=d("ulZh"),G=d.n(se),he=d("m3rI"),q=d("Oy/b"),W=d("p5ED"),H=/<pre[^>]*>/g;function R(A){var ee=document.createElement("div");return ee.innerHTML=A,ee.childNodes.length===0?"":ee.childNodes[0].nodeValue}var y=z.a=function(A){var ee,oe=A.value,de=oe===void 0?"":oe,be=A.className,xe=A.showTextOnly,te=A.showLines,le=A.style,ue=le===void 0?{}:le,Z=A.stylesPrev,ne=Z===void 0?{}:Z,Y=(ee=String(de))===null||ee===void 0?void 0:ee.replace(/<script.*?>|<\/script>/gi,"").replace(/on\w+="[^"]*"/gi,""),re=Object(T.useState)(""),F=Object(a.a)(re,2),K=F[0],pe=F[1],$=Object(T.useMemo)(function(){try{var me=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,fe=/\"\/api\/attachments\/|\"\/attachments\/download\//g,we=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Y=Y.replace(me,"("+he.a.API_SERVER+"/api/attachments/").replace(fe,'"'+he.a.API_SERVER+"/api/attachments/").replace(we,'"'+he.a.API_SERVER+"/files/uploads/").replace(/\r\n/g,`
`),Y=Y.replace(new RegExp("(?<!\\n)\\n(?!\\n)","g"),`
`)}catch(Le){}var ke=J(Y),Me=b();if(Y.match(/\[TOC\]/)&&(ke=ke.replace("<p>[TOC]</p>",O()),g()),ke=ke.replace(/(__special_katext_id_\d+__)/g,function(Le,We){var Fe=Me[We],He=Fe.type,Oe=Fe.expression;return Object(q.renderToString)(R(Oe)||"",{displayMode:He==="block",throwOnError:!1,output:"html"})}),ke=ke.replace(/▁/g,"\u2581\u2581\u2581"),V(),xe){var Ne=document.createElement("div");return Ne.innerHTML=ke,Ne.innerText}return setTimeout(function(){return B()},500),ke},[Y]),j=Object(T.useRef)();E.WebkitLineClamp=te,te&&(ue=Object(h.a)(Object(h.a)({},ue),E));function S(me){var fe=me.target;if(fe.tagName.toUpperCase()==="A"){var we=fe.getAttribute("href");if(we.indexOf("office")>-1)me.preventDefault(),pe(we);else if(we.startsWith("#")){me.preventDefault();var ke=document.getElementById(we.replace("#",""));ke&&ke.scrollIntoView(!0)}}}var B=function(){var fe,we=(fe=j.current)===null||fe===void 0?void 0:fe.querySelectorAll("video");we==null||we.forEach(function(ke){if(ke.oncontextmenu=function(){return!1},ke.src.indexOf(".m3u8")>-1&&!ke.canPlayType("application/vnd.apple.mpegurl")){if(G.a.isSupported()){var Me=new G.a;Me.loadSource(ke.src),Me.attachMedia(ke)}}})};return Object(T.useEffect)(function(){if(j.current&&$&&($.match(H)&&window.PR.prettyPrint()),j.current)return j.current.addEventListener("click",S),function(){j.current.removeEventListener("click",S),V(),g()}},[$,j.current,S]),_.a.createElement(_.a.Fragment,null,_.a.createElement("div",{ref:j,style:Object(h.a)({},ue),className:"".concat(be||""," markdown-body "),dangerouslySetInnerHTML:{__html:$}}),_.a.createElement(W.a,{close:!0,data:K,type:K!=null&&K.length?"office":"",style:Object(h.a)({},ne),onClose:function(){return pe("")}}))}},"9OqN":function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("OLod"))})(this,function(h){return h.mode.CTR=function(){var a=h.lib.BlockCipherMode.extend(),T=a.Encryptor=a.extend({processBlock:function(_,x){var p=this._cipher,f=p.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var u=i.slice(0);p.encryptBlock(u,0),i[f-1]=i[f-1]+1|0;for(var l=0;l<f;l++)_[x+l]^=u[l]}});return a.Decryptor=T,a}(),h.mode.CTR})},"9VGf":function(s,z,d){"use strict";d.d(z,"a",function(){return T});var h=d("q1tI"),a=d.n(h);function T(_,x){var p=Object(h.useRef)();Object(h.useEffect)(function(){p.current=_}),Object(h.useEffect)(function(){function f(){p.current()}if(x!==null){var o=setInterval(f,x);return function(){return clearInterval(o)}}},[x])}},ALsQ:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("OLod"))})(this,function(h){return h.mode.CFB=function(){var a=h.lib.BlockCipherMode.extend();a.Encryptor=a.extend({processBlock:function(_,x){var p=this._cipher,f=p.blockSize;T.call(this,_,x,f,p),this._prevBlock=_.slice(x,x+f)}}),a.Decryptor=a.extend({processBlock:function(_,x){var p=this._cipher,f=p.blockSize,o=_.slice(x,x+f);T.call(this,_,x,f,p),this._prevBlock=o}});function T(_,x,p,f){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,f.encryptBlock(o,0);for(var u=0;u<p;u++)_[x+u]^=o[u]}return a}(),h.mode.CFB})},B7Ph:function(s,z,d){"use strict";d.d(z,"a",function(){return G});var h=d("5NDa"),a=d("5rEg"),T=d("+L6B"),_=d("2/Rp"),x=d("2qtc"),p=d("kLXV"),f=d("k1fw"),o=d("miYZ"),i=d("tsqr"),u=d("9og8"),l=d("tJVT"),v=d("oBTY"),m=d("DZo9"),g=d("8z0m"),E=d("WmNS"),w=d.n(E),O=d("q1tI"),C=d.n(O),M=d("Bvq2"),N=d.n(M),P=d("nj2k"),k=d.n(P),b=d("mxV5"),V=d.n(b),X=d("KhGG"),D=d("ErOA"),L=d("7Cbv"),U=d("1vsH"),J=g.a.Dragger,ae=function(q){for(var W=function(te){return te&&te.substring(0,te.lastIndexOf("."))},H=Object(v.a)(q),R=0,y=[],A=0;A<H.length;A++){for(var ee="",oe=0;oe<y.length;oe++)if(W(y[oe][0].name)==W(H[A].name)){R=1,ee=oe;break}if(R==1)y[ee].push(H[A]),R=0;else if(R==0){var de=new Array;de.push(H[A]),y.push(de)}}var be=y.map(function(xe){if(xe[0].name.includes(".in"))return xe.length===2?xe:[xe[0],{}];if(xe[0].name.includes(".out"))return xe.length===2?xe.reverse():[{},xe[0]]});return be},se=function(q){var W=q.onClose,H=q.onOK,R=q.visible,y=q.wrapClassName,A=q.rootIdentifier,ee=Object(O.useState)([]),oe=Object(l.a)(ee,2),de=oe[0],be=oe[1],xe=Object(O.useState)({}),te=Object(l.a)(xe,2),le=te[0],ue=te[1],Z=Object(O.useState)(!1),ne=Object(l.a)(Z,2),Y=ne[0],re=ne[1],F=Object(O.useRef)([]),K=Object(O.useRef)(0),pe=function(){W()};Object(O.useEffect)(function(){$()},[]),Object(O.useEffect)(function(){R&&(F.current=[],K.current=0,be([]))},[R]);var $=function(){var ke=Object(u.a)(w.a.mark(function Me(){var Ne,Le;return w.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.prev=0,Fe.next=3,Object(D.a)("/api/buckets/get_upload_token_for_big_files",{method:"get"});case 3:Ne=Fe.sent,Le=JSON.parse(Object(X.a)(Ne.data)),ue(Le),Fe.next=11;break;case 8:Fe.prev=8,Fe.t0=Fe.catch(0),i.b.error(Fe.t0);case 11:case"end":return Fe.stop()}},Me,null,[[0,8]])}));return function(){return ke.apply(this,arguments)}}(),j=function(Me){return Me&&Me.substring(0,Me.lastIndexOf("."))},S=function(Me){var Ne,Le,We=j((Ne=Me[0])===null||Ne===void 0?void 0:Ne.name)||j((Le=Me[1])===null||Le===void 0?void 0:Le.name),Fe=de.filter(function(He){return j(He.name)!==We});F.current=Object(v.a)(Fe),be(Object(v.a)(Fe))},B=function(Me){var Ne=new V.a({endpoint:le.end_point,region:le.region,accessKeyId:le.access_key_id,accessKeySecret:le.access_key_secret,bucket:le.bucket,stsToken:le.security_token}),Le=Me.name,We={container_type:"TestSet",file_name:Le},Fe=Object(L.a)(),He="testsets/".concat(A,"/").concat(Fe).concat(Le.indexOf(".")>-1?"."+Le.split(".").pop():"");A===null&&(He="testsets/".concat(Fe).concat(Le.indexOf(".")>-1?"."+Le.split(".").pop():"")),Ne.multipartUpload(He,new Blob([Me.file],{type:Me.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:Le+""},url:le==null?void 0:le.callback_url,host:le==null?void 0:le.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(D.e)(We)}}).then(function(Oe){if(Oe.data.status===0){K.current=K.current+1;var Ve=F.current.map(function(Ue){var Ke,Re;if(Ue.name===((Ke=Oe.data)===null||Ke===void 0||((Re=Ke.data)===null||Re===void 0)?void 0:Re.file_name)){var Te,Ee,ve,ye=Object(f.a)({},Ue);if((Te=Oe.data)!==null&&Te!==void 0&&(Ee=Te.data)!==null&&Ee!==void 0&&(ve=Ee.file_name)!==null&&ve!==void 0&&ve.includes(".in")){var _e,Se,Ie,De,ze,qe;ye.in_object_key=(_e=Oe.data)===null||_e===void 0||((Se=_e.data)===null||Se===void 0)?void 0:Se.object,ye.in_object_size=(Ie=Oe.data)===null||Ie===void 0||((De=Ie.data)===null||De===void 0)?void 0:De.size,ye.input=(ze=Oe.data)===null||ze===void 0||((qe=ze.data)===null||qe===void 0)?void 0:qe.file_name,ye.in_file=Me}else{var tt,ot,nt,pt,ft,_t;ye.out_object_key=(tt=Oe.data)===null||tt===void 0||((ot=tt.data)===null||ot===void 0)?void 0:ot.object,ye.out_object_size=(nt=Oe.data)===null||nt===void 0||((pt=nt.data)===null||pt===void 0)?void 0:pt.size,ye.output=(ft=Oe.data)===null||ft===void 0||((_t=ft.data)===null||_t===void 0)?void 0:_t.file_name,ye.out_file=Me}return ye}return Ue});if(F.current=Object(v.a)(Ve),be(Object(v.a)(Ve)),K.current>0&&K.current===de.length){re(!1);var $e=ae(Ve);$e=$e.filter(function(Ue){var Ke,Re;return!!((Ke=Ue[0])!==null&&Ke!==void 0&&Ke.name&&(Re=Ue[1])!==null&&Re!==void 0&&Re.name)}),$e=$e.map(function(Ue){return Object(f.a)(Object(f.a)(Object(f.a)({},Ue[0]),Ue[1]),{},{is_file:!0})}),H($e),W()}}})},me=function(){if(de.length===0){i.b.warn("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}re(!0);var Me=ae(de);if(Me.some(function(Ne){var Le,We;return!((Le=Ne[0])!==null&&Le!==void 0&&Le.name&&(We=Ne[1])!==null&&We!==void 0&&We.name)})){p.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 Ne=Object(u.a)(w.a.mark(function We(){return w.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:de.map(function(){var Oe=Object(u.a)(w.a.mark(function Ve($e){return w.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:B($e);case 1:case"end":return Ke.stop()}},Ve)}));return function(Ve){return Oe.apply(this,arguments)}}());case 1:case"end":return He.stop()}},We)}));function Le(){return Ne.apply(this,arguments)}return Le}(),onCancel:function(){re(!1)}});return}de.map(function(){var Ne=Object(u.a)(w.a.mark(function Le(We){return w.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:B(We);case 1:case"end":return He.stop()}},Le)}));return function(Le){return Ne.apply(this,arguments)}}())},fe={name:"file",fileList:de,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:function(Me){if(de!=null&&de.some(function(Le){return Le.name===Me.name}))return i.b.info("".concat(Me.name,"\u6587\u4EF6\u5DF2\u5B58\u5728")),!1;if(Me.size/1024/1024>100)return i.b.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(Me.name))return i.b.warn("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;var Ne={name:Me.name,uid:Me.uid,file:Me,percent:0};return de.push(Ne),F.current=Object(v.a)(de),be(Object(v.a)(de)),!1}},we=ae(de);return console.log(de,we,"fileList"),C.a.createElement(p.a,{visible:R,wrapClassName:y,onOk:me,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:Y},onCancel:pe,width:"1000px",title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},C.a.createElement("div",{className:N.a.wrap},de.length?C.a.createElement("div",null,C.a.createElement(g.a,fe,C.a.createElement(_.a,{className:N.a.btnS},"\u4E0A\u4F20\u6587\u4EF6")),C.a.createElement(G,{data:we,onRemove:S})):C.a.createElement("div",{className:N.a.noData},C.a.createElement("img",{src:k.a,alt:""}),C.a.createElement(g.a,fe,C.a.createElement(_.a,{className:N.a.btn},"\u4E0A\u4F20\u6587\u4EF6"))),C.a.createElement("div",{className:N.a.text},"\u4E0A\u4F20\u9650\u5236\uFF1A",C.a.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",C.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",C.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")))},G=function(q){var W=q.data,H=W===void 0?[]:W,R=q.onRemove,y=q.width,A=y===void 0?"auto":y,ee=q.showScore,oe=ee===void 0?!1:ee,de=q.disabled,be=de===void 0?!1:de,xe=q.inputChange,te=function(ne){var Y=document.createElement("a");document.body.appendChild(Y);var re=URL.createObjectURL(ne.file);Y.href=re,Y.download=ne.name,Y.click(),URL.revokeObjectURL(re),document.body.removeChild(Y)},le=function(ne,Y){Object(U.x)(ne,Y)},ue=function(ne,Y){p.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:C.a.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:function(){R(ne,Y)},onCancel:function(){}})};return H.length?C.a.createElement("div",{style:{width:A}},C.a.createElement("div",{className:N.a.head},C.a.createElement("div",{style:{width:"20%"}},"\u7528\u4F8B"),C.a.createElement("div",{style:{width:oe?"25%":"35%"}},"\u8F93\u5165"),C.a.createElement("div",{style:{width:oe?"25%":"35%"}},"\u8F93\u51FA"),oe&&C.a.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),C.a.createElement("div",{style:{width:"10%"}},"\u64CD\u4F5C")),H.map(function(Z,ne){var Y,re,F,K;return C.a.createElement("div",{key:ne,className:N.a.list},C.a.createElement("div",{style:{width:"20%"}},"\u6D4B\u8BD5\u7528\u4F8B",ne+1),C.a.createElement("div",{className:N.a.info,style:{width:oe?"25%":"35%"}},C.a.createElement("span",{title:Z.input||((Y=Z[0])===null||Y===void 0?void 0:Y.name),onClick:function(){Z.input?Z.input_file_url?le(Z.input_file_url,Z.input):te(Z.in_file):te(Z[0])}},Z.input||((re=Z[0])===null||re===void 0?void 0:re.name))),C.a.createElement("div",{className:N.a.info,style:{width:oe?"25%":"35%"}},C.a.createElement("span",{title:Z.output||((F=Z[1])===null||F===void 0?void 0:F.name),onClick:function(){Z.input?Z.output_file_url?le(Z.output_file_url,Z.output):te(Z.out_file):te(Z[1])}},Z.output||((K=Z[1])===null||K===void 0?void 0:K.name))),oe&&C.a.createElement("div",{style:{width:"20%"}},C.a.createElement(a.a,{disabled:be,style:{width:"70%"},onChange:function($){return xe($,ne)},value:Z.score}),C.a.createElement("span",null,"\xA0%")),C.a.createElement("div",{onClick:function(){return ue(Z,ne)},style:{width:"10%"}},C.a.createElement("span",{className:N.a.del},"\u5220\u9664")))})):C.a.createElement(C.a.Fragment,null)};z.b=se},Bd2K:function(s,z,d){(function(h){h(d("VrN/"),d("osHv"))})(function(h){h.defineOption("autoCloseTags",!1,function(i,u,l){if(l!=h.Init&&l&&i.removeKeyMap("autoCloseTags"),!u)return;var v={name:"autoCloseTags"};(typeof u!="object"||u.whenClosing!==!1)&&(v["'/'"]=function(m){return p(m)}),(typeof u!="object"||u.whenOpening!==!1)&&(v["'>'"]=function(m){return _(m)}),i.addKeyMap(v)});var a=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],T=["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 _(i){if(i.getOption("disableInput"))return h.Pass;for(var u=i.listSelections(),l=[],v=i.getOption("autoCloseTags"),m=0;m<u.length;m++){if(!u[m].empty())return h.Pass;var g=u[m].head,E=i.getTokenAt(g),w=h.innerMode(i.getMode(),E.state),O=w.state,C=w.mode.xmlCurrentTag&&w.mode.xmlCurrentTag(O),M=C&&C.name;if(!M)return h.Pass;var N=w.mode.configuration=="html",P=typeof v=="object"&&v.dontCloseTags||N&&a,k=typeof v=="object"&&v.indentTags||N&&T;E.end>g.ch&&(M=M.slice(0,M.length-E.end+g.ch));var b=M.toLowerCase();if(!M||E.type=="string"&&(E.end!=g.ch||!/[\"\']/.test(E.string.charAt(E.string.length-1))||E.string.length==1)||E.type=="tag"&&C.close||E.string.indexOf("/")==g.ch-E.start-1||P&&f(P,b)>-1||o(i,w.mode.xmlCurrentContext&&w.mode.xmlCurrentContext(O)||[],M,g,!0))return h.Pass;var V=typeof v=="object"&&v.emptyTags;if(V&&f(V,M)>-1){l[m]={text:"/>",newPos:h.Pos(g.line,g.ch+2)};continue}var X=k&&f(k,b)>-1;l[m]={indent:X,text:">"+(X?`
`:"")+"</"+M+">",newPos:X?h.Pos(g.line+1,0):h.Pos(g.line,g.ch+1)}}for(var D=typeof v=="object"&&v.dontIndentOnAutoClose,m=u.length-1;m>=0;m--){var L=l[m];i.replaceRange(L.text,u[m].head,u[m].anchor,"+insert");var U=i.listSelections().slice(0);U[m]={head:L.newPos,anchor:L.newPos},i.setSelections(U),!D&&L.indent&&(i.indentLine(L.newPos.line,null,!0),i.indentLine(L.newPos.line+1,null,!0))}}function x(i,u){for(var l=i.listSelections(),v=[],m=u?"/":"</",g=i.getOption("autoCloseTags"),E=typeof g=="object"&&g.dontIndentOnSlash,w=0;w<l.length;w++){if(!l[w].empty())return h.Pass;var O=l[w].head,C=i.getTokenAt(O),M=h.innerMode(i.getMode(),C.state),N=M.state;if(u&&(C.type=="string"||C.string.charAt(0)!="<"||C.start!=O.ch-1))return h.Pass;var P,k=M.mode.name!="xml"&&i.getMode().name=="htmlmixed";if(k&&M.mode.name=="javascript")P=m+"script";else if(k&&M.mode.name=="css")P=m+"style";else{var b=M.mode.xmlCurrentContext&&M.mode.xmlCurrentContext(N);if(!b||b.length&&o(i,b,b[b.length-1],O))return h.Pass;P=m+b[b.length-1]}i.getLine(O.line).charAt(C.end)!=">"&&(P+=">"),v[w]=P}if(i.replaceSelections(v),l=i.listSelections(),!E)for(var w=0;w<l.length;w++)(w==l.length-1||l[w].head.line<l[w+1].head.line)&&i.indentLine(l[w].head.line)}function p(i){return i.getOption("disableInput")?h.Pass:x(i,!0)}h.commands.closeTag=function(i){return x(i)};function f(i,u){if(i.indexOf)return i.indexOf(u);for(var l=0,v=i.length;l<v;++l)if(i[l]==u)return l;return-1}function o(i,u,l,v,m){if(!h.scanForClosingTag)return!1;var g=Math.min(i.lastLine()+1,v.line+500),E=h.scanForClosingTag(i,v,null,g);if(!E||E.tag!=l)return!1;for(var w=m?1:0,O=u.length-1;O>=0&&u[O]==l;O--)++w;v=E.to;for(var O=1;O<w;O++){var C=h.scanForClosingTag(i,v,null,g);if(!C||C.tag!=l)return!1;v=C.to}return!0}})},BjJ7:function(s,z,d){"use strict";d.d(z,"d",function(){return a}),d.d(z,"c",function(){return T}),d.d(z,"e",function(){return _}),d.d(z,"b",function(){return x}),d.d(z,"a",function(){return f});var h=d("m3rI");function a(o){var i=!0;if(o.length>0){for(var u=0;u<o.length;u++)if(o[u].compile_success==0||!o[u].compile_success){i=!1;break}}else i=!1;return i}function T(o){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",u=[],l=0;l<o.length;l++){var v=o[l],m=i?"".concat(i,"/").concat(v.name):"".concat(v.name);u.push({title:v.name,isLeaf:!(v.type==="tree"),key:m})}return u}function _(o,i,u){for(var l=0;l<o.length;l++){var v=o[l];if(v.key===i){v.children=u;break}v.children&&_(v.children,i,u)}return o}function x(o,i,u){var l;return function(){var v=this,m=arguments,g=function(){l=null,u||o.apply(v,m)},E=u&&!l;clearTimeout(l),l=setTimeout(g,i),E&&o.apply(v,m)}}var p=!0,f=h.a.API_SERVER},Bvq2:function(s,z,d){s.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(s,z,d){},CrYA:function(s,z,d){var h=d("MFOe"),a=h.Global;s.exports={name:"sessionStorage",read:_,write:x,each:p,remove:f,clearAll:o};function T(){return a.sessionStorage}function _(i){return T().getItem(i)}function x(i,u){return T().setItem(i,u)}function p(i){for(var u=T().length-1;u>=0;u--){var l=T().key(u);i(_(l),l)}}function f(i){return T().removeItem(i)}function o(){return T().clear()}},DlQD:function(s,z,d){(function(h,a){s.exports=a()})(this,function(){"use strict";function h(Re,Te){for(var Ee=0;Ee<Te.length;Ee++){var ve=Te[Ee];ve.enumerable=ve.enumerable||!1,ve.configurable=!0,"value"in ve&&(ve.writable=!0),Object.defineProperty(Re,ve.key,ve)}}function a(Re,Te,Ee){return Te&&h(Re.prototype,Te),Ee&&h(Re,Ee),Re}function T(Re,Te){if(!Re)return;if(typeof Re=="string")return _(Re,Te);var Ee=Object.prototype.toString.call(Re).slice(8,-1);if(Ee==="Object"&&Re.constructor&&(Ee=Re.constructor.name),Ee==="Map"||Ee==="Set")return Array.from(Re);if(Ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ee))return _(Re,Te)}function _(Re,Te){(Te==null||Te>Re.length)&&(Te=Re.length);for(var Ee=0,ve=new Array(Te);Ee<Te;Ee++)ve[Ee]=Re[Ee];return ve}function x(Re,Te){var Ee;if(typeof Symbol=="undefined"||Re[Symbol.iterator]==null){if(Array.isArray(Re)||(Ee=T(Re))||Te&&Re&&typeof Re.length=="number"){Ee&&(Re=Ee);var ve=0;return function(){return ve>=Re.length?{done:!0}:{done:!1,value:Re[ve++]}}}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 Ee=Re[Symbol.iterator](),Ee.next.bind(Ee)}function p(Re,Te){return Te={exports:{}},Re(Te,Te.exports),Te.exports}var f=p(function(Re){function Te(){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 Ee(ve){Re.exports.defaults=ve}Re.exports={defaults:Te(),getDefaults:Te,changeDefaults:Ee}}),o=f.defaults,i=f.getDefaults,u=f.changeDefaults,l=/[&<>"']/,v=/[&<>"']/g,m=/[<>"']|&(?!#?\w+;)/,g=/[<>"']|&(?!#?\w+;)/g,E={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},w=function(Te){return E[Te]};function O(Re,Te){if(Te){if(l.test(Re))return Re.replace(v,w)}else if(m.test(Re))return Re.replace(g,w);return Re}var C=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function M(Re){return Re.replace(C,function(Te,Ee){return Ee=Ee.toLowerCase(),Ee==="colon"?":":Ee.charAt(0)==="#"?Ee.charAt(1)==="x"?String.fromCharCode(parseInt(Ee.substring(2),16)):String.fromCharCode(+Ee.substring(1)):""})}var N=/(^|[^\[])\^/g;function P(Re,Te){Re=Re.source||Re,Te=Te||"";var Ee={replace:function(ye,_e){return _e=_e.source||_e,_e=_e.replace(N,"$1"),Re=Re.replace(ye,_e),Ee},getRegex:function(){return new RegExp(Re,Te)}};return Ee}var k=/[^\w:]/g,b=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function V(Re,Te,Ee){if(Re){var ve;try{ve=decodeURIComponent(M(Ee)).replace(k,"").toLowerCase()}catch(ye){return null}if(ve.indexOf("javascript:")===0||ve.indexOf("vbscript:")===0||ve.indexOf("data:")===0)return null}Te&&!b.test(Ee)&&(Ee=J(Te,Ee));try{Ee=encodeURI(Ee).replace(/%25/g,"%")}catch(ye){return null}return Ee}var X={},D=/^[^:]+:\/*[^/]*$/,L=/^([^:]+:)[\s\S]*$/,U=/^([^:]+:\/*[^/]*)[\s\S]*$/;function J(Re,Te){X[" "+Re]||(D.test(Re)?X[" "+Re]=Re+"/":X[" "+Re]=he(Re,"/",!0)),Re=X[" "+Re];var Ee=Re.indexOf(":")===-1;return Te.substring(0,2)==="//"?Ee?Te:Re.replace(L,"$1")+Te:Te.charAt(0)==="/"?Ee?Te:Re.replace(U,"$1")+Te:Re+Te}var ae={exec:function(){}};function se(Re){for(var Te=1,Ee,ve;Te<arguments.length;Te++){Ee=arguments[Te];for(ve in Ee)Object.prototype.hasOwnProperty.call(Ee,ve)&&(Re[ve]=Ee[ve])}return Re}function G(Re,Te){var Ee=Re.replace(/\|/g,function(_e,Se,Ie){for(var De=!1,ze=Se;--ze>=0&&Ie[ze]==="\\";)De=!De;return De?"|":" |"}),ve=Ee.split(/ \|/),ye=0;if(ve.length>Te)ve.splice(Te);else for(;ve.length<Te;)ve.push("");for(;ye<ve.length;ye++)ve[ye]=ve[ye].trim().replace(/\\\|/g,"|");return ve}function he(Re,Te,Ee){var ve=Re.length;if(ve===0)return"";for(var ye=0;ye<ve;){var _e=Re.charAt(ve-ye-1);if(_e===Te&&!Ee)ye++;else if(_e!==Te&&Ee)ye++;else break}return Re.substr(0,ve-ye)}function q(Re,Te){if(Re.indexOf(Te[1])===-1)return-1;for(var Ee=Re.length,ve=0,ye=0;ye<Ee;ye++)if(Re[ye]==="\\")ye++;else if(Re[ye]===Te[0])ve++;else if(Re[ye]===Te[1]&&(ve--,ve<0))return ye;return-1}function W(Re){Re&&Re.sanitize&&!Re.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 H={escape:O,unescape:M,edit:P,cleanUrl:V,resolveUrl:J,noopTest:ae,merge:se,splitCells:G,rtrim:he,findClosingBracket:q,checkSanitizeDeprecation:W},R=f.defaults,y=H.rtrim,A=H.splitCells,ee=H.escape,oe=H.findClosingBracket;function de(Re,Te,Ee){var ve=Te.href,ye=Te.title?ee(Te.title):null,_e=Re[1].replace(/\\([\[\]])/g,"$1");return Re[0].charAt(0)!=="!"?{type:"link",raw:Ee,href:ve,title:ye,text:_e}:{type:"image",raw:Ee,href:ve,title:ye,text:ee(_e)}}function be(Re,Te){var Ee=Re.match(/^(\s+)(?:```)/);if(Ee===null)return Te;var ve=Ee[1];return Te.split(`
`).map(function(ye){var _e=ye.match(/^\s+/);if(_e===null)return ye;var Se=_e[0];return Se.length>=ve.length?ye.slice(ve.length):ye}).join(`
`)}var xe=function(){function Re(Ee){this.options=Ee||R}var Te=Re.prototype;return Te.space=function(ve){var ye=this.rules.block.newline.exec(ve);if(ye)return ye[0].length>1?{type:"space",raw:ye[0]}:{raw:`
`}},Te.code=function(ve,ye){var _e=this.rules.block.code.exec(ve);if(_e){var Se=ye[ye.length-1];if(Se&&Se.type==="paragraph")return{raw:_e[0],text:_e[0].trimRight()};var Ie=_e[0].replace(/^ {4}/gm,"");return{type:"code",raw:_e[0],codeBlockStyle:"indented",text:this.options.pedantic?Ie:y(Ie,`
`)}}},Te.fences=function(ve){var ye=this.rules.block.fences.exec(ve);if(ye){var _e=ye[0],Se=be(_e,ye[3]||"");return{type:"code",raw:_e,lang:ye[2]?ye[2].trim():ye[2],text:Se}}},Te.heading=function(ve){var ye=this.rules.block.heading.exec(ve);if(ye)return{type:"heading",raw:ye[0],depth:ye[1].length,text:ye[2]}},Te.nptable=function(ve){var ye=this.rules.block.nptable.exec(ve);if(ye){var _e={type:"table",header:A(ye[1].replace(/^ *| *\| *$/g,"")),align:ye[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ye[3]?ye[3].replace(/\n$/,"").split(`
`):[],raw:ye[0]};if(_e.header.length===_e.align.length){var Se=_e.align.length,Ie;for(Ie=0;Ie<Se;Ie++)/^ *-+: *$/.test(_e.align[Ie])?_e.align[Ie]="right":/^ *:-+: *$/.test(_e.align[Ie])?_e.align[Ie]="center":/^ *:-+ *$/.test(_e.align[Ie])?_e.align[Ie]="left":_e.align[Ie]=null;for(Se=_e.cells.length,Ie=0;Ie<Se;Ie++)_e.cells[Ie]=A(_e.cells[Ie],_e.header.length);return _e}}},Te.hr=function(ve){var ye=this.rules.block.hr.exec(ve);if(ye)return{type:"hr",raw:ye[0]}},Te.blockquote=function(ve){var ye=this.rules.block.blockquote.exec(ve);if(ye){var _e=ye[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ye[0],text:_e}}},Te.list=function(ve){var ye=this.rules.block.list.exec(ve);if(ye){for(var _e=ye[0],Se=ye[2],Ie=Se.length>1,De=Se[Se.length-1]===")",ze={type:"list",raw:_e,ordered:Ie,start:Ie?+Se.slice(0,-1):"",loose:!1,items:[]},qe=ye[0].match(this.rules.block.item),tt=!1,ot,nt,pt,ft,_t,Rt,Gt,Wt=qe.length,Ct=0;Ct<Wt;Ct++)ot=qe[Ct],_e=ot,nt=ot.length,ot=ot.replace(/^ *([*+-]|\d+[.)]) */,""),~ot.indexOf(`
`)&&(nt-=ot.length,ot=this.options.pedantic?ot.replace(/^ {1,4}/gm,""):ot.replace(new RegExp("^ {1,"+nt+"}","gm"),"")),Ct!==Wt-1&&(pt=this.rules.block.bullet.exec(qe[Ct+1])[0],(Ie?pt.length===1||!De&&pt[pt.length-1]===")":pt.length>1||this.options.smartLists&&pt!==Se)&&(ft=qe.slice(Ct+1).join(`
`),ze.raw=ze.raw.substring(0,ze.raw.length-ft.length),Ct=Wt-1)),_t=tt||/\n\n(?!\s*$)/.test(ot),Ct!==Wt-1&&(tt=ot.charAt(ot.length-1)===`
`,_t||(_t=tt)),_t&&(ze.loose=!0),Rt=/^\[[ xX]\] /.test(ot),Gt=void 0,Rt&&(Gt=ot[1]!==" ",ot=ot.replace(/^\[[ xX]\] +/,"")),ze.items.push({type:"list_item",raw:_e,task:Rt,checked:Gt,loose:_t,text:ot});return ze}},Te.html=function(ve){var ye=this.rules.block.html.exec(ve);if(ye)return{type:this.options.sanitize?"paragraph":"html",raw:ye[0],pre:!this.options.sanitizer&&(ye[1]==="pre"||ye[1]==="script"||ye[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ye[0]):ee(ye[0]):ye[0]}},Te.def=function(ve){var ye=this.rules.block.def.exec(ve);if(ye){ye[3]&&(ye[3]=ye[3].substring(1,ye[3].length-1));var _e=ye[1].toLowerCase().replace(/\s+/g," ");return{tag:_e,raw:ye[0],href:ye[2],title:ye[3]}}},Te.table=function(ve){var ye=this.rules.block.table.exec(ve);if(ye){var _e={type:"table",header:A(ye[1].replace(/^ *| *\| *$/g,"")),align:ye[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ye[3]?ye[3].replace(/\n$/,"").split(`
`):[]};if(_e.header.length===_e.align.length){_e.raw=ye[0];var Se=_e.align.length,Ie;for(Ie=0;Ie<Se;Ie++)/^ *-+: *$/.test(_e.align[Ie])?_e.align[Ie]="right":/^ *:-+: *$/.test(_e.align[Ie])?_e.align[Ie]="center":/^ *:-+ *$/.test(_e.align[Ie])?_e.align[Ie]="left":_e.align[Ie]=null;for(Se=_e.cells.length,Ie=0;Ie<Se;Ie++)_e.cells[Ie]=A(_e.cells[Ie].replace(/^ *\| *| *\| *$/g,""),_e.header.length);return _e}}},Te.lheading=function(ve){var ye=this.rules.block.lheading.exec(ve);if(ye)return{type:"heading",raw:ye[0],depth:ye[2].charAt(0)==="="?1:2,text:ye[1]}},Te.paragraph=function(ve){var ye=this.rules.block.paragraph.exec(ve);if(ye)return{type:"paragraph",raw:ye[0],text:ye[1].charAt(ye[1].length-1)===`
`?ye[1].slice(0,-1):ye[1]}},Te.text=function(ve,ye){var _e=this.rules.block.text.exec(ve);if(_e){var Se=ye[ye.length-1];return Se&&Se.type==="text"?{raw:_e[0],text:_e[0]}:{type:"text",raw:_e[0],text:_e[0]}}},Te.escape=function(ve){var ye=this.rules.inline.escape.exec(ve);if(ye)return{type:"escape",raw:ye[0],text:ee(ye[1])}},Te.tag=function(ve,ye,_e){var Se=this.rules.inline.tag.exec(ve);if(Se)return!ye&&/^<a /i.test(Se[0])?ye=!0:ye&&/^<\/a>/i.test(Se[0])&&(ye=!1),!_e&&/^<(pre|code|kbd|script)(\s|>)/i.test(Se[0])?_e=!0:_e&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Se[0])&&(_e=!1),{type:this.options.sanitize?"text":"html",raw:Se[0],inLink:ye,inRawBlock:_e,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Se[0]):ee(Se[0]):Se[0]}},Te.link=function(ve){var ye=this.rules.inline.link.exec(ve);if(ye){var _e=oe(ye[2],"()");if(_e>-1){var Se=ye[0].indexOf("!")===0?5:4,Ie=Se+ye[1].length+_e;ye[2]=ye[2].substring(0,_e),ye[0]=ye[0].substring(0,Ie).trim(),ye[3]=""}var De=ye[2],ze="";if(this.options.pedantic){var qe=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(De);qe?(De=qe[1],ze=qe[3]):ze=""}else ze=ye[3]?ye[3].slice(1,-1):"";De=De.trim().replace(/^<([\s\S]*)>$/,"$1");var tt=de(ye,{href:De&&De.replace(this.rules.inline._escapes,"$1"),title:ze&&ze.replace(this.rules.inline._escapes,"$1")},ye[0]);return tt}},Te.reflink=function(ve,ye){var _e;if((_e=this.rules.inline.reflink.exec(ve))||(_e=this.rules.inline.nolink.exec(ve))){var Se=(_e[2]||_e[1]).replace(/\s+/g," ");if(Se=ye[Se.toLowerCase()],!Se||!Se.href){var Ie=_e[0].charAt(0);return{type:"text",raw:Ie,text:Ie}}var De=de(_e,Se,_e[0]);return De}},Te.strong=function(ve,ye,_e){_e===void 0&&(_e="");var Se=this.rules.inline.strong.start.exec(ve);if(Se&&(!Se[1]||Se[1]&&(_e===""||this.rules.inline.punctuation.exec(_e)))){ye=ye.slice(-1*ve.length);var Ie=Se[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Ie.lastIndex=0;for(var De;(Se=Ie.exec(ye))!=null;)if(De=this.rules.inline.strong.middle.exec(ye.slice(0,Se.index+3)),De)return{type:"strong",raw:ve.slice(0,De[0].length),text:ve.slice(2,De[0].length-2)}}},Te.em=function(ve,ye,_e){_e===void 0&&(_e="");var Se=this.rules.inline.em.start.exec(ve);if(Se&&(!Se[1]||Se[1]&&(_e===""||this.rules.inline.punctuation.exec(_e)))){ye=ye.slice(-1*ve.length);var Ie=Se[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Ie.lastIndex=0;for(var De;(Se=Ie.exec(ye))!=null;)if(De=this.rules.inline.em.middle.exec(ye.slice(0,Se.index+2)),De)return{type:"em",raw:ve.slice(0,De[0].length),text:ve.slice(1,De[0].length-1)}}},Te.codespan=function(ve){var ye=this.rules.inline.code.exec(ve);if(ye){var _e=ye[2].replace(/\n/g," "),Se=/[^ ]/.test(_e),Ie=_e.startsWith(" ")&&_e.endsWith(" ");return Se&&Ie&&(_e=_e.substring(1,_e.length-1)),_e=ee(_e,!0),{type:"codespan",raw:ye[0],text:_e}}},Te.br=function(ve){var ye=this.rules.inline.br.exec(ve);if(ye)return{type:"br",raw:ye[0]}},Te.del=function(ve){var ye=this.rules.inline.del.exec(ve);if(ye)return{type:"del",raw:ye[0],text:ye[1]}},Te.autolink=function(ve,ye){var _e=this.rules.inline.autolink.exec(ve);if(_e){var Se,Ie;return _e[2]==="@"?(Se=ee(this.options.mangle?ye(_e[1]):_e[1]),Ie="mailto:"+Se):(Se=ee(_e[1]),Ie=Se),{type:"link",raw:_e[0],text:Se,href:Ie,tokens:[{type:"text",raw:Se,text:Se}]}}},Te.url=function(ve,ye){var _e;if(_e=this.rules.inline.url.exec(ve)){var Se,Ie;if(_e[2]==="@")Se=ee(this.options.mangle?ye(_e[0]):_e[0]),Ie="mailto:"+Se;else{var De;do De=_e[0],_e[0]=this.rules.inline._backpedal.exec(_e[0])[0];while(De!==_e[0]);Se=ee(_e[0]),_e[1]==="www."?Ie="http://"+Se:Ie=Se}return{type:"link",raw:_e[0],text:Se,href:Ie,tokens:[{type:"text",raw:Se,text:Se}]}}},Te.inlineText=function(ve,ye,_e){var Se=this.rules.inline.text.exec(ve);if(Se){var Ie;return ye?Ie=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Se[0]):ee(Se[0]):Se[0]:Ie=ee(this.options.smartypants?_e(Se[0]):Se[0]),{type:"text",raw:Se[0],text:Ie}}},Re}(),te=H.noopTest,le=H.edit,ue=H.merge,Z={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:te,table:te,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Z._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Z._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Z.def=le(Z.def).replace("label",Z._label).replace("title",Z._title).getRegex(),Z.bullet=/(?:[*+-]|\d{1,9}[.)])/,Z.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Z.item=le(Z.item,"gm").replace(/bull/g,Z.bullet).getRegex(),Z.list=le(Z.list).replace(/bull/g,Z.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Z.def.source+")").getRegex(),Z._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",Z._comment=/<!--(?!-?>)[\s\S]*?-->/,Z.html=le(Z.html,"i").replace("comment",Z._comment).replace("tag",Z._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Z.paragraph=le(Z._paragraph).replace("hr",Z.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",Z._tag).getRegex(),Z.blockquote=le(Z.blockquote).replace("paragraph",Z.paragraph).getRegex(),Z.normal=ue({},Z),Z.gfm=ue({},Z.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*|$)"}),Z.gfm.nptable=le(Z.gfm.nptable).replace("hr",Z.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",Z._tag).getRegex(),Z.gfm.table=le(Z.gfm.table).replace("hr",Z.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",Z._tag).getRegex(),Z.pedantic=ue({},Z.normal,{html:le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Z._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:te,paragraph:le(Z.normal._paragraph).replace("hr",Z.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Z.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ne={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:te,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:te,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};ne._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",ne.punctuation=le(ne.punctuation).replace(/punctuation/g,ne._punctuation).getRegex(),ne._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",ne._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",ne.em.start=le(ne.em.start).replace(/punctuation/g,ne._punctuation).getRegex(),ne.em.middle=le(ne.em.middle).replace(/punctuation/g,ne._punctuation).replace(/overlapSkip/g,ne._overlapSkip).getRegex(),ne.em.endAst=le(ne.em.endAst,"g").replace(/punctuation/g,ne._punctuation).getRegex(),ne.em.endUnd=le(ne.em.endUnd,"g").replace(/punctuation/g,ne._punctuation).getRegex(),ne.strong.start=le(ne.strong.start).replace(/punctuation/g,ne._punctuation).getRegex(),ne.strong.middle=le(ne.strong.middle).replace(/punctuation/g,ne._punctuation).replace(/blockSkip/g,ne._blockSkip).getRegex(),ne.strong.endAst=le(ne.strong.endAst,"g").replace(/punctuation/g,ne._punctuation).getRegex(),ne.strong.endUnd=le(ne.strong.endUnd,"g").replace(/punctuation/g,ne._punctuation).getRegex(),ne.blockSkip=le(ne._blockSkip,"g").getRegex(),ne.overlapSkip=le(ne._overlapSkip,"g").getRegex(),ne._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ne._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ne._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])?)+(?![-_])/,ne.autolink=le(ne.autolink).replace("scheme",ne._scheme).replace("email",ne._email).getRegex(),ne._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ne.tag=le(ne.tag).replace("comment",Z._comment).replace("attribute",ne._attribute).getRegex(),ne._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ne._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,ne._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ne.link=le(ne.link).replace("label",ne._label).replace("href",ne._href).replace("title",ne._title).getRegex(),ne.reflink=le(ne.reflink).replace("label",ne._label).getRegex(),ne.reflinkSearch=le(ne.reflinkSearch,"g").replace("reflink",ne.reflink).replace("nolink",ne.nolink).getRegex(),ne.normal=ue({},ne),ne.pedantic=ue({},ne.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:le(/^!?\[(label)\]\((.*?)\)/).replace("label",ne._label).getRegex(),reflink:le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ne._label).getRegex()}),ne.gfm=ue({},ne.normal,{escape:le(ne.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),ne.gfm.url=le(ne.gfm.url,"i").replace("email",ne.gfm._extended_email).getRegex(),ne.breaks=ue({},ne.gfm,{br:le(ne.br).replace("{2,}","*").getRegex(),text:le(ne.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Y={block:Z,inline:ne},re=f.defaults,F=Y.block,K=Y.inline;function pe(Re){return Re.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 $(Re){var Te="",Ee,ve,ye=Re.length;for(Ee=0;Ee<ye;Ee++)ve=Re.charCodeAt(Ee),Math.random()>.5&&(ve="x"+ve.toString(16)),Te+="&#"+ve+";";return Te}var j=function(){function Re(Ee){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ee||re,this.options.tokenizer=this.options.tokenizer||new xe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ve={block:F.normal,inline:K.normal};this.options.pedantic?(ve.block=F.pedantic,ve.inline=K.pedantic):this.options.gfm&&(ve.block=F.gfm,this.options.breaks?ve.inline=K.breaks:ve.inline=K.gfm),this.tokenizer.rules=ve}Re.lex=function(ve,ye){var _e=new Re(ye);return _e.lex(ve)};var Te=Re.prototype;return Te.lex=function(ve){return ve=ve.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(ve,this.tokens,!0),this.inline(this.tokens),this.tokens},Te.blockTokens=function(ve,ye,_e){ye===void 0&&(ye=[]),_e===void 0&&(_e=!0),ve=ve.replace(/^ +$/gm,"");for(var Se,Ie,De,ze;ve;){if(Se=this.tokenizer.space(ve)){ve=ve.substring(Se.raw.length),Se.type&&ye.push(Se);continue}if(Se=this.tokenizer.code(ve,ye)){ve=ve.substring(Se.raw.length),Se.type?ye.push(Se):(ze=ye[ye.length-1],ze.raw+=`
`+Se.raw,ze.text+=`
`+Se.text);continue}if(Se=this.tokenizer.fences(ve)){ve=ve.substring(Se.raw.length),ye.push(Se);continue}if(Se=this.tokenizer.heading(ve)){ve=ve.substring(Se.raw.length),ye.push(Se);continue}if(Se=this.tokenizer.nptable(ve)){ve=ve.substring(Se.raw.length),ye.push(Se);continue}if(Se=this.tokenizer.hr(ve)){ve=ve.substring(Se.raw.length),ye.push(Se);continue}if(Se=this.tokenizer.blockquote(ve)){ve=ve.substring(Se.raw.length),Se.tokens=this.blockTokens(Se.text,[],_e),ye.push(Se);continue}if(Se=this.tokenizer.list(ve)){for(ve=ve.substring(Se.raw.length),De=Se.items.length,Ie=0;Ie<De;Ie++)Se.items[Ie].tokens=this.blockTokens(Se.items[Ie].text,[],!1);ye.push(Se);continue}if(Se=this.tokenizer.html(ve)){ve=ve.substring(Se.raw.length),ye.push(Se);continue}if(_e&&(Se=this.tokenizer.def(ve))){ve=ve.substring(Se.raw.length),this.tokens.links[Se.tag]||(this.tokens.links[Se.tag]={href:Se.href,title:Se.title});continue}if(Se=this.tokenizer.table(ve)){ve=ve.substring(Se.raw.length),ye.push(Se);continue}if(Se=this.tokenizer.lheading(ve)){ve=ve.substring(Se.raw.length),ye.push(Se);continue}if(_e&&(Se=this.tokenizer.paragraph(ve))){ve=ve.substring(Se.raw.length),ye.push(Se);continue}if(Se=this.tokenizer.text(ve,ye)){ve=ve.substring(Se.raw.length),Se.type?ye.push(Se):(ze=ye[ye.length-1],ze.raw+=`
`+Se.raw,ze.text+=`
`+Se.text);continue}if(ve){var qe="Infinite loop on byte: "+ve.charCodeAt(0);if(this.options.silent){console.error(qe);break}else throw new Error(qe)}}return ye},Te.inline=function(ve){var ye,_e,Se,Ie,De,ze,qe=ve.length;for(ye=0;ye<qe;ye++){ze=ve[ye];switch(ze.type){case"paragraph":case"text":case"heading":{ze.tokens=[],this.inlineTokens(ze.text,ze.tokens);break}case"table":{for(ze.tokens={header:[],cells:[]},Ie=ze.header.length,_e=0;_e<Ie;_e++)ze.tokens.header[_e]=[],this.inlineTokens(ze.header[_e],ze.tokens.header[_e]);for(Ie=ze.cells.length,_e=0;_e<Ie;_e++)for(De=ze.cells[_e],ze.tokens.cells[_e]=[],Se=0;Se<De.length;Se++)ze.tokens.cells[_e][Se]=[],this.inlineTokens(De[Se],ze.tokens.cells[_e][Se]);break}case"blockquote":{this.inline(ze.tokens);break}case"list":{for(Ie=ze.items.length,_e=0;_e<Ie;_e++)this.inline(ze.items[_e].tokens);break}}}return ve},Te.inlineTokens=function(ve,ye,_e,Se,Ie){ye===void 0&&(ye=[]),_e===void 0&&(_e=!1),Se===void 0&&(Se=!1),Ie===void 0&&(Ie="");var De,ze=ve,qe;if(this.tokens.links){var tt=Object.keys(this.tokens.links);if(tt.length>0)for(;(qe=this.tokenizer.rules.inline.reflinkSearch.exec(ze))!=null;)tt.includes(qe[0].slice(qe[0].lastIndexOf("[")+1,-1))&&(ze=ze.slice(0,qe.index)+"["+"a".repeat(qe[0].length-2)+"]"+ze.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(qe=this.tokenizer.rules.inline.blockSkip.exec(ze))!=null;)ze=ze.slice(0,qe.index)+"["+"a".repeat(qe[0].length-2)+"]"+ze.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ve;){if(De=this.tokenizer.escape(ve)){ve=ve.substring(De.raw.length),ye.push(De);continue}if(De=this.tokenizer.tag(ve,_e,Se)){ve=ve.substring(De.raw.length),_e=De.inLink,Se=De.inRawBlock,ye.push(De);continue}if(De=this.tokenizer.link(ve)){ve=ve.substring(De.raw.length),De.type==="link"&&(De.tokens=this.inlineTokens(De.text,[],!0,Se)),ye.push(De);continue}if(De=this.tokenizer.reflink(ve,this.tokens.links)){ve=ve.substring(De.raw.length),De.type==="link"&&(De.tokens=this.inlineTokens(De.text,[],!0,Se)),ye.push(De);continue}if(De=this.tokenizer.strong(ve,ze,Ie)){ve=ve.substring(De.raw.length),De.tokens=this.inlineTokens(De.text,[],_e,Se),ye.push(De);continue}if(De=this.tokenizer.em(ve,ze,Ie)){ve=ve.substring(De.raw.length),De.tokens=this.inlineTokens(De.text,[],_e,Se),ye.push(De);continue}if(De=this.tokenizer.codespan(ve)){ve=ve.substring(De.raw.length),ye.push(De);continue}if(De=this.tokenizer.br(ve)){ve=ve.substring(De.raw.length),ye.push(De);continue}if(De=this.tokenizer.del(ve)){ve=ve.substring(De.raw.length),De.tokens=this.inlineTokens(De.text,[],_e,Se),ye.push(De);continue}if(De=this.tokenizer.autolink(ve,$)){ve=ve.substring(De.raw.length),ye.push(De);continue}if(!_e&&(De=this.tokenizer.url(ve,$))){ve=ve.substring(De.raw.length),ye.push(De);continue}if(De=this.tokenizer.inlineText(ve,Se,pe)){ve=ve.substring(De.raw.length),Ie=De.raw.slice(-1),ye.push(De);continue}if(ve){var ot="Infinite loop on byte: "+ve.charCodeAt(0);if(this.options.silent){console.error(ot);break}else throw new Error(ot)}}return ye},a(Re,null,[{key:"rules",get:function(){return{block:F,inline:K}}}]),Re}(),S=f.defaults,B=H.cleanUrl,me=H.escape,fe=function(){function Re(Ee){this.options=Ee||S}var Te=Re.prototype;return Te.code=function(ve,ye,_e){var Se=(ye||"").match(/\S*/)[0];if(this.options.highlight){var Ie=this.options.highlight(ve,Se);Ie!=null&&Ie!==ve&&(_e=!0,ve=Ie)}return Se?'<pre><code class="'+this.options.langPrefix+me(Se,!0)+'">'+(_e?ve:me(ve,!0))+`</code></pre>
`:"<pre><code>"+(_e?ve:me(ve,!0))+`</code></pre>
`},Te.blockquote=function(ve){return`<blockquote>
`+ve+`</blockquote>
`},Te.html=function(ve){return ve},Te.heading=function(ve,ye,_e,Se){return this.options.headerIds?"<h"+ye+' id="'+this.options.headerPrefix+Se.slug(_e)+'">'+ve+"</h"+ye+`>
`:"<h"+ye+">"+ve+"</h"+ye+`>
`},Te.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Te.list=function(ve,ye,_e){var Se=ye?"ol":"ul",Ie=ye&&_e!==1?' start="'+_e+'"':"";return"<"+Se+Ie+`>
`+ve+"</"+Se+`>
`},Te.listitem=function(ve){return"<li>"+ve+`</li>
`},Te.checkbox=function(ve){return"<input "+(ve?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Te.paragraph=function(ve){return"<p>"+ve+`</p>
`},Te.table=function(ve,ye){return ye&&(ye="<tbody>"+ye+"</tbody>"),`<table>
<thead>
`+ve+`</thead>
`+ye+`</table>
`},Te.tablerow=function(ve){return`<tr>
`+ve+`</tr>
`},Te.tablecell=function(ve,ye){var _e=ye.header?"th":"td",Se=ye.align?"<"+_e+' align="'+ye.align+'">':"<"+_e+">";return Se+ve+"</"+_e+`>
`},Te.strong=function(ve){return"<strong>"+ve+"</strong>"},Te.em=function(ve){return"<em>"+ve+"</em>"},Te.codespan=function(ve){return"<code>"+ve+"</code>"},Te.br=function(){return this.options.xhtml?"<br/>":"<br>"},Te.del=function(ve){return"<del>"+ve+"</del>"},Te.link=function(ve,ye,_e){if(ve=B(this.options.sanitize,this.options.baseUrl,ve),ve===null)return _e;var Se='<a href="'+me(ve)+'"';return ye&&(Se+=' title="'+ye+'"'),Se+=">"+_e+"</a>",Se},Te.image=function(ve,ye,_e){if(ve=B(this.options.sanitize,this.options.baseUrl,ve),ve===null)return _e;var Se='<img src="'+ve+'" alt="'+_e+'"';return ye&&(Se+=' title="'+ye+'"'),Se+=this.options.xhtml?"/>":">",Se},Te.text=function(ve){return ve},Re}(),we=function(){function Re(){}var Te=Re.prototype;return Te.strong=function(ve){return ve},Te.em=function(ve){return ve},Te.codespan=function(ve){return ve},Te.del=function(ve){return ve},Te.html=function(ve){return ve},Te.text=function(ve){return ve},Te.link=function(ve,ye,_e){return""+_e},Te.image=function(ve,ye,_e){return""+_e},Te.br=function(){return""},Re}(),ke=function(){function Re(){this.seen={}}var Te=Re.prototype;return Te.slug=function(ve){var ye=ve.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ye)){var _e=ye;do this.seen[_e]++,ye=_e+"-"+this.seen[_e];while(this.seen.hasOwnProperty(ye))}return this.seen[ye]=0,ye},Re}(),Me=f.defaults,Ne=H.unescape,Le=function(){function Re(Ee){this.options=Ee||Me,this.options.renderer=this.options.renderer||new fe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new we,this.slugger=new ke}Re.parse=function(ve,ye){var _e=new Re(ye);return _e.parse(ve)};var Te=Re.prototype;return Te.parse=function(ve,ye){ye===void 0&&(ye=!0);var _e="",Se,Ie,De,ze,qe,tt,ot,nt,pt,ft,_t,Rt,Gt,Wt,Ct,At,dr,sr,fr=ve.length;for(Se=0;Se<fr;Se++){ft=ve[Se];switch(ft.type){case"space":continue;case"hr":{_e+=this.renderer.hr();continue}case"heading":{_e+=this.renderer.heading(this.parseInline(ft.tokens),ft.depth,Ne(this.parseInline(ft.tokens,this.textRenderer)),this.slugger);continue}case"code":{_e+=this.renderer.code(ft.text,ft.lang,ft.escaped);continue}case"table":{for(nt="",ot="",ze=ft.header.length,Ie=0;Ie<ze;Ie++)ot+=this.renderer.tablecell(this.parseInline(ft.tokens.header[Ie]),{header:!0,align:ft.align[Ie]});for(nt+=this.renderer.tablerow(ot),pt="",ze=ft.cells.length,Ie=0;Ie<ze;Ie++){for(tt=ft.tokens.cells[Ie],ot="",qe=tt.length,De=0;De<qe;De++)ot+=this.renderer.tablecell(this.parseInline(tt[De]),{header:!1,align:ft.align[De]});pt+=this.renderer.tablerow(ot)}_e+=this.renderer.table(nt,pt);continue}case"blockquote":{pt=this.parse(ft.tokens),_e+=this.renderer.blockquote(pt);continue}case"list":{for(_t=ft.ordered,Rt=ft.start,Gt=ft.loose,ze=ft.items.length,pt="",Ie=0;Ie<ze;Ie++)Ct=ft.items[Ie],At=Ct.checked,dr=Ct.task,Wt="",Ct.task&&(sr=this.renderer.checkbox(At),Gt?Ct.tokens.length>0&&Ct.tokens[0].type==="text"?(Ct.tokens[0].text=sr+" "+Ct.tokens[0].text,Ct.tokens[0].tokens&&Ct.tokens[0].tokens.length>0&&Ct.tokens[0].tokens[0].type==="text"&&(Ct.tokens[0].tokens[0].text=sr+" "+Ct.tokens[0].tokens[0].text)):Ct.tokens.unshift({type:"text",text:sr}):Wt+=sr),Wt+=this.parse(Ct.tokens,Gt),pt+=this.renderer.listitem(Wt,dr,At);_e+=this.renderer.list(pt,_t,Rt);continue}case"html":{_e+=this.renderer.html(ft.text);continue}case"paragraph":{_e+=this.renderer.paragraph(this.parseInline(ft.tokens));continue}case"text":{for(pt=ft.tokens?this.parseInline(ft.tokens):ft.text;Se+1<fr&&ve[Se+1].type==="text";)ft=ve[++Se],pt+=`
`+(ft.tokens?this.parseInline(ft.tokens):ft.text);_e+=ye?this.renderer.paragraph(pt):pt;continue}default:{var Ft='Token with "'+ft.type+'" type was not found.';if(this.options.silent){console.error(Ft);return}else throw new Error(Ft)}}}return _e},Te.parseInline=function(ve,ye){ye=ye||this.renderer;var _e="",Se,Ie,De=ve.length;for(Se=0;Se<De;Se++){Ie=ve[Se];switch(Ie.type){case"escape":{_e+=ye.text(Ie.text);break}case"html":{_e+=ye.html(Ie.text);break}case"link":{_e+=ye.link(Ie.href,Ie.title,this.parseInline(Ie.tokens,ye));break}case"image":{_e+=ye.image(Ie.href,Ie.title,Ie.text);break}case"strong":{_e+=ye.strong(this.parseInline(Ie.tokens,ye));break}case"em":{_e+=ye.em(this.parseInline(Ie.tokens,ye));break}case"codespan":{_e+=ye.codespan(Ie.text);break}case"br":{_e+=ye.br();break}case"del":{_e+=ye.del(this.parseInline(Ie.tokens,ye));break}case"text":{_e+=ye.text(Ie.text);break}default:{var ze='Token with "'+Ie.type+'" type was not found.';if(this.options.silent){console.error(ze);return}else throw new Error(ze)}}}return _e},Re}(),We=H.merge,Fe=H.checkSanitizeDeprecation,He=H.escape,Oe=f.getDefaults,Ve=f.changeDefaults,$e=f.defaults;function Ue(Re,Te,Ee){if(typeof Re=="undefined"||Re===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Re!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Re)+", string expected");if(typeof Te=="function"&&(Ee=Te,Te=null),Te=We({},Ue.defaults,Te||{}),Fe(Te),Ee){var ve=Te.highlight,ye;try{ye=j.lex(Re,Te)}catch(De){return Ee(De)}var _e=function(ze){var qe;if(!ze)try{qe=Le.parse(ye,Te)}catch(tt){ze=tt}return Te.highlight=ve,ze?Ee(ze):Ee(null,qe)};if(!ve||ve.length<3)return _e();if(delete Te.highlight,!ye.length)return _e();var Se=0;Ue.walkTokens(ye,function(De){De.type==="code"&&(Se++,setTimeout(function(){ve(De.text,De.lang,function(ze,qe){if(ze)return _e(ze);qe!=null&&qe!==De.text&&(De.text=qe,De.escaped=!0),Se--,Se===0&&_e()})},0))}),Se===0&&_e();return}try{var Ie=j.lex(Re,Te);return Te.walkTokens&&Ue.walkTokens(Ie,Te.walkTokens),Le.parse(Ie,Te)}catch(De){if(De.message+=`
Please report this to https://github.com/markedjs/marked.`,Te.silent)return"<p>An error occurred:</p><pre>"+He(De.message+"",!0)+"</pre>";throw De}}Ue.options=Ue.setOptions=function(Re){return We(Ue.defaults,Re),Ve(Ue.defaults),Ue},Ue.getDefaults=Oe,Ue.defaults=$e,Ue.use=function(Re){var Te=We({},Re);if(Re.renderer&&function(){var ve=Ue.defaults.renderer||new fe,ye=function(Ie){var De=ve[Ie];ve[Ie]=function(){for(var ze=arguments.length,qe=new Array(ze),tt=0;tt<ze;tt++)qe[tt]=arguments[tt];var ot=Re.renderer[Ie].apply(ve,qe);return ot===!1&&(ot=De.apply(ve,qe)),ot}};for(var _e in Re.renderer)ye(_e);Te.renderer=ve}(),Re.tokenizer&&function(){var ve=Ue.defaults.tokenizer||new xe,ye=function(Ie){var De=ve[Ie];ve[Ie]=function(){for(var ze=arguments.length,qe=new Array(ze),tt=0;tt<ze;tt++)qe[tt]=arguments[tt];var ot=Re.tokenizer[Ie].apply(ve,qe);return ot===!1&&(ot=De.apply(ve,qe)),ot}};for(var _e in Re.tokenizer)ye(_e);Te.tokenizer=ve}(),Re.walkTokens){var Ee=Ue.defaults.walkTokens;Te.walkTokens=function(ve){Re.walkTokens(ve),Ee&&Ee(ve)}}Ue.setOptions(Te)},Ue.walkTokens=function(Re,Te){for(var Ee=x(Re),ve;!(ve=Ee()).done;){var ye=ve.value;Te(ye);switch(ye.type){case"table":{for(var _e=x(ye.tokens.header),Se;!(Se=_e()).done;){var Ie=Se.value;Ue.walkTokens(Ie,Te)}for(var De=x(ye.tokens.cells),ze;!(ze=De()).done;)for(var qe=ze.value,tt=x(qe),ot;!(ot=tt()).done;){var nt=ot.value;Ue.walkTokens(nt,Te)}break}case"list":{Ue.walkTokens(ye.items,Te);break}default:ye.tokens&&Ue.walkTokens(ye.tokens,Te)}}},Ue.Parser=Le,Ue.parser=Le.parse,Ue.Renderer=fe,Ue.TextRenderer=we,Ue.Lexer=j,Ue.lexer=j.lex,Ue.Tokenizer=xe,Ue.Slugger=ke,Ue.parse=Ue;var Ke=Ue;return Ke})},"DlR+":function(s,z,d){var h=d("MFOe"),a=h.Global,T=h.trim;s.exports={name:"cookieStorage",read:x,write:f,each:p,remove:o,clearAll:i};var _=a.document;function x(l){if(!l||!u(l))return null;var v="(?:^|.*;\\s*)"+escape(l).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(_.cookie.replace(new RegExp(v),"$1"))}function p(l){for(var v=_.cookie.split(/; ?/g),m=v.length-1;m>=0;m--){if(!T(v[m]))continue;var g=v[m].split("="),E=unescape(g[0]),w=unescape(g[1]);l(w,E)}}function f(l,v){if(!l)return;_.cookie=escape(l)+"="+escape(v)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function o(l){if(!l||!u(l))return;_.cookie=escape(l)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function i(){p(function(l,v){o(v)})}function u(l){return new RegExp("(?:^|;\\s*)"+escape(l).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(_.cookie)}},E4JC:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(h){return function(){var a=h,T=a.lib,_=T.StreamCipher,x=a.algo,p=[],f=[],o=[],i=x.Rabbit=_.extend({_doReset:function(){for(var l=this._key.words,v=this.cfg.iv,m=0;m<4;m++)l[m]=(l[m]<<8|l[m]>>>24)&16711935|(l[m]<<24|l[m]>>>8)&4278255360;var g=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],E=this._C=[l[2]<<16|l[2]>>>16,l[0]&4294901760|l[1]&65535,l[3]<<16|l[3]>>>16,l[1]&4294901760|l[2]&65535,l[0]<<16|l[0]>>>16,l[2]&4294901760|l[3]&65535,l[1]<<16|l[1]>>>16,l[3]&4294901760|l[0]&65535];this._b=0;for(var m=0;m<4;m++)u.call(this);for(var m=0;m<8;m++)E[m]^=g[m+4&7];if(v){var w=v.words,O=w[0],C=w[1],M=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,N=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,P=M>>>16|N&4294901760,k=N<<16|M&65535;E[0]^=M,E[1]^=P,E[2]^=N,E[3]^=k,E[4]^=M,E[5]^=P,E[6]^=N,E[7]^=k;for(var m=0;m<4;m++)u.call(this)}},_doProcessBlock:function(l,v){var m=this._X;u.call(this),p[0]=m[0]^m[5]>>>16^m[3]<<16,p[1]=m[2]^m[7]>>>16^m[5]<<16,p[2]=m[4]^m[1]>>>16^m[7]<<16,p[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)p[g]=(p[g]<<8|p[g]>>>24)&16711935|(p[g]<<24|p[g]>>>8)&4278255360,l[v+g]^=p[g]},blockSize:128/32,ivSize:64/32});function u(){for(var l=this._X,v=this._C,m=0;m<8;m++)f[m]=v[m];v[0]=v[0]+1295307597+this._b|0,v[1]=v[1]+3545052371+(v[0]>>>0<f[0]>>>0?1:0)|0,v[2]=v[2]+886263092+(v[1]>>>0<f[1]>>>0?1:0)|0,v[3]=v[3]+1295307597+(v[2]>>>0<f[2]>>>0?1:0)|0,v[4]=v[4]+3545052371+(v[3]>>>0<f[3]>>>0?1:0)|0,v[5]=v[5]+886263092+(v[4]>>>0<f[4]>>>0?1:0)|0,v[6]=v[6]+1295307597+(v[5]>>>0<f[5]>>>0?1:0)|0,v[7]=v[7]+3545052371+(v[6]>>>0<f[6]>>>0?1:0)|0,this._b=v[7]>>>0<f[7]>>>0?1:0;for(var m=0;m<8;m++){var g=l[m]+v[m],E=g&65535,w=g>>>16,O=((E*E>>>17)+E*w>>>15)+w*w,C=((g&4294901760)*g|0)+((g&65535)*g|0);o[m]=O^C}l[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,l[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,l[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,l[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,l[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,l[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,l[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,l[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}a.Rabbit=_._createHelper(i)}(),h.Rabbit})},EHPI:function(s,z,d){"use strict";var h=d("bbsP"),a=d("/wGt"),T=d("tJVT"),_=d("k1fw"),x=d("q1tI"),p=d.n(x),f=d("ZW9T"),o=d("ZD9Y"),i=d("M8RZ"),u=d("bCnd"),l=d("fcyK"),v=d.n(l),m={theme:Object(u.a)("cmCodeMode","vs-dark"),fontSize:Object(u.a)("cmFontSize",14),showEditorSetting:!1,tabToSpace:Object(u.a)("cmTabToSpace",!0)},g;(function(O){O[O.set_font_size=0]="set_font_size",O[O.set_theme=1]="set_theme",O[O.on_tab_to_space=2]="on_tab_to_space",O[O.set_show_editor_setting=3]="set_show_editor_setting"})(g||(g={}));function E(O,C){switch(C.type){case g.set_show_editor_setting:return Object(_.a)(Object(_.a)({},O),{},{showEditorSetting:C.payload});case g.set_theme:return Object(_.a)(Object(_.a)({},O),{},{theme:C.payload});case g.set_font_size:return Object(_.a)(Object(_.a)({},O),{},{fontSize:C.payload});case g.on_tab_to_space:return Object(_.a)(Object(_.a)({},O),{},{tabToSpace:C.payload});default:throw new Error}}z.a=function(O){var C=O.value,M=O.onChange,N=O.language,P=O.ActionBarRender,k=P===void 0?function(W){return p.a.createElement(w,{onShowCodeSetting:W})}:P,b=Object(x.useReducer)(E,m),V=Object(T.a)(b,2),X=V[0],D=V[1],L=X.theme,U=X.fontSize,J=X.showEditorSetting,ae=X.tabToSpace,se={onFontSizeChange:function(H){D({type:g.set_font_size,payload:H}),Object(u.b)("cmFontSize",H)},tabToSpace:ae,cmFontSize:U,className:"oj",cmCodeMode:L,onTabToSpace:function(H){D({type:g.on_tab_to_space,payload:H}),Object(u.b)("cmTabToSpace",H)},onCodeModeChange:function(H){D({type:g.set_theme,payload:H}),Object(u.b)("cmCodeMode",H)}};function G(){D({type:g.set_show_editor_setting,payload:!1})}function he(){D({type:g.set_show_editor_setting,payload:!0})}var q={value:C,language:N,onChange:M,theme:L,height:"calc(100% - 56px)",options:{fontSize:U,insertSpaces:ae}};return p.a.createElement(x.Fragment,null,p.a.createElement("div",{className:"code-panel-container"},k(he),p.a.createElement(f.b,q)),p.a.createElement(i.a,null,p.a.createElement(a.a,{className:"oj",title:null,placement:"right",closable:!1,visible:J,onClose:G},p.a.createElement(o.a,se))))};function w(O){var C=O.onShowCodeSetting;return p.a.createElement("div",{className:"action-bar"},p.a.createElement("span",null,"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\u6587\u4EF6"),p.a.createElement("a",{onClick:C},p.a.createElement("i",{className:"iconfont icon-shezhi"})))}},ELLl:function(s,z,d){(function(h){h(d("VrN/"))})(function(h){var a={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},T=h.Pos;h.defineOption("autoCloseBrackets",!1,function(E,w,O){O&&O!=h.Init&&(E.removeKeyMap(x),E.state.closeBrackets=null),w&&(p(_(w,"pairs")),E.state.closeBrackets=w,E.addKeyMap(x))});function _(E,w){return w=="pairs"&&typeof E=="string"?E:typeof E=="object"&&E[w]!=null?E[w]:a[w]}var x={Backspace:i,Enter:u};function p(E){for(var w=0;w<E.length;w++){var O=E.charAt(w),C="'"+O+"'";x[C]||(x[C]=f(O))}}p(a.pairs+"`");function f(E){return function(w){return v(w,E)}}function o(E){var w=E.state.closeBrackets;if(!w||w.override)return w;var O=E.getModeAt(E.getCursor());return O.closeBrackets||w}function i(E){var w=o(E);if(!w||E.getOption("disableInput"))return h.Pass;for(var O=_(w,"pairs"),C=E.listSelections(),M=0;M<C.length;M++){if(!C[M].empty())return h.Pass;var N=m(E,C[M].head);if(!N||O.indexOf(N)%2!=0)return h.Pass}for(var M=C.length-1;M>=0;M--){var P=C[M].head;E.replaceRange("",T(P.line,P.ch-1),T(P.line,P.ch+1),"+delete")}}function u(E){var w=o(E),O=w&&_(w,"explode");if(!O||E.getOption("disableInput"))return h.Pass;for(var C=E.listSelections(),M=0;M<C.length;M++){if(!C[M].empty())return h.Pass;var N=m(E,C[M].head);if(!N||O.indexOf(N)%2!=0)return h.Pass}E.operation(function(){var P=E.lineSeparator()||`
`;E.replaceSelection(P+P,null),E.execCommand("goCharLeft"),C=E.listSelections();for(var k=0;k<C.length;k++){var b=C[k].head.line;E.indentLine(b,null,!0),E.indentLine(b+1,null,!0)}})}function l(E){var w=h.cmpPos(E.anchor,E.head)>0;return{anchor:new T(E.anchor.line,E.anchor.ch+(w?-1:1)),head:new T(E.head.line,E.head.ch+(w?1:-1))}}function v(E,w){var O=o(E);if(!O||E.getOption("disableInput"))return h.Pass;var C=_(O,"pairs"),M=C.indexOf(w);if(M==-1)return h.Pass;for(var N=_(O,"closeBefore"),P=_(O,"triples"),k=C.charAt(M+1)==w,b=E.listSelections(),V=M%2==0,X,D=0;D<b.length;D++){var L=b[D],U=L.head,J,ae=E.getRange(U,T(U.line,U.ch+1));if(V&&!L.empty())J="surround";else if((k||!V)&&ae==w)k&&g(E,U)?J="both":P.indexOf(w)>=0&&E.getRange(U,T(U.line,U.ch+3))==w+w+w?J="skipThree":J="skip";else if(k&&U.ch>1&&P.indexOf(w)>=0&&E.getRange(T(U.line,U.ch-2),U)==w+w){if(U.ch>2&&/\bstring/.test(E.getTokenTypeAt(T(U.line,U.ch-2))))return h.Pass;J="addFour"}else if(k){var se=U.ch==0?" ":E.getRange(T(U.line,U.ch-1),U);if(!h.isWordChar(ae)&&se!=w&&!h.isWordChar(se))J="both";else return h.Pass}else if(V&&(ae.length===0||/\s/.test(ae)||N.indexOf(ae)>-1))J="both";else return h.Pass;if(!X)X=J;else if(X!=J)return h.Pass}var G=M%2?C.charAt(M-1):w,he=M%2?w:C.charAt(M+1);E.operation(function(){if(X=="skip")E.execCommand("goCharRight");else if(X=="skipThree")for(var q=0;q<3;q++)E.execCommand("goCharRight");else if(X=="surround"){for(var W=E.getSelections(),q=0;q<W.length;q++)W[q]=G+W[q]+he;E.replaceSelections(W,"around"),W=E.listSelections().slice();for(var q=0;q<W.length;q++)W[q]=l(W[q]);E.setSelections(W)}else X=="both"?(E.replaceSelection(G+he,null),E.triggerElectric(G+he),E.execCommand("goCharLeft")):X=="addFour"&&(E.replaceSelection(G+G+G+G,"before"),E.execCommand("goCharRight"))})}function m(E,w){var O=E.getRange(T(w.line,w.ch-1),T(w.line,w.ch+1));return O.length==2?O:null}function g(E,w){var O=E.getTokenAt(T(w.line,w.ch+1));return/\bstring/.test(O.type)&&O.start==w.ch&&(w.ch==0||!/\bstring/.test(E.getTokenTypeAt(w)))}})},ELcG:function(s,z,d){(function(h,a){s.exports=z=a(d("Ib8C"))})(this,function(h){/** @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 T=h,_=T.lib,x=_.WordArray,p=_.Hasher,f=T.algo,o=x.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]),i=x.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]),u=x.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]),l=x.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]),v=x.create([0,1518500249,1859775393,2400959708,2840853838]),m=x.create([1352829926,1548603684,1836072691,2053994217,0]),g=f.RIPEMD160=p.extend({_doReset:function(){this._hash=x.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(P,k){for(var b=0;b<16;b++){var V=k+b,X=P[V];P[V]=(X<<8|X>>>24)&16711935|(X<<24|X>>>8)&4278255360}var D=this._hash.words,L=v.words,U=m.words,J=o.words,ae=i.words,se=u.words,G=l.words,he,q,W,H,R,y,A,ee,oe,de;y=he=D[0],A=q=D[1],ee=W=D[2],oe=H=D[3],de=R=D[4];for(var be,b=0;b<80;b+=1)be=he+P[k+J[b]]|0,b<16?be+=E(q,W,H)+L[0]:b<32?be+=w(q,W,H)+L[1]:b<48?be+=O(q,W,H)+L[2]:b<64?be+=C(q,W,H)+L[3]:be+=M(q,W,H)+L[4],be=be|0,be=N(be,se[b]),be=be+R|0,he=R,R=H,H=N(W,10),W=q,q=be,be=y+P[k+ae[b]]|0,b<16?be+=M(A,ee,oe)+U[0]:b<32?be+=C(A,ee,oe)+U[1]:b<48?be+=O(A,ee,oe)+U[2]:b<64?be+=w(A,ee,oe)+U[3]:be+=E(A,ee,oe)+U[4],be=be|0,be=N(be,G[b]),be=be+de|0,y=de,de=oe,oe=N(ee,10),ee=A,A=be;be=D[1]+W+oe|0,D[1]=D[2]+H+de|0,D[2]=D[3]+R+y|0,D[3]=D[4]+he+A|0,D[4]=D[0]+q+ee|0,D[0]=be},_doFinalize:function(){var P=this._data,k=P.words,b=this._nDataBytes*8,V=P.sigBytes*8;k[V>>>5]|=128<<24-V%32,k[(V+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,P.sigBytes=(k.length+1)*4,this._process();for(var X=this._hash,D=X.words,L=0;L<5;L++){var U=D[L];D[L]=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360}return X},clone:function(){var P=p.clone.call(this);return P._hash=this._hash.clone(),P}});function E(P,k,b){return P^k^b}function w(P,k,b){return P&k|~P&b}function O(P,k,b){return(P|~k)^b}function C(P,k,b){return P&b|k&~b}function M(P,k,b){return P^(k|~b)}function N(P,k){return P<<k|P>>>32-k}T.RIPEMD160=p._createHelper(g),T.HmacRIPEMD160=p._createHmacHelper(g)}(Math),h.RIPEMD160})},ETIr:function(s,z,d){(function(h,a){s.exports=z=a(d("Ib8C"))})(this,function(h){return function(){var a=h,T=a.lib,_=T.WordArray,x=a.enc,p=x.Base64={stringify:function(o){var i=o.words,u=o.sigBytes,l=this._map;o.clamp();for(var v=[],m=0;m<u;m+=3)for(var g=i[m>>>2]>>>24-m%4*8&255,E=i[m+1>>>2]>>>24-(m+1)%4*8&255,w=i[m+2>>>2]>>>24-(m+2)%4*8&255,O=g<<16|E<<8|w,C=0;C<4&&m+C*.75<u;C++)v.push(l.charAt(O>>>6*(3-C)&63));var M=l.charAt(64);if(M)for(;v.length%4;)v.push(M);return v.join("")},parse:function(o){var i=o.length,u=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var v=0;v<u.length;v++)l[u.charCodeAt(v)]=v}var m=u.charAt(64);if(m){var g=o.indexOf(m);g!==-1&&(i=g)}return f(o,i,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(o,i,u){for(var l=[],v=0,m=0;m<i;m++)if(m%4){var g=u[o.charCodeAt(m-1)]<<m%4*2,E=u[o.charCodeAt(m)]>>>6-m%4*2,w=g|E;l[v>>>2]|=w<<24-v%4*8,v++}return _.create(l,v)}}(),h.enc.Base64})},"F+F2":function(s,z,d){(function(h,a){s.exports=z=a(d("Ib8C"))})(this,function(h){return function(){if(typeof ArrayBuffer!="function")return;var a=h,T=a.lib,_=T.WordArray,x=_.init,p=_.init=function(f){if(f instanceof ArrayBuffer&&(f=new Uint8Array(f)),(f instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&f instanceof Uint8ClampedArray||f instanceof Int16Array||f instanceof Uint16Array||f instanceof Int32Array||f instanceof Uint32Array||f instanceof Float32Array||f instanceof Float64Array)&&(f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength)),f instanceof Uint8Array){for(var o=f.byteLength,i=[],u=0;u<o;u++)i[u>>>2]|=f[u]<<24-u%4*8;x.call(this,i,o)}else x.apply(this,arguments)};p.prototype=_}(),h.lib.WordArray})},GRuw:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("lPiR"))})(this,function(h){return function(){var a=h,T=a.lib,_=T.WordArray,x=a.algo,p=x.SHA256,f=x.SHA224=p.extend({_doReset:function(){this._hash=new _.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=p._doFinalize.call(this);return o.sigBytes-=4,o}});a.SHA224=p._createHelper(f),a.HmacSHA224=p._createHmacHelper(f)}(),h.SHA224})},GfqC:function(s,z,d){"use strict";var h=d("q1tI"),a=d.n(h),T=d("TSYQ"),_=d.n(T);function x(H,R){var y="cannot "+H.method+" "+H.action+" "+R.status+"'",A=new Error(y);return A.status=R.status,A.method=H.method,A.url=H.action,A}function p(H){var R=H.responseText||H.response;if(!R)return R;try{return JSON.parse(R)}catch(y){return R}}function f(H){var R=new XMLHttpRequest;H.onProgress&&R.upload&&(R.upload.onprogress=function(oe){oe.total>0&&(oe.percent=oe.loaded/oe.total*100),H.onProgress(oe)});var y=new FormData;H.data&&Object.keys(H.data).forEach(function(ee){var oe=H.data[ee];if(Array.isArray(oe)){oe.forEach(function(de){y.append(ee+"[]",de)});return}y.append(ee,H.data[ee])}),H.file instanceof Blob?y.append(H.filename,H.file,H.file.name):y.append(H.filename,H.file),R.onerror=function(oe){H.onError(oe)},R.onload=function(){return R.status<200||R.status>=300?H.onError(x(H,R),p(R)):H.onSuccess(p(R),R)},R.open(H.method,H.action,!0),H.withCredentials&&"withCredentials"in R&&(R.withCredentials=!0);var A=H.headers||{};return A["X-Requested-With"]!==null&&R.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(A).forEach(function(ee){A[ee]!==null&&R.setRequestHeader(ee,A[ee])}),R.send(y),{abort:function(){R.abort()}}}var o=+new Date,i=0;function u(){return"rc-upload-"+o+"-"+ ++i}function l(H,R){return H.indexOf(R,H.length-R.length)!==-1}var v=function(H,R){if(H&&R){var y=Array.isArray(R)?R:R.split(","),A=H.name||"",ee=H.type||"",oe=ee.replace(/\/.*$/,"");return y.some(function(de){var be=de.trim();return be.charAt(0)==="."?l(A.toLowerCase(),be.toLowerCase()):/\/\*$/.test(be)?oe===be.replace(/\/.*$/,""):ee===be})}return!0};function m(H,R){var y=H.createReader(),A=[];function ee(){y.readEntries(function(oe){var de=Array.prototype.slice.apply(oe);A=A.concat(de);var be=!de.length;be?R(A):ee()})}ee()}var g=function(R,y,A){var ee=function oe(de,be){be=be||"",de.isFile?de.file(function(xe){A(xe)&&(de.fullPath&&!xe.webkitRelativePath&&(Object.defineProperties(xe,{webkitRelativePath:{writable:!0}}),xe.webkitRelativePath=de.fullPath.replace(/^\//,""),Object.defineProperties(xe,{webkitRelativePath:{writable:!1}})),y([xe]))}):de.isDirectory&&m(de,function(xe){xe.forEach(function(te){oe(te,""+be+de.name+"/")})})};R.forEach(function(oe){ee(oe.webkitGetAsEntry())})},E=g,w=Object.assign||function(H){for(var R=1;R<arguments.length;R++){var y=arguments[R];for(var A in y)Object.prototype.hasOwnProperty.call(y,A)&&(H[A]=y[A])}return H},O=function(){function H(R,y){var A=[],ee=!0,oe=!1,de=void 0;try{for(var be=R[Symbol.iterator](),xe;!(ee=(xe=be.next()).done)&&!(A.push(xe.value),y&&A.length===y);ee=!0);}catch(te){oe=!0,de=te}finally{try{!ee&&be.return&&be.return()}finally{if(oe)throw de}}return A}return function(R,y){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return H(R,y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),C=function(){function H(R,y){for(var A=0;A<y.length;A++){var ee=y[A];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(R,ee.key,ee)}}return function(R,y,A){return y&&H(R.prototype,y),A&&H(R,A),R}}();function M(H,R,y){return R in H?Object.defineProperty(H,R,{value:y,enumerable:!0,configurable:!0,writable:!0}):H[R]=y,H}function N(H,R){var y={};for(var A in H){if(R.indexOf(A)>=0)continue;if(!Object.prototype.hasOwnProperty.call(H,A))continue;y[A]=H[A]}return y}function P(H,R){if(!(H instanceof R))throw new TypeError("Cannot call a class as a function")}function k(H,R){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:H}function b(H,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);H.prototype=Object.create(R&&R.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(H,R):H.__proto__=R)}var V=function(R){return Object.keys(R).reduce(function(y,A){return(A.substr(0,5)==="data-"||A.substr(0,5)==="aria-"||A==="role")&&(y[A]=R[A]),y},{})},X=function(H){b(R,H);function R(){var y,A,ee,oe;P(this,R);for(var de=arguments.length,be=Array(de),xe=0;xe<de;xe++)be[xe]=arguments[xe];return oe=(A=(ee=k(this,(y=R.__proto__||Object.getPrototypeOf(R)).call.apply(y,[this].concat(be))),ee),ee.state={uid:u()},ee.reqs={},ee.onChange=function(te){var le=te.target.files;ee.uploadFiles(le),ee.reset()},ee.onClick=function(te){var le=ee.fileInput;if(!le)return;var ue=ee.props,Z=ue.children,ne=ue.onClick;Z&&Z.type==="button"&&(le.parentNode.focus(),le.parentNode.querySelector("button").blur()),le.click(),ne&&ne(te)},ee.onKeyDown=function(te){te.key==="Enter"&&ee.onClick()},ee.onFileDrop=function(te){var le=ee.props.multiple;if(te.preventDefault(),te.type==="dragover")return;if(ee.props.directory)E(Array.prototype.slice.call(te.dataTransfer.items),ee.uploadFiles,function(Z){return v(Z,ee.props.accept)});else{var ue=Array.prototype.slice.call(te.dataTransfer.files).filter(function(Z){return v(Z,ee.props.accept)});le===!1&&(ue=ue.slice(0,1)),ee.uploadFiles(ue)}},ee.uploadFiles=function(te){var le=Array.prototype.slice.call(te);le.map(function(ue){return ue.uid=u(),ue}).forEach(function(ue){ee.upload(ue,le)})},ee.saveFileInput=function(te){ee.fileInput=te},A),k(ee,oe)}return C(R,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(A,ee){var oe=this,de=this.props;if(!de.beforeUpload)return setTimeout(function(){return oe.post(A)},0);var be=de.beforeUpload(A,ee);be&&be.then?be.then(function(xe){var te=Object.prototype.toString.call(xe);return te==="[object File]"||te==="[object Blob]"?oe.post(xe):oe.post(A)}).catch(function(xe){console.log(xe)}):be!==!1&&setTimeout(function(){return oe.post(A)},0);return}},{key:"post",value:function(A){var ee=this;if(!this._isMounted)return;var oe=this.props,de=oe.onStart,be=oe.onProgress,xe=oe.transformFile,te=xe===void 0?function(le){return le}:xe;new Promise(function(le){var ue=oe.action;return typeof ue=="function"&&(ue=ue(A)),le(ue)}).then(function(le){var ue=A.uid,Z=oe.customRequest||f,ne=Promise.resolve(te(A)).then(function(Y){var re=oe.data;return typeof re=="function"&&(re=re(Y)),Promise.all([Y,re])}).catch(function(Y){console.error(Y)});ne.then(function(Y){var re=O(Y,2),F=re[0],K=re[1],pe={action:le,filename:oe.name,data:K,file:F,headers:oe.headers,withCredentials:oe.withCredentials,method:oe.method||"post",onProgress:be?function($){be($,A)}:null,onSuccess:function(j,S){delete ee.reqs[ue],oe.onSuccess(j,A,S)},onError:function(j,S){delete ee.reqs[ue],oe.onError(j,S,A)}};de(A),ee.reqs[ue]=Z(pe)})})}},{key:"reset",value:function(){this.setState({uid:u()})}},{key:"abort",value:function(A){var ee=this.reqs;if(A){var oe=A;A&&A.uid&&(oe=A.uid),ee[oe]&&ee[oe].abort&&ee[oe].abort(),delete ee[oe]}else Object.keys(ee).forEach(function(de){ee[de]&&ee[de].abort&&ee[de].abort(),delete ee[de]})}},{key:"render",value:function(){var A,ee=this.props,oe=ee.component,de=ee.prefixCls,be=ee.className,xe=ee.disabled,te=ee.id,le=ee.style,ue=ee.multiple,Z=ee.accept,ne=ee.children,Y=ee.directory,re=ee.openFileDialogOnClick,F=ee.onMouseEnter,K=ee.onMouseLeave,pe=N(ee,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),$=_()((A={},M(A,de,!0),M(A,de+"-disabled",xe),M(A,be,be),A)),j=xe?{}:{onClick:re?this.onClick:function(){},onKeyDown:re?this.onKeyDown:function(){},onMouseEnter:F,onMouseLeave:K,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return a.a.createElement(oe,w({},j,{className:$,role:"button",style:le}),a.a.createElement("input",w({},V(pe),{id:te,type:"file",ref:this.saveFileInput,onClick:function(B){return B.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Z,directory:Y?"directory":null,webkitdirectory:Y?"webkitdirectory":null,multiple:ue,onChange:this.onChange})),ne)}}]),R}(h.Component),D=X,L=Object.assign||function(H){for(var R=1;R<arguments.length;R++){var y=arguments[R];for(var A in y)Object.prototype.hasOwnProperty.call(y,A)&&(H[A]=y[A])}return H},U=function(){function H(R,y){for(var A=0;A<y.length;A++){var ee=y[A];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(R,ee.key,ee)}}return function(R,y,A){return y&&H(R.prototype,y),A&&H(R,A),R}}();function J(H,R){if(!(H instanceof R))throw new TypeError("Cannot call a class as a function")}function ae(H,R){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:H}function se(H,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);H.prototype=Object.create(R&&R.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(H,R):H.__proto__=R)}function G(){}var he=function(H){se(R,H);function R(){var y,A,ee,oe;J(this,R);for(var de=arguments.length,be=Array(de),xe=0;xe<de;xe++)be[xe]=arguments[xe];return oe=(A=(ee=ae(this,(y=R.__proto__||Object.getPrototypeOf(R)).call.apply(y,[this].concat(be))),ee),ee.saveUploader=function(te){ee.uploader=te},A),ae(ee,oe)}return U(R,[{key:"abort",value:function(A){this.uploader.abort(A)}},{key:"render",value:function(){return a.a.createElement(D,L({},this.props,{ref:this.saveUploader}))}}]),R}(h.Component);he.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:G,onError:G,onSuccess:G,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var q=he,W=z.a=q},Gytx:function(s,z){s.exports=function(h,a,T,_){var x=T?T.call(_,h,a):void 0;if(x!==void 0)return!!x;if(h===a)return!0;if(typeof h!="object"||!h||typeof a!="object"||!a)return!1;var p=Object.keys(h),f=Object.keys(a);if(p.length!==f.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(a),i=0;i<p.length;i++){var u=p[i];if(!o(u))return!1;var l=h[u],v=a[u];if(x=T?T.call(_,l,v,u):void 0,x===!1||x===void 0&&l!==v)return!1}return!0}},HmJG:function(s,z,d){},Ib8C:function(s,z,d){(function(h){(function(a,T){s.exports=z=T()})(this,function(){var a=a||function(T,_){var x;if(typeof window!="undefined"&&window.crypto&&(x=window.crypto),typeof self!="undefined"&&self.crypto&&(x=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(x=globalThis.crypto),!x&&typeof window!="undefined"&&window.msCrypto&&(x=window.msCrypto),!x&&typeof h!="undefined"&&h.crypto&&(x=h.crypto),!x&&!0)try{x=d(4)}catch(M){}var p=function(){if(x){if(typeof x.getRandomValues=="function")try{return x.getRandomValues(new Uint32Array(1))[0]}catch(M){}if(typeof x.randomBytes=="function")try{return x.randomBytes(4).readInt32LE()}catch(M){}}throw new Error("Native crypto module could not be used to get secure random number.")},f=Object.create||function(){function M(){}return function(N){var P;return M.prototype=N,P=new M,M.prototype=null,P}}(),o={},i=o.lib={},u=i.Base=function(){return{extend:function(M){var N=f(this);return M&&N.mixIn(M),(!N.hasOwnProperty("init")||this.init===N.init)&&(N.init=function(){N.$super.init.apply(this,arguments)}),N.init.prototype=N,N.$super=this,N},create:function(){var M=this.extend();return M.init.apply(M,arguments),M},init:function(){},mixIn:function(M){for(var N in M)M.hasOwnProperty(N)&&(this[N]=M[N]);M.hasOwnProperty("toString")&&(this.toString=M.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=i.WordArray=u.extend({init:function(M,N){M=this.words=M||[],N!=_?this.sigBytes=N:this.sigBytes=M.length*4},toString:function(M){return(M||m).stringify(this)},concat:function(M){var N=this.words,P=M.words,k=this.sigBytes,b=M.sigBytes;if(this.clamp(),k%4)for(var V=0;V<b;V++){var X=P[V>>>2]>>>24-V%4*8&255;N[k+V>>>2]|=X<<24-(k+V)%4*8}else for(var D=0;D<b;D+=4)N[k+D>>>2]=P[D>>>2];return this.sigBytes+=b,this},clamp:function(){var M=this.words,N=this.sigBytes;M[N>>>2]&=4294967295<<32-N%4*8,M.length=T.ceil(N/4)},clone:function(){var M=u.clone.call(this);return M.words=this.words.slice(0),M},random:function(M){for(var N=[],P=0;P<M;P+=4)N.push(p());return new l.init(N,M)}}),v=o.enc={},m=v.Hex={stringify:function(M){for(var N=M.words,P=M.sigBytes,k=[],b=0;b<P;b++){var V=N[b>>>2]>>>24-b%4*8&255;k.push((V>>>4).toString(16)),k.push((V&15).toString(16))}return k.join("")},parse:function(M){for(var N=M.length,P=[],k=0;k<N;k+=2)P[k>>>3]|=parseInt(M.substr(k,2),16)<<24-k%8*4;return new l.init(P,N/2)}},g=v.Latin1={stringify:function(M){for(var N=M.words,P=M.sigBytes,k=[],b=0;b<P;b++){var V=N[b>>>2]>>>24-b%4*8&255;k.push(String.fromCharCode(V))}return k.join("")},parse:function(M){for(var N=M.length,P=[],k=0;k<N;k++)P[k>>>2]|=(M.charCodeAt(k)&255)<<24-k%4*8;return new l.init(P,N)}},E=v.Utf8={stringify:function(M){try{return decodeURIComponent(escape(g.stringify(M)))}catch(N){throw new Error("Malformed UTF-8 data")}},parse:function(M){return g.parse(unescape(encodeURIComponent(M)))}},w=i.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(M){typeof M=="string"&&(M=E.parse(M)),this._data.concat(M),this._nDataBytes+=M.sigBytes},_process:function(M){var N,P=this._data,k=P.words,b=P.sigBytes,V=this.blockSize,X=V*4,D=b/X;M?D=T.ceil(D):D=T.max((D|0)-this._minBufferSize,0);var L=D*V,U=T.min(L*4,b);if(L){for(var J=0;J<L;J+=V)this._doProcessBlock(k,J);N=k.splice(0,L),P.sigBytes-=U}return new l.init(N,U)},clone:function(){var M=u.clone.call(this);return M._data=this._data.clone(),M},_minBufferSize:0}),O=i.Hasher=w.extend({cfg:u.extend(),init:function(M){this.cfg=this.cfg.extend(M),this.reset()},reset:function(){w.reset.call(this),this._doReset()},update:function(M){return this._append(M),this._process(),this},finalize:function(M){M&&this._append(M);var N=this._doFinalize();return N},blockSize:512/32,_createHelper:function(M){return function(N,P){return new M.init(P).finalize(N)}},_createHmacHelper:function(M){return function(N,P){return new C.HMAC.init(M,P).finalize(N)}}}),C=o.algo={};return o}(Math);return a})}).call(this,d("IyRk"))},J66h:function(s,z,d){(function(h){var a,T;(function(_,x){s.exports=x(_)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof h!="undefined"?h:this,function(_){"use strict";_=_||{};var x=_.Base64,p="2.6.4",f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=function(G){for(var he={},q=0,W=G.length;q<W;q++)he[G.charAt(q)]=q;return he}(f),i=String.fromCharCode,u=function(G){if(G.length<2){var he=G.charCodeAt(0);return he<128?G:he<2048?i(192|he>>>6)+i(128|he&63):i(224|he>>>12&15)+i(128|he>>>6&63)+i(128|he&63)}else{var he=65536+(G.charCodeAt(0)-55296)*1024+(G.charCodeAt(1)-56320);return i(240|he>>>18&7)+i(128|he>>>12&63)+i(128|he>>>6&63)+i(128|he&63)}},l=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,v=function(G){return G.replace(l,u)},m=function(G){var he=[0,2,1][G.length%3],q=G.charCodeAt(0)<<16|(G.length>1?G.charCodeAt(1):0)<<8|(G.length>2?G.charCodeAt(2):0),W=[f.charAt(q>>>18),f.charAt(q>>>12&63),he>=2?"=":f.charAt(q>>>6&63),he>=1?"=":f.charAt(q&63)];return W.join("")},g=_.btoa&&typeof _.btoa=="function"?function(G){return _.btoa(G)}:function(G){if(G.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return G.replace(/[\s\S]{1,3}/g,m)},E=function(G){return g(v(String(G)))},w=function(G){return G.replace(/[+\/]/g,function(he){return he=="+"?"-":"_"}).replace(/=/g,"")},O=function(G,he){return he?w(E(G)):E(G)},C=function(G){return O(G,!0)},M;_.Uint8Array&&(M=function(G,he){for(var q="",W=0,H=G.length;W<H;W+=3){var R=G[W],y=G[W+1],A=G[W+2],ee=R<<16|y<<8|A;q+=f.charAt(ee>>>18)+f.charAt(ee>>>12&63)+(typeof y!="undefined"?f.charAt(ee>>>6&63):"=")+(typeof A!="undefined"?f.charAt(ee&63):"=")}return he?w(q):q});var N=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,P=function(G){switch(G.length){case 4:var he=(7&G.charCodeAt(0))<<18|(63&G.charCodeAt(1))<<12|(63&G.charCodeAt(2))<<6|63&G.charCodeAt(3),q=he-65536;return i((q>>>10)+55296)+i((q&1023)+56320);case 3:return i((15&G.charCodeAt(0))<<12|(63&G.charCodeAt(1))<<6|63&G.charCodeAt(2));default:return i((31&G.charCodeAt(0))<<6|63&G.charCodeAt(1))}},k=function(G){return G.replace(N,P)},b=function(G){var he=G.length,q=he%4,W=(he>0?o[G.charAt(0)]<<18:0)|(he>1?o[G.charAt(1)]<<12:0)|(he>2?o[G.charAt(2)]<<6:0)|(he>3?o[G.charAt(3)]:0),H=[i(W>>>16),i(W>>>8&255),i(W&255)];return H.length-=[0,0,2,1][q],H.join("")},V=_.atob&&typeof _.atob=="function"?function(G){return _.atob(G)}:function(G){return G.replace(/\S{1,4}/g,b)},X=function(G){return V(String(G).replace(/[^A-Za-z0-9\+\/]/g,""))},D=function(G){return k(V(G))},L=function(G){return String(G).replace(/[-_]/g,function(he){return he=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},U=function(G){return D(L(G))},J;_.Uint8Array&&(J=function(G){return Uint8Array.from(X(L(G)),function(he){return he.charCodeAt(0)})});var ae=function(){var G=_.Base64;return _.Base64=x,G};if(_.Base64={VERSION:p,atob:X,btoa:g,fromBase64:U,toBase64:O,utob:v,encode:O,encodeURI:C,btou:k,decode:U,noConflict:ae,fromUint8Array:M,toUint8Array:J},typeof Object.defineProperty=="function"){var se=function(G){return{value:G,enumerable:!1,writable:!0,configurable:!0}};_.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",se(function(){return U(this)})),Object.defineProperty(String.prototype,"toBase64",se(function(G){return O(this,G)})),Object.defineProperty(String.prototype,"toBase64URI",se(function(){return O(this,!0)}))}}return _.Meteor&&(Base64=_.Base64),s.exports?s.exports.Base64=_.Base64:!(a=[],T=function(){return _.Base64}.apply(z,a),T!==void 0&&(s.exports=T)),{Base64:_.Base64}})}).call(this,d("IyRk"))},K3mO:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("3y9D"),d("WYAk"))})(this,function(h){return function(){var a=h,T=a.lib,_=T.Base,x=T.WordArray,p=a.algo,f=p.MD5,o=p.EvpKDF=_.extend({cfg:_.extend({keySize:128/32,hasher:f,iterations:1}),init:function(i){this.cfg=this.cfg.extend(i)},compute:function(i,u){for(var l,v=this.cfg,m=v.hasher.create(),g=x.create(),E=g.words,w=v.keySize,O=v.iterations;E.length<w;){l&&m.update(l),l=m.update(i).finalize(u),m.reset();for(var C=1;C<O;C++)l=m.finalize(l),m.reset();g.concat(l)}return g.sigBytes=w*4,g}});a.EvpKDF=function(i,u,l){return o.create(l).compute(i,u)}}(),h.EvpKDF})},KhGG:function(s,z,d){"use strict";d.d(z,"a",function(){return b}),d.d(z,"c",function(){return X});var h=d("0Owb"),a=d("miYZ"),T=d("tsqr"),_=d("oBTY"),x=d("tJVT"),p=d("PpiC"),f=d("k1fw"),o=d("9og8"),i=d("DZo9"),u=d("8z0m"),l=d("WmNS"),v=d.n(l),m=d("q1tI"),g=d.n(m),E=d("ErOA"),w=d("NFKh"),O=d.n(w),C=d("7Cbv"),M=d("9kvl"),N=d("mxV5"),P=d.n(N),k=u.a.Dragger,b=function(U){var J="bf3c199c2470cb477d907b1e0917c17b",ae="5183666c72eec9e4",se=O.a.enc.Utf8.parse(J),G=O.a.enc.Utf8.parse(ae),he=O.a.AES.decrypt(U,se,{iv:G,mode:O.a.mode.CBC});return he.toString(O.a.enc.Utf8)},V,X=function(){var L=Object(o.a)(v.a.mark(function U(J,ae,se){var G,he,q,W,H,R,y,A,ee;return v.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return ae.file_name=J.name,de.next=3,Object(E.a)("/api/buckets/get_upload_token.json",{method:"get"});case 3:return y=de.sent,console.log("decrypt(res.data):",b(y.data)),y.data=JSON.parse(b(y.data)),A=Object(C.a)(),ee=new P.a({endpoint:y==null||((G=y.data)===null||G===void 0)?void 0:G.end_point,region:y==null||((he=y.data)===null||he===void 0)?void 0:he.region,accessKeyId:y==null||((q=y.data)===null||q===void 0)?void 0:q.access_key_id,accessKeySecret:y==null||((W=y.data)===null||W===void 0)?void 0:W.access_key_secret,bucket:y==null||((H=y.data)===null||H===void 0)?void 0:H.bucket,stsToken:y==null||((R=y.data)===null||R===void 0)?void 0:R.security_token}),de.abrupt("return",new Promise(function(be,xe){var te;ee.multipartUpload("".concat(A),new Blob([J],{type:J.type}),Object(f.a)(Object(f.a)({timeout:200*1e3,partSize:102400},se),{},{callback:{url:y==null||((te=y.data)===null||te===void 0)?void 0:te.callback_url,host:y==null?void 0:y.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(E.e)(ae)}})).then(function(le){var ue;J.response=(ue=le.data)===null||ue===void 0?void 0:ue.data,be(le==null?void 0:le.data)}).catch(function(le){xe(le),console.log("err:",le)})}));case 9:case"end":return de.stop()}},U)}));return function(J,ae,se){return L.apply(this,arguments)}}(),D=function(U){var J=U.user,ae=U.cancelUpload,se=Object(p.a)(U,["user","cancelUpload"]),G=Object(m.useState)([]),he=Object(x.a)(G,2),q=he[0],W=he[1],H=Object(m.useState)(),R=Object(x.a)(H,2),y=R[0],A=R[1],ee={onRemove:function(be){W(Object(_.a)(q.filter(function(xe){return xe.name!==be.name}))),se.onChange(q.filter(function(xe){return xe.name!==be.name}))},disabled:se.disabled,multiple:!0,fileList:q==null?void 0:q.map(function(de){return de.file}),customRequest:function(){},beforeUpload:function(){var de=Object(o.a)(v.a.mark(function xe(te){var le;return v.a.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(le=se.maxSize||1024*1024*1024*1,!q.filter(function(ne){return ne.name===te.name}).length){Z.next=4;break}return T.b.info("".concat(te.name,"\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")),Z.abrupt("return");case 4:if(!((te==null?void 0:te.size)>le)){Z.next=7;break}return T.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(le/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),Z.abrupt("return",!1);case 7:return q.push({name:te.name,file:te}),W(Object(_.a)(q)),se.onChange(q),Z.abrupt("return",!1);case 11:case"end":return Z.stop()}},xe)}));function be(xe){return de.apply(this,arguments)}return be}()},oe=function(){var de=Object(o.a)(v.a.mark(function be(xe,te){var le,ue,Z,ne,Y,re,F,K,pe;return v.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return te.file_name=xe.name,F=xe.name,j.next=4,Object(E.a)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if(K=j.sent,K.data=JSON.parse(b(K.data)),!((K==null?void 0:K.status)!==0)){j.next=12;break}return q[q.findIndex(function(S){return S.name===F})].status="error",q[q.findIndex(function(S){return S.name===F})].file.status="error",se.onChange(q),T.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),j.abrupt("return");case 12:return y=new P.a({endpoint:K==null||((le=K.data)===null||le===void 0)?void 0:le.end_point,region:K==null||((ue=K.data)===null||ue===void 0)?void 0:ue.region,accessKeyId:K==null||((Z=K.data)===null||Z===void 0)?void 0:Z.access_key_id,accessKeySecret:K==null||((ne=K.data)===null||ne===void 0)?void 0:ne.access_key_secret,bucket:K==null||((Y=K.data)===null||Y===void 0)?void 0:Y.bucket,stsToken:K==null||((re=K.data)===null||re===void 0)?void 0:re.security_token}),console.log(xe,"file"),A(y),pe=Object(C.a)(),j.abrupt("return",new Promise(function(S,B){try{var me;y.multipartUpload("".concat(se.identifier,"/").concat(pe).concat(F.indexOf(".")>-1?"."+F.split(".").pop():""),new Blob([xe.file],{type:xe.file.type}),{timeout:3600*1e3,partSize:1002400,progress:function(we,ke,Me){try{console.log("\u8FDB\u5EA6",we,ke,Me);var Ne=q.findIndex(function(Le){return Le.name===F});q[Ne].file.percent=we*100,q[Ne].tempCheckpoint=ke,W(Object(_.a)(q))}catch(Le){}},checkpoint:q[q.findIndex(function(fe){return fe.name===F})].tempCheckpoint,callback:{customValue:{id:F+""},url:K==null||((me=K.data)===null||me===void 0)?void 0:me.callback_url,host:K==null?void 0:K.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+Object(E.e)(te)}}).then(function(fe){var we,ke=q.findIndex(function(Fe){return Fe.name===F}),Me="done";if(((we=fe.data)===null||we===void 0?void 0:we.status)===0){var Ne;xe.response=(Ne=fe.data)===null||Ne===void 0?void 0:Ne.data;var Le=q.findIndex(function(Fe){return Fe.name===F});q[Le].status="done",q[Le].file.status="done"}else{var We;T.b.warn((We=fe.data)===null||We===void 0?void 0:We.message),Me="error"}q[ke].status=Me,q[ke].file.status=Me,se.onChange(q),S(fe==null?void 0:fe.data)}).catch(function(fe){q[q.findIndex(function(we){return we.name===F})].status="error",q[q.findIndex(function(we){return we.name===F})].file.status="error",T.b.warn("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),W(Object(_.a)(q)),se.onChange(q),B(fe),console.log("err:",fe)})}catch(fe){}}));case 17:case"end":return j.stop()}},be)}));return function(xe,te){return de.apply(this,arguments)}}();return Object(m.useEffect)(function(){q.every(function(de){return de==="done"||de==="error"})&&se.onComplete(q)},[q]),Object(m.useEffect)(function(){if(ae){var de;(de=y)===null||de===void 0||de.cancel()}},[ae]),Object(m.useEffect)(function(){se.uploading&&q.map(function(){var de=Object(o.a)(v.a.mark(function be(xe){var te,le;return v.a.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(!((!xe.status||xe.status==="error")&&!ae)){Z.next=6;break}return xe.status="uploading",xe.file.status="uploading",Z.next=5,oe(xe,{login:J==null||((te=J.userInfo)===null||te===void 0)?void 0:te.login,container_type:se.container_type,container_id:se.container_id,description:se.description});case 5:le=Z.sent;case 6:case"end":return Z.stop()}},be)}));return function(be){return de.apply(this,arguments)}}())},[se.uploading]),g.a.createElement(k,Object(h.a)({},ee,{height:se.height,className:se.className}),g.a.createElement("p",{className:"ant-upload-hint"},se.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};z.b=Object(M.a)(function(L){var U=L.loading,J=L.globalSetting,ae=L.user;return{globalSetting:J,loading:U.models.competitions,user:ae}})(D)},KmYQ:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("OLod"))})(this,function(h){return h.pad.ZeroPadding={pad:function(a,T){var _=T*4;a.clamp(),a.sigBytes+=_-(a.sigBytes%_||_)},unpad:function(a){for(var T=a.words,_=a.sigBytes-1,_=a.sigBytes-1;_>=0;_--)if(T[_>>>2]>>>24-_%4*8&255){a.sigBytes=_+1;break}}},h.pad.ZeroPadding})},LdHM:function(s,z,d){"use strict";d.d(z,"b",function(){return N}),d.d(z,"a",function(){return k});var h=d("1OyB"),a=d("vuIU"),T=d("Ji7U"),_=d("LK+K"),x=d("q1tI"),p=d("rePB"),f=d("Ff2n"),o=d("ODXe"),i=d("4IlW"),u=d("bX4T"),l=d("YrtM"),v=d("TSYQ"),m=d.n(v),g=d("+nKL"),E=d("8OUc"),w=function(A,ee){var oe=A.prefixCls,de=A.id,be=A.flattenOptions,xe=A.childrenAsData,te=A.values,le=A.searchValue,ue=A.multiple,Z=A.defaultActiveFirstOption,ne=A.height,Y=A.itemHeight,re=A.notFoundContent,F=A.open,K=A.menuItemSelectedIcon,pe=A.virtual,$=A.onSelect,j=A.onToggleOpen,S=A.onActiveValue,B=A.onScroll,me=A.onMouseEnter,fe="".concat(oe,"-item"),we=Object(l.a)(function(){return be},[F,be],function(Ke,Re){return Re[0]&&Ke[1]!==Re[1]}),ke=x.useRef(null),Me=function(Re){Re.preventDefault()},Ne=function(Re){ke.current&&ke.current.scrollTo({index:Re})},Le=function(Re){for(var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ee=we.length,ve=0;ve<Ee;ve+=1){var ye=(Re+ve*Te+Ee)%Ee,_e=we[ye],Se=_e.group,Ie=_e.data;if(!Se&&!Ie.disabled)return ye}return-1},We=x.useState(function(){return Le(0)}),Fe=Object(o.a)(We,2),He=Fe[0],Oe=Fe[1],Ve=function(Re){Oe(Re);var Te=we[Re];if(!Te){S(null,-1);return}S(Te.data.value,Re)};x.useEffect(function(){Ve(Z!==!1?Le(0):-1)},[we.length,le]),x.useEffect(function(){var Ke=setTimeout(function(){if(!ue&&F&&te.size===1){var Re=Array.from(te)[0],Te=we.findIndex(function(Ee){var ve=Ee.data;return ve.value===Re});Ve(Te),Ne(Te)}});return function(){return clearTimeout(Ke)}},[F]);var $e=function(Re){Re!==void 0&&$(Re,{selected:!te.has(Re)}),ue||j(!1)};if(x.useImperativeHandle(ee,function(){return{onKeyDown:function(Re){var Te=Re.which;switch(Te){case i.a.UP:case i.a.DOWN:{var Ee=0;if(Te===i.a.UP?Ee=-1:Te===i.a.DOWN&&(Ee=1),Ee!==0){var ve=Le(He+Ee,Ee);Ne(ve),Ve(ve)}break}case i.a.ENTER:{var ye=we[He];ye&&!ye.data.disabled?$e(ye.data.value):$e(void 0),F&&Re.preventDefault();break}case i.a.ESC:j(!1)}},onKeyUp:function(){},scrollTo:function(Re){Ne(Re)}}}),we.length===0)return x.createElement("div",{role:"listbox",id:"".concat(de,"_list"),className:"".concat(fe,"-empty"),onMouseDown:Me},re);function Ue(Ke){var Re=we[Ke];if(!Re)return null;var Te=Re.data||{},Ee=Te.value,ve=Te.label,ye=Te.children,_e=Object(u.a)(Te,!0),Se=xe?ye:ve;return Re?x.createElement("div",Object.assign({"aria-label":typeof Se=="string"?Se:null},_e,{key:Ke,role:"option",id:"".concat(de,"_list_").concat(Ke),"aria-selected":te.has(Ee)}),Ee):null}return x.createElement(x.Fragment,null,x.createElement("div",{role:"listbox",id:"".concat(de,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ue(He-1),Ue(He),Ue(He+1)),x.createElement(g.a,{itemKey:"key",ref:ke,data:we,height:ne,itemHeight:Y,fullHeight:!1,onMouseDown:Me,onScroll:B,virtual:pe,onMouseEnter:me},function(Ke,Re){var Te,Ee=Ke.group,ve=Ke.groupOption,ye=Ke.data,_e=ye.label,Se=ye.key;if(Ee)return x.createElement("div",{className:m()(fe,"".concat(fe,"-group"))},_e!==void 0?_e:Se);var Ie=ye.disabled,De=ye.value,ze=ye.title,qe=ye.children,tt=ye.style,ot=ye.className,nt=Object(f.a)(ye,["disabled","value","title","children","style","className"]),pt=te.has(De),ft="".concat(fe,"-option"),_t=m()(fe,ft,ot,(Te={},Object(p.a)(Te,"".concat(ft,"-grouped"),ve),Object(p.a)(Te,"".concat(ft,"-active"),He===Re&&!Ie),Object(p.a)(Te,"".concat(ft,"-disabled"),Ie),Object(p.a)(Te,"".concat(ft,"-selected"),pt),Te)),Rt=xe?qe:_e,Gt=!K||typeof K=="function"||pt;return x.createElement("div",Object.assign({},nt,{"aria-selected":pt,className:_t,title:ze,onMouseMove:function(){if(He===Re||Ie)return;Ve(Re)},onClick:function(){Ie||$e(De)},style:tt}),x.createElement("div",{className:"".concat(ft,"-content")},Rt||De),x.isValidElement(K)||pt,Gt&&x.createElement(E.a,{className:"".concat(fe,"-option-state"),customizeIcon:K,customizeIconProps:{isSelected:pt}},pt?"\u2713":null))}))},O=x.forwardRef(w);O.displayName="OptionList";var C=O,M=function(){return null};M.isSelectOption=!0;var N=M,P=function(){return null};P.isSelectOptGroup=!0;var k=P,b=d("VTBJ"),V=d("Zm9Q");function X(y){var A=y.key,ee=y.props,oe=ee.children,de=ee.value,be=Object(f.a)(ee,["children","value"]);return Object(b.a)({key:A,value:de!==void 0?de:A,children:oe},be)}function D(y){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(V.a)(y).map(function(ee,oe){if(!x.isValidElement(ee)||!ee.type)return null;var de=ee.type.isSelectOptGroup,be=ee.key,xe=ee.props,te=xe.children,le=Object(f.a)(xe,["children"]);return A||!de?X(ee):Object(b.a)(Object(b.a)({key:"__RC_SELECT_GRP__".concat(be===null?oe:be,"__"),label:be},le),{},{options:D(te)})}).filter(function(ee){return ee})}var L=d("2Qr1"),U=d("qNPg"),J=d("U8pU"),ae=d("Kwbf"),se=d("WKfj");function G(y){var A=y.mode,ee=y.options,oe=y.children,de=y.backfill,be=y.allowClear,xe=y.placeholder,te=y.getInputElement,le=y.showSearch,ue=y.onSearch,Z=y.defaultOpen,ne=y.autoFocus,Y=y.labelInValue,re=y.value,F=y.inputValue,K=y.optionLabelProp,pe=A==="multiple"||A==="tags",$=le!==void 0?le:pe||A==="combobox",j=ee||D(oe);if(Object(ae.a)(A!=="tags"||j.every(function(fe){return!fe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),A==="tags"||A==="combobox"){var S=j.some(function(fe){return fe.options?fe.options.some(function(we){return typeof("value"in we?we.value:we.key)=="number"}):typeof("value"in fe?fe.value:fe.key)=="number"});Object(ae.a)(!S,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(ae.a)(A!=="combobox"||!K,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(ae.a)(A==="combobox"||!de,"`backfill` only works with `combobox` mode."),Object(ae.a)(A==="combobox"||!te,"`getInputElement` only work with `combobox` mode."),Object(ae.b)(A!=="combobox"||!te||!be||!xe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ue&&!$&&A!=="combobox"&&A!=="tags"&&Object(ae.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(ae.b)(!Z||ne,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),re!=null){var B=Object(se.d)(re);Object(ae.a)(!Y||B.every(function(fe){return Object(J.a)(fe)==="object"&&("key"in fe||"value"in fe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(ae.a)(!pe||Array.isArray(re),"`value` should be array when `mode` is `multiple` or `tags`")}if(oe){var me=null;Object(V.a)(oe).some(function(fe){if(!x.isValidElement(fe)||!fe.type)return!1;var we=fe.type;if(we.isSelectOption)return!1;if(we.isSelectOptGroup){var ke=Object(V.a)(fe.props.children).every(function(Me){return!x.isValidElement(Me)||!fe.type||Me.type.isSelectOption?!0:(me=Me.type,!1)});return!ke}return me=we,!0}),me&&Object(ae.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(me.displayName||me.name||me,"`.")),Object(ae.a)(F===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var he=G,q=Object(U.a)({prefixCls:"rc-select",components:{optionList:C},convertChildrenToData:D,flattenOptions:L.d,getLabeledValue:L.e,filterOptions:L.b,isValueDisabled:L.g,findValueOption:L.c,warningProps:he,fillOptionsWithMissingValue:L.a}),W=function(y){Object(T.a)(ee,y);var A=Object(_.a)(ee);function ee(){var oe;return Object(h.a)(this,ee),oe=A.apply(this,arguments),oe.selectRef=x.createRef(),oe.focus=function(){oe.selectRef.current.focus()},oe.blur=function(){oe.selectRef.current.blur()},oe}return Object(a.a)(ee,[{key:"render",value:function(){return x.createElement(q,Object.assign({ref:this.selectRef},this.props))}}]),ee}(x.Component);W.Option=N,W.OptGroup=k;var H=W,R=z.c=H},M8RZ:function(s,z,d){"use strict";d.d(z,"a",function(){return i});var h=d("fWQN"),a=d("mtLc"),T=d("yKVA"),_=d("879j"),x=d("q1tI"),p=d.n(x),f=d("i8i4"),o=d.n(f),i=function(u){Object(T.a)(v,u);var l=Object(_.a)(v);function v(m){var g;Object(h.a)(this,v),g=l.call(this,m);var E=window.document;return g.node=E.createElement("div"),E.body.appendChild(g.node),g}return Object(a.a)(v,[{key:"render",value:function(){var g=this.props.children;return Object(f.createPortal)(g,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),v}(p.a.Component)},MFOe:function(s,z,d){(function(h){var a=p(),T=f(),_=o(),x=typeof window!="undefined"?window:h;s.exports={assign:a,create:T,trim:_,bind:i,slice:u,each:l,map:v,pluck:m,isList:g,isFunction:E,isObject:w,Global:x};function p(){return Object.assign?Object.assign:function(C,M,N,P){for(var k=1;k<arguments.length;k++)l(Object(arguments[k]),function(b,V){C[V]=b});return C}}function f(){if(Object.create)return function(M,N,P,k){var b=u(arguments,1);return a.apply(this,[Object.create(M)].concat(b))};{function O(){}return function(M,N,P,k){var b=u(arguments,1);return O.prototype=M,a.apply(this,[new O].concat(b))}}}function o(){return String.prototype.trim?function(C){return String.prototype.trim.call(C)}:function(C){return C.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function i(O,C){return function(){return C.apply(O,Array.prototype.slice.call(arguments,0))}}function u(O,C){return Array.prototype.slice.call(O,C||0)}function l(O,C){m(O,function(M,N){return C(M,N),!1})}function v(O,C){var M=g(O)?[]:{};return m(O,function(N,P){return M[P]=C(N,P),!1}),M}function m(O,C){if(g(O)){for(var M=0;M<O.length;M++)if(C(O[M],M))return O[M]}else for(var N in O)if(O.hasOwnProperty(N)&&C(O[N],N))return O[N]}function g(O){return O!=null&&typeof O!="function"&&typeof O.length=="number"}function E(O){return O&&{}.toString.call(O)==="[object Function]"}function w(O){return O&&{}.toString.call(O)==="[object Object]"}}).call(this,d("IyRk"))},MlIO:function(s,z,d){(function(h,a){s.exports=z=a(d("Ib8C"))})(this,function(h){return function(a){var T=h,_=T.lib,x=_.Base,p=_.WordArray,f=T.x64={},o=f.Word=x.extend({init:function(u,l){this.high=u,this.low=l}}),i=f.WordArray=x.extend({init:function(u,l){u=this.words=u||[],l!=a?this.sigBytes=l:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,l=u.length,v=[],m=0;m<l;m++){var g=u[m];v.push(g.high),v.push(g.low)}return p.create(v,this.sigBytes)},clone:function(){for(var u=x.clone.call(this),l=u.words=this.words.slice(0),v=l.length,m=0;m<v;m++)l[m]=l[m].clone();return u}})}(),h})},NFKh:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("MlIO"),d("F+F2"),d("qM6L"),d("ETIr"),d("wbyO"),d("cv67"),d("3y9D"),d("lPiR"),d("GRuw"),d("1uat"),d("uGsb"),d("5hvy"),d("ELcG"),d("WYAk"),d("e7zE"),d("K3mO"),d("OLod"),d("ALsQ"),d("9OqN"),d("qu8F"),d("S6kV"),d("gb/T"),d("qBft"),d("oRuE"),d("jO9C"),d("KmYQ"),d("uGxW"),d("bQjk"),d("wZgz"),d("pA7S"),d("w7YG"),d("E4JC"),d("PVpz"))})(this,function(h){return h})},NvD2:function(s,z,d){"use strict";d.d(z,"a",function(){return p});var h=d("Kwbf");function a(f,o){var i=new Set;return f.forEach(function(u){o.has(u)||i.add(u)}),i}function T(f){var o=f||{},i=o.disabled,u=o.disableCheckbox,l=o.checkable;return!!(i||u)||l===!1}function _(f,o,i,u){for(var l=new Set(f),v=new Set,m=0;m<=i;m+=1){var g=o.get(m)||new Set;g.forEach(function(C){var M=C.key,N=C.node,P=C.children,k=P===void 0?[]:P;l.has(M)&&!u(N)&&k.filter(function(b){return!u(b.node)}).forEach(function(b){l.add(b.key)})})}for(var E=new Set,w=i;w>=0;w-=1){var O=o.get(w)||new Set;O.forEach(function(C){var M=C.parent,N=C.node;if(u(N)||!C.parent||E.has(C.parent.key))return;if(u(C.parent.node)){E.add(M.key);return}var P=!0,k=!1;(M.children||[]).filter(function(b){return!u(b.node)}).forEach(function(b){var V=b.key,X=l.has(V);P&&!X&&(P=!1),!k&&(X||v.has(V))&&(k=!0)}),P&&l.add(M.key),k&&v.add(M.key),E.add(M.key)})}return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(a(v,l))}}function x(f,o,i,u,l){for(var v=new Set(f),m=new Set(o),g=0;g<=u;g+=1){var E=i.get(g)||new Set;E.forEach(function(M){var N=M.key,P=M.node,k=M.children,b=k===void 0?[]:k;!v.has(N)&&!m.has(N)&&!l(P)&&b.filter(function(V){return!l(V.node)}).forEach(function(V){v.delete(V.key)})})}m=new Set;for(var w=new Set,O=u;O>=0;O-=1){var C=i.get(O)||new Set;C.forEach(function(M){var N=M.parent,P=M.node;if(l(P)||!M.parent||w.has(M.parent.key))return;if(l(M.parent.node)){w.add(N.key);return}var k=!0,b=!1;(N.children||[]).filter(function(V){return!l(V.node)}).forEach(function(V){var X=V.key,D=v.has(X);k&&!D&&(k=!1),!b&&(D||m.has(X))&&(b=!0)}),k||v.delete(N.key),b&&m.add(N.key),w.add(N.key)})}return{checkedKeys:Array.from(v),halfCheckedKeys:Array.from(a(m,v))}}function p(f,o,i,u){var l=[],v;u?v=u:v=T;var m=new Set(f.filter(function(O){var C=!!i[O];return C||l.push(O),C})),g=new Map,E=0;Object.keys(i).forEach(function(O){var C=i[O],M=C.level,N=g.get(M);N||(N=new Set,g.set(M,N)),N.add(C),E=Math.max(E,M)}),Object(h.a)(!l.length,"Tree missing follow keys: ".concat(l.slice(0,100).map(function(O){return"'".concat(O,"'")}).join(", ")));var w;return o===!0?w=_(m,g,E,v):w=x(m,o.halfCheckedKeys,g,E,v),w}},OLES:function(s,z,d){"use strict";var h=d("U8pU"),a=d("VTBJ"),T=d("Ff2n"),_=d("q1tI"),x=d("uciX"),p=d("7ixt"),f=function(m){var g=m.overlay,E=m.prefixCls,w=m.id,O=m.overlayInnerStyle;return _.createElement("div",{className:"".concat(E,"-inner"),id:w,role:"tooltip",style:O},typeof g=="function"?g():g)},o=f,i=function(m,g){var E=m.overlayClassName,w=m.trigger,O=w===void 0?["hover"]:w,C=m.mouseEnterDelay,M=C===void 0?0:C,N=m.mouseLeaveDelay,P=N===void 0?.1:N,k=m.overlayStyle,b=m.prefixCls,V=b===void 0?"rc-tooltip":b,X=m.children,D=m.onVisibleChange,L=m.afterVisibleChange,U=m.transitionName,J=m.animation,ae=m.placement,se=ae===void 0?"right":ae,G=m.align,he=G===void 0?{}:G,q=m.destroyTooltipOnHide,W=q===void 0?!1:q,H=m.defaultVisible,R=m.getTooltipContainer,y=m.overlayInnerStyle,A=Object(T.a)(m,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),ee=Object(_.useRef)(null);Object(_.useImperativeHandle)(g,function(){return ee.current});var oe=Object(a.a)({},A);"visible"in m&&(oe.popupVisible=m.visible);var de=function(){var ue=m.arrowContent,Z=ue===void 0?null:ue,ne=m.overlay,Y=m.id;return[_.createElement("div",{className:"".concat(V,"-arrow"),key:"arrow"},Z),_.createElement(o,{key:"content",prefixCls:V,id:Y,overlay:ne,overlayInnerStyle:y})]},be=!1,xe=!1;if(typeof W=="boolean")be=W;else if(W&&Object(h.a)(W)==="object"){var te=W.keepParent;be=te===!0,xe=te===!1}return _.createElement(x.a,Object.assign({popupClassName:E,prefixCls:V,popup:de,action:O,builtinPlacements:p.a,popupPlacement:se,ref:ee,popupAlign:he,getPopupContainer:R,onPopupVisibleChange:D,afterPopupVisibleChange:L,popupTransitionName:U,popupAnimation:J,defaultPopupVisible:H,destroyPopupOnHide:be,autoDestroy:xe,mouseLeaveDelay:P,popupStyle:k,mouseEnterDelay:M},oe),X)},u=Object(_.forwardRef)(i),l=z.a=u},OLod:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("K3mO"))})(this,function(h){h.lib.Cipher||function(a){var T=h,_=T.lib,x=_.Base,p=_.WordArray,f=_.BufferedBlockAlgorithm,o=T.enc,i=o.Utf8,u=o.Base64,l=T.algo,v=l.EvpKDF,m=_.Cipher=f.extend({cfg:x.extend(),createEncryptor:function(U,J){return this.create(this._ENC_XFORM_MODE,U,J)},createDecryptor:function(U,J){return this.create(this._DEC_XFORM_MODE,U,J)},init:function(U,J,ae){this.cfg=this.cfg.extend(ae),this._xformMode=U,this._key=J,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(U){return this._append(U),this._process()},finalize:function(U){U&&this._append(U);var J=this._doFinalize();return J},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function U(J){return typeof J=="string"?L:V}return function(J){return{encrypt:function(ae,se,G){return U(se).encrypt(J,ae,se,G)},decrypt:function(ae,se,G){return U(se).decrypt(J,ae,se,G)}}}}()}),g=_.StreamCipher=m.extend({_doFinalize:function(){var U=this._process(!0);return U},blockSize:1}),E=T.mode={},w=_.BlockCipherMode=x.extend({createEncryptor:function(U,J){return this.Encryptor.create(U,J)},createDecryptor:function(U,J){return this.Decryptor.create(U,J)},init:function(U,J){this._cipher=U,this._iv=J}}),O=E.CBC=function(){var U=w.extend();U.Encryptor=U.extend({processBlock:function(ae,se){var G=this._cipher,he=G.blockSize;J.call(this,ae,se,he),G.encryptBlock(ae,se),this._prevBlock=ae.slice(se,se+he)}}),U.Decryptor=U.extend({processBlock:function(ae,se){var G=this._cipher,he=G.blockSize,q=ae.slice(se,se+he);G.decryptBlock(ae,se),J.call(this,ae,se,he),this._prevBlock=q}});function J(ae,se,G){var he,q=this._iv;q?(he=q,this._iv=a):he=this._prevBlock;for(var W=0;W<G;W++)ae[se+W]^=he[W]}return U}(),C=T.pad={},M=C.Pkcs7={pad:function(U,J){for(var ae=J*4,se=ae-U.sigBytes%ae,G=se<<24|se<<16|se<<8|se,he=[],q=0;q<se;q+=4)he.push(G);var W=p.create(he,se);U.concat(W)},unpad:function(U){var J=U.words[U.sigBytes-1>>>2]&255;U.sigBytes-=J}},N=_.BlockCipher=m.extend({cfg:m.cfg.extend({mode:O,padding:M}),reset:function(){var U;m.reset.call(this);var J=this.cfg,ae=J.iv,se=J.mode;this._xformMode==this._ENC_XFORM_MODE?U=se.createEncryptor:(U=se.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==U?this._mode.init(this,ae&&ae.words):(this._mode=U.call(se,this,ae&&ae.words),this._mode.__creator=U)},_doProcessBlock:function(U,J){this._mode.processBlock(U,J)},_doFinalize:function(){var U,J=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(J.pad(this._data,this.blockSize),U=this._process(!0)):(U=this._process(!0),J.unpad(U)),U},blockSize:128/32}),P=_.CipherParams=x.extend({init:function(U){this.mixIn(U)},toString:function(U){return(U||this.formatter).stringify(this)}}),k=T.format={},b=k.OpenSSL={stringify:function(U){var J,ae=U.ciphertext,se=U.salt;return se?J=p.create([1398893684,1701076831]).concat(se).concat(ae):J=ae,J.toString(u)},parse:function(U){var J,ae=u.parse(U),se=ae.words;return se[0]==1398893684&&se[1]==1701076831&&(J=p.create(se.slice(2,4)),se.splice(0,4),ae.sigBytes-=16),P.create({ciphertext:ae,salt:J})}},V=_.SerializableCipher=x.extend({cfg:x.extend({format:b}),encrypt:function(U,J,ae,se){se=this.cfg.extend(se);var G=U.createEncryptor(ae,se),he=G.finalize(J),q=G.cfg;return P.create({ciphertext:he,key:ae,iv:q.iv,algorithm:U,mode:q.mode,padding:q.padding,blockSize:U.blockSize,formatter:se.format})},decrypt:function(U,J,ae,se){se=this.cfg.extend(se),J=this._parse(J,se.format);var G=U.createDecryptor(ae,se).finalize(J.ciphertext);return G},_parse:function(U,J){return typeof U=="string"?J.parse(U,this):U}}),X=T.kdf={},D=X.OpenSSL={execute:function(U,J,ae,se){se||(se=p.random(64/8));var G=v.create({keySize:J+ae}).compute(U,se),he=p.create(G.words.slice(J),ae*4);return G.sigBytes=J*4,P.create({key:G,iv:he,salt:se})}},L=_.PasswordBasedCipher=V.extend({cfg:V.cfg.extend({kdf:D}),encrypt:function(U,J,ae,se){se=this.cfg.extend(se);var G=se.kdf.execute(ae,U.keySize,U.ivSize);se.iv=G.iv;var he=V.encrypt.call(this,U,J,G.key,se);return he.mixIn(G),he},decrypt:function(U,J,ae,se){se=this.cfg.extend(se),J=this._parse(J,se.format);var G=se.kdf.execute(ae,U.keySize,U.ivSize,J.salt);se.iv=G.iv;var he=V.decrypt.call(this,U,J,G.key,se);return he}})}()})},OZM5:function(s,z,d){"use strict";d.d(z,"b",function(){return u}),d.d(z,"a",function(){return l}),d.d(z,"k",function(){return v}),d.d(z,"h",function(){return m}),d.d(z,"i",function(){return g}),d.d(z,"g",function(){return E}),d.d(z,"c",function(){return w}),d.d(z,"d",function(){return O}),d.d(z,"j",function(){return N}),d.d(z,"e",function(){return P}),d.d(z,"f",function(){return k});var h=d("KQm4"),a=d("U8pU"),T=d("Ff2n"),_=d("q1tI"),x=d.n(_),p=d("Kwbf"),f=d("WaYH"),o=.25,i=2;function u(b,V){var X=b.slice(),D=X.indexOf(V);return D>=0&&X.splice(D,1),X}function l(b,V){var X=b.slice();return X.indexOf(V)===-1&&X.push(V),X}function v(b){return b.split("-")}function m(b,V){return"".concat(b,"-").concat(V)}function g(b){return b&&b.type&&b.type.isTreeNode}function E(b,V){var X=[b],D=V[b];function L(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];U.forEach(function(J){var ae=J.key,se=J.children;X.push(ae),L(se)})}return L(D.children),X}function w(b,V){var X=b.clientY,D=V.selectHandle.getBoundingClientRect(),L=D.top,U=D.bottom,J=D.height,ae=Math.max(J*o,i);return X<=L+ae?-1:X>=U-ae?1:0}function O(b,V){if(!b)return;var X=V.multiple;return X?b.slice():b.length?[b[0]]:b}var C=function(V){return V};function M(b,V){if(!b)return[];var X=V||{},D=X.processProps,L=D===void 0?C:D,U=Array.isArray(b)?b:[b];return U.map(function(J){var ae=J.children,se=Object(T.a)(J,["children"]),G=M(ae,V);return x.a.createElement(f.a,Object.assign({},L(se)),G)})}function N(b){if(!b)return null;var V;if(Array.isArray(b))V={checkedKeys:b,halfCheckedKeys:void 0};else if(Object(a.a)(b)==="object")V={checkedKeys:b.checked||void 0,halfCheckedKeys:b.halfChecked||void 0};else return Object(p.a)(!1,"`checkedKeys` is not an array or an object"),null;return V}function P(b,V){var X=new Set;function D(L){if(X.has(L))return;var U=V[L];if(!U)return;X.add(L);var J=U.parent,ae=U.node;if(ae.disabled)return;J&&D(J.key)}return(b||[]).forEach(function(L){D(L)}),Object(h.a)(X)}function k(b){var V={};return Object.keys(b).forEach(function(X){(X.startsWith("data-")||X.startsWith("aria-"))&&(V[X]=b[X])}),V}},Ot1p:function(s,z,d){"use strict";var h=d("2qtc"),a=d("kLXV"),T=d("rAM+"),_=d("miYZ"),x=d("tsqr"),p=d("tJVT"),f=d("jrin"),o=d("q1tI"),i=d.n(o),u=d("VrN/"),l=d.n(u),v=d("bdgK"),m=d("p77/"),g=d("Bd2K"),E=d("ELLl"),w=d("19Vz"),O=d("lZu9"),C=d("+NIl"),M=d("kSUc"),N=d("9Bee"),P=function(Ee){var ve=Ee.value,ye=ve===void 0?"":ve,_e=Ee.className,Se=Ee.showTextOnly,Ie=Ee.showLines,De=Ee.style,ze=De===void 0?{}:De,qe=Object(o.useMemo)(function(){return""},[ye]);return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{dangerouslySetInnerHTML:{__html:qe}}))},k=d("0Owb"),b=d("dejd"),V=d("C+DQ"),X=[{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 D(Ee){var ve=Ee.onActionCallback,ye=Ee.title,_e=Ee.icon,Se=Ee.actionName,Ie=Ee.className,De=Ie===void 0?"":Ie,ze=Ee.children;function qe(){ve(Se)}return i.a.createElement("a",{title:ye,className:De,onClick:qe},i.a.createElement("i",{className:"md-iconfont ".concat(_e)}),ze)}var L=function(Ee){var ve=Ee.watch,ye=Ee.showNullButton,_e=Ee.onActionCallback,Se=Ee.fullScreen,Ie=Ee.insertTemp,De=Ee.hidetoolBar,ze=[].concat(X,[{title:"".concat(ve?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(ve?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return i.a.createElement("ul",{className:"markdown-toolbar-container"},!De&&ze.map(function(qe,tt){return i.a.createElement("li",{key:tt},qe.actionName?i.a.createElement(D,Object(k.a)({},qe,{onActionCallback:_e})):i.a.createElement("span",{className:"v-line"}))}),ye?i.a.createElement("li",null,i.a.createElement(D,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:_e},i.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ie&&i.a.createElement("li",null,i.a.createElement(D,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Ie),onActionCallback:_e},i.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),i.a.createElement("li",{className:"btn-full-screen"},i.a.createElement(D,{icon:"".concat(Se?"icon-shrink":"icon-enlarge"),title:Se?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:_e})))},U=d("M8RZ"),J=d("+L6B"),ae=d("2/Rp"),se=d("y8nQ"),G=d("Vl3Y"),he=d("5NDa"),q=d("5rEg"),W={labelCol:{span:4},wrapperCol:{span:20}},H=function(Ee){var ve=Ee.callback,ye=Ee.onCancel;function _e(Se){ve(Se)}return i.a.createElement(G.a,Object(k.a)({},W,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:_e}),i.a.createElement(G.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},i.a.createElement(q.a,null)),i.a.createElement(G.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},i.a.createElement(q.a,null)),i.a.createElement("div",{className:"flex-container flex-end"},i.a.createElement(ae.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),i.a.createElement(ae.a,{type:"ghost",onClick:ye},"\u53D6\u6D88")))},R=d("7ahc"),y=d("HmJG"),A=d("BjJ7"),ee=G.a.useForm,oe={width:280,marginRight:10},de={labelCol:{span:5},wrapperCol:{span:19}},be=function(Ee){var ve=Ee.callback,ye=Ee.onCancel,_e=ee(),Se=Object(p.a)(_e,1),Ie=Se[0];function De(tt){ve(tt)}function ze(tt,ot){Ie.setFieldsValue({src:"/api/attachments/".concat(tt.id),type:ot.type})}function qe(tt){var ot=tt.target.files[0];te(ot,ze)}return i.a.createElement(G.a,Object(k.a)({form:Ie},de,{className:"upload-image-panel",onFinish:De}),i.a.createElement(G.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},i.a.createElement("div",{className:"flex-container"},i.a.createElement(G.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},i.a.createElement(q.a,{style:oe})),i.a.createElement(xe,{onFileChange:qe}))),i.a.createElement(G.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u63CF\u8FF0"}]},i.a.createElement(q.a,{style:{width:264}})),i.a.createElement(G.a.Item,{style:{textAlign:"right"}},i.a.createElement(ae.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),i.a.createElement(ae.a,{type:"ghost",onClick:ye},"\u53D6\u6D88")))};function xe(Ee){var ve=Ee.onFileChange;return i.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",i.a.createElement("input",{type:"file",onChange:ve}))}function te(Ee,ve){if(!Ee)throw new String("\u6CA1\u6709\u6587\u4EF6");var ye=new FormData;ye.append("editormd-image-file",Ee),ye.append("file_param_name","editormd-image-file"),ye.append("byxhr","true");var _e=new window.XMLHttpRequest;_e.withCredentials=!0,_e.addEventListener("load",function(Se){ve(JSON.parse(Se.target.responseText),Ee)},!1),_e.addEventListener("error",function(Se){console.error(Se)},!1),_e.open("POST","".concat(A.a,"/api/attachments.json")),_e.send(ye)}var le=d("giR+"),ue=d("fyUT"),Z=d("7Kak"),ne=d("9yH6"),Y=ne.a.Group,re={margin:"0 8px"},F=function(Ee){var ve=Ee.callback,ye=Ee.onCancel;function _e(Se){ve(Se)}return i.a.createElement(G.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:_e},i.a.createElement("div",{className:"flex-container"},i.a.createElement("span",{style:re},"\u5355\u5143\u683C\u6570\uFF1A"),i.a.createElement("span",{style:re},"\u884C\u6570"),i.a.createElement(G.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},i.a.createElement(ue.a,null)),i.a.createElement("span",{style:re},"\u5217\u6570"),i.a.createElement(G.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},i.a.createElement(ue.a,null))),i.a.createElement("div",{className:"flex-container",style:{marginTop:12}},i.a.createElement("span",{style:re},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),i.a.createElement(G.a.Item,{name:"align"},i.a.createElement(Y,null,i.a.createElement(ne.a,{value:"default"},i.a.createElement("i",{className:"fa fa-align-justify"})),i.a.createElement(ne.a,{value:"left"},i.a.createElement("i",{className:"fa fa-align-left"})),i.a.createElement(ne.a,{value:"center"},i.a.createElement("i",{className:"fa fa-align-center"})),i.a.createElement(ne.a,{value:"right"},i.a.createElement("i",{className:"fa fa-align-right"}))))),i.a.createElement("div",{className:"flex-container flex-end"},i.a.createElement(ae.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),i.a.createElement(ae.a,{type:"ghost",onClick:ye},"\u53D6\u6D88")))},K=d("m3rI"),pe=d("wMS7"),$=d.n(pe),j="link",S="upload-image",B="code-block",me="add-table",fe="------------",we={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},ke=d("9VGf"),Me,Ne;function Le(){}var We=0,Fe=1e4,He="\u2581",Oe=`
**\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 Ve(Ee){return/^\d+$/.test(Ee)?"".concat(Ee,"px"):Ee}var $e=navigator.platform.toUpperCase().indexOf("MAC")>=0,Ue=$e?"Cmd":"Ctrl",Ke=(Me={},Object(f.a)(Me,Ue+"-B","bold"),Object(f.a)(Me,Ue+"-I","italic"),Me),Re=(Ne={},Object(f.a)(Ne,j,"\u6DFB\u52A0\u94FE\u63A5"),Object(f.a)(Ne,B,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(f.a)(Ne,S,"\u6DFB\u52A0\u56FE\u7247"),Object(f.a)(Ne,me,"\u6DFB\u52A0\u8868\u683C"),Ne),Te=z.a=function(Ee){var ve=Ee.defaultValue,ye=ve===void 0?"":ve,_e=Ee.onChange,Se=Ee.width,Ie=Se===void 0?"100%":Se,De=Ee.height,ze=De===void 0?400:De,qe=Ee.miniToolbar,tt=qe===void 0?!1:qe,ot=Ee.isFocus,nt=ot===void 0?!1:ot,pt=Ee.watch,ft=Ee.insertTemp,_t=Ee.mode,Rt=_t===void 0?"markdown":_t,Gt=Ee.id,Wt=Gt===void 0?"markdown-editor-id":Gt,Ct=Ee.showResizeBar,At=Ct===void 0?!1:Ct,dr=Ee.noStorage,sr=dr===void 0?!1:dr,fr=Ee.showNullButton,Ft=fr===void 0?!1:fr,vr=Ee.hidetoolBar,rr=vr===void 0?!1:vr,Qt=Ee.fullScreen,wr=Qt===void 0?!1:Qt,Pt=Ee.onBlur,rt=Ee.onCMBeforeChange,kt=Ee.onFullScreen,nr=Ee.className,Et=nr===void 0?"":nr,Tt=Ee.disablePaste,qt=Tt===void 0?!1:Tt,Nr=Ee.placeholder,br=Nr===void 0?"":Nr,Ye=Ee.values,vt=Ye===void 0?"":Ye,yr=Object(o.useState)(null),er=Object(p.a)(yr,2),Ze=er[0],zr=er[1],nn=Object(o.useState)(ye),xt=Object(p.a)(nn,2),hr=xt[0],Kr=xt[1],Xr=Object(o.useState)(pt),Ht=Object(p.a)(Xr,2),Vt=Ht[0],lt=Ht[1],Be=Object(o.useState)(wr),st=Object(p.a)(Be,2),bt=st[0],Ut=st[1],Or=Object(o.useState)(""),pr=Object(p.a)(Or,2),$t=pr[0],zt=pr[1],fn=Object(o.useState)(0),Ar=Object(p.a)(fn,2),Yr=Ar[0],Dr=Ar[1],On=Object(o.useState)(ze),na=Object(p.a)(On,2),yn=na[0],en=na[1],aa=Object(o.useState)(!1),An=Object(p.a)(aa,2),Qa=An[0],Hn=An[1],an=Object(o.useRef)(),kn=Object(o.useRef)(),Dn=Object(o.useRef)(),xn=Object(o.useRef)();Object(o.useEffect)(function(){Kr(vt),Ze==null||Ze.setValue(vt)},[vt]),Object(o.useEffect)(function(){kt==null||kt(bt)},[bt]),Object(o.useEffect)(function(){if(an.current){var Ge=l.a.fromTextArea(an.current,{mode:Rt,lineNumbers:!tt,lineWrapping:!0,value:ye,autoCloseTags:!0,autoCloseBrackets:!0});nt&&Ge.focus();function et(gt,Ot){if(qt){Ot.preventDefault();return}var Nt=Ot.clipboardData;if(Nt){var Lt=Nt.types.toString(),It=Nt.items,Kt=["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"];if(Lt==="Files"||Nt.types.indexOf("Files")>-1){if(Ot.preventDefault(),Rt=="stex")return;try{var Yt,ar=It[1];((Yt=It[0])===null||Yt===void 0?void 0:Yt.kind)==="file"&&(ar=It[0]);var Zt=ar.getAsFile(),Jr=Zt.name.split(".").pop();te(Zt,function(ir){if(ir.id){var _r,Ir,sn;(Zt==null||((_r=Zt.type)===null||_r===void 0)?void 0:_r.indexOf("image"))>-1?Ge.replaceSelection("![,](/api/attachments/".concat(ir.id,"?type=").concat(ir.content_type,")")):(Zt==null||((Ir=Zt.type)===null||Ir===void 0)?void 0:Ir.indexOf("video"))>-1?Ge.replaceSelection('<video width="100%" controls src="'.concat(K.a.API_SERVER,"/api/attachments/").concat(ir.id,'"></video>')):(Zt==null||((sn=Zt.type)===null||sn===void 0)?void 0:sn.indexOf("pdf"))>-1?Ge.replaceSelection('<a href="'.concat(K.a.API_SERVER,"/api/attachments/").concat(ir.id,"?type=").concat(Zt.type,'&disposition=inline" target="_blank">').concat(Zt.name,"</a>")):Kt.includes(Jr)?Ge.replaceSelection('<a href="'.concat(K.a.API_SERVER,"/api/attachments/").concat(ir.id,'?type=office&disposition=inline" target="_blank">').concat(Zt.name,"</a>")):Ge.replaceSelection("[".concat(Zt.name,"](").concat(K.a.API_SERVER,"/api/attachments/").concat(ir.id,"?type=").concat(ir.content_type,")"))}else(ir==null?void 0:ir.status)===401&&(document.location.href="/user/login")})}catch(ir){x.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Ge.on("paste",et),zr(Ge),function(){Ge.off("paste",et)}}},[]);var zn=Object(o.useCallback)(function(){if(kn.current)try{}catch(Ge){console.log(Ge,"---- to set md editor body height")}},[yn,kn,bt]);Object(o.useEffect)(function(){function Ge(){var gt=new v.default(function(Ot){var Nt=Object(T.a)(Ot),Lt;try{for(Nt.s();!(Lt=Nt.n()).done;){var It=Lt.value;(It.target.offsetHeight>0||It.target.offsetWidth>0)&&(zn(),Ze.setSize("100%","100%"),Ze.refresh())}}catch(Kt){Nt.e(Kt)}finally{Nt.f()}});return gt.observe(an.current.parentElement),gt}if(Ze){var et=Ge();return function(){et.unobserve(an.current.parentElement)}}},[Ze,zn]),Object(o.useEffect)(function(){if(Ze){for(var Ge=[],et=function(){var It=Ot[gt];Nt=Object(p.a)(It,2);var Kt=Nt[0],Yt=Nt[1],ar=Object(f.a)({},Kt,function(){wn(Yt)});Ge.push(ar),Ze.addKeyMap(ar)},gt=0,Ot=Object.entries(Ke);gt<Ot.length;gt++){var Nt;et()}return function(){var Lt=Object(T.a)(Ge),It;try{for(Lt.s();!(It=Lt.n()).done;){var Kt=It.value;Ze.removeKeyMap(Kt)}}catch(Yt){Lt.e(Yt)}finally{Lt.f()}}}},[Ze]),Object(o.useEffect)(function(){wr!==bt&&Ut(wr)},[wr]),Object(ke.a)(function(){if(!sr&&Yr>0){var Ge=new Date().getTime(),et=window.sessionStorage.getItem(Wt);Ge>=Yr+Fe&&(!et||et!==hr)&&(window.sessionStorage.setItem(Wt,hr),Hn(!0))}},Fe),Object(o.useEffect)(function(){lt(pt)},[Ze,pt]),Object(o.useEffect)(function(){Ze&&(nt&&Ze.focus())},[Ze,nt]),Object(o.useEffect)(function(){if(Vt&&Ze){var Ge=Ze.getScrollerElement();function et(gt){var Ot=gt.target;if(xn.current){var Nt=Ot.scrollTop/Ot.scrollHeight;xn.current.scrollTop=xn.current.scrollHeight*Nt}}return Ge.addEventListener("scroll",et),function(){Ge.removeEventListener("scroll",et)}}},[Ze,Vt]),Object(o.useEffect)(function(){if(Ze&&rt){function Ge(et,gt){rt(et,gt)}return Ze.on("beforeChange",Ge),function(){Ze.off("beforeChange",Ge)}}},[Ze,rt]),Object(o.useEffect)(function(){if(Ze&&Pt){function Ge(){Pt(Ze.getValue())}return Ze.on("blur",Ge),function(){Ze.off("blur",Ge)}}},[Ze,Pt]),Object(o.useEffect)(function(){if(Ze){function Ge(et){var gt=$.a.sanitize(et.getValue());Kr(gt),Dr(new Date().getTime()),et.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),_e&&_e(gt)}return Ze.on("change",Ge),function(){Ze.off("change",Ge)}}},[Ze,_e]),Object(o.useEffect)(function(){Ze&&(ye==null?(Ze.setValue(""),Kr("")):ye!==Ze.getValue()&&(Ze.setValue(ye),Kr(ye),Ze.setCursor(Ze.lineCount(),0)))},[Ze,ye]);var wn=Object(o.useCallback)(function(Ge){var et=Ze.getCursor(),gt=Ze.getSelection(),Ot=gt.split(`
`);switch(Ge){case"bold":return Ze.replaceSelection("**"+gt+"**"),gt===""&&Ze.setCursor(et.line,et.ch+2),Ze.focus();case"italic":return Ze.replaceSelection("*"+gt+"*"),gt===""&&Ze.setCursor(et.line,et.ch+1),Ze.focus();case"code":return Ze.replaceSelection("`"+gt+"`"),gt===""&&Ze.setCursor(et.line,et.ch+1),Ze.focus();case"inline-latex":return Ze.replaceSelection("`$$"+gt+"$$`"),gt===""&&Ze.setCursor(et.line,et.ch+3),Ze.focus();case"latex":return Ze.replaceSelection("```latex\n"+gt+"\n```"),Ze.setCursor(et.line+1,gt.length+1),Ze.focus();case"line-break":return Ze.replaceSelection(`<br/>
`),Ze.focus();case"list-ul":return gt===""?Ze.replaceSelection("- "+gt):Ze.replaceSelection(Ot.map(function(Nt){return Nt===""?"":"- ".concat(Nt)}).join(`
`)),Ze.focus();case"list-ol":return gt===""?Ze.replaceSelection("1. "+gt):Ze.replaceSelection(Ot.map(function(Nt,Lt){return Nt===""?"":"".concat(Lt+1,". ").concat(Nt)}).join(`
`)),Ze.focus();case"add-null-ch":return gt===""&&Ze.setCursor(et.line,et.ch+1),Ze.replaceSelection(He),Ze.focus();case"inster-template-1":return gt===""&&Ze.setCursor(et.line,et.ch),Ze.replaceSelection(Oe),Ze.focus();case"eraser":return Ze.setValue(""),Ze.focus();case"trigger-watch":return lt(!Vt),Ze.focus();case"trigger-full-screen":return Ut(!bt),Ze.focus();case j:zt(j);return;case B:zt(B);return;case S:zt(S);return;case me:zt(me);return;default:throw new Error}},[Ze,Vt,bt]),on=Object(o.useCallback)(function(Ge){zt("");switch($t){case j:var et=Ge.title,gt=Ge.link;return Ze.replaceSelection("[".concat(et,"](").concat(gt,")")),Ze.focus();case B:var Ot=Ge.language,Nt=Ge.content;return Ze.replaceSelection(["```"+Ot,Nt,"```"].join(`
`)),Ze.focus();case S:var Lt=Ge.src,It=Ge.alt;return Ze.replaceSelection("![ ".concat(It," ]( ").concat(Lt,' "').concat(It,'" )')),Ze.focus();case me:for(var Kt=Ge.row,Yt=Ge.col,ar=Ge.align,Zt=`
`,Jr=0;Jr<Kt;Jr++){for(var ir=[],_r=[],Ir=0;Ir<Yt;Ir++)Jr===1&&_r.push(we[ar]),ir.push(" ");Jr===1&&(Zt+="| ".concat(_r.join(" | "),` |
`)),Zt+="| ".concat(ir.join(Yt===1?"":" | "),` |
`)}return Ze.replaceSelection(Zt+`
`),Ze.focus();default:throw new Error}},[Ze,$t]),Kn=Object(o.useMemo)(function(){switch($t){case j:return i.a.createElement(H,{callback:on,onCancel:hn});case B:return i.a.createElement(R.b,{callback:on,onCancel:hn});case S:return i.a.createElement(be,{callback:on,onCancel:hn});case me:return i.a.createElement(F,{callback:on,onCancel:hn});default:return null}},[$t]);function hn(){zt("")}Object(o.useEffect)(function(){if(Dn.current){var Ge=Dn.current,et=!1,gt=0;function Ot(It){et=!0,gt=It.pageY}function Nt(){et=!1}function Lt(It){if(et){var Kt=It.pageY-gt;Kt<0&&(Kt=0),Kt>300&&(Kt=300);var Yt=ze+Kt+"px";en(Yt)}}return Ge.addEventListener("mousedown",Ot),document.addEventListener("mousemove",Lt),document.addEventListener("mouseup",Nt),function(){Ge.removeEventListener("mousedown",Ot),document.removeEventListener("mousemove",Lt),document.removeEventListener("mouseup",Nt)}}},[Ze,Dn]),Object(o.useEffect)(function(){en(ze)},[ze]);var ia=Ve(Ie),mt=Ve(yn),ut={width:ia,height:mt},yt=Object(o.useMemo)(function(){if(Yr){var Ge=new Date(Yr),et=Ge.getHours(),gt=Ge.getMinutes(),Ot=Ge.getSeconds();return et=et<10?"0"+et:et,gt=gt<10?"0"+gt:gt,Ot=Ot<10?"0"+Ot:Ot,"".concat(et,":").concat(gt,":").concat(Ot)}return 0},[Yr]);function dt(){window.sessionStorage.removeItem(Wt),Hn(!1),Dr(0)}function Mt(){Hn(!1),Dr(0),Ze.setValue(window.sessionStorage.getItem(Wt))}return i.a.createElement(o.Fragment,null,i.a.createElement("div",{className:"markdown-editor-wrapper",ref:kn},i.a.createElement("div",{className:"markdown-editor-container ".concat(Et," ").concat(Vt?"on-preview":""," ").concat(tt?"mini":""," ").concat(bt?"full-screen":""),style:ut},i.a.createElement(L,{insertTemp:ft,watch:Vt,fullScreen:bt,showNullButton:Ft,onActionCallback:wn,hidetoolBar:rr}),i.a.createElement("div",{className:"markdown-editor-body"},i.a.createElement("div",{className:"codemirror-container"},i.a.createElement("textarea",{ref:an,placeholder:br})),Vt?i.a.createElement("div",{ref:xn,className:"preview-container"},Rt==="stex"&&i.a.createElement(P,{value:hr}),Rt!=="stex"&&i.a.createElement(N.a,{value:hr})):null))),At?i.a.createElement("a",{ref:Dn,className:"editor-resize"}):null,i.a.createElement(U.a,null,Re[$t]?i.a.createElement(a.a,{centered:!0,title:Re[$t],visible:!0,onCancel:hn,footer:null},Kn):null))}},"P/tu":function(s,z,d){"use strict";var h=d("ozfa"),a=d("MJZm"),T=d("0Owb"),_=d("9og8"),x=d("tJVT"),p=d("PpiC"),f=d("WmNS"),o=d.n(f),i=d("q1tI"),u=d.n(i),l=d("WCUW"),v=d("spXi"),m=d.n(v),g=function(w){var O=w.value,C=w.onChange,M=w.defaultValue,N=w.disabled,P=Object(p.a)(w,["value","onChange","defaultValue","disabled"]),k=Object(i.useState)([]),b=Object(x.a)(k,2),V=b[0],X=b[1],D=Object(i.useState)("1"),L=Object(x.a)(D,2),U=L[0],J=L[1];Object(i.useEffect)(function(){ae()},[]);var ae=function(){var he=Object(_.a)(o.a.mark(function q(){var W,H;return o.a.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,Object(l.x)({});case 2:W=y.sent,W!=null&&W.data&&(H=[{title:u.a.createElement("div",{title:"\u6839\u76EE\u5F55",className:m.a.name},"\u6839\u76EE\u5F55"),value:0,key:0,icon:u.a.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:se(W.data||[])}],X(H),J("2"));case 4:case"end":return y.stop()}},q)}));return function(){return he.apply(this,arguments)}}(),se=function(q){function W(H){var R=H.children,y=Array.isArray(R)&&R.length>0,A=H==null?void 0:H.group_id;return{title:u.a.createElement("div",{title:H==null?void 0:H.name,className:m.a.name},H==null?void 0:H.name),value:A,key:A,icon:u.a.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:y?R==null?void 0:R.map(function(ee){return W(ee)}):[]}}return q==null?void 0:q.map(function(H){return W(H)})},G=M?{defaultExpandedKeys:[0]}:{selectedKeys:O,defaultExpandedKeys:O};return u.a.createElement("div",{className:m.a.customTree},u.a.createElement(a.a,Object(T.a)({key:U},G,{showIcon:!0,treeData:V,onSelect:C,disabled:N},P)))};z.a=g},PD8m:function(s,z){s.exports={name:"memoryStorage",read:h,write:a,each:T,remove:_,clearAll:x};var d={};function h(p){return d[p]}function a(p,f){d[p]=f}function T(p){for(var f in d)d.hasOwnProperty(f)&&p(d[f],f)}function _(p){delete d[p]}function x(p){d={}}},PHyj:function(s,z,d){"use strict";d.r(z),d.d(z,"Types",function(){return ye});var h=d("P2fV"),a=d("NJEC"),T=d("CiB2"),_=d("DYRE"),x=d("zeV3"),p=d("sRBo"),f=d("kaz8"),o=d("7Kak"),i=d("9yH6"),u=d("giR+"),l=d("fyUT"),v=d("6UJt"),m=d("DFOY"),g=d("OaEy"),E=d("2fM7"),w=d("rAM+"),O=d("T2oS"),C=d("W9HT"),M=d("+L6B"),N=d("2/Rp"),P=d("oBTY"),k=d("miYZ"),b=d("tsqr"),V=d("9og8"),X=d("y8nQ"),D=d("Vl3Y"),L=d("tJVT"),U=d("k1fw"),J=d("fu2T"),ae=d("gK9i"),se=d("2qtc"),G=d("kLXV"),he=d("5NDa"),q=d("5rEg"),W=d("WmNS"),H=d.n(W),R=d("q1tI"),y=d.n(R),A=d("uMZB"),ee=d.n(A),oe=d("jrin"),de,be=E.a.Option,xe;(function(De){De[De.language=0]="language",De[De.difficult=1]="difficult",De[De.category=2]="category",De[De.openOrNot=3]="openOrNot"})(xe||(xe={}));var te=(de={},Object(oe.a)(de,xe.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(oe.a)(de,xe.difficult,[{title:"\u7B80\u5355",key:1},{title:"\u4E2D\u7B49",key:2},{title:"\u56F0\u96BE",key:3}]),Object(oe.a)(de,xe.category,[{title:"\u7A0B\u5E8F\u8BBE\u8BA1",key:1},{title:"\u7B97\u6CD5",key:2}]),Object(oe.a)(de,xe.openOrNot,[{title:"\u516C\u5F00",key:1},{title:"\u79C1\u6709",key:0}]),de);function le(De){return te[De].map(function(ze){return y.a.createElement(be,{key:ze.title,value:ze.key}," ",ze.title," ")})}function ue(De,ze){De.map(function(qe){var tt=qe.id,ot=qe.name,nt=qe.sub_disciplines,pt={value:tt,label:ot};ze.push(pt),nt&&nt.length>0&&(pt.children=[],ue(nt,pt.children))})}function Z(De,ze){for(var qe=[],tt=0;tt<De.length;tt++){var ot,nt=De[tt];if(((ot=nt.sub_disciplines)===null||ot===void 0?void 0:ot.length)>0){qe[0]=nt.id;for(var pt=0;pt<nt.sub_disciplines.length;pt++){var ft=nt.sub_disciplines[pt];if(ft.id===ze)return qe[1]=ft.id,[qe,ft.tag_disciplines||ft.sub_disciplines||[]]}}}return[qe,[]]}var ne=d("Ty5D"),Y=d("J66h"),re=d("GIiI"),F=d("2BaD"),K=d("Ot1p"),pe=d("ErOA");function $(){return Object(pe.c)("problems/new.json")}function j(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"question";return Object(pe.c)("disciplines.json",{source:De})}function S(De){return Object(pe.c)("problems/".concat(De,"/edit.json"))}function B(De,ze){return Object(pe.g)("problems/".concat(De,".json"),ze)}function me(De){return Object(pe.f)("problems.json",De)}function fe(De,ze){return Object(pe.f)("exercises/".concat(De,"/exercise_questions.json"),ze)}function we(De,ze){return Object(pe.g)("exercise_questions/".concat(De,".json"),ze)}function ke(De){return Object(pe.f)("problems/".concat(De,"/publish.json"))}function Me(De){return Object(pe.f)("problems/".concat(De,"/cancel_publish.json"))}function Ne(De){return Object(pe.c)("problems/".concat(De,"/start.json"))}function Le(De,ze){return Object(pe.f)("tag_disciplines.json",{name:ze,sub_discipline_id:De})}var We=d("V0Rq"),Fe=d("cDPC"),He=d("EHPI"),Oe=d("m3rI"),Ve=d("u2Z1"),$e=d("P/tu"),Ue=d("B7Ph"),Ke=q.a.TextArea,Re=G.a.confirm,Te=ae.a.Panel;function Ee(){return new Date().getTime()}var ve={loading:!0,user:null,disciplines:[],dicts:null,status:0,data:void 0,lastedUpdateTime:0},ye;(function(De){De[De.SET_INITAL_DATA=0]="SET_INITAL_DATA",De[De.SET_LOADING=1]="SET_LOADING",De[De.SET_STATUS=2]="SET_STATUS"})(ye||(ye={}));function _e(De,ze){switch(ze.type){case ye.SET_INITAL_DATA:return Object(U.a)(Object(U.a)({},De),ze.payload);case ye.SET_LOADING:return Object(U.a)(Object(U.a)({},De),{},{loading:ze.payload});case ye.SET_STATUS:return Object(U.a)(Object(U.a)({},De),{},{status:ze.payload});default:throw new Error}}var Se=z.default=function(){var De,ze,qe=Object(ne.h)(),tt=Object(ne.g)(),ot=Object(ne.i)(),nt=ot.id,pt=D.a.useForm(),ft=Object(L.a)(pt,1),_t=ft[0],Rt=Object(R.useState)(),Gt=Object(L.a)(Rt,2),Wt=Gt[0],Ct=Gt[1],At=Object(R.useState)([]),dr=Object(L.a)(At,2),sr=dr[0],fr=dr[1],Ft=Object(R.useState)([]),vr=Object(L.a)(Ft,2),rr=vr[0],Qt=vr[1],wr=Object(R.useReducer)(_e,ve),Pt=Object(L.a)(wr,2),rt=Pt[0],kt=Pt[1],nr=rt.loading,Et=rt.data,Tt=rt.user,qt=rt.disciplines,Nr=rt.dicts,br=rt.status,Ye=Et==null?void 0:Et.hack_sets,vt=Et==null||((De=Et.hack)===null||De===void 0)?void 0:De.test_set_average,yr=qe.query,er=yr.callback_url,Ze=yr.express_id,zr=yr.score,nn=yr.question_id,xt=Object(R.useState)([]),hr=Object(L.a)(xt,2),Kr=hr[0],Xr=hr[1],Ht=Object(R.useState)(!1),Vt=Object(L.a)(Ht,2),lt=Vt[0],Be=Vt[1],st=Object(R.useState)(!1),bt=Object(L.a)(st,2),Ut=bt[0],Or=bt[1],pr=Object(R.useMemo)(function(){var mt=[];return qt&&ue(qt,mt),mt},[qt]),$t=Object(R.useCallback)(Object(V.a)(H.a.mark(function mt(){var ut,yt,dt,Mt,Ge,et,gt,Ot,Nt,Lt,It,Kt,Yt,ar,Zt,Jr,ir,_r,Ir,sn,Xn,jt,$r,pn,qa,oa,Gn,mn,ln,ei,Ta,_n,ur,Oa,Aa,Rn,Mn,sa,ti,En,tn,ri,ni,la,rn,ai,Sn,Zr=arguments;return H.a.wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:if(ut=Zr.length>0&&Zr[0]!==void 0?Zr[0]:0,yt=qt,!(yt.length===0)){Pr.next=7;break}return Pr.next=5,j();case 5:dt=Pr.sent,yt=dt.disciplines;case 7:if(!nt){Pr.next=15;break}return Mt={disciplines:yt},Pr.next=11,S(nt);case 11:Ge=Pr.sent,Ge.message?Ge.status==="401"&&(document.location.href="/user/login"):(et=Ge.category,gt=Ge.user,Ot=Ge.code,Nt=Ge.language,Lt=Ge.hack_sets,It=Ge.description,Kt=Ge.difficult,Yt=Ge.name,ar=Ge.open_or_not,Zt=Ge.sub_discipline_id,Jr=Ge.tag_discipline_id,ir=Ge.time_limit,_r=Ge.test_set_average,Ir=Ge.test_set_score,sn=Ge.status,Xn=Ge.tag_discipline_ids,jt=Ge.item_banks_group_id,$r=Ge.is_file,pn=$r===void 0?!1:$r,qa=Ge.hide_actual_output,oa=Ge.code_compile_score,Gn=Z(yt,Zt),mn=Object(L.a)(Gn,2),ln=mn[0],ei=mn[1],Be(qa),Ta=pn?[{input:"",output:"",score:100,position:1}]:Lt,pn?(Qt(Lt),_t.setFieldsValue({hack_sets:Ta})):Qt([]),_n=qe.query.lastedUpdateTime,Mt=Object(U.a)(Object(U.a)({},Mt),{},{loading:!1,user:gt,dicts:ei,status:sn,lastedUpdateTime:ut||(_n||0),data:{hack_codes:{language:Nt,code:Y.Base64.decode(Ot)},hack:{category:et,difficult:Kt,name:Yt,description:It,open_or_not:ar,time_limit:ir,test_set_average:_r,test_set_score:Ir,sub_discipline_id:ln,tag_discipline_ids:Xn,score:zr||1,item_banks_group_ids:jt,is_file:pn,code_compile_score:oa},hack_sets:Ta,tags:Xn}}),parseInt(oa)>0&&Or(!0),kt({type:ye.SET_INITAL_DATA,payload:Mt}),Ct({hack:{category:et,difficult:Kt,name:Yt,description:It,open_or_not:ar,time_limit:ir,test_set_average:_r,test_set_score:Ir,sub_discipline_id:ln,tag_discipline_ids:Xn,score:zr||1,item_banks_group_ids:jt,is_file:pn}}),zt(ln==null?void 0:ln[0],ln==null?void 0:ln[1],yt)),Pr.next=25;break;case 15:return Pr.next=17,$();case 17:Aa=Pr.sent,Rn=Aa.user,Mn=qe.query,sa=Mn.difficult,ti=Mn.sub_discipline_id,En=Mn.tag_discipline_id,tn=Mn.tagIds,ri=Mn.banksIds,ni=Z(yt,parseInt(ti,10)),la=Object(L.a)(ni,2),rn=la[0],ai=la[1],Sn=[Number(ri)],kt({type:ye.SET_INITAL_DATA,payload:{loading:!1,user:Rn,disciplines:yt,status:0,dicts:ai,data:{hack_codes:{language:"C",code:""},hack:{category:null,difficult:parseInt(sa,10),time_limit:3,description:"",test_set_score:!0,test_set_average:!0,open_or_not:!0,sub_discipline_id:rn,tag_discipline_id:tn&&(tn==null||((ur=tn.split(","))===null||ur===void 0)?void 0:ur.map(function(Nn){return Number(Nn)})),name:"",item_banks_group_ids:Sn,is_file:!1},tags:En?En==null?void 0:En.split(",").map(function(Nn){return parseInt(Nn,10)}):[],hack_sets:[{input:"",output:"",score:100,position:1}]}}}),Ct({hack:{category:null,difficult:parseInt(sa,10),time_limit:3,description:"",test_set_average:!0,open_or_not:!0,sub_discipline_id:rn,tag_discipline_id:tn&&(tn==null||((Oa=tn.split(","))===null||Oa===void 0)?void 0:Oa.map(function(Nn){return Number(Nn)})),name:"",item_banks_group_id:Sn,is_file:!1}}),zt(rn==null?void 0:rn[0],rn==null?void 0:rn[1],yt);case 25:case"end":return Pr.stop()}},mt)})),[nt,qt]);Object(R.useEffect)(function(){try{$t()}catch(mt){console.log(mt,"----")}},[]),Object(R.useEffect)(function(){function mt(){return ut.apply(this,arguments)}function ut(){return ut=Object(V.a)(H.a.mark(function yt(){var dt;return H.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Ge.next=2,Object(pe.c)("item_banks_groups/mine.json");case 2:dt=Ge.sent,Xr(dt);case 4:case"end":return Ge.stop()}},yt)})),ut.apply(this,arguments)}mt()},[]);var zt=function(ut,yt,dt){var Mt,Ge,et,gt=dt==null||((Mt=dt.find(function(Ot){return Ot.id===ut}))===null||Mt===void 0||((Ge=Mt.sub_disciplines)===null||Ge===void 0||((et=Ge.find(function(Ot){return Ot.id===yt}))===null||et===void 0)))?void 0:et.tag_disciplines};function fn(mt,ut){return Ar.apply(this,arguments)}function Ar(){return Ar=Object(V.a)(H.a.mark(function mt(ut,yt){var dt,Mt,Ge,et,gt,Ot,Nt,Lt,It,Kt,Yt,ar,Zt,Jr,ir,_r,Ir,sn;return H.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:dt=Object(U.a)({},ut),Mt=dt.hack_sets,Ge=dt.hack_codes,et=dt.hack,gt=dt.tags,et.hide_actual_output=lt,Ot=[],Nt=[],Lt=0,It=et!=null&&et.is_file?rr.map(function($r,pn){return Object(U.a)(Object(U.a)({},$r),{},{position:pn+1})}):Mt.map(function($r){return Object(U.a)(Object(U.a)({},$r),{},{is_file:!1})}),Kt=Object(w.a)(It);try{for(Kt.s();!(Yt=Kt.n()).done;)ar=Yt.value,Lt+=ar.score,ar.id&&ar.id>=0?Ot.push(ar):Nt.push(ar)}catch($r){Kt.e($r)}finally{Kt.f()}if(It!=null&&It.length){jt.next=11;break}return b.b.error("\u6D4B\u8BD5\u96C6\u4E0D\u80FD\u4E3A\u7A7A"),jt.abrupt("return");case 11:if(Lt+=parseInt(et.code_compile_score||0),!(Lt!==100&&!et.test_set_score)){jt.next=15;break}return b.b.error("\u6D4B\u8BD5\u96C6\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100"),jt.abrupt("return");case 15:if(!(It!=null&&It.some(function($r){return!$r.output}))){jt.next=18;break}return b.b.error("\u6D4B\u8BD5\u96C6\u8F93\u51FA\u4E0D\u80FD\u4E3A\u7A7A"),jt.abrupt("return");case 18:if(Ge.code=Y.Base64.encode(Ge==null?void 0:Ge.code),et.sub_discipline_id=et.sub_discipline_id[1],kt({type:ye.SET_LOADING,payload:!0}),er||(et.score=et.difficult*100),!nt){jt.next=43;break}return jt.next=25,B(nt,{hack:et,hack_codes:Ge,hack_sets:Nt,update_hack_sets:Ot,tags:gt});case 25:if(!er){jt.next=38;break}return jt.next=28,ke(nt);case 28:return jt.next=30,we(nn,{question_type:6,question_score:et.score,question_title:et.name,description:et.description,sub_discipline_id:et.sub_discipline_id,tag_discipline_ids:et.tag_discipline_ids,item_banks_group_ids:et.item_banks_group_ids,identifier:nt});case 30:if(Zt=jt.sent,Jr=Zt.status,!(Jr===0)){jt.next=36;break}if(!(yt==="start")){jt.next=35;break}return jt.abrupt("return");case 35:tt.replace(er);case 36:jt.next=40;break;case 38:b.b.success("\u4FDD\u5B58\u6210\u529F"),$t(Ee());case 40:kt({type:ye.SET_LOADING,payload:!1}),jt.next=66;break;case 43:return jt.next=45,me({hack:et,hack_codes:Ge,hack_sets:It,tags:gt});case 45:if(ir=jt.sent,_r=ir.identifier,kt({type:ye.SET_LOADING,payload:!1}),!(yt==="start")){jt.next=50;break}return jt.abrupt("return");case 50:if(!_r){jt.next=66;break}if(er){jt.next=55;break}tt.replace("/problems/".concat(_r,"/edit?lastedUpdateTime=").concat(Ee())),jt.next=66;break;case 55:return jt.next=57,ke(_r);case 57:if(nt){jt.next=65;break}return jt.next=60,fe(parseInt(Ze,10),{question_type:6,question_score:et.score,question_title:et.name,identifier:_r,tag_discipline_ids:et.tag_discipline_ids});case 60:Ir=jt.sent,sn=Ir.status,sn===0&&tt.replace(er),jt.next=66;break;case 65:tt.replace(er);case 66:case"end":return jt.stop()}},mt)})),Ar.apply(this,arguments)}function Yr(){_t.submit(),setTimeout(Object(V.a)(H.a.mark(function mt(){var ut;return H.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return dt.next=2,ke(nt);case 2:ut=dt.sent,ut.status===0?(b.b.success("\u53D1\u5E03\u6210\u529F"),kt({type:ye.SET_STATUS,payload:1})):b.b.info(ut.message);case 4:case"end":return dt.stop()}},mt)})),400)}function Dr(){return On.apply(this,arguments)}function On(){return On=Object(V.a)(H.a.mark(function mt(){var ut;return H.a.wrap(function(dt){for(;;)switch(dt.prev=dt.next){case 0:return dt.next=2,Me(nt);case 2:ut=dt.sent,ut.status===0?(b.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F"),kt({type:ye.SET_STATUS,payload:0})):b.b.info(ut.message);case 4:case"end":return dt.stop()}},mt)})),On.apply(this,arguments)}function na(){br===0?Re({title:"\u63D0\u793A",content:y.a.createElement(R.Fragment,null," ",y.a.createElement("div",null,"\u53D1\u5E03\u540E\u5373\u53EF\u5E94\u7528\u5230\u81EA\u5DF1\u7BA1\u7406\u7684\u8BFE\u5802")," ",y.a.createElement("div",null," \u662F\u5426\u786E\u8BA4\u53D1\u5E03?")," "),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){Yr()}}):Re({title:"\u63D0\u793A",content:y.a.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){Dr()}})}function yn(){return en.apply(this,arguments)}function en(){return en=Object(V.a)(H.a.mark(function mt(){return H.a.wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:return yt.t0=fn,yt.next=3,_t.getFieldValue();case 3:yt.t1=yt.sent,(0,yt.t0)(yt.t1,"start"),setTimeout(Object(V.a)(H.a.mark(function dt(){var Mt,Ge;return H.a.wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:return gt.next=2,Ne(nt);case 2:Mt=gt.sent,Ge=Mt.identifier,window.location.href="/myproblems/".concat(Ge);case 5:case"end":return gt.stop()}},dt)})),400);case 6:case"end":return yt.stop()}},mt)})),en.apply(this,arguments)}function aa(){er?tt.replace(er):tt.replace("/problemset")}var An=function(ut){var yt=parseInt(_t.getFieldValue("hack").code_compile_score)||0,dt=Math.floor((100-yt)/ut.length),Mt=dt+(100-yt)%ut.length;ut=ut.map(function(Ge,et){return et===ut.length-1?Object(U.a)(Object(U.a)({},Ge),{},{score:Mt}):Object(U.a)(Object(U.a)({},Ge),{},{score:dt})}),Qt(ut)};function Qa(mt){mt.target.value||An(rr),kt({type:ye.SET_INITAL_DATA,payload:{data:Object(U.a)(Object(U.a)({},Et),{},{hack:Object(U.a)(Object(U.a)({},Et.hack),{},{test_set_score:mt.target.value})})}})}function Hn(mt){kt({type:ye.SET_INITAL_DATA,payload:{data:Object(U.a)(Object(U.a)({},Et),{},{hack:Object(U.a)(Object(U.a)({},Et.hack),{},{is_file:mt.target.value})})}})}function an(mt){Be(mt.target.checked)}function kn(mt){var ut=mt.target.value;ut&&An(rr),kt({type:ye.SET_INITAL_DATA,payload:{data:Object(U.a)(Object(U.a)({},Et),{},{hack:Object(U.a)(Object(U.a)({},Et.hack),{},{test_set_average:ut})})}})}function Dn(){var mt=_t.getFieldValue("hack_sets"),ut=parseInt(_t.getFieldValue("hack").code_compile_score)||0,yt=mt.length+1,dt=Math.floor((100-ut)/yt),Mt=(100-ut)%yt;mt.map(function(Ge,et){return vt&&(Ge.score=dt),Ge.position=et+1,Ge}),mt.push({input:"",output:"",position:yt,score:vt?dt+Mt:0}),_t.setFieldsValue({hack_sets:mt}),kt({type:ye.SET_INITAL_DATA,payload:{data:Object(U.a)(Object(U.a)({},Et),{},{hack_sets:mt})}})}function xn(){var mt=_t.getFieldValue("hack_sets"),ut=parseInt(_t.getFieldValue("hack").code_compile_score)||0,yt=mt.length,dt=Math.floor((100-ut)/yt),Mt=(100-ut)%yt;mt.map(function(Ge,et){return vt&&(Ge.score=dt,et===mt.length-1&&(Ge.score=dt+Mt)),Ge.position=et+1,Ge}),_t.setFieldsValue({hack_sets:mt}),kt({type:ye.SET_INITAL_DATA,payload:{data:Object(U.a)(Object(U.a)({},Et),{},{hack_sets:mt})}})}Object(R.useEffect)(function(){if(vt){var mt=parseInt(_t.getFieldValue("hack").code_compile_score)||0,ut=Ye==null?void 0:Ye.length,yt=Math.floor((100-mt)/ut),dt=(100-mt)%ut;Ye==null||Ye.map(function(Mt,Ge){return Mt.score=yt,Mt.position=Ge+1,Ge===ut-1&&(Mt.score=yt+dt),Mt}),kt({type:ye.SET_INITAL_DATA,payload:{data:Object(U.a)(Object(U.a)({},Et),{},{hack_sets:Ye})}}),_t.setFieldsValue({hack_sets:Ye})}},[vt]);function zn(mt){var ut=_t.getFieldValue("hack_sets"),yt=parseInt(_t.getFieldValue("hack").code_compile_score)||0,dt=(ut==null?void 0:ut.length)-1,Mt=Math.ceil((100-yt)/dt),Ge=(100-yt)%dt;ut.splice(mt,1),ut==null||ut.map(function(et,gt){return vt&&(et.score=Mt,gt===dt-1&&(et.score=Mt+Ge)),et.position=gt+1,et}),kt({type:ye.SET_INITAL_DATA,payload:{data:Object(U.a)(Object(U.a)({},Et),{},{hack_sets:ut})}}),_t.setFieldsValue({hack_sets:ut})}function wn(mt){kt({type:ye.SET_INITAL_DATA,payload:{data:Object(U.a)(Object(U.a)({},Et),{},{hack_codes:Object(U.a)(Object(U.a)({},Et.hack_codes),{},{language:mt})})}})}var on=function(ut){var yt;if(ut!=null&&(yt=ut.hack)!==null&&yt!==void 0&&yt.sub_discipline_id){var dt,Mt,Ge,et,gt,Ot=ut==null||((dt=ut.hack)===null||dt===void 0)?void 0:dt.sub_discipline_id,Nt=Object(L.a)(Ot,2),Lt=Nt[0],It=Nt[1],Kt=qt==null||((Mt=qt.find(function(ar){return ar.id===Lt}))===null||Mt===void 0||((Ge=Mt.sub_disciplines)===null||Ge===void 0||((et=Ge.find(function(ar){return ar.id===It}))===null||et===void 0)))?void 0:et.tag_disciplines,Yt=Object(U.a)(Object(U.a)({},_t.getFieldsValue()),{},{hack:Object(U.a)(Object(U.a)({},(gt=_t.getFieldsValue())===null||gt===void 0?void 0:gt.hack),{},{tag_discipline_ids:[]})});_t.setFieldsValue(Yt),Ct(Yt)}else Ct(Object(U.a)({},_t.getFieldsValue()))},Kn=function(ut){fr([].concat(Object(P.a)(sr),[Object(U.a)({},ut)]))};Object(R.useEffect)(function(){var mt,ut;if(Et!=null&&(mt=Et.hack)!==null&&mt!==void 0&&(ut=mt.sub_discipline_id)!==null&&ut!==void 0&&ut[1]){var yt,dt;hn(Et==null||((yt=Et.hack)===null||yt===void 0||((dt=yt.sub_discipline_id)===null||dt===void 0))?void 0:dt[1])}},[Et==null||((ze=Et.hack)===null||ze===void 0)?void 0:ze.sub_discipline_id]);var hn=function(){var mt=Object(V.a)(H.a.mark(function ut(yt){var dt;return H.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Ge.next=2,Object(We.H)({sub_discipline_id:yt});case 2:dt=Ge.sent,fr(dt.tag_disciplines);case 4:case"end":return Ge.stop()}},ut)}));return function(yt){return mt.apply(this,arguments)}}();function ia(mt){var ut=mt[1],yt=Z(qt,ut),dt=Object(L.a)(yt,2),Mt=dt[1];_t.setFieldsValue({tags:[]}),kt({type:ye.SET_INITAL_DATA,payload:{dicts:Mt,data:Object(U.a)(Object(U.a)({},Et),{},{hack:Object(U.a)(Object(U.a)({},Et.hack),{},{sub_discipline_id:mt}),tags:[]})}})}return y.a.createElement(C.a,{spinning:nr,delay:500},Et?y.a.createElement(R.Fragment,null,y.a.createElement("header",{className:ee.a.header},y.a.createElement("div",null,y.a.createElement("img",{src:"".concat(Oe.a.IMG_SERVER,"/images/").concat(Tt==null?void 0:Tt.image_url),alt:"user",width:30}),y.a.createElement("span",null,Tt==null?void 0:Tt.name)),y.a.createElement("h2",null," ",Et==null?void 0:Et.hack.name," "),nt?y.a.createElement("a",{className:ee.a.btn_back,onClick:aa}," ",y.a.createElement(re.a,null),"\u9000\u51FA"):null),y.a.createElement(D.a,{form:_t,initialValues:Et,layout:"vertical",className:ee.a["oj-form-container"],onValuesChange:on,onFinish:function(ut,yt){var dt;if(qe!=null&&(dt=qe.query)!==null&&dt!==void 0&&dt.exercise){G.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 fn(ut,yt)}});return}fn(ut,yt)}},y.a.createElement(Fe.a,{leftChild:y.a.createElement(Ie,{onAddTestCases:xn,form:_t,handleAddKnowledgeFinish:Kn,MyGroup:Kr,formValue:Wt,knowledgeOptions:sr,onChangeLanguage:wn,onChangeSubDiscipline:ia,onRemoveTestCase:zn,onAddTestCase:Dn,dicts:Nr,categorys:pr,callback_url:er,hack:Et.hack,onChangeScore:Qa,onChangehide:an,onChangeAverage:kn,onChangeFile:Hn,uploadData:rr,setUploadData:Qt,handleUploadRatio:An,ischecked:lt,isshows:Ut}),rightChild:y.a.createElement(D.a.Item,{name:["hack_codes","code"],style:{marginBottom:0}},y.a.createElement(He.a,{language:Et.hack_codes.language}))}),y.a.createElement("div",{className:ee.a.footer},nt?y.a.createElement(R.Fragment,null,er?null:y.a.createElement(N.a,{type:br?"default":"primary",onClick:na},br?"\u64A4\u9500\u53D1\u5E03":"\u7ACB\u5373\u53D1\u5E03"),y.a.createElement(N.a,{loading:nr,type:"primary",htmlType:"submit"},"\u4FDD\u5B58"),y.a.createElement(N.a,{type:"primary",onClick:yn},br?"\u5F00\u59CB\u6311\u6218":"\u6A21\u62DF\u6311\u6218")):y.a.createElement(R.Fragment,null,y.a.createElement(N.a,{onClick:aa},"\u53D6\u6D88"),y.a.createElement(N.a,{loading:nr,type:"primary",htmlType:"submit"},"\u4FDD\u5B58"))))):null)};function Ie(De){var ze,qe,tt,ot,nt=De.form,pt=De.onAddTestCases,ft=De.handleAddKnowledgeFinish,_t=De.ischecked,Rt=De.MyGroup,Gt=De.formValue,Wt=De.knowledgeOptions,Ct=De.categorys,At=De.hack,dr=De.callback_url,sr=De.onChangeAverage,fr=De.onChangeScore,Ft=De.onChangehide,vr=De.onChangeFile,rr=De.onAddTestCase,Qt=De.onRemoveTestCase,wr=De.onChangeSubDiscipline,Pt=De.onChangeLanguage,rt=De.uploadData,kt=De.setUploadData,nr=De.handleUploadRatio,Et=De.isshows,Tt=((ze=location)===null||ze===void 0||((qe=ze.search)===null||qe===void 0)?void 0:qe.includes("select"))||!1,qt=Object(R.useState)(Et),Nr=Object(L.a)(qt,2),br=Nr[0],Ye=Nr[1],vt=At.test_set_average,yr=At.test_set_score,er=Object(R.useState)(!1),Ze=Object(L.a)(er,2),zr=Ze[0],nn=Ze[1],xt=function(Vt,lt){var Be=Object(P.a)(rt);Be.splice(lt,1),vt?nr(Be):kt(Be)},hr=function(Vt,lt){console.log(Vt,lt);var Be=rt.map(function(st,bt){return bt===lt?Object(U.a)(Object(U.a)({},st),{},{score:Vt.target.value?Number(Vt.target.value):0}):st});kt(Be)},Kr=function(Vt){var lt=rt.concat(Vt);At.test_set_average?nr(lt):kt(lt)};function Xr(Ht){Ht.stopPropagation()}return y.a.createElement("div",{className:ee.a["oj-left-panel"]},y.a.createElement("div",{className:ee.a["oj-form-info"]},y.a.createElement("div",{className:ee.a.field},y.a.createElement(D.a.Item,{label:"\u96BE\u6613\u5EA6",name:["hack","difficult"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u6613\u5EA6"}]},y.a.createElement(E.a,{disabled:Tt},le(xe.difficult))),y.a.createElement(D.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"}]},y.a.createElement(m.a,{disabled:Tt,allowClear:!1,options:Ct,placeholder:"\u8BF7\u9009\u62E9",onChange:wr}))),y.a.createElement("div",{className:ee.a.field},dr&&y.a.createElement(D.a.Item,{label:"\u5206\u6570",name:["hack","score"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u6570"}],extra:y.a.createElement("span",{style:{position:"absolute",left:100,top:5}},"\u5206")},y.a.createElement(l.a,{disabled:Tt,min:1,max:100})),y.a.createElement(D.a.Item,{label:y.a.createElement("div",null,"\u8BC4\u6D4B\u65F6\u957F\u9650\u5236 ",y.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:y.a.createElement("span",{style:{position:"absolute",left:100,top:5}},"\u79D2")},y.a.createElement(l.a,{min:3})),y.a.createElement(D.a.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",name:["hack_codes","language"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},y.a.createElement(E.a,{onChange:Pt},le(xe.language)))),y.a.createElement(D.a.Item,{label:y.a.createElement("span",null,"\u77E5\u8BC6\u70B9\uFF1A",y.a.createElement("span",{className:"c-grey-999"},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88AB\u542F\u667A\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"]},y.a.createElement(Ve.a,{selectvalues:(At==null?void 0:At.tag_discipline_id)||(At==null?void 0:At.tag_discipline_ids),disabled:Tt,subId:Gt==null||((tt=Gt.hack)===null||tt===void 0||((ot=tt.sub_discipline_id)===null||ot===void 0))?void 0:ot[1],knowledgeOptions:Wt,onAddKnowledgeFinish:ft})),y.a.createElement(D.a.Item,{label:"\u52A0\u5165\u6587\u4EF6\u5939\u76EE\u5F55",name:["hack","item_banks_group_ids"],labelCol:{span:24},wrapperCol:{span:24}},y.a.createElement($e.a,{disabled:Tt})),y.a.createElement(D.a.Item,{label:"\u4EFB\u52A1\u540D\u79F0",name:["hack","name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"}]},y.a.createElement(q.a,{maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0",suffix:y.a.createElement("span",null,60-At.name.length)})),y.a.createElement(D.a.Item,{name:["hack","description"],valuePropName:"defaultValue",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9"}]},y.a.createElement(K.a,{miniToolbar:!0,id:"moop_cases_content",noStorage:!0,height:200})),y.a.createElement("div",{className:"tst-case-info"},y.a.createElement("h3",{className:"flex-container",style:{justifyContent:"space-between"}}," \u6D4B\u8BD5\u7528\u4F8B\u4E0E\u7CFB\u7EDF\u8BC4\u5206\u89C4\u5219",!At.is_file&&y.a.createElement(N.a,{type:"primary",ghost:!0,onClick:rr},"\u6DFB\u52A0\u6D4B\u8BD5\u7528\u4F8B")),y.a.createElement(D.a.Item,{name:["hack","test_set_score"]},y.a.createElement(i.a.Group,{onChange:fr},y.a.createElement(i.a,{value:!0},"\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6",y.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")),y.a.createElement(i.a,{value:!1},"\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6",y.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")))),y.a.createElement(f.a,{style:{marginBottom:"5px"},checked:_t,onChange:Ft},"\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"),y.a.createElement(D.a.Item,{className:ee.a.testJi,name:["hack","is_file"],label:"\u7528\u4F8B\u7C7B\u578B:"},y.a.createElement(i.a.Group,{onChange:vr},y.a.createElement(x.a,{direction:"horizontal"},y.a.createElement(i.a,{value:!1},"\u6587\u672C"),y.a.createElement(i.a,{value:!0},"\u6587\u4EF6")))),!At.test_set_score&&y.a.createElement(D.a.Item,{name:["hack","test_set_average"],label:"\u7CFB\u7EDF\u8BC4\u5206\u5360\u6BD4"},y.a.createElement(i.a.Group,{onChange:sr},y.a.createElement(i.a,{value:!0},"\u5747\u5206\u6BD4\u4F8B"),y.a.createElement(i.a,{value:!1},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B"))),!At.test_set_score&&y.a.createElement("div",{style:{marginBottom:"20px",marginTop:"-10px"}},y.a.createElement("div",{style:{display:"flex",height:"30px",marginBottom:"10px"}},y.a.createElement(f.a,{checked:br,style:{display:"flex",alignItems:"center"},className:ee.a.checkboxs,onChange:function(Vt){Ye(Vt.target.checked),nt.setFieldsValue({hack:{code_compile_score:0}}),At.test_set_average&&(At.is_file?nr(rt):pt())}},"\u542F\u7528\u7F16\u8BD1\u901A\u8FC7\u5373\u53EF\u5F97\u5206"),br&&y.a.createElement("span",{style:{display:"flex"}},y.a.createElement(D.a.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7F16\u8BD1\u5F97\u5206"}],name:["hack","code_compile_score"]},y.a.createElement(l.a,{onChange:function(){At.test_set_average&&(At.is_file?nr(rt):pt())},parser:function(Vt){return isNaN(parseInt(Vt))?"":parseInt(Vt)},min:0,max:100,style:{width:"90px",margin:"5px 0px"}}))," ",y.a.createElement("span",{style:{display:"flex",alignItems:"center",marginLeft:"5px"}},"%"))),y.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")),At.is_file&&y.a.createElement("div",{className:ee.a.upBtn},y.a.createElement(N.a,{ghost:!0,type:"primary",className:"mb20",onClick:function(){return nn(!0)}},"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"),y.a.createElement(Ue.a,{disabled:At==null?void 0:At.test_set_average,inputChange:hr,showScore:!At.test_set_score,data:rt,onRemove:xt})),!At.is_file&&y.a.createElement(D.a.List,{name:"hack_sets"},function(Ht,Vt){return Object(T.a)(Vt),y.a.createElement(ae.a,{accordion:!0},Ht.map(function(lt,Be){return y.a.createElement(Te,{key:"".concat(lt.key,"--").concat(Be),header:y.a.createElement("a",{className:ee.a["test-case-name"]},y.a.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",Be+1,"\b"),yr?null:y.a.createElement(y.a.Fragment,null,y.a.createElement(D.a.Item,{name:[lt.name,"score"],fieldKey:[lt.fieldKey,"score"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6D4B\u8BD5\u96C6".concat(Be+1,"\u8BC4\u5206")}]},y.a.createElement(l.a,{onClick:Xr,min:0,max:100,disabled:vt})),y.a.createElement("span",null,"%"))),extra:Be>0?y.a.createElement("div",{onClick:Xr},y.a.createElement(a.a,{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u6D4B\u8BD5\u96C6\b"+(Be+1),onConfirm:function(){Qt(Be)}},y.a.createElement(F.a,{className:ee.a["btn-remove-case"]}))):null},y.a.createElement(D.a.Item,{label:"\u8F93\u5165",name:[lt.name,"input"],fieldKey:[lt.fieldKey,"input"]},y.a.createElement(Ke,null)),y.a.createElement(D.a.Item,{label:"\u8F93\u51FA",name:[lt.name,"output"],fieldKey:[lt.fieldKey,"output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},y.a.createElement(Ke,null)))}))}))),y.a.createElement(Ue.b,{rootIdentifier:null,visible:zr,onClose:function(){return nn(!1)},onOK:Kr}))}},PVpz:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(h){return function(){var a=h,T=a.lib,_=T.StreamCipher,x=a.algo,p=[],f=[],o=[],i=x.RabbitLegacy=_.extend({_doReset:function(){var l=this._key.words,v=this.cfg.iv,m=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],g=this._C=[l[2]<<16|l[2]>>>16,l[0]&4294901760|l[1]&65535,l[3]<<16|l[3]>>>16,l[1]&4294901760|l[2]&65535,l[0]<<16|l[0]>>>16,l[2]&4294901760|l[3]&65535,l[1]<<16|l[1]>>>16,l[3]&4294901760|l[0]&65535];this._b=0;for(var E=0;E<4;E++)u.call(this);for(var E=0;E<8;E++)g[E]^=m[E+4&7];if(v){var w=v.words,O=w[0],C=w[1],M=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,N=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,P=M>>>16|N&4294901760,k=N<<16|M&65535;g[0]^=M,g[1]^=P,g[2]^=N,g[3]^=k,g[4]^=M,g[5]^=P,g[6]^=N,g[7]^=k;for(var E=0;E<4;E++)u.call(this)}},_doProcessBlock:function(l,v){var m=this._X;u.call(this),p[0]=m[0]^m[5]>>>16^m[3]<<16,p[1]=m[2]^m[7]>>>16^m[5]<<16,p[2]=m[4]^m[1]>>>16^m[7]<<16,p[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)p[g]=(p[g]<<8|p[g]>>>24)&16711935|(p[g]<<24|p[g]>>>8)&4278255360,l[v+g]^=p[g]},blockSize:128/32,ivSize:64/32});function u(){for(var l=this._X,v=this._C,m=0;m<8;m++)f[m]=v[m];v[0]=v[0]+1295307597+this._b|0,v[1]=v[1]+3545052371+(v[0]>>>0<f[0]>>>0?1:0)|0,v[2]=v[2]+886263092+(v[1]>>>0<f[1]>>>0?1:0)|0,v[3]=v[3]+1295307597+(v[2]>>>0<f[2]>>>0?1:0)|0,v[4]=v[4]+3545052371+(v[3]>>>0<f[3]>>>0?1:0)|0,v[5]=v[5]+886263092+(v[4]>>>0<f[4]>>>0?1:0)|0,v[6]=v[6]+1295307597+(v[5]>>>0<f[5]>>>0?1:0)|0,v[7]=v[7]+3545052371+(v[6]>>>0<f[6]>>>0?1:0)|0,this._b=v[7]>>>0<f[7]>>>0?1:0;for(var m=0;m<8;m++){var g=l[m]+v[m],E=g&65535,w=g>>>16,O=((E*E>>>17)+E*w>>>15)+w*w,C=((g&4294901760)*g|0)+((g&65535)*g|0);o[m]=O^C}l[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,l[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,l[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,l[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,l[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,l[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,l[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,l[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}a.RabbitLegacy=_._createHelper(i)}(),h.RabbitLegacy})},RELg:function(s,z,d){var h=d("MFOe"),a=h.Global;s.exports={name:"oldIE-userDataStorage",write:f,read:o,each:i,remove:u,clearAll:l};var T="storejs",_=a.document,x=g(),p=(a.navigator?a.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function f(E,w){if(p)return;var O=m(E);x(function(C){C.setAttribute(O,w),C.save(T)})}function o(E){if(p)return;var w=m(E),O=null;return x(function(C){O=C.getAttribute(w)}),O}function i(E){x(function(w){for(var O=w.XMLDocument.documentElement.attributes,C=O.length-1;C>=0;C--){var M=O[C];E(w.getAttribute(M.name),M.name)}})}function u(E){var w=m(E);x(function(O){O.removeAttribute(w),O.save(T)})}function l(){x(function(E){var w=E.XMLDocument.documentElement.attributes;E.load(T);for(var O=w.length-1;O>=0;O--)E.removeAttribute(w[O].name);E.save(T)})}var v=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function m(E){return E.replace(/^\d/,"___$&").replace(v,"___")}function g(){if(!_||!_.documentElement||!_.documentElement.addBehavior)return null;var E="script",w,O,C;try{O=new ActiveXObject("htmlfile"),O.open(),O.write("<"+E+">document.w=window</"+E+'><iframe src="/favicon.ico"></iframe>'),O.close(),w=O.w.frames[0].document,C=w.createElement("div")}catch(M){C=_.createElement("div"),w=_.body}return function(M){var N=[].slice.call(arguments,0);N.unshift(C),w.appendChild(C),C.addBehavior("#default#userData"),C.load(T),M.apply(this,N),w.removeChild(C);return}}},RxwV:function(s,z,d){"use strict";var h=d("q1tI"),a=d("uciX"),T=d("2W6z"),_=d.n(T),x=d("4IlW"),p=d("uK0f"),f=d.n(p);function o(le,ue){if(le===ue)return!0;if(!le||!ue)return!1;var Z=le.length;if(ue.length!==Z)return!1;for(var ne=0;ne<Z;ne++)if(le[ne]!==ue[ne])return!1;return!0}function i(le){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(Z){return typeof Z}:i=function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},i(le)}function u(le,ue){if(!(le instanceof ue))throw new TypeError("Cannot call a class as a function")}function l(le,ue){for(var Z=0;Z<ue.length;Z++){var ne=ue[Z];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(le,ne.key,ne)}}function v(le,ue,Z){return ue&&l(le.prototype,ue),Z&&l(le,Z),le}function m(le,ue){if(typeof ue!="function"&&ue!==null)throw new TypeError("Super expression must either be null or a function");le.prototype=Object.create(ue&&ue.prototype,{constructor:{value:le,writable:!0,configurable:!0}}),ue&&g(le,ue)}function g(le,ue){return g=Object.setPrototypeOf||function(ne,Y){return ne.__proto__=Y,ne},g(le,ue)}function E(le){var ue=C();return function(){var Z=M(le),ne;if(ue){var Y=M(this).constructor;ne=Reflect.construct(Z,arguments,Y)}else ne=Z.apply(this,arguments);return w(this,ne)}}function w(le,ue){return ue&&(i(ue)==="object"||typeof ue=="function")?ue:O(le)}function O(le){if(le===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return le}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(le){return!1}}function M(le){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},M(le)}var N=function(){var le=function(ue){m(ne,ue);var Z=E(ne);function ne(){var Y;return u(this,ne),Y=Z.apply(this,arguments),Y.menuItems={},Y.saveMenuItem=function(re){return function(F){Y.menuItems[re]=F}},Y}return v(ne,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(re){!re.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(re){var F=this.props,K=F.fieldNames,pe=F.defaultFieldNames;return K[re]||pe[re]}},{key:"getOption",value:function(re,F){var K=this.props,pe=K.prefixCls,$=K.expandTrigger,j=K.expandIcon,S=K.loadingIcon,B=this.props.onSelect.bind(this,re,F),me=this.props.onItemDoubleClick.bind(this,re,F),fe={onClick:B,onDoubleClick:me},we="".concat(pe,"-menu-item"),ke=null,Me=re[this.getFieldName("children")]&&re[this.getFieldName("children")].length>0;(Me||re.isLeaf===!1)&&(we+=" ".concat(pe,"-menu-item-expand"),re.loading||(ke=h.createElement("span",{className:"".concat(pe,"-menu-item-expand-icon")},j))),$==="hover"&&(Me||re.isLeaf===!1)&&(fe={onMouseEnter:this.delayOnSelect.bind(this,B),onMouseLeave:this.delayOnSelect.bind(this),onClick:B}),this.isActiveOption(re,F)&&(we+=" ".concat(pe,"-menu-item-active"),fe.ref=this.saveMenuItem(F)),re.disabled&&(we+=" ".concat(pe,"-menu-item-disabled"));var Ne=null;re.loading&&(we+=" ".concat(pe,"-menu-item-loading"),Ne=S||null);var Le="";return"title"in re?Le=re.title:typeof re[this.getFieldName("label")]=="string"&&(Le=re[this.getFieldName("label")]),h.createElement("li",Object.assign({key:re[this.getFieldName("value")],className:we,title:Le},fe,{role:"menuitem",onMouseDown:function(Fe){return Fe.preventDefault()}}),re[this.getFieldName("label")],ke,Ne)}},{key:"getActiveOptions",value:function(re){var F=this,K=this.props.options,pe=re||this.props.activeValue;return f()(K,function($,j){return $[F.getFieldName("value")]===pe[j]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var re=this,F=this.props.options,K=this.getActiveOptions().map(function(pe){return pe[re.getFieldName("children")]}).filter(function(pe){return!!pe});return K.unshift(F),K}},{key:"delayOnSelect",value:function(re){for(var F=this,K=arguments.length,pe=new Array(K>1?K-1:0),$=1;$<K;$++)pe[$-1]=arguments[$];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof re=="function"&&(this.delayTimer=window.setTimeout(function(){re(pe),F.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var re=this.getShowOptions().length,F=0;F<re;F++){var K=this.menuItems[F];K&&K.parentElement&&(K.parentElement.scrollTop=K.offsetTop)}}},{key:"isActiveOption",value:function(re,F){var K=this.props.activeValue,pe=K===void 0?[]:K;return pe[F]===re[this.getFieldName("value")]}},{key:"render",value:function(){var re=this,F=this.props,K=F.prefixCls,pe=F.dropdownMenuColumnStyle;return h.createElement("div",null,this.getShowOptions().map(function($,j){return h.createElement("ul",{className:"".concat(K,"-menu"),key:j,style:pe},$.map(function(S){return re.getOption(S,j)}))}))}}]),ne}(h.Component);return le.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},le}(),P=N,k={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}}},b=k;function V(le){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?V=function(Z){return typeof Z}:V=function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},V(le)}function X(le,ue){if(le==null)return{};var Z=D(le,ue),ne,Y;if(Object.getOwnPropertySymbols){var re=Object.getOwnPropertySymbols(le);for(Y=0;Y<re.length;Y++){if(ne=re[Y],ue.indexOf(ne)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(le,ne))continue;Z[ne]=le[ne]}}return Z}function D(le,ue){if(le==null)return{};var Z={},ne=Object.keys(le),Y,re;for(re=0;re<ne.length;re++){if(Y=ne[re],ue.indexOf(Y)>=0)continue;Z[Y]=le[Y]}return Z}function L(le){return se(le)||ae(le)||J(le)||U()}function U(){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 J(le,ue){if(!le)return;if(typeof le=="string")return G(le,ue);var Z=Object.prototype.toString.call(le).slice(8,-1);if(Z==="Object"&&le.constructor&&(Z=le.constructor.name),Z==="Map"||Z==="Set")return Array.from(le);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return G(le,ue)}function ae(le){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(le))return Array.from(le)}function se(le){if(Array.isArray(le))return G(le)}function G(le,ue){(ue==null||ue>le.length)&&(ue=le.length);for(var Z=0,ne=new Array(ue);Z<ue;Z++)ne[Z]=le[Z];return ne}function he(le,ue){if(!(le instanceof ue))throw new TypeError("Cannot call a class as a function")}function q(le,ue){for(var Z=0;Z<ue.length;Z++){var ne=ue[Z];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(le,ne.key,ne)}}function W(le,ue,Z){return ue&&q(le.prototype,ue),Z&&q(le,Z),le}function H(le,ue){if(typeof ue!="function"&&ue!==null)throw new TypeError("Super expression must either be null or a function");le.prototype=Object.create(ue&&ue.prototype,{constructor:{value:le,writable:!0,configurable:!0}}),ue&&R(le,ue)}function R(le,ue){return R=Object.setPrototypeOf||function(ne,Y){return ne.__proto__=Y,ne},R(le,ue)}function y(le){var ue=oe();return function(){var Z=de(le),ne;if(ue){var Y=de(this).constructor;ne=Reflect.construct(Z,arguments,Y)}else ne=Z.apply(this,arguments);return A(this,ne)}}function A(le,ue){return ue&&(V(ue)==="object"||typeof ue=="function")?ue:ee(le)}function ee(le){if(le===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return le}function oe(){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(le){return!1}}function de(le){return de=Object.setPrototypeOf?Object.getPrototypeOf:function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},de(le)}var be=function(){var le=function(ue){H(ne,ue);var Z=y(ne);function ne(Y){var re;he(this,ne),re=Z.call(this,Y),re.setPopupVisible=function(K){var pe=re.state.value;"popupVisible"in re.props||re.setState({popupVisible:K}),K&&!re.state.popupVisible&&re.setState({activeValue:pe}),re.props.onPopupVisibleChange(K)},re.handleChange=function(K,pe,$){var j=pe.visible;($.type!=="keydown"||$.keyCode===x.a.ENTER)&&(re.props.onChange(K.map(function(S){return S[re.getFieldName("value")]}),K),re.setPopupVisible(j))},re.handlePopupVisibleChange=function(K){re.setPopupVisible(K)},re.handleMenuSelect=function(K,pe,$){var j=re.trigger.getRootDomNode();j&&j.focus&&j.focus();var S=re.props,B=S.changeOnSelect,me=S.loadData,fe=S.expandTrigger;if(!K||K.disabled)return;var we=re.state.activeValue;we=we.slice(0,pe+1),we[pe]=K[re.getFieldName("value")];var ke=re.getActiveOptions(we);if(K.isLeaf===!1&&!K[re.getFieldName("children")]&&me){B&&re.handleChange(ke,{visible:!0},$),re.setState({activeValue:we}),me(ke);return}var Me={};!K[re.getFieldName("children")]||!K[re.getFieldName("children")].length?(re.handleChange(ke,{visible:!1},$),Me.value=we):B&&($.type==="click"||$.type==="keydown")&&(fe==="hover"?re.handleChange(ke,{visible:!1},$):re.handleChange(ke,{visible:!0},$),Me.value=we),Me.activeValue=we,("value"in re.props||$.type==="keydown"&&$.keyCode!==x.a.ENTER)&&delete Me.value,re.setState(Me)},re.handleItemDoubleClick=function(){var K=re.props.changeOnSelect;K&&re.setPopupVisible(!1)},re.handleKeyDown=function(K){var pe=re.props.children;if(pe&&pe.props.onKeyDown){pe.props.onKeyDown(K);return}var $=L(re.state.activeValue),j=$.length-1<0?0:$.length-1,S=re.getCurrentLevelOptions(),B=S.map(function(ke){return ke[re.getFieldName("value")]}).indexOf($[j]);if(K.keyCode!==x.a.DOWN&&K.keyCode!==x.a.UP&&K.keyCode!==x.a.LEFT&&K.keyCode!==x.a.RIGHT&&K.keyCode!==x.a.ENTER&&K.keyCode!==x.a.SPACE&&K.keyCode!==x.a.BACKSPACE&&K.keyCode!==x.a.ESC&&K.keyCode!==x.a.TAB)return;if(!re.state.popupVisible&&K.keyCode!==x.a.BACKSPACE&&K.keyCode!==x.a.LEFT&&K.keyCode!==x.a.RIGHT&&K.keyCode!==x.a.ESC&&K.keyCode!==x.a.TAB){re.setPopupVisible(!0);return}if(K.keyCode===x.a.DOWN||K.keyCode===x.a.UP){K.preventDefault();var me=B;me!==-1?K.keyCode===x.a.DOWN?(me+=1,me=me>=S.length?0:me):(me-=1,me=me<0?S.length-1:me):me=0,$[j]=S[me][re.getFieldName("value")]}else if(K.keyCode===x.a.LEFT||K.keyCode===x.a.BACKSPACE)K.preventDefault(),$.splice($.length-1,1);else if(K.keyCode===x.a.RIGHT)K.preventDefault(),S[B]&&S[B][re.getFieldName("children")]&&$.push(S[B][re.getFieldName("children")][0][re.getFieldName("value")]);else if(K.keyCode===x.a.ESC||K.keyCode===x.a.TAB){re.setPopupVisible(!1);return}(!$||$.length===0)&&re.setPopupVisible(!1);var fe=re.getActiveOptions($),we=fe[fe.length-1];re.handleMenuSelect(we,fe.length-1,K),re.props.onKeyDown&&re.props.onKeyDown(K)},re.saveTrigger=function(K){re.trigger=K};var F=[];return"value"in Y?F=Y.value||[]:"defaultValue"in Y&&(F=Y.defaultValue||[]),_()(!("filedNames"in Y),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),re.state={popupVisible:Y.popupVisible,activeValue:F,value:F,prevProps:Y},re.defaultFieldNames={label:"label",value:"value",children:"children"},re}return W(ne,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(re){var F=this.defaultFieldNames,K=this.props,pe=K.fieldNames,$=K.filedNames;return"filedNames"in this.props?$[re]||F[re]:pe[re]||F[re]}},{key:"getFieldNames",value:function(){var re=this.props,F=re.fieldNames,K=re.filedNames;return"filedNames"in this.props?K:F}},{key:"getCurrentLevelOptions",value:function(){var re=this,F=this.props.options,K=F===void 0?[]:F,pe=this.state.activeValue,$=pe===void 0?[]:pe,j=f()(K,function(S,B){return S[re.getFieldName("value")]===$[B]},{childrenKeyName:this.getFieldName("children")});return j[j.length-2]?j[j.length-2][this.getFieldName("children")]:L(K).filter(function(S){return!S.disabled})}},{key:"getActiveOptions",value:function(re){var F=this;return f()(this.props.options||[],function(K,pe){return K[F.getFieldName("value")]===re[pe]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var re=this.props,F=re.prefixCls,K=re.transitionName,pe=re.popupClassName,$=re.options,j=$===void 0?[]:$,S=re.disabled,B=re.builtinPlacements,me=re.popupPlacement,fe=re.children,we=re.dropdownRender,ke=X(re,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),Me=h.createElement("div",null),Ne="";j&&j.length>0?Me=h.createElement(P,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):Ne=" ".concat(F,"-menus-empty");var Le=Me;return we&&(Le=we(Me)),h.createElement(a.a,Object.assign({ref:this.saveTrigger},ke,{popupPlacement:me,builtinPlacements:B,popupTransitionName:K,action:S?[]:["click"],popupVisible:S?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(F,"-menus"),popupClassName:pe+Ne,popup:Le}),h.cloneElement(fe,{onKeyDown:this.handleKeyDown,tabIndex:S?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(re,F){var K=F.prevProps,pe=K===void 0?{}:K,$={prevProps:re};return"value"in re&&!o(pe.value,re.value)&&($.value=re.value||[],"loadData"in re||($.activeValue=re.value||[])),"popupVisible"in re&&($.popupVisible=re.popupVisible),$}}]),ne}(h.Component);return le.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:b,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},le}(),xe=be,te=z.a=xe},S6kV:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("OLod"))})(this,function(h){return h.mode.OFB=function(){var a=h.lib.BlockCipherMode.extend(),T=a.Encryptor=a.extend({processBlock:function(_,x){var p=this._cipher,f=p.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),p.encryptBlock(i,0);for(var u=0;u<f;u++)_[x+u]^=i[u]}});return a.Decryptor=T,a}(),h.mode.OFB})},SJMd:function(s,z){/**
* @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 d,h,a,T=!1,_,x;window.PR_SHOULD_USE_CONTINUATION=!0;var p,f;(function(){var o=window,i=["break,continue,do,else,for,if,return,while"],u=[i,"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"],l=[u,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],v=[l,"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"],m=[l,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],g=[l,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],E="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",w=[l,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],O="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",C=[i,"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"],M=[i,"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"],N=[i,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],P=[v,g,m,w,O,C,M,N],k=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,b="str",V="kwd",X="com",D="typ",L="lit",U="pun",J="pln",ae="tag",se="dec",G="src",he="atn",q="atv",W="nocode",H="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function R($){for(var j=0,S=!1,B=!1,me=0,fe=$.length;me<fe;++me){var we=$[me];if(we.ignoreCase)B=!0;else if(/[a-z]/i.test(we.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){S=!0,B=!1;break}}var ke={b:8,t:9,n:10,v:11,f:12,r:13};function Me(He){var Oe=He.charCodeAt(0);if(Oe!==92)return Oe;var Ve=He.charAt(1);return Oe=ke[Ve],Oe||("0"<=Ve&&Ve<="7"?parseInt(He.substring(1),8):Ve==="u"||Ve==="x"?parseInt(He.substring(2),16):He.charCodeAt(1))}function Ne(He){if(He<32)return(He<16?"\\x0":"\\x")+He.toString(16);var Oe=String.fromCharCode(He);return Oe==="\\"||Oe==="-"||Oe==="]"||Oe==="^"?"\\"+Oe:Oe}function Le(He){var Oe=He.substring(1,He.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")),Ve=[],$e=Oe[0]==="^",Ue=["["];$e&&Ue.push("^");for(var Ke=$e?1:0,Re=Oe.length;Ke<Re;++Ke){var Te=Oe[Ke];if(/\\[bdsw]/i.test(Te))Ue.push(Te);else{var Ee=Me(Te),ve;Ke+2<Re&&Oe[Ke+1]==="-"?(ve=Me(Oe[Ke+2]),Ke+=2):ve=Ee,Ve.push([Ee,ve]),ve<65||Ee>122||(ve<65||Ee>90||Ve.push([Math.max(65,Ee)|32,Math.min(ve,90)|32]),ve<97||Ee>122||Ve.push([Math.max(97,Ee)&~32,Math.min(ve,122)&~32]))}}Ve.sort(function(Ie,De){return Ie[0]-De[0]||De[1]-Ie[1]});for(var ye=[],_e=[],Ke=0;Ke<Ve.length;++Ke){var Se=Ve[Ke];Se[0]<=_e[1]+1?_e[1]=Math.max(_e[1],Se[1]):ye.push(_e=Se)}for(var Ke=0;Ke<ye.length;++Ke){var Se=ye[Ke];Ue.push(Ne(Se[0])),Se[1]>Se[0]&&(Se[1]+1>Se[0]&&Ue.push("-"),Ue.push(Ne(Se[1])))}return Ue.push("]"),Ue.join("")}function We(He){for(var Oe=He.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")),Ve=Oe.length,$e=[],Ue=0,Ke=0;Ue<Ve;++Ue){var Re=Oe[Ue];if(Re==="(")++Ke;else if(Re.charAt(0)==="\\"){var Te=+Re.substring(1);Te&&(Te<=Ke?$e[Te]=-1:Oe[Ue]=Ne(Te))}}for(var Ue=1;Ue<$e.length;++Ue)$e[Ue]===-1&&($e[Ue]=++j);for(var Ue=0,Ke=0;Ue<Ve;++Ue){var Re=Oe[Ue];if(Re==="(")++Ke,$e[Ke]||(Oe[Ue]="(?:");else if(Re.charAt(0)==="\\"){var Te=+Re.substring(1);Te&&Te<=Ke&&(Oe[Ue]="\\"+$e[Te])}}for(var Ue=0;Ue<Ve;++Ue)Oe[Ue]==="^"&&Oe[Ue+1]!=="^"&&(Oe[Ue]="");if(He.ignoreCase&&S)for(var Ue=0;Ue<Ve;++Ue){var Re=Oe[Ue],Ee=Re.charAt(0);Re.length>=2&&Ee==="["?Oe[Ue]=Le(Re):Ee!=="\\"&&(Oe[Ue]=Re.replace(/[a-zA-Z]/g,function(_e){var Se=_e.charCodeAt(0);return"["+String.fromCharCode(Se&~32,Se|32)+"]"}))}return Oe.join("")}for(var Fe=[],me=0,fe=$.length;me<fe;++me){var we=$[me];if(we.global||we.multiline)throw new Error(""+we);Fe.push("(?:"+We(we)+")")}return new RegExp(Fe.join("|"),B?"gi":"g")}function y($,j){var S=/(?:^|\s)nocode(?:\s|$)/,B=[],me=0,fe=[],we=0;function ke(Me){var Ne=Me.nodeType;if(Ne==1){if(S.test(Me.className))return;for(var Le=Me.firstChild;Le;Le=Le.nextSibling)ke(Le);var We=Me.nodeName.toLowerCase();(We==="br"||We==="li")&&(B[we]=`
`,fe[we<<1]=me++,fe[we++<<1|1]=Me)}else if(Ne==3||Ne==4){var Fe=Me.nodeValue;Fe.length&&(j?Fe=Fe.replace(/\r\n?/g,`
`):Fe=Fe.replace(/[ \t\r\n]+/g," "),B[we]=Fe,fe[we<<1]=me,me+=Fe.length,fe[we++<<1|1]=Me)}}return ke($),{sourceCode:B.join("").replace(/\n$/,""),spans:fe}}function A($,j,S,B,me){if(!S)return;var fe={sourceNode:$,pre:1,langExtension:null,numberLines:null,sourceCode:S,spans:null,basePos:j,decorations:null};B(fe),me.push.apply(me,fe.decorations)}var ee=/\S/;function oe($){for(var j=void 0,S=$.firstChild;S;S=S.nextSibling){var B=S.nodeType;j=B===1?j?$:S:B===3&&ee.test(S.nodeValue)?$:j}return j===$?void 0:j}function de($,j){var S={},B;(function(){for(var we=$.concat(j),ke=[],Me={},Ne=0,Le=we.length;Ne<Le;++Ne){var We=we[Ne],Fe=We[3];if(Fe)for(var He=Fe.length;--He>=0;)S[Fe.charAt(He)]=We;var Oe=We[1],Ve=""+Oe;Me.hasOwnProperty(Ve)||(ke.push(Oe),Me[Ve]=null)}ke.push(/[\0-\uffff]/),B=R(ke)})();var me=j.length,fe=function(we){for(var ke=we.sourceCode,Me=we.basePos,Ne=we.sourceNode,Le=[Me,J],We=0,Fe=ke.match(B)||[],He={},Oe=0,Ve=Fe.length;Oe<Ve;++Oe){var $e=Fe[Oe],Ue=He[$e],Ke=void 0,Re;if(typeof Ue=="string")Re=!1;else{var Te=S[$e.charAt(0)];if(Te)Ke=$e.match(Te[1]),Ue=Te[0];else{for(var Ee=0;Ee<me;++Ee)if(Te=j[Ee],Ke=$e.match(Te[1]),Ke){Ue=Te[0];break}Ke||(Ue=J)}Re=Ue.length>=5&&Ue.substring(0,5)==="lang-",Re&&!(Ke&&typeof Ke[1]=="string")&&(Re=!1,Ue=G),Re||(He[$e]=Ue)}var ve=We;if(We+=$e.length,!Re)Le.push(Me+ve,Ue);else{var ye=Ke[1],_e=$e.indexOf(ye),Se=_e+ye.length;Ke[2]&&(Se=$e.length-Ke[2].length,_e=Se-ye.length);var Ie=Ue.substring(5);A(Ne,Me+ve,$e.substring(0,_e),fe,Le),A(Ne,Me+ve+_e,ye,ne(Ie,ye),Le),A(Ne,Me+ve+Se,$e.substring(Se),fe,Le)}}we.decorations=Le};return fe}function be($){var j=[],S=[];$.tripleQuotedStrings?j.push([b,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):$.multiLineStrings?j.push([b,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):j.push([b,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),$.verbatimStrings&&S.push([b,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var B=$.hashComments;B&&($.cStyleComments?(B>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,"#"]),S.push([b,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):j.push([X,/^#[^\r\n]*/,null,"#"])),$.cStyleComments&&(S.push([X,/^\/\/[^\r\n]*/,null]),S.push([X,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var me=$.regexLiterals;if(me){var fe=me>1?"":`
\r`,we=fe?".":"[\\S\\s]",ke="/(?=[^/*"+fe+"])(?:[^/\\x5B\\x5C"+fe+"]|\\x5C"+we+"|\\x5B(?:[^\\x5C\\x5D"+fe+"]|\\x5C"+we+")*(?:\\x5D|$))+/";S.push(["lang-regex",RegExp("^"+H+"("+ke+")")])}var Me=$.types;Me&&S.push([D,Me]);var Ne=(""+$.keywords).replace(/^ | $/g,"");Ne.length&&S.push([V,new RegExp("^(?:"+Ne.replace(/[\s,]+/g,"|")+")\\b"),null]),j.push([J,/^\s+/,null,` \r
\xA0`]);var Le="^.[^\\s\\w.$@'\"`/\\\\]*";return $.regexLiterals&&(Le+="(?!s*/)"),S.push([L,/^@[a-z_$][a-z_$@0-9]*/i,null],[D,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[J,/^[a-z_$][a-z_$@0-9]*/i,null],[L,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[J,/^\\[\s\S]?/,null],[U,new RegExp(Le),null]),de(j,S)}var xe=be({keywords:P,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function te($,j,S){for(var B=/(?:^|\s)nocode(?:\s|$)/,me=/\r\n?|\n/,fe=$.ownerDocument,we=fe.createElement("li");$.firstChild;)we.appendChild($.firstChild);var ke=[we];function Me(Oe){var Ve=Oe.nodeType;if(Ve==1&&!B.test(Oe.className))if(Oe.nodeName==="br")Ne(Oe),Oe.parentNode&&Oe.parentNode.removeChild(Oe);else for(var $e=Oe.firstChild;$e;$e=$e.nextSibling)Me($e);else if((Ve==3||Ve==4)&&S){var Ue=Oe.nodeValue,Ke=Ue.match(me);if(Ke){var Re=Ue.substring(0,Ke.index);Oe.nodeValue=Re;var Te=Ue.substring(Ke.index+Ke[0].length);if(Te){var Ee=Oe.parentNode;Ee.insertBefore(fe.createTextNode(Te),Oe.nextSibling)}Ne(Oe),Re||Oe.parentNode.removeChild(Oe)}}}function Ne(Oe){for(;!Oe.nextSibling;)if(Oe=Oe.parentNode,!Oe)return;function Ve(Ke,Re){var Te=Re?Ke.cloneNode(!1):Ke,Ee=Ke.parentNode;if(Ee){var ve=Ve(Ee,1),ye=Ke.nextSibling;ve.appendChild(Te);for(var _e=ye;_e;_e=ye)ye=_e.nextSibling,ve.appendChild(_e)}return Te}for(var $e=Ve(Oe.nextSibling,0),Ue;(Ue=$e.parentNode)&&Ue.nodeType===1;)$e=Ue;ke.push($e)}for(var Le=0;Le<ke.length;++Le)Me(ke[Le]);j===(j|0)&&ke[0].setAttribute("value",j);var We=fe.createElement("ol");We.className="linenums";for(var Fe=Math.max(0,j-1|0)||0,Le=0,He=ke.length;Le<He;++Le)we=ke[Le],we.className="L"+(Le+Fe)%10,we.firstChild||we.appendChild(fe.createTextNode("\xA0")),We.appendChild(we);$.appendChild(We)}function le($){var j=/\bMSIE\s(\d+)/.exec(navigator.userAgent);j=j&&+j[1]<=8;var S=/\n/g,B=$.sourceCode,me=B.length,fe=0,we=$.spans,ke=we.length,Me=0,Ne=$.decorations,Le=Ne.length,We=0;Ne[Le]=me;var Fe,He;for(He=Fe=0;He<Le;)Ne[He]!==Ne[He+2]?(Ne[Fe++]=Ne[He++],Ne[Fe++]=Ne[He++]):He+=2;for(Le=Fe,He=Fe=0;He<Le;){for(var Oe=Ne[He],Ve=Ne[He+1],$e=He+2;$e+2<=Le&&Ne[$e+1]===Ve;)$e+=2;Ne[Fe++]=Oe,Ne[Fe++]=Ve,He=$e}Le=Ne.length=Fe;var Ue=$.sourceNode,Ke="";Ue&&(Ke=Ue.style.display,Ue.style.display="none");try{for(var Re=null;Me<ke;){var Te=we[Me],Ee=we[Me+2]||me,ve=Ne[We+2]||me,$e=Math.min(Ee,ve),ye=we[Me+1],_e;if(ye.nodeType!==1&&(_e=B.substring(fe,$e))){j&&(_e=_e.replace(S,"\r")),ye.nodeValue=_e;var Se=ye.ownerDocument,Ie=Se.createElement("span");Ie.className=Ne[We+1];var De=ye.parentNode;De.replaceChild(Ie,ye),Ie.appendChild(ye),fe<Ee&&(we[Me+1]=ye=Se.createTextNode(B.substring($e,Ee)),De.insertBefore(ye,Ie.nextSibling))}fe=$e,fe>=Ee&&(Me+=2),fe>=ve&&(We+=2)}}finally{Ue&&(Ue.style.display=Ke)}}var ue={};function Z($,j){for(var S=j.length;--S>=0;){var B=j[S];ue.hasOwnProperty(B)?o.console&&console.warn("cannot override language handler %s",B):ue[B]=$}}function ne($,j){return $&&ue.hasOwnProperty($)||($=/^\s*</.test(j)?"default-markup":"default-code"),ue[$]}Z(xe,["default-code"]),Z(de([],[[J,/^[^<?]+/],[se,/^<!\w[^>]*(?:>|$)/],[X,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[U,/^(?:<[%?]|[%?]>)/],["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"]),Z(de([[J,/^[\s]+/,null,` \r
`],[q,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[ae,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[he,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[U,/^[=<>\/]+/],["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"]),Z(de([],[[q,/^[\s\S]+/]]),["uq.val"]),Z(be({keywords:v,hashComments:!0,cStyleComments:!0,types:k}),["c","cc","cpp","cxx","cyc","m"]),Z(be({keywords:"null,true,false"}),["json"]),Z(be({keywords:g,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:k}),["cs"]),Z(be({keywords:m,cStyleComments:!0}),["java"]),Z(be({keywords:N,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Z(be({keywords:C,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Z(be({keywords:O,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Z(be({keywords:M,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Z(be({keywords:w,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Z(be({keywords:E,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Z(de([],[[b,/^[\s\S]+/]]),["regex"]);function Y($){var j=$.langExtension;try{var S=y($.sourceNode,$.pre),B=S.sourceCode;$.sourceCode=B,$.spans=S.spans,$.basePos=0,ne(j,B)($),le($)}catch(me){o.console&&console.log(me&&me.stack||me)}}function re($,j,S){var B=S||!1,me=j||null,fe=document.createElement("div");fe.innerHTML="<pre>"+$+"</pre>",fe=fe.firstChild,B&&te(fe,B,!0);var we={langExtension:me,numberLines:B,sourceNode:fe,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Y(we),fe.innerHTML}function F($,j){var S=j||document.body,B=S.ownerDocument||document;function me(Te){return S.getElementsByTagName(Te)}for(var fe=[me("pre"),me("code"),me("xmp")],we=[],ke=0;ke<fe.length;++ke)for(var Me=0,Ne=fe[ke].length;Me<Ne;++Me)we.push(fe[ke][Me]);fe=null;var Le=Date;Le.now||(Le={now:function(){return+new Date}});var We=0,Fe=/\blang(?:uage)?-([\w.]+)(?!\S)/,He=/\bprettyprint\b/,Oe=/\bprettyprinted\b/,Ve=/pre|xmp/i,$e=/^code$/i,Ue=/^(?:pre|code|xmp)$/i,Ke={};function Re(){for(var Te=o.PR_SHOULD_USE_CONTINUATION?Le.now()+250:Infinity;We<we.length&&Le.now()<Te;We++){for(var Ee=we[We],ve=Ke,ye=Ee;ye=ye.previousSibling;){var _e=ye.nodeType,Se=(_e===7||_e===8)&&ye.nodeValue;if(Se?!/^\??prettify\b/.test(Se):_e!==3||/\S/.test(ye.nodeValue))break;if(Se){ve={},Se.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Wt,Ct,At){ve[Ct]=At});break}}var Ie=Ee.className;if((ve!==Ke||He.test(Ie))&&!Oe.test(Ie)){for(var De=!1,ze=Ee.parentNode;ze;ze=ze.parentNode){var qe=ze.tagName;if(Ue.test(qe)&&ze.className&&He.test(ze.className)){De=!0;break}}if(!De){Ee.className+=" prettyprinted";var tt=ve.lang;if(!tt){tt=Ie.match(Fe);var ot;!tt&&(ot=oe(Ee))&&$e.test(ot.tagName)&&(tt=ot.className.match(Fe)),tt&&(tt=tt[1])}var nt;if(Ve.test(Ee.tagName))nt=1;else{var pt=Ee.currentStyle,ft=B.defaultView,_t=pt?pt.whiteSpace:ft&&ft.getComputedStyle?ft.getComputedStyle(Ee,null).getPropertyValue("white-space"):0;nt=_t&&_t.substring(0,3)==="pre"}var Rt=ve.linenums;(Rt=Rt==="true"||+Rt)||(Rt=Ie.match(/\blinenums\b(?::(\d+))?/),Rt=Rt?Rt[1]&&Rt[1].length?+Rt[1]:!0:!1),Rt&&te(Ee,Rt,nt);var Gt={langExtension:tt,sourceNode:Ee,numberLines:Rt,pre:nt,sourceCode:null,basePos:null,spans:null,decorations:null};Y(Gt)}}}We<we.length?o.setTimeout(Re,250):typeof $=="function"&&$()}Re()}var K=o.PR={createSimpleLexer:de,registerLangHandler:Z,sourceDecorator:be,PR_ATTRIB_NAME:he,PR_ATTRIB_VALUE:q,PR_COMMENT:X,PR_DECLARATION:se,PR_KEYWORD:V,PR_LITERAL:L,PR_NOCODE:W,PR_PLAIN:J,PR_PUNCTUATION:U,PR_SOURCE:G,PR_STRING:b,PR_TAG:ae,PR_TYPE:D,prettyPrintOne:T?o.prettyPrintOne=re:p=re,prettyPrint:f=T?o.prettyPrint=F:f=F},pe=o.define;typeof pe=="function"&&pe.amd&&pe("google-code-prettify",[],function(){return K})})()},T1X5:function(s,z){s.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"},"VrN/":function(s,z,d){(function(h,a){s.exports=a()})(this,function(){"use strict";var h=navigator.userAgent,a=navigator.platform,T=/gecko\/\d/i.test(h),_=/MSIE \d/.test(h),x=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(h),p=/Edge\/(\d+)/.exec(h),f=_||x||p,o=f&&(_?document.documentMode||6:+(p||x)[1]),i=!p&&/WebKit\//.test(h),u=i&&/Qt\/\d+\.\d+/.test(h),l=!p&&/Chrome\//.test(h),v=/Opera\//.test(h),m=/Apple Computer/.test(navigator.vendor),g=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(h),E=/PhantomJS/.test(h),w=!p&&/AppleWebKit/.test(h)&&/Mobile\/\w+/.test(h),O=/Android/.test(h),C=w||O||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(h),M=w||/Mac/.test(a),N=/\bCrOS\b/.test(h),P=/win/i.test(a),k=v&&h.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(v=!1,i=!0);var b=M&&(u||v&&(k==null||k<12.11)),V=T||f&&o>=9;function X(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var D=function(e,t){var n=e.className,r=X(t).exec(n);if(r){var c=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(c?r[1]+c:"")}};function L(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function U(e,t){return L(e).appendChild(t)}function J(e,t,n,r){var c=document.createElement(e);if(n&&(c.className=n),r&&(c.style.cssText=r),typeof t=="string")c.appendChild(document.createTextNode(t));else if(t)for(var I=0;I<t.length;++I)c.appendChild(t[I]);return c}function ae(e,t,n,r){var c=J(e,t,n,r);return c.setAttribute("role","presentation"),c}var se;document.createRange?se=function(e,t,n,r){var c=document.createRange();return c.setEnd(r||e,n),c.setStart(e,t),c}:se=function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(c){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};function G(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 he(){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 n=e.className;X(t).test(n)||(e.className+=(n?" ":"")+t)}function W(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!X(n[r]).test(t)&&(t+=" "+n[r]);return t}var H=function(e){e.select()};w?H=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:f&&(H=function(e){try{e.select()}catch(t){}});function R(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function y(e,t,n){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(n!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function A(e,t,n,r,c){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var I=r||0,Q=c||0;;){var ie=e.indexOf(" ",I);if(ie<0||ie>=t)return Q+(t-I);Q+=ie-I,Q+=n-Q%n,I=ie+1}}var ee=function(){this.id=null,this.f=null,this.time=0,this.handler=R(this.onTimeout,this)};ee.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ee.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};function oe(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}var de=50,be={toString:function(){return"CodeMirror.Pass"}},xe={scroll:!1},te={origin:"*mouse"},le={origin:"+move"};function ue(e,t,n){for(var r=0,c=0;;){var I=e.indexOf(" ",r);I==-1&&(I=e.length);var Q=I-r;if(I==e.length||c+Q>=t)return r+Math.min(Q,t-c);if(c+=I-r,c+=n-c%n,r=I+1,c>=t)return r}}var Z=[""];function ne(e){for(;Z.length<=e;)Z.push(Y(Z)+" ");return Z[e]}function Y(e){return e[e.length-1]}function re(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function F(e,t,n){for(var r=0,c=n(t);r<e.length&&n(e[r])<=c;)r++;e.splice(r,0,t)}function K(){}function pe(e,t){var n;return Object.create?n=Object.create(e):(K.prototype=e,n=new K),t&&y(t,n),n}var $=/[\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()||$.test(e))}function S(e,t){return t?t.source.indexOf("\\w")>-1&&j(e)?!0:t.test(e):j(e)}function B(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var me=/[\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 fe(e){return e.charCodeAt(0)>=768&&me.test(e)}function we(e,t,n){for(;(n<0?t>0:t<e.length)&&fe(e.charAt(t));)t+=n;return t}function ke(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var c=(t+n)/2,I=r<0?Math.ceil(c):Math.floor(c);if(I==t)return e(I)?t:n;e(I)?n=I:t=I+r}}function Me(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var c=!1,I=0;I<e.length;++I){var Q=e[I];(Q.from<n&&Q.to>t||t==n&&Q.to==t)&&(r(Math.max(Q.from,t),Math.min(Q.to,n),Q.level==1?"rtl":"ltr",I),c=!0)}c||r(t,n,"ltr")}var Ne=null;function Le(e,t,n){var r;Ne=null;for(var c=0;c<e.length;++c){var I=e[c];if(I.from<t&&I.to>t)return c;I.to==t&&(I.from!=I.to&&n=="before"?r=c:Ne=c),I.from==t&&(I.from!=I.to&&n!="before"?r=c:Ne=c)}return r!=null?r:Ne}var We=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(ge){return ge<=247?e.charAt(ge):1424<=ge&&ge<=1524?"R":1536<=ge&&ge<=1785?t.charAt(ge-1536):1774<=ge&&ge<=2220?"r":8192<=ge&&ge<=8203?"w":ge==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,I=/[LRr]/,Q=/[Lb1n]/,ie=/[1n]/;function ce(ge,Ce,Ae){this.level=ge,this.from=Ce,this.to=Ae}return function(ge,Ce){var Ae=Ce=="ltr"?"L":"R";if(ge.length==0||Ce=="ltr"&&!r.test(ge))return!1;for(var je=ge.length,Pe=[],Xe=0;Xe<je;++Xe)Pe.push(n(ge.charCodeAt(Xe)));for(var Je=0,Qe=Ae;Je<je;++Je){var at=Pe[Je];at=="m"?Pe[Je]=Qe:Qe=at}for(var ct=0,it=Ae;ct<je;++ct){var ht=Pe[ct];ht=="1"&&it=="r"?Pe[ct]="n":I.test(ht)&&(it=ht,ht=="r"&&(Pe[ct]="R"))}for(var St=1,wt=Pe[0];St<je-1;++St){var Dt=Pe[St];Dt=="+"&&wt=="1"&&Pe[St+1]=="1"?Pe[St]="1":Dt==","&&wt==Pe[St+1]&&(wt=="1"||wt=="n")&&(Pe[St]=wt),wt=Dt}for(var Jt=0;Jt<je;++Jt){var Cr=Pe[Jt];if(Cr==",")Pe[Jt]="N";else if(Cr=="%"){var or=void 0;for(or=Jt+1;or<je&&Pe[or]=="%";++or);for(var Vr=Jt&&Pe[Jt-1]=="!"||or<je&&Pe[or]=="1"?"1":"N",Br=Jt;Br<or;++Br)Pe[Br]=Vr;Jt=or-1}}for(var mr=0,Wr=Ae;mr<je;++mr){var kr=Pe[mr];Wr=="L"&&kr=="1"?Pe[mr]="L":I.test(kr)&&(Wr=kr)}for(var xr=0;xr<je;++xr)if(c.test(Pe[xr])){var gr=void 0;for(gr=xr+1;gr<je&&c.test(Pe[gr]);++gr);for(var lr=(xr?Pe[xr-1]:Ae)=="L",Hr=(gr<je?Pe[gr]:Ae)=="L",Sa=lr==Hr?lr?"L":"R":Ae,Wn=xr;Wn<gr;++Wn)Pe[Wn]=Sa;xr=gr-1}for(var Mr=[],bn,Tr=0;Tr<je;)if(Q.test(Pe[Tr])){var oo=Tr;for(++Tr;Tr<je&&Q.test(Pe[Tr]);++Tr);Mr.push(new ce(0,oo,Tr))}else{var Tn=Tr,ta=Mr.length,ra=Ce=="rtl"?1:0;for(++Tr;Tr<je&&Pe[Tr]!="L";++Tr);for(var jr=Tn;jr<Tr;)if(ie.test(Pe[jr])){Tn<jr&&(Mr.splice(ta,0,new ce(1,Tn,jr)),ta+=ra);var Ca=jr;for(++jr;jr<Tr&&ie.test(Pe[jr]);++jr);Mr.splice(ta,0,new ce(2,Ca,jr)),ta+=ra,Tn=jr}else++jr;Tn<Tr&&Mr.splice(ta,0,new ce(1,Tn,Tr))}return Ce=="ltr"&&(Mr[0].level==1&&(bn=ge.match(/^\s+/))&&(Mr[0].from=bn[0].length,Mr.unshift(new ce(0,0,bn[0].length))),Y(Mr).level==1&&(bn=ge.match(/\s+$/))&&(Y(Mr).to-=bn[0].length,Mr.push(new ce(0,je-bn[0].length,je)))),Ce=="rtl"?Mr.reverse():Mr}}();function Fe(e,t){var n=e.order;return n==null&&(n=e.order=We(e.text,t)),n}var He=[],Oe=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||He).concat(n)}};function Ve(e,t){return e._handlers&&e._handlers[t]||He}function $e(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,c=r&&r[t];if(c){var I=oe(c,n);I>-1&&(r[t]=c.slice(0,I).concat(c.slice(I+1)))}}}function Ue(e,t){var n=Ve(e,t);if(!n.length)return;for(var r=Array.prototype.slice.call(arguments,2),c=0;c<n.length;++c)n[c].apply(null,r)}function Ke(e,t,n){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ue(e,n||t.type,e,t),_e(t)||t.codemirrorIgnore}function Re(e){var t=e._handlers&&e._handlers.cursorActivity;if(!t)return;for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)oe(n,t[r])==-1&&n.push(t[r])}function Te(e,t){return Ve(e,t).length>0}function Ee(e){e.prototype.on=function(t,n){Oe(this,t,n)},e.prototype.off=function(t,n){$e(this,t,n)}}function ve(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ye(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function _e(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Se(e){ve(e),ye(e)}function Ie(e){return e.target||e.srcElement}function De(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),M&&e.ctrlKey&&t==1&&(t=3),t}var ze=function(){if(f&&o<9)return!1;var e=J("div");return"draggable"in e||"dragDrop"in e}(),qe;function tt(e){if(qe==null){var t=J("span","\u200B");U(e,J("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(qe=t.offsetWidth<=1&&t.offsetHeight>2&&!(f&&o<8))}var n=qe?J("span","\u200B"):J("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var ot;function nt(e){if(ot!=null)return ot;var t=U(e,document.createTextNode("A\u062EA")),n=se(t,0,1).getBoundingClientRect(),r=se(t,1,2).getBoundingClientRect();return L(e),!n||n.left==n.right?!1:ot=r.right-n.right<3}var pt=`
b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var c=e.indexOf(`
`,t);c==-1&&(c=e.length);var I=e.slice(t,e.charAt(c-1)=="\r"?c-1:c),Q=I.indexOf("\r");Q!=-1?(n.push(I.slice(0,Q)),t+=Q+1):(n.push(I),t=c+1)}return n}:function(e){return e.split(/\r\n?|\n/)},ft=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(n){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},_t=function(){var e=J("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Rt=null;function Gt(e){if(Rt!=null)return Rt;var t=U(e,J("span","x")),n=t.getBoundingClientRect(),r=se(t,0,1).getBoundingClientRect();return Rt=Math.abs(n.left-r.left)>1}var Wt={},Ct={};function At(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Wt[e]=t}function dr(e,t){Ct[e]=t}function sr(e){if(typeof e=="string"&&Ct.hasOwnProperty(e))e=Ct[e];else if(e&&typeof e.name=="string"&&Ct.hasOwnProperty(e.name)){var t=Ct[e.name];typeof t=="string"&&(t={name:t}),e=pe(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return sr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return sr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function fr(e,t){t=sr(t);var n=Wt[t.name];if(!n)return fr(e,"text/plain");var r=n(e,t);if(Ft.hasOwnProperty(t.name)){var c=Ft[t.name];for(var I in c){if(!c.hasOwnProperty(I))continue;r.hasOwnProperty(I)&&(r["_"+I]=r[I]),r[I]=c[I]}}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var Q in t.modeProps)r[Q]=t.modeProps[Q];return r}var Ft={};function vr(e,t){var n=Ft.hasOwnProperty(e)?Ft[e]:Ft[e]={};y(t,n)}function rr(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var c=t[r];c instanceof Array&&(c=c.concat([])),n[r]=c}return n}function Qt(e,t){for(var n;e.innerMode&&!(n=e.innerMode(t),!n||n.mode==e);)t=n.state,e=n.mode;return n||{mode:e,state:t}}function wr(e,t,n){return e.startState?e.startState(t,n):!0}var Pt=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Pt.prototype.eol=function(){return this.pos>=this.string.length},Pt.prototype.sol=function(){return this.pos==this.lineStart},Pt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Pt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Pt.prototype.eat=function(e){var t=this.string.charAt(this.pos),n;if(typeof e=="string"?n=t==e:n=t&&(e.test?e.test(t):e(t)),n)return++this.pos,t},Pt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Pt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Pt.prototype.skipToEnd=function(){this.pos=this.string.length},Pt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Pt.prototype.backUp=function(e){this.pos-=e},Pt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=A(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?A(this.string,this.lineStart,this.tabSize):0)},Pt.prototype.indentation=function(){return A(this.string,null,this.tabSize)-(this.lineStart?A(this.string,this.lineStart,this.tabSize):0)},Pt.prototype.match=function(e,t,n){if(typeof e=="string"){var r=function(Q){return n?Q.toLowerCase():Q},c=this.string.substr(this.pos,e.length);if(r(c)==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var I=this.string.slice(this.pos).match(e);return I&&I.index>0?null:(I&&t!==!1&&(this.pos+=I[0].length),I)}},Pt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Pt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Pt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Pt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function rt(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 n=e;!n.lines;)for(var r=0;;++r){var c=n.children[r],I=c.chunkSize();if(t<I){n=c;break}t-=I}return n.lines[t]}function kt(e,t,n){var r=[],c=t.line;return e.iter(t.line,n.line+1,function(I){var Q=I.text;c==n.line&&(Q=Q.slice(0,n.ch)),c==t.line&&(Q=Q.slice(t.ch)),r.push(Q),++c}),r}function nr(e,t,n){var r=[];return e.iter(t,n,function(c){r.push(c.text)}),r}function Et(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function Tt(e){if(e.parent==null)return null;for(var t=e.parent,n=oe(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var c=0;!(r.children[c]==t);++c)n+=r.children[c].chunkSize();return n+t.first}function qt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var c=e.children[r],I=c.height;if(t<I){e=c;continue e}t-=I,n+=c.chunkSize()}return n}while(!e.lines);for(var Q=0;Q<e.lines.length;++Q){var ie=e.lines[Q],ce=ie.height;if(t<ce)break;t-=ce}return n+Q}function Nr(e,t){return t>=e.first&&t<e.first+e.size}function br(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function Ye(e,t,n){if(n===void 0&&(n=null),!(this instanceof Ye))return new Ye(e,t,n);this.line=e,this.ch=t,this.sticky=n}function vt(e,t){return e.line-t.line||e.ch-t.ch}function yr(e,t){return e.sticky==t.sticky&&vt(e,t)==0}function er(e){return Ye(e.line,e.ch)}function Ze(e,t){return vt(e,t)<0?t:e}function zr(e,t){return vt(e,t)<0?e:t}function nn(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function xt(e,t){if(t.line<e.first)return Ye(e.first,0);var n=e.first+e.size-1;return t.line>n?Ye(n,rt(e,n).text.length):hr(t,rt(e,t.line).text.length)}function hr(e,t){var n=e.ch;return n==null||n>t?Ye(e.line,t):n<0?Ye(e.line,0):e}function Kr(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=xt(e,t[r]);return n}var Xr=function(e,t){this.state=e,this.lookAhead=t},Ht=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};Ht.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Ht.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}},Ht.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ht.fromSaved=function(e,t,n){return t instanceof Xr?new Ht(e,rr(e.mode,t.state),n,t.lookAhead):new Ht(e,rr(e.mode,t),n)},Ht.prototype.save=function(e){var t=e!==!1?rr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Xr(t,this.maxLookAhead):t};function Vt(e,t,n,r){var c=[e.state.modeGen],I={};zt(e,t.text,e.doc.mode,n,function(ge,Ce){return c.push(ge,Ce)},I,r);for(var Q=n.state,ie=function(ge){n.baseTokens=c;var Ce=e.state.overlays[ge],Ae=1,je=0;n.state=!0,zt(e,t.text,Ce.mode,n,function(Pe,Xe){for(var Je=Ae;je<Pe;){var Qe=c[Ae];Qe>Pe&&c.splice(Ae,1,Pe,c[Ae+1],Qe),Ae+=2,je=Math.min(Pe,Qe)}if(!Xe)return;if(Ce.opaque)c.splice(Je,Ae-Je,Pe,"overlay "+Xe),Ae=Je+2;else for(;Je<Ae;Je+=2){var at=c[Je+1];c[Je+1]=(at?at+" ":"")+"overlay "+Xe}},I),n.state=Q,n.baseTokens=null,n.baseTokenPos=1},ce=0;ce<e.state.overlays.length;++ce)ie(ce);return{styles:c,classes:I.bgClass||I.textClass?I:null}}function lt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Be(e,Tt(t)),c=t.text.length>e.options.maxHighlightLength&&rr(e.doc.mode,r.state),I=Vt(e,t,r);c&&(r.state=c),t.stateAfter=r.save(!c),t.styles=I.styles,I.classes?t.styleClasses=I.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Be(e,t,n){var r=e.doc,c=e.display;if(!r.mode.startState)return new Ht(r,!0,t);var I=fn(e,t,n),Q=I>r.first&&rt(r,I-1).stateAfter,ie=Q?Ht.fromSaved(r,Q,I):new Ht(r,wr(r.mode),I);return r.iter(I,t,function(ce){st(e,ce.text,ie);var ge=ie.line;ce.stateAfter=ge==t-1||ge%5==0||ge>=c.viewFrom&&ge<c.viewTo?ie.save():null,ie.nextLine()}),n&&(r.modeFrontier=ie.line),ie}function st(e,t,n,r){var c=e.doc.mode,I=new Pt(t,e.options.tabSize,n);for(I.start=I.pos=r||0,t==""&&bt(c,n.state);!I.eol();)Ut(c,I,n.state),I.start=I.pos}function bt(e,t){if(e.blankLine)return e.blankLine(t);if(!e.innerMode)return;var n=Qt(e,t);if(n.mode.blankLine)return n.mode.blankLine(n.state)}function Ut(e,t,n,r){for(var c=0;c<10;c++){r&&(r[0]=Qt(e,n).mode);var I=e.token(t,n);if(t.pos>t.start)return I}throw new Error("Mode "+e.name+" failed to advance stream.")}var Or=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function pr(e,t,n,r){var c=e.doc,I=c.mode,Q;t=xt(c,t);var ie=rt(c,t.line),ce=Be(e,t.line,n),ge=new Pt(ie.text,e.options.tabSize,ce),Ce;for(r&&(Ce=[]);(r||ge.pos<t.ch)&&!ge.eol();)ge.start=ge.pos,Q=Ut(I,ge,ce.state),r&&Ce.push(new Or(ge,Q,rr(c.mode,ce.state)));return r?Ce:new Or(ge,Q,ce.state)}function $t(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";t[r]==null?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function zt(e,t,n,r,c,I,Q){var ie=n.flattenSpans;ie==null&&(ie=e.options.flattenSpans);var ce=0,ge=null,Ce=new Pt(t,e.options.tabSize,r),Ae,je=e.options.addModeClass&&[null];for(t==""&&$t(bt(n,r.state),I);!Ce.eol();){if(Ce.pos>e.options.maxHighlightLength?(ie=!1,Q&&st(e,t,r,Ce.pos),Ce.pos=t.length,Ae=null):Ae=$t(Ut(n,Ce,r.state,je),I),je){var Pe=je[0].name;Pe&&(Ae="m-"+(Ae?Pe+" "+Ae:Pe))}if(!ie||ge!=Ae){for(;ce<Ce.start;)ce=Math.min(Ce.start,ce+5e3),c(ce,ge);ge=Ae}Ce.start=Ce.pos}for(;ce<Ce.pos;){var Xe=Math.min(Ce.pos,ce+5e3);c(Xe,ge),ce=Xe}}function fn(e,t,n){for(var r,c,I=e.doc,Q=n?-1:t-(e.doc.mode.innerMode?1e3:100),ie=t;ie>Q;--ie){if(ie<=I.first)return I.first;var ce=rt(I,ie-1),ge=ce.stateAfter;if(ge&&(!n||ie+(ge instanceof Xr?ge.lookAhead:0)<=I.modeFrontier))return ie;var Ce=A(ce.text,null,e.options.tabSize);(c==null||r>Ce)&&(c=ie-1,r=Ce)}return c}function Ar(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontier<t-10)return;for(var n=e.first,r=t-1;r>n;r--){var c=rt(e,r).stateAfter;if(c&&(!(c instanceof Xr)||r+c.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}var Yr=!1,Dr=!1;function On(){Yr=!0}function na(){Dr=!0}function yn(e,t,n){this.marker=e,this.from=t,this.to=n}function en(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function aa(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function An(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function Qa(e,t,n){var r;if(e)for(var c=0;c<e.length;++c){var I=e[c],Q=I.marker,ie=I.from==null||(Q.inclusiveLeft?I.from<=t:I.from<t);if(ie||I.from==t&&Q.type=="bookmark"&&(!n||!I.marker.insertLeft)){var ce=I.to==null||(Q.inclusiveRight?I.to>=t:I.to>t);(r||(r=[])).push(new yn(Q,I.from,ce?null:I.to))}}return r}function Hn(e,t,n){var r;if(e)for(var c=0;c<e.length;++c){var I=e[c],Q=I.marker,ie=I.to==null||(Q.inclusiveRight?I.to>=t:I.to>t);if(ie||I.from==t&&Q.type=="bookmark"&&(!n||I.marker.insertLeft)){var ce=I.from==null||(Q.inclusiveLeft?I.from<=t:I.from<t);(r||(r=[])).push(new yn(Q,ce?null:I.from-t,I.to==null?null:I.to-t))}}return r}function an(e,t){if(t.full)return null;var n=Nr(e,t.from.line)&&rt(e,t.from.line).markedSpans,r=Nr(e,t.to.line)&&rt(e,t.to.line).markedSpans;if(!n&&!r)return null;var c=t.from.ch,I=t.to.ch,Q=vt(t.from,t.to)==0,ie=Qa(n,c,Q),ce=Hn(r,I,Q),ge=t.text.length==1,Ce=Y(t.text).length+(ge?c:0);if(ie)for(var Ae=0;Ae<ie.length;++Ae){var je=ie[Ae];if(je.to==null){var Pe=en(ce,je.marker);Pe?ge&&(je.to=Pe.to==null?null:Pe.to+Ce):je.to=c}}if(ce)for(var Xe=0;Xe<ce.length;++Xe){var Je=ce[Xe];if(Je.to!=null&&(Je.to+=Ce),Je.from==null){var Qe=en(ie,Je.marker);Qe||(Je.from=Ce,ge&&(ie||(ie=[])).push(Je))}else Je.from+=Ce,ge&&(ie||(ie=[])).push(Je)}ie&&(ie=kn(ie)),ce&&ce!=ie&&(ce=kn(ce));var at=[ie];if(!ge){var ct=t.text.length-2,it;if(ct>0&&ie)for(var ht=0;ht<ie.length;++ht)ie[ht].to==null&&(it||(it=[])).push(new yn(ie[ht].marker,null,null));for(var St=0;St<ct;++St)at.push(it);at.push(ce)}return at}function kn(e){for(var t=0;t<e.length;++t){var n=e[t];n.from!=null&&n.from==n.to&&n.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Dn(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(Pe){if(Pe.markedSpans)for(var Xe=0;Xe<Pe.markedSpans.length;++Xe){var Je=Pe.markedSpans[Xe].marker;Je.readOnly&&(!r||oe(r,Je)==-1)&&(r||(r=[])).push(Je)}}),!r)return null;for(var c=[{from:t,to:n}],I=0;I<r.length;++I)for(var Q=r[I],ie=Q.find(0),ce=0;ce<c.length;++ce){var ge=c[ce];if(vt(ge.to,ie.from)<0||vt(ge.from,ie.to)>0)continue;var Ce=[ce,1],Ae=vt(ge.from,ie.from),je=vt(ge.to,ie.to);(Ae<0||!Q.inclusiveLeft&&!Ae)&&Ce.push({from:ge.from,to:ie.from}),(je>0||!Q.inclusiveRight&&!je)&&Ce.push({from:ie.to,to:ge.to}),c.splice.apply(c,Ce),ce+=Ce.length-3}return c}function xn(e){var t=e.markedSpans;if(!t)return;for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}function zn(e,t){if(!t)return;for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}function wn(e){return e.inclusiveLeft?-1:0}function on(e){return e.inclusiveRight?1:0}function Kn(e,t){var n=e.lines.length-t.lines.length;if(n!=0)return n;var r=e.find(),c=t.find(),I=vt(r.from,c.from)||wn(e)-wn(t);if(I)return-I;var Q=vt(r.to,c.to)||on(e)-on(t);return Q||t.id-e.id}function hn(e,t){var n=Dr&&e.markedSpans,r;if(n)for(var c=void 0,I=0;I<n.length;++I)c=n[I],c.marker.collapsed&&(t?c.from:c.to)==null&&(!r||Kn(r,c.marker)<0)&&(r=c.marker);return r}function ia(e){return hn(e,!0)}function mt(e){return hn(e,!1)}function ut(e,t){var n=Dr&&e.markedSpans,r;if(n)for(var c=0;c<n.length;++c){var I=n[c];I.marker.collapsed&&(I.from==null||I.from<t)&&(I.to==null||I.to>t)&&(!r||Kn(r,I.marker)<0)&&(r=I.marker)}return r}function yt(e,t,n,r,c){var I=rt(e,t),Q=Dr&&I.markedSpans;if(Q)for(var ie=0;ie<Q.length;++ie){var ce=Q[ie];if(!ce.marker.collapsed)continue;var ge=ce.marker.find(0),Ce=vt(ge.from,n)||wn(ce.marker)-wn(c),Ae=vt(ge.to,r)||on(ce.marker)-on(c);if(Ce>=0&&Ae<=0||Ce<=0&&Ae>=0)continue;if(Ce<=0&&(ce.marker.inclusiveRight&&c.inclusiveLeft?vt(ge.to,n)>=0:vt(ge.to,n)>0)||Ce>=0&&(ce.marker.inclusiveRight&&c.inclusiveLeft?vt(ge.from,r)<=0:vt(ge.from,r)<0))return!0}}function dt(e){for(var t;t=ia(e);)e=t.find(-1,!0).line;return e}function Mt(e){for(var t;t=mt(e);)e=t.find(1,!0).line;return e}function Ge(e){for(var t,n;t=mt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function et(e,t){var n=rt(e,t),r=dt(n);return n==r?t:Tt(r)}function gt(e,t){if(t>e.lastLine())return t;var n=rt(e,t),r;if(!Ot(e,n))return t;for(;r=mt(n);)n=r.find(1,!0).line;return Tt(n)+1}function Ot(e,t){var n=Dr&&t.markedSpans;if(n)for(var r=void 0,c=0;c<n.length;++c){if(r=n[c],!r.marker.collapsed)continue;if(r.from==null)return!0;if(r.marker.widgetNode)continue;if(r.from==0&&r.marker.inclusiveLeft&&Nt(e,t,r))return!0}}function Nt(e,t,n){if(n.to==null){var r=n.marker.find(1,!0);return Nt(e,r.line,en(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var c=void 0,I=0;I<t.markedSpans.length;++I)if(c=t.markedSpans[I],c.marker.collapsed&&!c.marker.widgetNode&&c.from==n.to&&(c.to==null||c.to!=n.from)&&(c.marker.inclusiveLeft||n.marker.inclusiveRight)&&Nt(e,t,c))return!0}function Lt(e){e=dt(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var c=n.lines[r];if(c==e)break;t+=c.height}for(var I=n.parent;I;n=I,I=n.parent)for(var Q=0;Q<I.children.length;++Q){var ie=I.children[Q];if(ie==n)break;t+=ie.height}return t}function It(e){if(e.height==0)return 0;for(var t=e.text.length,n,r=e;n=ia(r);){var c=n.find(0,!0);r=c.from.line,t+=c.from.ch-c.to.ch}for(r=e;n=mt(r);){var I=n.find(0,!0);t-=r.text.length-I.from.ch,r=I.to.line,t+=r.text.length-I.to.ch}return t}function Kt(e){var t=e.display,n=e.doc;t.maxLine=rt(n,n.first),t.maxLineLength=It(t.maxLine),t.maxLineChanged=!0,n.iter(function(r){var c=It(r);c>t.maxLineLength&&(t.maxLineLength=c,t.maxLine=r)})}var Yt=function(e,t,n){this.text=e,zn(this,t),this.height=n?n(this):1};Yt.prototype.lineNo=function(){return Tt(this)},Ee(Yt);function ar(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),xn(e),zn(e,n);var c=r?r(e):1;c!=e.height&&Et(e,c)}function Zt(e){e.parent=null,xn(e)}var Jr={},ir={};function _r(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?ir:Jr;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Ir(e,t){var n=ae("span",null,null,i?"padding-right: .1px":null),r={pre:ae("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var c=0;c<=(t.rest?t.rest.length:0);c++){var I=c?t.rest[c-1]:t.line,Q=void 0;r.pos=0,r.addToken=Xn,nt(e.display.measure)&&(Q=Fe(I,e.doc.direction))&&(r.addToken=$r(r.addToken,Q)),r.map=[];var ie=t!=e.display.externalMeasured&&Tt(I);qa(I,r,lt(e,I,ie)),I.styleClasses&&(I.styleClasses.bgClass&&(r.bgClass=W(I.styleClasses.bgClass,r.bgClass||"")),I.styleClasses.textClass&&(r.textClass=W(I.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(tt(e.display.measure))),c==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(i){var ce=r.content.lastChild;(/\bcm-tab\b/.test(ce.className)||ce.querySelector&&ce.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Ue(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=W(r.pre.className,r.textClass||"")),r}function sn(e){var t=J("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Xn(e,t,n,r,c,I,Q){if(!t)return;var ie=e.splitSpaces?jt(t,e.trailingSpace):t,ce=e.cm.state.specialChars,ge=!1,Ce;if(!ce.test(t))e.col+=t.length,Ce=document.createTextNode(ie),e.map.push(e.pos,e.pos+t.length,Ce),f&&o<9&&(ge=!0),e.pos+=t.length;else{Ce=document.createDocumentFragment();for(var Ae=0;;){ce.lastIndex=Ae;var je=ce.exec(t),Pe=je?je.index-Ae:t.length-Ae;if(Pe){var Xe=document.createTextNode(ie.slice(Ae,Ae+Pe));f&&o<9?Ce.appendChild(J("span",[Xe])):Ce.appendChild(Xe),e.map.push(e.pos,e.pos+Pe,Xe),e.col+=Pe,e.pos+=Pe}if(!je)break;Ae+=Pe+1;var Je=void 0;if(je[0]==" "){var Qe=e.cm.options.tabSize,at=Qe-e.col%Qe;Je=Ce.appendChild(J("span",ne(at),"cm-tab")),Je.setAttribute("role","presentation"),Je.setAttribute("cm-text"," "),e.col+=at}else je[0]=="\r"||je[0]==`
`?(Je=Ce.appendChild(J("span",je[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Je.setAttribute("cm-text",je[0]),e.col+=1):(Je=e.cm.options.specialCharPlaceholder(je[0]),Je.setAttribute("cm-text",je[0]),f&&o<9?Ce.appendChild(J("span",[Je])):Ce.appendChild(Je),e.col+=1);e.map.push(e.pos,e.pos+1,Je),e.pos++}}if(e.trailingSpace=ie.charCodeAt(t.length-1)==32,n||r||c||ge||I||Q){var ct=n||"";r&&(ct+=r),c&&(ct+=c);var it=J("span",[Ce],ct,I);if(Q)for(var ht in Q)Q.hasOwnProperty(ht)&&ht!="style"&&ht!="class"&&it.setAttribute(ht,Q[ht]);return e.content.appendChild(it)}e.content.appendChild(Ce)}function jt(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",c=0;c<e.length;c++){var I=e.charAt(c);I==" "&&n&&(c==e.length-1||e.charCodeAt(c+1)==32)&&(I="\xA0"),r+=I,n=I==" "}return r}function $r(e,t){return function(n,r,c,I,Q,ie,ce){c=c?c+" cm-force-border":"cm-force-border";for(var ge=n.pos,Ce=ge+r.length;;){for(var Ae=void 0,je=0;je<t.length&&!(Ae=t[je],Ae.to>ge&&Ae.from<=ge);je++);if(Ae.to>=Ce)return e(n,r,c,I,Q,ie,ce);e(n,r.slice(0,Ae.to-ge),c,I,null,ie,ce),I=null,r=r.slice(Ae.to-ge),ge=Ae.to}}}function pn(e,t,n,r){var c=!r&&n.widgetNode;c&&e.map.push(e.pos,e.pos+t,c),!r&&e.cm.display.input.needsContentAttribute&&(c||(c=e.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",n.id)),c&&(e.cm.display.input.setUneditable(c),e.content.appendChild(c)),e.pos+=t,e.trailingSpace=!1}function qa(e,t,n){var r=e.markedSpans,c=e.text,I=0;if(!r){for(var Q=1;Q<n.length;Q+=2)t.addToken(t,c.slice(I,I=n[Q]),_r(n[Q+1],t.cm.options));return}for(var ie=c.length,ce=0,ge=1,Ce="",Ae,je,Pe=0,Xe,Je,Qe,at,ct;;){if(Pe==ce){Xe=Je=Qe=je="",ct=null,at=null,Pe=Infinity;for(var it=[],ht=void 0,St=0;St<r.length;++St){var wt=r[St],Dt=wt.marker;if(Dt.type=="bookmark"&&wt.from==ce&&Dt.widgetNode)it.push(Dt);else if(wt.from<=ce&&(wt.to==null||wt.to>ce||Dt.collapsed&&wt.to==ce&&wt.from==ce)){if(wt.to!=null&&wt.to!=ce&&Pe>wt.to&&(Pe=wt.to,Je=""),Dt.className&&(Xe+=" "+Dt.className),Dt.css&&(je=(je?je+";":"")+Dt.css),Dt.startStyle&&wt.from==ce&&(Qe+=" "+Dt.startStyle),Dt.endStyle&&wt.to==Pe&&(ht||(ht=[])).push(Dt.endStyle,wt.to),Dt.title&&((ct||(ct={})).title=Dt.title),Dt.attributes)for(var Jt in Dt.attributes)(ct||(ct={}))[Jt]=Dt.attributes[Jt];Dt.collapsed&&(!at||Kn(at.marker,Dt)<0)&&(at=wt)}else wt.from>ce&&Pe>wt.from&&(Pe=wt.from)}if(ht)for(var Cr=0;Cr<ht.length;Cr+=2)ht[Cr+1]==Pe&&(Je+=" "+ht[Cr]);if(!at||at.from==ce)for(var or=0;or<it.length;++or)pn(t,0,it[or]);if(at&&(at.from||0)==ce){if(pn(t,(at.to==null?ie+1:at.to)-ce,at.marker,at.from==null),at.to==null)return;at.to==ce&&(at=!1)}}if(ce>=ie)break;for(var Vr=Math.min(ie,Pe);;){if(Ce){var Br=ce+Ce.length;if(!at){var mr=Br>Vr?Ce.slice(0,Vr-ce):Ce;t.addToken(t,mr,Ae?Ae+Xe:Xe,Qe,ce+mr.length==Pe?Je:"",je,ct)}if(Br>=Vr){Ce=Ce.slice(Vr-ce),ce=Vr;break}ce=Br,Qe=""}Ce=c.slice(I,I=n[ge++]),Ae=_r(n[ge++],t.cm.options)}}}function oa(e,t,n){this.line=t,this.rest=Ge(t),this.size=this.rest?Tt(Y(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ot(e,t)}function Gn(e,t,n){for(var r=[],c,I=t;I<n;I=c){var Q=new oa(e.doc,rt(e.doc,I),I);c=I+Q.size,r.push(Q)}return r}var mn=null;function ln(e){mn?mn.ops.push(e):e.ownsGroup=mn={ops:[e],delayedCallbacks:[]}}function ei(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var c=e.ops[r];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(n<t.length)}function Ta(e,t){var n=e.ownsGroup;if(!n)return;try{ei(n)}finally{mn=null,t(n)}}var _n=null;function ur(e,t){var n=Ve(e,t);if(!n.length)return;var r=Array.prototype.slice.call(arguments,2),c;mn?c=mn.delayedCallbacks:_n?c=_n:(c=_n=[],setTimeout(Oa,0));for(var I=function(ie){c.push(function(){return n[ie].apply(null,r)})},Q=0;Q<n.length;++Q)I(Q)}function Oa(){var e=_n;_n=null;for(var t=0;t<e.length;++t)e[t]()}function Aa(e,t,n,r){for(var c=0;c<t.changes.length;c++){var I=t.changes[c];I=="text"?ti(e,t):I=="gutter"?tn(e,t,n,r):I=="class"?En(e,t):I=="widget"&&ri(e,t,r)}t.changes=null}function Rn(e){return e.node==e.text&&(e.node=J("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),f&&o<8&&(e.node.style.zIndex=2)),e.node}function Mn(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Rn(t);t.background=r.insertBefore(J("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function sa(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Ir(e,t)}function ti(e,t){var n=t.text.className,r=sa(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,En(e,t)):n&&(t.text.className=n)}function En(e,t){Mn(e,t),t.line.wrapClass?Rn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function tn(e,t,n,r){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 c=Rn(t);t.gutterBackground=J("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),c.insertBefore(t.gutterBackground,t.text)}var I=t.line.gutterMarkers;if(e.options.lineNumbers||I){var Q=Rn(t),ie=t.gutter=J("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(ie),Q.insertBefore(ie,t.text),t.line.gutterClass&&(ie.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!I||!I["CodeMirror-linenumbers"])&&(t.lineNumber=ie.appendChild(J("div",br(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),I)for(var ce=0;ce<e.display.gutterSpecs.length;++ce){var ge=e.display.gutterSpecs[ce].className,Ce=I.hasOwnProperty(ge)&&I[ge];Ce&&ie.appendChild(J("div",[Ce],"CodeMirror-gutter-elt","left: "+r.gutterLeft[ge]+"px; width: "+r.gutterWidth[ge]+"px"))}}}function ri(e,t,n){t.alignable&&(t.alignable=null);for(var r=X("CodeMirror-linewidget"),c=t.node.firstChild,I=void 0;c;c=I)I=c.nextSibling,r.test(c.className)&&t.node.removeChild(c);la(e,t,n)}function ni(e,t,n,r){var c=sa(e,t);return t.text=t.node=c.pre,c.bgClass&&(t.bgClass=c.bgClass),c.textClass&&(t.textClass=c.textClass),En(e,t),tn(e,t,n,r),la(e,t,r),t.node}function la(e,t,n){if(rn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)rn(e,t.rest[r],t,n,!1)}function rn(e,t,n,r,c){if(!t.widgets)return;for(var I=Rn(n),Q=0,ie=t.widgets;Q<ie.length;++Q){var ce=ie[Q],ge=J("div",[ce.node],"CodeMirror-linewidget"+(ce.className?" "+ce.className:""));ce.handleMouseEvents||ge.setAttribute("cm-ignore-events","true"),ai(ce,ge,n,r),e.display.input.setUneditable(ge),c&&ce.above?I.insertBefore(ge,n.gutter||n.text):I.appendChild(ge),ur(ce,"redraw")}}function ai(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var c=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(c-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=c+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Sn(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!G(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),U(t.display.measure,J("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Zr(e,t){for(var n=Ie(t);n!=e.wrapper;n=n.parentNode)if(!n||n.nodeType==1&&n.getAttribute("cm-ignore-events")=="true"||n.parentNode==e.sizer&&n!=e.mover)return!0}function ka(e){return e.lineSpace.offsetTop}function Pr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Nn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=U(e.measure,J("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return!isNaN(r.left)&&!isNaN(r.right)&&(e.cachedPaddingH=r),r}function gn(e){return de-e.display.nativeBarWidth}function Vn(e){return e.display.scroller.clientWidth-gn(e)-e.display.barWidth}function Ti(e){return e.display.scroller.clientHeight-gn(e)-e.display.barHeight}function Fs(e,t,n){var r=e.options.lineWrapping,c=r&&Vn(e);if(!t.measure.heights||r&&t.measure.width!=c){var I=t.measure.heights=[];if(r){t.measure.width=c;for(var Q=t.text.firstChild.getClientRects(),ie=0;ie<Q.length-1;ie++){var ce=Q[ie],ge=Q[ie+1];Math.abs(ce.bottom-ge.bottom)>2&&I.push((ce.bottom+ge.top)/2-n.top)}}I.push(n.bottom-n.top)}}function lo(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var c=0;c<e.rest.length;c++)if(Tt(e.rest[c])>n)return{map:e.measure.maps[c],cache:e.measure.caches[c],before:!0}}function Us(e,t){t=dt(t);var n=Tt(t),r=e.display.externalMeasured=new oa(e.doc,t,n);r.lineN=n;var c=r.built=Ir(e,r);return r.text=c.pre,U(e.display.lineMeasure,c.pre),r}function uo(e,t,n,r){return vn(e,ua(e,t),n,r)}function Oi(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[$n(e,t)];var n=e.display.externalMeasured;if(n&&t>=n.lineN&&t<n.lineN+n.size)return n}function ua(e,t){var n=Tt(t),r=Oi(e,n);r&&!r.text?r=null:r&&r.changes&&(Aa(e,r,n,Ni(e)),e.curOp.forceUpdate=!0),r||(r=Us(e,t));var c=lo(r,t,n);return{line:t,view:r,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function vn(e,t,n,r,c){t.before&&(n=-1);var I=n+(r||""),Q;return t.cache.hasOwnProperty(I)?Q=t.cache[I]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Fs(e,t.view,t.rect),t.hasHeights=!0),Q=Ws(e,t,n,r),Q.bogus||(t.cache[I]=Q)),{left:Q.left,right:Q.right,top:c?Q.rtop:Q.top,bottom:c?Q.rbottom:Q.bottom}}var co={left:0,right:0,top:0,bottom:0};function fo(e,t,n){for(var r,c,I,Q,ie,ce,ge=0;ge<e.length;ge+=3)if(ie=e[ge],ce=e[ge+1],t<ie?(c=0,I=1,Q="left"):t<ce?(c=t-ie,I=c+1):(ge==e.length-3||t==ce&&e[ge+3]>t)&&(I=ce-ie,c=I-1,t>=ce&&(Q="right")),c!=null){if(r=e[ge+2],ie==ce&&n==(r.insertLeft?"left":"right")&&(Q=n),n=="left"&&c==0)for(;ge&&e[ge-2]==e[ge-3]&&e[ge-1].insertLeft;)r=e[(ge-=3)+2],Q="left";if(n=="right"&&c==ce-ie)for(;ge<e.length-3&&e[ge+3]==e[ge+4]&&!e[ge+5].insertLeft;)r=e[(ge+=3)+2],Q="right";break}return{node:r,start:c,end:I,collapse:Q,coverStart:ie,coverEnd:ce}}function Bs(e,t){var n=co;if(t=="left")for(var r=0;r<e.length&&!((n=e[r]).left!=n.right);r++);else for(var c=e.length-1;c>=0&&!((n=e[c]).left!=n.right);c--);return n}function Ws(e,t,n,r){var c=fo(t.map,n,r),I=c.node,Q=c.start,ie=c.end,ce=c.collapse,ge;if(I.nodeType==3){for(var Ce=0;Ce<4;Ce++){for(;Q&&fe(t.line.text.charAt(c.coverStart+Q));)--Q;for(;c.coverStart+ie<c.coverEnd&&fe(t.line.text.charAt(c.coverStart+ie));)++ie;if(f&&o<9&&Q==0&&ie==c.coverEnd-c.coverStart?ge=I.parentNode.getBoundingClientRect():ge=Bs(se(I,Q,ie).getClientRects(),r),ge.left||ge.right||Q==0)break;ie=Q,Q=Q-1,ce="right"}f&&o<11&&(ge=Hs(e.display.measure,ge))}else{Q>0&&(ce=r="right");var Ae;e.options.lineWrapping&&(Ae=I.getClientRects()).length>1?ge=Ae[r=="right"?Ae.length-1:0]:ge=I.getBoundingClientRect()}if(f&&o<9&&!Q&&(!ge||!ge.left&&!ge.right)){var je=I.parentNode.getClientRects()[0];je?ge={left:je.left,right:je.left+da(e.display),top:je.top,bottom:je.bottom}:ge=co}for(var Pe=ge.top-t.rect.top,Xe=ge.bottom-t.rect.top,Je=(Pe+Xe)/2,Qe=t.view.measure.heights,at=0;at<Qe.length-1&&!(Je<Qe[at]);at++);var ct=at?Qe[at-1]:0,it=Qe[at],ht={left:(ce=="right"?ge.right:ge.left)-t.rect.left,right:(ce=="left"?ge.left:ge.right)-t.rect.left,top:ct,bottom:it};return!ge.left&&!ge.right&&(ht.bogus=!0),e.options.singleCursorHeightPerLine||(ht.rtop=Pe,ht.rbottom=Xe),ht}function Hs(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Gt(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function ho(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 po(e){e.display.externalMeasure=null,L(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)ho(e.display.view[t])}function Da(e){po(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function mo(){return l&&O?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function go(){return l&&O?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ai(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=Sn(e.widgets[n]));return t}function ii(e,t,n,r,c){if(!c){var I=Ai(t);n.top+=I,n.bottom+=I}if(r=="line")return n;r||(r="local");var Q=Lt(t);if(r=="local"?Q+=ka(e.display):Q-=e.display.viewOffset,r=="page"||r=="window"){var ie=e.display.lineSpace.getBoundingClientRect();Q+=ie.top+(r=="window"?0:go());var ce=ie.left+(r=="window"?0:mo());n.left+=ce,n.right+=ce}return n.top+=Q,n.bottom+=Q,n}function vo(e,t,n){if(n=="div")return t;var r=t.left,c=t.top;if(n=="page")r-=mo(),c-=go();else if(n=="local"||!n){var I=e.display.sizer.getBoundingClientRect();r+=I.left,c+=I.top}var Q=e.display.lineSpace.getBoundingClientRect();return{left:r-Q.left,top:c-Q.top}}function ki(e,t,n,r,c){return r||(r=rt(e.doc,t.line)),ii(e,r,uo(e,r,t.ch,c),n)}function un(e,t,n,r,c,I){r=r||rt(e.doc,t.line),c||(c=ua(e,r));function Q(Xe,Je){var Qe=vn(e,c,Xe,Je?"right":"left",I);return Je?Qe.left=Qe.right:Qe.right=Qe.left,ii(e,r,Qe,n)}var ie=Fe(r,e.doc.direction),ce=t.ch,ge=t.sticky;if(ce>=r.text.length?(ce=r.text.length,ge="before"):ce<=0&&(ce=0,ge="after"),!ie)return Q(ge=="before"?ce-1:ce,ge=="before");function Ce(Xe,Je,Qe){var at=ie[Je],ct=at.level==1;return Q(Qe?Xe-1:Xe,ct!=Qe)}var Ae=Le(ie,ce,ge),je=Ne,Pe=Ce(ce,Ae,ge=="before");return je!=null&&(Pe.other=Ce(ce,je,ge!="before")),Pe}function bo(e,t){var n=0;t=xt(e.doc,t),e.options.lineWrapping||(n=da(e.display)*t.ch);var r=rt(e.doc,t.line),c=Lt(r)+ka(e.display);return{left:n,right:n,top:c,bottom:c+r.height}}function Di(e,t,n,r,c){var I=Ye(e,t,n);return I.xRel=c,r&&(I.outside=r),I}function Ri(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Di(r.first,0,null,-1,-1);var c=qt(r,n),I=r.first+r.size-1;if(c>I)return Di(r.first+r.size-1,rt(r,I).text.length,null,1,1);t<0&&(t=0);for(var Q=rt(r,c);;){var ie=zs(e,Q,c,t,n),ce=ut(Q,ie.ch+(ie.xRel>0||ie.outside>0?1:0));if(!ce)return ie;var ge=ce.find(1);if(ge.line==c)return ge;Q=rt(r,c=ge.line)}}function yo(e,t,n,r){r-=Ai(t);var c=t.text.length,I=ke(function(Q){return vn(e,n,Q-1).bottom<=r},c,0);return c=ke(function(Q){return vn(e,n,Q).top>r},I,c),{begin:I,end:c}}function xo(e,t,n,r){n||(n=ua(e,t));var c=ii(e,t,vn(e,n,r),"line").top;return yo(e,t,n,c)}function Mi(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function zs(e,t,n,r,c){c-=Lt(t);var I=ua(e,t),Q=Ai(t),ie=0,ce=t.text.length,ge=!0,Ce=Fe(t,e.doc.direction);if(Ce){var Ae=(e.options.lineWrapping?Xs:Ks)(e,t,n,I,Ce,r,c);ge=Ae.level!=1,ie=ge?Ae.from:Ae.to-1,ce=ge?Ae.to:Ae.from-1}var je=null,Pe=null,Xe=ke(function(St){var wt=vn(e,I,St);return wt.top+=Q,wt.bottom+=Q,Mi(wt,r,c,!1)?(wt.top<=c&&wt.left<=r&&(je=St,Pe=wt),!0):!1},ie,ce),Je,Qe,at=!1;if(Pe){var ct=r-Pe.left<Pe.right-r,it=ct==ge;Xe=je+(it?0:1),Qe=it?"after":"before",Je=ct?Pe.left:Pe.right}else{!ge&&(Xe==ce||Xe==ie)&&Xe++,Qe=Xe==0?"after":Xe==t.text.length?"before":vn(e,I,Xe-(ge?1:0)).bottom+Q<=c==ge?"after":"before";var ht=un(e,Ye(n,Xe,Qe),"line",t,I);Je=ht.left,at=c<ht.top?-1:c>=ht.bottom?1:0}return Xe=we(t.text,Xe,1),Di(n,Xe,Qe,at,r-Je)}function Ks(e,t,n,r,c,I,Q){var ie=ke(function(Ae){var je=c[Ae],Pe=je.level!=1;return Mi(un(e,Ye(n,Pe?je.to:je.from,Pe?"before":"after"),"line",t,r),I,Q,!0)},0,c.length-1),ce=c[ie];if(ie>0){var ge=ce.level!=1,Ce=un(e,Ye(n,ge?ce.from:ce.to,ge?"after":"before"),"line",t,r);Mi(Ce,I,Q,!0)&&Ce.top>Q&&(ce=c[ie-1])}return ce}function Xs(e,t,n,r,c,I,Q){var ie=yo(e,t,r,Q),ce=ie.begin,ge=ie.end;/\s/.test(t.text.charAt(ge-1))&&ge--;for(var Ce=null,Ae=null,je=0;je<c.length;je++){var Pe=c[je];if(Pe.from>=ge||Pe.to<=ce)continue;var Xe=Pe.level!=1,Je=vn(e,r,Xe?Math.min(ge,Pe.to)-1:Math.max(ce,Pe.from)).right,Qe=Je<I?I-Je+1e9:Je-I;(!Ce||Ae>Qe)&&(Ce=Pe,Ae=Qe)}return Ce||(Ce=c[c.length-1]),Ce.from<ce&&(Ce={from:ce,to:Ce.to,level:Ce.level}),Ce.to>ge&&(Ce={from:Ce.from,to:ge,level:Ce.level}),Ce}var Yn;function ca(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Yn==null){Yn=J("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Yn.appendChild(document.createTextNode("x")),Yn.appendChild(J("br"));Yn.appendChild(document.createTextNode("x"))}U(e.measure,Yn);var n=Yn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),L(e.measure),n||1}function da(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=J("span","xxxxxxxxxx"),n=J("pre",[t],"CodeMirror-line-like");U(e.measure,n);var r=t.getBoundingClientRect(),c=(r.right-r.left)/10;return c>2&&(e.cachedCharWidth=c),c||10}function Ni(e){for(var t=e.display,n={},r={},c=t.gutters.clientLeft,I=t.gutters.firstChild,Q=0;I;I=I.nextSibling,++Q){var ie=e.display.gutterSpecs[Q].className;n[ie]=I.offsetLeft+I.clientLeft+c,r[ie]=I.clientWidth}return{fixedPos:Ii(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Ii(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function wo(e){var t=ca(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/da(e.display)-3);return function(c){if(Ot(e.doc,c))return 0;var I=0;if(c.widgets)for(var Q=0;Q<c.widgets.length;Q++)c.widgets[Q].height&&(I+=c.widgets[Q].height);return n?I+(Math.ceil(c.text.length/r)||1)*t:I+t}}function Pi(e){var t=e.doc,n=wo(e);t.iter(function(r){var c=n(r);c!=r.height&&Et(r,c)})}function Jn(e,t,n,r){var c=e.display;if(!n&&Ie(t).getAttribute("cm-not-content")=="true")return null;var I,Q,ie=c.lineSpace.getBoundingClientRect();try{I=t.clientX-ie.left,Q=t.clientY-ie.top}catch(Ae){return null}var ce=Ri(e,I,Q),ge;if(r&&ce.xRel>0&&(ge=rt(e.doc,ce.line).text).length==ce.ch){var Ce=A(ge,ge.length,e.options.tabSize)-ge.length;ce=Ye(ce.line,Math.max(0,Math.round((I-Nn(e.display).left)/da(e.display))-Ce))}return ce}function $n(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if(t-=n[r].size,t<0)return r}function Fr(e,t,n,r){t==null&&(t=e.doc.first),n==null&&(n=e.doc.first+e.doc.size),r||(r=0);var c=e.display;if(r&&n<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>t)&&(c.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=c.viewTo)Dr&&et(e.doc,t)<c.viewTo&&Pn(e);else if(n<=c.viewFrom)Dr&&gt(e.doc,n+r)>c.viewFrom?Pn(e):(c.viewFrom+=r,c.viewTo+=r);else if(t<=c.viewFrom&&n>=c.viewTo)Pn(e);else if(t<=c.viewFrom){var I=oi(e,n,n+r,1);I?(c.view=c.view.slice(I.index),c.viewFrom=I.lineN,c.viewTo+=r):Pn(e)}else if(n>=c.viewTo){var Q=oi(e,t,t,-1);Q?(c.view=c.view.slice(0,Q.index),c.viewTo=Q.lineN):Pn(e)}else{var ie=oi(e,t,t,-1),ce=oi(e,n,n+r,1);ie&&ce?(c.view=c.view.slice(0,ie.index).concat(Gn(e,ie.lineN,ce.lineN)).concat(c.view.slice(ce.index)),c.viewTo+=r):Pn(e)}var ge=c.externalMeasured;ge&&(n<ge.lineN?ge.lineN+=r:t<ge.lineN+ge.size&&(c.externalMeasured=null))}function In(e,t,n){e.curOp.viewChanged=!0;var r=e.display,c=e.display.externalMeasured;if(c&&t>=c.lineN&&t<c.lineN+c.size&&(r.externalMeasured=null),t<r.viewFrom||t>=r.viewTo)return;var I=r.view[$n(e,t)];if(I.node==null)return;var Q=I.changes||(I.changes=[]);oe(Q,n)==-1&&Q.push(n)}function Pn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function oi(e,t,n,r){var c=$n(e,t),I,Q=e.display.view;if(!Dr||n==e.doc.first+e.doc.size)return{index:c,lineN:n};for(var ie=e.display.viewFrom,ce=0;ce<c;ce++)ie+=Q[ce].size;if(ie!=t){if(r>0){if(c==Q.length-1)return null;I=ie+Q[c].size-t,c++}else I=ie-t;t+=I,n+=I}for(;et(e.doc,n)!=n;){if(c==(r<0?0:Q.length-1))return null;n+=r*Q[c-(r<0?1:0)].size,c+=r}return{index:c,lineN:n}}function Gs(e,t,n){var r=e.display,c=r.view;c.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=Gn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Gn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice($n(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(Gn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,$n(e,n)))),r.viewTo=n}function _o(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var c=t[r];!c.hidden&&(!c.node||c.changes)&&++n}return n}function Ra(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Eo(e,t){t===void 0&&(t=!0);for(var n=e.doc,r={},c=r.cursors=document.createDocumentFragment(),I=r.selection=document.createDocumentFragment(),Q=0;Q<n.sel.ranges.length;Q++){if(!t&&Q==n.sel.primIndex)continue;var ie=n.sel.ranges[Q];if(ie.from().line>=e.display.viewTo||ie.to().line<e.display.viewFrom)continue;var ce=ie.empty();(ce||e.options.showCursorWhenSelecting)&&So(e,ie.head,c),ce||Vs(e,ie,I)}return r}function So(e,t,n){var r=un(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),c=n.appendChild(J("div","\xA0","CodeMirror-cursor"));if(c.style.left=r.left+"px",c.style.top=r.top+"px",c.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var I=n.appendChild(J("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));I.style.display="",I.style.left=r.other.left+"px",I.style.top=r.other.top+"px",I.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function si(e,t){return e.top-t.top||e.left-t.left}function Vs(e,t,n){var r=e.display,c=e.doc,I=document.createDocumentFragment(),Q=Nn(e.display),ie=Q.left,ce=Math.max(r.sizerWidth,Vn(e)-r.sizer.offsetLeft)-Q.right,ge=c.direction=="ltr";function Ce(it,ht,St,wt){ht<0&&(ht=0),ht=Math.round(ht),wt=Math.round(wt),I.appendChild(J("div",null,"CodeMirror-selected","position: absolute; left: "+it+`px;
top: `+ht+"px; width: "+(St==null?ce-it:St)+`px;
height: `+(wt-ht)+"px"))}function Ae(it,ht,St){var wt=rt(c,it),Dt=wt.text.length,Jt,Cr;function or(mr,Wr){return ki(e,Ye(it,mr),"div",wt,Wr)}function Vr(mr,Wr,kr){var xr=xo(e,wt,null,mr),gr=Wr=="ltr"==(kr=="after")?"left":"right",lr=kr=="after"?xr.begin:xr.end-(/\s/.test(wt.text.charAt(xr.end-1))?2:1);return or(lr,gr)[gr]}var Br=Fe(wt,c.direction);return Me(Br,ht||0,St==null?Dt:St,function(mr,Wr,kr,xr){var gr=kr=="ltr",lr=or(mr,gr?"left":"right"),Hr=or(Wr-1,gr?"right":"left"),Sa=ht==null&&mr==0,Wn=St==null&&Wr==Dt,Mr=xr==0,bn=!Br||xr==Br.length-1;if(Hr.top-lr.top<=3){var Tr=(ge?Sa:Wn)&&Mr,oo=(ge?Wn:Sa)&&bn,Tn=Tr?ie:(gr?lr:Hr).left,ta=oo?ce:(gr?Hr:lr).right;Ce(Tn,lr.top,ta-Tn,lr.bottom)}else{var ra,jr,Ca,so;gr?(ra=ge&&Sa&&Mr?ie:lr.left,jr=ge?ce:Vr(mr,kr,"before"),Ca=ge?ie:Vr(Wr,kr,"after"),so=ge&&Wn&&bn?ce:Hr.right):(ra=ge?Vr(mr,kr,"before"):ie,jr=!ge&&Sa&&Mr?ce:lr.right,Ca=!ge&&Wn&&bn?ie:Hr.left,so=ge?Vr(Wr,kr,"after"):ce),Ce(ra,lr.top,jr-ra,lr.bottom),lr.bottom<Hr.top&&Ce(ie,lr.bottom,null,Hr.top),Ce(Ca,Hr.top,so-Ca,Hr.bottom)}(!Jt||si(lr,Jt)<0)&&(Jt=lr),si(Hr,Jt)<0&&(Jt=Hr),(!Cr||si(lr,Cr)<0)&&(Cr=lr),si(Hr,Cr)<0&&(Cr=Hr)}),{start:Jt,end:Cr}}var je=t.from(),Pe=t.to();if(je.line==Pe.line)Ae(je.line,je.ch,Pe.ch);else{var Xe=rt(c,je.line),Je=rt(c,Pe.line),Qe=dt(Xe)==dt(Je),at=Ae(je.line,je.ch,Qe?Xe.text.length+1:null).end,ct=Ae(Pe.line,Qe?0:null,Pe.ch).start;Qe&&(at.top<ct.top-2?(Ce(at.right,at.top,null,at.bottom),Ce(ie,ct.top,ct.left,ct.bottom)):Ce(at.right,at.top,ct.left-at.right,at.bottom)),at.bottom<ct.top&&Ce(ie,at.bottom,null,ct.top)}n.appendChild(I)}function Li(e){if(!e.state.focused)return;var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||fa(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function Co(e){e.state.focused||(e.display.input.focus(),ji(e))}function To(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,fa(e))},100)}function ji(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(Ue(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(),i&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Li(e)}function fa(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(Ue(e,"blur",e,t),e.state.focused=!1,D(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function li(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var c=t.view[r],I=e.options.lineWrapping,Q=void 0,ie=0;if(c.hidden)continue;if(f&&o<8){var ce=c.node.offsetTop+c.node.offsetHeight;Q=ce-n,n=ce}else{var ge=c.node.getBoundingClientRect();Q=ge.bottom-ge.top,!I&&c.text.firstChild&&(ie=c.text.firstChild.getBoundingClientRect().right-ge.left-1)}var Ce=c.line.height-Q;if((Ce>.005||Ce<-.005)&&(Et(c.line,Q),Oo(c.line),c.rest))for(var Ae=0;Ae<c.rest.length;Ae++)Oo(c.rest[Ae]);if(ie>e.display.sizerWidth){var je=Math.ceil(ie/da(e.display));je>e.display.maxLineLength&&(e.display.maxLineLength=je,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}function Oo(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ui(e,t,n){var r=n&&n.top!=null?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-ka(e));var c=n&&n.bottom!=null?n.bottom:r+e.wrapper.clientHeight,I=qt(t,r),Q=qt(t,c);if(n&&n.ensure){var ie=n.ensure.from.line,ce=n.ensure.to.line;ie<I?(I=ie,Q=qt(t,Lt(rt(t,ie))+e.wrapper.clientHeight)):Math.min(ce,t.lastLine())>=Q&&(I=qt(t,Lt(rt(t,ce))-e.wrapper.clientHeight),Q=ce)}return{from:I,to:Math.max(Q,I+1)}}function Ys(e,t){if(Ke(e,"scrollCursorIntoView"))return;var n=e.display,r=n.sizer.getBoundingClientRect(),c=null;if(t.top+r.top<0?c=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(c=!1),c!=null&&!E){var I=J("div","\u200B",null,`position: absolute;
top: `+(t.top-n.viewOffset-ka(e.display))+`px;
height: `+(t.bottom-t.top+gn(e)+n.barHeight)+`px;
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(I),I.scrollIntoView(c),e.display.lineSpace.removeChild(I)}}function Js(e,t,n,r){r==null&&(r=0);var c;!e.options.lineWrapping&&t==n&&(t=t.ch?Ye(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,n=t.sticky=="before"?Ye(t.line,t.ch+1,"before"):t);for(var I=0;I<5;I++){var Q=!1,ie=un(e,t),ce=!n||n==t?ie:un(e,n);c={left:Math.min(ie.left,ce.left),top:Math.min(ie.top,ce.top)-r,right:Math.max(ie.left,ce.left),bottom:Math.max(ie.bottom,ce.bottom)+r};var ge=Fi(e,c),Ce=e.doc.scrollTop,Ae=e.doc.scrollLeft;if(ge.scrollTop!=null&&(Na(e,ge.scrollTop),Math.abs(e.doc.scrollTop-Ce)>1&&(Q=!0)),ge.scrollLeft!=null&&(Zn(e,ge.scrollLeft),Math.abs(e.doc.scrollLeft-Ae)>1&&(Q=!0)),!Q)break}return c}function $s(e,t){var n=Fi(e,t);n.scrollTop!=null&&Na(e,n.scrollTop),n.scrollLeft!=null&&Zn(e,n.scrollLeft)}function Fi(e,t){var n=e.display,r=ca(e.display);t.top<0&&(t.top=0);var c=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,I=Ti(e),Q={};t.bottom-t.top>I&&(t.bottom=t.top+I);var ie=e.doc.height+Pr(n),ce=t.top<r,ge=t.bottom>ie-r;if(t.top<c)Q.scrollTop=ce?0:t.top;else if(t.bottom>c+I){var Ce=Math.min(t.top,(ge?ie:t.bottom)-I);Ce!=c&&(Q.scrollTop=Ce)}var Ae=e.options.fixedGutter?0:n.gutters.offsetWidth,je=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-Ae,Pe=Vn(e)-n.gutters.offsetWidth,Xe=t.right-t.left>Pe;return Xe&&(t.right=t.left+Pe),t.left<10?Q.scrollLeft=0:t.left<je?Q.scrollLeft=Math.max(0,t.left+Ae-(Xe?0:10)):t.right>Pe+je-3&&(Q.scrollLeft=t.right+(Xe?0:10)-Pe),Q}function Ui(e,t){if(t==null)return;ci(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function ha(e){ci(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ma(e,t,n){(t!=null||n!=null)&&ci(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function Zs(e,t){ci(e),e.curOp.scrollToPos=t}function ci(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=bo(e,t.from),r=bo(e,t.to);Ao(e,n,r,t.margin)}}function Ao(e,t,n,r){var c=Fi(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Ma(e,c.scrollLeft,c.scrollTop)}function Na(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;T||Wi(e,{top:t}),ko(e,t,!0),T&&Wi(e),La(e,100)}function ko(e,t,n){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!n)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function Zn(e,t,n,r){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)return;e.doc.scrollLeft=t,Io(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function Ia(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Pr(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?n:0,docHeight:r,scrollHeight:r+gn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Qn=function(e,t,n){this.cm=n;var r=this.vert=J("div",[J("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=J("div",[J("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=c.tabIndex=-1,e(r),e(c),Oe(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Oe(c,"scroll",function(){c.clientWidth&&t(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,f&&o<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Qn.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var c=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+c)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var I=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+I)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Qn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Qn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Qn.prototype.zeroWidthHack=function(){var e=M&&!g?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ee,this.disableVert=new ee},Qn.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto";function r(){var c=e.getBoundingClientRect(),I=n=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);I!=e?e.style.pointerEvents="none":t.set(1e3,r)}t.set(1e3,r)},Qn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Pa=function(){};Pa.prototype.update=function(){return{bottom:0,right:0}},Pa.prototype.setScrollLeft=function(){},Pa.prototype.setScrollTop=function(){},Pa.prototype.clear=function(){};function pa(e,t){t||(t=Ia(e));var n=e.display.barWidth,r=e.display.barHeight;Do(e,t);for(var c=0;c<4&&n!=e.display.barWidth||r!=e.display.barHeight;c++)n!=e.display.barWidth&&e.options.lineWrapping&&li(e),Do(e,Ia(e)),n=e.display.barWidth,r=e.display.barHeight}function Do(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}var Ro={native:Qn,null:Pa};function Mo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&D(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ro[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Oe(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){n=="horizontal"?Zn(e,t):Na(e,t)},e),e.display.scrollbars.addClass&&q(e.display.wrapper,e.display.scrollbars.addClass)}var Qs=0;function qn(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},ln(e.curOp)}function ea(e){var t=e.curOp;t&&Ta(t,function(n){for(var r=0;r<n.ops.length;r++)n.ops[r].cm.curOp=null;el(n)})}function el(e){for(var t=e.ops,n=0;n<t.length;n++)tl(t[n]);for(var r=0;r<t.length;r++)rl(t[r]);for(var c=0;c<t.length;c++)nl(t[c]);for(var I=0;I<t.length;I++)al(t[I]);for(var Q=0;Q<t.length;Q++)il(t[Q])}function tl(e){var t=e.cm,n=t.display;sl(t),e.updateMaxLine&&Kt(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new di(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function rl(e){e.updatedDisplay=e.mustUpdate&&Bi(e.cm,e.update)}function nl(e){var t=e.cm,n=t.display;e.updatedDisplay&&li(t),e.barMeasure=Ia(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=uo(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+gn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Vn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function al(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Zn(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==he();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&pa(t,e.barMeasure),e.updatedDisplay&&zi(t,e.barMeasure),e.selectionChanged&&Li(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Co(e.cm)}function il(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&No(t,e.update),n.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(n.wheelStartX=n.wheelStartY=null),e.scrollTop!=null&&ko(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Zn(t,e.scrollLeft,!0,!0),e.scrollToPos){var c=Js(t,xt(r,e.scrollToPos.from),xt(r,e.scrollToPos.to),e.scrollToPos.margin);Ys(t,c)}var I=e.maybeHiddenMarkers,Q=e.maybeUnhiddenMarkers;if(I)for(var ie=0;ie<I.length;++ie)I[ie].lines.length||Ue(I[ie],"hide");if(Q)for(var ce=0;ce<Q.length;++ce)Q[ce].lines.length&&Ue(Q[ce],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ue(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Gr(e,t){if(e.curOp)return t();qn(e);try{return t()}finally{ea(e)}}function Er(e,t){return function(){if(e.curOp)return t.apply(e,arguments);qn(e);try{return t.apply(e,arguments)}finally{ea(e)}}}function Lr(e){return function(){if(this.curOp)return e.apply(this,arguments);qn(this);try{return e.apply(this,arguments)}finally{ea(this)}}}function Sr(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);qn(t);try{return e.apply(this,arguments)}finally{ea(t)}}}function La(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,R(ol,e))}function ol(e){var t=e.doc;if(t.highlightFrontier>=e.display.viewTo)return;var n=+new Date+e.options.workTime,r=Be(e,t.highlightFrontier),c=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(I){if(r.line>=e.display.viewFrom){var Q=I.styles,ie=I.text.length>e.options.maxHighlightLength?rr(t.mode,r.state):null,ce=Vt(e,I,r,!0);ie&&(r.state=ie),I.styles=ce.styles;var ge=I.styleClasses,Ce=ce.classes;Ce?I.styleClasses=Ce:ge&&(I.styleClasses=null);for(var Ae=!Q||Q.length!=I.styles.length||ge!=Ce&&(!ge||!Ce||ge.bgClass!=Ce.bgClass||ge.textClass!=Ce.textClass),je=0;!Ae&&je<Q.length;++je)Ae=Q[je]!=I.styles[je];Ae&&c.push(r.line),I.stateAfter=r.save(),r.nextLine()}else I.text.length<=e.options.maxHighlightLength&&st(e,I.text,r),I.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return La(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),c.length&&Gr(e,function(){for(var I=0;I<c.length;I++)In(e,c[I],"text")})}var di=function(e,t,n){var r=e.display;this.viewport=t,this.visible=ui(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Vn(e),this.force=n,this.dims=Ni(e),this.events=[]};di.prototype.signal=function(e,t){Te(e,t)&&this.events.push(arguments)},di.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ue.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=gn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=gn(e)+"px",t.scrollbarsClipped=!0)}function ll(e){if(e.hasFocus())return null;var t=he();if(!t||!G(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&G(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function ul(e){if(!e||!e.activeElt||e.activeElt==he())return;if(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&G(document.body,e.anchorNode)&&G(document.body,e.focusNode)){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function Bi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Pn(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&_o(e)==0)return!1;Po(e)&&(Pn(e),t.dims=Ni(e));var c=r.first+r.size,I=Math.max(t.visible.from-e.options.viewportMargin,r.first),Q=Math.min(c,t.visible.to+e.options.viewportMargin);n.viewFrom<I&&I-n.viewFrom<20&&(I=Math.max(r.first,n.viewFrom)),n.viewTo>Q&&n.viewTo-Q<20&&(Q=Math.min(c,n.viewTo)),Dr&&(I=et(e.doc,I),Q=gt(e.doc,Q));var ie=I!=n.viewFrom||Q!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Gs(e,I,Q),n.viewOffset=Lt(rt(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var ce=_o(e);if(!ie&&ce==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var ge=ll(e);return ce>4&&(n.lineDiv.style.display="none"),cl(e,n.updateLineNumbers,t.dims),ce>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,ul(ge),L(n.cursorDiv),L(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,ie&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,La(e,400)),n.updateLineNumbers=null,!0}function No(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==Vn(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+Pr(e.display)-Ti(e),n.top)}),t.visible=ui(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=ui(e.display,e.doc,n));if(!Bi(e,t))break;li(e);var c=Ia(e);Ra(e),pa(e,c),zi(e,c),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 Wi(e,t){var n=new di(e,t);if(Bi(e,n)){li(e),No(e,n);var r=Ia(e);Ra(e),pa(e,r),zi(e,r),n.finish()}}function cl(e,t,n){var r=e.display,c=e.options.lineNumbers,I=r.lineDiv,Q=I.firstChild;function ie(Xe){var Je=Xe.nextSibling;return i&&M&&e.display.currentWheelTarget==Xe?Xe.style.display="none":Xe.parentNode.removeChild(Xe),Je}for(var ce=r.view,ge=r.viewFrom,Ce=0;Ce<ce.length;Ce++){var Ae=ce[Ce];if(!Ae.hidden)if(!Ae.node||Ae.node.parentNode!=I){var je=ni(e,Ae,ge,n);I.insertBefore(je,Q)}else{for(;Q!=Ae.node;)Q=ie(Q);var Pe=c&&t!=null&&t<=ge&&Ae.lineNumber;Ae.changes&&(oe(Ae.changes,"gutter")>-1&&(Pe=!1),Aa(e,Ae,ge,n)),Pe&&(L(Ae.lineNumber),Ae.lineNumber.appendChild(document.createTextNode(br(e.options,ge)))),Q=Ae.node.nextSibling}ge+=Ae.size}for(;Q;)Q=ie(Q)}function Hi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function zi(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+gn(e)+"px"}function Io(e){var t=e.display,n=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var r=Ii(t)-t.scroller.scrollLeft+e.doc.scrollLeft,c=t.gutters.offsetWidth,I=r+"px",Q=0;Q<n.length;Q++)if(!n[Q].hidden){e.options.fixedGutter&&(n[Q].gutter&&(n[Q].gutter.style.left=I),n[Q].gutterBackground&&(n[Q].gutterBackground.style.left=I));var ie=n[Q].alignable;if(ie)for(var ce=0;ce<ie.length;ce++)ie[ce].style.left=I}e.options.fixedGutter&&(t.gutters.style.left=r+c+"px")}function Po(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=br(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var c=r.measure.appendChild(J("div",[J("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),I=c.firstChild.offsetWidth,Q=c.offsetWidth-I;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(I,r.lineGutter.offsetWidth-Q)+1,r.lineNumWidth=r.lineNumInnerWidth+Q,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Hi(e.display),!0}return!1}function Ki(e,t){for(var n=[],r=!1,c=0;c<e.length;c++){var I=e[c],Q=null;if(typeof I!="string"&&(Q=I.style,I=I.className),I=="CodeMirror-linenumbers")if(t)r=!0;else continue;n.push({className:I,style:Q})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Lo(e){var t=e.gutters,n=e.gutterSpecs;L(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var c=n[r],I=c.className,Q=c.style,ie=t.appendChild(J("div",null,"CodeMirror-gutter "+I));Q&&(ie.style.cssText=Q),I=="CodeMirror-linenumbers"&&(e.lineGutter=ie,ie.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Hi(e)}function ja(e){Lo(e.display),Fr(e),Io(e)}function dl(e,t,n,r){var c=this;this.input=n,c.scrollbarFiller=J("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=J("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=ae("div",null,"CodeMirror-code"),c.selectionDiv=J("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=J("div",null,"CodeMirror-cursors"),c.measure=J("div",null,"CodeMirror-measure"),c.lineMeasure=J("div",null,"CodeMirror-measure"),c.lineSpace=ae("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var I=ae("div",[c.lineSpace],"CodeMirror-lines");c.mover=J("div",[I],null,"position: relative"),c.sizer=J("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=J("div",null,null,"position: absolute; height: "+de+"px; width: 1px;"),c.gutters=J("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=J("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=J("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),f&&o<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!i&&!(T&&C)&&(c.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(c.wrapper):e(c.wrapper)),c.viewFrom=c.viewTo=t.first,c.reportedViewFrom=c.reportedViewTo=t.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=Ki(r.gutters,r.lineNumbers),Lo(c),n.init(c)}var fi=0,Qr=null;f?Qr=-.53:T?Qr=15:l?Qr=-.7:m&&(Qr=-1/3);function jo(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),n==null&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:n==null&&(n=e.wheelDelta),{x:t,y:n}}function fl(e){var t=jo(e);return t.x*=Qr,t.y*=Qr,t}function Fo(e,t){var n=jo(t),r=n.x,c=n.y,I=e.display,Q=I.scroller,ie=Q.scrollWidth>Q.clientWidth,ce=Q.scrollHeight>Q.clientHeight;if(!(r&&ie||c&&ce))return;if(c&&M&&i){e:for(var ge=t.target,Ce=I.view;ge!=Q;ge=ge.parentNode)for(var Ae=0;Ae<Ce.length;Ae++)if(Ce[Ae].node==ge){e.display.currentWheelTarget=ge;break e}}if(r&&!T&&!v&&Qr!=null){c&&ce&&Na(e,Math.max(0,Q.scrollTop+c*Qr)),Zn(e,Math.max(0,Q.scrollLeft+r*Qr)),(!c||c&&ce)&&ve(t),I.wheelStartX=null;return}if(c&&Qr!=null){var je=c*Qr,Pe=e.doc.scrollTop,Xe=Pe+I.wrapper.clientHeight;je<0?Pe=Math.max(0,Pe+je-50):Xe=Math.min(e.doc.height,Xe+je+50),Wi(e,{top:Pe,bottom:Xe})}fi<20&&(I.wheelStartX==null?(I.wheelStartX=Q.scrollLeft,I.wheelStartY=Q.scrollTop,I.wheelDX=r,I.wheelDY=c,setTimeout(function(){if(I.wheelStartX==null)return;var Je=Q.scrollLeft-I.wheelStartX,Qe=Q.scrollTop-I.wheelStartY,at=Qe&&I.wheelDY&&Qe/I.wheelDY||Je&&I.wheelDX&&Je/I.wheelDX;if(I.wheelStartX=I.wheelStartY=null,!at)return;Qr=(Qr*fi+at)/(fi+1),++fi},200)):(I.wheelDX+=r,I.wheelDY+=c))}var qr=function(e,t){this.ranges=e,this.primIndex=t};qr.prototype.primary=function(){return this.ranges[this.primIndex]},qr.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 n=this.ranges[t],r=e.ranges[t];if(!yr(n.anchor,r.anchor)||!yr(n.head,r.head))return!1}return!0},qr.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Bt(er(this.ranges[t].anchor),er(this.ranges[t].head));return new qr(e,this.primIndex)},qr.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},qr.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(vt(t,r.from())>=0&&vt(e,r.to())<=0)return n}return-1};var Bt=function(e,t){this.anchor=e,this.head=t};Bt.prototype.from=function(){return zr(this.anchor,this.head)},Bt.prototype.to=function(){return Ze(this.anchor,this.head)},Bt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function cn(e,t,n){var r=e&&e.options.selectionsMayTouch,c=t[n];t.sort(function(je,Pe){return vt(je.from(),Pe.from())}),n=oe(t,c);for(var I=1;I<t.length;I++){var Q=t[I],ie=t[I-1],ce=vt(ie.to(),Q.from());if(r&&!Q.empty()?ce>0:ce>=0){var ge=zr(ie.from(),Q.from()),Ce=Ze(ie.to(),Q.to()),Ae=ie.empty()?Q.from()==Q.head:ie.from()==ie.head;I<=n&&--n,t.splice(--I,2,new Bt(Ae?Ce:ge,Ae?ge:Ce))}}return new qr(t,n)}function Ln(e,t){return new qr([new Bt(e,t||e)],0)}function jn(e){return e.text?Ye(e.from.line+e.text.length-1,Y(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Uo(e,t){if(vt(e,t.from)<0)return e;if(vt(e,t.to)<=0)return jn(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=jn(t).ch-t.to.ch),Ye(n,r)}function Xi(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var c=e.sel.ranges[r];n.push(new Bt(Uo(c.anchor,t),Uo(c.head,t)))}return cn(e.cm,n,e.sel.primIndex)}function Bo(e,t,n){return e.line==t.line?Ye(n.line,e.ch-t.ch+n.ch):Ye(n.line+(e.line-t.line),e.ch)}function hl(e,t,n){for(var r=[],c=Ye(e.first,0),I=c,Q=0;Q<t.length;Q++){var ie=t[Q],ce=Bo(ie.from,c,I),ge=Bo(jn(ie),c,I);if(c=ie.to,I=ge,n=="around"){var Ce=e.sel.ranges[Q],Ae=vt(Ce.head,Ce.anchor)<0;r[Q]=new Bt(Ae?ge:ce,Ae?ce:ge)}else r[Q]=new Bt(ce,ce)}return new qr(r,e.sel.primIndex)}function Gi(e){e.doc.mode=fr(e.options,e.doc.modeOption),Fa(e)}function Fa(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,La(e,100),e.state.modeGen++,e.curOp&&Fr(e)}function Wo(e,t){return t.from.ch==0&&t.to.ch==0&&Y(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Vi(e,t,n,r){function c(ct){return n?n[ct]:null}function I(ct,it,ht){ar(ct,it,ht,r),ur(ct,"change",ct,t)}function Q(ct,it){for(var ht=[],St=ct;St<it;++St)ht.push(new Yt(ge[St],c(St),r));return ht}var ie=t.from,ce=t.to,ge=t.text,Ce=rt(e,ie.line),Ae=rt(e,ce.line),je=Y(ge),Pe=c(ge.length-1),Xe=ce.line-ie.line;if(t.full)e.insert(0,Q(0,ge.length)),e.remove(ge.length,e.size-ge.length);else if(Wo(e,t)){var Je=Q(0,ge.length-1);I(Ae,Ae.text,Pe),Xe&&e.remove(ie.line,Xe),Je.length&&e.insert(ie.line,Je)}else if(Ce==Ae)if(ge.length==1)I(Ce,Ce.text.slice(0,ie.ch)+je+Ce.text.slice(ce.ch),Pe);else{var Qe=Q(1,ge.length-1);Qe.push(new Yt(je+Ce.text.slice(ce.ch),Pe,r)),I(Ce,Ce.text.slice(0,ie.ch)+ge[0],c(0)),e.insert(ie.line+1,Qe)}else if(ge.length==1)I(Ce,Ce.text.slice(0,ie.ch)+ge[0]+Ae.text.slice(ce.ch),c(0)),e.remove(ie.line+1,Xe);else{I(Ce,Ce.text.slice(0,ie.ch)+ge[0],c(0)),I(Ae,je+Ae.text.slice(ce.ch),Pe);var at=Q(1,ge.length-1);Xe>1&&e.remove(ie.line+1,Xe-1),e.insert(ie.line+1,at)}ur(e,"change",e,t)}function Fn(e,t,n){function r(c,I,Q){if(c.linked)for(var ie=0;ie<c.linked.length;++ie){var ce=c.linked[ie];if(ce.doc==I)continue;var ge=Q&&ce.sharedHist;if(n&&!ge)continue;t(ce.doc,ge),r(ce.doc,c,ge)}}r(e,null,!0)}function Ho(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Pi(e),Gi(e),zo(e),e.options.lineWrapping||Kt(e),e.options.mode=t.modeOption,Fr(e)}function zo(e){(e.doc.direction=="rtl"?q:D)(e.display.lineDiv,"CodeMirror-rtl")}function pl(e){Gr(e,function(){zo(e),Fr(e)})}function hi(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 Yi(e,t){var n={from:er(t.from),to:jn(t),text:kt(e,t.from,t.to)};return Go(e,n,t.from.line,t.to.line+1),Fn(e,function(r){return Go(r,n,t.from.line,t.to.line+1)},!0),n}function Ko(e){for(;e.length;){var t=Y(e);if(t.ranges)e.pop();else break}}function ml(e,t){if(t)return Ko(e.done),Y(e.done);if(e.done.length&&!Y(e.done).ranges)return Y(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Y(e.done)}function Xo(e,t,n,r){var c=e.history;c.undone.length=0;var I=+new Date,Q,ie;if((c.lastOp==r||c.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&c.lastModTime>I-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(Q=ml(c,c.lastOp==r)))ie=Y(Q.changes),vt(t.from,t.to)==0&&vt(t.from,ie.to)==0?ie.to=jn(t):Q.changes.push(Yi(e,t));else{var ce=Y(c.done);for((!ce||!ce.ranges)&&pi(e.sel,c.done),Q={changes:[Yi(e,t)],generation:c.generation},c.done.push(Q);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(n),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=I,c.lastOp=c.lastSelOp=r,c.lastOrigin=c.lastSelOrigin=t.origin,ie||Ue(e,"historyAdded")}function gl(e,t,n,r){var c=t.charAt(0);return c=="*"||c=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function vl(e,t,n,r){var c=e.history,I=r&&r.origin;n==c.lastSelOp||I&&c.lastSelOrigin==I&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==I||gl(e,I,Y(c.done),t))?c.done[c.done.length-1]=t:pi(t,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=I,c.lastSelOp=n,r&&r.clearRedo!==!1&&Ko(c.undone)}function pi(e,t){var n=Y(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Go(e,t,n,r){var c=t["spans_"+e.id],I=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(Q){Q.markedSpans&&((c||(c=t["spans_"+e.id]={}))[I]=Q.markedSpans),++I})}function bl(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function yl(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],c=0;c<t.text.length;++c)r.push(bl(n[c]));return r}function Vo(e,t){var n=yl(e,t),r=an(e,t);if(!n)return r;if(!r)return n;for(var c=0;c<n.length;++c){var I=n[c],Q=r[c];if(I&&Q){e:for(var ie=0;ie<Q.length;++ie){for(var ce=Q[ie],ge=0;ge<I.length;++ge)if(I[ge].marker==ce.marker)continue e;I.push(ce)}}else Q&&(n[c]=Q)}return n}function ma(e,t,n){for(var r=[],c=0;c<e.length;++c){var I=e[c];if(I.ranges){r.push(n?qr.prototype.deepCopy.call(I):I);continue}var Q=I.changes,ie=[];r.push({changes:ie});for(var ce=0;ce<Q.length;++ce){var ge=Q[ce],Ce=void 0;if(ie.push({from:ge.from,to:ge.to,text:ge.text}),t)for(var Ae in ge)(Ce=Ae.match(/^spans_(\d+)$/))&&(oe(t,Number(Ce[1]))>-1&&(Y(ie)[Ae]=ge[Ae],delete ge[Ae]))}}return r}function Ji(e,t,n,r){if(r){var c=e.anchor;if(n){var I=vt(t,c)<0;I!=vt(n,c)<0?(c=t,t=n):I!=vt(t,n)<0&&(t=n)}return new Bt(c,t)}else return new Bt(n||t,t)}function mi(e,t,n,r,c){c==null&&(c=e.cm&&(e.cm.display.shift||e.extend)),Rr(e,new qr([Ji(e.sel.primary(),t,n,c)],0),r)}function Yo(e,t,n){for(var r=[],c=e.cm&&(e.cm.display.shift||e.extend),I=0;I<e.sel.ranges.length;I++)r[I]=Ji(e.sel.ranges[I],t[I],null,c);var Q=cn(e.cm,r,e.sel.primIndex);Rr(e,Q,n)}function $i(e,t,n,r){var c=e.sel.ranges.slice(0);c[t]=n,Rr(e,cn(e.cm,c,e.sel.primIndex),r)}function Jo(e,t,n,r){Rr(e,Ln(t,n),r)}function xl(e,t,n){var r={ranges:t.ranges,update:function(c){this.ranges=[];for(var I=0;I<c.length;I++)this.ranges[I]=new Bt(xt(e,c[I].anchor),xt(e,c[I].head))},origin:n&&n.origin};return Ue(e,"beforeSelectionChange",e,r),e.cm&&Ue(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?cn(e.cm,r.ranges,r.ranges.length-1):t}function $o(e,t,n){var r=e.history.done,c=Y(r);c&&c.ranges?(r[r.length-1]=t,gi(e,t,n)):Rr(e,t,n)}function Rr(e,t,n){gi(e,t,n),vl(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function gi(e,t,n){(Te(e,"beforeSelectionChange")||e.cm&&Te(e.cm,"beforeSelectionChange"))&&(t=xl(e,t,n));var r=n&&n.bias||(vt(t.primary().head,e.sel.primary().head)<0?-1:1);Zo(e,qo(e,t,r,!0)),!(n&&n.scroll===!1)&&e.cm&&ha(e.cm)}function Zo(e,t){if(t.equals(e.sel))return;e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Re(e.cm)),ur(e,"cursorActivity",e)}function Qo(e){Zo(e,qo(e,e.sel,null,!1))}function qo(e,t,n,r){for(var c,I=0;I<t.ranges.length;I++){var Q=t.ranges[I],ie=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[I],ce=vi(e,Q.anchor,ie&&ie.anchor,n,r),ge=vi(e,Q.head,ie&&ie.head,n,r);(c||ce!=Q.anchor||ge!=Q.head)&&(c||(c=t.ranges.slice(0,I)),c[I]=new Bt(ce,ge))}return c?cn(e.cm,c,t.primIndex):t}function ga(e,t,n,r,c){var I=rt(e,t.line);if(I.markedSpans)for(var Q=0;Q<I.markedSpans.length;++Q){var ie=I.markedSpans[Q],ce=ie.marker,ge="selectLeft"in ce?!ce.selectLeft:ce.inclusiveLeft,Ce="selectRight"in ce?!ce.selectRight:ce.inclusiveRight;if((ie.from==null||(ge?ie.from<=t.ch:ie.from<t.ch))&&(ie.to==null||(Ce?ie.to>=t.ch:ie.to>t.ch))){if(c&&(Ue(ce,"beforeCursorEnter"),ce.explicitlyCleared))if(I.markedSpans){--Q;continue}else break;if(!ce.atomic)continue;if(n){var Ae=ce.find(r<0?1:-1),je=void 0;if((r<0?Ce:ge)&&(Ae=es(e,Ae,-r,Ae&&Ae.line==t.line?I:null)),Ae&&Ae.line==t.line&&(je=vt(Ae,n))&&(r<0?je<0:je>0))return ga(e,Ae,t,r,c)}var Pe=ce.find(r<0?-1:1);return(r<0?ge:Ce)&&(Pe=es(e,Pe,r,Pe.line==t.line?I:null)),Pe?ga(e,Pe,t,r,c):null}}return t}function vi(e,t,n,r,c){var I=r||1,Q=ga(e,t,n,I,c)||!c&&ga(e,t,n,I,!0)||ga(e,t,n,-I,c)||!c&&ga(e,t,n,-I,!0);return Q||(e.cantEdit=!0,Ye(e.first,0))}function es(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?xt(e,Ye(t.line-1)):null:n>0&&t.ch==(r||rt(e,t.line)).text.length?t.line<e.first+e.size-1?Ye(t.line+1,0):null:new Ye(t.line,t.ch+n)}function ts(e){e.setSelection(Ye(e.firstLine(),0),Ye(e.lastLine()),xe)}function rs(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(c,I,Q,ie){c&&(r.from=xt(e,c)),I&&(r.to=xt(e,I)),Q&&(r.text=Q),ie!==void 0&&(r.origin=ie)}),Ue(e,"beforeChange",e,r),e.cm&&Ue(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function va(e,t,n){if(e.cm){if(!e.cm.curOp)return Er(e.cm,va)(e,t,n);if(e.cm.state.suppressEdits)return}if((Te(e,"beforeChange")||e.cm&&Te(e.cm,"beforeChange"))&&(t=rs(e,t,!0),!t))return;var r=Yr&&!n&&Dn(e,t.from,t.to);if(r)for(var c=r.length-1;c>=0;--c)ns(e,{from:r[c].from,to:r[c].to,text:c?[""]:t.text,origin:t.origin});else ns(e,t)}function ns(e,t){if(t.text.length==1&&t.text[0]==""&&vt(t.from,t.to)==0)return;var n=Xi(e,t);Xo(e,t,n,e.cm?e.cm.curOp.id:NaN),Ua(e,t,n,an(e,t));var r=[];Fn(e,function(c,I){!I&&oe(r,c.history)==-1&&(ss(c.history,t),r.push(c.history)),Ua(c,t,null,an(c,t))})}function bi(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(r&&!n)return;for(var c=e.history,I,Q=e.sel,ie=t=="undo"?c.done:c.undone,ce=t=="undo"?c.undone:c.done,ge=0;ge<ie.length&&!(I=ie[ge],n?I.ranges&&!I.equals(e.sel):!I.ranges);ge++);if(ge==ie.length)return;for(c.lastOrigin=c.lastSelOrigin=null;;)if(I=ie.pop(),I.ranges){if(pi(I,ce),n&&!I.equals(e.sel)){Rr(e,I,{clearRedo:!1});return}Q=I}else if(r){ie.push(I);return}else break;var Ce=[];pi(Q,ce),ce.push({changes:Ce,generation:c.generation}),c.generation=I.generation||++c.maxGeneration;for(var Ae=Te(e,"beforeChange")||e.cm&&Te(e.cm,"beforeChange"),je=function(Je){var Qe=I.changes[Je];if(Qe.origin=t,Ae&&!rs(e,Qe,!1))return ie.length=0,{};Ce.push(Yi(e,Qe));var at=Je?Xi(e,Qe):Y(ie);Ua(e,Qe,at,Vo(e,Qe)),!Je&&e.cm&&e.cm.scrollIntoView({from:Qe.from,to:jn(Qe)});var ct=[];Fn(e,function(it,ht){!ht&&oe(ct,it.history)==-1&&(ss(it.history,Qe),ct.push(it.history)),Ua(it,Qe,null,Vo(it,Qe))})},Pe=I.changes.length-1;Pe>=0;--Pe){var Xe=je(Pe);if(Xe)return Xe.v}}function as(e,t){if(t==0)return;if(e.first+=t,e.sel=new qr(re(e.sel.ranges,function(c){return new Bt(Ye(c.anchor.line+t,c.anchor.ch),Ye(c.head.line+t,c.head.ch))}),e.sel.primIndex),e.cm){Fr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)In(e.cm,r,"gutter")}}function Ua(e,t,n,r){if(e.cm&&!e.cm.curOp)return Er(e.cm,Ua)(e,t,n,r);if(t.to.line<e.first){as(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 c=t.text.length-1-(e.first-t.from.line);as(e,c),t={from:Ye(e.first,0),to:Ye(t.to.line+c,t.to.ch),text:[Y(t.text)],origin:t.origin}}var I=e.lastLine();t.to.line>I&&(t={from:t.from,to:Ye(I,rt(e,I).text.length),text:[t.text[0]],origin:t.origin}),t.removed=kt(e,t.from,t.to),n||(n=Xi(e,t)),e.cm?wl(e.cm,t,r):Vi(e,t,r),gi(e,n,xe),e.cantEdit&&vi(e,Ye(e.firstLine(),0))&&(e.cantEdit=!1)}function wl(e,t,n){var r=e.doc,c=e.display,I=t.from,Q=t.to,ie=!1,ce=I.line;e.options.lineWrapping||(ce=Tt(dt(rt(r,I.line))),r.iter(ce,Q.line+1,function(Pe){if(Pe==c.maxLine)return ie=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Re(e),Vi(r,t,n,wo(e)),e.options.lineWrapping||(r.iter(ce,I.line+t.text.length,function(Pe){var Xe=It(Pe);Xe>c.maxLineLength&&(c.maxLine=Pe,c.maxLineLength=Xe,c.maxLineChanged=!0,ie=!1)}),ie&&(e.curOp.updateMaxLine=!0)),Ar(r,I.line),La(e,400);var ge=t.text.length-(Q.line-I.line)-1;t.full?Fr(e):I.line==Q.line&&t.text.length==1&&!Wo(e.doc,t)?In(e,I.line,"text"):Fr(e,I.line,Q.line+1,ge);var Ce=Te(e,"changes"),Ae=Te(e,"change");if(Ae||Ce){var je={from:I,to:Q,text:t.text,removed:t.removed,origin:t.origin};Ae&&ur(e,"change",e,je),Ce&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(je)}e.display.selForContextMenu=null}function ba(e,t,n,r,c){var I;r||(r=n),vt(r,n)<0&&(I=[r,n],n=I[0],r=I[1]),typeof t=="string"&&(t=e.splitLines(t)),va(e,{from:n,to:r,text:t,origin:c})}function is(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function os(e,t,n,r){for(var c=0;c<e.length;++c){var I=e[c],Q=!0;if(I.ranges){I.copied||(I=e[c]=I.deepCopy(),I.copied=!0);for(var ie=0;ie<I.ranges.length;ie++)is(I.ranges[ie].anchor,t,n,r),is(I.ranges[ie].head,t,n,r);continue}for(var ce=0;ce<I.changes.length;++ce){var ge=I.changes[ce];if(n<ge.from.line)ge.from=Ye(ge.from.line+r,ge.from.ch),ge.to=Ye(ge.to.line+r,ge.to.ch);else if(t<=ge.to.line){Q=!1;break}}Q||(e.splice(0,c+1),c=0)}}function ss(e,t){var n=t.from.line,r=t.to.line,c=t.text.length-(r-n)-1;os(e.done,n,r,c),os(e.undone,n,r,c)}function Ba(e,t,n,r){var c=t,I=t;return typeof t=="number"?I=rt(e,nn(e,t)):c=Tt(t),c==null?null:(r(I,c)&&e.cm&&In(e.cm,c,n),I)}function Wa(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}Wa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var c=this.lines[n];this.height-=c.height,Zt(c),ur(c,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}};function Ha(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var c=e[r];t+=c.chunkSize(),n+=c.height,c.parent=this}this.size=t,this.height=n,this.parent=null}Ha.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],c=r.chunkSize();if(e<c){var I=Math.min(t,c-e),Q=r.height;if(r.removeInner(e,I),this.height-=Q-r.height,c==I&&(this.children.splice(n--,1),r.parent=null),(t-=I)==0)break;e=0}else e-=c}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Wa))){var ie=[];this.collapse(ie),this.children=[new Wa(ie)],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,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var c=this.children[r],I=c.chunkSize();if(e<=I){if(c.insertInner(e,t,n),c.lines&&c.lines.length>50){for(var Q=c.lines.length%25+25,ie=Q;ie<c.lines.length;){var ce=new Wa(c.lines.slice(ie,ie+=25));c.height-=ce.height,this.children.splice(++r,0,ce),ce.parent=this}c.lines=c.lines.slice(0,Q),this.maybeSpill()}break}e-=I}},maybeSpill:function(){if(this.children.length<=10)return;var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new Ha(t);if(e.parent){e.size-=n.size,e.height-=n.height;var c=oe(e.parent.children,e);e.parent.children.splice(c+1,0,n)}else{var r=new Ha(e.children);r.parent=e,e.children=[r,n],e=r}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var c=this.children[r],I=c.chunkSize();if(e<I){var Q=Math.min(t,I-e);if(c.iterN(e,Q,n))return!0;if((t-=Q)==0)break;e=0}else e-=I}}};var za=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};za.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=Tt(n);if(r==null||!t)return;for(var c=0;c<t.length;++c)t[c]==this&&t.splice(c--,1);t.length||(n.widgets=null);var I=Sn(this);Et(n,Math.max(0,n.height-I)),e&&(Gr(e,function(){ls(e,n,-I),In(e,r,"widget")}),ur(e,"lineWidgetCleared",e,this,r))},za.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var c=Sn(this)-t;if(!c)return;Ot(this.doc,r)||Et(r,r.height+c),n&&Gr(n,function(){n.curOp.forceUpdate=!0,ls(n,r,c),ur(n,"lineWidgetChanged",n,e,Tt(r))})},Ee(za);function ls(e,t,n){Lt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Ui(e,n)}function _l(e,t,n,r){var c=new za(e,n,r),I=e.cm;return I&&c.noHScroll&&(I.display.alignWidgets=!0),Ba(e,t,"widget",function(Q){var ie=Q.widgets||(Q.widgets=[]);if(c.insertAt==null?ie.push(c):ie.splice(Math.min(ie.length-1,Math.max(0,c.insertAt)),0,c),c.line=Q,I&&!Ot(e,Q)){var ce=Lt(Q)<e.scrollTop;Et(Q,Q.height+Sn(c)),ce&&Ui(I,c.height),I.curOp.forceUpdate=!0}return!0}),I&&ur(I,"lineWidgetAdded",I,c,typeof t=="number"?t:Tt(t)),c}var us=0,Un=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++us};Un.prototype.clear=function(){if(this.explicitlyCleared)return;var e=this.doc.cm,t=e&&!e.curOp;if(t&&qn(e),Te(this,"clear")){var n=this.find();n&&ur(this,"clear",n.from,n.to)}for(var r=null,c=null,I=0;I<this.lines.length;++I){var Q=this.lines[I],ie=en(Q.markedSpans,this);e&&!this.collapsed?In(e,Tt(Q),"text"):e&&(ie.to!=null&&(c=Tt(Q)),ie.from!=null&&(r=Tt(Q))),Q.markedSpans=aa(Q.markedSpans,ie),ie.from==null&&this.collapsed&&!Ot(this.doc,Q)&&e&&Et(Q,ca(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var ce=0;ce<this.lines.length;++ce){var ge=dt(this.lines[ce]),Ce=It(ge);Ce>e.display.maxLineLength&&(e.display.maxLine=ge,e.display.maxLineLength=Ce,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&Fr(e,r,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Qo(e.doc)),e&&ur(e,"markerCleared",e,this,r,c),t&&ea(e),this.parent&&this.parent.clear()},Un.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var n,r,c=0;c<this.lines.length;++c){var I=this.lines[c],Q=en(I.markedSpans,this);if(Q.from!=null&&(n=Ye(t?I:Tt(I),Q.from),e==-1))return n;if(Q.to!=null&&(r=Ye(t?I:Tt(I),Q.to),e==1))return r}return n&&{from:n,to:r}},Un.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;if(!t||!r)return;Gr(r,function(){var c=t.line,I=Tt(t.line),Q=Oi(r,I);if(Q&&(ho(Q),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Ot(n.doc,c)&&n.height!=null){var ie=n.height;n.height=null;var ce=Sn(n)-ie;ce&&Et(c,c.height+ce)}ur(r,"markerChanged",r,e)})},Un.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||oe(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Un.prototype.detachLine=function(e){if(this.lines.splice(oe(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ee(Un);function ya(e,t,n,r,c){if(r&&r.shared)return El(e,t,n,r,c);if(e.cm&&!e.cm.curOp)return Er(e.cm,ya)(e,t,n,r,c);var I=new Un(e,c),Q=vt(t,n);if(r&&y(r,I,!1),Q>0||Q==0&&I.clearWhenEmpty!==!1)return I;if(I.replacedWith&&(I.collapsed=!0,I.widgetNode=ae("span",[I.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||I.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(I.widgetNode.insertLeft=!0)),I.collapsed){if(yt(e,t.line,t,n,I)||t.line!=n.line&&yt(e,n.line,t,n,I))throw new Error("Inserting collapsed marker partially overlapping an existing one");na()}I.addToHistory&&Xo(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var ie=t.line,ce=e.cm,ge;if(e.iter(ie,n.line+1,function(Ae){ce&&I.collapsed&&!ce.options.lineWrapping&&dt(Ae)==ce.display.maxLine&&(ge=!0),I.collapsed&&ie!=t.line&&Et(Ae,0),An(Ae,new yn(I,ie==t.line?t.ch:null,ie==n.line?n.ch:null)),++ie}),I.collapsed&&e.iter(t.line,n.line+1,function(Ae){Ot(e,Ae)&&Et(Ae,0)}),I.clearOnEnter&&Oe(I,"beforeCursorEnter",function(){return I.clear()}),I.readOnly&&(On(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),I.collapsed&&(I.id=++us,I.atomic=!0),ce){if(ge&&(ce.curOp.updateMaxLine=!0),I.collapsed)Fr(ce,t.line,n.line+1);else if(I.className||I.startStyle||I.endStyle||I.css||I.attributes||I.title)for(var Ce=t.line;Ce<=n.line;Ce++)In(ce,Ce,"text");I.atomic&&Qo(ce.doc),ur(ce,"markerAdded",ce,I)}return I}var Ka=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};Ka.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ur(this,"clear")},Ka.prototype.find=function(e,t){return this.primary.find(e,t)},Ee(Ka);function El(e,t,n,r,c){r=y(r),r.shared=!1;var I=[ya(e,t,n,r,c)],Q=I[0],ie=r.widgetNode;return Fn(e,function(ce){ie&&(r.widgetNode=ie.cloneNode(!0)),I.push(ya(ce,xt(ce,t),xt(ce,n),r,c));for(var ge=0;ge<ce.linked.length;++ge)if(ce.linked[ge].isParent)return;Q=Y(I)}),new Ka(I,Q)}function cs(e){return e.findMarks(Ye(e.first,0),e.clipPos(Ye(e.lastLine())),function(t){return t.parent})}function Sl(e,t){for(var n=0;n<t.length;n++){var r=t[n],c=r.find(),I=e.clipPos(c.from),Q=e.clipPos(c.to);if(vt(I,Q)){var ie=ya(e,I,Q,r.primary,r.primary.type);r.markers.push(ie),ie.parent=r}}}function Cl(e){for(var t=function(r){var c=e[r],I=[c.primary.doc];Fn(c.primary.doc,function(ce){return I.push(ce)});for(var Q=0;Q<c.markers.length;Q++){var ie=c.markers[Q];oe(I,ie.doc)==-1&&(ie.parent=null,c.markers.splice(Q--,1))}},n=0;n<e.length;n++)t(n)}var Tl=0,Ur=function(e,t,n,r,c){if(!(this instanceof Ur))return new Ur(e,t,n,r,c);n==null&&(n=0),Ha.call(this,[new Wa([new Yt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var I=Ye(n,0);this.sel=Ln(I),this.history=new hi(null),this.id=++Tl,this.modeOption=t,this.lineSep=r,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Vi(this,{from:I,to:I,text:e}),Rr(this,Ln(I),xe)};Ur.prototype=pe(Ha.prototype,{constructor:Ur,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=nr(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:Sr(function(e){var t=Ye(this.first,0),n=this.first+this.size-1;va(this,{from:t,to:Ye(n,rt(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Ma(this.cm,0,0),Rr(this,Ln(t),xe)}),replaceRange:function(e,t,n,r){t=xt(this,t),n=n?xt(this,n):t,ba(this,e,t,n,r)},getRange:function(e,t,n){var r=kt(this,xt(this,e),xt(this,t));return n===!1?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Nr(this,e))return rt(this,e)},getLineNumber:function(e){return Tt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=rt(this,e)),dt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return xt(this,e)},getCursor:function(e){var t=this.sel.primary(),n;return e==null||e=="head"?n=t.head:e=="anchor"?n=t.anchor:e=="end"||e=="to"||e===!1?n=t.to():n=t.from(),n},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Sr(function(e,t,n){Jo(this,xt(this,typeof e=="number"?Ye(e,t||0):e),null,n)}),setSelection:Sr(function(e,t,n){Jo(this,xt(this,e),xt(this,t||e),n)}),extendSelection:Sr(function(e,t,n){mi(this,xt(this,e),t&&xt(this,t),n)}),extendSelections:Sr(function(e,t){Yo(this,Kr(this,e),t)}),extendSelectionsBy:Sr(function(e,t){var n=re(this.sel.ranges,e);Yo(this,Kr(this,n),t)}),setSelections:Sr(function(e,t,n){if(!e.length)return;for(var r=[],c=0;c<e.length;c++)r[c]=new Bt(xt(this,e[c].anchor),xt(this,e[c].head));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Rr(this,cn(this.cm,r,t),n)}),addSelection:Sr(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new Bt(xt(this,e),xt(this,t||e))),Rr(this,cn(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t=this.sel.ranges,n,r=0;r<t.length;r++){var c=kt(this,t[r].from(),t[r].to());n=n?n.concat(c):c}return e===!1?n:n.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var c=kt(this,n[r].from(),n[r].to());e!==!1&&(c=c.join(e||this.lineSeparator())),t[r]=c}return t},replaceSelection:function(e,t,n){for(var r=[],c=0;c<this.sel.ranges.length;c++)r[c]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Sr(function(e,t,n){for(var r=[],c=this.sel,I=0;I<c.ranges.length;I++){var Q=c.ranges[I];r[I]={from:Q.from(),to:Q.to(),text:this.splitLines(e[I]),origin:n}}for(var ie=t&&t!="end"&&hl(this,r,t),ce=r.length-1;ce>=0;ce--)va(this,r[ce]);ie?$o(this,ie):this.cm&&ha(this.cm)}),undo:Sr(function(){bi(this,"undo")}),redo:Sr(function(){bi(this,"redo")}),undoSelection:Sr(function(){bi(this,"undo",!0)}),redoSelection:Sr(function(){bi(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var c=0;c<e.undone.length;c++)e.undone[c].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new hi(this.history.maxGeneration),Fn(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:ma(this.history.done),undone:ma(this.history.undone)}},setHistory:function(e){var t=this.history=new hi(this.history.maxGeneration);t.done=ma(e.done.slice(0),null,!0),t.undone=ma(e.undone.slice(0),null,!0)},setGutterMarker:Sr(function(e,t,n){return Ba(this,e,"gutter",function(r){var c=r.gutterMarkers||(r.gutterMarkers={});return c[t]=n,!n&&B(c)&&(r.gutterMarkers=null),!0})}),clearGutter:Sr(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&Ba(t,n,"gutter",function(){return n.gutterMarkers[e]=null,B(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Nr(this,e))return null;if(t=e,e=rt(this,e),!e)return null}else if(t=Tt(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:Sr(function(e,t,n){return Ba(this,e,t=="gutter"?"gutter":"class",function(r){var c=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!r[c])r[c]=n;else{if(X(n).test(r[c]))return!1;r[c]+=" "+n}return!0})}),removeLineClass:Sr(function(e,t,n){return Ba(this,e,t=="gutter"?"gutter":"class",function(r){var c=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",I=r[c];if(I)if(n==null)r[c]=null;else{var Q=I.match(X(n));if(!Q)return!1;var ie=Q.index+Q[0].length;r[c]=I.slice(0,Q.index)+(!Q.index||ie==I.length?"":" ")+I.slice(ie)||null}else return!1;return!0})}),addLineWidget:Sr(function(e,t,n){return _l(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ya(this,xt(this,e),xt(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=xt(this,e),ya(this,e,e,n,"bookmark")},findMarksAt:function(e){e=xt(this,e);var t=[],n=rt(this,e.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var c=n[r];(c.from==null||c.from<=e.ch)&&(c.to==null||c.to>=e.ch)&&t.push(c.marker.parent||c.marker)}return t},findMarks:function(e,t,n){e=xt(this,e),t=xt(this,t);var r=[],c=e.line;return this.iter(e.line,t.line+1,function(I){var Q=I.markedSpans;if(Q)for(var ie=0;ie<Q.length;ie++){var ce=Q[ie];!(ce.to!=null&&c==e.line&&e.ch>=ce.to||ce.from==null&&c!=e.line||ce.from!=null&&c==t.line&&ce.from>=t.ch)&&(!n||n(ce.marker))&&r.push(ce.marker.parent||ce.marker)}++c}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)n[r].from!=null&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(c){var I=c.text.length+r;if(I>e)return t=e,!0;e-=I,++n}),xt(this,Ye(n,t))},indexFromPos:function(e){e=xt(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(r){t+=r.text.length+n}),t},copy:function(e){var t=new Ur(nr(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,n=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<n&&(n=e.to);var r=new Ur(nr(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Sl(r,cs(this)),r},unlinkDoc:function(e){if(e instanceof tr&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var n=this.linked[t];if(n.doc!=e)continue;this.linked.splice(t,1),e.unlinkDoc(this),Cl(cs(this));break}if(e.history==this.history){var r=[e.id];Fn(e,function(c){return r.push(c.id)},!0),e.history=new hi(null),e.history.done=ma(this.history.done,r),e.history.undone=ma(this.history.undone,r)}},iterLinkedDocs:function(e){Fn(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):pt(e)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Sr(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)})}),Ur.prototype.eachLine=Ur.prototype.iter;var ds=0;function Ol(e){var t=this;if(fs(t),Ke(t,e)||Zr(t.display,e))return;ve(e),f&&(ds=+new Date);var n=Jn(t,e,!0),r=e.dataTransfer.files;if(!n||t.isReadOnly())return;if(r&&r.length&&window.FileReader&&window.File)for(var c=r.length,I=Array(c),Q=0,ie=function(){++Q==c&&Er(t,function(){n=xt(t.doc,n);var Pe={from:n,to:n,text:t.doc.splitLines(I.filter(function(Xe){return Xe!=null}).join(t.doc.lineSeparator())),origin:"paste"};va(t.doc,Pe),$o(t.doc,Ln(xt(t.doc,n),xt(t.doc,jn(Pe))))})()},ce=function(Pe,Xe){if(t.options.allowDropFileTypes&&oe(t.options.allowDropFileTypes,Pe.type)==-1){ie();return}var Je=new FileReader;Je.onerror=function(){return ie()},Je.onload=function(){var Qe=Je.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Qe)){ie();return}I[Xe]=Qe,ie()},Je.readAsText(Pe)},ge=0;ge<r.length;ge++)ce(r[ge],ge);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var Ce=e.dataTransfer.getData("Text");if(Ce){var Ae;if(t.state.draggingText&&!t.state.draggingText.copy&&(Ae=t.listSelections()),gi(t.doc,Ln(n,n)),Ae)for(var je=0;je<Ae.length;++je)ba(t.doc,"",Ae[je].anchor,Ae[je].head,"drag");t.replaceSelection(Ce,"around","paste"),t.display.input.focus()}}catch(Pe){}}}function Al(e,t){if(f&&(!e.state.draggingText||+new Date-ds<100)){Se(t);return}if(Ke(e,t)||Zr(e.display,t))return;if(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!m){var n=J("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",v&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),v&&n.parentNode.removeChild(n)}}function kl(e,t){var n=Jn(e,t);if(!n)return;var r=document.createDocumentFragment();So(e,n,r),e.display.dragCursor||(e.display.dragCursor=J("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),U(e.display.dragCursor,r)}function fs(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function hs(e){if(!document.getElementsByClassName)return;for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var c=t[r].CodeMirror;c&&n.push(c)}n.length&&n[0].operation(function(){for(var I=0;I<n.length;I++)e(n[I])})}var ps=!1;function Dl(){if(ps)return;Rl(),ps=!0}function Rl(){var e;Oe(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,hs(Ml)},100))}),Oe(window,"blur",function(){return hs(fa)})}function Ml(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Bn={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"},Xa=0;Xa<10;Xa++)Bn[Xa+48]=Bn[Xa+96]=String(Xa);for(var yi=65;yi<=90;yi++)Bn[yi]=String.fromCharCode(yi);for(var Ga=1;Ga<=12;Ga++)Bn[Ga+111]=Bn[Ga+63235]="F"+Ga;var Cn={};Cn.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"},Cn.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"},Cn.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"},Cn.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"]},Cn.default=M?Cn.macDefault:Cn.pcDefault;function Nl(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var n,r,c,I,Q=0;Q<t.length-1;Q++){var ie=t[Q];if(/^(cmd|meta|m)$/i.test(ie))I=!0;else if(/^a(lt)?$/i.test(ie))n=!0;else if(/^(c|ctrl|control)$/i.test(ie))r=!0;else if(/^s(hift)?$/i.test(ie))c=!0;else throw new Error("Unrecognized modifier name: "+ie)}return n&&(e="Alt-"+e),r&&(e="Ctrl-"+e),I&&(e="Cmd-"+e),c&&(e="Shift-"+e),e}function Il(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if(r=="..."){delete e[n];continue}for(var c=re(n.split(" "),Nl),I=0;I<c.length;I++){var Q=void 0,ie=void 0;I==c.length-1?(ie=c.join(" "),Q=r):(ie=c.slice(0,I+1).join(" "),Q="...");var ce=t[ie];if(!ce)t[ie]=Q;else if(ce!=Q)throw new Error("Inconsistent bindings for "+ie)}delete e[n]}for(var ge in t)e[ge]=t[ge];return e}function xa(e,t,n,r){t=xi(t);var c=t.call?t.call(e,r):t[e];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&n(c))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return xa(e,t.fallthrough,n,r);for(var I=0;I<t.fallthrough.length;I++){var Q=xa(e,t.fallthrough[I],n,r);if(Q)return Q}}}function ms(e){var t=typeof e=="string"?e:Bn[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function gs(e,t,n){var r=e;return t.altKey&&r!="Alt"&&(e="Alt-"+e),(b?t.metaKey:t.ctrlKey)&&r!="Ctrl"&&(e="Ctrl-"+e),(b?t.ctrlKey:t.metaKey)&&r!="Mod"&&(e="Cmd-"+e),!n&&t.shiftKey&&r!="Shift"&&(e="Shift-"+e),e}function vs(e,t){if(v&&e.keyCode==34&&e.char)return!1;var n=Bn[e.keyCode];return n==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(n=e.code),gs(n,e,t))}function xi(e){return typeof e=="string"?Cn[e]:e}function wa(e,t){for(var n=e.doc.sel.ranges,r=[],c=0;c<n.length;c++){for(var I=t(n[c]);r.length&&vt(I.from,Y(r).to)<=0;){var Q=r.pop();if(vt(Q.from,I.from)<0){I.from=Q.from;break}}r.push(I)}Gr(e,function(){for(var ie=r.length-1;ie>=0;ie--)ba(e.doc,"",r[ie].from,r[ie].to,"+delete");ha(e)})}function Zi(e,t,n){var r=we(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Qi(e,t,n){var r=Zi(e,t.ch,n);return r==null?null:new Ye(t.line,r,n<0?"after":"before")}function qi(e,t,n,r,c){if(e){t.doc.direction=="rtl"&&(c=-c);var I=Fe(n,t.doc.direction);if(I){var Q=c<0?Y(I):I[0],ie=c<0==(Q.level==1),ce=ie?"after":"before",ge;if(Q.level>0||t.doc.direction=="rtl"){var Ce=ua(t,n);ge=c<0?n.text.length-1:0;var Ae=vn(t,Ce,ge).top;ge=ke(function(je){return vn(t,Ce,je).top==Ae},c<0==(Q.level==1)?Q.from:Q.to-1,ge),ce=="before"&&(ge=Zi(n,ge,1))}else ge=c<0?Q.to:Q.from;return new Ye(r,ge,ce)}}return new Ye(r,c<0?n.text.length:0,c<0?"before":"after")}function Pl(e,t,n,r){var c=Fe(t,e.doc.direction);if(!c)return Qi(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var I=Le(c,n.ch,n.sticky),Q=c[I];if(e.doc.direction=="ltr"&&Q.level%2==0&&(r>0?Q.to>n.ch:Q.from<n.ch))return Qi(t,n,r);var ie=function(at,ct){return Zi(t,at instanceof Ye?at.ch:at,ct)},ce,ge=function(at){return e.options.lineWrapping?(ce=ce||ua(e,t),xo(e,t,ce,at)):{begin:0,end:t.text.length}},Ce=ge(n.sticky=="before"?ie(n,-1):n.ch);if(e.doc.direction=="rtl"||Q.level==1){var Ae=Q.level==1==r<0,je=ie(n,Ae?1:-1);if(je!=null&&(Ae?je<=Q.to&&je<=Ce.end:je>=Q.from&&je>=Ce.begin)){var Pe=Ae?"before":"after";return new Ye(n.line,je,Pe)}}var Xe=function(at,ct,it){for(var ht=function(Jt,Cr){return Cr?new Ye(n.line,ie(Jt,1),"before"):new Ye(n.line,Jt,"after")};at>=0&&at<c.length;at+=ct){var St=c[at],wt=ct>0==(St.level!=1),Dt=wt?it.begin:ie(it.end,-1);if(St.from<=Dt&&Dt<St.to)return ht(Dt,wt);if(Dt=wt?St.from:ie(St.to,-1),it.begin<=Dt&&Dt<it.end)return ht(Dt,wt)}},Je=Xe(I+r,r,Ce);if(Je)return Je;var Qe=r>0?Ce.end:ie(Ce.begin,-1);return Qe!=null&&!(r>0&&Qe==t.text.length)&&(Je=Xe(r>0?0:c.length-1,r,ge(Qe)),Je)?Je:null}var Va={selectAll:ts,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),xe)},killLine:function(e){return wa(e,function(t){if(t.empty()){var n=rt(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:Ye(t.head.line+1,0)}:{from:t.head,to:Ye(t.head.line,n)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return wa(e,function(t){return{from:Ye(t.from().line,0),to:xt(e.doc,Ye(t.to().line+1,0))}})},delLineLeft:function(e){return wa(e,function(t){return{from:Ye(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return wa(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return{from:r,to:t.from()}})},delWrappedLineRight:function(e){return wa(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},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(Ye(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(Ye(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return bs(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return ys(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return Ll(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},le)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},le)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?ys(e,t.head):r},le)},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=[],n=e.listSelections(),r=e.options.tabSize,c=0;c<n.length;c++){var I=n[c].from(),Q=A(e.getLine(I.line),I.ch,r);t.push(ne(r-Q%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Gr(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){if(!t[r].empty())continue;var c=t[r].head,I=rt(e.doc,c.line).text;if(I){if(c.ch==I.length&&(c=new Ye(c.line,c.ch-1)),c.ch>0)c=new Ye(c.line,c.ch+1),e.replaceRange(I.charAt(c.ch-1)+I.charAt(c.ch-2),Ye(c.line,c.ch-2),c,"+transpose");else if(c.line>e.doc.first){var Q=rt(e.doc,c.line-1).text;Q&&(c=new Ye(c.line,1),e.replaceRange(I.charAt(0)+e.doc.lineSeparator()+Q.charAt(Q.length-1),Ye(c.line-1,Q.length-1),c,"+transpose"))}}n.push(new Bt(c,c))}e.setSelections(n)})},newlineAndIndent:function(e){return Gr(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);ha(e)})},openLine:function(e){return e.replaceSelection(`
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function bs(e,t){var n=rt(e.doc,t),r=dt(n);return r!=n&&(t=Tt(r)),qi(!0,e,r,t,1)}function Ll(e,t){var n=rt(e.doc,t),r=Mt(n);return r!=n&&(t=Tt(r)),qi(!0,e,n,t,-1)}function ys(e,t){var n=bs(e,t.line),r=rt(e.doc,n.line),c=Fe(r,e.doc.direction);if(!c||c[0].level==0){var I=Math.max(n.ch,r.text.search(/\S/)),Q=t.line==n.line&&t.ch<=I&&t.ch;return Ye(n.line,Q?0:I,n.sticky)}return n}function wi(e,t,n){if(typeof t=="string"&&(t=Va[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,c=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),c=t(e)!=be}finally{e.display.shift=r,e.state.suppressEdits=!1}return c}function jl(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var c=xa(t,e.state.keyMaps[r],n,e);if(c)return c}return e.options.extraKeys&&xa(t,e.options.extraKeys,n,e)||xa(t,e.options.keyMap,n,e)}var Fl=new ee;function Ya(e,t,n,r){var c=e.state.keySeq;if(c){if(ms(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Fl.set(50,function(){e.state.keySeq==c&&(e.state.keySeq=null,e.display.input.reset())}),xs(e,c+" "+t,n,r))return!0}return xs(e,t,n,r)}function xs(e,t,n,r){var c=jl(e,t,r);return c=="multi"&&(e.state.keySeq=t),c=="handled"&&ur(e,"keyHandled",e,t,n),(c=="handled"||c=="multi")&&(ve(n),Li(e)),!!c}function ws(e,t){var n=vs(t,!0);return n?t.shiftKey&&!e.state.keySeq?Ya(e,"Shift-"+n,t,function(r){return wi(e,r,!0)})||Ya(e,n,t,function(r){if(typeof r=="string"?/^go[A-Z]/.test(r):r.motion)return wi(e,r)}):Ya(e,n,t,function(r){return wi(e,r)}):!1}function Ul(e,t,n){return Ya(e,"'"+n+"'",t,function(r){return wi(e,r,!0)})}var eo=null;function _s(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(t.curOp.focus=he(),Ke(t,e))return;f&&o<11&&e.keyCode==27&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=n==16||e.shiftKey;var r=ws(t,e);v&&(eo=r?n:null,!r&&n==88&&!_t&&(M?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),T&&!M&&!r&&n==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),n==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Bl(t)}function Bl(e){var t=e.display.lineDiv;q(t,"CodeMirror-crosshair");function n(r){(r.keyCode==18||!r.altKey)&&(D(t,"CodeMirror-crosshair"),$e(document,"keyup",n),$e(document,"mouseover",n))}Oe(document,"keyup",n),Oe(document,"mouseover",n)}function Es(e){e.keyCode==16&&(this.doc.sel.shift=!1),Ke(this,e)}function Ss(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(Zr(t.display,e)||Ke(t,e)||e.ctrlKey&&!e.altKey||M&&e.metaKey)return;var n=e.keyCode,r=e.charCode;if(v&&n==eo){eo=null,ve(e);return}if(v&&(!e.which||e.which<10)&&ws(t,e))return;var c=String.fromCharCode(r==null?n:r);if(c=="\b")return;if(Ul(t,e,c))return;t.display.input.onKeyPress(e)}var Wl=400,to=function(e,t,n){this.time=e,this.pos=t,this.button=n};to.prototype.compare=function(e,t,n){return this.time+Wl>e&&vt(t,this.pos)==0&&n==this.button};var Ja,$a;function Hl(e,t){var n=+new Date;return $a&&$a.compare(n,e,t)?(Ja=$a=null,"triple"):Ja&&Ja.compare(n,e,t)?($a=new to(n,e,t),Ja=null,"double"):(Ja=new to(n,e,t),$a=null,"single")}function Cs(e){var t=this,n=t.display;if(Ke(t,e)||n.activeTouch&&n.input.supportsTouch())return;if(n.input.ensurePolled(),n.shift=e.shiftKey,Zr(n,e)){i||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(ro(t,e))return;var r=Jn(t,e),c=De(e),I=r?Hl(r,c):"single";if(window.focus(),c==1&&t.state.selectingText&&t.state.selectingText(e),r&&zl(t,c,r,I,e))return;c==1?r?Xl(t,r,I,e):Ie(e)==n.scroller&&ve(e):c==2?(r&&mi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):c==3&&(V?t.display.input.onContextMenu(e):To(t))}function zl(e,t,n,r,c){var I="Click";return r=="double"?I="Double"+I:r=="triple"&&(I="Triple"+I),I=(t==1?"Left":t==2?"Middle":"Right")+I,Ya(e,gs(I,c),c,function(Q){if(typeof Q=="string"&&(Q=Va[Q]),!Q)return!1;var ie=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),ie=Q(e,n)!=be}finally{e.state.suppressEdits=!1}return ie})}function Kl(e,t,n){var r=e.getOption("configureMouse"),c=r?r(e,t,n):{};if(c.unit==null){var I=N?n.shiftKey&&n.metaKey:n.altKey;c.unit=I?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(c.extend==null||e.doc.extend)&&(c.extend=e.doc.extend||n.shiftKey),c.addNew==null&&(c.addNew=M?n.metaKey:n.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(M?n.altKey:n.ctrlKey)),c}function Xl(e,t,n,r){f?setTimeout(R(Co,e),0):e.curOp.focus=he();var c=Kl(e,n,r),I=e.doc.sel,Q;e.options.dragDrop&&ze&&!e.isReadOnly()&&n=="single"&&(Q=I.contains(t))>-1&&(vt((Q=I.ranges[Q]).from(),t)<0||t.xRel>0)&&(vt(Q.to(),t)>0||t.xRel<0)?Gl(e,r,t,c):Vl(e,r,t,c)}function Gl(e,t,n,r){var c=e.display,I=!1,Q=Er(e,function(ge){i&&(c.scroller.draggable=!1),e.state.draggingText=!1,$e(c.wrapper.ownerDocument,"mouseup",Q),$e(c.wrapper.ownerDocument,"mousemove",ie),$e(c.scroller,"dragstart",ce),$e(c.scroller,"drop",Q),I||(ve(ge),r.addNew||mi(e.doc,n,null,null,r.extend),i&&!m||f&&o==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),ie=function(ge){I=I||Math.abs(t.clientX-ge.clientX)+Math.abs(t.clientY-ge.clientY)>=10},ce=function(){return I=!0};i&&(c.scroller.draggable=!0),e.state.draggingText=Q,Q.copy=!r.moveOnDrag,c.scroller.dragDrop&&c.scroller.dragDrop(),Oe(c.wrapper.ownerDocument,"mouseup",Q),Oe(c.wrapper.ownerDocument,"mousemove",ie),Oe(c.scroller,"dragstart",ce),Oe(c.scroller,"drop",Q),To(e),setTimeout(function(){return c.input.focus()},20)}function Ts(e,t,n){if(n=="char")return new Bt(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new Bt(Ye(t.line,0),xt(e.doc,Ye(t.line+1,0)));var r=n(e,t);return new Bt(r.from,r.to)}function Vl(e,t,n,r){var c=e.display,I=e.doc;ve(t);var Q,ie,ce=I.sel,ge=ce.ranges;if(r.addNew&&!r.extend?(ie=I.sel.contains(n),ie>-1?Q=ge[ie]:Q=new Bt(n,n)):(Q=I.sel.primary(),ie=I.sel.primIndex),r.unit=="rectangle")r.addNew||(Q=new Bt(n,n)),n=Jn(e,t,!0,!0),ie=-1;else{var Ce=Ts(e,n,r.unit);r.extend?Q=Ji(Q,Ce.anchor,Ce.head,r.extend):Q=Ce}r.addNew?ie==-1?(ie=ge.length,Rr(I,cn(e,ge.concat([Q]),ie),{scroll:!1,origin:"*mouse"})):ge.length>1&&ge[ie].empty()&&r.unit=="char"&&!r.extend?(Rr(I,cn(e,ge.slice(0,ie).concat(ge.slice(ie+1)),0),{scroll:!1,origin:"*mouse"}),ce=I.sel):$i(I,ie,Q,te):(ie=0,Rr(I,new qr([Q],0),te),ce=I.sel);var Ae=n;function je(it){if(vt(Ae,it)==0)return;if(Ae=it,r.unit=="rectangle"){for(var ht=[],St=e.options.tabSize,wt=A(rt(I,n.line).text,n.ch,St),Dt=A(rt(I,it.line).text,it.ch,St),Jt=Math.min(wt,Dt),Cr=Math.max(wt,Dt),or=Math.min(n.line,it.line),Vr=Math.min(e.lastLine(),Math.max(n.line,it.line));or<=Vr;or++){var Br=rt(I,or).text,mr=ue(Br,Jt,St);Jt==Cr?ht.push(new Bt(Ye(or,mr),Ye(or,mr))):Br.length>mr&&ht.push(new Bt(Ye(or,mr),Ye(or,ue(Br,Cr,St))))}ht.length||ht.push(new Bt(n,n)),Rr(I,cn(e,ce.ranges.slice(0,ie).concat(ht),ie),{origin:"*mouse",scroll:!1}),e.scrollIntoView(it)}else{var Wr=Q,kr=Ts(e,it,r.unit),xr=Wr.anchor,gr;vt(kr.anchor,xr)>0?(gr=kr.head,xr=zr(Wr.from(),kr.anchor)):(gr=kr.anchor,xr=Ze(Wr.to(),kr.head));var lr=ce.ranges.slice(0);lr[ie]=Yl(e,new Bt(xt(I,xr),gr)),Rr(I,cn(e,lr,ie),te)}}var Pe=c.wrapper.getBoundingClientRect(),Xe=0;function Je(it){var ht=++Xe,St=Jn(e,it,!0,r.unit=="rectangle");if(!St)return;if(vt(St,Ae)!=0){e.curOp.focus=he(),je(St);var wt=ui(c,I);(St.line>=wt.to||St.line<wt.from)&&setTimeout(Er(e,function(){Xe==ht&&Je(it)}),150)}else{var Dt=it.clientY<Pe.top?-20:it.clientY>Pe.bottom?20:0;Dt&&setTimeout(Er(e,function(){if(Xe!=ht)return;c.scroller.scrollTop+=Dt,Je(it)}),50)}}function Qe(it){e.state.selectingText=!1,Xe=Infinity,it&&(ve(it),c.input.focus()),$e(c.wrapper.ownerDocument,"mousemove",at),$e(c.wrapper.ownerDocument,"mouseup",ct),I.history.lastSelOrigin=null}var at=Er(e,function(it){it.buttons===0||!De(it)?Qe(it):Je(it)}),ct=Er(e,Qe);e.state.selectingText=ct,Oe(c.wrapper.ownerDocument,"mousemove",at),Oe(c.wrapper.ownerDocument,"mouseup",ct)}function Yl(e,t){var n=t.anchor,r=t.head,c=rt(e.doc,n.line);if(vt(n,r)==0&&n.sticky==r.sticky)return t;var I=Fe(c);if(!I)return t;var Q=Le(I,n.ch,n.sticky),ie=I[Q];if(ie.from!=n.ch&&ie.to!=n.ch)return t;var ce=Q+(ie.from==n.ch==(ie.level!=1)?0:1);if(ce==0||ce==I.length)return t;var ge;if(r.line!=n.line)ge=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Ce=Le(I,r.ch,r.sticky),Ae=Ce-Q||(r.ch-n.ch)*(ie.level==1?-1:1);Ce==ce-1||Ce==ce?ge=Ae<0:ge=Ae>0}var je=I[ce+(ge?-1:0)],Pe=ge==(je.level==1),Xe=Pe?je.from:je.to,Je=Pe?"after":"before";return n.ch==Xe&&n.sticky==Je?t:new Bt(new Ye(n.line,Xe,Je),r)}function Os(e,t,n,r){var c,I;if(t.touches)c=t.touches[0].clientX,I=t.touches[0].clientY;else try{c=t.clientX,I=t.clientY}catch(je){return!1}if(c>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ve(t);var Q=e.display,ie=Q.lineDiv.getBoundingClientRect();if(I>ie.bottom||!Te(e,n))return _e(t);I-=ie.top-Q.viewOffset;for(var ce=0;ce<e.display.gutterSpecs.length;++ce){var ge=Q.gutters.childNodes[ce];if(ge&&ge.getBoundingClientRect().right>=c){var Ce=qt(e.doc,I),Ae=e.display.gutterSpecs[ce];return Ue(e,n,e,Ce,Ae.className,t),_e(t)}}}function ro(e,t){return Os(e,t,"gutterClick",!0)}function As(e,t){if(Zr(e.display,t)||Jl(e,t))return;if(Ke(e,t,"contextmenu"))return;V||e.display.input.onContextMenu(t)}function Jl(e,t){return Te(e,"gutterContextMenu")?Os(e,t,"gutterContextMenu",!1):!1}function ks(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Da(e)}var _a={toString:function(){return"CodeMirror.Init"}},Ds={},_i={};function $l(e){var t=e.optionHandlers;function n(r,c,I,Q){e.defaults[r]=c,I&&(t[r]=Q?function(ie,ce,ge){ge!=_a&&I(ie,ce,ge)}:I)}e.defineOption=n,e.Init=_a,n("value","",function(r,c){return r.setValue(c)},!0),n("mode",null,function(r,c){r.doc.modeOption=c,Gi(r)},!0),n("indentUnit",2,Gi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(r){Fa(r),Da(r),Fr(r)},!0),n("lineSeparator",null,function(r,c){if(r.doc.lineSep=c,!c)return;var I=[],Q=r.doc.first;r.doc.iter(function(ce){for(var ge=0;;){var Ce=ce.text.indexOf(c,ge);if(Ce==-1)break;ge=Ce+c.length,I.push(Ye(Q,Ce))}Q++});for(var ie=I.length-1;ie>=0;ie--)ba(r.doc,c,I[ie],Ye(I[ie].line,I[ie].ch+c.length))}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(r,c,I){r.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),I!=_a&&r.refresh()}),n("specialCharPlaceholder",sn,function(r){return r.refresh()},!0),n("electricChars",!0),n("inputStyle",C?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(r,c){return r.getInputField().spellcheck=c},!0),n("autocorrect",!1,function(r,c){return r.getInputField().autocorrect=c},!0),n("autocapitalize",!1,function(r,c){return r.getInputField().autocapitalize=c},!0),n("rtlMoveVisually",!P),n("wholeLineUpdateBefore",!0),n("theme","default",function(r){ks(r),ja(r)},!0),n("keyMap","default",function(r,c,I){var Q=xi(c),ie=I!=_a&&xi(I);ie&&ie.detach&&ie.detach(r,Q),Q.attach&&Q.attach(r,ie||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ql,!0),n("gutters",[],function(r,c){r.display.gutterSpecs=Ki(c,r.options.lineNumbers),ja(r)},!0),n("fixedGutter",!0,function(r,c){r.display.gutters.style.left=c?Ii(r.display)+"px":"0",r.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(r){return pa(r)},!0),n("scrollbarStyle","native",function(r){Mo(r),pa(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),n("lineNumbers",!1,function(r,c){r.display.gutterSpecs=Ki(r.options.gutters,c),ja(r)},!0),n("firstLineNumber",1,ja,!0),n("lineNumberFormatter",function(r){return r},ja,!0),n("showCursorWhenSelecting",!1,Ra,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(r,c){c=="nocursor"&&(fa(r),r.display.input.blur()),r.display.input.readOnlyChanged(c)}),n("screenReaderLabel",null,function(r,c){c=c===""?null:c,r.display.input.screenReaderLabelChanged(c)}),n("disableInput",!1,function(r,c){c||r.display.input.reset()},!0),n("dragDrop",!0,Zl),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Ra,!0),n("singleCursorHeightPerLine",!0,Ra,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Fa,!0),n("addModeClass",!1,Fa,!0),n("pollInterval",100),n("undoDepth",200,function(r,c){return r.doc.history.undoDepth=c}),n("historyEventDelay",1250),n("viewportMargin",10,function(r){return r.refresh()},!0),n("maxHighlightLength",1e4,Fa,!0),n("moveInputWithCursor",!0,function(r,c){c||r.display.input.resetPosition()}),n("tabindex",null,function(r,c){return r.display.input.getField().tabIndex=c||""}),n("autofocus",null),n("direction","ltr",function(r,c){return r.doc.setDirection(c)},!0),n("phrases",null)}function Zl(e,t,n){var r=n&&n!=_a;if(!t!=!r){var c=e.display.dragFunctions,I=t?Oe:$e;I(e.display.scroller,"dragstart",c.start),I(e.display.scroller,"dragenter",c.enter),I(e.display.scroller,"dragover",c.over),I(e.display.scroller,"dragleave",c.leave),I(e.display.scroller,"drop",c.drop)}}function Ql(e){e.options.lineWrapping?(q(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(D(e.display.wrapper,"CodeMirror-wrap"),Kt(e)),Pi(e),Fr(e),Da(e),setTimeout(function(){return pa(e)},100)}function tr(e,t){var n=this;if(!(this instanceof tr))return new tr(e,t);this.options=t=t?y(t):{},y(Ds,t,!1);var r=t.value;typeof r=="string"?r=new Ur(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var c=new tr.inputStyles[t.inputStyle](this),I=this.display=new dl(e,r,c,t);I.wrapper.CodeMirror=this,ks(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Mo(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 ee,keySeq:null,specialChars:null},t.autofocus&&!C&&I.input.focus(),f&&o<11&&setTimeout(function(){return n.display.input.reset(!0)},20),ql(this),Dl(),qn(this),this.curOp.forceUpdate=!0,Ho(this,r),t.autofocus&&!C||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&ji(n)},20):fa(this);for(var Q in _i)_i.hasOwnProperty(Q)&&_i[Q](this,t[Q],_a);Po(this),t.finishInit&&t.finishInit(this);for(var ie=0;ie<no.length;++ie)no[ie](this);ea(this),i&&t.lineWrapping&&getComputedStyle(I.lineDiv).textRendering=="optimizelegibility"&&(I.lineDiv.style.textRendering="auto")}tr.defaults=Ds,tr.optionHandlers=_i;function ql(e){var t=e.display;Oe(t.scroller,"mousedown",Er(e,Cs)),f&&o<11?Oe(t.scroller,"dblclick",Er(e,function(ce){if(Ke(e,ce))return;var ge=Jn(e,ce);if(!ge||ro(e,ce)||Zr(e.display,ce))return;ve(ce);var Ce=e.findWordAt(ge);mi(e.doc,Ce.anchor,Ce.head)})):Oe(t.scroller,"dblclick",function(ce){return Ke(e,ce)||ve(ce)}),Oe(t.scroller,"contextmenu",function(ce){return As(e,ce)}),Oe(t.input.getField(),"contextmenu",function(ce){t.scroller.contains(ce.target)||As(e,ce)});var n,r={end:0};function c(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),r=t.activeTouch,r.end=+new Date)}function I(ce){if(ce.touches.length!=1)return!1;var ge=ce.touches[0];return ge.radiusX<=1&&ge.radiusY<=1}function Q(ce,ge){if(ge.left==null)return!0;var Ce=ge.left-ce.left,Ae=ge.top-ce.top;return Ce*Ce+Ae*Ae>20*20}Oe(t.scroller,"touchstart",function(ce){if(!Ke(e,ce)&&!I(ce)&&!ro(e,ce)){t.input.ensurePolled(),clearTimeout(n);var ge=+new Date;t.activeTouch={start:ge,moved:!1,prev:ge-r.end<=300?r:null},ce.touches.length==1&&(t.activeTouch.left=ce.touches[0].pageX,t.activeTouch.top=ce.touches[0].pageY)}}),Oe(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Oe(t.scroller,"touchend",function(ce){var ge=t.activeTouch;if(ge&&!Zr(t,ce)&&ge.left!=null&&!ge.moved&&new Date-ge.start<300){var Ce=e.coordsChar(t.activeTouch,"page"),Ae;!ge.prev||Q(ge,ge.prev)?Ae=new Bt(Ce,Ce):!ge.prev.prev||Q(ge,ge.prev.prev)?Ae=e.findWordAt(Ce):Ae=new Bt(Ye(Ce.line,0),xt(e.doc,Ye(Ce.line+1,0))),e.setSelection(Ae.anchor,Ae.head),e.focus(),ve(ce)}c()}),Oe(t.scroller,"touchcancel",c),Oe(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Na(e,t.scroller.scrollTop),Zn(e,t.scroller.scrollLeft,!0),Ue(e,"scroll",e))}),Oe(t.scroller,"mousewheel",function(ce){return Fo(e,ce)}),Oe(t.scroller,"DOMMouseScroll",function(ce){return Fo(e,ce)}),Oe(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(ce){Ke(e,ce)||Se(ce)},over:function(ce){Ke(e,ce)||(kl(e,ce),Se(ce))},start:function(ce){return Al(e,ce)},drop:Er(e,Ol),leave:function(ce){Ke(e,ce)||fs(e)}};var ie=t.input.getField();Oe(ie,"keyup",function(ce){return Es.call(e,ce)}),Oe(ie,"keydown",Er(e,_s)),Oe(ie,"keypress",Er(e,Ss)),Oe(ie,"focus",function(ce){return ji(e,ce)}),Oe(ie,"blur",function(ce){return fa(e,ce)})}var no=[];tr.defineInitHook=function(e){return no.push(e)};function Za(e,t,n,r){var c=e.doc,I;n==null&&(n="add"),n=="smart"&&(c.mode.indent?I=Be(e,t).state:n="prev");var Q=e.options.tabSize,ie=rt(c,t),ce=A(ie.text,null,Q);ie.stateAfter&&(ie.stateAfter=null);var ge=ie.text.match(/^\s*/)[0],Ce;if(!r&&!/\S/.test(ie.text))Ce=0,n="not";else if(n=="smart"&&(Ce=c.mode.indent(I,ie.text.slice(ge.length),ie.text),Ce==be||Ce>150)){if(!r)return;n="prev"}n=="prev"?t>c.first?Ce=A(rt(c,t-1).text,null,Q):Ce=0:n=="add"?Ce=ce+e.options.indentUnit:n=="subtract"?Ce=ce-e.options.indentUnit:typeof n=="number"&&(Ce=ce+n),Ce=Math.max(0,Ce);var Ae="",je=0;if(e.options.indentWithTabs)for(var Pe=Math.floor(Ce/Q);Pe;--Pe)je+=Q,Ae+=" ";if(je<Ce&&(Ae+=ne(Ce-je)),Ae!=ge)return ba(c,Ae,Ye(t,0),Ye(t,ge.length),"+input"),ie.stateAfter=null,!0;for(var Xe=0;Xe<c.sel.ranges.length;Xe++){var Je=c.sel.ranges[Xe];if(Je.head.line==t&&Je.head.ch<ge.length){var Qe=Ye(t,ge.length);$i(c,Xe,new Bt(Qe,Qe));break}}}var dn=null;function Ei(e){dn=e}function ao(e,t,n,r,c){var I=e.doc;e.display.shift=!1,r||(r=I.sel);var Q=+new Date-200,ie=c=="paste"||e.state.pasteIncoming>Q,ce=pt(t),ge=null;if(ie&&r.ranges.length>1)if(dn&&dn.text.join(`
`)==t){if(r.ranges.length%dn.text.length==0){ge=[];for(var Ce=0;Ce<dn.text.length;Ce++)ge.push(I.splitLines(dn.text[Ce]))}}else ce.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(ge=re(ce,function(at){return[at]}));for(var Ae=e.curOp.updateInput,je=r.ranges.length-1;je>=0;je--){var Pe=r.ranges[je],Xe=Pe.from(),Je=Pe.to();Pe.empty()&&(n&&n>0?Xe=Ye(Xe.line,Xe.ch-n):e.state.overwrite&&!ie?Je=Ye(Je.line,Math.min(rt(I,Je.line).text.length,Je.ch+Y(ce).length)):ie&&dn&&dn.lineWise&&dn.text.join(`
`)==ce.join(`
`)&&(Xe=Je=Ye(Xe.line,0)));var Qe={from:Xe,to:Je,text:ge?ge[je%ge.length]:ce,origin:c||(ie?"paste":e.state.cutIncoming>Q?"cut":"+input")};va(e.doc,Qe),ur(e,"inputRead",e,Qe)}t&&!ie&&Ms(e,t),ha(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ae),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Rs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Gr(t,function(){return ao(t,n,0,null,"paste")}),!0}function Ms(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var c=n.ranges[r];if(c.head.ch>100||r&&n.ranges[r-1].head.line==c.head.line)continue;var I=e.getModeAt(c.head),Q=!1;if(I.electricChars){for(var ie=0;ie<I.electricChars.length;ie++)if(t.indexOf(I.electricChars.charAt(ie))>-1){Q=Za(e,c.head.line,"smart");break}}else I.electricInput&&(I.electricInput.test(rt(e.doc,c.head.line).text.slice(0,c.head.ch))&&(Q=Za(e,c.head.line,"smart")));Q&&ur(e,"electricInput",e,c.head.line)}}function Ns(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var c=e.doc.sel.ranges[r].head.line,I={anchor:Ye(c,0),head:Ye(c+1,0)};n.push(I),t.push(e.getRange(I.anchor,I.head))}return{text:t,ranges:n}}function Is(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Ps(){var e=J("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=J("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return i?e.style.width="1000px":e.setAttribute("wrap","off"),w&&(e.style.border="1px solid black"),Is(e),t}function eu(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(r,c){var I=this.options,Q=I[r];if(I[r]==c&&r!="mode")return;I[r]=c,t.hasOwnProperty(r)&&Er(this,t[r])(this,c,Q),Ue(this,"optionChange",this,r)},getOption:function(r){return this.options[r]},getDoc:function(){return this.doc},addKeyMap:function(r,c){this.state.keyMaps[c?"push":"unshift"](xi(r))},removeKeyMap:function(r){for(var c=this.state.keyMaps,I=0;I<c.length;++I)if(c[I]==r||c[I].name==r)return c.splice(I,1),!0},addOverlay:Lr(function(r,c){var I=r.token?r:e.getMode(this.options,r);if(I.startState)throw new Error("Overlays may not be stateful.");F(this.state.overlays,{mode:I,modeSpec:r,opaque:c&&c.opaque,priority:c&&c.priority||0},function(Q){return Q.priority}),this.state.modeGen++,Fr(this)}),removeOverlay:Lr(function(r){for(var c=this.state.overlays,I=0;I<c.length;++I){var Q=c[I].modeSpec;if(Q==r||typeof r=="string"&&Q.name==r){c.splice(I,1),this.state.modeGen++,Fr(this);return}}}),indentLine:Lr(function(r,c,I){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),Nr(this.doc,r)&&Za(this,r,c,I)}),indentSelection:Lr(function(r){for(var c=this.doc.sel.ranges,I=-1,Q=0;Q<c.length;Q++){var ie=c[Q];if(ie.empty())ie.head.line>I&&(Za(this,ie.head.line,r,!0),I=ie.head.line,Q==this.doc.sel.primIndex&&ha(this));else{var ce=ie.from(),ge=ie.to(),Ce=Math.max(I,ce.line);I=Math.min(this.lastLine(),ge.line-(ge.ch?0:1))+1;for(var Ae=Ce;Ae<I;++Ae)Za(this,Ae,r);var je=this.doc.sel.ranges;ce.ch==0&&c.length==je.length&&je[Q].from().ch>0&&$i(this.doc,Q,new Bt(ce,je[Q].to()),xe)}}}),getTokenAt:function(r,c){return pr(this,r,c)},getLineTokens:function(r,c){return pr(this,Ye(r),c,!0)},getTokenTypeAt:function(r){r=xt(this.doc,r);var c=lt(this,rt(this.doc,r.line)),I=0,Q=(c.length-1)/2,ie=r.ch,ce;if(ie==0)ce=c[2];else for(;;){var ge=I+Q>>1;if((ge?c[ge*2-1]:0)>=ie)Q=ge;else if(c[ge*2+1]<ie)I=ge+1;else{ce=c[ge*2+2];break}}var Ce=ce?ce.indexOf("overlay "):-1;return Ce<0?ce:Ce==0?null:ce.slice(0,Ce-1)},getModeAt:function(r){var c=this.doc.mode;return c.innerMode?e.innerMode(c,this.getTokenAt(r).state).mode:c},getHelper:function(r,c){return this.getHelpers(r,c)[0]},getHelpers:function(r,c){var I=[];if(!n.hasOwnProperty(c))return I;var Q=n[c],ie=this.getModeAt(r);if(typeof ie[c]=="string")Q[ie[c]]&&I.push(Q[ie[c]]);else if(ie[c])for(var ce=0;ce<ie[c].length;ce++){var ge=Q[ie[c][ce]];ge&&I.push(ge)}else ie.helperType&&Q[ie.helperType]?I.push(Q[ie.helperType]):Q[ie.name]&&I.push(Q[ie.name]);for(var Ce=0;Ce<Q._global.length;Ce++){var Ae=Q._global[Ce];Ae.pred(ie,this)&&oe(I,Ae.val)==-1&&I.push(Ae.val)}return I},getStateAfter:function(r,c){var I=this.doc;return r=nn(I,r==null?I.first+I.size-1:r),Be(this,r+1,c).state},cursorCoords:function(r,c){var I,Q=this.doc.sel.primary();return r==null?I=Q.head:typeof r=="object"?I=xt(this.doc,r):I=r?Q.from():Q.to(),un(this,I,c||"page")},charCoords:function(r,c){return ki(this,xt(this.doc,r),c||"page")},coordsChar:function(r,c){return r=vo(this,r,c||"page"),Ri(this,r.left,r.top)},lineAtHeight:function(r,c){return r=vo(this,{top:r,left:0},c||"page").top,qt(this.doc,r+this.display.viewOffset)},heightAtLine:function(r,c,I){var Q=!1,ie;if(typeof r=="number"){var ce=this.doc.first+this.doc.size-1;r<this.doc.first?r=this.doc.first:r>ce&&(r=ce,Q=!0),ie=rt(this.doc,r)}else ie=r;return ii(this,ie,{top:0,left:0},c||"page",I||Q).top+(Q?this.doc.height-Lt(ie):0)},defaultTextHeight:function(){return ca(this.display)},defaultCharWidth:function(){return da(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,c,I,Q,ie){var ce=this.display;r=un(this,xt(this.doc,r));var ge=r.bottom,Ce=r.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),ce.sizer.appendChild(c),Q=="over")ge=r.top;else if(Q=="above"||Q=="near"){var Ae=Math.max(ce.wrapper.clientHeight,this.doc.height),je=Math.max(ce.sizer.clientWidth,ce.lineSpace.clientWidth);(Q=="above"||r.bottom+c.offsetHeight>Ae)&&r.top>c.offsetHeight?ge=r.top-c.offsetHeight:r.bottom+c.offsetHeight<=Ae&&(ge=r.bottom),Ce+c.offsetWidth>je&&(Ce=je-c.offsetWidth)}c.style.top=ge+"px",c.style.left=c.style.right="",ie=="right"?(Ce=ce.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(ie=="left"?Ce=0:ie=="middle"&&(Ce=(ce.sizer.clientWidth-c.offsetWidth)/2),c.style.left=Ce+"px"),I&&$s(this,{left:Ce,top:ge,right:Ce+c.offsetWidth,bottom:ge+c.offsetHeight})},triggerOnKeyDown:Lr(_s),triggerOnKeyPress:Lr(Ss),triggerOnKeyUp:Es,triggerOnMouseDown:Lr(Cs),execCommand:function(r){if(Va.hasOwnProperty(r))return Va[r].call(null,this)},triggerElectric:Lr(function(r){Ms(this,r)}),findPosH:function(r,c,I,Q){var ie=1;c<0&&(ie=-1,c=-c);for(var ce=xt(this.doc,r),ge=0;ge<c&&!(ce=io(this.doc,ce,ie,I,Q),ce.hitSide);++ge);return ce},moveH:Lr(function(r,c){var I=this;this.extendSelectionsBy(function(Q){return I.display.shift||I.doc.extend||Q.empty()?io(I.doc,Q.head,r,c,I.options.rtlMoveVisually):r<0?Q.from():Q.to()},le)}),deleteH:Lr(function(r,c){var I=this.doc.sel,Q=this.doc;I.somethingSelected()?Q.replaceSelection("",null,"+delete"):wa(this,function(ie){var ce=io(Q,ie.head,r,c,!1);return r<0?{from:ce,to:ie.head}:{from:ie.head,to:ce}})}),findPosV:function(r,c,I,Q){var ie=1,ce=Q;c<0&&(ie=-1,c=-c);for(var ge=xt(this.doc,r),Ce=0;Ce<c;++Ce){var Ae=un(this,ge,"div");if(ce==null?ce=Ae.left:Ae.left=ce,ge=Ls(this,Ae,ie,I),ge.hitSide)break}return ge},moveV:Lr(function(r,c){var I=this,Q=this.doc,ie=[],ce=!this.display.shift&&!Q.extend&&Q.sel.somethingSelected();if(Q.extendSelectionsBy(function(Ce){if(ce)return r<0?Ce.from():Ce.to();var Ae=un(I,Ce.head,"div");Ce.goalColumn!=null&&(Ae.left=Ce.goalColumn),ie.push(Ae.left);var je=Ls(I,Ae,r,c);return c=="page"&&Ce==Q.sel.primary()&&Ui(I,ki(I,je,"div").top-Ae.top),je},le),ie.length)for(var ge=0;ge<Q.sel.ranges.length;ge++)Q.sel.ranges[ge].goalColumn=ie[ge]}),findWordAt:function(r){var c=this.doc,I=rt(c,r.line).text,Q=r.ch,ie=r.ch;if(I){var ce=this.getHelper(r,"wordChars");(r.sticky=="before"||ie==I.length)&&Q?--Q:++ie;for(var ge=I.charAt(Q),Ce=S(ge,ce)?function(Ae){return S(Ae,ce)}:/\s/.test(ge)?function(Ae){return/\s/.test(Ae)}:function(Ae){return!/\s/.test(Ae)&&!S(Ae)};Q>0&&Ce(I.charAt(Q-1));)--Q;for(;ie<I.length&&Ce(I.charAt(ie));)++ie}return new Bt(Ye(r.line,Q),Ye(r.line,ie))},toggleOverwrite:function(r){if(r!=null&&r==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?q(this.display.cursorDiv,"CodeMirror-overwrite"):D(this.display.cursorDiv,"CodeMirror-overwrite"),Ue(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==he()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Lr(function(r,c){Ma(this,r,c)}),getScrollInfo:function(){var r=this.display.scroller;return{left:r.scrollLeft,top:r.scrollTop,height:r.scrollHeight-gn(this)-this.display.barHeight,width:r.scrollWidth-gn(this)-this.display.barWidth,clientHeight:Ti(this),clientWidth:Vn(this)}},scrollIntoView:Lr(function(r,c){r==null?(r={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof r=="number"?r={from:Ye(r,0),to:null}:r.from==null&&(r={from:r,to:null}),r.to||(r.to=r.from),r.margin=c||0,r.from.line!=null?Zs(this,r):Ao(this,r.from,r.to,r.margin)}),setSize:Lr(function(r,c){var I=this,Q=function(ce){return typeof ce=="number"||/^\d+$/.test(String(ce))?ce+"px":ce};r!=null&&(this.display.wrapper.style.width=Q(r)),c!=null&&(this.display.wrapper.style.height=Q(c)),this.options.lineWrapping&&po(this);var ie=this.display.viewFrom;this.doc.iter(ie,this.display.viewTo,function(ce){if(ce.widgets){for(var ge=0;ge<ce.widgets.length;ge++)if(ce.widgets[ge].noHScroll){In(I,ie,"widget");break}}++ie}),this.curOp.forceUpdate=!0,Ue(this,"refresh",this)}),operation:function(r){return Gr(this,r)},startOperation:function(){return qn(this)},endOperation:function(){return ea(this)},refresh:Lr(function(){var r=this.display.cachedTextHeight;Fr(this),this.curOp.forceUpdate=!0,Da(this),Ma(this,this.doc.scrollLeft,this.doc.scrollTop),Hi(this.display),(r==null||Math.abs(r-ca(this.display))>.5||this.options.lineWrapping)&&Pi(this),Ue(this,"refresh",this)}),swapDoc:Lr(function(r){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),Ho(this,r),Da(this),this.display.input.reset(),Ma(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,ur(this,"swapDoc",this,c),c}),phrase:function(r){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,r)?c[r]:r},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}},Ee(e),e.registerHelper=function(r,c,I){n.hasOwnProperty(r)||(n[r]=e[r]={_global:[]}),n[r][c]=I},e.registerGlobalHelper=function(r,c,I,Q){e.registerHelper(r,c,Q),n[r]._global.push({pred:I,val:Q})}}function io(e,t,n,r,c){var I=t,Q=n,ie=rt(e,t.line),ce=c&&e.direction=="rtl"?-n:n;function ge(){var ct=t.line+ce;return ct<e.first||ct>=e.first+e.size?!1:(t=new Ye(ct,t.ch,t.sticky),ie=rt(e,ct))}function Ce(ct){var it;if(r=="codepoint"){var ht=ie.text.charCodeAt(t.ch+(r>0?0:-1));isNaN(ht)?it=null:it=new Ye(t.line,Math.max(0,Math.min(ie.text.length,t.ch+n*(ht>=55296&&ht<56320?2:1))),-n)}else c?it=Pl(e.cm,ie,t,n):it=Qi(ie,t,n);if(it==null)if(!ct&&ge())t=qi(c,e.cm,ie,t.line,ce);else return!1;else t=it;return!0}if(r=="char"||r=="codepoint")Ce();else if(r=="column")Ce(!0);else if(r=="word"||r=="group")for(var Ae=null,je=r=="group",Pe=e.cm&&e.cm.getHelper(t,"wordChars"),Xe=!0;!(n<0&&!Ce(!Xe));Xe=!1){var Je=ie.text.charAt(t.ch)||`
`,Qe=S(Je,Pe)?"w":je&&Je==`
`?"n":!je||/\s/.test(Je)?null:"p";if(je&&!Xe&&!Qe&&(Qe="s"),Ae&&Ae!=Qe){n<0&&(n=1,Ce(),t.sticky="after");break}if(Qe&&(Ae=Qe),n>0&&!Ce(!Xe))break}var at=vi(e,t,I,Q,!0);return yr(I,at)&&(at.hitSide=!0),at}function Ls(e,t,n,r){var c=e.doc,I=t.left,Q;if(r=="page"){var ie=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ce=Math.max(ie-.5*ca(e.display),3);Q=(n>0?t.bottom:t.top)+n*ce}else r=="line"&&(Q=n>0?t.bottom+3:t.top-3);for(var ge;!(ge=Ri(e,I,Q),!ge.outside);){if(n<0?Q<=0:Q>=c.height){ge.hitSide=!0;break}Q+=n*5}return ge}var Xt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ee,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Xt.prototype.init=function(e){var t=this,n=this,r=n.cm,c=n.div=e.lineDiv;Is(c,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function I(ie){for(var ce=ie.target;ce;ce=ce.parentNode){if(ce==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ce.className))break}return!1}Oe(c,"paste",function(ie){if(!I(ie)||Ke(r,ie)||Rs(ie,r))return;o<=11&&setTimeout(Er(r,function(){return t.updateFromDOM()}),20)}),Oe(c,"compositionstart",function(ie){t.composing={data:ie.data,done:!1}}),Oe(c,"compositionupdate",function(ie){t.composing||(t.composing={data:ie.data,done:!1})}),Oe(c,"compositionend",function(ie){t.composing&&(ie.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Oe(c,"touchstart",function(){return n.forceCompositionEnd()}),Oe(c,"input",function(){t.composing||t.readFromDOMSoon()});function Q(ie){if(!I(ie)||Ke(r,ie))return;if(r.somethingSelected())Ei({lineWise:!1,text:r.getSelections()}),ie.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var ce=Ns(r);Ei({lineWise:!0,text:ce.text}),ie.type=="cut"&&r.operation(function(){r.setSelections(ce.ranges,0,xe),r.replaceSelection("",null,"cut")})}else return;if(ie.clipboardData){ie.clipboardData.clearData();var ge=dn.text.join(`
`);if(ie.clipboardData.setData("Text",ge),ie.clipboardData.getData("Text")==ge){ie.preventDefault();return}}var Ce=Ps(),Ae=Ce.firstChild;r.display.lineSpace.insertBefore(Ce,r.display.lineSpace.firstChild),Ae.value=dn.text.join(`
`);var je=document.activeElement;H(Ae),setTimeout(function(){r.display.lineSpace.removeChild(Ce),je.focus(),je==c&&n.showPrimarySelection()},50)}Oe(c,"copy",Q),Oe(c,"cut",Q)},Xt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Xt.prototype.prepareSelection=function(){var e=Eo(this.cm,!1);return e.focus=document.activeElement==this.div,e},Xt.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Xt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Xt.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),c=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||c.line<t.display.viewFrom){e.removeAllRanges();return}var I=Si(t,e.anchorNode,e.anchorOffset),Q=Si(t,e.focusNode,e.focusOffset);if(I&&!I.bad&&Q&&!Q.bad&&vt(zr(I,Q),r)==0&&vt(Ze(I,Q),c)==0)return;var ie=t.display.view,ce=r.line>=t.display.viewFrom&&js(t,r)||{node:ie[0].measure.map[2],offset:0},ge=c.line<t.display.viewTo&&js(t,c);if(!ge){var Ce=ie[ie.length-1].measure,Ae=Ce.maps?Ce.maps[Ce.maps.length-1]:Ce.map;ge={node:Ae[Ae.length-1],offset:Ae[Ae.length-2]-Ae[Ae.length-3]}}if(!ce||!ge){e.removeAllRanges();return}var je=e.rangeCount&&e.getRangeAt(0),Pe;try{Pe=se(ce.node,ce.offset,ge.offset,ge.node)}catch(Xe){}Pe&&(!T&&t.state.focused?(e.collapse(ce.node,ce.offset),Pe.collapsed||(e.removeAllRanges(),e.addRange(Pe))):(e.removeAllRanges(),e.addRange(Pe)),je&&e.anchorNode==null?e.addRange(je):T&&this.startGracePeriod()),this.rememberSelection()},Xt.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)},Xt.prototype.showMultipleSelections=function(e){U(this.cm.display.cursorDiv,e.cursors),U(this.cm.display.selectionDiv,e.selection)},Xt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Xt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return G(this.div,t)},Xt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Xt.prototype.blur=function(){this.div.blur()},Xt.prototype.getField=function(){return this.div},Xt.prototype.supportsTouch=function(){return!0},Xt.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Gr(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)},Xt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Xt.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var e=this.getSelection(),t=this.cm;if(O&&l&&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 n=Si(t,e.anchorNode,e.anchorOffset),r=Si(t,e.focusNode,e.focusOffset);n&&r&&Gr(t,function(){Rr(t.doc,Ln(n,r),xe),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})},Xt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,n=e.doc.sel.primary(),r=n.from(),c=n.to();if(r.ch==0&&r.line>e.firstLine()&&(r=Ye(r.line-1,rt(e.doc,r.line-1).length)),c.ch==rt(e.doc,c.line).text.length&&c.line<e.lastLine()&&(c=Ye(c.line+1,0)),r.line<t.viewFrom||c.line>t.viewTo-1)return!1;var I,Q,ie;r.line==t.viewFrom||(I=$n(e,r.line))==0?(Q=Tt(t.view[0].line),ie=t.view[0].node):(Q=Tt(t.view[I].line),ie=t.view[I-1].node.nextSibling);var ce=$n(e,c.line),ge,Ce;if(ce==t.view.length-1?(ge=t.viewTo-1,Ce=t.lineDiv.lastChild):(ge=Tt(t.view[ce+1].line)-1,Ce=t.view[ce+1].node.previousSibling),!ie)return!1;for(var Ae=e.doc.splitLines(ru(e,ie,Ce,Q,ge)),je=kt(e.doc,Ye(Q,0),Ye(ge,rt(e.doc,ge).text.length));Ae.length>1&&je.length>1;)if(Y(Ae)==Y(je))Ae.pop(),je.pop(),ge--;else if(Ae[0]==je[0])Ae.shift(),je.shift(),Q++;else break;for(var Pe=0,Xe=0,Je=Ae[0],Qe=je[0],at=Math.min(Je.length,Qe.length);Pe<at&&Je.charCodeAt(Pe)==Qe.charCodeAt(Pe);)++Pe;for(var ct=Y(Ae),it=Y(je),ht=Math.min(ct.length-(Ae.length==1?Pe:0),it.length-(je.length==1?Pe:0));Xe<ht&&ct.charCodeAt(ct.length-Xe-1)==it.charCodeAt(it.length-Xe-1);)++Xe;if(Ae.length==1&&je.length==1&&Q==r.line)for(;Pe&&Pe>r.ch&&ct.charCodeAt(ct.length-Xe-1)==it.charCodeAt(it.length-Xe-1);)Pe--,Xe++;Ae[Ae.length-1]=ct.slice(0,ct.length-Xe).replace(/^\u200b+/,""),Ae[0]=Ae[0].slice(Pe).replace(/\u200b+$/,"");var St=Ye(Q,Pe),wt=Ye(ge,je.length?Y(je).length-Xe:0);if(Ae.length>1||Ae[0]||vt(St,wt))return ba(e.doc,Ae,St,wt,"+input"),!0},Xt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Xt.prototype.reset=function(){this.forceCompositionEnd()},Xt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Xt.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)},Xt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Gr(this.cm,function(){return Fr(e.cm)})},Xt.prototype.setUneditable=function(e){e.contentEditable="false"},Xt.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||Er(this.cm,ao)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Xt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Xt.prototype.onContextMenu=function(){},Xt.prototype.resetPosition=function(){},Xt.prototype.needsContentAttribute=!0;function js(e,t){var n=Oi(e,t.line);if(!n||n.hidden)return null;var r=rt(e.doc,t.line),c=lo(n,r,t.line),I=Fe(r,e.doc.direction),Q="left";if(I){var ie=Le(I,t.ch);Q=ie%2?"right":"left"}var ce=fo(c.map,t.ch,Q);return ce.offset=ce.collapse=="right"?ce.end:ce.start,ce}function tu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Ea(e,t){return t&&(e.bad=!0),e}function ru(e,t,n,r,c){var I="",Q=!1,ie=e.doc.lineSeparator(),ce=!1;function ge(Pe){return function(Xe){return Xe.id==Pe}}function Ce(){Q&&(I+=ie,ce&&(I+=ie),Q=ce=!1)}function Ae(Pe){Pe&&(Ce(),I+=Pe)}function je(Pe){if(Pe.nodeType==1){var Xe=Pe.getAttribute("cm-text");if(Xe){Ae(Xe);return}var Je=Pe.getAttribute("cm-marker"),Qe;if(Je){var at=e.findMarks(Ye(r,0),Ye(c+1,0),ge(+Je));at.length&&(Qe=at[0].find(0))&&Ae(kt(e.doc,Qe.from,Qe.to).join(ie));return}if(Pe.getAttribute("contenteditable")=="false")return;var ct=/^(pre|div|p|li|table|br)$/i.test(Pe.nodeName);if(!/^br$/i.test(Pe.nodeName)&&Pe.textContent.length==0)return;ct&&Ce();for(var it=0;it<Pe.childNodes.length;it++)je(Pe.childNodes[it]);/^(pre|p)$/i.test(Pe.nodeName)&&(ce=!0),ct&&(Q=!0)}else Pe.nodeType==3&&Ae(Pe.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(je(t),t==n);)t=t.nextSibling,ce=!1;return I}function Si(e,t,n){var r;if(t==e.display.lineDiv){if(r=e.display.lineDiv.childNodes[n],!r)return Ea(e.clipPos(Ye(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var c=0;c<e.display.view.length;c++){var I=e.display.view[c];if(I.node==r)return nu(I,t,n)}}function nu(e,t,n){var r=e.text.firstChild,c=!1;if(!t||!G(r,t))return Ea(Ye(Tt(e.line),0),!0);if(t==r&&(c=!0,t=r.childNodes[n],n=0,!t)){var I=e.rest?Y(e.rest):e.line;return Ea(Ye(Tt(I),I.text.length),c)}var Q=t.nodeType==3?t:null,ie=t;for(!Q&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(Q=t.firstChild,n&&(n=Q.nodeValue.length));ie.parentNode!=r;)ie=ie.parentNode;var ce=e.measure,ge=ce.maps;function Ce(Qe,at,ct){for(var it=-1;it<(ge?ge.length:0);it++)for(var ht=it<0?ce.map:ge[it],St=0;St<ht.length;St+=3){var wt=ht[St+2];if(wt==Qe||wt==at){var Dt=Tt(it<0?e.line:e.rest[it]),Jt=ht[St]+ct;return(ct<0||wt!=Qe)&&(Jt=ht[St+(ct?1:0)]),Ye(Dt,Jt)}}}var Ae=Ce(Q,ie,n);if(Ae)return Ea(Ae,c);for(var je=ie.nextSibling,Pe=Q?Q.nodeValue.length-n:0;je;je=je.nextSibling){if(Ae=Ce(je,je.firstChild,0),Ae)return Ea(Ye(Ae.line,Ae.ch-Pe),c);Pe+=je.textContent.length}for(var Xe=ie.previousSibling,Je=n;Xe;Xe=Xe.previousSibling){if(Ae=Ce(Xe,Xe.firstChild,-1),Ae)return Ea(Ye(Ae.line,Ae.ch+Je),c);Je+=Xe.textContent.length}}var cr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ee,this.hasSelection=!1,this.composing=null};cr.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var c=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),w&&(c.style.width="0px"),Oe(c,"input",function(){f&&o>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),Oe(c,"paste",function(Q){if(Ke(r,Q)||Rs(Q,r))return;r.state.pasteIncoming=+new Date,n.fastPoll()});function I(Q){if(Ke(r,Q))return;if(r.somethingSelected())Ei({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var ie=Ns(r);Ei({lineWise:!0,text:ie.text}),Q.type=="cut"?r.setSelections(ie.ranges,null,xe):(n.prevInput="",c.value=ie.text.join(`
`),H(c))}else return;Q.type=="cut"&&(r.state.cutIncoming=+new Date)}Oe(c,"cut",I),Oe(c,"copy",I),Oe(e.scroller,"paste",function(Q){if(Zr(e,Q)||Ke(r,Q))return;if(!c.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var ie=new Event("paste");ie.clipboardData=Q.clipboardData,c.dispatchEvent(ie)}),Oe(e.lineSpace,"selectstart",function(Q){Zr(e,Q)||ve(Q)}),Oe(c,"compositionstart",function(){var Q=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:Q,range:r.markText(Q,r.getCursor("to"),{className:"CodeMirror-composing"})}}),Oe(c,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},cr.prototype.createField=function(e){this.wrapper=Ps(),this.textarea=this.wrapper.firstChild},cr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},cr.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Eo(e);if(e.options.moveInputWithCursor){var c=un(e,n.sel.primary().head,"div"),I=t.wrapper.getBoundingClientRect(),Q=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,c.top+Q.top-I.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,c.left+Q.left-I.left))}return r},cr.prototype.showSelection=function(e){var t=this.cm,n=t.display;U(n.cursorDiv,e.cursors),U(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},cr.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&H(this.textarea),f&&o>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",f&&o>=9&&(this.hasSelection=null))},cr.prototype.getField=function(){return this.textarea},cr.prototype.supportsTouch=function(){return!1},cr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!C||he()!=this.textarea))try{this.textarea.focus()}catch(e){}},cr.prototype.blur=function(){this.textarea.blur()},cr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},cr.prototype.receivedFocus=function(){this.slowPoll()},cr.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()})},cr.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},cr.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||ft(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var c=n.value;if(c==r&&!t.somethingSelected())return!1;if(f&&o>=9&&this.hasSelection===c||M&&/[\uf700-\uf7ff]/.test(c))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var I=c.charCodeAt(0);if(I==8203&&!r&&(r="\u200B"),I==8666)return this.reset(),this.cm.execCommand("undo")}for(var Q=0,ie=Math.min(r.length,c.length);Q<ie&&r.charCodeAt(Q)==c.charCodeAt(Q);)++Q;return Gr(t,function(){ao(t,c.slice(Q),r.length-Q,null,e.composing?"*compose":null),c.length>1e3||c.indexOf(`
`)>-1?n.value=e.prevInput="":e.prevInput=c,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},cr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},cr.prototype.onKeyPress=function(){f&&o>=9&&(this.hasSelection=null),this.fastPoll()},cr.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,c=t.textarea;t.contextMenuPending&&t.contextMenuPending();var I=Jn(n,e),Q=r.scroller.scrollTop;if(!I||v)return;var ie=n.options.resetSelectionOnContextMenu;ie&&n.doc.sel.contains(I)==-1&&Er(n,Rr)(n.doc,Ln(I),xe);var ce=c.style.cssText,ge=t.wrapper.style.cssText,Ce=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(e.clientY-Ce.top-5)+"px; left: "+(e.clientX-Ce.left-5)+`px;
z-index: 1000; background: `+(f?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ae;i&&(Ae=window.scrollY),r.input.focus(),i&&window.scrollTo(null,Ae),r.input.reset(),n.somethingSelected()||(c.value=t.prevInput=" "),t.contextMenuPending=Pe,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function je(){if(c.selectionStart!=null){var Je=n.somethingSelected(),Qe="\u200B"+(Je?c.value:"");c.value="\u21DA",c.value=Qe,t.prevInput=Je?"":"\u200B",c.selectionStart=1,c.selectionEnd=Qe.length,r.selForContextMenu=n.doc.sel}}function Pe(){if(t.contextMenuPending!=Pe)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=ge,c.style.cssText=ce,f&&o<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=Q),c.selectionStart!=null){(!f||f&&o<9)&&je();var Je=0,Qe=function(){r.selForContextMenu==n.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&t.prevInput=="\u200B"?Er(n,ts)(n):Je++<10?r.detectingSelectAll=setTimeout(Qe,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(Qe,200)}}if(f&&o>=9&&je(),V){Se(e);var Xe=function(){$e(window,"mouseup",Xe),setTimeout(Pe,20)};Oe(window,"mouseup",Xe)}else setTimeout(Pe,50)},cr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},cr.prototype.setUneditable=function(){},cr.prototype.needsContentAttribute=!1;function au(e,t){if(t=t?y(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 n=he();t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=ie.getValue()}var c;if(e.form&&(Oe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var I=e.form;c=I.submit;try{var Q=I.submit=function(){r(),I.submit=c,I.submit(),I.submit=Q}}catch(ce){}}t.finishInit=function(ce){ce.save=r,ce.getTextArea=function(){return e},ce.toTextArea=function(){ce.toTextArea=isNaN,r(),e.parentNode.removeChild(ce.getWrapperElement()),e.style.display="",e.form&&($e(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=c))}},e.style.display="none";var ie=tr(function(ce){return e.parentNode.insertBefore(ce,e.nextSibling)},t);return ie}function iu(e){e.off=$e,e.on=Oe,e.wheelEventPixels=fl,e.Doc=Ur,e.splitLines=pt,e.countColumn=A,e.findColumn=ue,e.isWordChar=j,e.Pass=be,e.signal=Ue,e.Line=Yt,e.changeEnd=jn,e.scrollbarModel=Ro,e.Pos=Ye,e.cmpPos=vt,e.modes=Wt,e.mimeModes=Ct,e.resolveMode=sr,e.getMode=fr,e.modeExtensions=Ft,e.extendMode=vr,e.copyState=rr,e.startState=wr,e.innerMode=Qt,e.commands=Va,e.keyMap=Cn,e.keyName=vs,e.isModifierKey=ms,e.lookupKey=xa,e.normalizeKeyMap=Il,e.StringStream=Pt,e.SharedTextMarker=Ka,e.TextMarker=Un,e.LineWidget=za,e.e_preventDefault=ve,e.e_stopPropagation=ye,e.e_stop=Se,e.addClass=q,e.contains=G,e.rmClass=D,e.keyNames=Bn}$l(tr),eu(tr);var ou="iter insert remove copy getEditor constructor".split(" ");for(var Ci in Ur.prototype)Ur.prototype.hasOwnProperty(Ci)&&oe(ou,Ci)<0&&(tr.prototype[Ci]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ur.prototype[Ci]));return Ee(Ur),tr.inputStyles={textarea:cr,contenteditable:Xt},tr.defineMode=function(e){!tr.defaults.mode&&e!="null"&&(tr.defaults.mode=e),At.apply(this,arguments)},tr.defineMIME=dr,tr.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),tr.defineMIME("text/plain","null"),tr.defineExtension=function(e,t){tr.prototype[e]=t},tr.defineDocExtension=function(e,t){Ur.prototype[e]=t},tr.fromTextArea=au,iu(tr),tr.version="5.58.2",tr})},WYAk:function(s,z,d){(function(h,a){s.exports=z=a(d("Ib8C"))})(this,function(h){(function(){var a=h,T=a.lib,_=T.Base,x=a.enc,p=x.Utf8,f=a.algo,o=f.HMAC=_.extend({init:function(i,u){i=this._hasher=new i.init,typeof u=="string"&&(u=p.parse(u));var l=i.blockSize,v=l*4;u.sigBytes>v&&(u=i.finalize(u)),u.clamp();for(var m=this._oKey=u.clone(),g=this._iKey=u.clone(),E=m.words,w=g.words,O=0;O<l;O++)E[O]^=1549556828,w[O]^=909522486;m.sigBytes=g.sigBytes=v,this.reset()},reset:function(){var i=this._hasher;i.reset(),i.update(this._iKey)},update:function(i){return this._hasher.update(i),this},finalize:function(i){var u=this._hasher,l=u.finalize(i);u.reset();var v=u.finalize(this._oKey.clone().concat(l));return v}})})()})},WaYH:function(s,z,d){"use strict";var h=d("rePB"),a=d("Ff2n"),T=d("VTBJ"),_=d("1OyB"),x=d("vuIU"),p=d("JX7q"),f=d("Ji7U"),o=d("LK+K"),i=d("q1tI"),u=d("TSYQ"),l=d.n(u),v=d("sboe"),m=d("OZM5"),g=function(V){var X=V.prefixCls,D=V.level,L=V.isStart,U=V.isEnd;if(!D)return null;for(var J="".concat(X,"-indent-unit"),ae=[],se=0;se<D;se+=1){var G;ae.push(i.createElement("span",{key:se,className:l()(J,(G={},Object(h.a)(G,"".concat(J,"-start"),L[se+1]),Object(h.a)(G,"".concat(J,"-end"),U[se+1]),Object(h.a)(G,"".concat(J,"-end-first-level"),!se&&U[0]),G))}))}return i.createElement("span",{"aria-hidden":"true",className:"".concat(X,"-indent")},ae)},E=g,w=d("815F"),O="open",C="close",M="---",N=function(b){Object(f.a)(X,b);var V=Object(o.a)(X);function X(){var D;return Object(_.a)(this,X),D=V.apply(this,arguments),D.state={dragNodeHighlight:!1},D.onSelectorClick=function(L){var U=D.props.context.onNodeClick;U(L,Object(w.b)(D.props)),D.isSelectable()?D.onSelect(L):D.onCheck(L)},D.onSelectorDoubleClick=function(L){var U=D.props.context.onNodeDoubleClick;U(L,Object(w.b)(D.props))},D.onSelect=function(L){if(D.isDisabled())return;var U=D.props.context.onNodeSelect;L.preventDefault(),U(L,Object(w.b)(D.props))},D.onCheck=function(L){if(D.isDisabled())return;var U=D.props,J=U.disableCheckbox,ae=U.checked,se=D.props.context.onNodeCheck;if(!D.isCheckable()||J)return;L.preventDefault();var G=!ae;se(L,Object(w.b)(D.props),G)},D.onMouseEnter=function(L){var U=D.props.context.onNodeMouseEnter;U(L,Object(w.b)(D.props))},D.onMouseLeave=function(L){var U=D.props.context.onNodeMouseLeave;U(L,Object(w.b)(D.props))},D.onContextMenu=function(L){var U=D.props.context.onNodeContextMenu;U(L,Object(w.b)(D.props))},D.onDragStart=function(L){var U=D.props.context.onNodeDragStart;L.stopPropagation(),D.setState({dragNodeHighlight:!0}),U(L,Object(p.a)(D));try{L.dataTransfer.setData("text/plain","")}catch(J){}},D.onDragEnter=function(L){var U=D.props.context.onNodeDragEnter;L.preventDefault(),L.stopPropagation(),U(L,Object(p.a)(D))},D.onDragOver=function(L){var U=D.props.context.onNodeDragOver;L.preventDefault(),L.stopPropagation(),U(L,Object(p.a)(D))},D.onDragLeave=function(L){var U=D.props.context.onNodeDragLeave;L.stopPropagation(),U(L,Object(p.a)(D))},D.onDragEnd=function(L){var U=D.props.context.onNodeDragEnd;L.stopPropagation(),D.setState({dragNodeHighlight:!1}),U(L,Object(p.a)(D))},D.onDrop=function(L){var U=D.props.context.onNodeDrop;L.preventDefault(),L.stopPropagation(),D.setState({dragNodeHighlight:!1}),U(L,Object(p.a)(D))},D.onExpand=function(L){var U=D.props.context.onNodeExpand;U(L,Object(w.b)(D.props))},D.setSelectHandle=function(L){D.selectHandle=L},D.getNodeState=function(){var L=D.props.expanded;return D.isLeaf()?null:L?O:C},D.hasChildren=function(){var L=D.props.eventKey,U=D.props.context.keyEntities,J=U[L]||{},ae=J.children;return!!(ae||[]).length},D.isLeaf=function(){var L=D.props,U=L.isLeaf,J=L.loaded,ae=D.props.context.loadData,se=D.hasChildren();return U===!1?!1:U||!ae&&!se||ae&&J&&!se},D.isDisabled=function(){var L=D.props.disabled,U=D.props.context.disabled;return!!(U||L)},D.isCheckable=function(){var L=D.props.checkable,U=D.props.context.checkable;return!U||L===!1?!1:U},D.syncLoadData=function(L){var U=L.expanded,J=L.loading,ae=L.loaded,se=D.props.context,G=se.loadData,he=se.onNodeLoad;if(J)return;G&&U&&!D.isLeaf()&&(!D.hasChildren()&&!ae&&he(Object(w.b)(D.props)))},D.renderSwitcher=function(){var L=D.props,U=L.expanded,J=L.switcherIcon,ae=D.props.context,se=ae.prefixCls,G=ae.switcherIcon,he=J||G;if(D.isLeaf())return i.createElement("span",{className:l()("".concat(se,"-switcher"),"".concat(se,"-switcher-noop"))},typeof he=="function"?he(Object(T.a)(Object(T.a)({},D.props),{},{isLeaf:!0})):he);var q=l()("".concat(se,"-switcher"),"".concat(se,"-switcher_").concat(U?O:C));return i.createElement("span",{onClick:D.onExpand,className:q},typeof he=="function"?he(Object(T.a)(Object(T.a)({},D.props),{},{isLeaf:!1})):he)},D.renderCheckbox=function(){var L=D.props,U=L.checked,J=L.halfChecked,ae=L.disableCheckbox,se=D.props.context.prefixCls,G=D.isDisabled(),he=D.isCheckable();if(!he)return null;var q=typeof he!="boolean"?he:null;return i.createElement("span",{className:l()("".concat(se,"-checkbox"),U&&"".concat(se,"-checkbox-checked"),!U&&J&&"".concat(se,"-checkbox-indeterminate"),(G||ae)&&"".concat(se,"-checkbox-disabled")),onClick:D.onCheck},q)},D.renderIcon=function(){var L=D.props.loading,U=D.props.context.prefixCls;return i.createElement("span",{className:l()("".concat(U,"-iconEle"),"".concat(U,"-icon__").concat(D.getNodeState()||"docu"),L&&"".concat(U,"-icon_loading"))})},D.renderSelector=function(){var L=D.state.dragNodeHighlight,U=D.props,J=U.title,ae=U.selected,se=U.icon,G=U.loading,he=U.data,q=D.props.context,W=q.prefixCls,H=q.showIcon,R=q.icon,y=q.draggable,A=q.loadData,ee=q.titleRender,oe=D.isDisabled(),de="".concat(W,"-node-content-wrapper"),be;if(H){var xe=se||R;be=xe?i.createElement("span",{className:l()("".concat(W,"-iconEle"),"".concat(W,"-icon__customize"))},typeof xe=="function"?xe(D.props):xe):D.renderIcon()}else A&&G&&(be=D.renderIcon());var te;typeof J=="function"?te=J(he):ee?te=ee(he):te=J;var le=i.createElement("span",{className:"".concat(W,"-title")},te);return i.createElement("span",{ref:D.setSelectHandle,title:typeof J=="string"?J:"",className:l()("".concat(de),"".concat(de,"-").concat(D.getNodeState()||"normal"),!oe&&(ae||L)&&"".concat(W,"-node-selected"),!oe&&y&&"draggable"),draggable:!oe&&y||void 0,"aria-grabbed":!oe&&y||void 0,onMouseEnter:D.onMouseEnter,onMouseLeave:D.onMouseLeave,onContextMenu:D.onContextMenu,onClick:D.onSelectorClick,onDoubleClick:D.onSelectorDoubleClick,onDragStart:y?D.onDragStart:void 0},be,le)},D}return Object(x.a)(X,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var L=this.props.selectable,U=this.props.context.selectable;return typeof L=="boolean"?L:U}},{key:"render",value:function(){var L,U=this.props,J=U.eventKey,ae=U.className,se=U.style,G=U.dragOver,he=U.dragOverGapTop,q=U.dragOverGapBottom,W=U.isLeaf,H=U.isStart,R=U.isEnd,y=U.expanded,A=U.selected,ee=U.checked,oe=U.halfChecked,de=U.loading,be=U.domRef,xe=U.active,te=U.onMouseMove,le=Object(a.a)(U,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),ue=this.props.context,Z=ue.prefixCls,ne=ue.filterTreeNode,Y=ue.draggable,re=ue.keyEntities,F=this.isDisabled(),K=Object(m.f)(le),pe=re[J]||{},$=pe.level,j=R[R.length-1];return i.createElement("div",Object.assign({ref:be,className:l()(ae,"".concat(Z,"-treenode"),(L={},Object(h.a)(L,"".concat(Z,"-treenode-disabled"),F),Object(h.a)(L,"".concat(Z,"-treenode-switcher-").concat(y?"open":"close"),!W),Object(h.a)(L,"".concat(Z,"-treenode-checkbox-checked"),ee),Object(h.a)(L,"".concat(Z,"-treenode-checkbox-indeterminate"),oe),Object(h.a)(L,"".concat(Z,"-treenode-selected"),A),Object(h.a)(L,"".concat(Z,"-treenode-loading"),de),Object(h.a)(L,"".concat(Z,"-treenode-active"),xe),Object(h.a)(L,"".concat(Z,"-treenode-leaf-last"),j),Object(h.a)(L,"drag-over",!F&&G),Object(h.a)(L,"drag-over-gap-top",!F&&he),Object(h.a)(L,"drag-over-gap-bottom",!F&&q),Object(h.a)(L,"filter-node",ne&&ne(Object(w.b)(this.props))),L)),style:se,onDragEnter:Y?this.onDragEnter:void 0,onDragOver:Y?this.onDragOver:void 0,onDragLeave:Y?this.onDragLeave:void 0,onDrop:Y?this.onDrop:void 0,onDragEnd:Y?this.onDragEnd:void 0,onMouseMove:te},K),i.createElement(E,{prefixCls:Z,level:$,isStart:H,isEnd:R}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),X}(i.Component),P=function(V){return i.createElement(v.a.Consumer,null,function(X){return i.createElement(N,Object.assign({},V,{context:X}))})};P.displayName="TreeNode",P.defaultProps={title:M},P.isTreeNode=1;var k=z.a=P},XIdC:function(s,z,d){"use strict";var h=d("rePB"),a=d("ODXe"),T=d("Ff2n"),_=d("q1tI"),x=d.n(_),p=d("TSYQ"),f=d.n(p),o=d("6cGi"),i=d("4IlW"),u=_.forwardRef(function(l,v){var m,g=l.prefixCls,E=g===void 0?"rc-switch":g,w=l.className,O=l.checked,C=l.defaultChecked,M=l.disabled,N=l.loadingIcon,P=l.checkedChildren,k=l.unCheckedChildren,b=l.onClick,V=l.onChange,X=l.onKeyDown,D=Object(T.a)(l,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),L=Object(o.a)(!1,{value:O,defaultValue:C}),U=Object(a.a)(L,2),J=U[0],ae=U[1];function se(W,H){var R=J;return M||(R=W,ae(R),V==null||V(R,H)),R}function G(W){W.which===i.a.LEFT?se(!1,W):W.which===i.a.RIGHT&&se(!0,W),X==null||X(W)}function he(W){var H=se(!J,W);b==null||b(H,W)}var q=f()(E,w,(m={},Object(h.a)(m,"".concat(E,"-checked"),J),Object(h.a)(m,"".concat(E,"-disabled"),M),m));return _.createElement("button",Object.assign({},D,{type:"button",role:"switch","aria-checked":J,disabled:M,className:q,ref:v,onKeyDown:G,onClick:he}),N,_.createElement("span",{className:"".concat(E,"-inner")},J?P:k))});u.displayName="Switch",z.a=u},Y1PL:function(s,z,d){"use strict";d.r(z),d.d(z,"ResizableTextArea",function(){return oe});var h=d("wx14"),a=d("1OyB"),T=d("vuIU"),_=d("Ji7U"),x=d("LK+K"),p=d("q1tI"),f=d("VTBJ"),o=d("rePB"),i=d("Zm9Q"),u=d("Kwbf"),l=d("c+Xe"),v=d("m+aA"),m=d("bdgK"),g=new Map;function E(xe){xe.forEach(function(te){var le,ue=te.target;(le=g.get(ue))===null||le===void 0||le.forEach(function(Z){return Z(ue)})})}var w=new m.default(E),O=null,C=null;function M(xe,te){g.has(xe)||(g.set(xe,new Set),w.observe(xe)),g.get(xe).add(te)}function N(xe,te){g.has(xe)&&(g.get(xe).delete(te),g.get(xe).size||(w.unobserve(xe),g.delete(xe)))}var P=function(xe){Object(_.a)(le,xe);var te=Object(x.a)(le);function le(){return Object(a.a)(this,le),te.apply(this,arguments)}return Object(T.a)(le,[{key:"render",value:function(){return this.props.children}}]),le}(p.Component),k=p.createContext(null);function b(xe){var te=xe.children,le=xe.onBatchResize,ue=p.useRef(0),Z=p.useRef([]),ne=p.useContext(k),Y=p.useCallback(function(re,F,K){ue.current+=1;var pe=ue.current;Z.current.push({size:re,element:F,data:K}),Promise.resolve().then(function(){pe===ue.current&&(le==null||le(Z.current),Z.current=[])}),ne==null||ne(re,F,K)},[le,ne]);return p.createElement(k.Provider,{value:Y},te)}function V(xe){var te=xe.children,le=xe.disabled,ue=p.useRef(null),Z=p.useRef(null),ne=p.useContext(k),Y=p.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),re=p.isValidElement(te)&&Object(l.c)(te),F=re?te.ref:null,K=p.useMemo(function(){return Object(l.a)(F,ue)},[F,ue]),pe=p.useRef(xe);pe.current=xe;var $=p.useCallback(function(j){var S=pe.current,B=S.onResize,me=S.data,fe=j.getBoundingClientRect(),we=fe.width,ke=fe.height,Me=j.offsetWidth,Ne=j.offsetHeight,Le=Math.floor(we),We=Math.floor(ke);if(Y.current.width!==Le||Y.current.height!==We||Y.current.offsetWidth!==Me||Y.current.offsetHeight!==Ne){var Fe={width:Le,height:We,offsetWidth:Me,offsetHeight:Ne};Y.current=Fe;var He=Me===Math.round(we)?we:Me,Oe=Ne===Math.round(ke)?ke:Ne,Ve=Object(f.a)(Object(f.a)({},Fe),{},{offsetWidth:He,offsetHeight:Oe});ne==null||ne(Ve,j,me),B&&Promise.resolve().then(function(){B(Ve,j)})}},[]);return p.useEffect(function(){var j=Object(v.a)(ue.current)||Object(v.a)(Z.current);return j&&!le&&M(j,$),function(){return N(j,$)}},[ue.current,le]),p.createElement(P,{ref:Z},re?p.cloneElement(te,{ref:K}):te)}var X="rc-observer-key";function D(xe){var te=xe.children,le=Object(i.a)(te);return le.map(function(ue,Z){var ne=(ue==null?void 0:ue.key)||"".concat(X,"-").concat(Z);return p.createElement(V,Object(h.a)({},xe,{key:ne}),ue)})}D.Collection=b;var L=D,U=d("bT9E"),J=d("TSYQ"),ae=d.n(J),se=`
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
`,G=["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"],he={},q;function W(xe){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,le=xe.getAttribute("id")||xe.getAttribute("data-reactid")||xe.getAttribute("name");if(te&&he[le])return he[le];var ue=window.getComputedStyle(xe),Z=ue.getPropertyValue("box-sizing")||ue.getPropertyValue("-moz-box-sizing")||ue.getPropertyValue("-webkit-box-sizing"),ne=parseFloat(ue.getPropertyValue("padding-bottom"))+parseFloat(ue.getPropertyValue("padding-top")),Y=parseFloat(ue.getPropertyValue("border-bottom-width"))+parseFloat(ue.getPropertyValue("border-top-width")),re=G.map(function(K){return"".concat(K,":").concat(ue.getPropertyValue(K))}).join(";"),F={sizingStyle:re,paddingSize:ne,borderSize:Y,boxSizing:Z};return te&&le&&(he[le]=F),F}function H(xe){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ue=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)),xe.getAttribute("wrap")?q.setAttribute("wrap",xe.getAttribute("wrap")):q.removeAttribute("wrap");var Z=W(xe,te),ne=Z.paddingSize,Y=Z.borderSize,re=Z.boxSizing,F=Z.sizingStyle;q.setAttribute("style","".concat(F,";").concat(se)),q.value=xe.value||xe.placeholder||"";var K=Number.MIN_SAFE_INTEGER,pe=Number.MAX_SAFE_INTEGER,$=q.scrollHeight,j;if(re==="border-box"?$+=Y:re==="content-box"&&($-=ne),le!==null||ue!==null){q.value=" ";var S=q.scrollHeight-ne;le!==null&&(K=S*le,re==="border-box"&&(K=K+ne+Y),$=Math.max(K,$)),ue!==null&&(pe=S*ue,re==="border-box"&&(pe=pe+ne+Y),j=$>pe?"":"hidden",$=Math.min(pe,$))}return{height:$,minHeight:K,maxHeight:pe,overflowY:j,resize:"none"}}var R=d("Gytx"),y=d.n(R),A;(function(xe){xe[xe.NONE=0]="NONE",xe[xe.RESIZING=1]="RESIZING",xe[xe.RESIZED=2]="RESIZED"})(A||(A={}));var ee=function(xe){Object(_.a)(le,xe);var te=Object(x.a)(le);function le(ue){var Z;return Object(a.a)(this,le),Z=te.call(this,ue),Z.nextFrameActionId=void 0,Z.resizeFrameId=void 0,Z.textArea=void 0,Z.saveTextArea=function(ne){Z.textArea=ne},Z.handleResize=function(ne){var Y=Z.state.resizeStatus,re=Z.props,F=re.autoSize,K=re.onResize;if(Y!==A.NONE)return;typeof K=="function"&&K(ne),F&&Z.resizeOnNextFrame()},Z.resizeOnNextFrame=function(){cancelAnimationFrame(Z.nextFrameActionId),Z.nextFrameActionId=requestAnimationFrame(Z.resizeTextarea)},Z.resizeTextarea=function(){var ne=Z.props.autoSize;if(!ne||!Z.textArea)return;var Y=ne.minRows,re=ne.maxRows,F=H(Z.textArea,!1,Y,re);Z.setState({textareaStyles:F,resizeStatus:A.RESIZING},function(){cancelAnimationFrame(Z.resizeFrameId),Z.resizeFrameId=requestAnimationFrame(function(){Z.setState({resizeStatus:A.RESIZED},function(){Z.resizeFrameId=requestAnimationFrame(function(){Z.setState({resizeStatus:A.NONE}),Z.fixFirefoxAutoScroll()})})})})},Z.renderTextArea=function(){var ne=Z.props,Y=ne.prefixCls,re=Y===void 0?"rc-textarea":Y,F=ne.autoSize,K=ne.onResize,pe=ne.className,$=ne.disabled,j=Z.state,S=j.textareaStyles,B=j.resizeStatus,me=Object(U.a)(Z.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),fe=ae()(re,pe,Object(o.a)({},"".concat(re,"-disabled"),$));"value"in me&&(me.value=me.value||"");var we=Object(f.a)(Object(f.a)(Object(f.a)({},Z.props.style),S),B===A.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return p.createElement(L,{onResize:Z.handleResize,disabled:!(F||K)},p.createElement("textarea",Object(h.a)({},me,{className:fe,style:we,ref:Z.saveTextArea})))},Z.state={textareaStyles:{},resizeStatus:A.NONE},Z}return Object(T.a)(le,[{key:"componentDidUpdate",value:function(Z){(Z.value!==this.props.value||!y()(Z.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 Z=this.textArea.selectionStart,ne=this.textArea.selectionEnd;this.textArea.setSelectionRange(Z,ne)}}catch(Y){}}},{key:"render",value:function(){return this.renderTextArea()}}]),le}(p.Component),oe=ee,de=function(xe){Object(_.a)(le,xe);var te=Object(x.a)(le);function le(ue){var Z;Object(a.a)(this,le),Z=te.call(this,ue),Z.resizableTextArea=void 0,Z.focus=function(){Z.resizableTextArea.textArea.focus()},Z.saveTextArea=function(Y){Z.resizableTextArea=Y},Z.handleChange=function(Y){var re=Z.props.onChange;Z.setValue(Y.target.value,function(){Z.resizableTextArea.resizeTextarea()}),re&&re(Y)},Z.handleKeyDown=function(Y){var re=Z.props,F=re.onPressEnter,K=re.onKeyDown;Y.keyCode===13&&F&&F(Y),K&&K(Y)};var ne=typeof ue.value=="undefined"||ue.value===null?ue.defaultValue:ue.value;return Z.state={value:ne},Z}return Object(T.a)(le,[{key:"setValue",value:function(Z,ne){"value"in this.props||this.setState({value:Z},ne)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return p.createElement(oe,Object(h.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(Z){return"value"in Z?{value:Z.value}:null}}]),le}(p.Component),be=z.default=de},ZD9Y:function(s,z,d){"use strict";var h=d("BoS7"),a=d("Sdc0"),T=d("OaEy"),_=d("2fM7"),x=d("q1tI"),p=d.n(x),f=d("lOMy"),o=d.n(f),i=_.a.Option;z.a=function(u){var l=u.onFontSizeChange,v=u.cmFontSize,m=u.cmCodeMode,g=u.onCodeModeChange,E=u.onTabToSpace,w=u.className,O=w===void 0?"":w,C=u.tabToSpace,M=u.children;return p.a.createElement("div",{className:"tpi-code-setting ".concat(O)},p.a.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),p.a.createElement("section",null,p.a.createElement("div",{className:"file-item"},p.a.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),p.a.createElement(_.a,{bordered:!1,size:"small",value:m,onChange:g},p.a.createElement(i,{value:"vs"},"\u767D\u8272\u80CC\u666F"),p.a.createElement(i,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),p.a.createElement("div",{className:"file-item"},p.a.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),p.a.createElement(_.a,{bordered:!1,size:"small",value:v,onChange:l},p.a.createElement(i,{value:12},"12px"),p.a.createElement(i,{value:14},"14px"),p.a.createElement(i,{value:16},"16px"),p.a.createElement(i,{value:18},"18px"),p.a.createElement(i,{value:20},"20px"),p.a.createElement(i,{value:22},"22px"))),p.a.createElement("div",{className:"file-item"},p.a.createElement("b",null,"Tab\u8F6C\u6362"),p.a.createElement(a.a,{checked:C,onChange:E}))),p.a.createElement("h3",null,"\u5FEB\u6377\u952E"),p.a.createElement("section",null,p.a.createElement("div",{className:"file-item"},p.a.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),p.a.createElement("span",null,"Ctrl + S")),p.a.createElement("div",{className:"file-item"},p.a.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),p.a.createElement("span",null,"F1 / Alt + F1")),p.a.createElement("div",{className:"file-item"},p.a.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),p.a.createElement("span",null,"Ctrl + ]/[")),p.a.createElement("div",{className:"file-item"},p.a.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),p.a.createElement("span",null,"Ctrl + Shift + \\")),p.a.createElement("div",{className:"file-item"},p.a.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),p.a.createElement("span",null,"Home")),p.a.createElement("div",{className:"file-item"},p.a.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),p.a.createElement("span",null,"End"))),M)}},ZW9T:function(s,z,d){"use strict";d.d(z,"a",function(){return P});var h=d("k1fw"),a=d("miYZ"),T=d("tsqr"),_=d("rAM+"),x=d("tJVT"),p=d("PpiC"),f=d("q1tI"),o=d.n(f),i=d("bdgK");function u(k,b,V,X,D){var L=b.getWordUntilPosition(V),U={startLineNumber:V.lineNumber,endLineNumber:V.lineNumber,startColumn:L.startColumn,endColumn:L.endColumn},J=X.map(function(ae){return{label:ae,kind:k.languages.CompletionItemKind.Keyword,insertText:ae,insertTextRules:k.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:U}});return D.map(function(ae){J.push(Object(h.a)(Object(h.a)({},ae),{},{range:U}))}),J}var l=function(k){var b={label:"ifelse",kind:k.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`),insertTextRules:k.languages.CompletionItemInsertTextRule.InsertAsSnippet},V=["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"];k.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(U,J){var ae=u(k,U,J,V,[b]);return{suggestions:ae}}});var X=["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"];k.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(U,J){var ae=[{label:"print",kind:k.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(`
`),insertTextRules:k.languages.CompletionItemInsertTextRule.InsertAsSnippet}],se=u(k,U,J,X,ae);return{suggestions:se}}});var D=["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"];k.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(U,J){var ae=[b,{label:"main",kind:k.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(`
`),insertTextRules:k.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:k.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(`
`),insertTextRules:k.languages.CompletionItemInsertTextRule.InsertAsSnippet}],se=u(k,U,J,D,ae);return{suggestions:se}}})},v="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",m=d("LvDl");function g(k){return/^\d+$/.test(k)?"".concat(k,"px"):k}function E(){}var w=!1,O={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function C(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],b=k;if(Array.isArray(k)){for(var V=0;V<k.length;V++){var X=O[k[V]];if(X)return X}return b[0]}return O[b]||b}var M=null,N=z.b=function(k){var b=k.width,V=b===void 0?"100%":b,X=k.height,D=X===void 0?"100%":X,L=k.value,U=k.language,J=U===void 0?"javascript":U,ae=k.style,se=ae===void 0?{}:ae,G=k.options,he=G===void 0?{}:G,q=k.overrideServices,W=q===void 0?{}:q,H=k.theme,R=H===void 0?"vs-dark":H,y=k.onEditBlur,A=k.onSave,ee=k.autoHeight,oe=ee===void 0?!1:ee,de=k.forbidCopy,be=de===void 0?!1:de,xe=k.onChange,te=xe===void 0?E:xe,le=k.editorDidMount,ue=le===void 0?E:le,Z=k.onFocus,ne=Z===void 0?E:Z,Y=k.filename,re=Y===void 0?"educoder.txt":Y,F=Object(p.a)(k,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename"]),K=Object(f.useRef)(),pe=Object(f.useRef)({}),$=Object(f.useRef)(),j=Object(f.useRef)(!1),S=Object(f.useRef)(),B=Object(f.useState)(!1),me=Object(x.a)(B,2),fe=me[0],we=me[1];function ke(){var _e;return K.current&&(_e=new i.default(function(Se){var Ie=Object(_.a)(Se),De;try{for(Ie.s();!(De=Ie.n()).done;){var ze=De.value;(ze.target.offsetHeight>0||ze.target.offsetWidth>0)&&pe.current.instance.layout()}}catch(qe){Ie.e(qe)}finally{Ie.f()}}),_e.observe(K.current)),_e}function Me(){T.b.warn(decodeURIComponent(v))}var Ne=function(){var Se=pe.current.instance;if(L!=null&&Se&&fe){var Ie=Se.getModel();Ie&&L!==Ie.getValue()&&(w=!0,Ie.setValue(L),Se.layout(),w=!1)}};Object(f.useEffect)(function(){$.current&&clearTimeout($.current),$.current=setTimeout(function(){Ne()},500)},[L,fe,pe.current]);function Le(){var _e=pe.current.instance;if(_e){var Se=_e.getSelection(),Ie=pe.current.pastePos||{},De=new M.Range(Ie.startLineNumber||Se.endLineNumber,Ie.startColumn||Se.endColumn,Ie.endLineNumber||Se.endLineNumber,Ie.endColumn||Se.endColumn);setTimeout(function(){_e.executeEdits("",[{range:De,text:""}])},300)}}function We(_e){(window.navigator.platform.match("Mac")?_e.metaKey:_e.ctrlKey)&&_e.keyCode==83&&(_e.preventDefault(),A())}var Fe=function(){if(oe&&pe.current.instance){var Se=pe.current.instance.getContentHeight();ve(Se<D?D:Se)}else ve(D)};function He(_e){var Se=document.createEvent("MouseEvents");Se.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),_e.dispatchEvent(Se)}function Oe(_e,Se){var Ie=window.URL||window.webkitURL||window,De=new Blob([Se]),ze=document.createElementNS("http://www.w3.org/1999/xhtml","a");ze.href=Ie.createObjectURL(De),ze.download=_e,He(ze)}Object(f.useEffect)(function(){Fe()},[Fe]),Object(f.useEffect)(function(){K.current&&!fe&&d.e(26).then(d.t.bind(null,"M/lh",7)).then(function(_e){try{M=_e,pe.current.instance=M.editor.create(K.current,{value:L,language:C(J),theme:R,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0},W);var Se=pe.current.instance;if(ue(Se,M),setTimeout(function(){Fe(),pe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){Oe(re||"educoder.txt",Se.getValue())}})},500),pe.current.subscription=Se.onDidChangeModelContent(function(De){j.current?clearTimeout(S.current):(Fe(),te(Se.getValue(),De)),S.current=setTimeout(function(){j.current=!1},500)}),window.Monaco||l(M),be&&(Se.addCommand(M.KeyMod.CtrlCmd|M.KeyMod.Shift|M.KeyCode.KEY_V,function(){return Me(),null}),Se.addCommand(M.KeyMod.CtrlCmd|M.KeyCode.KEY_C,function(){return Me(),null})),window.Monaco=M,y&&Se.onDidBlurEditorWidget(function(){y(Se.getValue())}),ne&&Se.onDidFocusEditorText(function(){ne(Se.getValue())}),be){Se.addCommand(M.KeyMod.CtrlCmd|M.KeyCode.KEY_V,function(){return Me(),null}),Se.onDidPaste(function(De){pe.current.pastePos=De});try{window.addEventListener("paste",Le)}catch(De){}}var Ie=ke();return we(!0),function(){var De=pe.current.instance;De.dispose();var ze=De.getModel();ze&&ze.dispose(),pe.current.subscription&&pe.current.subscription.dispose(),be&&window.removeEventListener("paste",Le),Ie.unobserve(K.current)}}catch(De){}})},[]),Object(f.useEffect)(function(){var _e=pe.current.instance;if(_e&&fe)return document.addEventListener("keydown",We,!1),function(){document.removeEventListener("keydown",We)}},[A,fe]),Object(f.useEffect)(function(){var _e=pe.current.instance;if(_e&&fe){var Se=C(J);M.editor.setModelLanguage(_e.getModel(),Se),console.log("language:",J,_e.getModel(),Se)}},[J,fe]),Object(f.useEffect)(function(){var _e=pe.current.instance;_e&&fe&&M.editor.setTheme(R)},[R,fe]),Object(f.useEffect)(function(){var _e=pe.current.instance;_e&&fe&&(_e.updateOptions(Object(h.a)({},he)),setTimeout(function(){_e.getModel().updateOptions(Object(h.a)({},he))},200))},[JSON.stringify(he),fe]),Object(f.useEffect)(function(){var _e=pe.current.instance;_e&&fe&&_e.layout()},[V,D,fe]);var Ve=Object(f.useState)(g(V)),$e=Object(x.a)(Ve,2),Ue=$e[0],Ke=$e[1],Re=Object(f.useState)(g(D)),Te=Object(x.a)(Re,2),Ee=Te[0],ve=Te[1],ye=Object(h.a)(Object(h.a)({},se),{},{width:Ue,height:Ee});return o.a.createElement("div",{className:"my-monaco-editor",ref:K,style:ye})};function P(k){var b=k.width,V=b===void 0?"100%":b,X=k.height,D=X===void 0?"100%":X,L=k.original,U=k.modified,J=k.language,ae=k.options,se=ae===void 0?{}:ae,G=Object(f.useRef)(),he=Object(f.useState)(null),q=Object(x.a)(he,2),W=q[0],H=q[1];function R(oe){var de;return G.current&&(de=new i.default(function(be){var xe=Object(_.a)(be),te;try{for(xe.s();!(te=xe.n()).done;){var le=te.value;(le.target.offsetHeight>0||le.target.offsetWidth>0)&&oe.layout()}}catch(ue){xe.e(ue)}finally{xe.f()}}),de.observe(G.current)),de}Object(f.useEffect)(function(){G.current&&d.e(26).then(d.t.bind(null,"M/lh",7)).then(function(oe){M=oe;var de=M.editor.createDiffEditor(G.current,Object(h.a)(Object(h.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},se),{},{wordWrap:!0}));H(de);var be=R(de);return function(){de.dispose();var xe=de.getModel();xe&&xe.dispose(),be.unobserve(G.current)}})},[]),Object(f.useEffect)(function(){W&&W.setModel({original:M.editor.createModel(L,J),modified:M.editor.createModel(U,J)})},[L,U,J,W]);var y=g(V),A=g(D),ee={width:y,height:A};return o.a.createElement("div",{className:"my-diff-editor",ref:G,style:ee})}},ZpRC:function(s,z,d){"use strict";function h(l){return typeof l=="object"&&l!=null&&l.nodeType===1}function a(l,v){return(!v||l!=="hidden")&&l!=="visible"&&l!=="clip"}function T(l,v){if(l.clientHeight<l.scrollHeight||l.clientWidth<l.scrollWidth){var m=getComputedStyle(l,null);return a(m.overflowY,v)||a(m.overflowX,v)||function(g){var E=function(w){if(!w.ownerDocument||!w.ownerDocument.defaultView)return null;try{return w.ownerDocument.defaultView.frameElement}catch(O){return null}}(g);return!!E&&(E.clientHeight<g.scrollHeight||E.clientWidth<g.scrollWidth)}(l)}return!1}function _(l,v,m,g,E,w,O,C){return w<l&&O>v||w>l&&O<v?0:w<=l&&C<=m||O>=v&&C>=m?w-l-g:O>v&&C<m||w<l&&C>m?O-v+E:0}var x=function(l,v){var m=window,g=v.scrollMode,E=v.block,w=v.inline,O=v.boundary,C=v.skipOverflowHiddenElements,M=typeof O=="function"?O:function(S){return S!==O};if(!h(l))throw new TypeError("Invalid target");for(var N=document.scrollingElement||document.documentElement,P=[],k=l;h(k)&&M(k);){if((k=k.parentElement)===N){P.push(k);break}k!=null&&k===document.body&&T(k)&&!T(document.documentElement)||k!=null&&T(k,C)&&P.push(k)}for(var b=m.visualViewport?m.visualViewport.width:innerWidth,V=m.visualViewport?m.visualViewport.height:innerHeight,X=window.scrollX||pageXOffset,D=window.scrollY||pageYOffset,L=l.getBoundingClientRect(),U=L.height,J=L.width,ae=L.top,se=L.right,G=L.bottom,he=L.left,q=E==="start"||E==="nearest"?ae:E==="end"?G:ae+U/2,W=w==="center"?he+J/2:w==="end"?se:he,H=[],R=0;R<P.length;R++){var y=P[R],A=y.getBoundingClientRect(),ee=A.height,oe=A.width,de=A.top,be=A.right,xe=A.bottom,te=A.left;if(g==="if-needed"&&ae>=0&&he>=0&&G<=V&&se<=b&&ae>=de&&G<=xe&&he>=te&&se<=be)return H;var le=getComputedStyle(y),ue=parseInt(le.borderLeftWidth,10),Z=parseInt(le.borderTopWidth,10),ne=parseInt(le.borderRightWidth,10),Y=parseInt(le.borderBottomWidth,10),re=0,F=0,K="offsetWidth"in y?y.offsetWidth-y.clientWidth-ue-ne:0,pe="offsetHeight"in y?y.offsetHeight-y.clientHeight-Z-Y:0;if(N===y)re=E==="start"?q:E==="end"?q-V:E==="nearest"?_(D,D+V,V,Z,Y,D+q,D+q+U,U):q-V/2,F=w==="start"?W:w==="center"?W-b/2:w==="end"?W-b:_(X,X+b,b,ue,ne,X+W,X+W+J,J),re=Math.max(0,re+D),F=Math.max(0,F+X);else{re=E==="start"?q-de-Z:E==="end"?q-xe+Y+pe:E==="nearest"?_(de,xe,ee,Z,Y+pe,q,q+U,U):q-(de+ee/2)+pe/2,F=w==="start"?W-te-ue:w==="center"?W-(te+oe/2)+K/2:w==="end"?W-be+ne+K:_(te,be,oe,ue,ne+K,W,W+J,J);var $=y.scrollLeft,j=y.scrollTop;q+=j-(re=Math.max(0,Math.min(j+re,y.scrollHeight-ee+pe))),W+=$-(F=Math.max(0,Math.min($+F,y.scrollWidth-oe+K)))}H.push({el:y,top:re,left:F})}return H};function p(l){return l===Object(l)&&Object.keys(l).length!==0}function f(l,v){v===void 0&&(v="auto");var m="scrollBehavior"in document.body.style;l.forEach(function(g){var E=g.el,w=g.top,O=g.left;E.scroll&&m?E.scroll({top:w,left:O,behavior:v}):(E.scrollTop=w,E.scrollLeft=O)})}function o(l){return l===!1?{block:"end",inline:"nearest"}:p(l)?l:{block:"start",inline:"nearest"}}function i(l,v){var m=!l.ownerDocument.documentElement.contains(l);if(p(v)&&typeof v.behavior=="function")return v.behavior(m?[]:x(l,v));if(m)return;var g=o(v);return f(x(l,g),g.behavior)}var u=z.a=i},Zss7:function(s,z,d){var h;(function(a){var T=/^\s+/,_=/\s+$/,x=0,p=a.round,f=a.min,o=a.max,i=a.random;function u(Y,re){if(Y=Y||"",re=re||{},Y instanceof u)return Y;if(!(this instanceof u))return new u(Y,re);var F=l(Y);this._originalInput=Y,this._r=F.r,this._g=F.g,this._b=F.b,this._a=F.a,this._roundA=p(100*this._a)/100,this._format=re.format||F.format,this._gradientType=re.gradientType,this._r<1&&(this._r=p(this._r)),this._g<1&&(this._g=p(this._g)),this._b<1&&(this._b=p(this._b)),this._ok=F.ok,this._tc_id=x++}u.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 Y=this.toRgb();return(Y.r*299+Y.g*587+Y.b*114)/1e3},getLuminance:function(){var Y=this.toRgb(),re,F,K,pe,$,j;return re=Y.r/255,F=Y.g/255,K=Y.b/255,re<=.03928?pe=re/12.92:pe=a.pow((re+.055)/1.055,2.4),F<=.03928?$=F/12.92:$=a.pow((F+.055)/1.055,2.4),K<=.03928?j=K/12.92:j=a.pow((K+.055)/1.055,2.4),.2126*pe+.7152*$+.0722*j},setAlpha:function(Y){return this._a=H(Y),this._roundA=p(100*this._a)/100,this},toHsv:function(){var Y=E(this._r,this._g,this._b);return{h:Y.h*360,s:Y.s,v:Y.v,a:this._a}},toHsvString:function(){var Y=E(this._r,this._g,this._b),re=p(Y.h*360),F=p(Y.s*100),K=p(Y.v*100);return this._a==1?"hsv("+re+", "+F+"%, "+K+"%)":"hsva("+re+", "+F+"%, "+K+"%, "+this._roundA+")"},toHsl:function(){var Y=m(this._r,this._g,this._b);return{h:Y.h*360,s:Y.s,l:Y.l,a:this._a}},toHslString:function(){var Y=m(this._r,this._g,this._b),re=p(Y.h*360),F=p(Y.s*100),K=p(Y.l*100);return this._a==1?"hsl("+re+", "+F+"%, "+K+"%)":"hsla("+re+", "+F+"%, "+K+"%, "+this._roundA+")"},toHex:function(Y){return O(this._r,this._g,this._b,Y)},toHexString:function(Y){return"#"+this.toHex(Y)},toHex8:function(Y){return C(this._r,this._g,this._b,this._a,Y)},toHex8String:function(Y){return"#"+this.toHex8(Y)},toRgb:function(){return{r:p(this._r),g:p(this._g),b:p(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+p(this._r)+", "+p(this._g)+", "+p(this._b)+")":"rgba("+p(this._r)+", "+p(this._g)+", "+p(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:p(R(this._r,255)*100)+"%",g:p(R(this._g,255)*100)+"%",b:p(R(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+p(R(this._r,255)*100)+"%, "+p(R(this._g,255)*100)+"%, "+p(R(this._b,255)*100)+"%)":"rgba("+p(R(this._r,255)*100)+"%, "+p(R(this._g,255)*100)+"%, "+p(R(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:q[O(this._r,this._g,this._b,!0)]||!1},toFilter:function(Y){var re="#"+M(this._r,this._g,this._b,this._a),F=re,K=this._gradientType?"GradientType = 1, ":"";if(Y){var pe=u(Y);F="#"+M(pe._r,pe._g,pe._b,pe._a)}return"progid:DXImageTransform.Microsoft.gradient("+K+"startColorstr="+re+",endColorstr="+F+")"},toString:function(Y){var re=!!Y;Y=Y||this._format;var F=!1,K=this._a<1&&this._a>=0,pe=!re&&K&&(Y==="hex"||Y==="hex6"||Y==="hex3"||Y==="hex4"||Y==="hex8"||Y==="name");return pe?Y==="name"&&this._a===0?this.toName():this.toRgbString():(Y==="rgb"&&(F=this.toRgbString()),Y==="prgb"&&(F=this.toPercentageRgbString()),(Y==="hex"||Y==="hex6")&&(F=this.toHexString()),Y==="hex3"&&(F=this.toHexString(!0)),Y==="hex4"&&(F=this.toHex8String(!0)),Y==="hex8"&&(F=this.toHex8String()),Y==="name"&&(F=this.toName()),Y==="hsl"&&(F=this.toHslString()),Y==="hsv"&&(F=this.toHsvString()),F||this.toHexString())},clone:function(){return u(this.toString())},_applyModification:function(Y,re){var F=Y.apply(null,[this].concat([].slice.call(re)));return this._r=F._r,this._g=F._g,this._b=F._b,this.setAlpha(F._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(V,arguments)},darken:function(){return this._applyModification(X,arguments)},desaturate:function(){return this._applyModification(N,arguments)},saturate:function(){return this._applyModification(P,arguments)},greyscale:function(){return this._applyModification(k,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(Y,re){return Y.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(se,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination(G,arguments)},splitcomplement:function(){return this._applyCombination(ae,arguments)},triad:function(){return this._applyCombination(U,arguments)},tetrad:function(){return this._applyCombination(J,arguments)}},u.fromRatio=function(Y,re){if(typeof Y=="object"){var F={};for(var K in Y)Y.hasOwnProperty(K)&&(K==="a"?F[K]=Y[K]:F[K]=be(Y[K]));Y=F}return u(Y,re)};function l(Y){var re={r:0,g:0,b:0},F=1,K=null,pe=null,$=null,j=!1,S=!1;return typeof Y=="string"&&(Y=Z(Y)),typeof Y=="object"&&(ue(Y.r)&&ue(Y.g)&&ue(Y.b)?(re=v(Y.r,Y.g,Y.b),j=!0,S=String(Y.r).substr(-1)==="%"?"prgb":"rgb"):ue(Y.h)&&ue(Y.s)&&ue(Y.v)?(K=be(Y.s),pe=be(Y.v),re=w(Y.h,K,pe),j=!0,S="hsv"):ue(Y.h)&&ue(Y.s)&&ue(Y.l)&&(K=be(Y.s),$=be(Y.l),re=g(Y.h,K,$),j=!0,S="hsl"),Y.hasOwnProperty("a")&&(F=Y.a)),F=H(F),{ok:j,format:Y.format||S,r:f(255,o(re.r,0)),g:f(255,o(re.g,0)),b:f(255,o(re.b,0)),a:F}}function v(Y,re,F){return{r:R(Y,255)*255,g:R(re,255)*255,b:R(F,255)*255}}function m(Y,re,F){Y=R(Y,255),re=R(re,255),F=R(F,255);var K=o(Y,re,F),pe=f(Y,re,F),$,j,S=(K+pe)/2;if(K==pe)$=j=0;else{var B=K-pe;j=S>.5?B/(2-K-pe):B/(K+pe);switch(K){case Y:$=(re-F)/B+(re<F?6:0);break;case re:$=(F-Y)/B+2;break;case F:$=(Y-re)/B+4;break}$/=6}return{h:$,s:j,l:S}}function g(Y,re,F){var K,pe,$;Y=R(Y,360),re=R(re,100),F=R(F,100);function j(me,fe,we){return we<0&&(we+=1),we>1&&(we-=1),we<1/6?me+(fe-me)*6*we:we<1/2?fe:we<2/3?me+(fe-me)*(2/3-we)*6:me}if(re===0)K=pe=$=F;else{var S=F<.5?F*(1+re):F+re-F*re,B=2*F-S;K=j(B,S,Y+1/3),pe=j(B,S,Y),$=j(B,S,Y-1/3)}return{r:K*255,g:pe*255,b:$*255}}function E(Y,re,F){Y=R(Y,255),re=R(re,255),F=R(F,255);var K=o(Y,re,F),pe=f(Y,re,F),$,j,S=K,B=K-pe;if(j=K===0?0:B/K,K==pe)$=0;else{switch(K){case Y:$=(re-F)/B+(re<F?6:0);break;case re:$=(F-Y)/B+2;break;case F:$=(Y-re)/B+4;break}$/=6}return{h:$,s:j,v:S}}function w(Y,re,F){Y=R(Y,360)*6,re=R(re,100),F=R(F,100);var K=a.floor(Y),pe=Y-K,$=F*(1-re),j=F*(1-pe*re),S=F*(1-(1-pe)*re),B=K%6,me=[F,j,$,$,S,F][B],fe=[S,F,F,j,$,$][B],we=[$,$,S,F,F,j][B];return{r:me*255,g:fe*255,b:we*255}}function O(Y,re,F,K){var pe=[de(p(Y).toString(16)),de(p(re).toString(16)),de(p(F).toString(16))];return K&&pe[0].charAt(0)==pe[0].charAt(1)&&pe[1].charAt(0)==pe[1].charAt(1)&&pe[2].charAt(0)==pe[2].charAt(1)?pe[0].charAt(0)+pe[1].charAt(0)+pe[2].charAt(0):pe.join("")}function C(Y,re,F,K,pe){var $=[de(p(Y).toString(16)),de(p(re).toString(16)),de(p(F).toString(16)),de(xe(K))];return pe&&$[0].charAt(0)==$[0].charAt(1)&&$[1].charAt(0)==$[1].charAt(1)&&$[2].charAt(0)==$[2].charAt(1)&&$[3].charAt(0)==$[3].charAt(1)?$[0].charAt(0)+$[1].charAt(0)+$[2].charAt(0)+$[3].charAt(0):$.join("")}function M(Y,re,F,K){var pe=[de(xe(K)),de(p(Y).toString(16)),de(p(re).toString(16)),de(p(F).toString(16))];return pe.join("")}u.equals=function(Y,re){return!Y||!re?!1:u(Y).toRgbString()==u(re).toRgbString()},u.random=function(){return u.fromRatio({r:i(),g:i(),b:i()})};function N(Y,re){re=re===0?0:re||10;var F=u(Y).toHsl();return F.s-=re/100,F.s=y(F.s),u(F)}function P(Y,re){re=re===0?0:re||10;var F=u(Y).toHsl();return F.s+=re/100,F.s=y(F.s),u(F)}function k(Y){return u(Y).desaturate(100)}function b(Y,re){re=re===0?0:re||10;var F=u(Y).toHsl();return F.l+=re/100,F.l=y(F.l),u(F)}function V(Y,re){re=re===0?0:re||10;var F=u(Y).toRgb();return F.r=o(0,f(255,F.r-p(255*-(re/100)))),F.g=o(0,f(255,F.g-p(255*-(re/100)))),F.b=o(0,f(255,F.b-p(255*-(re/100)))),u(F)}function X(Y,re){re=re===0?0:re||10;var F=u(Y).toHsl();return F.l-=re/100,F.l=y(F.l),u(F)}function D(Y,re){var F=u(Y).toHsl(),K=(F.h+re)%360;return F.h=K<0?360+K:K,u(F)}function L(Y){var re=u(Y).toHsl();return re.h=(re.h+180)%360,u(re)}function U(Y){var re=u(Y).toHsl(),F=re.h;return[u(Y),u({h:(F+120)%360,s:re.s,l:re.l}),u({h:(F+240)%360,s:re.s,l:re.l})]}function J(Y){var re=u(Y).toHsl(),F=re.h;return[u(Y),u({h:(F+90)%360,s:re.s,l:re.l}),u({h:(F+180)%360,s:re.s,l:re.l}),u({h:(F+270)%360,s:re.s,l:re.l})]}function ae(Y){var re=u(Y).toHsl(),F=re.h;return[u(Y),u({h:(F+72)%360,s:re.s,l:re.l}),u({h:(F+216)%360,s:re.s,l:re.l})]}function se(Y,re,F){re=re||6,F=F||30;var K=u(Y).toHsl(),pe=360/F,$=[u(Y)];for(K.h=(K.h-(pe*re>>1)+720)%360;--re;)K.h=(K.h+pe)%360,$.push(u(K));return $}function G(Y,re){re=re||6;for(var F=u(Y).toHsv(),K=F.h,pe=F.s,$=F.v,j=[],S=1/re;re--;)j.push(u({h:K,s:pe,v:$})),$=($+S)%1;return j}u.mix=function(Y,re,F){F=F===0?0:F||50;var K=u(Y).toRgb(),pe=u(re).toRgb(),$=F/100,j={r:(pe.r-K.r)*$+K.r,g:(pe.g-K.g)*$+K.g,b:(pe.b-K.b)*$+K.b,a:(pe.a-K.a)*$+K.a};return u(j)},u.readability=function(Y,re){var F=u(Y),K=u(re);return(a.max(F.getLuminance(),K.getLuminance())+.05)/(a.min(F.getLuminance(),K.getLuminance())+.05)},u.isReadable=function(Y,re,F){var K=u.readability(Y,re),pe,$;$=!1,pe=ne(F);switch(pe.level+pe.size){case"AAsmall":case"AAAlarge":$=K>=4.5;break;case"AAlarge":$=K>=3;break;case"AAAsmall":$=K>=7;break}return $},u.mostReadable=function(Y,re,F){var K=null,pe=0,$,j,S,B;F=F||{},j=F.includeFallbackColors,S=F.level,B=F.size;for(var me=0;me<re.length;me++)$=u.readability(Y,re[me]),$>pe&&(pe=$,K=u(re[me]));return u.isReadable(Y,K,{level:S,size:B})||!j?K:(F.includeFallbackColors=!1,u.mostReadable(Y,["#fff","#000"],F))};var he=u.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=u.hexNames=W(he);function W(Y){var re={};for(var F in Y)Y.hasOwnProperty(F)&&(re[Y[F]]=F);return re}function H(Y){return Y=parseFloat(Y),(isNaN(Y)||Y<0||Y>1)&&(Y=1),Y}function R(Y,re){ee(Y)&&(Y="100%");var F=oe(Y);return Y=f(re,o(0,parseFloat(Y))),F&&(Y=parseInt(Y*re,10)/100),a.abs(Y-re)<1e-6?1:Y%re/parseFloat(re)}function y(Y){return f(1,o(0,Y))}function A(Y){return parseInt(Y,16)}function ee(Y){return typeof Y=="string"&&Y.indexOf(".")!=-1&&parseFloat(Y)===1}function oe(Y){return typeof Y=="string"&&Y.indexOf("%")!=-1}function de(Y){return Y.length==1?"0"+Y:""+Y}function be(Y){return Y<=1&&(Y=Y*100+"%"),Y}function xe(Y){return a.round(parseFloat(Y)*255).toString(16)}function te(Y){return A(Y)/255}var le=function(){var Y="[-\\+]?\\d+%?",re="[-\\+]?\\d*\\.\\d+%?",F="(?:"+re+")|(?:"+Y+")",K="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?",pe="[\\s|\\(]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")[,|\\s]+("+F+")\\s*\\)?";return{CSS_UNIT:new RegExp(F),rgb:new RegExp("rgb"+K),rgba:new RegExp("rgba"+pe),hsl:new RegExp("hsl"+K),hsla:new RegExp("hsla"+pe),hsv:new RegExp("hsv"+K),hsva:new RegExp("hsva"+pe),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 ue(Y){return!!le.CSS_UNIT.exec(Y)}function Z(Y){Y=Y.replace(T,"").replace(_,"").toLowerCase();var re=!1;if(he[Y])Y=he[Y],re=!0;else if(Y=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var F;return(F=le.rgb.exec(Y))?{r:F[1],g:F[2],b:F[3]}:(F=le.rgba.exec(Y))?{r:F[1],g:F[2],b:F[3],a:F[4]}:(F=le.hsl.exec(Y))?{h:F[1],s:F[2],l:F[3]}:(F=le.hsla.exec(Y))?{h:F[1],s:F[2],l:F[3],a:F[4]}:(F=le.hsv.exec(Y))?{h:F[1],s:F[2],v:F[3]}:(F=le.hsva.exec(Y))?{h:F[1],s:F[2],v:F[3],a:F[4]}:(F=le.hex8.exec(Y))?{r:A(F[1]),g:A(F[2]),b:A(F[3]),a:te(F[4]),format:re?"name":"hex8"}:(F=le.hex6.exec(Y))?{r:A(F[1]),g:A(F[2]),b:A(F[3]),format:re?"name":"hex"}:(F=le.hex4.exec(Y))?{r:A(F[1]+""+F[1]),g:A(F[2]+""+F[2]),b:A(F[3]+""+F[3]),a:te(F[4]+""+F[4]),format:re?"name":"hex8"}:(F=le.hex3.exec(Y))?{r:A(F[1]+""+F[1]),g:A(F[2]+""+F[2]),b:A(F[3]+""+F[3]),format:re?"name":"hex"}:!1}function ne(Y){var re,F;return Y=Y||{level:"AA",size:"small"},re=(Y.level||"AA").toUpperCase(),F=(Y.size||"small").toLowerCase(),re!=="AA"&&re!=="AAA"&&(re="AA"),F!=="small"&&F!=="large"&&(F="small"),{level:re,size:F}}s.exports?s.exports=u:!(h=function(){return u}.call(z,d,z,s),h!==void 0&&(s.exports=h))})(Math)},bCnd:function(s,z,d){"use strict";d.d(z,"b",function(){return _}),d.d(z,"a",function(){return x});var h=d("je13"),a=d.n(h),T=!1;function _(p,f){var o=a.a.get("__ec");o||(o={}),o[p]=f,a.a.set("__ec",o)}function x(p,f){var o=a.a.get("__ec");return o?o[p]===void 0?f:o[p]:f}},bQjk:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("OLod"))})(this,function(h){return function(a){var T=h,_=T.lib,x=_.CipherParams,p=T.enc,f=p.Hex,o=T.format,i=o.Hex={stringify:function(u){return u.ciphertext.toString(f)},parse:function(u){var l=f.parse(u);return x.create({ciphertext:l})}}}(),h.format.Hex})},bT9E:function(s,z,d){"use strict";d.d(z,"a",function(){return a});var h=d("VTBJ");function a(T,_){var x=Object(h.a)({},T);return Array.isArray(_)&&_.forEach(function(p){delete x[p]}),x}},c5Ni:function(s,z,d){},cDPC:function(s,z,d){"use strict";var h=d("tJVT"),a=d("q1tI"),T=d.n(a),_=d("i3hx"),x=d.n(_);z.a=function(p){var f=p.defaultX,o=f===void 0?"40%":f,i=p.leftChild,u=p.rightChild,l=p.className,v=p.hideResize,m=v===void 0?!1:v,g=Object(a.useState)(o),E=Object(h.a)(g,2),w=E[0],O=E[1],C=Object(a.useRef)();function M(){C.current=!0}Object(a.useEffect)(function(){function k(V){C.current&&O(V.pageX)}function b(){C.current=!1}return window.addEventListener("mousemove",k),window.addEventListener("mouseup",b),function(){window.removeEventListener("mousemove",k),window.removeEventListener("mouseup",b)}},[]);var N=typeof w=="number"&&w!==.01?"".concat(w,"px"):o,P="calc(100% - ".concat(m?"0px":"4px"," - ").concat(N,")");return T.a.createElement("div",{className:"split-panel-container ".concat(l)},T.a.createElement("section",{style:{width:N,display:w===.01?"none":""}},i),T.a.createElement("section",{className:"resize-x-bar",onMouseDown:M},T.a.createElement("a",{className:"btn-resize"},T.a.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},T.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"})))),T.a.createElement("section",{style:{width:P}},u))}},cv67:function(s,z,d){(function(h,a){s.exports=z=a(d("Ib8C"))})(this,function(h){return function(a){var T=h,_=T.lib,x=_.WordArray,p=_.Hasher,f=T.algo,o=[];(function(){for(var g=0;g<64;g++)o[g]=a.abs(a.sin(g+1))*4294967296|0})();var i=f.MD5=p.extend({_doReset:function(){this._hash=new x.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,E){for(var w=0;w<16;w++){var O=E+w,C=g[O];g[O]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360}var M=this._hash.words,N=g[E+0],P=g[E+1],k=g[E+2],b=g[E+3],V=g[E+4],X=g[E+5],D=g[E+6],L=g[E+7],U=g[E+8],J=g[E+9],ae=g[E+10],se=g[E+11],G=g[E+12],he=g[E+13],q=g[E+14],W=g[E+15],H=M[0],R=M[1],y=M[2],A=M[3];H=u(H,R,y,A,N,7,o[0]),A=u(A,H,R,y,P,12,o[1]),y=u(y,A,H,R,k,17,o[2]),R=u(R,y,A,H,b,22,o[3]),H=u(H,R,y,A,V,7,o[4]),A=u(A,H,R,y,X,12,o[5]),y=u(y,A,H,R,D,17,o[6]),R=u(R,y,A,H,L,22,o[7]),H=u(H,R,y,A,U,7,o[8]),A=u(A,H,R,y,J,12,o[9]),y=u(y,A,H,R,ae,17,o[10]),R=u(R,y,A,H,se,22,o[11]),H=u(H,R,y,A,G,7,o[12]),A=u(A,H,R,y,he,12,o[13]),y=u(y,A,H,R,q,17,o[14]),R=u(R,y,A,H,W,22,o[15]),H=l(H,R,y,A,P,5,o[16]),A=l(A,H,R,y,D,9,o[17]),y=l(y,A,H,R,se,14,o[18]),R=l(R,y,A,H,N,20,o[19]),H=l(H,R,y,A,X,5,o[20]),A=l(A,H,R,y,ae,9,o[21]),y=l(y,A,H,R,W,14,o[22]),R=l(R,y,A,H,V,20,o[23]),H=l(H,R,y,A,J,5,o[24]),A=l(A,H,R,y,q,9,o[25]),y=l(y,A,H,R,b,14,o[26]),R=l(R,y,A,H,U,20,o[27]),H=l(H,R,y,A,he,5,o[28]),A=l(A,H,R,y,k,9,o[29]),y=l(y,A,H,R,L,14,o[30]),R=l(R,y,A,H,G,20,o[31]),H=v(H,R,y,A,X,4,o[32]),A=v(A,H,R,y,U,11,o[33]),y=v(y,A,H,R,se,16,o[34]),R=v(R,y,A,H,q,23,o[35]),H=v(H,R,y,A,P,4,o[36]),A=v(A,H,R,y,V,11,o[37]),y=v(y,A,H,R,L,16,o[38]),R=v(R,y,A,H,ae,23,o[39]),H=v(H,R,y,A,he,4,o[40]),A=v(A,H,R,y,N,11,o[41]),y=v(y,A,H,R,b,16,o[42]),R=v(R,y,A,H,D,23,o[43]),H=v(H,R,y,A,J,4,o[44]),A=v(A,H,R,y,G,11,o[45]),y=v(y,A,H,R,W,16,o[46]),R=v(R,y,A,H,k,23,o[47]),H=m(H,R,y,A,N,6,o[48]),A=m(A,H,R,y,L,10,o[49]),y=m(y,A,H,R,q,15,o[50]),R=m(R,y,A,H,X,21,o[51]),H=m(H,R,y,A,G,6,o[52]),A=m(A,H,R,y,b,10,o[53]),y=m(y,A,H,R,ae,15,o[54]),R=m(R,y,A,H,P,21,o[55]),H=m(H,R,y,A,U,6,o[56]),A=m(A,H,R,y,W,10,o[57]),y=m(y,A,H,R,D,15,o[58]),R=m(R,y,A,H,he,21,o[59]),H=m(H,R,y,A,V,6,o[60]),A=m(A,H,R,y,se,10,o[61]),y=m(y,A,H,R,k,15,o[62]),R=m(R,y,A,H,J,21,o[63]),M[0]=M[0]+H|0,M[1]=M[1]+R|0,M[2]=M[2]+y|0,M[3]=M[3]+A|0},_doFinalize:function(){var g=this._data,E=g.words,w=this._nDataBytes*8,O=g.sigBytes*8;E[O>>>5]|=128<<24-O%32;var C=a.floor(w/4294967296),M=w;E[(O+64>>>9<<4)+15]=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,E[(O+64>>>9<<4)+14]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,g.sigBytes=(E.length+1)*4,this._process();for(var N=this._hash,P=N.words,k=0;k<4;k++){var b=P[k];P[k]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}return N},clone:function(){var g=p.clone.call(this);return g._hash=this._hash.clone(),g}});function u(g,E,w,O,C,M,N){var P=g+(E&w|~E&O)+C+N;return(P<<M|P>>>32-M)+E}function l(g,E,w,O,C,M,N){var P=g+(E&O|w&~O)+C+N;return(P<<M|P>>>32-M)+E}function v(g,E,w,O,C,M,N){var P=g+(E^w^O)+C+N;return(P<<M|P>>>32-M)+E}function m(g,E,w,O,C,M,N){var P=g+(w^(E|~O))+C+N;return(P<<M|P>>>32-M)+E}T.MD5=p._createHelper(i),T.HmacMD5=p._createHmacHelper(i)}(Math),h.MD5})},dejd:function(s,z,d){},dmUQ:function(s,z,d){"use strict";var h=d("Ff2n"),a=d("rePB"),T=d("1OyB"),_=d("vuIU"),x=d("Ji7U"),p=d("md7G"),f=d("foSv"),o=d("q1tI"),i=d.n(o),u=d("TSYQ"),l=d.n(u),v=d("4IlW");function m(U,J){var ae=Object.keys(U);if(Object.getOwnPropertySymbols){var se=Object.getOwnPropertySymbols(U);J&&(se=se.filter(function(G){return Object.getOwnPropertyDescriptor(U,G).enumerable})),ae.push.apply(ae,se)}return ae}function g(U){for(var J=1;J<arguments.length;J++){var ae=arguments[J]!=null?arguments[J]:{};J%2?m(Object(ae),!0).forEach(function(se){Object(a.a)(U,se,ae[se])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(ae)):m(Object(ae)).forEach(function(se){Object.defineProperty(U,se,Object.getOwnPropertyDescriptor(ae,se))})}return U}function E(U){var J=w();return function(){var se=Object(f.a)(U),G;if(J){var he=Object(f.a)(this).constructor;G=Reflect.construct(se,arguments,he)}else G=se.apply(this,arguments);return Object(p.a)(this,G)}}function w(){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}}function O(){}function C(U){U.preventDefault()}var M=function(J){return J.replace(/[^\w.-]+/g,"")},N=200,P=600,k=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,b=function(J){return J!=null},V=function(J,ae){return ae===J||typeof ae=="number"&&typeof J=="number"&&isNaN(ae)&&isNaN(J)},X=function(U){Object(x.a)(ae,U);var J=E(ae);function ae(se){var G;Object(T.a)(this,ae),G=J.call(this,se),G.onKeyDown=function(W){var H=G.props,R=H.onKeyDown,y=H.onPressEnter;if(W.keyCode===v.a.UP){var A=G.getRatio(W);G.up(W,A,null),G.stop()}else if(W.keyCode===v.a.DOWN){var ee=G.getRatio(W);G.down(W,ee,null),G.stop()}else W.keyCode===v.a.ENTER&&y&&y(W);if(G.recordCursorPosition(),G.lastKeyCode=W.keyCode,R){for(var oe=arguments.length,de=new Array(oe>1?oe-1:0),be=1;be<oe;be++)de[be-1]=arguments[be];R.apply(void 0,[W].concat(de))}},G.onKeyUp=function(W){var H=G.props.onKeyUp;if(G.stop(),G.recordCursorPosition(),H){for(var R=arguments.length,y=new Array(R>1?R-1:0),A=1;A<R;A++)y[A-1]=arguments[A];H.apply(void 0,[W].concat(y))}},G.onChange=function(W){var H=G.props.onChange;G.state.focused&&(G.inputting=!0),G.rawInput=G.props.parser(G.getValueFromEvent(W)),G.setState({inputValue:G.rawInput}),H(G.toNumber(G.rawInput))},G.onMouseUp=function(){var W=G.props.onMouseUp;G.recordCursorPosition(),W&&W.apply(void 0,arguments)},G.onFocus=function(){var W;G.setState({focused:!0}),(W=G.props).onFocus.apply(W,arguments)},G.onBlur=function(){var W=G.props.onBlur;G.inputting=!1,G.setState({focused:!1});var H=G.getCurrentValidValue(G.state.inputValue),R=G.setValue(H,O);if(W){var y=G.input.value,A=G.getInputDisplayValue({focus:!1,value:R});G.input.value=A&&Number(A),W.apply(void 0,arguments),G.input.value=y}},G.getRatio=function(W){var H=1;return W.metaKey||W.ctrlKey?H=.1:W.shiftKey&&(H=10),H},G.getFullNum=function(W){return isNaN(W)?W:/e/i.test(String(W))?Number(W).toFixed(18).replace(/\.?0+$/,""):W},G.getPrecision=function(W){if(b(G.props.precision))return G.props.precision;var H=String(W);if(H.indexOf("e-")>=0)return parseInt(H.slice(H.indexOf("e-")+2),10);var R=0;return H.indexOf(".")>=0&&(R=H.length-H.indexOf(".")-1),R},G.getInputDisplayValue=function(W){var H=W||G.state,R=H.focused,y=H.inputValue,A=H.value,ee;R?ee=y:ee=G.toPrecisionAsStep(A),ee==null&&(ee="");var oe=G.formatWrapper(ee);return b(G.props.decimalSeparator)&&(oe=oe.toString().replace(".",G.props.decimalSeparator)),oe},G.recordCursorPosition=function(){try{G.cursorStart=G.input.selectionStart,G.cursorEnd=G.input.selectionEnd,G.currentValue=G.input.value,G.cursorBefore=G.input.value.substring(0,G.cursorStart),G.cursorAfter=G.input.value.substring(G.cursorEnd)}catch(W){}},G.restoreByAfter=function(W){if(W===void 0)return!1;var H=G.input.value,R=H.lastIndexOf(W);if(R===-1)return!1;var y=G.cursorBefore.length;return G.lastKeyCode===v.a.DELETE&&G.cursorBefore.charAt(y-1)===W[0]?(G.fixCaret(y,y),!0):R+W.length===H.length?(G.fixCaret(R,R),!0):!1},G.partRestoreByAfter=function(W){return W===void 0?!1:Array.prototype.some.call(W,function(H,R){var y=W.substring(R);return G.restoreByAfter(y)})},G.isNotCompleteNumber=function(W){return isNaN(W)||W===""||W===null||W&&W.toString().indexOf(".")===W.toString().length-1},G.stop=function(){G.autoStepTimer&&clearTimeout(G.autoStepTimer)},G.down=function(W,H,R){G.pressingUpOrDown=!0,G.step("down",W,H,R)},G.up=function(W,H,R){G.pressingUpOrDown=!0,G.step("up",W,H,R)},G.saveInput=function(W){G.input=W};var he=se.value;he===void 0&&(he=se.defaultValue),G.state={focused:se.autoFocus};var q=G.getValidValue(G.toNumber(he));return G.state=g(g({},G.state),{},{inputValue:G.toPrecisionAsStep(q),value:q}),G}return Object(_.a)(ae,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(G){var he=this.props,q=he.value,W=he.onChange,H=he.max,R=he.min,y=this.state.focused;if(G){if(!V(G.value,q)||!V(G.max,H)||!V(G.min,R)){var A=y?q:this.getValidValue(q),ee;this.pressingUpOrDown?ee=A:this.inputting?ee=this.rawInput:ee=this.toPrecisionAsStep(A),this.setState({value:A,inputValue:ee})}var oe="value"in this.props?q:this.state.value;"max"in this.props&&G.max!==H&&typeof oe=="number"&&oe>H&&W&&W(H),"min"in this.props&&G.min!==R&&typeof oe=="number"&&oe<R&&W&&W(R)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var de=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===v.a.BACKSPACE?de=this.cursorStart-1:this.lastKeyCode===v.a.DELETE&&(de=this.cursorStart):de=this.input.value.length,this.fixCaret(de,de)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case v.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case v.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(be){}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(G){var he=G;return he===""?he="":this.isNotCompleteNumber(parseFloat(he))?he=this.state.value:he=this.getValidValue(he),this.toNumber(he)}},{key:"getValueFromEvent",value:function(G){var he=G.target.value.trim().replace(/。/g,".");return b(this.props.decimalSeparator)&&(he=he.replace(this.props.decimalSeparator,".")),he}},{key:"getValidValue",value:function(G){var he=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,W=parseFloat(G);return isNaN(W)?G:(W<he&&(W=he),W>q&&(W=q),W)}},{key:"setValue",value:function(G,he){var q=this.props.precision,W=this.isNotCompleteNumber(parseFloat(G))?null:parseFloat(G),H=this.state.value,R=H===void 0?null:H,y=this.state.inputValue,A=y===void 0?null:y,ee=typeof W=="number"?W.toFixed(q):"".concat(W),oe=W!==R||ee!=="".concat(A);return"value"in this.props?(A=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:A},he)):this.setState({value:W,inputValue:this.toPrecisionAsStep(G)},he),oe&&this.props.onChange(W),W}},{key:"getMaxPrecision",value:function(G){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,q=this.props,W=q.precision,H=q.step;if(b(W))return W;var R=this.getPrecision(he),y=this.getPrecision(H),A=this.getPrecision(G);return G?Math.max(A,R+y):R+y}},{key:"getPrecisionFactor",value:function(G){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,q=this.getMaxPrecision(G,he);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(G){return this.props.formatter?this.props.formatter(G):G}},{key:"toPrecisionAsStep",value:function(G){if(this.isNotCompleteNumber(G)||G==="")return G;var he=Math.abs(this.getMaxPrecision(G));return isNaN(he)?G.toString():Number(G).toFixed(he)}},{key:"toNumber",value:function(G){var he=this.props.precision,q=this.state.focused,W=G&&G.length>16&&q;return this.isNotCompleteNumber(G)||W?G:b(he)?Math.round(G*Math.pow(10,he))/Math.pow(10,he):Number(G)}},{key:"upStep",value:function(G,he){var q=this.props.step,W=this.getPrecisionFactor(G,he),H=Math.abs(this.getMaxPrecision(G,he)),R=((W*G+W*q*he)/W).toFixed(H);return this.toNumber(R)}},{key:"downStep",value:function(G,he){var q=this.props.step,W=this.getPrecisionFactor(G,he),H=Math.abs(this.getMaxPrecision(G,he)),R=((W*G-W*q*he)/W).toFixed(H);return this.toNumber(R)}},{key:"step",value:function(G,he){var q=this,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,H=arguments.length>3?arguments[3]:void 0;this.stop(),he&&(he.persist(),he.preventDefault());var R=this.props;if(R.disabled)return;var y=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(y))return;var A=this["".concat(G,"Step")](y,W),ee=A>R.max||A<R.min;if(A>R.max?A=R.max:A<R.min&&(A=R.min),this.setValue(A,null),this.setState({focused:!0},function(){q.pressingUpOrDown=!1}),ee)return;this.autoStepTimer=setTimeout(function(){q[G](he,W,!0)},H?N:P)}},{key:"fixCaret",value:function(G,he){if(G===void 0||he===void 0||!this.input||!this.input.value)return;try{var q=this.input.selectionStart,W=this.input.selectionEnd;(G!==q||he!==W)&&this.input.setSelectionRange(G,he)}catch(H){}}},{key:"render",value:function(){var G,he=this.props,q=he.prefixCls,W=he.disabled,H=he.readOnly,R=he.useTouch,y=he.autoComplete,A=he.upHandler,ee=he.downHandler,oe=he.className,de=he.max,be=he.min,xe=he.style,te=he.title,le=he.onMouseEnter,ue=he.onMouseLeave,Z=he.onMouseOver,ne=he.onMouseOut,Y=he.required,re=he.onClick,F=he.tabIndex,K=he.type,pe=he.placeholder,$=he.id,j=he.inputMode,S=he.pattern,B=he.step,me=he.maxLength,fe=he.autoFocus,we=he.name,ke=he.onPaste,Me=he.onInput,Ne=Object(h.a)(he,["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"]),Le=this.state,We=Le.value,Fe=Le.focused,He=l()(q,(G={},Object(a.a)(G,oe,!!oe),Object(a.a)(G,"".concat(q,"-disabled"),W),Object(a.a)(G,"".concat(q,"-focused"),Fe),G)),Oe={};Object.keys(Ne).forEach(function(Se){(Se.substr(0,5)==="data-"||Se.substr(0,5)==="aria-"||Se==="role")&&(Oe[Se]=Ne[Se])});var Ve=!H&&!W,$e=this.getInputDisplayValue(null),Ue=(We||We===0)&&(isNaN(We)||Number(We)>=de),Ke=(We||We===0)&&(isNaN(We)||Number(We)<=be),Re=Ue||W||H,Te=Ke||W||H,Ee=l()("".concat(q,"-handler"),"".concat(q,"-handler-up"),Object(a.a)({},"".concat(q,"-handler-up-disabled"),Re)),ve=l()("".concat(q,"-handler"),"".concat(q,"-handler-down"),Object(a.a)({},"".concat(q,"-handler-down-disabled"),Te)),ye=R?{onTouchStart:Re?O:this.up,onTouchEnd:this.stop}:{onMouseDown:Re?O:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},_e=R?{onTouchStart:Te?O:this.down,onTouchEnd:this.stop}:{onMouseDown:Te?O:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return i.a.createElement("div",{className:He,style:xe,title:te,onMouseEnter:le,onMouseLeave:ue,onMouseOver:Z,onMouseOut:ne,onFocus:function(){return null},onBlur:function(){return null}},i.a.createElement("div",{className:"".concat(q,"-handler-wrap")},i.a.createElement("span",Object.assign({unselectable:"on"},ye,{role:"button","aria-label":"Increase Value","aria-disabled":Re,className:Ee}),A||i.a.createElement("span",{unselectable:"on",className:"".concat(q,"-handler-up-inner"),onClick:C})),i.a.createElement("span",Object.assign({unselectable:"on"},_e,{role:"button","aria-label":"Decrease Value","aria-disabled":Te,className:ve}),ee||i.a.createElement("span",{unselectable:"on",className:"".concat(q,"-handler-down-inner"),onClick:C}))),i.a.createElement("div",{className:"".concat(q,"-input-wrap")},i.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":be,"aria-valuemax":de,"aria-valuenow":We,required:Y,type:K,placeholder:pe,onPaste:ke,onClick:re,onMouseUp:this.onMouseUp,className:"".concat(q,"-input"),tabIndex:F,autoComplete:y,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Ve?this.onKeyDown:O,onKeyUp:Ve?this.onKeyUp:O,autoFocus:fe,maxLength:me,readOnly:H,disabled:W,max:de,min:be,step:B,name:we,title:te,id:$,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum($e),pattern:S,inputMode:j,onInput:Me},Oe))))}}]),ae}(i.a.Component);X.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:k,min:-k,step:1,style:{},onChange:O,onKeyDown:O,onPressEnter:O,onFocus:O,onBlur:O,parser:M,required:!1,autoComplete:"off"};var D=X,L=z.a=D},e7zE:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("3y9D"),d("WYAk"))})(this,function(h){return function(){var a=h,T=a.lib,_=T.Base,x=T.WordArray,p=a.algo,f=p.SHA1,o=p.HMAC,i=p.PBKDF2=_.extend({cfg:_.extend({keySize:128/32,hasher:f,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,l){for(var v=this.cfg,m=o.create(v.hasher,u),g=x.create(),E=x.create([1]),w=g.words,O=E.words,C=v.keySize,M=v.iterations;w.length<C;){var N=m.update(l).finalize(E);m.reset();for(var P=N.words,k=P.length,b=N,V=1;V<M;V++){b=m.finalize(b),m.reset();for(var X=b.words,D=0;D<k;D++)P[D]^=X[D]}g.concat(N),O[0]++}return g.sigBytes=C*4,g}});a.PBKDF2=function(u,l,v){return i.create(v).compute(u,l)}}(),h.PBKDF2})},fAei:function(s,z,d){"use strict";d.d(z,"a",function(){return N.a});var h=d("rePB"),a=d("VTBJ"),T=d("KQm4"),_=d("1OyB"),x=d("vuIU"),p=d("Ji7U"),f=d("LK+K"),o=d("q1tI"),i=d("4IlW"),u=d("Kwbf"),l=d("TSYQ"),v=d.n(l),m=d("sboe"),g=d("OZM5"),E=d("815F"),w=d("ODXe"),O=d("Ff2n"),C=d("+nKL"),M=d("8XRh"),N=d("WaYH"),P=function(be,xe){var te=be.className,le=be.style,ue=be.motion,Z=be.motionNodes,ne=be.motionType,Y=be.onMotionStart,re=be.onMotionEnd,F=be.active,K=be.treeNodeRequiredProps,pe=Object(O.a)(be,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),$=o.useState(!0),j=Object(w.a)($,2),S=j[0],B=j[1],me=o.useContext(m.a),fe=me.prefixCls,we=o.useRef(!1),ke=function(){we.current||re(),we.current=!0};return Object(o.useEffect)(function(){Z&&ne==="hide"&&S&&B(!1)},[Z]),Object(o.useEffect)(function(){return Z&&Y(),function(){Z&&ke()}},[]),Z?o.createElement(M.default,Object.assign({ref:xe,visible:S},ue,{motionAppear:ne==="show",onAppearEnd:ke,onLeaveEnd:ke}),function(Me,Ne){var Le=Me.className,We=Me.style;return o.createElement("div",{ref:Ne,className:v()("".concat(fe,"-treenode-motion"),Le),style:We},Z.map(function(Fe){var He=Fe.data,Oe=He.key,Ve=Object(O.a)(He,["key"]),$e=Fe.isStart,Ue=Fe.isEnd;delete Ve.children;var Ke=Object(E.f)(Oe,K);return o.createElement(N.a,Object.assign({},Ve,Ke,{active:F,data:Fe.data,key:Oe,isStart:$e,isEnd:Ue}))}))}):o.createElement(N.a,Object.assign({domRef:xe,className:te,style:le},pe,{active:F}))};P.displayName="MotionTreeNode";var k=o.forwardRef(P),b=k;function V(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],xe=de.length,te=be.length;if(Math.abs(xe-te)!==1)return{add:!1,key:null};function le(ue,Z){var ne=new Map;ue.forEach(function(re){ne.set(re,!0)});var Y=Z.filter(function(re){return!ne.has(re)});return Y.length===1?Y[0]:null}return xe<te?{add:!0,key:le(de,be)}:{add:!1,key:le(be,de)}}function X(de,be,xe){var te=de.findIndex(function(ne){var Y=ne.data;return Y.key===xe}),le=de[te+1],ue=be.findIndex(function(ne){var Y=ne.data;return Y.key===xe});if(le){var Z=be.findIndex(function(ne){var Y=ne.data;return Y.key===le.data.key});return be.slice(ue+1,Z)}return be.slice(ue+1)}var D={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},L=function(){},U="RC_TREE_MOTION_".concat(Math.random()),J={key:U},ae={key:U,level:0,index:0,pos:"0",node:J},se={parent:null,children:[],pos:ae.pos,data:J,isStart:[],isEnd:[]};function G(de,be,xe,te){return be===!1||!xe?de:de.slice(0,Math.ceil(xe/te)+1)}function he(de){var be=de.data.key,xe=de.pos;return Object(E.e)(be,xe)}function q(de){for(var be=String(de.data.key),xe=de;xe.parent;)xe=xe.parent,be="".concat(xe.data.key," > ").concat(be);return be}var W=function(be,xe){var te=be.prefixCls,le=be.data,ue=be.selectable,Z=be.checkable,ne=be.expandedKeys,Y=be.selectedKeys,re=be.checkedKeys,F=be.loadedKeys,K=be.loadingKeys,pe=be.halfCheckedKeys,$=be.keyEntities,j=be.disabled,S=be.dragging,B=be.dragOverNodeKey,me=be.dropPosition,fe=be.motion,we=be.height,ke=be.itemHeight,Me=be.virtual,Ne=be.focusable,Le=be.activeItem,We=be.focused,Fe=be.tabIndex,He=be.onKeyDown,Oe=be.onFocus,Ve=be.onBlur,$e=be.onActiveChange,Ue=be.onListChangeStart,Ke=be.onListChangeEnd,Re=Object(O.a)(be,["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"]),Te=o.useRef(null);o.useImperativeHandle(xe,function(){return{scrollTo:function(vr){Te.current.scrollTo(vr)}}});var Ee=o.useState(ne),ve=Object(w.a)(Ee,2),ye=ve[0],_e=ve[1],Se=o.useState(le),Ie=Object(w.a)(Se,2),De=Ie[0],ze=Ie[1],qe=o.useState(le),tt=Object(w.a)(qe,2),ot=tt[0],nt=tt[1],pt=o.useState([]),ft=Object(w.a)(pt,2),_t=ft[0],Rt=ft[1],Gt=o.useState(null),Wt=Object(w.a)(Gt,2),Ct=Wt[0],At=Wt[1];function dr(){ze(le),nt(le),Rt([]),At(null),Ke()}o.useEffect(function(){_e(ne);var Ft=V(ye,ne);if(Ft.key!==null)if(Ft.add){var vr=De.findIndex(function(kt){var nr=kt.data.key;return nr===Ft.key}),rr=G(X(De,le,Ft.key),Me,we,ke),Qt=De.slice();Qt.splice(vr+1,0,se),nt(Qt),Rt(rr),At("show")}else{var wr=le.findIndex(function(kt){var nr=kt.data.key;return nr===Ft.key}),Pt=G(X(le,De,Ft.key),Me,we,ke),rt=le.slice();rt.splice(wr+1,0,se),nt(rt),Rt(Pt),At("hide")}else De!==le&&(ze(le),nt(le))},[ne,le]),o.useEffect(function(){S||dr()},[S]);var sr=fe?ot:le,fr={expandedKeys:ne,selectedKeys:Y,loadedKeys:F,loadingKeys:K,checkedKeys:re,halfCheckedKeys:pe,dragOverNodeKey:B,dropPosition:me,keyEntities:$};return o.createElement(o.Fragment,null,We&&Le&&o.createElement("span",{style:D,"aria-live":"assertive"},q(Le)),o.createElement("div",{role:"tree"},o.createElement("input",{style:D,disabled:Ne===!1||j,tabIndex:Ne!==!1?Fe:null,onKeyDown:He,onFocus:Oe,onBlur:Ve,value:"",onChange:L})),o.createElement(C.a,Object.assign({},Re,{data:sr,itemKey:he,height:we,fullHeight:!1,virtual:Me,itemHeight:ke,prefixCls:"".concat(te,"-list"),ref:Te}),function(Ft){var vr=Ft.pos,rr=Ft.data,Qt=rr.key,wr=Object(O.a)(rr,["key"]),Pt=Ft.isStart,rt=Ft.isEnd,kt=Object(E.e)(Qt,vr);delete wr.children;var nr=Object(E.f)(kt,fr);return o.createElement(b,Object.assign({},wr,nr,{active:Le&&Qt===Le.data.key,pos:vr,data:Ft.data,isStart:Pt,isEnd:rt,motion:fe,motionNodes:Qt===U?_t:null,motionType:Ct,onMotionStart:Ue,onMotionEnd:dr,treeNodeRequiredProps:fr,onMouseMove:function(){$e(null)}}))}))},H=o.forwardRef(W);H.displayName="NodeList";var R=H,y=d("NvD2"),A=function(de){Object(p.a)(xe,de);var be=Object(f.a)(xe);function xe(){var te;return Object(_.a)(this,xe),te=be.apply(this,arguments),te.destroyed=!1,te.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},te.listRef=o.createRef(),te.onNodeDragStart=function(le,ue){var Z=te.state,ne=Z.expandedKeys,Y=Z.keyEntities,re=te.props.onDragStart,F=ue.props.eventKey;te.dragNode=ue;var K=Object(g.b)(ne,F);te.setState({dragging:!0,dragNodesKeys:Object(g.g)(F,Y)}),te.setExpandedKeys(K),re&&re({event:le,node:Object(E.b)(ue.props)})},te.onNodeDragEnter=function(le,ue){var Z=te.state,ne=Z.expandedKeys,Y=Z.keyEntities,re=Z.dragNodesKeys,F=te.props.onDragEnter,K=ue.props,pe=K.pos,$=K.eventKey;if(!te.dragNode||re.indexOf($)!==-1)return;var j=Object(g.c)(le,ue);if(te.dragNode.props.eventKey===$&&j===0){te.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){te.setState({dragOverNodeKey:$,dropPosition:j}),te.delayedDragEnterLogic||(te.delayedDragEnterLogic={}),Object.keys(te.delayedDragEnterLogic).forEach(function(S){clearTimeout(te.delayedDragEnterLogic[S])}),te.delayedDragEnterLogic[pe]=window.setTimeout(function(){if(!te.state.dragging)return;var S=Object(T.a)(ne),B=Y[$];B&&(B.children||[]).length&&(S=Object(g.a)(ne,$)),"expandedKeys"in te.props||te.setExpandedKeys(S),F&&F({event:le,node:Object(E.b)(ue.props),expandedKeys:S})},400)},0)},te.onNodeDragOver=function(le,ue){var Z=te.state.dragNodesKeys,ne=te.props.onDragOver,Y=ue.props.eventKey;if(Z.indexOf(Y)!==-1)return;if(te.dragNode&&Y===te.state.dragOverNodeKey){var re=Object(g.c)(le,ue);if(re===te.state.dropPosition)return;te.setState({dropPosition:re})}ne&&ne({event:le,node:Object(E.b)(ue.props)})},te.onNodeDragLeave=function(le,ue){var Z=te.props.onDragLeave;te.setState({dragOverNodeKey:""}),Z&&Z({event:le,node:Object(E.b)(ue.props)})},te.onNodeDragEnd=function(le,ue){var Z=te.props.onDragEnd;te.setState({dragOverNodeKey:""}),te.cleanDragState(),Z&&Z({event:le,node:Object(E.b)(ue.props)}),te.dragNode=null},te.onNodeDrop=function(le,ue){var Z=te.state,ne=Z.dragNodesKeys,Y=ne===void 0?[]:ne,re=Z.dropPosition,F=te.props.onDrop,K=ue.props,pe=K.eventKey,$=K.pos;if(te.setState({dragOverNodeKey:""}),te.cleanDragState(),Y.indexOf(pe)!==-1){Object(u.a)(!1,"Can not drop to dragNode(include it's children node)");return}var j=Object(g.k)($),S={event:le,node:Object(E.b)(ue.props),dragNode:te.dragNode?Object(E.b)(te.dragNode.props):null,dragNodesKeys:Y.slice(),dropPosition:re+Number(j[j.length-1]),dropToGap:!1};re!==0&&(S.dropToGap=!0),F&&F(S),te.dragNode=null},te.cleanDragState=function(){var le=te.state.dragging;le&&te.setState({dragging:!1})},te.onNodeClick=function(le,ue){var Z=te.props.onClick;Z&&Z(le,ue)},te.onNodeDoubleClick=function(le,ue){var Z=te.props.onDoubleClick;Z&&Z(le,ue)},te.onNodeSelect=function(le,ue){var Z=te.state.selectedKeys,ne=te.state.keyEntities,Y=te.props,re=Y.onSelect,F=Y.multiple,K=ue.selected,pe=ue.key,$=!K;$?F?Z=Object(g.a)(Z,pe):Z=[pe]:Z=Object(g.b)(Z,pe);var j=Z.map(function(S){var B=ne[S];return B?B.node:null}).filter(function(S){return S});te.setUncontrolledState({selectedKeys:Z}),re&&re(Z,{event:"select",selected:$,node:ue,selectedNodes:j,nativeEvent:le.nativeEvent})},te.onNodeCheck=function(le,ue,Z){var ne=te.state,Y=ne.keyEntities,re=ne.checkedKeys,F=ne.halfCheckedKeys,K=te.props,pe=K.checkStrictly,$=K.onCheck,j=ue.key,S,B={event:"check",node:ue,checked:Z,nativeEvent:le.nativeEvent};if(pe){var me=Z?Object(g.a)(re,j):Object(g.b)(re,j),fe=Object(g.b)(F,j);S={checked:me,halfChecked:fe},B.checkedNodes=me.map(function(We){return Y[We]}).filter(function(We){return We}).map(function(We){return We.node}),te.setUncontrolledState({checkedKeys:me})}else{var we=Object(y.a)([].concat(Object(T.a)(re),[j]),!0,Y),ke=we.checkedKeys,Me=we.halfCheckedKeys;if(!Z){var Ne=new Set(ke);Ne.delete(j);var Le=Object(y.a)(Array.from(Ne),{checked:!1,halfCheckedKeys:Me},Y);ke=Le.checkedKeys,Me=Le.halfCheckedKeys}S=ke,B.checkedNodes=[],B.checkedNodesPositions=[],B.halfCheckedKeys=Me,ke.forEach(function(We){var Fe=Y[We];if(!Fe)return;var He=Fe.node,Oe=Fe.pos;B.checkedNodes.push(He),B.checkedNodesPositions.push({node:He,pos:Oe})}),te.setUncontrolledState({checkedKeys:ke},!1,{halfCheckedKeys:Me})}$&&$(S,B)},te.onNodeLoad=function(le){return new Promise(function(ue){te.setState(function(Z){var ne=Z.loadedKeys,Y=ne===void 0?[]:ne,re=Z.loadingKeys,F=re===void 0?[]:re,K=te.props,pe=K.loadData,$=K.onLoad,j=le.key;if(!pe||Y.indexOf(j)!==-1||F.indexOf(j)!==-1)return{};var S=pe(le);return S.then(function(){var B=te.state,me=B.loadedKeys,fe=B.loadingKeys,we=Object(g.a)(me,j),ke=Object(g.b)(fe,j);$&&$(we,{event:"load",node:le}),te.setUncontrolledState({loadedKeys:we}),te.setState({loadingKeys:ke}),ue()}),{loadingKeys:Object(g.a)(F,j)}})})},te.onNodeMouseEnter=function(le,ue){var Z=te.props.onMouseEnter;Z&&Z({event:le,node:ue})},te.onNodeMouseLeave=function(le,ue){var Z=te.props.onMouseLeave;Z&&Z({event:le,node:ue})},te.onNodeContextMenu=function(le,ue){var Z=te.props.onRightClick;Z&&(le.preventDefault(),Z({event:le,node:ue}))},te.onFocus=function(){var le=te.props.onFocus;te.setState({focused:!0}),le&&le.apply(void 0,arguments)},te.onBlur=function(){var le=te.props.onBlur;te.setState({focused:!1}),te.onActiveChange(null),le&&le.apply(void 0,arguments)},te.getTreeNodeRequiredProps=function(){var le=te.state,ue=le.expandedKeys,Z=le.selectedKeys,ne=le.loadedKeys,Y=le.loadingKeys,re=le.checkedKeys,F=le.halfCheckedKeys,K=le.dragOverNodeKey,pe=le.dropPosition,$=le.keyEntities;return{expandedKeys:ue||[],selectedKeys:Z||[],loadedKeys:ne||[],loadingKeys:Y||[],checkedKeys:re||[],halfCheckedKeys:F||[],dragOverNodeKey:K,dropPosition:pe,keyEntities:$}},te.setExpandedKeys=function(le){var ue=te.state.treeData,Z=Object(E.d)(ue,le);te.setUncontrolledState({expandedKeys:le,flattenNodes:Z},!0)},te.onNodeExpand=function(le,ue){var Z=te.state.expandedKeys,ne=te.state.listChanging,Y=te.props,re=Y.onExpand,F=Y.loadData,K=ue.key,pe=ue.expanded;if(ne)return;var $=Z.indexOf(K),j=!pe;if(Object(u.a)(pe&&$!==-1||!pe&&$===-1,"Expand state not sync with index check"),j?Z=Object(g.a)(Z,K):Z=Object(g.b)(Z,K),te.setExpandedKeys(Z),re&&re(Z,{node:ue,expanded:j,nativeEvent:le.nativeEvent}),j&&F){var S=te.onNodeLoad(ue);S&&S.then(function(){var B=Object(E.d)(te.state.treeData,Z);te.setUncontrolledState({flattenNodes:B})})}},te.onListChangeStart=function(){te.setUncontrolledState({listChanging:!0})},te.onListChangeEnd=function(){setTimeout(function(){te.setUncontrolledState({listChanging:!1})})},te.onActiveChange=function(le){var ue=te.state.activeKey,Z=te.props.onActiveChange;if(ue===le)return;te.setState({activeKey:le}),le!==null&&te.scrollTo({key:le}),Z&&Z(le)},te.getActiveItem=function(){var le=te.state,ue=le.activeKey,Z=le.flattenNodes;return ue===null?null:Z.find(function(ne){var Y=ne.data.key;return Y===ue})||null},te.offsetActiveKey=function(le){var ue=te.state,Z=ue.flattenNodes,ne=ue.activeKey,Y=Z.findIndex(function(K){var pe=K.data.key;return pe===ne});Y===-1&&le<0&&(Y=Z.length),Y=(Y+le+Z.length)%Z.length;var re=Z[Y];if(re){var F=re.data.key;te.onActiveChange(F)}else te.onActiveChange(null)},te.onKeyDown=function(le){var ue=te.state,Z=ue.activeKey,ne=ue.expandedKeys,Y=ue.checkedKeys,re=te.props,F=re.onKeyDown,K=re.checkable,pe=re.selectable;switch(le.which){case i.a.UP:{te.offsetActiveKey(-1),le.preventDefault();break}case i.a.DOWN:{te.offsetActiveKey(1),le.preventDefault();break}}var $=te.getActiveItem();if($&&$.data){var j=te.getTreeNodeRequiredProps(),S=$.data.isLeaf===!1||!!($.data.children||[]).length,B=Object(E.b)(Object(a.a)(Object(a.a)({},Object(E.f)(Z,j)),{},{data:$.data,active:!0}));switch(le.which){case i.a.LEFT:{S&&ne.includes(Z)?te.onNodeExpand({},B):$.parent&&te.onActiveChange($.parent.data.key),le.preventDefault();break}case i.a.RIGHT:{S&&!ne.includes(Z)?te.onNodeExpand({},B):$.children&&$.children.length&&te.onActiveChange($.children[0].data.key),le.preventDefault();break}case i.a.ENTER:case i.a.SPACE:{K&&!B.disabled&&B.checkable!==!1&&!B.disableCheckbox?te.onNodeCheck({},B,!Y.includes(Z)):!K&&pe&&!B.disabled&&B.selectable!==!1&&te.onNodeSelect({},B);break}}}F&&F(le)},te.setUncontrolledState=function(le){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(te.destroyed)return;var ne=!1,Y=!0,re={};Object.keys(le).forEach(function(F){if(F in te.props){Y=!1;return}ne=!0,re[F]=le[F]}),ne&&(!ue||Y)&&te.setState(Object(a.a)(Object(a.a)({},re),Z))},te.scrollTo=function(le){te.listRef.current.scrollTo(le)},te}return Object(x.a)(xe,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var le,ue=this.state,Z=ue.focused,ne=ue.flattenNodes,Y=ue.keyEntities,re=ue.dragging,F=ue.activeKey,K=this.props,pe=K.prefixCls,$=K.className,j=K.style,S=K.showLine,B=K.focusable,me=K.tabIndex,fe=me===void 0?0:me,we=K.selectable,ke=K.showIcon,Me=K.icon,Ne=K.switcherIcon,Le=K.draggable,We=K.checkable,Fe=K.checkStrictly,He=K.disabled,Oe=K.motion,Ve=K.loadData,$e=K.filterTreeNode,Ue=K.height,Ke=K.itemHeight,Re=K.virtual,Te=K.titleRender,Ee=K.onContextMenu,ve=Object(g.f)(this.props);return o.createElement(m.a.Provider,{value:{prefixCls:pe,selectable:we,showIcon:ke,icon:Me,switcherIcon:Ne,draggable:Le,checkable:We,checkStrictly:Fe,disabled:He,keyEntities:Y,loadData:Ve,filterTreeNode:$e,titleRender:Te,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}},o.createElement("div",{className:v()(pe,$,(le={},Object(h.a)(le,"".concat(pe,"-show-line"),S),Object(h.a)(le,"".concat(pe,"-focused"),Z),Object(h.a)(le,"".concat(pe,"-active-focused"),F!==null),le))},o.createElement(R,Object.assign({ref:this.listRef,prefixCls:pe,style:j,data:ne,disabled:He,selectable:we,checkable:!!We,motion:Oe,dragging:re,height:Ue,itemHeight:Ke,virtual:Re,focusable:B,focused:Z,tabIndex:fe,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ee},this.getTreeNodeRequiredProps(),ve))))}}],[{key:"getDerivedStateFromProps",value:function(le,ue){var Z=ue.prevProps,ne={prevProps:le};function Y(Me){return!Z&&Me in le||Z&&Z[Me]!==le[Me]}var re;if(Y("treeData")?re=le.treeData:Y("children")&&(Object(u.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),re=Object(E.c)(le.children)),re){ne.treeData=re;var F=Object(E.a)(re);ne.keyEntities=Object(a.a)(Object(h.a)({},U,ae),F.keyEntities)}var K=ne.keyEntities||ue.keyEntities;if(Y("expandedKeys")||Z&&Y("autoExpandParent"))ne.expandedKeys=le.autoExpandParent||!Z&&le.defaultExpandParent?Object(g.e)(le.expandedKeys,K):le.expandedKeys;else if(!Z&&le.defaultExpandAll){var pe=Object(a.a)({},K);delete pe[U],ne.expandedKeys=Object.keys(pe).map(function(Me){return pe[Me].key})}else!Z&&le.defaultExpandedKeys&&(ne.expandedKeys=le.autoExpandParent||le.defaultExpandParent?Object(g.e)(le.defaultExpandedKeys,K):le.defaultExpandedKeys);if(ne.expandedKeys||delete ne.expandedKeys,re||ne.expandedKeys){var $=Object(E.d)(re||ue.treeData,ne.expandedKeys||ue.expandedKeys);ne.flattenNodes=$}if(le.selectable&&(Y("selectedKeys")?ne.selectedKeys=Object(g.d)(le.selectedKeys,le):!Z&&le.defaultSelectedKeys&&(ne.selectedKeys=Object(g.d)(le.defaultSelectedKeys,le))),le.checkable){var j;if(Y("checkedKeys")?j=Object(g.j)(le.checkedKeys)||{}:!Z&&le.defaultCheckedKeys?j=Object(g.j)(le.defaultCheckedKeys)||{}:re&&(j=Object(g.j)(le.checkedKeys)||{checkedKeys:ue.checkedKeys,halfCheckedKeys:ue.halfCheckedKeys}),j){var S=j,B=S.checkedKeys,me=B===void 0?[]:B,fe=S.halfCheckedKeys,we=fe===void 0?[]:fe;if(!le.checkStrictly){var ke=Object(y.a)(me,!0,K);me=ke.checkedKeys,we=ke.halfCheckedKeys}ne.checkedKeys=me,ne.halfCheckedKeys=we}}return Y("loadedKeys")&&(ne.loadedKeys=le.loadedKeys),ne}}]),xe}(o.Component);A.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:[]},A.TreeNode=N.a;var ee=A,oe=z.b=ee},fcSX:function(s,z,d){"use strict";var h=d("Ff2n"),a=d("1OyB"),T=d("vuIU"),_=d("Ji7U"),x=d("md7G"),p=d("foSv"),f=d("1W/9"),o=d("q1tI"),i=d("rePB"),u=d("JX7q"),l=d("TSYQ"),v=d.n(l),m=d("qx4F"),g=d("4IlW");function E(W){return Array.isArray(W)?W:[W]}var w={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},O=Object.keys(w).filter(function(W){if(typeof document=="undefined")return!1;var H=document.getElementsByTagName("html")[0];return W in(H?H.style:{})})[0],C=w[O];function M(W,H,R,y){W.addEventListener?W.addEventListener(H,R,y):W.attachEvent&&W.attachEvent("on".concat(H),R)}function N(W,H,R,y){W.removeEventListener?W.removeEventListener(H,R,y):W.attachEvent&&W.detachEvent("on".concat(H),R)}function P(W,H){var R=typeof W=="function"?W(H):W;return Array.isArray(R)?R.length===2?R:[R[0],R[1]]:[R]}var k=function(H){return!isNaN(parseFloat(H))&&isFinite(H)},b=!(typeof window!="undefined"&&window.document&&window.document.createElement),V=function W(H,R,y,A){if(!R||R===document||R instanceof Document)return!1;if(R===H.parentNode)return!0;var ee=Math.max(Math.abs(y),Math.abs(A))===Math.abs(A),oe=Math.max(Math.abs(y),Math.abs(A))===Math.abs(y),de=R.scrollHeight-R.clientHeight,be=R.scrollWidth-R.clientWidth,xe=document.defaultView.getComputedStyle(R),te=xe.overflowY==="auto"||xe.overflowY==="scroll",le=xe.overflowX==="auto"||xe.overflowX==="scroll",ue=de&&te,Z=be&&le;return ee&&(!ue||ue&&(R.scrollTop>=de&&A<0||R.scrollTop<=0&&A>0))||oe&&(!Z||Z&&(R.scrollLeft>=be&&y<0||R.scrollLeft<=0&&y>0))?W(H,R.parentNode,y,A):!1};function X(W){var H=D();return function(){var y=Object(p.a)(W),A;if(H){var ee=Object(p.a)(this).constructor;A=Reflect.construct(y,arguments,ee)}else A=y.apply(this,arguments);return Object(x.a)(this,A)}}function D(){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(W){return!1}}var L={},U=function(W){Object(_.a)(R,W);var H=X(R);function R(y){var A;return Object(a.a)(this,R),A=H.call(this,y),A.domFocus=function(){A.dom&&A.dom.focus()},A.removeStartHandler=function(ee){if(ee.touches.length>1)return;A.startPos={x:ee.touches[0].clientX,y:ee.touches[0].clientY}},A.removeMoveHandler=function(ee){if(ee.changedTouches.length>1)return;var oe=ee.currentTarget,de=ee.changedTouches[0].clientX-A.startPos.x,be=ee.changedTouches[0].clientY-A.startPos.y;(oe===A.maskDom||oe===A.handlerDom||oe===A.contentDom&&V(oe,ee.target,de,be))&&ee.cancelable&&ee.preventDefault()},A.transitionEnd=function(ee){var oe=ee.target;N(oe,C,A.transitionEnd),oe.style.transition=""},A.onKeyDown=function(ee){if(ee.keyCode===g.a.ESC){var oe=A.props.onClose;ee.stopPropagation(),oe&&oe(ee)}},A.onWrapperTransitionEnd=function(ee){var oe=A.props,de=oe.open,be=oe.afterVisibleChange;ee.target===A.contentWrapper&&ee.propertyName.match(/transform$/)&&(A.dom.style.transition="",!de&&A.getCurrentDrawerSome()&&(document.body.style.overflowX="",A.maskDom&&(A.maskDom.style.left="",A.maskDom.style.width="")),be&&be(!!de))},A.openLevelTransition=function(){var ee=A.props,oe=ee.open,de=ee.width,be=ee.height,xe=A.getHorizontalBoolAndPlacementName(),te=xe.isHorizontal,le=xe.placementName,ue=A.contentDom?A.contentDom.getBoundingClientRect()[te?"width":"height"]:0,Z=(te?de:be)||ue;A.setLevelAndScrolling(oe,le,Z)},A.setLevelTransform=function(ee,oe,de,be){var xe=A.props,te=xe.placement,le=xe.levelMove,ue=xe.duration,Z=xe.ease,ne=xe.showMask;A.levelDom.forEach(function(Y){Y.style.transition="transform ".concat(ue," ").concat(Z),M(Y,C,A.transitionEnd);var re=ee?de:0;if(le){var F=P(le,{target:Y,open:ee});re=ee?F[0]:F[1]||0}var K=typeof re=="number"?"".concat(re,"px"):re,pe=te==="left"||te==="top"?K:"-".concat(K);pe=ne&&te==="right"&&be?"calc(".concat(pe," + ").concat(be,"px)"):pe,Y.style.transform=re?"".concat(oe,"(").concat(pe,")"):""})},A.setLevelAndScrolling=function(ee,oe,de){var be=A.props.onChange;if(!b){var xe=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(m.a)(!0):0;A.setLevelTransform(ee,oe,de,xe),A.toggleScrollingToDrawerAndBody(xe)}be&&be(ee)},A.toggleScrollingToDrawerAndBody=function(ee){var oe=A.props,de=oe.getOpenCount,be=oe.getContainer,xe=oe.showMask,te=oe.open,le=be&&be(),ue=de&&de();if(le&&le.parentNode===document.body&&xe){var Z=["touchstart"],ne=[document.body,A.maskDom,A.handlerDom,A.contentDom];te&&document.body.style.overflow!=="hidden"?(ee&&A.addScrollingEffect(ee),ue===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",ne.forEach(function(Y,re){if(!Y)return;M(Y,Z[re]||"touchmove",re?A.removeMoveHandler:A.removeStartHandler,A.passive)})):A.getCurrentDrawerSome()&&(ue||(document.body.style.overflow=""),document.body.style.touchAction="",ee&&A.remScrollingEffect(ee),ne.forEach(function(Y,re){if(!Y)return;N(Y,Z[re]||"touchmove",re?A.removeMoveHandler:A.removeStartHandler,A.passive)}))}},A.addScrollingEffect=function(ee){var oe=A.props,de=oe.placement,be=oe.duration,xe=oe.ease,te=oe.getOpenCount,le=oe.switchScrollingEffect,ue=te&&te();ue===1&&le();var Z="width ".concat(be," ").concat(xe),ne="transform ".concat(be," ").concat(xe);A.dom.style.transition="none";switch(de){case"right":A.dom.style.transform="translateX(-".concat(ee,"px)");break;case"top":case"bottom":A.dom.style.width="calc(100% - ".concat(ee,"px)"),A.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(A.timeout),A.timeout=setTimeout(function(){A.dom&&(A.dom.style.transition="".concat(ne,",").concat(Z),A.dom.style.width="",A.dom.style.transform="")})},A.remScrollingEffect=function(ee){var oe=A.props,de=oe.placement,be=oe.duration,xe=oe.ease,te=oe.getOpenCount,le=oe.switchScrollingEffect,ue=te&&te();ue||le(!0),O&&(document.body.style.overflowX="hidden"),A.dom.style.transition="none";var Z,ne="width ".concat(be," ").concat(xe),Y="transform ".concat(be," ").concat(xe);switch(de){case"left":{A.dom.style.width="100%",ne="width 0s ".concat(xe," ").concat(be);break}case"right":{A.dom.style.transform="translateX(".concat(ee,"px)"),A.dom.style.width="100%",ne="width 0s ".concat(xe," ").concat(be),A.maskDom&&(A.maskDom.style.left="-".concat(ee,"px"),A.maskDom.style.width="calc(100% + ".concat(ee,"px)"));break}case"top":case"bottom":{A.dom.style.width="calc(100% + ".concat(ee,"px)"),A.dom.style.height="100%",A.dom.style.transform="translateZ(0)",Z="height 0s ".concat(xe," ").concat(be);break}default:break}clearTimeout(A.timeout),A.timeout=setTimeout(function(){A.dom&&(A.dom.style.transition="".concat(Y,",").concat(Z?"".concat(Z,","):"").concat(ne),A.dom.style.transform="",A.dom.style.width="",A.dom.style.height="")})},A.getCurrentDrawerSome=function(){return!Object.keys(L).some(function(ee){return L[ee]})},A.getLevelDom=function(ee){var oe=ee.level,de=ee.getContainer;if(b)return;var be=de&&de(),xe=be?be.parentNode:null;if(A.levelDom=[],oe==="all"){var te=xe?Array.prototype.slice.call(xe.children):[];te.forEach(function(le){le.nodeName!=="SCRIPT"&&le.nodeName!=="STYLE"&&le.nodeName!=="LINK"&&le!==be&&A.levelDom.push(le)})}else oe&&E(oe).forEach(function(le){document.querySelectorAll(le).forEach(function(ue){A.levelDom.push(ue)})})},A.getHorizontalBoolAndPlacementName=function(){var ee=A.props.placement,oe=ee==="left"||ee==="right",de="translate".concat(oe?"X":"Y");return{isHorizontal:oe,placementName:de}},A.state={_self:Object(u.a)(A)},A}return Object(T.a)(R,[{key:"componentDidMount",value:function(){var A=this;if(!b){var ee=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return ee=!0,null}}))}catch(te){}this.passive=ee?{passive:!1}:!1}var oe=this.props,de=oe.open,be=oe.getContainer,xe=be&&be();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),de&&(xe&&xe.parentNode===document.body&&(L[this.drawerId]=de),this.openLevelTransition(),this.forceUpdate(function(){A.domFocus()}))}},{key:"componentDidUpdate",value:function(A){var ee=this.props,oe=ee.open,de=ee.getContainer,be=de&&de();oe!==A.open&&(oe&&this.domFocus(),be&&be.parentNode===document.body&&(L[this.drawerId]=!!oe),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var A=this.props,ee=A.getOpenCount,oe=A.open,de=A.switchScrollingEffect,be=typeof ee=="function"&&ee();delete L[this.drawerId],oe&&(this.setLevelTransform(!1),document.body.style.touchAction=""),be||(document.body.style.overflow="",de(!0))}},{key:"render",value:function(){var A,ee=this,oe=this.props,de=oe.className,be=oe.children,xe=oe.style,te=oe.width,le=oe.height,ue=oe.defaultOpen,Z=oe.open,ne=oe.prefixCls,Y=oe.placement,re=oe.level,F=oe.levelMove,K=oe.ease,pe=oe.duration,$=oe.getContainer,j=oe.handler,S=oe.onChange,B=oe.afterVisibleChange,me=oe.showMask,fe=oe.maskClosable,we=oe.maskStyle,ke=oe.onClose,Me=oe.onHandleClick,Ne=oe.keyboard,Le=oe.getOpenCount,We=oe.switchScrollingEffect,Fe=Object(h.a)(oe,["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"]),He=this.dom?Z:!1,Oe=v()(ne,(A={},Object(i.a)(A,"".concat(ne,"-").concat(Y),!0),Object(i.a)(A,"".concat(ne,"-open"),He),Object(i.a)(A,de||"",!!de),Object(i.a)(A,"no-mask",!me),A)),Ve=this.getHorizontalBoolAndPlacementName(),$e=Ve.placementName,Ue=Y==="left"||Y==="top"?"-100%":"100%",Ke=He?"":"".concat($e,"(").concat(Ue,")"),Re=j&&o.cloneElement(j,{onClick:function(Ee){j.props.onClick&&j.props.onClick(),Me&&Me(Ee)},ref:function(Ee){ee.handlerDom=Ee}});return o.createElement("div",Object.assign({},Fe,{tabIndex:-1,className:Oe,style:xe,ref:function(Ee){ee.dom=Ee},onKeyDown:He&&Ne?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),me&&o.createElement("div",{className:"".concat(ne,"-mask"),onClick:fe?ke:void 0,style:we,ref:function(Ee){ee.maskDom=Ee}}),o.createElement("div",{className:"".concat(ne,"-content-wrapper"),style:{transform:Ke,msTransform:Ke,width:k(te)?"".concat(te,"px"):te,height:k(le)?"".concat(le,"px"):le},ref:function(Ee){ee.contentWrapper=Ee}},o.createElement("div",{className:"".concat(ne,"-content"),ref:function(Ee){ee.contentDom=Ee},onTouchStart:He&&me?this.removeStartHandler:void 0,onTouchMove:He&&me?this.removeMoveHandler:void 0},be),Re))}}],[{key:"getDerivedStateFromProps",value:function(A,ee){var oe=ee.prevProps,de=ee._self,be={prevProps:A};if(oe!==void 0){var xe=A.placement,te=A.level;xe!==oe.placement&&(de.contentDom=null),te!==oe.level&&de.getLevelDom(A)}return be}}]),R}(o.Component);U.defaultProps={switchScrollingEffect:function(){}};var J=U;function ae(W){var H=se();return function(){var y=Object(p.a)(W),A;if(H){var ee=Object(p.a)(this).constructor;A=Reflect.construct(y,arguments,ee)}else A=y.apply(this,arguments);return Object(x.a)(this,A)}}function se(){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(W){return!1}}var G=function(W){Object(_.a)(R,W);var H=ae(R);function R(y){var A;Object(a.a)(this,R),A=H.call(this,y),A.onHandleClick=function(oe){var de=A.props,be=de.onHandleClick,xe=de.open;if(be&&be(oe),typeof xe=="undefined"){var te=A.state.open;A.setState({open:!te})}},A.onClose=function(oe){var de=A.props,be=de.onClose,xe=de.open;be&&be(oe),typeof xe=="undefined"&&A.setState({open:!1})};var ee=typeof y.open!="undefined"?y.open:!!y.defaultOpen;return A.state={open:ee},"onMaskClick"in y&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),A}return Object(T.a)(R,[{key:"render",value:function(){var A=this,ee=this.props,oe=ee.defaultOpen,de=ee.getContainer,be=ee.wrapperClassName,xe=ee.forceRender,te=ee.handler,le=Object(h.a)(ee,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),ue=this.state.open;if(!de)return o.createElement("div",{className:be,ref:function(Y){A.dom=Y}},o.createElement(J,Object.assign({},le,{open:ue,handler:te,getContainer:function(){return A.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var Z=!!te||xe;return o.createElement(f.a,{visible:ue,forceRender:Z,getContainer:de,wrapperClassName:be},function(ne){var Y=ne.visible,re=ne.afterClose,F=Object(h.a)(ne,["visible","afterClose"]);return o.createElement(J,Object.assign({},le,F,{open:Y!==void 0?Y:ue,afterVisibleChange:re!==void 0?re:le.afterVisibleChange,handler:te,onClose:A.onClose,onHandleClick:A.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(A,ee){var oe=ee.prevProps,de={prevProps:A};return typeof oe!="undefined"&&A.open!==oe.open&&(de.open=A.open),de}}]),R}(o.Component);G.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:o.createElement("div",{className:"drawer-handle"},o.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var he=G,q=z.a=he},fcyK:function(s,z,d){},gRFJ:function(s,z,d){s.exports=[d("rdUC"),d("ynwM"),d("RELg"),d("DlR+"),d("CrYA"),d("PD8m")]},gaXo:function(module,exports){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(s){return s<10?"0"+s:s}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(s){return rx_escapable.lastIndex=0,rx_escapable.test(s)?'"'+s.replace(rx_escapable,function(z){var d=meta[z];return typeof d=="string"?d:"\\u"+("0000"+z.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+s+'"'}function str(s,z){var d,h,a,T,_=gap,x,p=z[s];p&&typeof p=="object"&&typeof p.toJSON=="function"&&(p=p.toJSON(s)),typeof rep=="function"&&(p=rep.call(z,s,p));switch(typeof p){case"string":return quote(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(gap+=indent,x=[],Object.prototype.toString.apply(p)==="[object Array]"){for(T=p.length,d=0;d<T;d+=1)x[d]=str(d,p)||"null";return a=x.length===0?"[]":gap?`[
`+gap+x.join(`,
`+gap)+`
`+_+"]":"["+x.join(",")+"]",gap=_,a}if(rep&&typeof rep=="object")for(T=rep.length,d=0;d<T;d+=1)typeof rep[d]=="string"&&(h=rep[d],a=str(h,p),a&&x.push(quote(h)+(gap?": ":":")+a));else for(h in p)Object.prototype.hasOwnProperty.call(p,h)&&(a=str(h,p),a&&x.push(quote(h)+(gap?": ":":")+a));return a=x.length===0?"{}":gap?`{
`+gap+x.join(`,
`+gap)+`
`+_+"}":"{"+x.join(",")+"}",gap=_,a}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(s,z,d){var h;if(gap="",indent="",typeof d=="number")for(h=0;h<d;h+=1)indent+=" ";else typeof d=="string"&&(indent=d);if(rep=z,z&&typeof z!="function"&&(typeof z!="object"||typeof z.length!="number"))throw new Error("JSON.stringify");return str("",{"":s})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(s,z){var d,h,a=s[z];if(a&&typeof a=="object")for(d in a)Object.prototype.hasOwnProperty.call(a,d)&&(h=walk(a,d),h!==void 0?a[d]=h:delete a[d]);return reviver.call(s,z,a)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(s){return"\\u"+("0000"+s.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},"gb/T":function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("OLod"))})(this,function(h){return h.mode.ECB=function(){var a=h.lib.BlockCipherMode.extend();return a.Encryptor=a.extend({processBlock:function(T,_){this._cipher.encryptBlock(T,_)}}),a.Decryptor=a.extend({processBlock:function(T,_){this._cipher.decryptBlock(T,_)}}),a}(),h.mode.ECB})},h78n:function(s,z,d){"use strict";d.d(z,"a",function(){return G});var h=d("q1tI"),a=d.n(h),T=d("TSYQ"),_=d.n(T),x={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},p=function(W){var H=W.map(function(){return Object(h.useRef)()}),R=Object(h.useRef)();return Object(h.useEffect)(function(){var y=Date.now(),A=!1;Object.keys(H).forEach(function(ee){var oe=H[ee].current;if(!oe)return;A=!0;var de=oe.style;de.transitionDuration=".3s, .3s, .3s, .06s",R.current&&y-R.current<100&&(de.transitionDuration="0s, 0s")}),A&&(R.current=Date.now())}),[H]};function f(){return f=Object.assign||function(q){for(var W=1;W<arguments.length;W++){var H=arguments[W];for(var R in H)Object.prototype.hasOwnProperty.call(H,R)&&(q[R]=H[R])}return q},f.apply(this,arguments)}function o(q,W){return m(q)||v(q,W)||u(q,W)||i()}function i(){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 u(q,W){if(!q)return;if(typeof q=="string")return l(q,W);var H=Object.prototype.toString.call(q).slice(8,-1);if(H==="Object"&&q.constructor&&(H=q.constructor.name),H==="Map"||H==="Set")return Array.from(q);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return l(q,W)}function l(q,W){(W==null||W>q.length)&&(W=q.length);for(var H=0,R=new Array(W);H<W;H++)R[H]=q[H];return R}function v(q,W){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(q)))return;var H=[],R=!0,y=!1,A=void 0;try{for(var ee=q[Symbol.iterator](),oe;!(R=(oe=ee.next()).done)&&!(H.push(oe.value),W&&H.length===W);R=!0);}catch(de){y=!0,A=de}finally{try{!R&&ee.return!=null&&ee.return()}finally{if(y)throw A}}return H}function m(q){if(Array.isArray(q))return q}function g(q,W){if(q==null)return{};var H=E(q,W),R,y;if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(q);for(y=0;y<A.length;y++){if(R=A[y],W.indexOf(R)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(q,R))continue;H[R]=q[R]}}return H}function E(q,W){if(q==null)return{};var H={},R=Object.keys(q),y,A;for(A=0;A<R.length;A++){if(y=R[A],W.indexOf(y)>=0)continue;H[y]=q[y]}return H}var w=function(W){var H=W.className,R=W.percent,y=W.prefixCls,A=W.strokeColor,ee=W.strokeLinecap,oe=W.strokeWidth,de=W.style,be=W.trailColor,xe=W.trailWidth,te=W.transition,le=g(W,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete le.gapPosition;var ue=Array.isArray(R)?R:[R],Z=Array.isArray(A)?A:[A],ne=p(ue),Y=o(ne,1),re=Y[0],F=oe/2,K=100-oe/2,pe="M ".concat(ee==="round"?F:0,",").concat(F,`
L `).concat(ee==="round"?K:100,",").concat(F),$="0 0 100 ".concat(oe),j=0;return a.a.createElement("svg",f({className:_()("".concat(y,"-line"),H),viewBox:$,preserveAspectRatio:"none",style:de},le),a.a.createElement("path",{className:"".concat(y,"-line-trail"),d:pe,strokeLinecap:ee,stroke:be,strokeWidth:xe||oe,fillOpacity:"0"}),ue.map(function(S,B){var me={strokeDasharray:"".concat(S,"px, 100px"),strokeDashoffset:"-".concat(j,"px"),transition:te||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},fe=Z[B]||Z[Z.length-1];return j+=S,a.a.createElement("path",{key:B,className:"".concat(y,"-line-path"),d:pe,strokeLinecap:ee,stroke:fe,strokeWidth:oe,fillOpacity:"0",ref:re[B],style:me})}))};w.defaultProps=x;var O=w;function C(){return C=Object.assign||function(q){for(var W=1;W<arguments.length;W++){var H=arguments[W];for(var R in H)Object.prototype.hasOwnProperty.call(H,R)&&(q[R]=H[R])}return q},C.apply(this,arguments)}function M(q,W){return V(q)||b(q,W)||P(q,W)||N()}function N(){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 P(q,W){if(!q)return;if(typeof q=="string")return k(q,W);var H=Object.prototype.toString.call(q).slice(8,-1);if(H==="Object"&&q.constructor&&(H=q.constructor.name),H==="Map"||H==="Set")return Array.from(q);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return k(q,W)}function k(q,W){(W==null||W>q.length)&&(W=q.length);for(var H=0,R=new Array(W);H<W;H++)R[H]=q[H];return R}function b(q,W){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(q)))return;var H=[],R=!0,y=!1,A=void 0;try{for(var ee=q[Symbol.iterator](),oe;!(R=(oe=ee.next()).done)&&!(H.push(oe.value),W&&H.length===W);R=!0);}catch(de){y=!0,A=de}finally{try{!R&&ee.return!=null&&ee.return()}finally{if(y)throw A}}return H}function V(q){if(Array.isArray(q))return q}function X(q,W){if(q==null)return{};var H=D(q,W),R,y;if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(q);for(y=0;y<A.length;y++){if(R=A[y],W.indexOf(R)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(q,R))continue;H[R]=q[R]}}return H}function D(q,W){if(q==null)return{};var H={},R=Object.keys(q),y,A;for(A=0;A<R.length;A++){if(y=R[A],W.indexOf(y)>=0)continue;H[y]=q[y]}return H}var L=0;function U(q){return+q.replace("%","")}function J(q){return Array.isArray(q)?q:[q]}function ae(q,W,H,R){var y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,A=arguments.length>5?arguments[5]:void 0,ee=50-R/2,oe=0,de=-ee,be=0,xe=-2*ee;switch(A){case"left":oe=-ee,de=0,be=2*ee,xe=0;break;case"right":oe=ee,de=0,be=-2*ee,xe=0;break;case"bottom":de=ee,xe=2*ee;break;default:}var te="M 50,50 m ".concat(oe,",").concat(de,`
a `).concat(ee,",").concat(ee," 0 1 1 ").concat(be,",").concat(-xe,`
a `).concat(ee,",").concat(ee," 0 1 1 ").concat(-be,",").concat(xe),le=Math.PI*2*ee,ue={stroke:H,strokeDasharray:"".concat(W/100*(le-y),"px ").concat(le,"px"),strokeDashoffset:"-".concat(y/2+q/100*(le-y),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:te,pathStyle:ue}}var se=function(W){var H=W.prefixCls,R=W.strokeWidth,y=W.trailWidth,A=W.gapDegree,ee=W.gapPosition,oe=W.trailColor,de=W.strokeLinecap,be=W.style,xe=W.className,te=W.strokeColor,le=W.percent,ue=X(W,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Z=Object(h.useMemo)(function(){return L+=1,L},[]),ne=ae(0,100,oe,R,A,ee),Y=ne.pathString,re=ne.pathStyle,F=J(le),K=J(te),pe=K.find(function(me){return Object.prototype.toString.call(me)==="[object Object]"}),$=p(F),j=M($,1),S=j[0],B=function(){var fe=0;return F.map(function(we,ke){var Me=K[ke]||K[K.length-1],Ne=Object.prototype.toString.call(Me)==="[object Object]"?"url(#".concat(H,"-gradient-").concat(Z,")"):"",Le=ae(fe,we,Me,R,A,ee);return fe+=we,a.a.createElement("path",{key:ke,className:"".concat(H,"-circle-path"),d:Le.pathString,stroke:Ne,strokeLinecap:de,strokeWidth:R,opacity:we===0?0:1,fillOpacity:"0",style:Le.pathStyle,ref:S[ke]})})};return a.a.createElement("svg",C({className:_()("".concat(H,"-circle"),xe),viewBox:"0 0 100 100",style:be},ue),pe&&a.a.createElement("defs",null,a.a.createElement("linearGradient",{id:"".concat(H,"-gradient-").concat(Z),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(pe).sort(function(me,fe){return U(me)-U(fe)}).map(function(me,fe){return a.a.createElement("stop",{key:fe,offset:me,stopColor:pe[me]})}))),a.a.createElement("path",{className:"".concat(H,"-circle-trail"),d:Y,stroke:oe,strokeLinecap:de,strokeWidth:y||R,fillOpacity:"0",style:re}),B().reverse())};se.defaultProps=x;var G=se,he={Line:O,Circle:G}},i3hx:function(s,z,d){},i58Z:function(s,z,d){s.exports={wrap:"wrap___Yg2Z9",addKnowledge:"addKnowledge___2FlI0",disabled:"disabled___1_wxN"}},jO9C:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("OLod"))})(this,function(h){return h.pad.Iso97971={pad:function(a,T){a.concat(h.lib.WordArray.create([2147483648],1)),h.pad.ZeroPadding.pad(a,T)},unpad:function(a){h.pad.ZeroPadding.unpad(a),a.sigBytes--}},h.pad.Iso97971})},je13:function(s,z,d){var h=d("5nXd"),a=d("gRFJ"),T=[d("uQRt")];s.exports=h.createStore(a,T)},kSUc:function(s,z,d){},lOMy:function(s,z,d){},lPiR:function(s,z,d){(function(h,a){s.exports=z=a(d("Ib8C"))})(this,function(h){return function(a){var T=h,_=T.lib,x=_.WordArray,p=_.Hasher,f=T.algo,o=[],i=[];(function(){function v(w){for(var O=a.sqrt(w),C=2;C<=O;C++)if(!(w%C))return!1;return!0}function m(w){return(w-(w|0))*4294967296|0}for(var g=2,E=0;E<64;)v(g)&&(E<8&&(o[E]=m(a.pow(g,1/2))),i[E]=m(a.pow(g,1/3)),E++),g++})();var u=[],l=f.SHA256=p.extend({_doReset:function(){this._hash=new x.init(o.slice(0))},_doProcessBlock:function(v,m){for(var g=this._hash.words,E=g[0],w=g[1],O=g[2],C=g[3],M=g[4],N=g[5],P=g[6],k=g[7],b=0;b<64;b++){if(b<16)u[b]=v[m+b]|0;else{var V=u[b-15],X=(V<<25|V>>>7)^(V<<14|V>>>18)^V>>>3,D=u[b-2],L=(D<<15|D>>>17)^(D<<13|D>>>19)^D>>>10;u[b]=X+u[b-7]+L+u[b-16]}var U=M&N^~M&P,J=E&w^E&O^w&O,ae=(E<<30|E>>>2)^(E<<19|E>>>13)^(E<<10|E>>>22),se=(M<<26|M>>>6)^(M<<21|M>>>11)^(M<<7|M>>>25),G=k+se+U+i[b]+u[b],he=ae+J;k=P,P=N,N=M,M=C+G|0,C=O,O=w,w=E,E=G+he|0}g[0]=g[0]+E|0,g[1]=g[1]+w|0,g[2]=g[2]+O|0,g[3]=g[3]+C|0,g[4]=g[4]+M|0,g[5]=g[5]+N|0,g[6]=g[6]+P|0,g[7]=g[7]+k|0},_doFinalize:function(){var v=this._data,m=v.words,g=this._nDataBytes*8,E=v.sigBytes*8;return m[E>>>5]|=128<<24-E%32,m[(E+64>>>9<<4)+14]=a.floor(g/4294967296),m[(E+64>>>9<<4)+15]=g,v.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var v=p.clone.call(this);return v._hash=this._hash.clone(),v}});T.SHA256=p._createHelper(l),T.HmacSHA256=p._createHmacHelper(l)}(Math),h.SHA256})},lZu9:function(s,z,d){(function(h){h(d("VrN/"),d("1eCo"),d("8EBN"))})(function(h){"use strict";h.defineMode("markdown",function(a,T){var _=h.getMode(a,"text/html"),x=_.name=="null";function p(R){if(h.findModeByName){var y=h.findModeByName(R);y&&(R=y.mime||y.mimes[0])}var A=h.getMode(a,R);return A.name=="null"?null:A}T.highlightFormatting===void 0&&(T.highlightFormatting=!1),T.maxBlockquoteDepth===void 0&&(T.maxBlockquoteDepth=0),T.taskLists===void 0&&(T.taskLists=!1),T.strikethrough===void 0&&(T.strikethrough=!1),T.emoji===void 0&&(T.emoji=!1),T.fencedCodeBlockHighlighting===void 0&&(T.fencedCodeBlockHighlighting=!0),T.fencedCodeBlockDefaultMode===void 0&&(T.fencedCodeBlockDefaultMode="text/plain"),T.xml===void 0&&(T.xml=!0),T.tokenTypeOverrides===void 0&&(T.tokenTypeOverrides={});var f={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var o in f)f.hasOwnProperty(o)&&T.tokenTypeOverrides[o]&&(f[o]=T.tokenTypeOverrides[o]);var i=/^([*\-_])(?:\s*\1){2,}\s*$/,u=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,l=/^\[(x| )\](?=\s)/i,v=T.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,m=/^ {0,3}(?:\={1,}|-{2,})\s*$/,g=/^[^#!\[\]*_\\<>` "'(~:]+/,E=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,w=/^\s*\[[^\]]+?\]:.*$/,O=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,C=" ";function M(R,y,A){return y.f=y.inline=A,A(R,y)}function N(R,y,A){return y.f=y.block=A,A(R,y)}function P(R){return!R||!/\S/.test(R.string)}function k(R){if(R.linkTitle=!1,R.linkHref=!1,R.linkText=!1,R.em=!1,R.strong=!1,R.strikethrough=!1,R.quote=0,R.indentedCode=!1,R.f==V){var y=x;if(!y){var A=h.innerMode(_,R.htmlState);y=A.mode.name=="xml"&&A.state.tagStart===null&&!A.state.context&&A.state.tokenize.isInText}y&&(R.f=U,R.block=b,R.htmlState=null)}return R.trailingSpace=0,R.trailingSpaceNewLine=!1,R.prevLine=R.thisLine,R.thisLine={stream:null},null}function b(R,y){var A=R.column()===y.indentation,ee=P(y.prevLine.stream),oe=y.indentedCode,de=y.prevLine.hr,be=y.list!==!1,xe=(y.listStack[y.listStack.length-1]||0)+3;y.indentedCode=!1;var te=y.indentation;if(y.indentationDiff===null&&(y.indentationDiff=y.indentation,be)){for(y.list=null;te<y.listStack[y.listStack.length-1];)y.listStack.pop(),y.listStack.length?y.indentation=y.listStack[y.listStack.length-1]:y.list=!1;y.list!==!1&&(y.indentationDiff=te-y.listStack[y.listStack.length-1])}var le=!ee&&!de&&!y.prevLine.header&&(!be||!oe)&&!y.prevLine.fencedCodeEnd,ue=(y.list===!1||de||ee)&&y.indentation<=xe&&R.match(i),Z=null;if(y.indentationDiff>=4&&(oe||y.prevLine.fencedCodeEnd||y.prevLine.header||ee))return R.skipToEnd(),y.indentedCode=!0,f.code;if(R.eatSpace())return null;if(A&&y.indentation<=xe&&(Z=R.match(v))&&Z[1].length<=6)return y.quote=0,y.header=Z[1].length,y.thisLine.header=!0,T.highlightFormatting&&(y.formatting="header"),y.f=y.inline,D(y);if(y.indentation<=xe&&R.eat(">"))return y.quote=A?1:y.quote+1,T.highlightFormatting&&(y.formatting="quote"),R.eatSpace(),D(y);if(!ue&&!y.setext&&A&&y.indentation<=xe&&(Z=R.match(u))){var ne=Z[1]?"ol":"ul";return y.indentation=te+R.current().length,y.list=!0,y.quote=0,y.listStack.push(y.indentation),y.em=!1,y.strong=!1,y.code=!1,y.strikethrough=!1,T.taskLists&&R.match(l,!1)&&(y.taskList=!0),y.f=y.inline,T.highlightFormatting&&(y.formatting=["list","list-"+ne]),D(y)}else{if(A&&y.indentation<=xe&&(Z=R.match(E,!0)))return y.quote=0,y.fencedEndRE=new RegExp(Z[1]+"+ *$"),y.localMode=T.fencedCodeBlockHighlighting&&p(Z[2]||T.fencedCodeBlockDefaultMode),y.localMode&&(y.localState=h.startState(y.localMode)),y.f=y.block=X,T.highlightFormatting&&(y.formatting="code-block"),y.code=-1,D(y);if(y.setext||(!le||!be)&&!y.quote&&y.list===!1&&!y.code&&!ue&&!w.test(R.string)&&(Z=R.lookAhead(1))&&(Z=Z.match(m)))return y.setext?(y.header=y.setext,y.setext=0,R.skipToEnd(),T.highlightFormatting&&(y.formatting="header")):(y.header=Z[0].charAt(0)=="="?1:2,y.setext=y.header),y.thisLine.header=!0,y.f=y.inline,D(y);if(ue)return R.skipToEnd(),y.hr=!0,y.thisLine.hr=!0,f.hr;if(R.peek()==="[")return M(R,y,he)}return M(R,y,y.inline)}function V(R,y){var A=_.token(R,y.htmlState);if(!x){var ee=h.innerMode(_,y.htmlState);(ee.mode.name=="xml"&&ee.state.tagStart===null&&!ee.state.context&&ee.state.tokenize.isInText||y.md_inside&&R.current().indexOf(">")>-1)&&(y.f=U,y.block=b,y.htmlState=null)}return A}function X(R,y){var A=y.listStack[y.listStack.length-1]||0,ee=y.indentation<A,oe=A+3;if(y.fencedEndRE&&y.indentation<=oe&&(ee||R.match(y.fencedEndRE))){T.highlightFormatting&&(y.formatting="code-block");var de;return ee||(de=D(y)),y.localMode=y.localState=null,y.block=b,y.f=U,y.fencedEndRE=null,y.code=0,y.thisLine.fencedCodeEnd=!0,ee?N(R,y,y.block):de}else return y.localMode?y.localMode.token(R,y.localState):(R.skipToEnd(),f.code)}function D(R){var y=[];if(R.formatting){y.push(f.formatting),typeof R.formatting=="string"&&(R.formatting=[R.formatting]);for(var A=0;A<R.formatting.length;A++)y.push(f.formatting+"-"+R.formatting[A]),R.formatting[A]==="header"&&y.push(f.formatting+"-"+R.formatting[A]+"-"+R.header),R.formatting[A]==="quote"&&(!T.maxBlockquoteDepth||T.maxBlockquoteDepth>=R.quote?y.push(f.formatting+"-"+R.formatting[A]+"-"+R.quote):y.push("error"))}if(R.taskOpen)return y.push("meta"),y.length?y.join(" "):null;if(R.taskClosed)return y.push("property"),y.length?y.join(" "):null;if(R.linkHref?y.push(f.linkHref,"url"):(R.strong&&y.push(f.strong),R.em&&y.push(f.em),R.strikethrough&&y.push(f.strikethrough),R.emoji&&y.push(f.emoji),R.linkText&&y.push(f.linkText),R.code&&y.push(f.code),R.image&&y.push(f.image),R.imageAltText&&y.push(f.imageAltText,"link"),R.imageMarker&&y.push(f.imageMarker)),R.header&&y.push(f.header,f.header+"-"+R.header),R.quote&&(y.push(f.quote),!T.maxBlockquoteDepth||T.maxBlockquoteDepth>=R.quote?y.push(f.quote+"-"+R.quote):y.push(f.quote+"-"+T.maxBlockquoteDepth)),R.list!==!1){var ee=(R.listStack.length-1)%3;ee?ee===1?y.push(f.list2):y.push(f.list3):y.push(f.list1)}return R.trailingSpaceNewLine?y.push("trailing-space-new-line"):R.trailingSpace&&y.push("trailing-space-"+(R.trailingSpace%2?"a":"b")),y.length?y.join(" "):null}function L(R,y){return R.match(g,!0)?D(y):void 0}function U(R,y){var A=y.text(R,y);if(typeof A!="undefined")return A;if(y.list)return y.list=null,D(y);if(y.taskList){var ee=R.match(l,!0)[1]===" ";return ee?y.taskOpen=!0:y.taskClosed=!0,T.highlightFormatting&&(y.formatting="task"),y.taskList=!1,D(y)}if(y.taskOpen=!1,y.taskClosed=!1,y.header&&R.match(/^#+$/,!0))return T.highlightFormatting&&(y.formatting="header"),D(y);var oe=R.next();if(y.linkTitle){y.linkTitle=!1;var de=oe;oe==="("&&(de=")"),de=(de+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var be="^\\s*(?:[^"+de+"\\\\]+|\\\\\\\\|\\\\.)"+de;if(R.match(new RegExp(be),!0))return f.linkHref}if(oe==="`"){var xe=y.formatting;T.highlightFormatting&&(y.formatting="code"),R.eatWhile("`");var te=R.current().length;if(y.code==0&&(!y.quote||te==1))return y.code=te,D(y);if(te==y.code){var le=D(y);return y.code=0,le}else return y.formatting=xe,D(y)}else if(y.code)return D(y);if(oe==="\\"&&(R.next(),T.highlightFormatting)){var ue=D(y),Z=f.formatting+"-escape";return ue?ue+" "+Z:Z}if(oe==="!"&&R.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return y.imageMarker=!0,y.image=!0,T.highlightFormatting&&(y.formatting="image"),D(y);if(oe==="["&&y.imageMarker&&R.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return y.imageMarker=!1,y.imageAltText=!0,T.highlightFormatting&&(y.formatting="image"),D(y);if(oe==="]"&&y.imageAltText){T.highlightFormatting&&(y.formatting="image");var ue=D(y);return y.imageAltText=!1,y.image=!1,y.inline=y.f=ae,ue}if(oe==="["&&!y.image)return y.linkText&&R.match(/^.*?\]/)||(y.linkText=!0,T.highlightFormatting&&(y.formatting="link")),D(y);if(oe==="]"&&y.linkText){T.highlightFormatting&&(y.formatting="link");var ue=D(y);return y.linkText=!1,y.inline=y.f=R.match(/\(.*?\)| ?\[.*?\]/,!1)?ae:U,ue}if(oe==="<"&&R.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){y.f=y.inline=J,T.highlightFormatting&&(y.formatting="link");var ue=D(y);return ue?ue+=" ":ue="",ue+f.linkInline}if(oe==="<"&&R.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){y.f=y.inline=J,T.highlightFormatting&&(y.formatting="link");var ue=D(y);return ue?ue+=" ":ue="",ue+f.linkEmail}if(T.xml&&oe==="<"&&R.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ne=R.string.indexOf(">",R.pos);if(ne!=-1){var Y=R.string.substring(R.start,ne);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Y)&&(y.md_inside=!0)}return R.backUp(1),y.htmlState=h.startState(_),N(R,y,V)}if(T.xml&&oe==="<"&&R.match(/^\/\w*?>/))return y.md_inside=!1,"tag";if(oe==="*"||oe==="_"){for(var re=1,F=R.pos==1?" ":R.string.charAt(R.pos-2);re<3&&R.eat(oe);)re++;var K=R.peek()||" ",pe=!/\s/.test(K)&&(!O.test(K)||/\s/.test(F)||O.test(F)),$=!/\s/.test(F)&&(!O.test(F)||/\s/.test(K)||O.test(K)),j=null,S=null;if(re%2&&(!y.em&&pe&&(oe==="*"||!$||O.test(F))?j=!0:y.em==oe&&$&&(oe==="*"||!pe||O.test(K))&&(j=!1)),re>1&&(!y.strong&&pe&&(oe==="*"||!$||O.test(F))?S=!0:y.strong==oe&&$&&(oe==="*"||!pe||O.test(K))&&(S=!1)),S!=null||j!=null){T.highlightFormatting&&(y.formatting=j==null?"strong":S==null?"em":"strong em"),j===!0&&(y.em=oe),S===!0&&(y.strong=oe);var le=D(y);return j===!1&&(y.em=!1),S===!1&&(y.strong=!1),le}}else if(oe===" "&&(R.eat("*")||R.eat("_"))){if(R.peek()===" ")return D(y);R.backUp(1)}if(T.strikethrough){if(oe==="~"&&R.eatWhile(oe)){if(y.strikethrough){T.highlightFormatting&&(y.formatting="strikethrough");var le=D(y);return y.strikethrough=!1,le}else if(R.match(/^[^\s]/,!1))return y.strikethrough=!0,T.highlightFormatting&&(y.formatting="strikethrough"),D(y)}else if(oe===" "&&R.match(/^~~/,!0)){if(R.peek()===" ")return D(y);R.backUp(2)}}if(T.emoji&&oe===":"&&R.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){y.emoji=!0,T.highlightFormatting&&(y.formatting="emoji");var B=D(y);return y.emoji=!1,B}return oe===" "&&(R.match(/^ +$/,!1)?y.trailingSpace++:y.trailingSpace&&(y.trailingSpaceNewLine=!0)),D(y)}function J(R,y){var A=R.next();if(A===">"){y.f=y.inline=U,T.highlightFormatting&&(y.formatting="link");var ee=D(y);return ee?ee+=" ":ee="",ee+f.linkInline}return R.match(/^[^>]+/,!0),f.linkInline}function ae(R,y){if(R.eatSpace())return null;var A=R.next();return A==="("||A==="["?(y.f=y.inline=G(A==="("?")":"]"),T.highlightFormatting&&(y.formatting="link-string"),y.linkHref=!0,D(y)):"error"}var se={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function G(R){return function(y,A){var ee=y.next();if(ee===R){A.f=A.inline=U,T.highlightFormatting&&(A.formatting="link-string");var oe=D(A);return A.linkHref=!1,oe}return y.match(se[R]),A.linkHref=!0,D(A)}}function he(R,y){return R.match(/^([^\]\\]|\\.)*\]:/,!1)?(y.f=q,R.next(),T.highlightFormatting&&(y.formatting="link"),y.linkText=!0,D(y)):M(R,y,U)}function q(R,y){if(R.match(/^\]:/,!0)){y.f=y.inline=W,T.highlightFormatting&&(y.formatting="link");var A=D(y);return y.linkText=!1,A}return R.match(/^([^\]\\]|\\.)+/,!0),f.linkText}function W(R,y){return R.eatSpace()?null:(R.match(/^[^\s]+/,!0),R.peek()===void 0?y.linkTitle=!0:R.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),y.f=y.inline=U,f.linkHref+" url")}var H={startState:function(){return{f:b,prevLine:{stream:null},thisLine:{stream:null},block:b,htmlState:null,indentation:0,inline:U,text:L,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(R){return{f:R.f,prevLine:R.prevLine,thisLine:R.thisLine,block:R.block,htmlState:R.htmlState&&h.copyState(_,R.htmlState),indentation:R.indentation,localMode:R.localMode,localState:R.localMode?h.copyState(R.localMode,R.localState):null,inline:R.inline,text:R.text,formatting:!1,linkText:R.linkText,linkTitle:R.linkTitle,linkHref:R.linkHref,code:R.code,em:R.em,strong:R.strong,strikethrough:R.strikethrough,emoji:R.emoji,header:R.header,setext:R.setext,hr:R.hr,taskList:R.taskList,list:R.list,listStack:R.listStack.slice(0),quote:R.quote,indentedCode:R.indentedCode,trailingSpace:R.trailingSpace,trailingSpaceNewLine:R.trailingSpaceNewLine,md_inside:R.md_inside,fencedEndRE:R.fencedEndRE}},token:function(R,y){if(y.formatting=!1,R!=y.thisLine.stream){if(y.header=0,y.hr=!1,R.match(/^\s*$/,!0))return k(y),null;if(y.prevLine=y.thisLine,y.thisLine={stream:R},y.taskList=!1,y.trailingSpace=0,y.trailingSpaceNewLine=!1,!y.localState&&(y.f=y.block,y.f!=V)){var A=R.match(/^\s*/,!0)[0].replace(/\t/g,C).length;if(y.indentation=A,y.indentationDiff=null,A>0)return null}}return y.f(R,y)},innerMode:function(R){return R.block==V?{state:R.htmlState,mode:_}:R.localState?{state:R.localState,mode:R.localMode}:{state:R,mode:H}},indent:function(R,y,A){return R.block==V&&_.indent?_.indent(R.htmlState,y,A):R.localState&&R.localMode.indent?R.localMode.indent(R.localState,y,A):h.Pass},blankLine:k,getType:D,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return H},"xml"),h.defineMIME("text/markdown","markdown"),h.defineMIME("text/x-markdown","markdown")})},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(s){if(!0)module.exports=s();else var z})(function(){var define,module,exports;return function(){function s(z,d,h){function a(x,p){if(!d[x]){if(!z[x]){var f=typeof require=="function"&&require;if(!p&&f)return require(x,!0);if(T)return T(x,!0);var o=new Error("Cannot find module '"+x+"'");throw o.code="MODULE_NOT_FOUND",o}var i=d[x]={exports:{}};z[x][0].call(i.exports,function(u){var l=z[x][1][u];return a(l||u)},i,i.exports,s,z,d,h)}return d[x].exports}for(var T=typeof require=="function"&&require,_=0;_<h.length;_++)a(h[_]);return a}return s}()({1:[function(s,z,d){"use strict";var h=s("./browser/client");h.Buffer=s("buffer").Buffer,h.urllib=s("../shims/xhr"),h.version=s("./browser/version").version,z.exports=h},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(s,z,d){(function(h,a){"use strict";var T=s("babel-runtime/core-js/promise"),_=i(T),x=s("babel-runtime/regenerator"),p=i(x),f=s("babel-runtime/core-js/object/assign"),o=i(f);function i(he){return he&&he.__esModule?he:{default:he}}var u=s("debug")("ali-oss"),l=s("copy-to"),v=s("xml2js"),m=s("agentkeepalive"),g=s("merge-descriptors"),E=s("url"),w=s("is-type-of"),O=s("platform"),C=s("utility"),M=s("urllib"),N=s("./version"),P=s("bowser"),k=s("../common/signUtils"),b=s("../common/utils/isIP"),V=b.isIP,X=s("../common/client/initOptions"),D=s("../common/utils/createRequest"),L=D.createRequest,U=new m;function J(){var he=O.name,q=O.version;he&&he.toLowerCase&&he.toLowerCase()==="ie"&&q.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function ae(){return location&&location.protocol==="https:"}function se(he,q){if(J(),!(this instanceof se))return new se(he,q);he&&he.inited?this.options=he:this.options=se.initOptions(he),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=M,this.agent=this.options.agent||U),this.ctx=q,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}z.exports=se,se.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 W=(0,o.default)({secure:ae(),useFetch:!1},q);return X(W)};var G=se.prototype;G.debug=u,g(G,s("./object")),g(G,s("../common/bucket/getBucketWebsite")),g(G,s("../common/bucket/putBucketWebsite")),g(G,s("../common/bucket/deleteBucketWebsite")),g(G,s("../common/bucket/getBucketLifecycle")),g(G,s("../common/bucket/putBucketLifecycle")),g(G,s("../common/bucket/deleteBucketLifecycle")),g(G,s("../common/bucket/putBucketVersioning")),g(G,s("../common/bucket/getBucketVersioning")),g(G,s("./managed-upload")),g(G,s("../common/multipart")),g(G,s("../common/parallel")),G.signature=function(q){return this.debug("authorization stringToSign: %s",q,"info"),k.computeSignature(this.options.accessKeySecret,q)},G.authorization=function(q,W,H,R){var y=k.buildCanonicalString(q.toUpperCase(),W,{headers:R,parameters:H});return k.authorization(this.options.accessKeyId,this.options.accessKeySecret,y)},G.request=function(q){var W,H,R,y,A,ee;return p.default.async(function(de){for(;;)switch(de.prev=de.next){case 0:return W=L.call(this,q),this.options.useFetch||(W.params.mode="disable-fetch"),H=void 0,R=void 0,y=!!q.stream,de.prev=5,de.next=8,p.default.awrap(this.urllib.request(W.url,W.params));case 8:H=de.sent,this.debug("response %s %s, got %s, headers: %j",q.method,W.url,H.status,H.headers,"info"),de.next=15;break;case 12:de.prev=12,de.t0=de.catch(5),R=de.t0;case 15:if(A=void 0,!(H&&q.successStatuses&&q.successStatuses.indexOf(H.status)===-1)){de.next=28;break}return de.next=19,p.default.awrap(this.requestError(H));case 19:if(A=de.sent,!(A.code==="RequestTimeTooSkewed"&&!y)){de.next=25;break}return this.options.amendTimeSkewed=+new Date(A.serverTime)-new Date,de.next=24,p.default.awrap(this.request(q));case 24:return de.abrupt("return",de.sent);case 25:A.params=q,de.next=32;break;case 28:if(!R){de.next=32;break}return de.next=31,p.default.awrap(this.requestError(R));case 31:A=de.sent;case 32:if(!A){de.next=34;break}throw A;case 34:if(!q.xmlResponse){de.next=39;break}return de.next=37,p.default.awrap(this.parseXML(H.data));case 37:ee=de.sent,H.data=ee;case 39:return de.abrupt("return",H);case 40:case"end":return de.stop()}},null,this,[[5,12]])},G._getResource=function(q){var W="/";return q.bucket&&(W+=q.bucket+"/"),q.object&&(W+=q.object),W},G._isIP=V,G._escape=function(q){return C.encodeURIComponent(q).replace(/%2F/g,"/")},G._getReqUrl=function(q){var W={};l(this.options.endpoint).to(W);var H=this._isIP(W.hostname),R=this.options.cname;q.bucket&&!R&&!H&&(W.host=q.bucket+"."+W.host);var y="/";q.bucket&&H&&(y+=q.bucket+"/"),q.object&&(y+=this._escape(q.object).replace(/\+/g,"%2B")),W.pathname=y;var A={};if(q.query&&g(A,q.query),q.subres){var ee={};w.string(q.subres)?ee[q.subres]="":w.array(q.subres)?q.subres.forEach(function(oe){ee[oe]=""}):ee=q.subres,g(A,ee)}return W.query=A,E.format(W)},G._getUserAgent=function(){var q=a&&a.browser?"js":"nodejs",W="aliyun-sdk-"+q+"/"+N.version,H=O.description;return!H&&a&&(H="Node.js "+a.version.slice(1)+" on "+a.platform+" "+a.arch),this._checkUserAgent(W+" "+H)},G._checkUserAgent=function(q){var W=q.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return W},G.checkBrowserAndVersion=function(q,W){return P.name===q&&P.version.split(".")[0]===W},G.parseXML=function(q){return new _.default(function(W,H){h.isBuffer(q)&&(q=q.toString()),v.parseString(q,{explicitRoot:!1,explicitArray:!1},function(R,y){R?H(R):W(y)})})},G.requestError=function(q){var W,H,R,y;return p.default.async(function(ee){for(;;)switch(ee.prev=ee.next){case 0:if(W=null,!(!q.data||!q.data.length)){ee.next=5;break}q.status===-1||q.status===-2?(W=new Error(q.message),W.name=q.name,W.status=q.status,W.code=q.name):(q.status===404?(W=new Error("Object not exists"),W.name="NoSuchKeyError",W.status=404,W.code="NoSuchKey"):q.status===412?(W=new Error("Pre condition failed"),W.name="PreconditionFailedError",W.status=412,W.code="PreconditionFailed"):(W=new Error("Unknow error, status: "+q.status),W.name="UnknowError",W.status=q.status),W.requestId=q.headers["x-oss-request-id"],W.host=""),ee.next=33;break;case 5:return H=String(q.data),this.debug("request response error data: %s",H,"error"),R=void 0,ee.prev=8,ee.next=11,p.default.awrap(this.parseXML(H));case 11:if(ee.t0=ee.sent,ee.t0){ee.next=14;break}ee.t0={};case 14:R=ee.t0,ee.next=24;break;case 17:return ee.prev=17,ee.t1=ee.catch(8),this.debug(H,"error"),ee.t1.message+=`
raw xml: `+H,ee.t1.status=q.status,ee.t1.requestId=q.headers["x-oss-request-id"],ee.abrupt("return",ee.t1);case 24:y=R.Message||"unknow request error, status: "+q.status,R.Condition&&(y+=" (condition: "+R.Condition+")"),W=new Error(y),W.name=R.Code?R.Code+"Error":"UnknowError",W.status=q.status,W.code=R.Code,W.requestId=R.RequestId,W.hostId=R.HostId,W.serverTime=R.ServerTime;case 33:return this.debug("generate error %j",W,"error"),ee.abrupt("return",W);case 35:case"end":return ee.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:s("../../node_modules/is-buffer/index.js")},s("_process"))},{"../../node_modules/is-buffer/index.js":197,"../common/bucket/deleteBucketLifecycle":6,"../common/bucket/deleteBucketWebsite":7,"../common/bucket/getBucketLifecycle":8,"../common/bucket/getBucketVersioning":9,"../common/bucket/getBucketWebsite":10,"../common/bucket/putBucketLifecycle":11,"../common/bucket/putBucketVersioning":12,"../common/bucket/putBucketWebsite":13,"../common/client/initOptions":15,"../common/multipart":18,"../common/parallel":33,"../common/signUtils":34,"../common/utils/createRequest":38,"../common/utils/isIP":45,"./managed-upload":3,"./object":4,"./version":5,_process:208,agentkeepalive:48,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,bowser:70,"copy-to":76,debug:288,"is-type-of":289,"merge-descriptors":200,platform:206,url:238,urllib:291,utility:290,xml2js:249}],3:[function(s,z,d){(function(h){"use strict";var a=s("babel-runtime/core-js/array/from"),T=o(a),_=s("babel-runtime/core-js/promise"),x=o(_),p=s("babel-runtime/regenerator"),f=o(p);function o(k){return k&&k.__esModule?k:{default:k}}var i=s("is-type-of"),u=s("util"),l=s("path"),v=s("mime"),m=s("copy-to"),g=s("../common/utils/isBlob"),E=g.isBlob,w=s("../common/utils/isFile"),O=w.isFile,C=d;C.multipartUpload=function(b,V,X){var D,L,U,J,ae,se,G,he,q;return f.default.async(function(H){for(;;)switch(H.prev=H.next){case 0:if(this.resetCancelFlag(),X=X||{},!(X.checkpoint&&X.checkpoint.uploadId)){H.next=6;break}return H.next=5,f.default.awrap(this._resumeMultipart(X.checkpoint,X));case 5:return H.abrupt("return",H.sent);case 6:return D=100*1024,X.mime||(O(V)?X.mime=v.getType(l.extname(V.name)):E(V)?X.mime=V.type:X.mime=v.getType(l.extname(V))),X.headers=X.headers||{},this._convertMetaToHeaders(X.meta,X.headers),H.next=12,f.default.awrap(this._getFileSize(V));case 12:if(L=H.sent,!(L<D)){H.next=25;break}return U=this._createStream(V,0,L),X.contentLength=L,H.next=18,f.default.awrap(this.putStream(b,U,X));case 18:if(J=H.sent,!(X&&X.progress)){H.next=22;break}return H.next=22,f.default.awrap(X.progress(1));case 22:return ae={res:J.res,bucket:this.options.bucket,name:b,etag:J.res.headers.etag},(X.headers&&X.headers["x-oss-callback"]||X.callback)&&(ae.data=J.data),H.abrupt("return",ae);case 25:if(!(X.partSize&&!(parseInt(X.partSize,10)===X.partSize))){H.next=27;break}throw new Error("partSize must be int number");case 27:if(!(X.partSize&&X.partSize<D)){H.next=29;break}throw new Error("partSize must not be smaller than "+D);case 29:return H.next=31,f.default.awrap(this.initMultipartUpload(b,X));case 31:if(se=H.sent,G=se.uploadId,he=this._getPartSize(L,X.partSize),q={file:V,name:b,fileSize:L,partSize:he,uploadId:G,doneParts:[]},!(X&&X.progress)){H.next=38;break}return H.next=38,f.default.awrap(X.progress(0,q,se.res));case 38:return H.next=40,f.default.awrap(this._resumeMultipart(q,X));case 40:return H.abrupt("return",H.sent);case 41:case"end":return H.stop()}},null,this)},C._resumeMultipart=function(b,V){var X,D,L,U,J,ae,se,G,he,q,W,H,R,y,A,ee,oe,de;return f.default.async(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(X=this,!this.isCancel()){xe.next=3;break}throw this._makeCancelEvent();case 3:return D=b.file,L=b.fileSize,U=b.partSize,J=b.uploadId,ae=b.doneParts,se=b.name,G=[],ae.length>0&&m(ae).to(G),he=this._divideParts(L,U),q=he.length,W=!1,H=function(le,ue){var Z=this;return new x.default(function(Y,re){var F,K,pe,$;return f.default.async(function(S){for(;;)switch(S.prev=S.next){case 0:if(S.prev=0,le.isCancel()){S.next=18;break}return F=he[ue-1],K={stream:le._createStream(D,F.start,F.end),size:F.end-F.start},S.next=6,f.default.awrap(le._uploadPart(se,J,ue,K));case 6:if(pe=S.sent,!(!le.isCancel()&&!W)){S.next=15;break}if(b.doneParts.push({number:ue,etag:pe.res.headers.etag}),!V.progress){S.next=12;break}return S.next=12,f.default.awrap(V.progress(ae.length/q,b,pe.res));case 12:Y({number:ue,etag:pe.res.headers.etag}),S.next=16;break;case 15:Y();case 16:S.next=19;break;case 18:Y();case 19:S.next=30;break;case 21:S.prev=21,S.t0=S.catch(0),$=new Error,$.name=S.t0.name,$.message=S.t0.message,$.stack=S.t0.stack,$.partNum=ue,m(S.t0).to($),re($);case 30:case"end":return S.stop()}},null,Z,[[0,21]])})},R=(0,T.default)(new Array(q),function(te,le){return le+1}),y=G.map(function(te){return te.number}),A=R.filter(function(te){return y.indexOf(te)<0}),ee=5,oe=V.parallel||ee,xe.next=17,f.default.awrap(this._parallel(A,oe,function(te){return new x.default(function(le,ue){H(X,te).then(function(Z){Z&&G.push(Z),le()}).catch(function(Z){ue(Z)})})}));case 17:if(de=xe.sent,W=!0,!this.isCancel()){xe.next=22;break}throw H=null,this._makeCancelEvent();case 22:if(!(de&&de.length>0)){xe.next=25;break}throw de[0].message="Failed to upload some parts with error: "+de[0].toString()+" part_num: "+de[0].partNum,de[0];case 25:return xe.next=27,f.default.awrap(this.completeMultipartUpload(se,J,G,V));case 27:return xe.abrupt("return",xe.sent);case 28:case"end":return xe.stop()}},null,this)},C._getFileSize=function(b){return f.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:if(!i.buffer(b)){X.next=4;break}return X.abrupt("return",b.length);case 4:if(!(E(b)||O(b))){X.next=6;break}return X.abrupt("return",b.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return X.stop()}},null,this)};var M=s("stream"),N=M.Readable;function P(k,b){if(!(this instanceof P))return new P(k,b);N.call(this,b),this.file=k,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}u.inherits(P,N),P.prototype.readFileAndPush=function(b){if(this.fileBuffer)for(var V=!0;V&&this.fileBuffer&&this.start<this.fileBuffer.length;){var X=this.start,D=X+b;D=D>this.fileBuffer.length?this.fileBuffer.length:D,this.start=D,V=this.push(this.fileBuffer.slice(X,D))}},P.prototype._read=function(b){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 V=16*1024;b=b||V;var X=this;this.reader.onload=function(L){X.fileBuffer=h.from(new Uint8Array(L.target.result)),X.file=null,X.readFileAndPush(b)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(b)},C._createStream=function(b,V,X){if(E(b)||O(b))return new P(b.slice(V,X));throw new Error("_createStream requires File/Blob.")},C._getPartSize=function(b,V){var X=10*1e3,D=1024*1024;return V?Math.max(Math.ceil(b/X),V):D},C._divideParts=function(b,V){for(var X=Math.ceil(b/V),D=[],L=0;L<X;L++){var U=V*L,J=Math.min(U+V,b);D.push({start:U,end:J})}return D}}).call(this,s("buffer").Buffer)},{"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/array/from":52,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,buffer:73,"copy-to":76,"is-type-of":289,mime:202,path:205,stream:230,util:243}],4:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/promise"),a=i(h),T=s("babel-runtime/core-js/object/keys"),_=i(T),x=s("babel-runtime/core-js/object/assign"),p=i(x),f=s("babel-runtime/regenerator"),o=i(f);function i(X){return X&&X.__esModule?X:{default:X}}var u=s("utility"),l=s("fs"),v=s("is-type-of"),m=s("url"),g=s("copy-to"),E=s("path"),w=s("mime"),O=s("../common/callback"),C=s("../common/signUtils"),M=s("merge-descriptors"),N=s("../common/utils/isBlob"),P=N.isBlob,k=s("../common/utils/isFile"),b=k.isFile,V=d;V.append=function(D,L,U){var J;return o.default.async(function(se){for(;;)switch(se.prev=se.next){case 0:return U=U||{},U.position===void 0&&(U.position="0"),U.subres={append:"",position:U.position},U.method="POST",se.next=6,o.default.awrap(this.put(D,L,U));case 6:return J=se.sent,J.nextAppendPosition=J.res.headers["x-oss-next-append-position"],se.abrupt("return",J);case 9:case"end":return se.stop()}},null,this)},V.put=function(D,L,U){var J,ae,se,G,he,q,W;return o.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:if(J=void 0,U=U||{},D=this._objectName(D),!v.buffer(L)){R.next=7;break}J=L,R.next=33;break;case 7:if(!(P(L)||b(L))){R.next=32;break}return U.mime||(b(L)?U.mime=w.getType(E.extname(L.name)):U.mime=L.type),ae=this._createStream(L,0,L.size),R.next=12,o.default.awrap(this._getFileSize(L));case 12:return U.contentLength=R.sent,R.prev=13,R.next=16,o.default.awrap(this.putStream(D,ae,U));case 16:return se=R.sent,R.abrupt("return",se);case 20:if(R.prev=20,R.t0=R.catch(13),!(R.t0.code==="RequestTimeTooSkewed")){R.next=29;break}return this.options.amendTimeSkewed=+new Date(R.t0.serverTime)-new Date,R.next=26,o.default.awrap(this.put(D,L,U));case 26:return R.abrupt("return",R.sent);case 29:throw R.t0;case 30:R.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return U.headers=U.headers||{},this._convertMetaToHeaders(U.meta,U.headers),G=U.method||"PUT",he=this._objectRequestParams(G,D,U),O.encodeCallback(he,U),he.mime=U.mime,he.content=J,he.successStatuses=[200],R.next=43,o.default.awrap(this.request(he));case 43:return q=R.sent,W={name:D,url:this._objectUrl(D),res:q.res},he.headers&&he.headers["x-oss-callback"]&&(W.data=JSON.parse(q.data.toString())),R.abrupt("return",W);case 47:case"end":return R.stop()}},null,this,[[13,20]])},V.putStream=function(D,L,U){var J,ae,se,G;return o.default.async(function(q){for(;;)switch(q.prev=q.next){case 0:return U=U||{},U.headers=U.headers||{},D=this._objectName(D),U.contentLength?U.headers["Content-Length"]=U.contentLength:U.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(U.meta,U.headers),J=U.method||"PUT",ae=this._objectRequestParams(J,D,U),O.encodeCallback(ae,U),ae.mime=U.mime,ae.stream=L,ae.successStatuses=[200],q.next=13,o.default.awrap(this.request(ae));case 13:return se=q.sent,G={name:D,url:this._objectUrl(D),res:se.res},ae.headers&&ae.headers["x-oss-callback"]&&(G.data=JSON.parse(se.data.toString())),q.abrupt("return",G);case 17:case"end":return q.stop()}},null,this)},M(V,s("../common/object/copyObject")),M(V,s("../common/object/getObjectTagging")),M(V,s("../common/object/putObjectTagging")),M(V,s("../common/object/deleteObjectTagging")),M(V,s("../common/image")),M(V,s("../common/object/getBucketVersions")),M(V,s("../common/object/getACL")),M(V,s("../common/object/putACL")),M(V,s("../common/object/head")),M(V,s("../common/object/delete")),M(V,s("../common/object/get")),M(V,s("../common/object/putSymlink")),M(V,s("../common/object/getSymlink")),M(V,s("../common/object/deleteMulti")),M(V,s("../common/object/getObjectMeta")),V.putMeta=function(D,L,U){var J;return o.default.async(function(se){for(;;)switch(se.prev=se.next){case 0:return se.next=2,o.default.awrap(this.copy(D,D,{meta:L||{},timeout:U&&U.timeout,ctx:U&&U.ctx}));case 2:return J=se.sent,se.abrupt("return",J);case 4:case"end":return se.stop()}},null,this)},V.list=function(D,L){var U,J,ae,se,G;return o.default.async(function(q){for(;;)switch(q.prev=q.next){case 0:return U=this._objectRequestParams("GET","",L),U.query=D,U.xmlResponse=!0,U.successStatuses=[200],q.next=6,o.default.awrap(this.request(U));case 6:return J=q.sent,ae=J.data.Contents,se=this,ae&&(Array.isArray(ae)||(ae=[ae]),ae=ae.map(function(W){return{name:W.Key,url:se._objectUrl(W.Key),lastModified:W.LastModified,etag:W.ETag,type:W.Type,size:Number(W.Size),storageClass:W.StorageClass,owner:{id:W.Owner.ID,displayName:W.Owner.DisplayName}}})),G=J.data.CommonPrefixes||null,G&&(Array.isArray(G)||(G=[G]),G=G.map(function(W){return W.Prefix})),q.abrupt("return",{res:J.res,objects:ae,prefixes:G,nextMarker:J.data.NextMarker||null,isTruncated:J.data.IsTruncated==="true"});case 13:case"end":return q.stop()}},null,this)},V.restore=function(D,L){var U,J;return o.default.async(function(se){for(;;)switch(se.prev=se.next){case 0:return L=L||{},L.subres=(0,p.default)({restore:""},L.subres),L.versionId&&(L.subres.versionId=L.versionId),U=this._objectRequestParams("POST",D,L),U.successStatuses=[202],se.next=7,o.default.awrap(this.request(U));case 7:return J=se.sent,se.abrupt("return",{res:J.res});case 9:case"end":return se.stop()}},null,this)},V.signatureUrl=function(D,L){L=L||{},D=this._objectName(D),L.method=L.method||"GET";var U=u.timestamp()+(L.expires||1800),J={bucket:this.options.bucket,object:D},ae=this._getResource(J);this.options.stsToken&&(L["security-token"]=this.options.stsToken);var se=C._signatureForURL(this.options.accessKeySecret,L,ae,U),G=m.parse(this._getReqUrl(J));return G.query={OSSAccessKeyId:this.options.accessKeyId,Expires:U,Signature:se.Signature},g(se.subResource).to(G.query),G.format()},V.getObjectUrl=function(D,L){return L?L[L.length-1]!=="/"&&(L+="/"):L=this.options.endpoint.format(),L+this._escape(this._objectName(D))},V._objectUrl=function(D){return this._getReqUrl({bucket:this.options.bucket,object:D})},V.generateObjectUrl=function(X,D){if(D)D[D.length-1]!=="/"&&(D+="/");else{D=this.options.endpoint.format();var L=m.parse(D),U=this.options.bucket;L.hostname=U+"."+L.hostname,L.host=U+"."+L.host,D=L.format()}return D+this._escape(this._objectName(X))},V._objectRequestParams=function(D,L,U){if(!this.options.bucket)throw new Error("Please create a bucket first");U=U||{},L=this._objectName(L);var J={object:L,bucket:this.options.bucket,method:D,subres:U&&U.subres,timeout:U&&U.timeout,ctx:U&&U.ctx};return U.headers&&(J.headers={},g(U.headers).to(J.headers)),J},V._objectName=function(D){return D.replace(/^\/+/,"")},V._convertMetaToHeaders=function(D,L){if(!D)return;(0,_.default)(D).forEach(function(U){L["x-oss-meta-"+U]=D[U]})},V._deleteFileSafe=function(D){var L=this;return new a.default(function(U){l.exists(D,function(J){J?l.unlink(D,function(ae){ae&&L.debug("unlink %j error: %s",D,ae,"error"),U()}):U()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(s,z,d){"use strict";d.version="6.10.0"},{}],6:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=T(h);function T(f){return f&&f.__esModule?f:{default:f}}var _=s("../utils/checkBucketName"),x=_.checkBucketName,p=d;p.deleteBucketLifecycle=function(o,i){var u,l;return a.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return x(o),u=this._bucketRequestParams("DELETE",o,"lifecycle",i),u.successStatuses=[204],m.next=5,a.default.awrap(this.request(u));case 5:return l=m.sent,m.abrupt("return",{res:l.res});case 7:case"end":return m.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=T(h);function T(f){return f&&f.__esModule?f:{default:f}}var _=s("../utils/checkBucketName"),x=_.checkBucketName,p=d;p.deleteBucketWebsite=function(o,i){var u,l;return a.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return x(o),u=this._bucketRequestParams("DELETE",o,"website",i),u.successStatuses=[204],m.next=5,a.default.awrap(this.request(u));case 5:return l=m.sent,m.abrupt("return",{res:l.res});case 7:case"end":return m.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=T(h);function T(l){return l&&l.__esModule?l:{default:l}}var _=s("../utils/checkBucketName"),x=_.checkBucketName,p=s("../utils/isArray"),f=p.isArray,o=s("../utils/formatObjKey"),i=o.formatObjKey,u=d;u.getBucketLifecycle=function(v,m){var g,E,w;return a.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:return x(v),g=this._bucketRequestParams("GET",v,"lifecycle",m),g.successStatuses=[200],g.xmlResponse=!0,C.next=6,a.default.awrap(this.request(g));case 6:return E=C.sent,w=E.data.Rule||null,w&&(f(w)||(w=[w]),w=w.map(function(M){return M.ID&&(M.id=M.ID,delete M.ID),M.Tag&&!f(M.Tag)&&(M.Tag=[M.Tag]),i(M,"firstLowerCase")})),C.abrupt("return",{rules:w,res:E.res});case 10:case"end":return C.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=T(h);function T(f){return f&&f.__esModule?f:{default:f}}var _=s("../utils/checkBucketName"),x=_.checkBucketName,p=d;p.getBucketVersioning=function(o,i){var u,l,v;return a.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return x(o),u=this._bucketRequestParams("GET",o,"versioning",i),u.xmlResponse=!0,u.successStatuses=[200],g.next=6,a.default.awrap(this.request(u));case 6:return l=g.sent,v=l.data.Status,g.abrupt("return",{status:l.status,versionStatus:v,res:l.res});case 9:case"end":return g.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=T(h);function T(i){return i&&i.__esModule?i:{default:i}}var _=s("../utils/checkBucketName"),x=_.checkBucketName,p=s("../utils/isObject"),f=p.isObject,o=d;o.getBucketWebsite=function(u,l){var v,m,g;return a.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return x(u),v=this._bucketRequestParams("GET",u,"website",l),v.successStatuses=[200],v.xmlResponse=!0,w.next=6,a.default.awrap(this.request(v));case 6:return m=w.sent,g=[],m.data.RoutingRules&&m.data.RoutingRules.RoutingRule&&(f(m.data.RoutingRules.RoutingRule)?g=[m.data.RoutingRules.RoutingRule]:g=m.data.RoutingRules.RoutingRule),w.abrupt("return",{index:m.data.IndexDocument&&m.data.IndexDocument.Suffix||"",supportSubDir:m.data.IndexDocument&&m.data.IndexDocument.SupportSubDir||"false",type:m.data.IndexDocument&&m.data.IndexDocument.Type,routingRules:g,error:m.data.ErrorDocument&&m.data.ErrorDocument.Key||null,res:m.res});case 10:case"end":return w.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=T(h);function T(b){return b&&b.__esModule?b:{default:b}}var _=s("../utils/checkBucketName"),x=_.checkBucketName,p=s("../utils/isArray"),f=p.isArray,o=s("../utils/deepCopy"),i=o.deepCopy,u=s("../utils/isObject"),l=u.isObject,v=s("../utils/obj2xml"),m=v.obj2xml,g=s("../utils/checkObjectTag"),E=g.checkObjectTag,w=s("../utils/getStrBytesCount"),O=w.getStrBytesCount,C=d;C.putBucketLifecycle=function(V,X,D){var L,U,J,ae,se;return a.default.async(function(he){for(;;)switch(he.prev=he.next){case 0:if(x(V),f(X)){he.next=3;break}throw new Error("rules must be Array");case 3:return L=this._bucketRequestParams("PUT",V,"lifecycle",D),U=[],J={LifecycleConfiguration:{Rule:U}},X.forEach(function(q){M(q),k(q),q.id&&(q.ID=q.id,delete q.id),U.push(q)}),ae=m(J,{headers:!0,firstUpperCase:!0}),L.content=ae,L.mime="xml",L.successStatuses=[200],he.next=13,a.default.awrap(this.request(L));case 13:return se=he.sent,he.abrupt("return",{res:se.res});case 15:case"end":return he.stop()}},null,this)};function M(b){b.days&&(b.expiration={days:b.days}),b.date&&(b.expiration={createdBeforeDate:b.date})}function N(b,V){var X=b.days,D=b.createdBeforeDate;if(!X&&!D)throw new Error(V+" must includes days or createdBeforeDate");if(X&&!/^[1-9][0-9]*$/.test(X))throw new Error("days must be a positive integer");if(D&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(D))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function P(b){if(!f(b)&&!l(b))throw new Error("tag must be Object or Array");b=l(b)?[b]:b;var V={},X=i(b);X.forEach(function(D){V[D.key]=D.value}),E(V)}function k(b){if(b.id&&O(b.id)>255)throw new Error("ID is composed of 255 bytes at most");if(b.prefix===""||b.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(b.status))throw new Error("Status must be Enabled or Disabled");if(b.transition){if(!["IA","Archive"].includes(b.transition.storageClass))throw new Error("StorageClass must be IA or Archive");N(b.transition,"Transition")}if(b.expiration){if(!b.expiration.expiredObjectDeleteMarker)N(b.expiration,"Expiration");else if(b.expiration.days||b.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(b.abortMultipartUpload&&N(b.abortMultipartUpload,"AbortMultipartUpload"),!b.expiration&&!b.abortMultipartUpload&&!b.transition&&!b.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(b.tag){if(b.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");P(b.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=T(h);function T(i){return i&&i.__esModule?i:{default:i}}var _=s("../utils/checkBucketName"),x=_.checkBucketName,p=s("../utils/obj2xml"),f=p.obj2xml,o=d;o.putBucketVersioning=function(u,l){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},m,g,E;return a.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:if(x(u),["Enabled","Suspended"].includes(l)){O.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return m=this._bucketRequestParams("PUT",u,"versioning",v),g={VersioningConfiguration:{Status:l}},m.mime="xml",m.content=f(g,{headers:!0}),O.next=9,a.default.awrap(this.request(m));case 9:return E=O.sent,O.abrupt("return",{res:E.res,status:E.status});case 11:case"end":return O.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=T(h);function T(l){return l&&l.__esModule?l:{default:l}}var _=s("../utils/checkBucketName"),x=_.checkBucketName,p=s("../utils/obj2xml"),f=p.obj2xml,o=s("../utils/isArray"),i=o.isArray,u=d;u.putBucketWebsite=function(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=arguments[2],E,w,O,C,M;return a.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:if(x(v),E=this._bucketRequestParams("PUT",v,"website",g),w={Suffix:m.index||"index.html"},O={IndexDocument:w},C={WebsiteConfiguration:O},m.supportSubDir&&(w.SupportSubDir=m.supportSubDir),m.type&&(w.Type=m.type),m.error&&(O.ErrorDocument={Key:m.error}),!(m.routingRules!==void 0)){P.next=12;break}if(i(m.routingRules)){P.next=11;break}throw new Error("RoutingRules must be Array");case 11:O.RoutingRules={RoutingRule:m.routingRules};case 12:return C=f(C),E.content=C,E.mime="xml",E.successStatuses=[200],P.next=18,a.default.awrap(this.request(E));case 18:return M=P.sent,P.abrupt("return",{res:M.res});case 20:case"end":return P.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(s,z,d){(function(h){"use strict";var a=s("babel-runtime/core-js/object/keys"),T=p(a),_=s("babel-runtime/core-js/json/stringify"),x=p(_);function p(f){return f&&f.__esModule?f:{default:f}}d.encodeCallback=function(o,i){if(o.headers=o.headers||{},!Object.prototype.hasOwnProperty.call(o.headers,"x-oss-callback")&&i.callback){var u={callbackUrl:encodeURI(i.callback.url),callbackBody:i.callback.body};i.callback.host&&(u.callbackHost=i.callback.host),i.callback.contentType&&(u.callbackBodyType=i.callback.contentType);var l=h.from((0,x.default)(u)).toString("base64");if(o.headers["x-oss-callback"]=l,i.callback.customValue){var v={};(0,T.default)(i.callback.customValue).forEach(function(m){v["x:"+m]=i.callback.customValue[m]}),o.headers["x-oss-callback-var"]=h.from((0,x.default)(v)).toString("base64")}}}}).call(this,s("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/assign"),a=T(h);function T(u){return u&&u.__esModule?u:{default:u}}var _=s("humanize-ms"),x=s("url"),p=s("../utils/checkBucketName"),f=p.checkBucketName;function o(u,l){var v=x.parse(u);if(v.protocol||(v=x.parse("http"+(l?"s":"")+"://"+u)),v.protocol!=="http:"&&v.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return v}function i(u,l,v){var m=v?"https://":"http://",g=l?"-internal.aliyuncs.com":".aliyuncs.com",E="vpc100-oss-cn-";return u.substr(0,E.length)===E&&(g=".aliyuncs.com"),x.parse(m+u+g)}z.exports=function(u){if(!u||!u.accessKeyId||!u.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");u.bucket&&f(u.bucket);var l=(0,a.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},u);if(l.accessKeyId=l.accessKeyId.trim(),l.accessKeySecret=l.accessKeySecret.trim(),l.timeout&&(l.timeout=_(l.timeout)),l.endpoint)l.endpoint=o(l.endpoint,l.secure);else if(l.region)l.endpoint=i(l.region,l.internal,l.secure);else throw new Error("require options.endpoint or options.region");return l.inited=!0,l}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(s,z,d){"use strict";var h=s("merge-descriptors"),a=d;h(a,s("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=T(h);function T(l){return l&&l.__esModule?l:{default:l}}var _=s("../utils/checkBucketName"),x=_.checkBucketName,p=s("querystring"),f=s("js-base64"),o=f.Base64.encode,i=d;i.processObjectSave=function(v,m,g,E){var w,O,C,M;return a.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:return u(v,"sourceObject"),u(m,"targetObject"),u(g,"process"),m=this._objectName(m),E&&x(E),w=this._objectRequestParams("POST",v,{subres:"x-oss-process"}),O=E?",b_"+o(E):"",m=o(m),C={"x-oss-process":g+"|sys/saveas,o_"+m+O},w.content=p.stringify(C),P.next=12,a.default.awrap(this.request(w));case 12:return M=P.sent,P.abrupt("return",{res:M.res,status:M.res.status});case 14:case"end":return P.stop()}},null,this)};function u(l,v){if(!l)throw new Error(v+" is required");if(typeof l!="string")throw new Error(v+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=T(h);function T(i){return i&&i.__esModule?i:{default:i}}var _=s("copy-to"),x=s("./callback"),p=s("./utils/deepCopy"),f=p.deepCopy,o=d;o.listUploads=function(u,l){var v,m,g,E;return a.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:return l=l||{},v={},_(l).to(v),v.subres="uploads",m=this._objectRequestParams("GET","",v),m.query=u,m.xmlResponse=!0,m.successStatuses=[200],O.next=10,a.default.awrap(this.request(m));case 10:return g=O.sent,E=g.data.Upload||[],Array.isArray(E)||(E=[E]),E=E.map(function(C){return{name:C.Key,uploadId:C.UploadId,initiated:C.Initiated}}),O.abrupt("return",{res:g.res,uploads:E,bucket:g.data.Bucket,nextKeyMarker:g.data.NextKeyMarker,nextUploadIdMarker:g.data.NextUploadIdMarker,isTruncated:g.data.IsTruncated==="true"});case 15:case"end":return O.stop()}},null,this)},o.listParts=function(u,l,v,m){var g,E,w;return a.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:return m=m||{},g={},_(m).to(g),g.subres={uploadId:l},E=this._objectRequestParams("GET",u,g),E.query=v,E.xmlResponse=!0,E.successStatuses=[200],C.next=10,a.default.awrap(this.request(E));case 10:return w=C.sent,C.abrupt("return",{res:w.res,uploadId:w.data.UploadId,bucket:w.data.Bucket,name:w.data.Key,partNumberMarker:w.data.PartNumberMarker,nextPartNumberMarker:w.data.NextPartNumberMarker,maxParts:w.data.MaxParts,isTruncated:w.data.IsTruncated,parts:w.data.Part||[]});case 12:case"end":return C.stop()}},null,this)},o.abortMultipartUpload=function(u,l,v){var m,g,E;return a.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:return this._stop(),v=v||{},m={},_(v).to(m),m.subres={uploadId:l},g=this._objectRequestParams("DELETE",u,m),g.successStatuses=[204],O.next=9,a.default.awrap(this.request(g));case 9:return E=O.sent,O.abrupt("return",{res:E.res});case 11:case"end":return O.stop()}},null,this)},o.initMultipartUpload=function(u,l){var v,m,g;return a.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return l=l||{},v={},_(l).to(v),v.headers=v.headers||{},this._convertMetaToHeaders(l.meta,v.headers),v.subres="uploads",m=this._objectRequestParams("POST",u,v),m.mime=l.mime,m.xmlResponse=!0,m.successStatuses=[200],w.next=12,a.default.awrap(this.request(m));case 12:return g=w.sent,w.abrupt("return",{res:g.res,bucket:g.data.Bucket,name:g.data.Key,uploadId:g.data.UploadId});case 14:case"end":return w.stop()}},null,this)},o.uploadPart=function(u,l,v,m,g,E,w){var O;return a.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return O={stream:this._createStream(m,g,E),size:E-g},M.next=3,a.default.awrap(this._uploadPart(u,l,v,O,w));case 3:return M.abrupt("return",M.sent);case 4:case"end":return M.stop()}},null,this)},o.completeMultipartUpload=function(u,l,v,m){var g,E,w,O,C,M,N,P;return a.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:for(g=v.concat().sort(function(V,X){return V.number-X.number}).filter(function(V,X,D){return!X||V.number!==D[X-1].number}),E=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,w=0;w<g.length;w++)O=g[w],E+=`<Part>
`,E+="<PartNumber>"+O.number+`</PartNumber>
`,E+="<ETag>"+O.etag+`</ETag>
`,E+=`</Part>
`;return E+="</CompleteMultipartUpload>",m=m||{},C={},C=f(m),C.headers&&delete C.headers["x-oss-server-side-encryption"],C.subres={uploadId:l},M=this._objectRequestParams("POST",u,C),x.encodeCallback(M,C),M.mime="xml",M.content=E,M.headers&&M.headers["x-oss-callback"]||(M.xmlResponse=!0),M.successStatuses=[200],b.next=17,a.default.awrap(this.request(M));case 17:return N=b.sent,P={res:N.res,bucket:M.bucket,name:u,etag:N.res.headers.etag},M.headers&&M.headers["x-oss-callback"]&&(P.data=JSON.parse(N.data.toString())),b.abrupt("return",P);case 21:case"end":return b.stop()}},null,this)},o._uploadPart=function(u,l,v,m,g){var E,w,O;return a.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:return g=g||{},E={},_(g).to(E),E.headers={"Content-Length":m.size},E.subres={partNumber:v,uploadId:l},w=this._objectRequestParams("PUT",u,E),w.mime=E.mime,w.stream=m.stream,w.successStatuses=[200],M.next=11,a.default.awrap(this.request(w));case 11:if(O=M.sent,O.res.headers.etag){M.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 m.stream=null,w.stream=null,M.abrupt("return",{name:u,etag:O.res.headers.etag,res:O.res});case 17:case"end":return M.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=f(h),T=s("babel-runtime/core-js/object/keys"),_=f(T),x=s("babel-runtime/helpers/typeof"),p=f(x);function f(l){return l&&l.__esModule?l:{default:l}}var o=s("../utils/checkBucketName"),i=o.checkBucketName,u=d;u.copy=function(v,m,g,E){var w,O,C;return a.default.async(function(N){for(;;)switch(N.prev=N.next){case 0:return(typeof g=="undefined"?"undefined":(0,p.default)(g))==="object"&&(E=g),E=E||{},E.headers=E.headers||{},(0,_.default)(E.headers).forEach(function(P){E.headers["x-oss-copy-source-"+P.toLowerCase()]=E.headers[P]}),E.meta&&(E.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(E.meta,E.headers),m=this._getSourceName(m,g),E.versionId&&(m=m+"?versionId="+E.versionId),E.headers["x-oss-copy-source"]=m,w=this._objectRequestParams("PUT",v,E),w.xmlResponse=!0,w.successStatuses=[200,304],N.next=14,a.default.awrap(this.request(w));case 14:return O=N.sent,C=O.data,C&&(C={etag:C.ETag,lastModified:C.LastModified}),N.abrupt("return",{data:C,res:O.res});case 18:case"end":return N.stop()}},null,this)},u._getSourceName=function(v,m){return typeof m=="string"?v=this._objectName(v):v[0]!=="/"?m=this.options.bucket:(m=v.replace(/\/(.+?)(\/.*)/,"$1"),v=v.replace(/(\/.+?\/)(.*)/,"$2")),i(m),v=encodeURI(v),v="/"+m+"/"+v,v}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=x(h),T=s("babel-runtime/core-js/object/assign"),_=x(T);function x(f){return f&&f.__esModule?f:{default:f}}var p=d;p.delete=function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,l;return a.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return i.subres=(0,_.default)({},i.subres),i.versionId&&(i.subres.versionId=i.versionId),u=this._objectRequestParams("DELETE",o,i),u.successStatuses=[204],m.next=6,a.default.awrap(this.request(u));case 6:return l=m.sent,m.abrupt("return",{res:l.res});case 8:case"end":return m.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=x(h),T=s("babel-runtime/core-js/object/assign"),_=x(T);function x(u){return u&&u.__esModule?u:{default:u}}var p=s("utility"),f=s("../utils/obj2xml"),o=f.obj2xml,i=d;i.deleteMulti=function(l){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m,g,E,w,O,C,M,N,P,k,b,V;return a.default.async(function(D){for(;;)switch(D.prev=D.next){case 0:if(m=[],!(!l||!l.length)){D.next=3;break}throw new Error("names is required");case 3:for(g=0;g<l.length;g++)E={},typeof l[g]=="string"?E.Key=p.escape(this._objectName(l[g])):(w=l[g],O=w.key,C=w.versionId,E.Key=p.escape(this._objectName(O)),E.VersionId=C),m.push(E);return M={Delete:{Quiet:!!v.quiet,Object:m}},N=o(M,{headers:!0}),v.subres=(0,_.default)({delete:""},v.subres),v.versionId&&(v.subres.versionId=v.versionId),P=this._objectRequestParams("POST","",v),P.mime="xml",P.content=N,P.xmlResponse=!0,P.successStatuses=[200],D.next=15,a.default.awrap(this.request(P));case 15:return k=D.sent,b=k.data,V=b&&b.Deleted||null,V&&(Array.isArray(V)||(V=[V])),D.abrupt("return",{res:k.res,deleted:V||[]});case 20:case"end":return D.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=x(h),T=s("babel-runtime/core-js/object/assign"),_=x(T);function x(f){return f&&f.__esModule?f:{default:f}}var p=d;p.deleteObjectTagging=function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,l;return a.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return i.subres=(0,_.default)({tagging:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),o=this._objectName(o),u=this._objectRequestParams("DELETE",o,i),u.successStatuses=[204],m.next=7,a.default.awrap(this.request(u));case 7:return l=m.sent,m.abrupt("return",{status:l.status,res:l.res});case 9:case"end":return m.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=x(h),T=s("babel-runtime/core-js/object/assign"),_=x(T);function x(i){return i&&i.__esModule?i:{default:i}}var p=s("fs"),f=s("is-type-of"),o=d;o.get=function(u,l){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},m,g,E,w;return a.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:return m=null,g=!1,f.writableStream(l)?m=l:f.string(l)?(m=p.createWriteStream(l),g=!0):v=l,v=v||{},v.subres=(0,_.default)({},v.subres),v.versionId&&(v.subres.versionId=v.versionId),v.process&&(v.subres["x-oss-process"]=v.process),E=void 0,C.prev=8,w=this._objectRequestParams("GET",u,v),w.writeStream=m,w.successStatuses=[200,206,304],C.next=14,a.default.awrap(this.request(w));case 14:E=C.sent,g&&m.destroy(),C.next=25;break;case 18:if(C.prev=18,C.t0=C.catch(8),!g){C.next=24;break}return m.destroy(),C.next=24,a.default.awrap(this._deleteFileSafe(l));case 24:throw C.t0;case 25:return C.abrupt("return",{res:E.res,content:E.data});case 26:case"end":return C.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=x(h),T=s("babel-runtime/core-js/object/assign"),_=x(T);function x(f){return f&&f.__esModule?f:{default:f}}var p=d;p.getACL=function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,l;return a.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return i.subres=(0,_.default)({acl:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),o=this._objectName(o),u=this._objectRequestParams("GET",o,i),u.successStatuses=[200],u.xmlResponse=!0,m.next=8,a.default.awrap(this.request(u));case 8:return l=m.sent,m.abrupt("return",{acl:l.data.AccessControlList.Grant,owner:{id:l.data.Owner.ID,displayName:l.data.Owner.DisplayName},res:l.res});case 10:case"end":return m.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/keys"),a=f(h),T=s("babel-runtime/regenerator"),_=f(T),x=s("babel-runtime/core-js/object/assign"),p=f(x);function f(w){return w&&w.__esModule?w:{default:w}}var o=d,i=s("../utils/isObject"),u=i.isObject,l=s("../utils/isArray"),v=l.isArray;o.getBucketVersions=m,o.listObjectVersions=m;function m(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C,M,N,P,k,b;return _.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:if(!(w.versionIdMarker&&w.keyMarker===void 0)){X.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return O.subres=(0,p.default)({versions:""},O.subres),O.versionId&&(O.subres.versionId=O.versionId),C=this._objectRequestParams("GET","",O),C.xmlResponse=!0,C.successStatuses=[200],C.query=E(w),X.next=10,_.default.awrap(this.request(C));case 10:return M=X.sent,N=M.data.Version||[],P=M.data.DeleteMarker||[],k=this,N&&(Array.isArray(N)||(N=[N]),N=N.map(function(D){return{name:D.Key,url:k._objectUrl(D.Key),lastModified:D.LastModified,isLatest:D.IsLatest==="true",versionId:D.VersionId,etag:D.ETag,type:D.Type,size:Number(D.Size),storageClass:D.StorageClass,owner:{id:D.Owner.ID,displayName:D.Owner.DisplayName}}})),P&&(v(P)||(P=[P]),P=P.map(function(D){return{name:D.Key,lastModified:D.LastModified,versionId:D.VersionId,owner:{id:D.Owner.ID,displayName:D.Owner.DisplayName}}})),b=M.data.CommonPrefixes||null,b&&(v(b)||(b=[b]),b=b.map(function(D){return D.Prefix})),X.abrupt("return",{res:M.res,objects:N,deleteMarker:P,prefixes:b,nextMarker:M.data.NextMarker||null,NextVersionIdMarker:M.data.NextVersionIdMarker||null,isTruncated:M.data.IsTruncated==="true"});case 19:case"end":return X.stop()}},null,this)}function g(w){return w.replace(/([A-Z])/g,"-$1").toLowerCase()}function E(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O={};return u(w)&&(0,a.default)(w).forEach(function(C){O[g(C)]=w[C]}),O}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=x(h),T=s("babel-runtime/core-js/object/assign"),_=x(T);function x(f){return f&&f.__esModule?f:{default:f}}var p=d;p.getObjectMeta=function(o,i){var u,l;return a.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return i=i||{},o=this._objectName(o),i.subres=(0,_.default)({objectMeta:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),u=this._objectRequestParams("HEAD",o,i),u.successStatuses=[200],m.next=8,a.default.awrap(this.request(u));case 8:return l=m.sent,m.abrupt("return",{status:l.status,res:l.res});case 10:case"end":return m.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=x(h),T=s("babel-runtime/core-js/object/assign"),_=x(T);function x(i){return i&&i.__esModule?i:{default:i}}var p=d,f=s("../utils/isObject"),o=f.isObject;p.getObjectTagging=function(u){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v,m,g,E,w;return a.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:return l.subres=(0,_.default)({tagging:""},l.subres),l.versionId&&(l.subres.versionId=l.versionId),u=this._objectName(u),v=this._objectRequestParams("GET",u,l),v.successStatuses=[200],C.next=7,a.default.awrap(this.request(v));case 7:return m=C.sent,C.next=10,a.default.awrap(this.parseXML(m.data));case 10:return g=C.sent,E=g.TagSet.Tag,E=E&&o(E)?[E]:E||[],w={},E.forEach(function(M){w[M.Key]=M.Value}),C.abrupt("return",{status:m.status,res:m.res,tag:w});case 16:case"end":return C.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=x(h),T=s("babel-runtime/core-js/object/assign"),_=x(T);function x(f){return f&&f.__esModule?f:{default:f}}var p=d;p.getSymlink=function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,l,v;return a.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return i.subres=(0,_.default)({symlink:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),o=this._objectName(o),u=this._objectRequestParams("GET",o,i),u.successStatuses=[200],g.next=7,a.default.awrap(this.request(u));case 7:return l=g.sent,v=l.res.headers["x-oss-symlink-target"],g.abrupt("return",{targetName:decodeURIComponent(v),res:l.res});case 10:case"end":return g.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=f(h),T=s("babel-runtime/core-js/object/keys"),_=f(T),x=s("babel-runtime/core-js/object/assign"),p=f(x);function f(i){return i&&i.__esModule?i:{default:i}}var o=d;o.head=function(u){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v,m,g;return a.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:return l.subres=(0,p.default)({},l.subres),l.versionId&&(l.subres.versionId=l.versionId),v=this._objectRequestParams("HEAD",u,l),v.successStatuses=[200,304],w.next=6,a.default.awrap(this.request(v));case 6:return m=w.sent,g={meta:null,res:m.res,status:m.status},m.status===200&&(0,_.default)(m.headers).forEach(function(O){O.indexOf("x-oss-meta-")===0&&(g.meta||(g.meta={}),g.meta[O.substring(11)]=m.headers[O])}),w.abrupt("return",g);case 10:case"end":return w.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=x(h),T=s("babel-runtime/core-js/object/assign"),_=x(T);function x(f){return f&&f.__esModule?f:{default:f}}var p=d;p.putACL=function(o,i,u){var l,v;return a.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return u=u||{},u.subres=(0,_.default)({acl:""},u.subres),u.versionId&&(u.subres.versionId=u.versionId),u.headers=u.headers||{},u.headers["x-oss-object-acl"]=i,o=this._objectName(o),l=this._objectRequestParams("PUT",o,u),l.successStatuses=[200],g.next=10,a.default.awrap(this.request(l));case 10:return v=g.sent,g.abrupt("return",{res:v.res});case 12:case"end":return g.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=f(h),T=s("babel-runtime/core-js/object/keys"),_=f(T),x=s("babel-runtime/core-js/object/assign"),p=f(x);function f(m){return m&&m.__esModule?m:{default:m}}var o=s("../utils/obj2xml"),i=o.obj2xml,u=s("../utils/checkObjectTag"),l=u.checkObjectTag,v=d;v.putObjectTagging=function(g,E){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},O,C,M;return a.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:return l(E),w.subres=(0,p.default)({tagging:""},w.subres),w.versionId&&(w.subres.versionId=w.versionId),g=this._objectName(g),O=this._objectRequestParams("PUT",g,w),O.successStatuses=[200],E=(0,_.default)(E).map(function(k){return{Key:k,Value:E[k]}}),C={Tagging:{TagSet:{Tag:E}}},O.mime="xml",O.content=i(C),P.next=12,a.default.awrap(this.request(O));case 12:return M=P.sent,P.abrupt("return",{res:M.res,status:M.status});case 14:case"end":return P.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=x(h),T=s("babel-runtime/core-js/object/assign"),_=x(T);function x(f){return f&&f.__esModule?f:{default:f}}var p=d;p.putSymlink=function(o,i,u){var l,v;return a.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return u=u||{},u.headers=u.headers||{},i=this._escape(this._objectName(i)),this._convertMetaToHeaders(u.meta,u.headers),u.headers["x-oss-symlink-target"]=i,u.subres=(0,_.default)({symlink:""},u.subres),u.versionId&&(u.subres.versionId=u.versionId),u.storageClass&&(u.headers["x-oss-storage-class"]=u.storageClass),o=this._objectName(o),l=this._objectRequestParams("PUT",o,u),l.successStatuses=[200],g.next=13,a.default.awrap(this.request(l));case 13:return v=g.sent,g.abrupt("return",{res:v.res});case 15:case"end":return g.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(s,z,d){"use strict";var h=s("babel-runtime/regenerator"),a=x(h),T=s("babel-runtime/core-js/promise"),_=x(T);function x(f){return f&&f.__esModule?f:{default:f}}var p=d;p._parallelNode=function(o,i,u,l){var v,m,g,E,w,O,C,M;return a.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:v=this,m=[],g=[],E=o.length/i,w=o.length%i,O=w===0?E:(o.length-w)/i+1,C=1,M=0;case 8:if(!(M<o.length)){P.next=26;break}if(!v.isCancel()){P.next=11;break}return P.abrupt("break",26);case 11:if(l?g.push(u(v,o[M],l)):g.push(u(v,o[M])),!(g.length===i||C===O&&M===o.length-1)){P.next=23;break}return P.prev=13,C+=1,P.next=17,a.default.awrap(_.default.all(g));case 17:P.next=22;break;case 19:P.prev=19,P.t0=P.catch(13),m.push(P.t0);case 22:g=[];case 23:M++,P.next=8;break;case 26:return P.abrupt("return",m);case 27:case"end":return P.stop()}},null,this,[[13,19]])},p._parallel=function(o,i,u){var l=this;return new _.default(function(v){var m=[];if(i<=0||!o){v(m);return}function g(b){return function(){if(b===null)throw new Error("Callback was already called.");var V=b;b=null;for(var X=arguments.length,D=Array(X),L=0;L<X;L++)D[L]=arguments[L];V.apply(this,D)}}function E(b){var V=-1,X=b.length;return function(){return++V<X&&!l.isCancel()?{value:b[V],key:V}:null}}var w=E(o),O=!1,C=0,M=!1;function N(b,V){C-=1,b?(O=!0,m.push(b),v(m)):V==={}||O&&C<=0?(O=!0,v(m)):M||(l.isCancel()?v(m):k())}function P(b,V){u(b).then(function(X){V(null,X)}).catch(function(X){V(X)})}function k(){for(M=!0;C<i&&!O&&!l.isCancel();){var b=w();if(b===null||m.length>0){O=!0,C<=0&&v(m);return}C+=1,P(b.value,g(N))}M=!1}k()})},p.cancel=function(o){this.options.cancelFlag=!0,o&&this.abortMultipartUpload(o.name,o.uploadId,o.options)},p.isCancel=function(){return this.options.cancelFlag},p.resetCancelFlag=function(){this.options.cancelFlag=!1},p._stop=function(){this.options.cancelFlag=!0},p._makeCancelEvent=function(){var o={status:0,name:"cancel"};return o}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(s,z,d){(function(h){"use strict";var a=s("babel-runtime/core-js/json/stringify"),T=p(a),_=s("babel-runtime/core-js/object/keys"),x=p(_);function p(i){return i&&i.__esModule?i:{default:i}}var f=s("./../../shims/crypto/crypto.js"),o=s("is-type-of");d.buildCanonicalizedResource=function(u,l){var v=""+u,m="?";if(o.string(l)&&l.trim()!=="")v+=m+l;else if(o.array(l))l.sort(),v+=m+l.join("&");else if(l){var g=function(O,C){return O[0]>C[0]?1:O[0]<C[0]?-1:0},E=function(O){v+=m+O,l[O]&&(v+="="+l[O]),m="&"};(0,x.default)(l).sort(g).forEach(E)}return v},d.buildCanonicalString=function(u,l,v,m){v=v||{};var g=v.headers||{},E="x-oss-",w=[],O={},C=[u.toUpperCase(),g["Content-Md5"]||"",g["Content-Type"]||g["Content-Type".toLowerCase()],m||g["x-oss-date"]];return(0,x.default)(g).forEach(function(M){var N=M.toLowerCase();N.indexOf(E)===0&&(O[N]=String(g[M]).trim())}),(0,x.default)(O).sort().forEach(function(M){w.push(M+":"+O[M])}),C=C.concat(w),C.push(this.buildCanonicalizedResource(l,v.parameters)),C.join(`
`)},d.computeSignature=function(u,l){var v=f.createHmac("sha1",u);return v.update(h.from(l,"utf8")).digest("base64")},d.authorization=function(u,l,v){return"OSS "+u+":"+this.computeSignature(l,v)},d._signatureForURL=function(u){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=arguments[2],m=arguments[3],g={},E=l.subResource,w=E===void 0?{}:E;if(l.process){var O="x-oss-process";w[O]=l.process}if(l.trafficLimit){var C="x-oss-traffic-limit";w[C]=l.trafficLimit}if(l.response&&(0,x.default)(l.response).forEach(function(k){var b="response-"+k.toLowerCase();w[b]=l.response[k]}),(0,x.default)(l).forEach(function(k){var b=k.toLowerCase(),V=l[k];b.indexOf("x-oss-")===0?g[b]=V:(b.indexOf("content-md5")===0||b.indexOf("content-type")===0)&&(g[k]=V)}),Object.prototype.hasOwnProperty.call(l,"security-token")&&(w["security-token"]=l["security-token"]),Object.prototype.hasOwnProperty.call(l,"callback")){var M={callbackUrl:encodeURI(l.callback.url),callbackBody:l.callback.body};if(l.callback.host&&(M.callbackHost=l.callback.host),l.callback.contentType&&(M.callbackBodyType=l.callback.contentType),w.callback=h.from((0,T.default)(M)).toString("base64"),l.callback.customValue){var N={};(0,x.default)(l.callback.customValue).forEach(function(k){N["x:"+k]=l.callback.customValue[k]}),w["callback-var"]=h.from((0,T.default)(N)).toString("base64")}}var P=this.buildCanonicalString(l.method,v,{headers:g,parameters:w},m.toString());return{Signature:this.computeSignature(u,P),subResource:w}}}).call(this,s("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(s,z,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.checkBucketName=void 0,d.checkBucketName=function(h,a){var T=a?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!T.test(h))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/entries"),a=T(h);function T(l){return l&&l.__esModule?l:{default:l}}Object.defineProperty(d,"__esModule",{value:!0}),d.checkObjectTag=void 0;var _=s("./checkValid"),x=_.checkValid,p=s("./isObject"),f=p.isObject,o=[{validator:function(v){if(typeof v!="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 (/)"}],i={key:[].concat(o,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(o,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function u(l){if(!f(l))throw new Error("tag must be Object");var v=(0,a.default)(l);if(v.length>10)throw new Error("maximum of 10 tags for a object");var m=["key","value"];v.forEach(function(g){g.forEach(function(E,w){x(E,i[m[w]])})})}d.checkObjectTag=u},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(s,z,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.checkValid=void 0;function h(a,T){T.forEach(function(_){if(_.validator)_.validator(a);else if(_.pattern&&!_.pattern.test(a))throw new Error(_.msg)})}d.checkValid=h},{}],38:[function(s,z,d){(function(h){"use strict";var a=s("babel-runtime/core-js/object/assign"),T=_(a);function _(g){return g&&g.__esModule?g:{default:g}}Object.defineProperty(d,"__esModule",{value:!0}),d.createRequest=void 0;var x=s("./../../../shims/crypto/crypto.js"),p=s("debug")("ali-oss"),f=s("mime"),o=s("dateformat"),i=s("copy-to"),u=s("path");function l(g,E){return g[E]||g[E.toLowerCase()]}function v(g,E){delete g[E],delete g[E.toLowerCase()]}function m(g){var E=new Date;this.options.amendTimeSkewed&&(E=+new Date+this.options.amendTimeSkewed);var w={"x-oss-date":o(E,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(w["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,T.default)(w,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(w["x-oss-security-token"]=this.options.stsToken),i(g.headers).to(w),l(w,"Content-Type")||(g.mime&&g.mime.indexOf("/")>0?w["Content-Type"]=g.mime:w["Content-Type"]=f.getType(g.mime||u.extname(g.object||""))),l(w,"Content-Type")||v(w,"Content-Type"),g.content&&(w["Content-Md5"]=x.createHash("md5").update(h.from(g.content,"utf8")).digest("base64"),w["Content-Length"]||(w["Content-Length"]=g.content.length));var O=this._getResource(g);w.authorization=this.authorization(g.method,O,g.subres,w);var C=this._getReqUrl(g);p("request %s %s, with headers %j, !!stream: %s",g.method,C,w,!!g.stream);var M=g.timeout||this.options.timeout,N={method:g.method,content:g.content,stream:g.stream,headers:w,timeout:M,writeStream:g.writeStream,customResponse:g.customResponse,ctx:g.ctx||this.ctx};return this.agent&&(N.agent=this.agent),this.httpsAgent&&(N.httpsAgent=this.httpsAgent),{url:C,params:N}}d.createRequest=m}).call(this,s("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/keys"),a=x(h),T=s("babel-runtime/helpers/typeof"),_=x(T);function x(p){return p&&p.__esModule?p:{default:p}}Object.defineProperty(d,"__esModule",{value:!0}),d.deepCopy=void 0,d.deepCopy=function(p){if(p===null||(typeof p=="undefined"?"undefined":(0,_.default)(p))!=="object")return p;var f=Array.isArray(p)?[]:{};return(0,a.default)(p).forEach(function(o){f[o]=d.deepCopy(p[o])}),f}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/keys"),a=x(h),T=s("babel-runtime/helpers/typeof"),_=x(T);function x(o){return o&&o.__esModule?o:{default:o}}Object.defineProperty(d,"__esModule",{value:!0}),d.formatObjKey=void 0;function p(o,i){if(o===null||(typeof o=="undefined"?"undefined":(0,_.default)(o))!=="object")return o;var u=void 0;if(Array.isArray(o)){u=[];for(var l=0;l<o.length;l++)u.push(p(o[l],i))}else u={},(0,a.default)(o).forEach(function(v){u[f(v,i)]=p(o[v],i)});return u}d.formatObjKey=p;function f(o,i){return i==="firstUpperCase"?o=o.replace(/^./,function(u){return u.toUpperCase()}):i==="firstLowerCase"&&(o=o.replace(/^./,function(u){return u.toLowerCase()})),o}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(s,z,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.getStrBytesCount=void 0;function h(a){for(var T=0,_=0;_<a.length;_++){var x=a.charAt(_);/^[\u00-\uff]$/.test(x)?T+=1:T+=2}return T}d.getStrBytesCount=h},{}],42:[function(s,z,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isArray=void 0,d.isArray=function(h){return Object.prototype.toString.call(h)==="[object Array]"}},{}],43:[function(s,z,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isBlob=void 0;function h(a){return typeof Blob!="undefined"&&a instanceof Blob}d.isBlob=h},{}],44:[function(s,z,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isFile=void 0,d.isFile=function(h){return typeof File!="undefined"&&h instanceof File}},{}],45:[function(s,z,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isIP=void 0,d.isIP=function(h){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}$/,T=/^\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(h)||T.test(h)}},{}],46:[function(s,z,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isObject=void 0,d.isObject=function(h){return Object.prototype.toString.call(h)==="[object Object]"}},{}],47:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/keys"),a=T(h);function T(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(d,"__esModule",{value:!0}),d.obj2xml=void 0;var _=s("./formatObjKey");function x(f){return Object.prototype.toString.call(f).replace(/(.*? |])/g,"").toLowerCase()}function p(f,o){var i="";return o&&o.headers&&(i=`<?xml version="1.0" encoding="UTF-8"?>
`),o&&o.firstUpperCase&&(f=_.formatObjKey(f,"firstUpperCase")),x(f)==="object"?(0,a.default)(f).forEach(function(u){x(f[u])==="string"||x(f[u])==="number"?i+="<"+u+">"+f[u]+"</"+u+">":x(f[u])==="object"?i+="<"+u+">"+p(f[u])+"</"+u+">":x(f[u])==="array"?i+=f[u].map(function(l){return"<"+u+">"+p(l)+"</"+u+">"}).join(""):i+="<"+u+">"+f[u].toString()+"</"+u+">"}):i+=f.toString(),i}d.obj2xml=p},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(s,z,d){z.exports=h,z.exports.HttpsAgent=h;function h(){}},{}],49:[function(s,z,d){z.exports=s("./register")().Promise},{"./register":51}],50:[function(s,z,d){"use strict";var h="@@any-promise/REGISTRATION",a=null;z.exports=function(T,_){return function(p,f){p=p||null,f=f||{};var o=f.global!==!1;if(a===null&&o&&(a=T[h]||null),a!==null&&p!==null&&a.implementation!==p)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&&(p!==null&&typeof f.Promise!="undefined"?a={Promise:f.Promise,implementation:p}:a=_(p),o&&(T[h]=a)),a}}},{}],51:[function(s,z,d){"use strict";z.exports=s("./loader")(window,h);function h(){if(typeof window.Promise=="undefined")throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}},{"./loader":50}],52:[function(s,z,d){z.exports={default:s("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(s,z,d){z.exports={default:s("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(s,z,d){z.exports={default:s("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(s,z,d){z.exports={default:s("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(s,z,d){z.exports={default:s("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(s,z,d){z.exports={default:s("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(s,z,d){z.exports={default:s("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(s,z,d){z.exports={default:s("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(s,z,d){z.exports={default:s("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(s,z,d){z.exports={default:s("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(s,z,d){z.exports={default:s("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(s,z,d){z.exports={default:s("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(s,z,d){z.exports={default:s("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(s,z,d){z.exports={default:s("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(s,z,d){z.exports={default:s("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(s,z,d){"use strict";d.__esModule=!0;var h=s("../core-js/symbol/iterator"),a=p(h),T=s("../core-js/symbol"),_=p(T),x=typeof _.default=="function"&&typeof a.default=="symbol"?function(f){return typeof f}:function(f){return f&&typeof _.default=="function"&&f.constructor===_.default&&f!==_.default.prototype?"symbol":typeof f};function p(f){return f&&f.__esModule?f:{default:f}}d.default=typeof _.default=="function"&&x(a.default)==="symbol"?function(f){return typeof f=="undefined"?"undefined":x(f)}:function(f){return f&&typeof _.default=="function"&&f.constructor===_.default&&f!==_.default.prototype?"symbol":typeof f=="undefined"?"undefined":x(f)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(s,z,d){z.exports=s("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(s,z,d){"use strict";d.byteLength=o,d.toByteArray=u,d.fromByteArray=m;for(var h=[],a=[],T=typeof Uint8Array!="undefined"?Uint8Array:Array,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x=0,p=_.length;x<p;++x)h[x]=_[x],a[_.charCodeAt(x)]=x;a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63;function f(g){var E=g.length;if(E%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=g.indexOf("=");w===-1&&(w=E);var O=w===E?0:4-w%4;return[w,O]}function o(g){var E=f(g),w=E[0],O=E[1];return(w+O)*3/4-O}function i(g,E,w){return(E+w)*3/4-w}function u(g){var E,w=f(g),O=w[0],C=w[1],M=new T(i(g,O,C)),N=0,P=C>0?O-4:O,k;for(k=0;k<P;k+=4)E=a[g.charCodeAt(k)]<<18|a[g.charCodeAt(k+1)]<<12|a[g.charCodeAt(k+2)]<<6|a[g.charCodeAt(k+3)],M[N++]=E>>16&255,M[N++]=E>>8&255,M[N++]=E&255;return C===2&&(E=a[g.charCodeAt(k)]<<2|a[g.charCodeAt(k+1)]>>4,M[N++]=E&255),C===1&&(E=a[g.charCodeAt(k)]<<10|a[g.charCodeAt(k+1)]<<4|a[g.charCodeAt(k+2)]>>2,M[N++]=E>>8&255,M[N++]=E&255),M}function l(g){return h[g>>18&63]+h[g>>12&63]+h[g>>6&63]+h[g&63]}function v(g,E,w){for(var O,C=[],M=E;M<w;M+=3)O=(g[M]<<16&16711680)+(g[M+1]<<8&65280)+(g[M+2]&255),C.push(l(O));return C.join("")}function m(g){for(var E,w=g.length,O=w%3,C=[],M=16383,N=0,P=w-O;N<P;N+=M)C.push(v(g,N,N+M>P?P:N+M));return O===1?(E=g[w-1],C.push(h[E>>2]+h[E<<4&63]+"==")):O===2&&(E=(g[w-2]<<8)+g[w-1],C.push(h[E>>10]+h[E>>4&63]+h[E<<2&63]+"=")),C.join("")}},{}],70:[function(s,z,d){/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2015
*/!function(h,a,T){typeof z!="undefined"&&z.exports?z.exports=T():typeof define=="function"&&define.amd?define(a,T):h[a]=T()}(this,"bowser",function(){var h=!0;function a(i){function u(H){var R=i.match(H);return R&&R.length>1&&R[1]||""}function l(H){var R=i.match(H);return R&&R.length>1&&R[2]||""}var v=u(/(ipod|iphone|ipad)/i).toLowerCase(),m=/like android/i.test(i),g=!m&&/android/i.test(i),E=/nexus\s*[0-6]\s*/i.test(i),w=!E&&/nexus\s*[0-9]+/i.test(i),O=/CrOS/.test(i),C=/silk/i.test(i),M=/sailfish/i.test(i),N=/tizen/i.test(i),P=/(web|hpw)(o|0)s/i.test(i),k=/windows phone/i.test(i),b=/SamsungBrowser/i.test(i),V=!k&&/windows/i.test(i),X=!v&&!C&&/macintosh/i.test(i),D=!g&&!M&&!N&&!P&&/linux/i.test(i),L=l(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),U=u(/version\/(\d+(\.\d+)?)/i),J=/tablet/i.test(i)&&!/tablet pc/i.test(i),ae=!J&&/[^-]mobi/i.test(i),se=/xbox/i.test(i),G;/opera/i.test(i)?G={name:"Opera",opera:h,version:U||u(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(i)?G={name:"Opera",opera:h,version:u(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||U}:/SamsungBrowser/i.test(i)?G={name:"Samsung Internet for Android",samsungBrowser:h,version:U||u(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(i)?G={name:"NAVER Whale browser",whale:h,version:u(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(i)?G={name:"MZ Browser",mzbrowser:h,version:u(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(i)?G={name:"Opera Coast",coast:h,version:U||u(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(i)?G={name:"Focus",focus:h,version:u(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(i)?G={name:"Yandex Browser",yandexbrowser:h,version:U||u(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(i)?G={name:"UC Browser",ucbrowser:h,version:u(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(i)?G={name:"Maxthon",maxthon:h,version:u(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(i)?G={name:"Epiphany",epiphany:h,version:u(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(i)?G={name:"Puffin",puffin:h,version:u(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(i)?G={name:"Sleipnir",sleipnir:h,version:u(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(i)?G={name:"K-Meleon",kMeleon:h,version:u(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:k?(G={name:"Windows Phone",osname:"Windows Phone",windowsphone:h},L?(G.msedge=h,G.version=L):(G.msie=h,G.version=u(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(i)?G={name:"Internet Explorer",msie:h,version:u(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:O?G={name:"Chrome",osname:"Chrome OS",chromeos:h,chromeBook:h,chrome:h,version:u(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(i)?G={name:"Microsoft Edge",msedge:h,version:L}:/vivaldi/i.test(i)?G={name:"Vivaldi",vivaldi:h,version:u(/vivaldi\/(\d+(\.\d+)?)/i)||U}:M?G={name:"Sailfish",osname:"Sailfish OS",sailfish:h,version:u(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(i)?G={name:"SeaMonkey",seamonkey:h,version:u(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(i)?(G={name:"Firefox",firefox:h,version:u(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(i)&&(G.firefoxos=h,G.osname="Firefox OS")):C?G={name:"Amazon Silk",silk:h,version:u(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(i)?G={name:"PhantomJS",phantom:h,version:u(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(i)?G={name:"SlimerJS",slimer:h,version:u(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(i)||/rim\stablet/i.test(i)?G={name:"BlackBerry",osname:"BlackBerry OS",blackberry:h,version:U||u(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:P?(G={name:"WebOS",osname:"WebOS",webos:h,version:U||u(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(i)&&(G.touchpad=h)):/bada/i.test(i)?G={name:"Bada",osname:"Bada",bada:h,version:u(/dolfin\/(\d+(\.\d+)?)/i)}:N?G={name:"Tizen",osname:"Tizen",tizen:h,version:u(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||U}:/qupzilla/i.test(i)?G={name:"QupZilla",qupzilla:h,version:u(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||U}:/chromium/i.test(i)?G={name:"Chromium",chromium:h,version:u(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||U}:/chrome|crios|crmo/i.test(i)?G={name:"Chrome",chrome:h,version:u(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:g?G={name:"Android",version:U}:/safari|applewebkit/i.test(i)?(G={name:"Safari",safari:h},U&&(G.version=U)):v?(G={name:v=="iphone"?"iPhone":v=="ipad"?"iPad":"iPod"},U&&(G.version=U)):/googlebot/i.test(i)?G={name:"Googlebot",googlebot:h,version:u(/googlebot\/(\d+(\.\d+))/i)||U}:G={name:u(/^(.*)\/(.*) /),version:l(/^(.*)\/(.*) /)},!G.msedge&&/(apple)?webkit/i.test(i)?(/(apple)?webkit\/537\.36/i.test(i)?(G.name=G.name||"Blink",G.blink=h):(G.name=G.name||"Webkit",G.webkit=h),!G.version&&U&&(G.version=U)):!G.opera&&/gecko\//i.test(i)&&(G.name=G.name||"Gecko",G.gecko=h,G.version=G.version||u(/gecko\/(\d+(\.\d+)?)/i)),!G.windowsphone&&(g||G.silk)?(G.android=h,G.osname="Android"):!G.windowsphone&&v?(G[v]=h,G.ios=h,G.osname="iOS"):X?(G.mac=h,G.osname="macOS"):se?(G.xbox=h,G.osname="Xbox"):V?(G.windows=h,G.osname="Windows"):D&&(G.linux=h,G.osname="Linux");function he(H){switch(H){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="";G.windows?q=he(u(/Windows ((NT|XP)( \d\d?.\d)?)/i)):G.windowsphone?q=u(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):G.mac?(q=u(/Mac OS X (\d+([_\.\s]\d+)*)/i),q=q.replace(/[_\s]/g,".")):v?(q=u(/os (\d+([_\s]\d+)*) like mac os x/i),q=q.replace(/[_\s]/g,".")):g?q=u(/android[ \/-](\d+(\.\d+)*)/i):G.webos?q=u(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):G.blackberry?q=u(/rim\stablet\sos\s(\d+(\.\d+)*)/i):G.bada?q=u(/bada\/(\d+(\.\d+)*)/i):G.tizen&&(q=u(/tizen[\/\s](\d+(\.\d+)*)/i)),q&&(G.osversion=q);var W=!G.windows&&q.split(".")[0];return J||w||v=="ipad"||g&&(W==3||W>=4&&!ae)||G.silk?G.tablet=h:(ae||v=="iphone"||v=="ipod"||g||E||G.blackberry||G.webos||G.bada)&&(G.mobile=h),G.msedge||G.msie&&G.version>=10||G.yandexbrowser&&G.version>=15||G.vivaldi&&G.version>=1||G.chrome&&G.version>=20||G.samsungBrowser&&G.version>=4||G.whale&&p([G.version,"1.0"])===1||G.mzbrowser&&p([G.version,"6.0"])===1||G.focus&&p([G.version,"1.0"])===1||G.firefox&&G.version>=20||G.safari&&G.version>=6||G.opera&&G.version>=10||G.ios&&G.osversion&&G.osversion.split(".")[0]>=6||G.blackberry&&G.version>=10.1||G.chromium&&G.version>=20?G.a=h:G.msie&&G.version<10||G.chrome&&G.version<20||G.firefox&&G.version<20||G.safari&&G.version<6||G.opera&&G.version<10||G.ios&&G.osversion&&G.osversion.split(".")[0]<6||G.chromium&&G.version<20?G.c=h:G.x=h,G}var T=a(typeof navigator!="undefined"&&navigator.userAgent||"");T.test=function(i){for(var u=0;u<i.length;++u){var l=i[u];if(typeof l=="string"&&l in T)return!0}return!1};function _(i){return i.split(".").length}function x(i,u){var l=[],v;if(Array.prototype.map)return Array.prototype.map.call(i,u);for(v=0;v<i.length;v++)l.push(u(i[v]));return l}function p(i){for(var u=Math.max(_(i[0]),_(i[1])),l=x(i,function(v){var m=u-_(v);return v=v+new Array(m+1).join(".0"),x(v.split("."),function(g){return new Array(20-g.length).join("0")+g}).reverse()});--u>=0;){if(l[0][u]>l[1][u])return 1;if(l[0][u]===l[1][u]){if(u===0)return 0}else return-1}}function f(i,u,l){var v=T;typeof u=="string"&&(l=u,u=void 0),u===void 0&&(u=!1),l&&(v=a(l));var m=""+v.version;for(var g in i)if(i.hasOwnProperty(g)&&v[g]){if(typeof i[g]!="string")throw new Error("Browser version in the minVersion map should be a string: "+g+": "+String(i));return p([m,i[g]])<0}return u}function o(i,u,l){return!f(i,u,l)}return T.isUnsupportedBrowser=f,T.compareVersions=p,T.check=o,T._detect=a,T.detect=a,T})},{}],71:[function(s,z,d){},{}],72:[function(s,z,d){var h=s("buffer").Buffer,a=h.isEncoding||function(o){switch(o&&o.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 T(o){if(o&&!a(o))throw new Error("Unknown encoding: "+o)}var _=d.StringDecoder=function(o){this.encoding=(o||"utf8").toLowerCase().replace(/[-_]/,""),T(o);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=p;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=f;break;default:this.write=x;return}this.charBuffer=new h(6),this.charReceived=0,this.charLength=0};_.prototype.write=function(o){for(var i="";this.charLength;){var u=o.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:o.length;if(o.copy(this.charBuffer,this.charReceived,0,u),this.charReceived+=u,this.charReceived<this.charLength)return"";o=o.slice(u,o.length),i=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var v=i.charCodeAt(i.length-1);if(v>=55296&&v<=56319){this.charLength+=this.surrogateSize,i="";continue}if(this.charReceived=this.charLength=0,o.length===0)return i;break}this.detectIncompleteChar(o);var l=o.length;this.charLength&&(o.copy(this.charBuffer,0,o.length-this.charReceived,l),l-=this.charReceived),i+=o.toString(this.encoding,0,l);var l=i.length-1,v=i.charCodeAt(l);if(v>=55296&&v<=56319){var m=this.surrogateSize;return this.charLength+=m,this.charReceived+=m,this.charBuffer.copy(this.charBuffer,m,0,m),o.copy(this.charBuffer,0,0,m),i.substring(0,l)}return i},_.prototype.detectIncompleteChar=function(o){for(var i=o.length>=3?3:o.length;i>0;i--){var u=o[o.length-i];if(i==1&&u>>5==6){this.charLength=2;break}if(i<=2&&u>>4==14){this.charLength=3;break}if(i<=3&&u>>3==30){this.charLength=4;break}}this.charReceived=i},_.prototype.end=function(o){var i="";if(o&&o.length&&(i=this.write(o)),this.charReceived){var u=this.charReceived,l=this.charBuffer,v=this.encoding;i+=l.slice(0,u).toString(v)}return i};function x(o){return o.toString(this.encoding)}function p(o){this.charReceived=o.length%2,this.charLength=this.charReceived?2:0}function f(o){this.charReceived=o.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(s,z,d){(function(h,a){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/"use strict";var T=s("base64-js"),_=s("ieee754"),x=s("isarray");d.Buffer=a,d.SlowBuffer=C,d.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=h.TYPED_ARRAY_SUPPORT!==void 0?h.TYPED_ARRAY_SUPPORT:p(),d.kMaxLength=f();function p(){try{var $=new Uint8Array(1);return $.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},$.foo()===42&&typeof $.subarray=="function"&&$.subarray(1,1).byteLength===0}catch(j){return!1}}function f(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o($,j){if(f()<j)throw new RangeError("Invalid typed array length");return a.TYPED_ARRAY_SUPPORT?($=new Uint8Array(j),$.__proto__=a.prototype):($===null&&($=new a(j)),$.length=j),$}function a($,j,S){if(!a.TYPED_ARRAY_SUPPORT&&!(this instanceof a))return new a($,j,S);if(typeof $=="number"){if(typeof j=="string")throw new Error("If encoding is specified then the first argument must be a string");return v(this,$)}return i(this,$,j,S)}a.poolSize=8192,a._augment=function($){return $.__proto__=a.prototype,$};function i($,j,S,B){if(typeof j=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&j instanceof ArrayBuffer?E($,j,S,B):typeof j=="string"?m($,j,S):w($,j)}a.from=function($,j,S){return i(null,$,j,S)},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 u($){if(typeof $!="number")throw new TypeError('"size" argument must be a number');if($<0)throw new RangeError('"size" argument must not be negative')}function l($,j,S,B){return u(j),j<=0?o($,j):S!==void 0?typeof B=="string"?o($,j).fill(S,B):o($,j).fill(S):o($,j)}a.alloc=function($,j,S){return l(null,$,j,S)};function v($,j){if(u(j),$=o($,j<0?0:O(j)|0),!a.TYPED_ARRAY_SUPPORT)for(var S=0;S<j;++S)$[S]=0;return $}a.allocUnsafe=function($){return v(null,$)},a.allocUnsafeSlow=function($){return v(null,$)};function m($,j,S){if((typeof S!="string"||S==="")&&(S="utf8"),!a.isEncoding(S))throw new TypeError('"encoding" must be a valid string encoding');var B=M(j,S)|0;$=o($,B);var me=$.write(j,S);return me!==B&&($=$.slice(0,me)),$}function g($,j){var S=j.length<0?0:O(j.length)|0;$=o($,S);for(var B=0;B<S;B+=1)$[B]=j[B]&255;return $}function E($,j,S,B){if(j.byteLength,S<0||j.byteLength<S)throw new RangeError("'offset' is out of bounds");if(j.byteLength<S+(B||0))throw new RangeError("'length' is out of bounds");return S===void 0&&B===void 0?j=new Uint8Array(j):B===void 0?j=new Uint8Array(j,S):j=new Uint8Array(j,S,B),a.TYPED_ARRAY_SUPPORT?($=j,$.__proto__=a.prototype):$=g($,j),$}function w($,j){if(a.isBuffer(j)){var S=O(j.length)|0;return $=o($,S),$.length===0||j.copy($,0,0,S),$}if(j){if(typeof ArrayBuffer!="undefined"&&j.buffer instanceof ArrayBuffer||"length"in j)return typeof j.length!="number"||pe(j.length)?o($,0):g($,j);if(j.type==="Buffer"&&x(j.data))return g($,j.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function O($){if($>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return $|0}function C($){return+$!=$&&($=0),a.alloc(+$)}a.isBuffer=function(j){return!!(j!=null&&j._isBuffer)},a.compare=function(j,S){if(!a.isBuffer(j)||!a.isBuffer(S))throw new TypeError("Arguments must be Buffers");if(j===S)return 0;for(var B=j.length,me=S.length,fe=0,we=Math.min(B,me);fe<we;++fe)if(j[fe]!==S[fe]){B=j[fe],me=S[fe];break}return B<me?-1:me<B?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,S){if(!x(j))throw new TypeError('"list" argument must be an Array of Buffers');if(j.length===0)return a.alloc(0);var B;if(S===void 0)for(S=0,B=0;B<j.length;++B)S+=j[B].length;var me=a.allocUnsafe(S),fe=0;for(B=0;B<j.length;++B){var we=j[B];if(!a.isBuffer(we))throw new TypeError('"list" argument must be an Array of Buffers');we.copy(me,fe),fe+=we.length}return me};function M($,j){if(a.isBuffer($))return $.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView($)||$ instanceof ArrayBuffer))return $.byteLength;typeof $!="string"&&($=""+$);var S=$.length;if(S===0)return 0;for(var B=!1;;)switch(j){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":case void 0:return ne($).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return F($).length;default:if(B)return ne($).length;j=(""+j).toLowerCase(),B=!0}}a.byteLength=M;function N($,j,S){var B=!1;if((j===void 0||j<0)&&(j=0),j>this.length)return"";if((S===void 0||S>this.length)&&(S=this.length),S<=0)return"";if(S>>>=0,j>>>=0,S<=j)return"";for($||($="utf8");;)switch($){case"hex":return H(this,j,S);case"utf8":case"utf-8":return se(this,j,S);case"ascii":return q(this,j,S);case"latin1":case"binary":return W(this,j,S);case"base64":return ae(this,j,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,j,S);default:if(B)throw new TypeError("Unknown encoding: "+$);$=($+"").toLowerCase(),B=!0}}a.prototype._isBuffer=!0;function P($,j,S){var B=$[j];$[j]=$[S],$[S]=B}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 S=0;S<j;S+=2)P(this,S,S+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 S=0;S<j;S+=4)P(this,S,S+3),P(this,S+1,S+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 S=0;S<j;S+=8)P(this,S,S+7),P(this,S+1,S+6),P(this,S+2,S+5),P(this,S+3,S+4);return this},a.prototype.toString=function(){var j=this.length|0;return j===0?"":arguments.length===0?se(this,0,j):N.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="",S=d.INSPECT_MAX_BYTES;return this.length>0&&(j=this.toString("hex",0,S).match(/.{2}/g).join(" "),this.length>S&&(j+=" ... ")),"<Buffer "+j+">"},a.prototype.compare=function(j,S,B,me,fe){if(!a.isBuffer(j))throw new TypeError("Argument must be a Buffer");if(S===void 0&&(S=0),B===void 0&&(B=j?j.length:0),me===void 0&&(me=0),fe===void 0&&(fe=this.length),S<0||B>j.length||me<0||fe>this.length)throw new RangeError("out of range index");if(me>=fe&&S>=B)return 0;if(me>=fe)return-1;if(S>=B)return 1;if(S>>>=0,B>>>=0,me>>>=0,fe>>>=0,this===j)return 0;for(var we=fe-me,ke=B-S,Me=Math.min(we,ke),Ne=this.slice(me,fe),Le=j.slice(S,B),We=0;We<Me;++We)if(Ne[We]!==Le[We]){we=Ne[We],ke=Le[We];break}return we<ke?-1:ke<we?1:0};function k($,j,S,B,me){if($.length===0)return-1;if(typeof S=="string"?(B=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,isNaN(S)&&(S=me?0:$.length-1),S<0&&(S=$.length+S),S>=$.length){if(me)return-1;S=$.length-1}else if(S<0)if(me)S=0;else return-1;if(typeof j=="string"&&(j=a.from(j,B)),a.isBuffer(j))return j.length===0?-1:b($,j,S,B,me);if(typeof j=="number")return j=j&255,a.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?me?Uint8Array.prototype.indexOf.call($,j,S):Uint8Array.prototype.lastIndexOf.call($,j,S):b($,[j],S,B,me);throw new TypeError("val must be string, number or Buffer")}function b($,j,S,B,me){var fe=1,we=$.length,ke=j.length;if(B!==void 0&&(B=String(B).toLowerCase(),B==="ucs2"||B==="ucs-2"||B==="utf16le"||B==="utf-16le")){if($.length<2||j.length<2)return-1;fe=2,we/=2,ke/=2,S/=2}function Me(He,Oe){return fe===1?He[Oe]:He.readUInt16BE(Oe*fe)}var Ne;if(me){var Le=-1;for(Ne=S;Ne<we;Ne++)if(Me($,Ne)===Me(j,Le===-1?0:Ne-Le)){if(Le===-1&&(Le=Ne),Ne-Le+1===ke)return Le*fe}else Le!==-1&&(Ne-=Ne-Le),Le=-1}else for(S+ke>we&&(S=we-ke),Ne=S;Ne>=0;Ne--){for(var We=!0,Fe=0;Fe<ke;Fe++)if(Me($,Ne+Fe)!==Me(j,Fe)){We=!1;break}if(We)return Ne}return-1}a.prototype.includes=function(j,S,B){return this.indexOf(j,S,B)!==-1},a.prototype.indexOf=function(j,S,B){return k(this,j,S,B,!0)},a.prototype.lastIndexOf=function(j,S,B){return k(this,j,S,B,!1)};function V($,j,S,B){S=Number(S)||0;var me=$.length-S;B?(B=Number(B),B>me&&(B=me)):B=me;var fe=j.length;if(fe%2!==0)throw new TypeError("Invalid hex string");B>fe/2&&(B=fe/2);for(var we=0;we<B;++we){var ke=parseInt(j.substr(we*2,2),16);if(isNaN(ke))return we;$[S+we]=ke}return we}function X($,j,S,B){return K(ne(j,$.length-S),$,S,B)}function D($,j,S,B){return K(Y(j),$,S,B)}function L($,j,S,B){return D($,j,S,B)}function U($,j,S,B){return K(F(j),$,S,B)}function J($,j,S,B){return K(re(j,$.length-S),$,S,B)}a.prototype.write=function(j,S,B,me){if(S===void 0)me="utf8",B=this.length,S=0;else if(B===void 0&&typeof S=="string")me=S,B=this.length,S=0;else if(isFinite(S))S=S|0,isFinite(B)?(B=B|0,me===void 0&&(me="utf8")):(me=B,B=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var fe=this.length-S;if((B===void 0||B>fe)&&(B=fe),j.length>0&&(B<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");me||(me="utf8");for(var we=!1;;)switch(me){case"hex":return V(this,j,S,B);case"utf8":case"utf-8":return X(this,j,S,B);case"ascii":return D(this,j,S,B);case"latin1":case"binary":return L(this,j,S,B);case"base64":return U(this,j,S,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,j,S,B);default:if(we)throw new TypeError("Unknown encoding: "+me);me=(""+me).toLowerCase(),we=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ae($,j,S){return j===0&&S===$.length?T.fromByteArray($):T.fromByteArray($.slice(j,S))}function se($,j,S){S=Math.min($.length,S);for(var B=[],me=j;me<S;){var fe=$[me],we=null,ke=fe>239?4:fe>223?3:fe>191?2:1;if(me+ke<=S){var Me,Ne,Le,We;switch(ke){case 1:fe<128&&(we=fe);break;case 2:Me=$[me+1],(Me&192)===128&&(We=(fe&31)<<6|Me&63,We>127&&(we=We));break;case 3:Me=$[me+1],Ne=$[me+2],(Me&192)===128&&(Ne&192)===128&&(We=(fe&15)<<12|(Me&63)<<6|Ne&63,We>2047&&(We<55296||We>57343)&&(we=We));break;case 4:Me=$[me+1],Ne=$[me+2],Le=$[me+3],(Me&192)===128&&(Ne&192)===128&&(Le&192)===128&&(We=(fe&15)<<18|(Me&63)<<12|(Ne&63)<<6|Le&63,We>65535&&We<1114112&&(we=We))}}we===null?(we=65533,ke=1):we>65535&&(we-=65536,B.push(we>>>10&1023|55296),we=56320|we&1023),B.push(we),me+=ke}return he(B)}var G=4096;function he($){var j=$.length;if(j<=G)return String.fromCharCode.apply(String,$);for(var S="",B=0;B<j;)S+=String.fromCharCode.apply(String,$.slice(B,B+=G));return S}function q($,j,S){var B="";S=Math.min($.length,S);for(var me=j;me<S;++me)B+=String.fromCharCode($[me]&127);return B}function W($,j,S){var B="";S=Math.min($.length,S);for(var me=j;me<S;++me)B+=String.fromCharCode($[me]);return B}function H($,j,S){var B=$.length;(!j||j<0)&&(j=0),(!S||S<0||S>B)&&(S=B);for(var me="",fe=j;fe<S;++fe)me+=Z($[fe]);return me}function R($,j,S){for(var B=$.slice(j,S),me="",fe=0;fe<B.length;fe+=2)me+=String.fromCharCode(B[fe]+B[fe+1]*256);return me}a.prototype.slice=function(j,S){var B=this.length;j=~~j,S=S===void 0?B:~~S,j<0?(j+=B,j<0&&(j=0)):j>B&&(j=B),S<0?(S+=B,S<0&&(S=0)):S>B&&(S=B),S<j&&(S=j);var me;if(a.TYPED_ARRAY_SUPPORT)me=this.subarray(j,S),me.__proto__=a.prototype;else{var fe=S-j;me=new a(fe,void 0);for(var we=0;we<fe;++we)me[we]=this[we+j]}return me};function y($,j,S){if($%1!==0||$<0)throw new RangeError("offset is not uint");if($+j>S)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUIntLE=function(j,S,B){j=j|0,S=S|0,B||y(j,S,this.length);for(var me=this[j],fe=1,we=0;++we<S&&(fe*=256);)me+=this[j+we]*fe;return me},a.prototype.readUIntBE=function(j,S,B){j=j|0,S=S|0,B||y(j,S,this.length);for(var me=this[j+--S],fe=1;S>0&&(fe*=256);)me+=this[j+--S]*fe;return me},a.prototype.readUInt8=function(j,S){return S||y(j,1,this.length),this[j]},a.prototype.readUInt16LE=function(j,S){return S||y(j,2,this.length),this[j]|this[j+1]<<8},a.prototype.readUInt16BE=function(j,S){return S||y(j,2,this.length),this[j]<<8|this[j+1]},a.prototype.readUInt32LE=function(j,S){return S||y(j,4,this.length),(this[j]|this[j+1]<<8|this[j+2]<<16)+this[j+3]*16777216},a.prototype.readUInt32BE=function(j,S){return S||y(j,4,this.length),this[j]*16777216+(this[j+1]<<16|this[j+2]<<8|this[j+3])},a.prototype.readIntLE=function(j,S,B){j=j|0,S=S|0,B||y(j,S,this.length);for(var me=this[j],fe=1,we=0;++we<S&&(fe*=256);)me+=this[j+we]*fe;return fe*=128,me>=fe&&(me-=Math.pow(2,8*S)),me},a.prototype.readIntBE=function(j,S,B){j=j|0,S=S|0,B||y(j,S,this.length);for(var me=S,fe=1,we=this[j+--me];me>0&&(fe*=256);)we+=this[j+--me]*fe;return fe*=128,we>=fe&&(we-=Math.pow(2,8*S)),we},a.prototype.readInt8=function(j,S){return S||y(j,1,this.length),this[j]&128?(255-this[j]+1)*-1:this[j]},a.prototype.readInt16LE=function(j,S){S||y(j,2,this.length);var B=this[j]|this[j+1]<<8;return B&32768?B|4294901760:B},a.prototype.readInt16BE=function(j,S){S||y(j,2,this.length);var B=this[j+1]|this[j]<<8;return B&32768?B|4294901760:B},a.prototype.readInt32LE=function(j,S){return S||y(j,4,this.length),this[j]|this[j+1]<<8|this[j+2]<<16|this[j+3]<<24},a.prototype.readInt32BE=function(j,S){return S||y(j,4,this.length),this[j]<<24|this[j+1]<<16|this[j+2]<<8|this[j+3]},a.prototype.readFloatLE=function(j,S){return S||y(j,4,this.length),_.read(this,j,!0,23,4)},a.prototype.readFloatBE=function(j,S){return S||y(j,4,this.length),_.read(this,j,!1,23,4)},a.prototype.readDoubleLE=function(j,S){return S||y(j,8,this.length),_.read(this,j,!0,52,8)},a.prototype.readDoubleBE=function(j,S){return S||y(j,8,this.length),_.read(this,j,!1,52,8)};function A($,j,S,B,me,fe){if(!a.isBuffer($))throw new TypeError('"buffer" argument must be a Buffer instance');if(j>me||j<fe)throw new RangeError('"value" argument is out of bounds');if(S+B>$.length)throw new RangeError("Index out of range")}a.prototype.writeUIntLE=function(j,S,B,me){if(j=+j,S=S|0,B=B|0,!me){var fe=Math.pow(2,8*B)-1;A(this,j,S,B,fe,0)}var we=1,ke=0;for(this[S]=j&255;++ke<B&&(we*=256);)this[S+ke]=j/we&255;return S+B},a.prototype.writeUIntBE=function(j,S,B,me){if(j=+j,S=S|0,B=B|0,!me){var fe=Math.pow(2,8*B)-1;A(this,j,S,B,fe,0)}var we=B-1,ke=1;for(this[S+we]=j&255;--we>=0&&(ke*=256);)this[S+we]=j/ke&255;return S+B},a.prototype.writeUInt8=function(j,S,B){return j=+j,S=S|0,B||A(this,j,S,1,255,0),a.TYPED_ARRAY_SUPPORT||(j=Math.floor(j)),this[S]=j&255,S+1};function ee($,j,S,B){j<0&&(j=65535+j+1);for(var me=0,fe=Math.min($.length-S,2);me<fe;++me)$[S+me]=(j&255<<8*(B?me:1-me))>>>(B?me:1-me)*8}a.prototype.writeUInt16LE=function(j,S,B){return j=+j,S=S|0,B||A(this,j,S,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[S]=j&255,this[S+1]=j>>>8):ee(this,j,S,!0),S+2},a.prototype.writeUInt16BE=function(j,S,B){return j=+j,S=S|0,B||A(this,j,S,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[S]=j>>>8,this[S+1]=j&255):ee(this,j,S,!1),S+2};function oe($,j,S,B){j<0&&(j=4294967295+j+1);for(var me=0,fe=Math.min($.length-S,4);me<fe;++me)$[S+me]=j>>>(B?me:3-me)*8&255}a.prototype.writeUInt32LE=function(j,S,B){return j=+j,S=S|0,B||A(this,j,S,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[S+3]=j>>>24,this[S+2]=j>>>16,this[S+1]=j>>>8,this[S]=j&255):oe(this,j,S,!0),S+4},a.prototype.writeUInt32BE=function(j,S,B){return j=+j,S=S|0,B||A(this,j,S,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[S]=j>>>24,this[S+1]=j>>>16,this[S+2]=j>>>8,this[S+3]=j&255):oe(this,j,S,!1),S+4},a.prototype.writeIntLE=function(j,S,B,me){if(j=+j,S=S|0,!me){var fe=Math.pow(2,8*B-1);A(this,j,S,B,fe-1,-fe)}var we=0,ke=1,Me=0;for(this[S]=j&255;++we<B&&(ke*=256);)j<0&&Me===0&&this[S+we-1]!==0&&(Me=1),this[S+we]=(j/ke>>0)-Me&255;return S+B},a.prototype.writeIntBE=function(j,S,B,me){if(j=+j,S=S|0,!me){var fe=Math.pow(2,8*B-1);A(this,j,S,B,fe-1,-fe)}var we=B-1,ke=1,Me=0;for(this[S+we]=j&255;--we>=0&&(ke*=256);)j<0&&Me===0&&this[S+we+1]!==0&&(Me=1),this[S+we]=(j/ke>>0)-Me&255;return S+B},a.prototype.writeInt8=function(j,S,B){return j=+j,S=S|0,B||A(this,j,S,1,127,-128),a.TYPED_ARRAY_SUPPORT||(j=Math.floor(j)),j<0&&(j=255+j+1),this[S]=j&255,S+1},a.prototype.writeInt16LE=function(j,S,B){return j=+j,S=S|0,B||A(this,j,S,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[S]=j&255,this[S+1]=j>>>8):ee(this,j,S,!0),S+2},a.prototype.writeInt16BE=function(j,S,B){return j=+j,S=S|0,B||A(this,j,S,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[S]=j>>>8,this[S+1]=j&255):ee(this,j,S,!1),S+2},a.prototype.writeInt32LE=function(j,S,B){return j=+j,S=S|0,B||A(this,j,S,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[S]=j&255,this[S+1]=j>>>8,this[S+2]=j>>>16,this[S+3]=j>>>24):oe(this,j,S,!0),S+4},a.prototype.writeInt32BE=function(j,S,B){return j=+j,S=S|0,B||A(this,j,S,4,2147483647,-2147483648),j<0&&(j=4294967295+j+1),a.TYPED_ARRAY_SUPPORT?(this[S]=j>>>24,this[S+1]=j>>>16,this[S+2]=j>>>8,this[S+3]=j&255):oe(this,j,S,!1),S+4};function de($,j,S,B,me,fe){if(S+B>$.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function be($,j,S,B,me){return me||de($,j,S,4,34028234663852886e22,-34028234663852886e22),_.write($,j,S,B,23,4),S+4}a.prototype.writeFloatLE=function(j,S,B){return be(this,j,S,!0,B)},a.prototype.writeFloatBE=function(j,S,B){return be(this,j,S,!1,B)};function xe($,j,S,B,me){return me||de($,j,S,8,17976931348623157e292,-17976931348623157e292),_.write($,j,S,B,52,8),S+8}a.prototype.writeDoubleLE=function(j,S,B){return xe(this,j,S,!0,B)},a.prototype.writeDoubleBE=function(j,S,B){return xe(this,j,S,!1,B)},a.prototype.copy=function(j,S,B,me){if(B||(B=0),!me&&me!==0&&(me=this.length),S>=j.length&&(S=j.length),S||(S=0),me>0&&me<B&&(me=B),me===B)return 0;if(j.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(B<0||B>=this.length)throw new RangeError("sourceStart out of bounds");if(me<0)throw new RangeError("sourceEnd out of bounds");me>this.length&&(me=this.length),j.length-S<me-B&&(me=j.length-S+B);var fe=me-B,we;if(this===j&&B<S&&S<me)for(we=fe-1;we>=0;--we)j[we+S]=this[we+B];else if(fe<1e3||!a.TYPED_ARRAY_SUPPORT)for(we=0;we<fe;++we)j[we+S]=this[we+B];else Uint8Array.prototype.set.call(j,this.subarray(B,B+fe),S);return fe},a.prototype.fill=function(j,S,B,me){if(typeof j=="string"){if(typeof S=="string"?(me=S,S=0,B=this.length):typeof B=="string"&&(me=B,B=this.length),j.length===1){var fe=j.charCodeAt(0);fe<256&&(j=fe)}if(me!==void 0&&typeof me!="string")throw new TypeError("encoding must be a string");if(typeof me=="string"&&!a.isEncoding(me))throw new TypeError("Unknown encoding: "+me)}else typeof j=="number"&&(j=j&255);if(S<0||this.length<S||this.length<B)throw new RangeError("Out of range index");if(B<=S)return this;S=S>>>0,B=B===void 0?this.length:B>>>0,j||(j=0);var we;if(typeof j=="number")for(we=S;we<B;++we)this[we]=j;else{var ke=a.isBuffer(j)?j:ne(new a(j,me).toString()),Me=ke.length;for(we=0;we<B-S;++we)this[we+S]=ke[we%Me]}return this};var te=/[^+\/0-9A-Za-z-_]/g;function le($){if($=ue($).replace(te,""),$.length<2)return"";for(;$.length%4!==0;)$=$+"=";return $}function ue($){return $.trim?$.trim():$.replace(/^\s+|\s+$/g,"")}function Z($){return $<16?"0"+$.toString(16):$.toString(16)}function ne($,j){j=j||Infinity;for(var S,B=$.length,me=null,fe=[],we=0;we<B;++we){if(S=$.charCodeAt(we),S>55295&&S<57344){if(!me){if(S>56319){(j-=3)>-1&&fe.push(239,191,189);continue}else if(we+1===B){(j-=3)>-1&&fe.push(239,191,189);continue}me=S;continue}if(S<56320){(j-=3)>-1&&fe.push(239,191,189),me=S;continue}S=(me-55296<<10|S-56320)+65536}else me&&((j-=3)>-1&&fe.push(239,191,189));if(me=null,S<128){if((j-=1)<0)break;fe.push(S)}else if(S<2048){if((j-=2)<0)break;fe.push(S>>6|192,S&63|128)}else if(S<65536){if((j-=3)<0)break;fe.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((j-=4)<0)break;fe.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return fe}function Y($){for(var j=[],S=0;S<$.length;++S)j.push($.charCodeAt(S)&255);return j}function re($,j){for(var S,B,me,fe=[],we=0;we<$.length&&!((j-=2)<0);++we)S=$.charCodeAt(we),B=S>>8,me=S%256,fe.push(me),fe.push(B);return fe}function F($){return T.toByteArray(le($))}function K($,j,S,B){for(var me=0;me<B&&!(me+S>=j.length||me>=$.length);++me)j[me+S]=$[me];return me}function pe($){return $!==$}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},s("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(s,z,d){z.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}},{}],75:[function(s,z,d){z.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(s,z,d){/*!
* copy-to - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var h=Array.prototype.slice;z.exports=a;function a(_,x){if(!(this instanceof a))return new a(_,x);this.src=_,this._withAccess=x}a.prototype.withAccess=function(_){return this._withAccess=_!==!1,this},a.prototype.pick=function(_){return Array.isArray(_)||(_=h.call(arguments)),_.length&&(this.keys=_),this},a.prototype.to=function(_){if(_=_||{},!this.src)return _;var x=this.keys||Object.keys(this.src);if(!this._withAccess){for(var p=0;p<x.length;p++){if(f=x[p],_[f]!==void 0)continue;_[f]=this.src[f]}return _}for(var p=0;p<x.length;p++){var f=x[p];if(!T(_,f))continue;var o=this.src.__lookupGetter__(f),i=this.src.__lookupSetter__(f);o&&_.__defineGetter__(f,o),i&&_.__defineSetter__(f,i),!o&&!i&&(_[f]=this.src[f])}return _},a.prototype.toCover=function(_){for(var x=this.keys||Object.keys(this.src),p=0;p<x.length;p++){var f=x[p];delete _[f];var o=this.src.__lookupGetter__(f),i=this.src.__lookupSetter__(f);o&&_.__defineGetter__(f,o),i&&_.__defineSetter__(f,i),!o&&!i&&(_[f]=this.src[f])}},a.prototype.override=a.prototype.toCover,a.prototype.and=function(_){var x={};return this.to(x),this.src=_,this.to(x),this.src=x,this};function T(_,x){return _[x]===void 0&&_.__lookupGetter__(x)===void 0&&_.__lookupSetter__(x)===void 0}},{}],77:[function(s,z,d){s("../../modules/es6.string.iterator"),s("../../modules/es6.array.from"),z.exports=s("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(s,z,d){var h=s("../../modules/_core"),a=h.JSON||(h.JSON={stringify:JSON.stringify});z.exports=function(_){return a.stringify.apply(a,arguments)}},{"../../modules/_core":99}],79:[function(s,z,d){s("../../modules/es6.object.assign"),z.exports=s("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(s,z,d){s("../../modules/es6.object.create");var h=s("../../modules/_core").Object;z.exports=function(T,_){return h.create(T,_)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(s,z,d){s("../../modules/es6.object.define-property");var h=s("../../modules/_core").Object;z.exports=function(T,_,x){return h.defineProperty(T,_,x)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(s,z,d){s("../../modules/es7.object.entries"),z.exports=s("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(s,z,d){s("../../modules/es6.object.get-own-property-names");var h=s("../../modules/_core").Object;z.exports=function(T){return h.getOwnPropertyNames(T)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(s,z,d){s("../../modules/es6.object.get-prototype-of"),z.exports=s("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(s,z,d){s("../../modules/es6.object.keys"),z.exports=s("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(s,z,d){s("../modules/es6.object.to-string"),s("../modules/es6.string.iterator"),s("../modules/web.dom.iterable"),s("../modules/es6.promise"),s("../modules/es7.promise.finally"),s("../modules/es7.promise.try"),z.exports=s("../modules/_core").Promise},{"../modules/_core":99,"../modules/es6.object.to-string":177,"../modules/es6.promise":178,"../modules/es6.string.iterator":180,"../modules/es7.promise.finally":183,"../modules/es7.promise.try":184,"../modules/web.dom.iterable":187}],87:[function(s,z,d){s("../modules/web.immediate"),z.exports=s("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(s,z,d){s("../../modules/es6.string.from-code-point"),z.exports=s("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(s,z,d){s("../../modules/es6.function.has-instance"),z.exports=s("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(s,z,d){s("../../modules/es6.symbol"),s("../../modules/es6.object.to-string"),s("../../modules/es7.symbol.async-iterator"),s("../../modules/es7.symbol.observable"),z.exports=s("../../modules/_core").Symbol},{"../../modules/_core":99,"../../modules/es6.object.to-string":177,"../../modules/es6.symbol":181,"../../modules/es7.symbol.async-iterator":185,"../../modules/es7.symbol.observable":186}],91:[function(s,z,d){s("../../modules/es6.string.iterator"),s("../../modules/web.dom.iterable"),z.exports=s("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(s,z,d){z.exports=function(h){if(typeof h!="function")throw TypeError(h+" is not a function!");return h}},{}],93:[function(s,z,d){z.exports=function(){}},{}],94:[function(s,z,d){z.exports=function(h,a,T,_){if(!(h instanceof a)||_!==void 0&&_ in h)throw TypeError(T+": incorrect invocation!");return h}},{}],95:[function(s,z,d){var h=s("./_is-object");z.exports=function(a){if(!h(a))throw TypeError(a+" is not an object!");return a}},{"./_is-object":119}],96:[function(s,z,d){var h=s("./_to-iobject"),a=s("./_to-length"),T=s("./_to-absolute-index");z.exports=function(_){return function(x,p,f){var o=h(x),i=a(o.length),u=T(f,i),l;if(_&&p!=p){for(;i>u;)if(l=o[u++],l!=l)return!0}else for(;i>u;u++)if((_||u in o)&&o[u]===p)return _||u||0;return!_&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(s,z,d){var h=s("./_cof"),a=s("./_wks")("toStringTag"),T=h(function(){return arguments}())=="Arguments",_=function(x,p){try{return x[p]}catch(f){}};z.exports=function(x){var p,f,o;return x===void 0?"Undefined":x===null?"Null":typeof(f=_(p=Object(x),a))=="string"?f:T?h(p):(o=h(p))=="Object"&&typeof p.callee=="function"?"Arguments":o}},{"./_cof":98,"./_wks":166}],98:[function(s,z,d){var h={}.toString;z.exports=function(a){return h.call(a).slice(8,-1)}},{}],99:[function(s,z,d){var h=z.exports={version:"2.6.11"};typeof __e=="number"&&(__e=h)},{}],100:[function(s,z,d){"use strict";var h=s("./_object-dp"),a=s("./_property-desc");z.exports=function(T,_,x){_ in T?h.f(T,_,a(0,x)):T[_]=x}},{"./_object-dp":132,"./_property-desc":146}],101:[function(s,z,d){var h=s("./_a-function");z.exports=function(a,T,_){if(h(a),T===void 0)return a;switch(_){case 1:return function(x){return a.call(T,x)};case 2:return function(x,p){return a.call(T,x,p)};case 3:return function(x,p,f){return a.call(T,x,p,f)}}return function(){return a.apply(T,arguments)}}},{"./_a-function":92}],102:[function(s,z,d){z.exports=function(h){if(h==null)throw TypeError("Can't call method on "+h);return h}},{}],103:[function(s,z,d){z.exports=!s("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(s,z,d){var h=s("./_is-object"),a=s("./_global").document,T=h(a)&&h(a.createElement);z.exports=function(_){return T?a.createElement(_):{}}},{"./_global":110,"./_is-object":119}],105:[function(s,z,d){z.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(s,z,d){var h=s("./_object-keys"),a=s("./_object-gops"),T=s("./_object-pie");z.exports=function(_){var x=h(_),p=a.f;if(p)for(var f=p(_),o=T.f,i=0,u;f.length>i;)o.call(_,u=f[i++])&&x.push(u);return x}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(s,z,d){var h=s("./_global"),a=s("./_core"),T=s("./_ctx"),_=s("./_hide"),x=s("./_has"),p="prototype",f=function(o,i,u){var l=o&f.F,v=o&f.G,m=o&f.S,g=o&f.P,E=o&f.B,w=o&f.W,O=v?a:a[i]||(a[i]={}),C=O[p],M=v?h:m?h[i]:(h[i]||{})[p],N,P,k;v&&(u=i);for(N in u){if(P=!l&&M&&M[N]!==void 0,P&&x(O,N))continue;k=P?M[N]:u[N],O[N]=v&&typeof M[N]!="function"?u[N]:E&&P?T(k,h):w&&M[N]==k?function(b){var V=function(X,D,L){if(this instanceof b){switch(arguments.length){case 0:return new b;case 1:return new b(X);case 2:return new b(X,D)}return new b(X,D,L)}return b.apply(this,arguments)};return V[p]=b[p],V}(k):g&&typeof k=="function"?T(Function.call,k):k,g&&((O.virtual||(O.virtual={}))[N]=k,o&f.R&&C&&!C[N]&&_(C,N,k))}};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,z.exports=f},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(s,z,d){z.exports=function(h){try{return!!h()}catch(a){return!0}}},{}],109:[function(s,z,d){var h=s("./_ctx"),a=s("./_iter-call"),T=s("./_is-array-iter"),_=s("./_an-object"),x=s("./_to-length"),p=s("./core.get-iterator-method"),f={},o={},d=z.exports=function(i,u,l,v,m){var g=m?function(){return i}:p(i),E=h(l,v,u?2:1),w=0,O,C,M,N;if(typeof g!="function")throw TypeError(i+" is not iterable!");if(T(g)){for(O=x(i.length);O>w;w++)if(N=u?E(_(C=i[w])[0],C[1]):E(i[w]),N===f||N===o)return N}else for(M=g.call(i);!(C=M.next()).done;)if(N=a(M,E,C.value,u),N===f||N===o)return N};d.BREAK=f,d.RETURN=o},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(s,z,d){var h=z.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=h)},{}],111:[function(s,z,d){var h={}.hasOwnProperty;z.exports=function(a,T){return h.call(a,T)}},{}],112:[function(s,z,d){var h=s("./_object-dp"),a=s("./_property-desc");z.exports=s("./_descriptors")?function(T,_,x){return h.f(T,_,a(1,x))}:function(T,_,x){return T[_]=x,T}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(s,z,d){var h=s("./_global").document;z.exports=h&&h.documentElement},{"./_global":110}],114:[function(s,z,d){z.exports=!s("./_descriptors")&&!s("./_fails")(function(){return Object.defineProperty(s("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(s,z,d){z.exports=function(h,a,T){var _=T===void 0;switch(a.length){case 0:return _?h():h.call(T);case 1:return _?h(a[0]):h.call(T,a[0]);case 2:return _?h(a[0],a[1]):h.call(T,a[0],a[1]);case 3:return _?h(a[0],a[1],a[2]):h.call(T,a[0],a[1],a[2]);case 4:return _?h(a[0],a[1],a[2],a[3]):h.call(T,a[0],a[1],a[2],a[3])}return h.apply(T,a)}},{}],116:[function(s,z,d){var h=s("./_cof");z.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return h(a)=="String"?a.split(""):Object(a)}},{"./_cof":98}],117:[function(s,z,d){var h=s("./_iterators"),a=s("./_wks")("iterator"),T=Array.prototype;z.exports=function(_){return _!==void 0&&(h.Array===_||T[a]===_)}},{"./_iterators":125,"./_wks":166}],118:[function(s,z,d){var h=s("./_cof");z.exports=Array.isArray||function(T){return h(T)=="Array"}},{"./_cof":98}],119:[function(s,z,d){z.exports=function(h){return typeof h=="object"?h!==null:typeof h=="function"}},{}],120:[function(s,z,d){var h=s("./_an-object");z.exports=function(a,T,_,x){try{return x?T(h(_)[0],_[1]):T(_)}catch(f){var p=a.return;throw p!==void 0&&h(p.call(a)),f}}},{"./_an-object":95}],121:[function(s,z,d){"use strict";var h=s("./_object-create"),a=s("./_property-desc"),T=s("./_set-to-string-tag"),_={};s("./_hide")(_,s("./_wks")("iterator"),function(){return this}),z.exports=function(x,p,f){x.prototype=h(_,{next:a(1,f)}),T(x,p+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(s,z,d){"use strict";var h=s("./_library"),a=s("./_export"),T=s("./_redefine"),_=s("./_hide"),x=s("./_iterators"),p=s("./_iter-create"),f=s("./_set-to-string-tag"),o=s("./_object-gpo"),i=s("./_wks")("iterator"),u=!([].keys&&"next"in[].keys()),l="@@iterator",v="keys",m="values",g=function(){return this};z.exports=function(E,w,O,C,M,N,P){p(O,w,C);var k=function(q){if(!u&&q in D)return D[q];switch(q){case v:return function(){return new O(this,q)};case m:return function(){return new O(this,q)}}return function(){return new O(this,q)}},b=w+" Iterator",V=M==m,X=!1,D=E.prototype,L=D[i]||D[l]||M&&D[M],U=L||k(M),J=M?V?k("entries"):U:void 0,ae=w=="Array"&&D.entries||L,se,G,he;if(ae&&(he=o(ae.call(new E)),he!==Object.prototype&&he.next&&(f(he,b,!0),!h&&typeof he[i]!="function"&&_(he,i,g))),V&&L&&L.name!==m&&(X=!0,U=function(){return L.call(this)}),(!h||P)&&(u||X||!D[i])&&_(D,i,U),x[w]=U,x[b]=g,M)if(se={values:V?U:k(m),keys:N?U:k(v),entries:J},P)for(G in se)G in D||T(D,G,se[G]);else a(a.P+a.F*(u||X),w,se);return se}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(s,z,d){var h=s("./_wks")("iterator"),a=!1;try{var T=[7][h]();T.return=function(){a=!0},Array.from(T,function(){throw 2})}catch(_){}z.exports=function(_,x){if(!x&&!a)return!1;var p=!1;try{var f=[7],o=f[h]();o.next=function(){return{done:p=!0}},f[h]=function(){return o},_(f)}catch(i){}return p}},{"./_wks":166}],124:[function(s,z,d){z.exports=function(h,a){return{value:a,done:!!h}}},{}],125:[function(s,z,d){z.exports={}},{}],126:[function(s,z,d){z.exports=!0},{}],127:[function(s,z,d){var h=s("./_uid")("meta"),a=s("./_is-object"),T=s("./_has"),_=s("./_object-dp").f,x=0,p=Object.isExtensible||function(){return!0},f=!s("./_fails")(function(){return p(Object.preventExtensions({}))}),o=function(m){_(m,h,{value:{i:"O"+ ++x,w:{}}})},i=function(m,g){if(!a(m))return typeof m=="symbol"?m:(typeof m=="string"?"S":"P")+m;if(!T(m,h)){if(!p(m))return"F";if(!g)return"E";o(m)}return m[h].i},u=function(m,g){if(!T(m,h)){if(!p(m))return!0;if(!g)return!1;o(m)}return m[h].w},l=function(m){return f&&v.NEED&&p(m)&&!T(m,h)&&o(m),m},v=z.exports={KEY:h,NEED:!1,fastKey:i,getWeak:u,onFreeze:l}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(s,z,d){var h=s("./_global"),a=s("./_task").set,T=h.MutationObserver||h.WebKitMutationObserver,_=h.process,x=h.Promise,p=s("./_cof")(_)=="process";z.exports=function(){var f,o,i,u=function(){var g,E;for(p&&(g=_.domain)&&g.exit();f;){E=f.fn,f=f.next;try{E()}catch(w){throw f?i():o=void 0,w}}o=void 0,g&&g.enter()};if(p)i=function(){_.nextTick(u)};else if(T&&!(h.navigator&&h.navigator.standalone)){var l=!0,v=document.createTextNode("");new T(u).observe(v,{characterData:!0}),i=function(){v.data=l=!l}}else if(x&&x.resolve){var m=x.resolve(void 0);i=function(){m.then(u)}}else i=function(){a.call(h,u)};return function(g){var E={fn:g,next:void 0};o&&(o.next=E),f||(f=E,i()),o=E}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(s,z,d){"use strict";var h=s("./_a-function");function a(T){var _,x;this.promise=new T(function(p,f){if(_!==void 0||x!==void 0)throw TypeError("Bad Promise constructor");_=p,x=f}),this.resolve=h(_),this.reject=h(x)}z.exports.f=function(T){return new a(T)}},{"./_a-function":92}],130:[function(s,z,d){"use strict";var h=s("./_descriptors"),a=s("./_object-keys"),T=s("./_object-gops"),_=s("./_object-pie"),x=s("./_to-object"),p=s("./_iobject"),f=Object.assign;z.exports=!f||s("./_fails")(function(){var o={},i={},u=Symbol(),l="abcdefghijklmnopqrst";return o[u]=7,l.split("").forEach(function(v){i[v]=v}),f({},o)[u]!=7||Object.keys(f({},i)).join("")!=l})?function(i,u){for(var l=x(i),v=arguments.length,m=1,g=T.f,E=_.f;v>m;)for(var w=p(arguments[m++]),O=g?a(w).concat(g(w)):a(w),C=O.length,M=0,N;C>M;)N=O[M++],(!h||E.call(w,N))&&(l[N]=w[N]);return l}:f},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(s,z,d){var h=s("./_an-object"),a=s("./_object-dps"),T=s("./_enum-bug-keys"),_=s("./_shared-key")("IE_PROTO"),x=function(){},p="prototype",f=function(){var o=s("./_dom-create")("iframe"),i=T.length,u="<",l=">",v;for(o.style.display="none",s("./_html").appendChild(o),o.src="javascript:",v=o.contentWindow.document,v.open(),v.write(u+"script"+l+"document.F=Object"+u+"/script"+l),v.close(),f=v.F;i--;)delete f[p][T[i]];return f()};z.exports=Object.create||function(i,u){var l;return i!==null?(x[p]=h(i),l=new x,x[p]=null,l[_]=i):l=f(),u===void 0?l:a(l,u)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(s,z,d){var h=s("./_an-object"),a=s("./_ie8-dom-define"),T=s("./_to-primitive"),_=Object.defineProperty;d.f=s("./_descriptors")?Object.defineProperty:function(p,f,o){if(h(p),f=T(f,!0),h(o),a)try{return _(p,f,o)}catch(i){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(p[f]=o.value),p}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(s,z,d){var h=s("./_object-dp"),a=s("./_an-object"),T=s("./_object-keys");z.exports=s("./_descriptors")?Object.defineProperties:function(x,p){a(x);for(var f=T(p),o=f.length,i=0,u;o>i;)h.f(x,u=f[i++],p[u]);return x}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(s,z,d){var h=s("./_object-pie"),a=s("./_property-desc"),T=s("./_to-iobject"),_=s("./_to-primitive"),x=s("./_has"),p=s("./_ie8-dom-define"),f=Object.getOwnPropertyDescriptor;d.f=s("./_descriptors")?f:function(i,u){if(i=T(i),u=_(u,!0),p)try{return f(i,u)}catch(l){}if(x(i,u))return a(!h.f.call(i,u),i[u])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(s,z,d){var h=s("./_to-iobject"),a=s("./_object-gopn").f,T={}.toString,_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],x=function(p){try{return a(p)}catch(f){return _.slice()}};z.exports.f=function(f){return _&&T.call(f)=="[object Window]"?x(f):a(h(f))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(s,z,d){var h=s("./_object-keys-internal"),a=s("./_enum-bug-keys").concat("length","prototype");d.f=Object.getOwnPropertyNames||function(_){return h(_,a)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(s,z,d){d.f=Object.getOwnPropertySymbols},{}],138:[function(s,z,d){var h=s("./_has"),a=s("./_to-object"),T=s("./_shared-key")("IE_PROTO"),_=Object.prototype;z.exports=Object.getPrototypeOf||function(x){return x=a(x),h(x,T)?x[T]:typeof x.constructor=="function"&&x instanceof x.constructor?x.constructor.prototype:x instanceof Object?_:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(s,z,d){var h=s("./_has"),a=s("./_to-iobject"),T=s("./_array-includes")(!1),_=s("./_shared-key")("IE_PROTO");z.exports=function(x,p){var f=a(x),o=0,i=[],u;for(u in f)u!=_&&(h(f,u)&&i.push(u));for(;p.length>o;)h(f,u=p[o++])&&(~T(i,u)||i.push(u));return i}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(s,z,d){var h=s("./_object-keys-internal"),a=s("./_enum-bug-keys");z.exports=Object.keys||function(_){return h(_,a)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(s,z,d){d.f={}.propertyIsEnumerable},{}],142:[function(s,z,d){var h=s("./_export"),a=s("./_core"),T=s("./_fails");z.exports=function(_,x){var p=(a.Object||{})[_]||Object[_],f={};f[_]=x(p),h(h.S+h.F*T(function(){p(1)}),"Object",f)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(s,z,d){var h=s("./_descriptors"),a=s("./_object-keys"),T=s("./_to-iobject"),_=s("./_object-pie").f;z.exports=function(x){return function(p){for(var f=T(p),o=a(f),i=o.length,u=0,l=[],v;i>u;)v=o[u++],(!h||_.call(f,v))&&l.push(x?[v,f[v]]:f[v]);return l}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(s,z,d){z.exports=function(h){try{return{e:!1,v:h()}}catch(a){return{e:!0,v:a}}}},{}],145:[function(s,z,d){var h=s("./_an-object"),a=s("./_is-object"),T=s("./_new-promise-capability");z.exports=function(_,x){if(h(_),a(x)&&x.constructor===_)return x;var p=T.f(_),f=p.resolve;return f(x),p.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(s,z,d){z.exports=function(h,a){return{enumerable:!(h&1),configurable:!(h&2),writable:!(h&4),value:a}}},{}],147:[function(s,z,d){var h=s("./_hide");z.exports=function(a,T,_){for(var x in T)_&&a[x]?a[x]=T[x]:h(a,x,T[x]);return a}},{"./_hide":112}],148:[function(s,z,d){z.exports=s("./_hide")},{"./_hide":112}],149:[function(s,z,d){"use strict";var h=s("./_global"),a=s("./_core"),T=s("./_object-dp"),_=s("./_descriptors"),x=s("./_wks")("species");z.exports=function(p){var f=typeof a[p]=="function"?a[p]:h[p];_&&f&&!f[x]&&T.f(f,x,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(s,z,d){var h=s("./_object-dp").f,a=s("./_has"),T=s("./_wks")("toStringTag");z.exports=function(_,x,p){_&&!a(_=p?_:_.prototype,T)&&h(_,T,{configurable:!0,value:x})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(s,z,d){var h=s("./_shared")("keys"),a=s("./_uid");z.exports=function(T){return h[T]||(h[T]=a(T))}},{"./_shared":152,"./_uid":162}],152:[function(s,z,d){var h=s("./_core"),a=s("./_global"),T="__core-js_shared__",_=a[T]||(a[T]={});(z.exports=function(x,p){return _[x]||(_[x]=p!==void 0?p:{})})("versions",[]).push({version:h.version,mode:s("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(s,z,d){var h=s("./_an-object"),a=s("./_a-function"),T=s("./_wks")("species");z.exports=function(_,x){var p=h(_).constructor,f;return p===void 0||(f=h(p)[T])==null?x:a(f)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(s,z,d){var h=s("./_to-integer"),a=s("./_defined");z.exports=function(T){return function(_,x){var p=String(a(_)),f=h(x),o=p.length,i,u;return f<0||f>=o?T?"":void 0:(i=p.charCodeAt(f),i<55296||i>56319||f+1===o||(u=p.charCodeAt(f+1))<56320||u>57343?T?p.charAt(f):i:T?p.slice(f,f+2):(i-55296<<10)+(u-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(s,z,d){var h=s("./_ctx"),a=s("./_invoke"),T=s("./_html"),_=s("./_dom-create"),x=s("./_global"),p=x.process,f=x.setImmediate,o=x.clearImmediate,i=x.MessageChannel,u=x.Dispatch,l=0,v={},m="onreadystatechange",g,E,w,O=function(){var M=+this;if(v.hasOwnProperty(M)){var N=v[M];delete v[M],N()}},C=function(M){O.call(M.data)};(!f||!o)&&(f=function(N){for(var P=[],k=1;arguments.length>k;)P.push(arguments[k++]);return v[++l]=function(){a(typeof N=="function"?N:Function(N),P)},g(l),l},o=function(N){delete v[N]},s("./_cof")(p)=="process"?g=function(M){p.nextTick(h(O,M,1))}:u&&u.now?g=function(M){u.now(h(O,M,1))}:i?(E=new i,w=E.port2,E.port1.onmessage=C,g=h(w.postMessage,w,1)):x.addEventListener&&typeof postMessage=="function"&&!x.importScripts?(g=function(M){x.postMessage(M+"","*")},x.addEventListener("message",C,!1)):m in _("script")?g=function(M){T.appendChild(_("script"))[m]=function(){T.removeChild(this),O.call(M)}}:g=function(M){setTimeout(h(O,M,1),0)}),z.exports={set:f,clear:o}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(s,z,d){var h=s("./_to-integer"),a=Math.max,T=Math.min;z.exports=function(_,x){return _=h(_),_<0?a(_+x,0):T(_,x)}},{"./_to-integer":157}],157:[function(s,z,d){var h=Math.ceil,a=Math.floor;z.exports=function(T){return isNaN(T=+T)?0:(T>0?a:h)(T)}},{}],158:[function(s,z,d){var h=s("./_iobject"),a=s("./_defined");z.exports=function(T){return h(a(T))}},{"./_defined":102,"./_iobject":116}],159:[function(s,z,d){var h=s("./_to-integer"),a=Math.min;z.exports=function(T){return T>0?a(h(T),9007199254740991):0}},{"./_to-integer":157}],160:[function(s,z,d){var h=s("./_defined");z.exports=function(a){return Object(h(a))}},{"./_defined":102}],161:[function(s,z,d){var h=s("./_is-object");z.exports=function(a,T){if(!h(a))return a;var _,x;if(T&&typeof(_=a.toString)=="function"&&!h(x=_.call(a)))return x;if(typeof(_=a.valueOf)=="function"&&!h(x=_.call(a)))return x;if(!T&&typeof(_=a.toString)=="function"&&!h(x=_.call(a)))return x;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(s,z,d){var h=0,a=Math.random();z.exports=function(T){return"Symbol(".concat(T===void 0?"":T,")_",(++h+a).toString(36))}},{}],163:[function(s,z,d){var h=s("./_global"),a=h.navigator;z.exports=a&&a.userAgent||""},{"./_global":110}],164:[function(s,z,d){var h=s("./_global"),a=s("./_core"),T=s("./_library"),_=s("./_wks-ext"),x=s("./_object-dp").f;z.exports=function(p){var f=a.Symbol||(a.Symbol=T?{}:h.Symbol||{});p.charAt(0)!="_"&&!(p in f)&&x(f,p,{value:_.f(p)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(s,z,d){d.f=s("./_wks")},{"./_wks":166}],166:[function(s,z,d){var h=s("./_shared")("wks"),a=s("./_uid"),T=s("./_global").Symbol,_=typeof T=="function",x=z.exports=function(p){return h[p]||(h[p]=_&&T[p]||(_?T:a)("Symbol."+p))};x.store=h},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(s,z,d){var h=s("./_classof"),a=s("./_wks")("iterator"),T=s("./_iterators");z.exports=s("./_core").getIteratorMethod=function(_){if(_!=null)return _[a]||_["@@iterator"]||T[h(_)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(s,z,d){"use strict";var h=s("./_ctx"),a=s("./_export"),T=s("./_to-object"),_=s("./_iter-call"),x=s("./_is-array-iter"),p=s("./_to-length"),f=s("./_create-property"),o=s("./core.get-iterator-method");a(a.S+a.F*!s("./_iter-detect")(function(i){Array.from(i)}),"Array",{from:function(u){var l=T(u),v=typeof this=="function"?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,E=g!==void 0,w=0,O=o(l),C,M,N,P;if(E&&(g=h(g,m>2?arguments[2]:void 0,2)),O!=null&&!(v==Array&&x(O)))for(P=O.call(l),M=new v;!(N=P.next()).done;w++)f(M,w,E?_(P,g,[N.value,w],!0):N.value);else for(C=p(l.length),M=new v(C);C>w;w++)f(M,w,E?g(l[w],w):l[w]);return M.length=w,M}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(s,z,d){"use strict";var h=s("./_add-to-unscopables"),a=s("./_iter-step"),T=s("./_iterators"),_=s("./_to-iobject");z.exports=s("./_iter-define")(Array,"Array",function(x,p){this._t=_(x),this._i=0,this._k=p},function(){var x=this._t,p=this._k,f=this._i++;return!x||f>=x.length?(this._t=void 0,a(1)):p=="keys"?a(0,f):p=="values"?a(0,x[f]):a(0,[f,x[f]])},"values"),T.Arguments=T.Array,h("keys"),h("values"),h("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(s,z,d){"use strict";var h=s("./_is-object"),a=s("./_object-gpo"),T=s("./_wks")("hasInstance"),_=Function.prototype;T in _||s("./_object-dp").f(_,T,{value:function(x){if(typeof this!="function"||!h(x))return!1;if(!h(this.prototype))return x instanceof this;for(;x=a(x);)if(this.prototype===x)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(s,z,d){var h=s("./_export");h(h.S+h.F,"Object",{assign:s("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(s,z,d){var h=s("./_export");h(h.S,"Object",{create:s("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(s,z,d){var h=s("./_export");h(h.S+h.F*!s("./_descriptors"),"Object",{defineProperty:s("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(s,z,d){s("./_object-sap")("getOwnPropertyNames",function(){return s("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(s,z,d){var h=s("./_to-object"),a=s("./_object-gpo");s("./_object-sap")("getPrototypeOf",function(){return function(_){return a(h(_))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(s,z,d){var h=s("./_to-object"),a=s("./_object-keys");s("./_object-sap")("keys",function(){return function(_){return a(h(_))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(s,z,d){arguments[4][71][0].apply(d,arguments)},{dup:71}],178:[function(s,z,d){"use strict";var h=s("./_library"),a=s("./_global"),T=s("./_ctx"),_=s("./_classof"),x=s("./_export"),p=s("./_is-object"),f=s("./_a-function"),o=s("./_an-instance"),i=s("./_for-of"),u=s("./_species-constructor"),l=s("./_task").set,v=s("./_microtask")(),m=s("./_new-promise-capability"),g=s("./_perform"),E=s("./_user-agent"),w=s("./_promise-resolve"),O="Promise",C=a.TypeError,M=a.process,N=M&&M.versions,P=N&&N.v8||"",k=a[O],b=_(M)=="process",V=function(){},X,D,L,U,J=D=m.f,ae=!!function(){try{var y=k.resolve(1),A=(y.constructor={})[s("./_wks")("species")]=function(ee){ee(V,V)};return(b||typeof PromiseRejectionEvent=="function")&&y.then(V)instanceof A&&P.indexOf("6.6")!==0&&E.indexOf("Chrome/66")===-1}catch(ee){}}(),se=function(y){var A;return p(y)&&typeof(A=y.then)=="function"?A:!1},G=function(y,A){if(y._n)return;y._n=!0;var ee=y._c;v(function(){for(var oe=y._v,de=y._s==1,be=0,xe=function(te){var le=de?te.ok:te.fail,ue=te.resolve,Z=te.reject,ne=te.domain,Y,re,F;try{le?(de||(y._h==2&&W(y),y._h=1),le===!0?Y=oe:(ne&&ne.enter(),Y=le(oe),ne&&(ne.exit(),F=!0)),Y===te.promise?Z(C("Promise-chain cycle")):(re=se(Y))?re.call(Y,ue,Z):ue(Y)):Z(oe)}catch(K){ne&&!F&&ne.exit(),Z(K)}};ee.length>be;)xe(ee[be++]);y._c=[],y._n=!1,A&&!y._h&&he(y)})},he=function(y){l.call(a,function(){var A=y._v,ee=q(y),oe,de,be;if(ee&&(oe=g(function(){b?M.emit("unhandledRejection",A,y):(de=a.onunhandledrejection)?de({promise:y,reason:A}):(be=a.console)&&be.error&&be.error("Unhandled promise rejection",A)}),y._h=b||q(y)?2:1),y._a=void 0,ee&&oe.e)throw oe.v})},q=function(y){return y._h!==1&&(y._a||y._c).length===0},W=function(y){l.call(a,function(){var A;b?M.emit("rejectionHandled",y):(A=a.onrejectionhandled)&&A({promise:y,reason:y._v})})},H=function(y){var A=this;if(A._d)return;A._d=!0,A=A._w||A,A._v=y,A._s=2,A._a||(A._a=A._c.slice()),G(A,!0)},R=function(y){var A=this,ee;if(A._d)return;A._d=!0,A=A._w||A;try{if(A===y)throw C("Promise can't be resolved itself");(ee=se(y))?v(function(){var oe={_w:A,_d:!1};try{ee.call(y,T(R,oe,1),T(H,oe,1))}catch(de){H.call(oe,de)}}):(A._v=y,A._s=1,G(A,!1))}catch(oe){H.call({_w:A,_d:!1},oe)}};ae||(k=function(A){o(this,k,O,"_h"),f(A),X.call(this);try{A(T(R,this,1),T(H,this,1))}catch(ee){H.call(this,ee)}},X=function(A){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},X.prototype=s("./_redefine-all")(k.prototype,{then:function(A,ee){var oe=J(u(this,k));return oe.ok=typeof A=="function"?A:!0,oe.fail=typeof ee=="function"&&ee,oe.domain=b?M.domain:void 0,this._c.push(oe),this._a&&this._a.push(oe),this._s&&G(this,!1),oe.promise},catch:function(y){return this.then(void 0,y)}}),L=function(){var y=new X;this.promise=y,this.resolve=T(R,y,1),this.reject=T(H,y,1)},m.f=J=function(y){return y===k||y===U?new L(y):D(y)}),x(x.G+x.W+x.F*!ae,{Promise:k}),s("./_set-to-string-tag")(k,O),s("./_set-species")(O),U=s("./_core")[O],x(x.S+x.F*!ae,O,{reject:function(A){var ee=J(this),oe=ee.reject;return oe(A),ee.promise}}),x(x.S+x.F*(h||!ae),O,{resolve:function(A){return w(h&&this===U?k:this,A)}}),x(x.S+x.F*!(ae&&s("./_iter-detect")(function(y){k.all(y).catch(V)})),O,{all:function(A){var ee=this,oe=J(ee),de=oe.resolve,be=oe.reject,xe=g(function(){var te=[],le=0,ue=1;i(A,!1,function(Z){var ne=le++,Y=!1;te.push(void 0),ue++,ee.resolve(Z).then(function(re){if(Y)return;Y=!0,te[ne]=re,--ue||de(te)},be)}),--ue||de(te)});return xe.e&&be(xe.v),oe.promise},race:function(A){var ee=this,oe=J(ee),de=oe.reject,be=g(function(){i(A,!1,function(xe){ee.resolve(xe).then(oe.resolve,de)})});return be.e&&de(be.v),oe.promise}})},{"./_a-function":92,"./_an-instance":94,"./_classof":97,"./_core":99,"./_ctx":101,"./_export":107,"./_for-of":109,"./_global":110,"./_is-object":119,"./_iter-detect":123,"./_library":126,"./_microtask":128,"./_new-promise-capability":129,"./_perform":144,"./_promise-resolve":145,"./_redefine-all":147,"./_set-species":149,"./_set-to-string-tag":150,"./_species-constructor":153,"./_task":155,"./_user-agent":163,"./_wks":166}],179:[function(s,z,d){var h=s("./_export"),a=s("./_to-absolute-index"),T=String.fromCharCode,_=String.fromCodePoint;h(h.S+h.F*(!!_&&_.length!=1),"String",{fromCodePoint:function(p){for(var f=[],o=arguments.length,i=0,u;o>i;){if(u=+arguments[i++],a(u,1114111)!==u)throw RangeError(u+" is not a valid code point");f.push(u<65536?T(u):T(((u-=65536)>>10)+55296,u%1024+56320))}return f.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(s,z,d){"use strict";var h=s("./_string-at")(!0);s("./_iter-define")(String,"String",function(a){this._t=String(a),this._i=0},function(){var a=this._t,T=this._i,_;return T>=a.length?{value:void 0,done:!0}:(_=h(a,T),this._i+=_.length,{value:_,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(s,z,d){"use strict";var h=s("./_global"),a=s("./_has"),T=s("./_descriptors"),_=s("./_export"),x=s("./_redefine"),p=s("./_meta").KEY,f=s("./_fails"),o=s("./_shared"),i=s("./_set-to-string-tag"),u=s("./_uid"),l=s("./_wks"),v=s("./_wks-ext"),m=s("./_wks-define"),g=s("./_enum-keys"),E=s("./_is-array"),w=s("./_an-object"),O=s("./_is-object"),C=s("./_to-object"),M=s("./_to-iobject"),N=s("./_to-primitive"),P=s("./_property-desc"),k=s("./_object-create"),b=s("./_object-gopn-ext"),V=s("./_object-gopd"),X=s("./_object-gops"),D=s("./_object-dp"),L=s("./_object-keys"),U=V.f,J=D.f,ae=b.f,se=h.Symbol,G=h.JSON,he=G&&G.stringify,q="prototype",W=l("_hidden"),H=l("toPrimitive"),R={}.propertyIsEnumerable,y=o("symbol-registry"),A=o("symbols"),ee=o("op-symbols"),oe=Object[q],de=typeof se=="function"&&!!X.f,be=h.QObject,xe=!be||!be[q]||!be[q].findChild,te=T&&f(function(){return k(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a!=7})?function(fe,we,ke){var Me=U(oe,we);Me&&delete oe[we],J(fe,we,ke),Me&&fe!==oe&&J(oe,we,Me)}:J,le=function(fe){var we=A[fe]=k(se[q]);return we._k=fe,we},ue=de&&typeof se.iterator=="symbol"?function(fe){return typeof fe=="symbol"}:function(fe){return fe instanceof se},Z=function(we,ke,Me){return we===oe&&Z(ee,ke,Me),w(we),ke=N(ke,!0),w(Me),a(A,ke)?(Me.enumerable?(a(we,W)&&we[W][ke]&&(we[W][ke]=!1),Me=k(Me,{enumerable:P(0,!1)})):(a(we,W)||J(we,W,P(1,{})),we[W][ke]=!0),te(we,ke,Me)):J(we,ke,Me)},ne=function(we,ke){w(we);for(var Me=g(ke=M(ke)),Ne=0,Le=Me.length,We;Le>Ne;)Z(we,We=Me[Ne++],ke[We]);return we},Y=function(we,ke){return ke===void 0?k(we):ne(k(we),ke)},re=function(we){var ke=R.call(this,we=N(we,!0));return this===oe&&a(A,we)&&!a(ee,we)?!1:ke||!a(this,we)||!a(A,we)||a(this,W)&&this[W][we]?ke:!0},F=function(we,ke){if(we=M(we),ke=N(ke,!0),we===oe&&a(A,ke)&&!a(ee,ke))return;var Me=U(we,ke);return Me&&a(A,ke)&&!(a(we,W)&&we[W][ke])&&(Me.enumerable=!0),Me},K=function(we){for(var ke=ae(M(we)),Me=[],Ne=0,Le;ke.length>Ne;)!a(A,Le=ke[Ne++])&&Le!=W&&Le!=p&&Me.push(Le);return Me},pe=function(we){for(var ke=we===oe,Me=ae(ke?ee:M(we)),Ne=[],Le=0,We;Me.length>Le;)a(A,We=Me[Le++])&&(ke?a(oe,We):!0)&&Ne.push(A[We]);return Ne};de||(se=function(){if(this instanceof se)throw TypeError("Symbol is not a constructor!");var we=u(arguments.length>0?arguments[0]:void 0),ke=function(Me){this===oe&&ke.call(ee,Me),a(this,W)&&a(this[W],we)&&(this[W][we]=!1),te(this,we,P(1,Me))};return T&&xe&&te(oe,we,{configurable:!0,set:ke}),le(we)},x(se[q],"toString",function(){return this._k}),V.f=F,D.f=Z,s("./_object-gopn").f=b.f=K,s("./_object-pie").f=re,X.f=pe,T&&!s("./_library")&&x(oe,"propertyIsEnumerable",re,!0),v.f=function(fe){return le(l(fe))}),_(_.G+_.W+_.F*!de,{Symbol:se});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),j=0;$.length>j;)l($[j++]);for(var S=L(l.store),B=0;S.length>B;)m(S[B++]);_(_.S+_.F*!de,"Symbol",{for:function(fe){return a(y,fe+="")?y[fe]:y[fe]=se(fe)},keyFor:function(we){if(!ue(we))throw TypeError(we+" is not a symbol!");for(var ke in y)if(y[ke]===we)return ke},useSetter:function(){xe=!0},useSimple:function(){xe=!1}}),_(_.S+_.F*!de,"Object",{create:Y,defineProperty:Z,defineProperties:ne,getOwnPropertyDescriptor:F,getOwnPropertyNames:K,getOwnPropertySymbols:pe});var me=f(function(){X.f(1)});_(_.S+_.F*me,"Object",{getOwnPropertySymbols:function(we){return X.f(C(we))}}),G&&_(_.S+_.F*(!de||f(function(){var fe=se();return he([fe])!="[null]"||he({a:fe})!="{}"||he(Object(fe))!="{}"})),"JSON",{stringify:function(we){for(var ke=[we],Me=1,Ne,Le;arguments.length>Me;)ke.push(arguments[Me++]);return Le=Ne=ke[1],!O(Ne)&&we===void 0||ue(we)?void 0:(E(Ne)||(Ne=function(We,Fe){if(typeof Le=="function"&&(Fe=Le.call(this,We,Fe)),!ue(Fe))return Fe}),ke[1]=Ne,he.apply(G,ke))}}),se[q][H]||s("./_hide")(se[q],H,se[q].valueOf),i(se,"Symbol"),i(Math,"Math",!0),i(h.JSON,"JSON",!0)},{"./_an-object":95,"./_descriptors":103,"./_enum-keys":106,"./_export":107,"./_fails":108,"./_global":110,"./_has":111,"./_hide":112,"./_is-array":118,"./_is-object":119,"./_library":126,"./_meta":127,"./_object-create":131,"./_object-dp":132,"./_object-gopd":134,"./_object-gopn":136,"./_object-gopn-ext":135,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_property-desc":146,"./_redefine":148,"./_set-to-string-tag":150,"./_shared":152,"./_to-iobject":158,"./_to-object":160,"./_to-primitive":161,"./_uid":162,"./_wks":166,"./_wks-define":164,"./_wks-ext":165}],182:[function(s,z,d){var h=s("./_export"),a=s("./_object-to-array")(!0);h(h.S,"Object",{entries:function(_){return a(_)}})},{"./_export":107,"./_object-to-array":143}],183:[function(s,z,d){"use strict";var h=s("./_export"),a=s("./_core"),T=s("./_global"),_=s("./_species-constructor"),x=s("./_promise-resolve");h(h.P+h.R,"Promise",{finally:function(p){var f=_(this,a.Promise||T.Promise),o=typeof p=="function";return this.then(o?function(i){return x(f,p()).then(function(){return i})}:p,o?function(i){return x(f,p()).then(function(){throw i})}:p)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(s,z,d){"use strict";var h=s("./_export"),a=s("./_new-promise-capability"),T=s("./_perform");h(h.S,"Promise",{try:function(_){var x=a.f(this),p=T(_);return(p.e?x.reject:x.resolve)(p.v),x.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(s,z,d){s("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(s,z,d){s("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(s,z,d){s("./es6.array.iterator");for(var h=s("./_global"),a=s("./_hide"),T=s("./_iterators"),_=s("./_wks")("toStringTag"),x="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(","),p=0;p<x.length;p++){var f=x[p],o=h[f],i=o&&o.prototype;i&&!i[_]&&a(i,_,f),T[f]=T.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(s,z,d){var h=s("./_export"),a=s("./_task");h(h.G+h.B,{setImmediate:a.set,clearImmediate:a.clear})},{"./_export":107,"./_task":155}],189:[function(s,z,d){(function(h){"use strict";var a=s("babel-runtime/helpers/typeof"),T=_(a);function _(N){return N&&N.__esModule?N:{default:N}}function x(N){return Array.isArray?Array.isArray(N):M(N)==="[object Array]"}d.isArray=x;function p(N){return typeof N=="boolean"}d.isBoolean=p;function f(N){return N===null}d.isNull=f;function o(N){return N==null}d.isNullOrUndefined=o;function i(N){return typeof N=="number"}d.isNumber=i;function u(N){return typeof N=="string"}d.isString=u;function l(N){return(typeof N=="undefined"?"undefined":(0,T.default)(N))==="symbol"}d.isSymbol=l;function v(N){return N===void 0}d.isUndefined=v;function m(N){return M(N)==="[object RegExp]"}d.isRegExp=m;function g(N){return(typeof N=="undefined"?"undefined":(0,T.default)(N))==="object"&&N!==null}d.isObject=g;function E(N){return M(N)==="[object Date]"}d.isDate=E;function w(N){return M(N)==="[object Error]"||N instanceof Error}d.isError=w;function O(N){return typeof N=="function"}d.isFunction=O;function C(N){return N===null||typeof N=="boolean"||typeof N=="number"||typeof N=="string"||(typeof N=="undefined"?"undefined":(0,T.default)(N))==="symbol"||typeof N=="undefined"}d.isPrimitive=C,d.isBuffer=h.isBuffer;function M(N){return Object.prototype.toString.call(N)}}).call(this,{isBuffer:s("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(s,z,d){"use strict";var h=s("babel-runtime/helpers/typeof"),a=T(h);function T(_){return _&&_.__esModule?_:{default:_}}(function(_){"use strict";var x=function(){var u=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,l=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,v=/[^-+\dA-Z]/g;return function(m,g,E,w){if(arguments.length===1&&i(m)==="string"&&!/\d/.test(m)&&(g=m,m=void 0),m=m||new Date,m instanceof Date||(m=new Date(m)),isNaN(m))throw TypeError("Invalid date");g=String(x.masks[g]||g||x.masks.default);var O=g.slice(0,4);(O==="UTC:"||O==="GMT:")&&(g=g.slice(4),E=!0,O==="GMT:"&&(w=!0));var C=E?"getUTC":"get",M=m[C+"Date"](),N=m[C+"Day"](),P=m[C+"Month"](),k=m[C+"FullYear"](),b=m[C+"Hours"](),V=m[C+"Minutes"](),X=m[C+"Seconds"](),D=m[C+"Milliseconds"](),L=E?0:m.getTimezoneOffset(),U=f(m),J=o(m),ae={d:M,dd:p(M),ddd:x.i18n.dayNames[N],dddd:x.i18n.dayNames[N+7],m:P+1,mm:p(P+1),mmm:x.i18n.monthNames[P],mmmm:x.i18n.monthNames[P+12],yy:String(k).slice(2),yyyy:k,h:b%12||12,hh:p(b%12||12),H:b,HH:p(b),M:V,MM:p(V),s:X,ss:p(X),l:p(D,3),L:p(Math.round(D/10)),t:b<12?"a":"p",tt:b<12?"am":"pm",T:b<12?"A":"P",TT:b<12?"AM":"PM",Z:w?"GMT":E?"UTC":(String(m).match(l)||[""]).pop().replace(v,""),o:(L>0?"-":"+")+p(Math.floor(Math.abs(L)/60)*100+Math.abs(L)%60,4),S:["th","st","nd","rd"][M%10>3?0:(M%100-M%10!=10)*M%10],W:U,N:J};return g.replace(u,function(se){return se in ae?ae[se]:se.slice(1,se.length-1)})}}();x.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"},x.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 p(u,l){for(u=String(u),l=l||2;u.length<l;)u="0"+u;return u}function f(u){var l=new Date(u.getFullYear(),u.getMonth(),u.getDate());l.setDate(l.getDate()-(l.getDay()+6)%7+3);var v=new Date(l.getFullYear(),0,4);v.setDate(v.getDate()-(v.getDay()+6)%7+3);var m=l.getTimezoneOffset()-v.getTimezoneOffset();l.setHours(l.getHours()-m);var g=(l-v)/(864e5*7);return 1+Math.floor(g)}function o(u){var l=u.getDay();return l===0&&(l=7),l}function i(u){return u===null?"null":u===void 0?"undefined":(typeof u=="undefined"?"undefined":(0,a.default)(u))!=="object"?typeof u=="undefined"?"undefined":(0,a.default)(u):Array.isArray(u)?"array":{}.toString.call(u).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return x}):(typeof d=="undefined"?"undefined":(0,a.default)(d))==="object"?z.exports=x:_.dateFormat=x})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(s,z,d){/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/"use strict";var h=/["'&<>]/;z.exports=a;function a(T){var _=""+T,x=h.exec(_);if(!x)return _;var p,f="",o=0,i=0;for(o=x.index;o<_.length;o++){switch(_.charCodeAt(o)){case 34:p="&quot;";break;case 38:p="&amp;";break;case 39:p="&#39;";break;case 60:p="&lt;";break;case 62:p="&gt;";break;default:continue}i!==o&&(f+=_.substring(i,o)),i=o+1,f+=p}return i!==o?f+_.substring(i,o):f}},{}],192:[function(s,z,d){function h(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}z.exports=h,h.EventEmitter=h,h.prototype._events=void 0,h.prototype._maxListeners=void 0,h.defaultMaxListeners=10,h.prototype.setMaxListeners=function(p){if(!T(p)||p<0||isNaN(p))throw TypeError("n must be a positive number");return this._maxListeners=p,this},h.prototype.emit=function(p){var f,o,i,u,l,v;if(this._events||(this._events={}),p==="error"&&(!this._events.error||_(this._events.error)&&!this._events.error.length)){if(f=arguments[1],f instanceof Error)throw f;var m=new Error('Uncaught, unspecified "error" event. ('+f+")");throw m.context=f,m}if(o=this._events[p],x(o))return!1;if(a(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:u=Array.prototype.slice.call(arguments,1),o.apply(this,u)}else if(_(o))for(u=Array.prototype.slice.call(arguments,1),v=o.slice(),i=v.length,l=0;l<i;l++)v[l].apply(this,u);return!0},h.prototype.addListener=function(p,f){var o;if(!a(f))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",p,a(f.listener)?f.listener:f),this._events[p]?_(this._events[p])?this._events[p].push(f):this._events[p]=[this._events[p],f]:this._events[p]=f,_(this._events[p])&&!this._events[p].warned&&(x(this._maxListeners)?o=h.defaultMaxListeners:o=this._maxListeners,o&&o>0&&this._events[p].length>o&&(this._events[p].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[p].length),typeof console.trace=="function"&&console.trace())),this},h.prototype.on=h.prototype.addListener,h.prototype.once=function(p,f){if(!a(f))throw TypeError("listener must be a function");var o=!1;function i(){this.removeListener(p,i),o||(o=!0,f.apply(this,arguments))}return i.listener=f,this.on(p,i),this},h.prototype.removeListener=function(p,f){var o,i,u,l;if(!a(f))throw TypeError("listener must be a function");if(!this._events||!this._events[p])return this;if(o=this._events[p],u=o.length,i=-1,o===f||a(o.listener)&&o.listener===f)delete this._events[p],this._events.removeListener&&this.emit("removeListener",p,f);else if(_(o)){for(l=u;l-- >0;)if(o[l]===f||o[l].listener&&o[l].listener===f){i=l;break}if(i<0)return this;o.length===1?(o.length=0,delete this._events[p]):o.splice(i,1),this._events.removeListener&&this.emit("removeListener",p,f)}return this},h.prototype.removeAllListeners=function(p){var f,o;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[p]&&delete this._events[p],this;if(arguments.length===0){for(f in this._events){if(f==="removeListener")continue;this.removeAllListeners(f)}return this.removeAllListeners("removeListener"),this._events={},this}if(o=this._events[p],a(o))this.removeListener(p,o);else if(o)for(;o.length;)this.removeListener(p,o[o.length-1]);return delete this._events[p],this},h.prototype.listeners=function(p){var f;return!this._events||!this._events[p]?f=[]:a(this._events[p])?f=[this._events[p]]:f=this._events[p].slice(),f},h.prototype.listenerCount=function(p){if(this._events){var f=this._events[p];if(a(f))return 1;if(f)return f.length}return 0},h.listenerCount=function(p,f){return p.listenerCount(f)};function a(p){return typeof p=="function"}function T(p){return typeof p=="number"}function _(p){return typeof p=="object"&&p!==null}function x(p){return p===void 0}},{}],193:[function(s,z,d){var h=s("http"),a=z.exports;for(var T in h)h.hasOwnProperty(T)&&(a[T]=h[T]);a.request=function(_,x){return _||(_={}),_.scheme="https",_.protocol="https:",h.request.call(this,_,x)}},{http:231}],194:[function(s,z,d){/*!
* humanize-ms - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var h=s("util"),a=s("ms");z.exports=function(T){if(typeof T=="number")return T;var _=a(T);if(_===void 0){var x=new Error(h.format("humanize-ms(%j) result undefined",T));console.warn(x.stack)}return _}},{ms:204,util:243}],195:[function(s,z,d){d.read=function(h,a,T,_,x){var p,f,o=x*8-_-1,i=(1<<o)-1,u=i>>1,l=-7,v=T?x-1:0,m=T?-1:1,g=h[a+v];for(v+=m,p=g&(1<<-l)-1,g>>=-l,l+=o;l>0;p=p*256+h[a+v],v+=m,l-=8);for(f=p&(1<<-l)-1,p>>=-l,l+=_;l>0;f=f*256+h[a+v],v+=m,l-=8);if(p===0)p=1-u;else{if(p===i)return f?NaN:(g?-1:1)*Infinity;f=f+Math.pow(2,_),p=p-u}return(g?-1:1)*f*Math.pow(2,p-_)},d.write=function(h,a,T,_,x,p){var f,o,i,u=p*8-x-1,l=(1<<u)-1,v=l>>1,m=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=_?0:p-1,E=_?1:-1,w=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===Infinity?(o=isNaN(a)?1:0,f=l):(f=Math.floor(Math.log(a)/Math.LN2),a*(i=Math.pow(2,-f))<1&&(f--,i*=2),f+v>=1?a+=m/i:a+=m*Math.pow(2,1-v),a*i>=2&&(f++,i/=2),f+v>=l?(o=0,f=l):f+v>=1?(o=(a*i-1)*Math.pow(2,x),f=f+v):(o=a*Math.pow(2,v-1)*Math.pow(2,x),f=0));x>=8;h[T+g]=o&255,g+=E,o/=256,x-=8);for(f=f<<x|o,u+=x;u>0;h[T+g]=f&255,g+=E,f/=256,u-=8);h[T+g-E]|=w*128}},{}],196:[function(s,z,d){typeof Object.create=="function"?z.exports=function(a,T){T&&(a.super_=T,a.prototype=Object.create(T.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}))}:z.exports=function(a,T){if(T){a.super_=T;var _=function(){};_.prototype=T.prototype,a.prototype=new _,a.prototype.constructor=a}}},{}],197:[function(s,z,d){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/z.exports=function(T){return T!=null&&(h(T)||a(T)||!!T._isBuffer)};function h(T){return!!T.constructor&&typeof T.constructor.isBuffer=="function"&&T.constructor.isBuffer(T)}function a(T){return typeof T.readFloatLE=="function"&&typeof T.slice=="function"&&h(T.slice(0,0))}},{}],198:[function(s,z,d){var h={}.toString;z.exports=Array.isArray||function(a){return h.call(a)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(s,z){typeof exports=="object"&&typeof module!="undefined"?module.exports=z(s):typeof define=="function"&&define.amd?define(z):z(s)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(s){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(s){for(var z={},d=0,h=s.length;d<h;d++)z[s.charAt(d)]=d;return z}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(s){if(s.length<2){var z=s.charCodeAt(0);return z<128?s:z<2048?fromCharCode(192|z>>>6)+fromCharCode(128|z&63):fromCharCode(224|z>>>12&15)+fromCharCode(128|z>>>6&63)+fromCharCode(128|z&63)}else{var z=65536+(s.charCodeAt(0)-55296)*1024+(s.charCodeAt(1)-56320);return fromCharCode(240|z>>>18&7)+fromCharCode(128|z>>>12&63)+fromCharCode(128|z>>>6&63)+fromCharCode(128|z&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(s){return s.replace(re_utob,cb_utob)},cb_encode=function(s){var z=[0,2,1][s.length%3],d=s.charCodeAt(0)<<16|(s.length>1?s.charCodeAt(1):0)<<8|(s.length>2?s.charCodeAt(2):0),h=[b64chars.charAt(d>>>18),b64chars.charAt(d>>>12&63),z>=2?"=":b64chars.charAt(d>>>6&63),z>=1?"=":b64chars.charAt(d&63)];return h.join("")},btoa=global.btoa?function(s){return global.btoa(s)}:function(s){return s.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(s){var z=Object.prototype.toString.call(s)==="[object Uint8Array]";return z?s.toString("base64"):btoa(utob(String(s)))},encode=function(s,z){return z?_encode(String(s)).replace(/[+\/]/g,function(d){return d=="+"?"-":"_"}).replace(/=/g,""):_encode(s)},encodeURI=function(s){return encode(s,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(s){switch(s.length){case 4:var z=(7&s.charCodeAt(0))<<18|(63&s.charCodeAt(1))<<12|(63&s.charCodeAt(2))<<6|63&s.charCodeAt(3),d=z-65536;return fromCharCode((d>>>10)+55296)+fromCharCode((d&1023)+56320);case 3:return fromCharCode((15&s.charCodeAt(0))<<12|(63&s.charCodeAt(1))<<6|63&s.charCodeAt(2));default:return fromCharCode((31&s.charCodeAt(0))<<6|63&s.charCodeAt(1))}},btou=function(s){return s.replace(re_btou,cb_btou)},cb_decode=function(s){var z=s.length,d=z%4,h=(z>0?b64tab[s.charAt(0)]<<18:0)|(z>1?b64tab[s.charAt(1)]<<12:0)|(z>2?b64tab[s.charAt(2)]<<6:0)|(z>3?b64tab[s.charAt(3)]:0),a=[fromCharCode(h>>>16),fromCharCode(h>>>8&255),fromCharCode(h&255)];return a.length-=[0,0,2,1][d],a.join("")},_atob=global.atob?function(s){return global.atob(s)}:function(s){return s.replace(/\S{1,4}/g,cb_decode)},atob=function(s){return _atob(String(s).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(s){return(s.constructor===buffer.constructor?s:buffer.from(s,"base64")).toString()}:function(s){return(s.constructor===buffer.constructor?s:new buffer(s,"base64")).toString()}:function(s){return btou(_atob(s))},decode=function(s){return _decode(String(s).replace(/[-_]/g,function(z){return z=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var s=global.Base64;return global.Base64=_Base64,s};if(global.Base64={VERSION:version,atob,btoa,fromBase64:decode,toBase64:encode,utob,encode,encodeURI,btou,decode,noConflict,__buffer__:buffer},typeof Object.defineProperty=="function"){var noEnum=function(s){return{value:s,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(s){return encode(this,s)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports?module.exports.Base64=global.Base64:typeof define=="function"&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}})}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],200:[function(s,z,d){/*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/"use strict";z.exports=a;var h=Object.prototype.hasOwnProperty;function a(T,_,x){if(!T)throw new TypeError("argument dest is required");if(!_)throw new TypeError("argument src is required");return x===void 0&&(x=!0),Object.getOwnPropertyNames(_).forEach(function(f){if(!x&&h.call(T,f))return;var o=Object.getOwnPropertyDescriptor(_,f);Object.defineProperty(T,f,o)}),T}},{}],201:[function(s,z,d){"use strict";function h(){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)}h.prototype.define=function(a,T){for(var _ in a){var x=a[_].map(function(o){return o.toLowerCase()});_=_.toLowerCase();for(var p=0;p<x.length;p++){var f=x[p];if(f[0]=="*")continue;if(!T&&f in this._types)throw new Error('Attempt to change mapping for "'+f+'" extension from "'+this._types[f]+'" to "'+_+'". Pass `force=true` to allow this, otherwise remove "'+f+'" from the list of extensions for "'+_+'".');this._types[f]=_}if(T||!this._extensions[_]){var f=x[0];this._extensions[_]=f[0]!="*"?f:f.substr(1)}}},h.prototype.getType=function(a){a=String(a);var T=a.replace(/^.*[/\\]/,"").toLowerCase(),_=T.replace(/^.*\./,"").toLowerCase(),x=T.length<a.length,p=_.length<T.length-1;return(p||!x)&&this._types[_]||null},h.prototype.getExtension=function(a){return a=/^\s*([^;\s]*)/.test(a)&&RegExp.$1,a&&this._extensions[a.toLowerCase()]||null},z.exports=h},{}],202:[function(s,z,d){"use strict";var h=s("./Mime");z.exports=new h(s("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(s,z,d){z.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],204:[function(s,z,d){var h=1e3,a=h*60,T=a*60,_=T*24,x=_*7,p=_*365.25;z.exports=function(l,v){v=v||{};var m=typeof l;if(m==="string"&&l.length>0)return f(l);if(m==="number"&&isFinite(l))return v.long?i(l):o(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function f(l){if(l=String(l),l.length>100)return;var v=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(l);if(!v)return;var m=parseFloat(v[1]),g=(v[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return m*p;case"weeks":case"week":case"w":return m*x;case"days":case"day":case"d":return m*_;case"hours":case"hour":case"hrs":case"hr":case"h":return m*T;case"minutes":case"minute":case"mins":case"min":case"m":return m*a;case"seconds":case"second":case"secs":case"sec":case"s":return m*h;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}function o(l){var v=Math.abs(l);return v>=_?Math.round(l/_)+"d":v>=T?Math.round(l/T)+"h":v>=a?Math.round(l/a)+"m":v>=h?Math.round(l/h)+"s":l+"ms"}function i(l){var v=Math.abs(l);return v>=_?u(l,v,_,"day"):v>=T?u(l,v,T,"hour"):v>=a?u(l,v,a,"minute"):v>=h?u(l,v,h,"second"):l+" ms"}function u(l,v,m,g){var E=v>=m*1.5;return Math.round(l/m)+" "+g+(E?"s":"")}},{}],205:[function(s,z,d){(function(h){function a(p,f){for(var o=0,i=p.length-1;i>=0;i--){var u=p[i];u==="."?p.splice(i,1):u===".."?(p.splice(i,1),o++):o&&(p.splice(i,1),o--)}if(f)for(;o--;o)p.unshift("..");return p}d.resolve=function(){for(var p="",f=!1,o=arguments.length-1;o>=-1&&!f;o--){var i=o>=0?arguments[o]:h.cwd();if(typeof i!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!i)continue;p=i+"/"+p,f=i.charAt(0)==="/"}return p=a(_(p.split("/"),function(u){return!!u}),!f).join("/"),(f?"/":"")+p||"."},d.normalize=function(p){var f=d.isAbsolute(p),o=x(p,-1)==="/";return p=a(_(p.split("/"),function(i){return!!i}),!f).join("/"),!p&&!f&&(p="."),p&&o&&(p+="/"),(f?"/":"")+p},d.isAbsolute=function(p){return p.charAt(0)==="/"},d.join=function(){var p=Array.prototype.slice.call(arguments,0);return d.normalize(_(p,function(f,o){if(typeof f!="string")throw new TypeError("Arguments to path.join must be strings");return f}).join("/"))},d.relative=function(p,f){p=d.resolve(p).substr(1),f=d.resolve(f).substr(1);function o(E){for(var w=0;w<E.length&&!(E[w]!=="");w++);for(var O=E.length-1;O>=0&&!(E[O]!=="");O--);return w>O?[]:E.slice(w,O-w+1)}for(var i=o(p.split("/")),u=o(f.split("/")),l=Math.min(i.length,u.length),v=l,m=0;m<l;m++)if(i[m]!==u[m]){v=m;break}for(var g=[],m=v;m<i.length;m++)g.push("..");return g=g.concat(u.slice(v)),g.join("/")},d.sep="/",d.delimiter=":",d.dirname=function(p){if(typeof p!="string"&&(p=p+""),p.length===0)return".";for(var f=p.charCodeAt(0),o=f===47,i=-1,u=!0,l=p.length-1;l>=1;--l)if(f=p.charCodeAt(l),f===47){if(!u){i=l;break}}else u=!1;return i===-1?o?"/":".":o&&i===1?"/":p.slice(0,i)};function T(p){typeof p!="string"&&(p=p+"");var f=0,o=-1,i=!0,u;for(u=p.length-1;u>=0;--u)if(p.charCodeAt(u)===47){if(!i){f=u+1;break}}else o===-1&&(i=!1,o=u+1);return o===-1?"":p.slice(f,o)}d.basename=function(p,f){var o=T(p);return f&&o.substr(-1*f.length)===f&&(o=o.substr(0,o.length-f.length)),o},d.extname=function(p){typeof p!="string"&&(p=p+"");for(var f=-1,o=0,i=-1,u=!0,l=0,v=p.length-1;v>=0;--v){var m=p.charCodeAt(v);if(m===47){if(!u){o=v+1;break}continue}i===-1&&(u=!1,i=v+1),m===46?f===-1?f=v:l!==1&&(l=1):f!==-1&&(l=-1)}return f===-1||i===-1||l===0||l===1&&f===i-1&&f===o+1?"":p.slice(f,i)};function _(p,f){if(p.filter)return p.filter(f);for(var o=[],i=0;i<p.length;i++)f(p[i],i,p)&&o.push(p[i]);return o}var x="ab".substr(-1)==="b"?function(p,f,o){return p.substr(f,o)}:function(p,f,o){return f<0&&(f=p.length+f),p.substr(f,o)}}).call(this,s("_process"))},{_process:208}],206:[function(s,z,d){(function(h){/*!
* 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},T=a[typeof window]&&window||this,_=T,x=a[typeof d]&&d,p=a[typeof z]&&z&&!z.nodeType&&z,f=x&&p&&typeof h=="object"&&h;f&&(f.global===f||f.window===f||f.self===f)&&(T=f);var o=Math.pow(2,53)-1,i=/\bOpera/,u=this,l=Object.prototype,v=l.hasOwnProperty,m=l.toString;function g(D){return D=String(D),D.charAt(0).toUpperCase()+D.slice(1)}function E(D,L,U){var J={"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 L&&U&&/^Win/i.test(D)&&!/^Windows Phone /i.test(D)&&(J=J[/[\d.]+$/.exec(D)])&&(D="Windows "+J),D=String(D),L&&U&&(D=D.replace(RegExp(L,"i"),U)),D=O(D.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]),D}function w(D,L){var U=-1,J=D?D.length:0;if(typeof J=="number"&&J>-1&&J<=o)for(;++U<J;)L(D[U],U,D);else C(D,L)}function O(D){return D=b(D),/^(?:webOS|i(?:OS|P))/.test(D)?D:g(D)}function C(D,L){for(var U in D)v.call(D,U)&&L(D[U],U,D)}function M(D){return D==null?g(D):m.call(D).slice(8,-1)}function N(D,L){var U=D!=null?typeof D[L]:"number";return!/^(?:boolean|number|string|undefined)$/.test(U)&&(U=="object"?!!D[L]:!0)}function P(D){return String(D).replace(/([ -])(?!$)/g,"$1?")}function k(D,L){var U=null;return w(D,function(J,ae){U=L(U,J,ae,D)}),U}function b(D){return String(D).replace(/^ +| +$/g,"")}function V(D){var L=T,U=D&&typeof D=="object"&&M(D)!="String";U&&(L=D,D=null);var J=L.navigator||{},ae=J.userAgent||"";D||(D=ae);var se=U||u==_,G=U?!!J.likeChrome:/\bChrome\b/.test(D)&&!/internal|\n/i.test(m.toString()),he="Object",q=U?he:"ScriptBridgingProxyObject",W=U?he:"Environment",H=U&&L.java?"JavaPackage":M(L.java),R=U?he:"RuntimeObject",y=/\bJava/.test(H)&&L.java,A=y&&M(L.environment)==W,ee=y?"a":"\u03B1",oe=y?"b":"\u03B2",de=L.document||{},be=L.operamini||L.opera,xe=i.test(xe=U&&be?be["[[Class]]"]:M(be))?xe:be=null,te,le=D,ue=[],Z=null,ne=D==ae,Y=ne&&be&&typeof be.version=="function"&&be.version(),re,F=S([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),K=me(["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"]),pe=we([{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"]),$=B({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=fe(["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 S(Le){return k(Le,function(We,Fe){return We||RegExp("\\b"+(Fe.pattern||P(Fe))+"\\b","i").exec(D)&&(Fe.label||Fe)})}function B(Le){return k(Le,function(We,Fe,He){return We||(Fe[pe]||Fe[/^[a-z]+(?: +[a-z]+\b)*/i.exec(pe)]||RegExp("\\b"+P(He)+"(?:\\b|\\w*\\d)","i").exec(D))&&He})}function me(Le){return k(Le,function(We,Fe){return We||RegExp("\\b"+(Fe.pattern||P(Fe))+"\\b","i").exec(D)&&(Fe.label||Fe)})}function fe(Le){return k(Le,function(We,Fe){var He=Fe.pattern||P(Fe);return!We&&(We=RegExp("\\b"+He+"(?:/[\\d.]+|[ \\w.]*)","i").exec(D))&&(We=E(We,He,Fe.label||Fe)),We})}function we(Le){return k(Le,function(We,Fe){var He=Fe.pattern||P(Fe);return!We&&(We=RegExp("\\b"+He+" *\\d+[.\\w_]*","i").exec(D)||RegExp("\\b"+He+" *\\w+-[\\w]*","i").exec(D)||RegExp("\\b"+He+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(D))&&((We=String(Fe.label&&!RegExp(He,"i").test(Fe.label)?Fe.label:We).split("/"))[1]&&!/[\d.]+/.test(We[0])&&(We[0]+=" "+We[1]),Fe=Fe.label||Fe,We=O(We[0].replace(RegExp(He,"i"),Fe).replace(RegExp("; *(?:"+Fe+"[_-])?","i")," ").replace(RegExp("("+Fe+")[-_.]?(\\w)","i"),"$1 $2"))),We})}function ke(Le){return k(Le,function(We,Fe){return We||(RegExp(Fe+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(D)||0)[1]||null})}function Me(){return this.description||""}if(F&&(F=[F]),$&&!pe&&(pe=we([$])),(te=/\bGoogle TV\b/.exec(pe))&&(pe=te[0]),/\bSimulator\b/i.test(D)&&(pe=(pe?pe+" ":"")+"Simulator"),K=="Opera Mini"&&/\bOPiOS\b/.test(D)&&ue.push("running in Turbo/Uncompressed mode"),K=="IE"&&/\blike iPhone OS\b/.test(D)?(te=V(D.replace(/like iPhone OS/,"")),$=te.manufacturer,pe=te.product):/^iP/.test(pe)?(K||(K="Safari"),j="iOS"+((te=/ OS ([\d_]+)/i.exec(D))?" "+te[1].replace(/_/g,"."):"")):K=="Konqueror"&&!/buntu/i.test(j)?j="Kubuntu":$&&$!="Google"&&(/Chrome/.test(K)&&!/\bMobile Safari\b/i.test(D)||/\bVita\b/.test(pe))||/\bAndroid\b/.test(j)&&/^Chrome/.test(K)&&/\bVersion\//i.test(D)?(K="Android Browser",j=/\bAndroid\b/.test(j)?j:"Android"):K=="Silk"?(/\bMobi/i.test(D)||(j="Android",ue.unshift("desktop mode")),/Accelerated *= *true/i.test(D)&&ue.unshift("accelerated")):K=="PaleMoon"&&(te=/\bFirefox\/([\d.]+)\b/.exec(D))?ue.push("identifying as Firefox "+te[1]):K=="Firefox"&&(te=/\b(Mobile|Tablet|TV)\b/i.exec(D))?(j||(j="Firefox OS"),pe||(pe=te[1])):!K||(te=!/\bMinefield\b/i.test(D)&&/\b(?:Firefox|Safari)\b/.exec(K))?(K&&!pe&&/[\/,]|^[^(]+?\)/.test(D.slice(D.indexOf(te+"/")+8))&&(K=null),(te=pe||$||j)&&(pe||$||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(j))&&(K=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(j)?j:te)+" Browser")):K=="Electron"&&(te=(/\bChrome\/([\d.]+)\b/.exec(D)||0)[1])&&ue.push("Chromium "+te),Y||(Y=ke(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",P(K),"(?:Firefox|Minefield|NetFront)"])),(te=F=="iCab"&&parseFloat(Y)>3&&"WebKit"||/\bOpera\b/.test(K)&&(/\bOPR\b/.test(D)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(D)&&!/^(?:Trident|EdgeHTML)$/.test(F)&&"WebKit"||!F&&/\bMSIE\b/i.test(D)&&(j=="Mac OS"?"Tasman":"Trident")||F=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(K)&&"NetFront")&&(F=[te]),K=="IE"&&(te=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(D)||0)[1])?(K+=" Mobile",j="Windows Phone "+(/\+$/.test(te)?te:te+".x"),ue.unshift("desktop mode")):/\bWPDesktop\b/i.test(D)?(K="IE Mobile",j="Windows Phone 8.x",ue.unshift("desktop mode"),Y||(Y=(/\brv:([\d.]+)/.exec(D)||0)[1])):K!="IE"&&F=="Trident"&&(te=/\brv:([\d.]+)/.exec(D))&&(K&&ue.push("identifying as "+K+(Y?" "+Y:"")),K="IE",Y=te[1]),ne){if(N(L,"global"))if(y&&(te=y.lang.System,le=te.getProperty("os.arch"),j=j||te.getProperty("os.name")+" "+te.getProperty("os.version")),A){try{Y=L.require("ringo/engine").version.join("."),K="RingoJS"}catch(Le){(te=L.system)&&te.global.system==L.system&&(K="Narwhal",j||(j=te[0].os||null))}K||(K="Rhino")}else typeof L.process=="object"&&!L.process.browser&&(te=L.process)&&(typeof te.versions=="object"&&(typeof te.versions.electron=="string"?(ue.push("Node "+te.versions.node),K="Electron",Y=te.versions.electron):typeof te.versions.nw=="string"&&(ue.push("Chromium "+Y,"Node "+te.versions.node),K="NW.js",Y=te.versions.nw)),K||(K="Node.js",le=te.arch,j=te.platform,Y=/[\d.]+/.exec(te.version),Y=Y?Y[0]:null));else M(te=L.runtime)==q?(K="Adobe AIR",j=te.flash.system.Capabilities.os):M(te=L.phantom)==R?(K="PhantomJS",Y=(te=te.version||null)&&te.major+"."+te.minor+"."+te.patch):typeof de.documentMode=="number"&&(te=/\bTrident\/(\d+)/i.exec(D))?(Y=[Y,de.documentMode],(te=+te[1]+4)!=Y[1]&&(ue.push("IE "+Y[1]+" mode"),F&&(F[1]=""),Y[1]=te),Y=K=="IE"?String(Y[1].toFixed(1)):Y[0]):typeof de.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(K)&&(ue.push("masking as "+K+" "+Y),K="IE",Y="11.0",F=["Trident"],j="Windows");j=j&&O(j)}if(Y&&(te=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Y)||/(?:alpha|beta)(?: ?\d)?/i.exec(D+";"+(ne&&J.appMinorVersion))||/\bMinefield\b/i.test(D)&&"a")&&(Z=/b/i.test(te)?"beta":"alpha",Y=Y.replace(RegExp(te+"\\+?$"),"")+(Z=="beta"?oe:ee)+(/\d+\+?/.exec(te)||"")),K=="Fennec"||K=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(j))K="Firefox Mobile";else if(K=="Maxthon"&&Y)Y=Y.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(pe))pe=="Xbox 360"&&(j=null),pe=="Xbox 360"&&/\bIEMobile\b/.test(D)&&ue.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(K)||K&&!pe&&!/Browser|Mobi/.test(K))&&(j=="Windows CE"||/Mobi/i.test(D)))K+=" Mobile";else if(K=="IE"&&ne)try{L.external===null&&ue.unshift("platform preview")}catch(Le){ue.unshift("embedded")}else(/\bBlackBerry\b/.test(pe)||/\bBB10\b/.test(D))&&(te=(RegExp(pe.replace(/ +/g," *")+"/([.\\d]+)","i").exec(D)||0)[1]||Y)?(te=[te,/BB10/.test(D)],j=(te[1]?(pe=null,$="BlackBerry"):"Device Software")+" "+te[0],Y=null):this!=C&&pe!="Wii"&&(ne&&be||/Opera/.test(K)&&/\b(?:MSIE|Firefox)\b/i.test(D)||K=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(j)||K=="IE"&&(j&&!/^Win/.test(j)&&Y>5.5||/\bWindows XP\b/.test(j)&&Y>8||Y==8&&!/\bTrident\b/.test(D)))&&!i.test(te=V.call(C,D.replace(i,"")+";"))&&te.name&&(te="ing as "+te.name+((te=te.version)?" "+te:""),i.test(K)?(/\bIE\b/.test(te)&&j=="Mac OS"&&(j=null),te="identify"+te):(te="mask"+te,xe?K=O(xe.replace(/([a-z])([A-Z])/g,"$1 $2")):K="Opera",/\bIE\b/.test(te)&&(j=null),ne||(Y=null)),F=["Presto"],ue.push(te));(te=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(D)||0)[1])&&(te=[parseFloat(te.replace(/\.(\d)$/,".0$1")),te],K=="Safari"&&te[1].slice(-1)=="+"?(K="WebKit Nightly",Z="alpha",Y=te[1].slice(0,-1)):(Y==te[1]||Y==(te[2]=(/\bSafari\/([\d.]+\+?)/i.exec(D)||0)[1]))&&(Y=null),te[1]=(/\bChrome\/([\d.]+)/i.exec(D)||0)[1],te[0]==537.36&&te[2]==537.36&&parseFloat(te[1])>=28&&F=="WebKit"&&(F=["Blink"]),!ne||!G&&!te[1]?(F&&(F[1]="like Safari"),te=(te=te[0],te<400?1:te<500?2:te<526?3:te<533?4:te<534?"4+":te<535?5:te<537?6:te<538?7:te<601?8:"8")):(F&&(F[1]="like Chrome"),te=te[1]||(te=te[0],te<530?1:te<532?2:te<532.05?3:te<533?4:te<534.03?5:te<534.07?6:te<534.1?7:te<534.13?8:te<534.16?9:te<534.24?10:te<534.3?11:te<535.01?12:te<535.02?"13+":te<535.07?15:te<535.11?16:te<535.19?17:te<536.05?18:te<536.1?19:te<537.01?20:te<537.11?"21+":te<537.13?23:te<537.18?24:te<537.24?25:te<537.36?26:F!="Blink"?"27":"28")),F&&(F[1]+=" "+(te+=typeof te=="number"?".x":/[.+]/.test(te)?"":"+")),K=="Safari"&&(!Y||parseInt(Y)>45)&&(Y=te)),K=="Opera"&&(te=/\bzbov|zvav$/.exec(j))?(K+=" ",ue.unshift("desktop mode"),te=="zvav"?(K+="Mini",Y=null):K+="Mobile",j=j.replace(RegExp(" *"+te+"$"),"")):K=="Safari"&&/\bChrome\b/.exec(F&&F[1])&&(ue.unshift("desktop mode"),K="Chrome Mobile",Y=null,/\bOS X\b/.test(j)?($="Apple",j="iOS 4.3+"):j=null),Y&&Y.indexOf(te=/[\d.]+$/.exec(j))==0&&D.indexOf("/"+te+"-")>-1&&(j=b(j.replace(te,""))),F&&!/\b(?:Avant|Nook)\b/.test(K)&&(/Browser|Lunascape|Maxthon/.test(K)||K!="Safari"&&/^iOS/.test(j)&&/\bSafari\b/.test(F[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(K)&&F[1])&&((te=F[F.length-1])&&ue.push(te)),ue.length&&(ue=["("+ue.join("; ")+")"]),$&&pe&&pe.indexOf($)<0&&ue.push("on "+$),pe&&ue.push((/^on /.test(ue[ue.length-1])?"":"on ")+pe),j&&(te=/ ([\d.+]+)$/.exec(j),re=te&&j.charAt(j.length-te[0].length-1)=="/",j={architecture:32,family:te&&!re?j.replace(te[0],""):j,version:te?te[1]:null,toString:function(){var Le=this.version;return this.family+(Le&&!re?" "+Le:"")+(this.architecture==64?" 64-bit":"")}}),(te=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(le))&&!/\bi686\b/i.test(le)?(j&&(j.architecture=64,j.family=j.family.replace(RegExp(" *"+te),"")),K&&(/\bWOW64\b/i.test(D)||ne&&/\w(?:86|32)$/.test(J.cpuClass||J.platform)&&!/\bWin64; x64\b/i.test(D))&&ue.unshift("32-bit")):j&&/^OS X/.test(j.family)&&K=="Chrome"&&parseFloat(Y)>=39&&(j.architecture=64),D||(D=null);var Ne={};return Ne.description=D,Ne.layout=F&&F[0],Ne.manufacturer=$,Ne.name=K,Ne.prerelease=Z,Ne.product=pe,Ne.ua=D,Ne.version=K&&Y,Ne.os=j||{architecture:null,family:null,version:null,toString:function(){return"null"}},Ne.parse=V,Ne.toString=Me,Ne.version&&ue.unshift(Y),Ne.name&&ue.unshift(K),j&&K&&!(j==String(j).split(" ")[0]&&(j==K.split(" ")[0]||pe))&&ue.push(pe?"("+j+")":"on "+j),ue.length&&(Ne.description=ue.join(" ")),Ne}var X=V();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(T.platform=X,define(function(){return X})):x&&p?C(X,function(D,L){x[L]=D}):T.platform=X}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(s,z,d){(function(h){"use strict";typeof h=="undefined"||!h.version||h.version.indexOf("v0.")===0||h.version.indexOf("v1.")===0&&h.version.indexOf("v1.8.")!==0?z.exports={nextTick:a}:z.exports=h;function a(T,_,x,p){if(typeof T!="function")throw new TypeError('"callback" argument must be a function');var f=arguments.length,o,i;switch(f){case 0:case 1:return h.nextTick(T);case 2:return h.nextTick(function(){T.call(null,_)});case 3:return h.nextTick(function(){T.call(null,_,x)});case 4:return h.nextTick(function(){T.call(null,_,x,p)});default:for(o=new Array(f-1),i=0;i<o.length;)o[i++]=arguments[i];return h.nextTick(function(){T.apply(null,o)})}}}).call(this,s("_process"))},{_process:208}],208:[function(s,z,d){var h=z.exports={},a,T;function _(){throw new Error("setTimeout has not been defined")}function x(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?a=setTimeout:a=_}catch(w){a=_}try{typeof clearTimeout=="function"?T=clearTimeout:T=x}catch(w){T=x}})();function p(w){if(a===setTimeout)return setTimeout(w,0);if((a===_||!a)&&setTimeout)return a=setTimeout,setTimeout(w,0);try{return a(w,0)}catch(O){try{return a.call(null,w,0)}catch(C){return a.call(this,w,0)}}}function f(w){if(T===clearTimeout)return clearTimeout(w);if((T===x||!T)&&clearTimeout)return T=clearTimeout,clearTimeout(w);try{return T(w)}catch(O){try{return T.call(null,w)}catch(C){return T.call(this,w)}}}var o=[],i=!1,u,l=-1;function v(){if(!i||!u)return;i=!1,u.length?o=u.concat(o):l=-1,o.length&&m()}function m(){if(i)return;var w=p(v);i=!0;for(var O=o.length;O;){for(u=o,o=[];++l<O;)u&&u[l].run();l=-1,O=o.length}u=null,i=!1,f(w)}h.nextTick=function(w){var O=new Array(arguments.length-1);if(arguments.length>1)for(var C=1;C<arguments.length;C++)O[C-1]=arguments[C];o.push(new g(w,O)),o.length===1&&!i&&p(m)};function g(w,O){this.fun=w,this.array=O}g.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={};function E(){}h.on=E,h.addListener=E,h.once=E,h.off=E,h.removeListener=E,h.removeAllListeners=E,h.emit=E,h.prependListener=E,h.prependOnceListener=E,h.listeners=function(w){return[]},h.binding=function(w){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(w){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},{}],209:[function(s,z,d){(function(h){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(a){var T=typeof d=="object"&&d&&!d.nodeType&&d,_=typeof z=="object"&&z&&!z.nodeType&&z,x=typeof h=="object"&&h;(x.global===x||x.window===x||x.self===x)&&(a=x);var p,f=2147483647,o=36,i=1,u=26,l=38,v=700,m=72,g=128,E="-",w=/^xn--/,O=/[^\x20-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,M={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},N=o-i,P=Math.floor,k=String.fromCharCode,b;function V(H){throw new RangeError(M[H])}function X(H,R){for(var y=H.length,A=[];y--;)A[y]=R(H[y]);return A}function D(H,R){var y=H.split("@"),A="";y.length>1&&(A=y[0]+"@",H=y[1]),H=H.replace(C,".");var ee=H.split("."),oe=X(ee,R).join(".");return A+oe}function L(H){for(var R=[],y=0,A=H.length,ee,oe;y<A;)ee=H.charCodeAt(y++),ee>=55296&&ee<=56319&&y<A?(oe=H.charCodeAt(y++),(oe&64512)==56320?R.push(((ee&1023)<<10)+(oe&1023)+65536):(R.push(ee),y--)):R.push(ee);return R}function U(H){return X(H,function(R){var y="";return R>65535&&(R-=65536,y+=k(R>>>10&1023|55296),R=56320|R&1023),y+=k(R),y}).join("")}function J(H){return H-48<10?H-22:H-65<26?H-65:H-97<26?H-97:o}function ae(H,R){return H+22+75*(H<26)-((R!=0)<<5)}function se(H,R,y){var A=0;for(H=y?P(H/v):H>>1,H+=P(H/R);H>N*u>>1;A+=o)H=P(H/N);return P(A+(N+1)*H/(H+l))}function G(H){var R=[],y=H.length,A,ee=0,oe=g,de=m,be,xe,te,le,ue,Z,ne,Y,re;for(be=H.lastIndexOf(E),be<0&&(be=0),xe=0;xe<be;++xe)H.charCodeAt(xe)>=128&&V("not-basic"),R.push(H.charCodeAt(xe));for(te=be>0?be+1:0;te<y;){for(le=ee,ue=1,Z=o;!(te>=y&&V("invalid-input"),ne=J(H.charCodeAt(te++)),(ne>=o||ne>P((f-ee)/ue))&&V("overflow"),ee+=ne*ue,Y=Z<=de?i:Z>=de+u?u:Z-de,ne<Y);Z+=o)re=o-Y,ue>P(f/re)&&V("overflow"),ue*=re;A=R.length+1,de=se(ee-le,A,le==0),P(ee/A)>f-oe&&V("overflow"),oe+=P(ee/A),ee%=A,R.splice(ee++,0,oe)}return U(R)}function he(H){var R,y,A,ee,oe,de,be,xe,te,le,ue,Z=[],ne,Y,re,F;for(H=L(H),ne=H.length,R=g,y=0,oe=m,de=0;de<ne;++de)ue=H[de],ue<128&&Z.push(k(ue));for(A=ee=Z.length,ee&&Z.push(E);A<ne;){for(be=f,de=0;de<ne;++de)ue=H[de],ue>=R&&ue<be&&(be=ue);for(Y=A+1,be-R>P((f-y)/Y)&&V("overflow"),y+=(be-R)*Y,R=be,de=0;de<ne;++de)if(ue=H[de],ue<R&&++y>f&&V("overflow"),ue==R){for(xe=y,te=o;!(le=te<=oe?i:te>=oe+u?u:te-oe,xe<le);te+=o)F=xe-le,re=o-le,Z.push(k(ae(le+F%re,0))),xe=P(F/re);Z.push(k(ae(xe,0))),oe=se(y,Y,A==ee),y=0,++A}++y,++R}return Z.join("")}function q(H){return D(H,function(R){return w.test(R)?G(R.slice(4).toLowerCase()):R})}function W(H){return D(H,function(R){return O.test(R)?"xn--"+he(R):R})}if(p={version:"1.4.1",ucs2:{decode:L,encode:U},decode:G,encode:he,toASCII:W,toUnicode:q},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return p});else if(T&&_)if(z.exports==T)_.exports=p;else for(b in p)p.hasOwnProperty(b)&&(T[b]=p[b]);else a.punycode=p})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(s,z,d){"use strict";function h(T,_){return Object.prototype.hasOwnProperty.call(T,_)}z.exports=function(T,_,x,p){_=_||"&",x=x||"=";var f={};if(typeof T!="string"||T.length===0)return f;var o=/\+/g;T=T.split(_);var i=1e3;p&&typeof p.maxKeys=="number"&&(i=p.maxKeys);var u=T.length;i>0&&u>i&&(u=i);for(var l=0;l<u;++l){var v=T[l].replace(o,"%20"),m=v.indexOf(x),g,E,w,O;m>=0?(g=v.substr(0,m),E=v.substr(m+1)):(g=v,E=""),w=decodeURIComponent(g),O=decodeURIComponent(E),h(f,w)?a(f[w])?f[w].push(O):f[w]=[f[w],O]:f[w]=O}return f};var a=Array.isArray||function(T){return Object.prototype.toString.call(T)==="[object Array]"}},{}],211:[function(s,z,d){"use strict";var h=function(x){switch(typeof x){case"string":return x;case"boolean":return x?"true":"false";case"number":return isFinite(x)?x:"";default:return""}};z.exports=function(x,p,f,o){return p=p||"&",f=f||"=",x===null&&(x=void 0),typeof x=="object"?T(_(x),function(i){var u=encodeURIComponent(h(i))+f;return a(x[i])?T(x[i],function(l){return u+encodeURIComponent(h(l))}).join(p):u+encodeURIComponent(h(x[i]))}).join(p):o?encodeURIComponent(h(o))+f+encodeURIComponent(h(x)):""};var a=Array.isArray||function(x){return Object.prototype.toString.call(x)==="[object Array]"};function T(x,p){if(x.map)return x.map(p);for(var f=[],o=0;o<x.length;o++)f.push(p(x[o],o));return f}var _=Object.keys||function(x){var p=[];for(var f in x)Object.prototype.hasOwnProperty.call(x,f)&&p.push(f);return p}},{}],212:[function(s,z,d){"use strict";d.decode=d.parse=s("./decode"),d.encode=d.stringify=s("./encode")},{"./decode":210,"./encode":211}],213:[function(s,z,d){z.exports=s("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/create"),a=x(h),T=s("babel-runtime/core-js/object/keys"),_=x(T);function x(O){return O&&O.__esModule?O:{default:O}}var p=s("process-nextick-args"),f=_.default||function(O){var C=[];for(var M in O)C.push(M);return C};z.exports=g;var o=(0,a.default)(s("core-util-is"));o.inherits=s("inherits");var i=s("./_stream_readable"),u=s("./_stream_writable");o.inherits(g,i);for(var l=f(u.prototype),v=0;v<l.length;v++){var m=l[v];g.prototype[m]||(g.prototype[m]=u.prototype[m])}function g(O){if(!(this instanceof g))return new g(O);i.call(this,O),u.call(this,O),O&&O.readable===!1&&(this.readable=!1),O&&O.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,O&&O.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",E)}Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function E(){if(this.allowHalfOpen||this._writableState.ended)return;p.nextTick(w,this)}function w(O){O.end()}Object.defineProperty(g.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(C){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=C,this._writableState.destroyed=C}}),g.prototype._destroy=function(O,C){this.push(null),this.end(),p.nextTick(C,O)}},{"./_stream_readable":216,"./_stream_writable":218,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60,"core-util-is":189,inherits:196,"process-nextick-args":207}],215:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/create"),a=T(h);function T(f){return f&&f.__esModule?f:{default:f}}z.exports=p;var _=s("./_stream_transform"),x=(0,a.default)(s("core-util-is"));x.inherits=s("inherits"),x.inherits(p,_);function p(f){if(!(this instanceof p))return new p(f);_.call(this,f)}p.prototype._transform=function(f,o,i){i(null,f)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(s,z,d){(function(h,a){"use strict";var T=s("babel-runtime/core-js/object/get-prototype-of"),_=f(T),x=s("babel-runtime/core-js/object/create"),p=f(x);function f(F){return F&&F.__esModule?F:{default:F}}var o=s("process-nextick-args");z.exports=L;var i=s("isarray"),u;L.ReadableState=D;var l=s("events").EventEmitter,v=function(K,pe){return K.listeners(pe).length},m=s("./internal/streams/stream"),g=s("safe-buffer").Buffer,E=a.Uint8Array||function(){};function w(F){return g.from(F)}function O(F){return g.isBuffer(F)||F instanceof E}var C=(0,p.default)(s("core-util-is"));C.inherits=s("inherits");var M=s("util"),N=void 0;M&&M.debuglog?N=M.debuglog("stream"):N=function(){};var P=s("./internal/streams/BufferList"),k=s("./internal/streams/destroy"),b;C.inherits(L,m);var V=["error","close","destroy","pause","resume"];function X(F,K,pe){if(typeof F.prependListener=="function")return F.prependListener(K,pe);!F._events||!F._events[K]?F.on(K,pe):i(F._events[K])?F._events[K].unshift(pe):F._events[K]=[pe,F._events[K]]}function D(F,K){u=u||s("./_stream_duplex"),F=F||{};var pe=K instanceof u;this.objectMode=!!F.objectMode,pe&&(this.objectMode=this.objectMode||!!F.readableObjectMode);var $=F.highWaterMark,j=F.readableHighWaterMark,S=this.objectMode?16:16*1024;$||$===0?this.highWaterMark=$:pe&&(j||j===0)?this.highWaterMark=j:this.highWaterMark=S,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new P,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=F.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,F.encoding&&(b||(b=s("string_decoder/").StringDecoder),this.decoder=new b(F.encoding),this.encoding=F.encoding)}function L(F){if(u=u||s("./_stream_duplex"),!(this instanceof L))return new L(F);this._readableState=new D(F,this),this.readable=!0,F&&(typeof F.read=="function"&&(this._read=F.read),typeof F.destroy=="function"&&(this._destroy=F.destroy)),m.call(this)}Object.defineProperty(L.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(K){if(!this._readableState)return;this._readableState.destroyed=K}}),L.prototype.destroy=k.destroy,L.prototype._undestroy=k.undestroy,L.prototype._destroy=function(F,K){this.push(null),K(F)},L.prototype.push=function(F,K){var pe=this._readableState,$;return pe.objectMode?$=!0:typeof F=="string"&&(K=K||pe.defaultEncoding,K!==pe.encoding&&(F=g.from(F,K),K=""),$=!0),U(this,F,K,!1,$)},L.prototype.unshift=function(F){return U(this,F,null,!0,!1)};function U(F,K,pe,$,j){var S=F._readableState;if(K===null)S.reading=!1,W(F,S);else{var B;j||(B=ae(S,K)),B?F.emit("error",B):S.objectMode||K&&K.length>0?(typeof K!="string"&&!S.objectMode&&(0,_.default)(K)!==g.prototype&&(K=w(K)),$?S.endEmitted?F.emit("error",new Error("stream.unshift() after end event")):J(F,S,K,!0):S.ended?F.emit("error",new Error("stream.push() after EOF")):(S.reading=!1,S.decoder&&!pe?(K=S.decoder.write(K),S.objectMode||K.length!==0?J(F,S,K,!1):y(F,S)):J(F,S,K,!1))):$||(S.reading=!1)}return se(S)}function J(F,K,pe,$){K.flowing&&K.length===0&&!K.sync?(F.emit("data",pe),F.read(0)):(K.length+=K.objectMode?1:pe.length,$?K.buffer.unshift(pe):K.buffer.push(pe),K.needReadable&&H(F)),y(F,K)}function ae(F,K){var pe;return!O(K)&&typeof K!="string"&&K!==void 0&&!F.objectMode&&(pe=new TypeError("Invalid non-string/buffer chunk")),pe}function se(F){return!F.ended&&(F.needReadable||F.length<F.highWaterMark||F.length===0)}L.prototype.isPaused=function(){return this._readableState.flowing===!1},L.prototype.setEncoding=function(F){return b||(b=s("string_decoder/").StringDecoder),this._readableState.decoder=new b(F),this._readableState.encoding=F,this};var G=8388608;function he(F){return F>=G?F=G:(F--,F|=F>>>1,F|=F>>>2,F|=F>>>4,F|=F>>>8,F|=F>>>16,F++),F}function q(F,K){return F<=0||K.length===0&&K.ended?0:K.objectMode?1:F!==F?K.flowing&&K.length?K.buffer.head.data.length:K.length:(F>K.highWaterMark&&(K.highWaterMark=he(F)),F<=K.length?F:K.ended?K.length:(K.needReadable=!0,0))}L.prototype.read=function(F){N("read",F),F=parseInt(F,10);var K=this._readableState,pe=F;if(F!==0&&(K.emittedReadable=!1),F===0&&K.needReadable&&(K.length>=K.highWaterMark||K.ended))return N("read: emitReadable",K.length,K.ended),K.length===0&&K.ended?ne(this):H(this),null;if(F=q(F,K),F===0&&K.ended)return K.length===0&&ne(this),null;var $=K.needReadable;N("need readable",$),(K.length===0||K.length-F<K.highWaterMark)&&($=!0,N("length less than watermark",$)),K.ended||K.reading?($=!1,N("reading or ended",$)):$&&(N("do read"),K.reading=!0,K.sync=!0,K.length===0&&(K.needReadable=!0),this._read(K.highWaterMark),K.sync=!1,K.reading||(F=q(pe,K)));var j;return F>0?j=te(F,K):j=null,j===null?(K.needReadable=!0,F=0):K.length-=F,K.length===0&&(K.ended||(K.needReadable=!0),pe!==F&&K.ended&&ne(this)),j!==null&&this.emit("data",j),j};function W(F,K){if(K.ended)return;if(K.decoder){var pe=K.decoder.end();pe&&pe.length&&(K.buffer.push(pe),K.length+=K.objectMode?1:pe.length)}K.ended=!0,H(F)}function H(F){var K=F._readableState;K.needReadable=!1,K.emittedReadable||(N("emitReadable",K.flowing),K.emittedReadable=!0,K.sync?o.nextTick(R,F):R(F))}function R(F){N("emit readable"),F.emit("readable"),xe(F)}function y(F,K){K.readingMore||(K.readingMore=!0,o.nextTick(A,F,K))}function A(F,K){for(var pe=K.length;!K.reading&&!K.flowing&&!K.ended&&K.length<K.highWaterMark&&!(N("maybeReadMore read 0"),F.read(0),pe===K.length);)pe=K.length;K.readingMore=!1}L.prototype._read=function(F){this.emit("error",new Error("_read() is not implemented"))},L.prototype.pipe=function(F,K){var pe=this,$=this._readableState;switch($.pipesCount){case 0:$.pipes=F;break;case 1:$.pipes=[$.pipes,F];break;default:$.pipes.push(F);break}$.pipesCount+=1,N("pipe count=%d opts=%j",$.pipesCount,K);var j=(!K||K.end!==!1)&&F!==h.stdout&&F!==h.stderr,S=j?me:He;$.endEmitted?o.nextTick(S):pe.once("end",S),F.on("unpipe",B);function B(Oe,Ve){N("onunpipe"),Oe===pe&&(Ve&&Ve.hasUnpiped===!1&&(Ve.hasUnpiped=!0,ke()))}function me(){N("onend"),F.end()}var fe=ee(pe);F.on("drain",fe);var we=!1;function ke(){N("cleanup"),F.removeListener("close",We),F.removeListener("finish",Fe),F.removeListener("drain",fe),F.removeListener("error",Le),F.removeListener("unpipe",B),pe.removeListener("end",me),pe.removeListener("end",He),pe.removeListener("data",Ne),we=!0,$.awaitDrain&&(!F._writableState||F._writableState.needDrain)&&fe()}var Me=!1;pe.on("data",Ne);function Ne(Oe){N("ondata"),Me=!1;var Ve=F.write(Oe);Ve===!1&&!Me&&(($.pipesCount===1&&$.pipes===F||$.pipesCount>1&&re($.pipes,F)!==-1)&&!we&&(N("false write response, pause",pe._readableState.awaitDrain),pe._readableState.awaitDrain++,Me=!0),pe.pause())}function Le(Oe){N("onerror",Oe),He(),F.removeListener("error",Le),v(F,"error")===0&&F.emit("error",Oe)}X(F,"error",Le);function We(){F.removeListener("finish",Fe),He()}F.once("close",We);function Fe(){N("onfinish"),F.removeListener("close",We),He()}F.once("finish",Fe);function He(){N("unpipe"),pe.unpipe(F)}return F.emit("pipe",pe),$.flowing||(N("pipe resume"),pe.resume()),F};function ee(F){return function(){var K=F._readableState;N("pipeOnDrain",K.awaitDrain),K.awaitDrain&&K.awaitDrain--,K.awaitDrain===0&&v(F,"data")&&(K.flowing=!0,xe(F))}}L.prototype.unpipe=function(F){var K=this._readableState,pe={hasUnpiped:!1};if(K.pipesCount===0)return this;if(K.pipesCount===1)return F&&F!==K.pipes?this:(F||(F=K.pipes),K.pipes=null,K.pipesCount=0,K.flowing=!1,F&&F.emit("unpipe",this,pe),this);if(!F){var $=K.pipes,j=K.pipesCount;K.pipes=null,K.pipesCount=0,K.flowing=!1;for(var S=0;S<j;S++)$[S].emit("unpipe",this,pe);return this}var B=re(K.pipes,F);return B===-1?this:(K.pipes.splice(B,1),K.pipesCount-=1,K.pipesCount===1&&(K.pipes=K.pipes[0]),F.emit("unpipe",this,pe),this)},L.prototype.on=function(F,K){var pe=m.prototype.on.call(this,F,K);if(F==="data")this._readableState.flowing!==!1&&this.resume();else if(F==="readable"){var $=this._readableState;!$.endEmitted&&!$.readableListening&&($.readableListening=$.needReadable=!0,$.emittedReadable=!1,$.reading?$.length&&H(this):o.nextTick(oe,this))}return pe},L.prototype.addListener=L.prototype.on;function oe(F){N("readable nexttick read 0"),F.read(0)}L.prototype.resume=function(){var F=this._readableState;return F.flowing||(N("resume"),F.flowing=!0,de(this,F)),this};function de(F,K){K.resumeScheduled||(K.resumeScheduled=!0,o.nextTick(be,F,K))}function be(F,K){K.reading||(N("resume read 0"),F.read(0)),K.resumeScheduled=!1,K.awaitDrain=0,F.emit("resume"),xe(F),K.flowing&&!K.reading&&F.read(0)}L.prototype.pause=function(){return N("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(N("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function xe(F){var K=F._readableState;for(N("flow",K.flowing);K.flowing&&F.read()!==null;);}L.prototype.wrap=function(F){var K=this,pe=this._readableState,$=!1;F.on("end",function(){if(N("wrapped end"),pe.decoder&&!pe.ended){var B=pe.decoder.end();B&&B.length&&K.push(B)}K.push(null)}),F.on("data",function(B){if(N("wrapped data"),pe.decoder&&(B=pe.decoder.write(B)),pe.objectMode&&B==null)return;if(!pe.objectMode&&(!B||!B.length))return;var me=K.push(B);me||($=!0,F.pause())});for(var j in F)this[j]===void 0&&typeof F[j]=="function"&&(this[j]=function(B){return function(){return F[B].apply(F,arguments)}}(j));for(var S=0;S<V.length;S++)F.on(V[S],this.emit.bind(this,V[S]));return this._read=function(B){N("wrapped _read",B),$&&($=!1,F.resume())},this},Object.defineProperty(L.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),L._fromList=te;function te(F,K){if(K.length===0)return null;var pe;return K.objectMode?pe=K.buffer.shift():!F||F>=K.length?(K.decoder?pe=K.buffer.join(""):K.buffer.length===1?pe=K.buffer.head.data:pe=K.buffer.concat(K.length),K.buffer.clear()):pe=le(F,K.buffer,K.decoder),pe}function le(F,K,pe){var $;return F<K.head.data.length?($=K.head.data.slice(0,F),K.head.data=K.head.data.slice(F)):F===K.head.data.length?$=K.shift():$=pe?ue(F,K):Z(F,K),$}function ue(F,K){var pe=K.head,$=1,j=pe.data;for(F-=j.length;pe=pe.next;){var S=pe.data,B=F>S.length?S.length:F;if(B===S.length?j+=S:j+=S.slice(0,F),F-=B,F===0){B===S.length?(++$,pe.next?K.head=pe.next:K.head=K.tail=null):(K.head=pe,pe.data=S.slice(B));break}++$}return K.length-=$,j}function Z(F,K){var pe=g.allocUnsafe(F),$=K.head,j=1;for($.data.copy(pe),F-=$.data.length;$=$.next;){var S=$.data,B=F>S.length?S.length:F;if(S.copy(pe,pe.length-F,0,B),F-=B,F===0){B===S.length?(++j,$.next?K.head=$.next:K.head=K.tail=null):(K.head=$,$.data=S.slice(B));break}++j}return K.length-=j,pe}function ne(F){var K=F._readableState;if(K.length>0)throw new Error('"endReadable()" called on non-empty stream');K.endEmitted||(K.ended=!0,o.nextTick(Y,K,F))}function Y(F,K){!F.endEmitted&&F.length===0&&(F.endEmitted=!0,K.readable=!1,K.emit("end"))}function re(F,K){for(var pe=0,$=F.length;pe<$;pe++)if(F[pe]===K)return pe;return-1}}).call(this,s("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/BufferList":219,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/get-prototype-of":59,"core-util-is":189,events:192,inherits:196,isarray:198,"process-nextick-args":207,"safe-buffer":228,"string_decoder/":235,util:71}],217:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/create"),a=T(h);function T(u){return u&&u.__esModule?u:{default:u}}z.exports=f;var _=s("./_stream_duplex"),x=(0,a.default)(s("core-util-is"));x.inherits=s("inherits"),x.inherits(f,_);function p(u,l){var v=this._transformState;v.transforming=!1;var m=v.writecb;if(!m)return this.emit("error",new Error("write callback called multiple times"));v.writechunk=null,v.writecb=null,l!=null&&this.push(l),m(u);var g=this._readableState;g.reading=!1,(g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}function f(u){if(!(this instanceof f))return new f(u);_.call(this,u),this._transformState={afterTransform:p.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",o)}function o(){var u=this;typeof this._flush=="function"?this._flush(function(l,v){i(u,l,v)}):i(this,null,null)}f.prototype.push=function(u,l){return this._transformState.needTransform=!1,_.prototype.push.call(this,u,l)},f.prototype._transform=function(u,l,v){throw new Error("_transform() is not implemented")},f.prototype._write=function(u,l,v){var m=this._transformState;if(m.writecb=v,m.writechunk=u,m.writeencoding=l,!m.transforming){var g=this._readableState;(m.needTransform||g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}},f.prototype._read=function(u){var l=this._transformState;l.writechunk!==null&&l.writecb&&!l.transforming?(l.transforming=!0,this._transform(l.writechunk,l.writeencoding,l.afterTransform)):l.needTransform=!0},f.prototype._destroy=function(u,l){var v=this;_.prototype._destroy.call(this,u,function(m){l(m),v.emit("close")})};function i(u,l,v){if(l)return u.emit("error",l);if(v!=null&&u.push(v),u._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(u._transformState.transforming)throw new Error("Calling transform done when still transforming");return u.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(s,z,d){(function(h,a){"use strict";var T=s("babel-runtime/core-js/object/define-property"),_=m(T),x=s("babel-runtime/core-js/symbol/has-instance"),p=m(x),f=s("babel-runtime/core-js/symbol"),o=m(f),i=s("babel-runtime/core-js/object/create"),u=m(i),l=s("babel-runtime/core-js/set-immediate"),v=m(l);function m(Z){return Z&&Z.__esModule?Z:{default:Z}}var g=s("process-nextick-args");z.exports=ae;function E(Z,ne,Y){this.chunk=Z,this.encoding=ne,this.callback=Y,this.next=null}function w(Z){var ne=this;this.next=null,this.entry=null,this.finish=function(){ue(ne,Z)}}var O=!h.browser&&["v0.10","v0.9."].indexOf(h.version.slice(0,5))>-1?v.default:g.nextTick,C;ae.WritableState=U;var M=(0,u.default)(s("core-util-is"));M.inherits=s("inherits");var N={deprecate:s("util-deprecate")},P=s("./internal/streams/stream"),k=s("safe-buffer").Buffer,b=a.Uint8Array||function(){};function V(Z){return k.from(Z)}function X(Z){return k.isBuffer(Z)||Z instanceof b}var D=s("./internal/streams/destroy");M.inherits(ae,P);function L(){}function U(Z,ne){C=C||s("./_stream_duplex"),Z=Z||{};var Y=ne instanceof C;this.objectMode=!!Z.objectMode,Y&&(this.objectMode=this.objectMode||!!Z.writableObjectMode);var re=Z.highWaterMark,F=Z.writableHighWaterMark,K=this.objectMode?16:16*1024;re||re===0?this.highWaterMark=re:Y&&(F||F===0)?this.highWaterMark=F:this.highWaterMark=K,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 pe=Z.decodeStrings===!1;this.decodeStrings=!pe,this.defaultEncoding=Z.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function($){y(ne,$)},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 w(this)}U.prototype.getBuffer=function(){for(var ne=this.bufferedRequest,Y=[];ne;)Y.push(ne),ne=ne.next;return Y},function(){try{Object.defineProperty(U.prototype,"buffer",{get:N.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Z){}}();var J;typeof o.default=="function"&&p.default&&typeof Function.prototype[p.default]=="function"?(J=Function.prototype[p.default],(0,_.default)(ae,p.default,{value:function(ne){return J.call(this,ne)?!0:this!==ae?!1:ne&&ne._writableState instanceof U}})):J=function(ne){return ne instanceof this};function ae(Z){if(C=C||s("./_stream_duplex"),!J.call(ae,this)&&!(this instanceof C))return new ae(Z);this._writableState=new U(Z,this),this.writable=!0,Z&&(typeof Z.write=="function"&&(this._write=Z.write),typeof Z.writev=="function"&&(this._writev=Z.writev),typeof Z.destroy=="function"&&(this._destroy=Z.destroy),typeof Z.final=="function"&&(this._final=Z.final)),P.call(this)}ae.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function se(Z,ne){var Y=new Error("write after end");Z.emit("error",Y),g.nextTick(ne,Y)}function G(Z,ne,Y,re){var F=!0,K=!1;return Y===null?K=new TypeError("May not write null values to stream"):typeof Y!="string"&&Y!==void 0&&!ne.objectMode&&(K=new TypeError("Invalid non-string/buffer chunk")),K&&(Z.emit("error",K),g.nextTick(re,K),F=!1),F}ae.prototype.write=function(Z,ne,Y){var re=this._writableState,F=!1,K=!re.objectMode&&X(Z);return K&&!k.isBuffer(Z)&&(Z=V(Z)),typeof ne=="function"&&(Y=ne,ne=null),K?ne="buffer":ne||(ne=re.defaultEncoding),typeof Y!="function"&&(Y=L),re.ended?se(this,Y):(K||G(this,re,Z,Y))&&(re.pendingcb++,F=q(this,re,K,Z,ne,Y)),F},ae.prototype.cork=function(){var Z=this._writableState;Z.corked++},ae.prototype.uncork=function(){var Z=this._writableState;Z.corked&&(Z.corked--,!Z.writing&&!Z.corked&&!Z.finished&&!Z.bufferProcessing&&Z.bufferedRequest&&oe(this,Z))},ae.prototype.setDefaultEncoding=function(ne){if(typeof ne=="string"&&(ne=ne.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((ne+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+ne);return this._writableState.defaultEncoding=ne,this};function he(Z,ne,Y){return!Z.objectMode&&Z.decodeStrings!==!1&&typeof ne=="string"&&(ne=k.from(ne,Y)),ne}Object.defineProperty(ae.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function q(Z,ne,Y,re,F,K){if(!Y){var pe=he(ne,re,F);re!==pe&&(Y=!0,F="buffer",re=pe)}var $=ne.objectMode?1:re.length;ne.length+=$;var j=ne.length<ne.highWaterMark;if(j||(ne.needDrain=!0),ne.writing||ne.corked){var S=ne.lastBufferedRequest;ne.lastBufferedRequest={chunk:re,encoding:F,isBuf:Y,callback:K,next:null},S?S.next=ne.lastBufferedRequest:ne.bufferedRequest=ne.lastBufferedRequest,ne.bufferedRequestCount+=1}else W(Z,ne,!1,$,re,F,K);return j}function W(Z,ne,Y,re,F,K,pe){ne.writelen=re,ne.writecb=pe,ne.writing=!0,ne.sync=!0,Y?Z._writev(F,ne.onwrite):Z._write(F,K,ne.onwrite),ne.sync=!1}function H(Z,ne,Y,re,F){--ne.pendingcb,Y?(g.nextTick(F,re),g.nextTick(te,Z,ne),Z._writableState.errorEmitted=!0,Z.emit("error",re)):(F(re),Z._writableState.errorEmitted=!0,Z.emit("error",re),te(Z,ne))}function R(Z){Z.writing=!1,Z.writecb=null,Z.length-=Z.writelen,Z.writelen=0}function y(Z,ne){var Y=Z._writableState,re=Y.sync,F=Y.writecb;if(R(Y),ne)H(Z,Y,re,ne,F);else{var K=de(Y);!K&&!Y.corked&&!Y.bufferProcessing&&Y.bufferedRequest&&oe(Z,Y),re?O(A,Z,Y,K,F):A(Z,Y,K,F)}}function A(Z,ne,Y,re){Y||ee(Z,ne),ne.pendingcb--,re(),te(Z,ne)}function ee(Z,ne){ne.length===0&&ne.needDrain&&(ne.needDrain=!1,Z.emit("drain"))}function oe(Z,ne){ne.bufferProcessing=!0;var Y=ne.bufferedRequest;if(Z._writev&&Y&&Y.next){var re=ne.bufferedRequestCount,F=new Array(re),K=ne.corkedRequestsFree;K.entry=Y;for(var pe=0,$=!0;Y;)F[pe]=Y,Y.isBuf||($=!1),Y=Y.next,pe+=1;F.allBuffers=$,W(Z,ne,!0,ne.length,F,"",K.finish),ne.pendingcb++,ne.lastBufferedRequest=null,K.next?(ne.corkedRequestsFree=K.next,K.next=null):ne.corkedRequestsFree=new w(ne),ne.bufferedRequestCount=0}else{for(;Y;){var j=Y.chunk,S=Y.encoding,B=Y.callback,me=ne.objectMode?1:j.length;if(W(Z,ne,!1,me,j,S,B),Y=Y.next,ne.bufferedRequestCount--,ne.writing)break}Y===null&&(ne.lastBufferedRequest=null)}ne.bufferedRequest=Y,ne.bufferProcessing=!1}ae.prototype._write=function(Z,ne,Y){Y(new Error("_write() is not implemented"))},ae.prototype._writev=null,ae.prototype.end=function(Z,ne,Y){var re=this._writableState;typeof Z=="function"?(Y=Z,Z=null,ne=null):typeof ne=="function"&&(Y=ne,ne=null),Z!=null&&this.write(Z,ne),re.corked&&(re.corked=1,this.uncork()),!re.ending&&!re.finished&&le(this,re,Y)};function de(Z){return Z.ending&&Z.length===0&&Z.bufferedRequest===null&&!Z.finished&&!Z.writing}function be(Z,ne){Z._final(function(Y){ne.pendingcb--,Y&&Z.emit("error",Y),ne.prefinished=!0,Z.emit("prefinish"),te(Z,ne)})}function xe(Z,ne){!ne.prefinished&&!ne.finalCalled&&(typeof Z._final=="function"?(ne.pendingcb++,ne.finalCalled=!0,g.nextTick(be,Z,ne)):(ne.prefinished=!0,Z.emit("prefinish")))}function te(Z,ne){var Y=de(ne);return Y&&(xe(Z,ne),ne.pendingcb===0&&(ne.finished=!0,Z.emit("finish"))),Y}function le(Z,ne,Y){ne.ending=!0,te(Z,ne),Y&&(ne.finished?g.nextTick(Y):Z.once("finish",Y)),ne.ended=!0,Z.writable=!1}function ue(Z,ne,Y){var re=Z.entry;for(Z.entry=null;re;){var F=re.callback;ne.pendingcb--,F(Y),re=re.next}ne.corkedRequestsFree?ne.corkedRequestsFree.next=Z:ne.corkedRequestsFree=Z}Object.defineProperty(ae.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(ne){if(!this._writableState)return;this._writableState.destroyed=ne}}),ae.prototype.destroy=D.destroy,ae.prototype._undestroy=D.undestroy,ae.prototype._destroy=function(Z,ne){this.end(),ne(Z)}}).call(this,s("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(s,z,d){"use strict";function h(x,p){if(!(x instanceof p))throw new TypeError("Cannot call a class as a function")}var a=s("safe-buffer").Buffer,T=s("util");function _(x,p,f){x.copy(p,f)}z.exports=function(){function x(){h(this,x),this.head=null,this.tail=null,this.length=0}return x.prototype.push=function(f){var o={data:f,next:null};this.length>0?this.tail.next=o:this.head=o,this.tail=o,++this.length},x.prototype.unshift=function(f){var o={data:f,next:this.head};this.length===0&&(this.tail=o),this.head=o,++this.length},x.prototype.shift=function(){if(this.length===0)return;var f=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,f},x.prototype.clear=function(){this.head=this.tail=null,this.length=0},x.prototype.join=function(f){if(this.length===0)return"";for(var o=this.head,i=""+o.data;o=o.next;)i+=f+o.data;return i},x.prototype.concat=function(f){if(this.length===0)return a.alloc(0);if(this.length===1)return this.head.data;for(var o=a.allocUnsafe(f>>>0),i=this.head,u=0;i;)_(i.data,o,u),u+=i.data.length,i=i.next;return o},x}(),T&&T.inspect&&T.inspect.custom&&(z.exports.prototype[T.inspect.custom]=function(){var x=T.inspect({length:this.length});return this.constructor.name+" "+x})},{"safe-buffer":228,util:71}],220:[function(s,z,d){"use strict";var h=s("process-nextick-args");function a(x,p){var f=this,o=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return o||i?(p?p(x):x&&(!this._writableState||!this._writableState.errorEmitted)&&h.nextTick(_,this,x),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(x||null,function(u){!p&&u?(h.nextTick(_,f,u),f._writableState&&(f._writableState.errorEmitted=!0)):p&&p(u)}),this)}function T(){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 _(x,p){x.emit("error",p)}z.exports={destroy:a,undestroy:T}},{"process-nextick-args":207}],221:[function(s,z,d){"use strict";z.exports=s("events").EventEmitter},{events:192}],222:[function(s,z,d){z.exports=s("./readable").PassThrough},{"./readable":223}],223:[function(s,z,d){d=z.exports=s("./lib/_stream_readable.js"),d.Stream=d,d.Readable=d,d.Writable=s("./lib/_stream_writable.js"),d.Duplex=s("./lib/_stream_duplex.js"),d.Transform=s("./lib/_stream_transform.js"),d.PassThrough=s("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(s,z,d){z.exports=s("./readable").Transform},{"./readable":223}],225:[function(s,z,d){z.exports=s("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(s,z,d){var h=function(){return this}()||Function("return this")(),a=h.regeneratorRuntime&&Object.getOwnPropertyNames(h).indexOf("regeneratorRuntime")>=0,T=a&&h.regeneratorRuntime;if(h.regeneratorRuntime=void 0,z.exports=s("./runtime"),a)h.regeneratorRuntime=T;else try{delete h.regeneratorRuntime}catch(_){h.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(s,z,d){!function(h){"use strict";var a=Object.prototype,T=a.hasOwnProperty,_,x=typeof Symbol=="function"?Symbol:{},p=x.iterator||"@@iterator",f=x.asyncIterator||"@@asyncIterator",o=x.toStringTag||"@@toStringTag",i=typeof z=="object",u=h.regeneratorRuntime;if(u){i&&(z.exports=u);return}u=h.regeneratorRuntime=i?z.exports:{};function l(q,W,H,R){var y=W&&W.prototype instanceof C?W:C,A=Object.create(y.prototype),ee=new se(R||[]);return A._invoke=L(q,H,ee),A}u.wrap=l;function v(q,W,H){try{return{type:"normal",arg:q.call(W,H)}}catch(R){return{type:"throw",arg:R}}}var m="suspendedStart",g="suspendedYield",E="executing",w="completed",O={};function C(){}function M(){}function N(){}var P={};P[p]=function(){return this};var k=Object.getPrototypeOf,b=k&&k(k(G([])));b&&b!==a&&T.call(b,p)&&(P=b);var V=N.prototype=C.prototype=Object.create(P);M.prototype=V.constructor=N,N.constructor=M,N[o]=M.displayName="GeneratorFunction";function X(q){["next","throw","return"].forEach(function(W){q[W]=function(H){return this._invoke(W,H)}})}u.isGeneratorFunction=function(q){var W=typeof q=="function"&&q.constructor;return W?W===M||(W.displayName||W.name)==="GeneratorFunction":!1},u.mark=function(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,N):(q.__proto__=N,o in q||(q[o]="GeneratorFunction")),q.prototype=Object.create(V),q},u.awrap=function(q){return{__await:q}};function D(q){function W(y,A,ee,oe){var de=v(q[y],q,A);if(de.type==="throw")oe(de.arg);else{var be=de.arg,xe=be.value;return xe&&typeof xe=="object"&&T.call(xe,"__await")?Promise.resolve(xe.__await).then(function(te){W("next",te,ee,oe)},function(te){W("throw",te,ee,oe)}):Promise.resolve(xe).then(function(te){be.value=te,ee(be)},oe)}}var H;function R(y,A){function ee(){return new Promise(function(oe,de){W(y,A,oe,de)})}return H=H?H.then(ee,ee):ee()}this._invoke=R}X(D.prototype),D.prototype[f]=function(){return this},u.AsyncIterator=D,u.async=function(q,W,H,R){var y=new D(l(q,W,H,R));return u.isGeneratorFunction(W)?y:y.next().then(function(A){return A.done?A.value:y.next()})};function L(q,W,H){var R=m;return function(A,ee){if(R===E)throw new Error("Generator is already running");if(R===w){if(A==="throw")throw ee;return he()}for(H.method=A,H.arg=ee;;){var oe=H.delegate;if(oe){var de=U(oe,H);if(de){if(de===O)continue;return de}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(R===m)throw R=w,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);R=E;var be=v(q,W,H);if(be.type==="normal"){if(R=H.done?w:g,be.arg===O)continue;return{value:be.arg,done:H.done}}else be.type==="throw"&&(R=w,H.method="throw",H.arg=be.arg)}}}function U(q,W){var H=q.iterator[W.method];if(H===_){if(W.delegate=null,W.method==="throw"){if(q.iterator.return&&(W.method="return",W.arg=_,U(q,W),W.method==="throw"))return O;W.method="throw",W.arg=new TypeError("The iterator does not provide a 'throw' method")}return O}var R=v(H,q.iterator,W.arg);if(R.type==="throw")return W.method="throw",W.arg=R.arg,W.delegate=null,O;var y=R.arg;if(!y)return W.method="throw",W.arg=new TypeError("iterator result is not an object"),W.delegate=null,O;if(y.done)W[q.resultName]=y.value,W.next=q.nextLoc,W.method!=="return"&&(W.method="next",W.arg=_);else return y;return W.delegate=null,O}X(V),V[o]="Generator",V[p]=function(){return this},V.toString=function(){return"[object Generator]"};function J(q){var W={tryLoc:q[0]};1 in q&&(W.catchLoc=q[1]),2 in q&&(W.finallyLoc=q[2],W.afterLoc=q[3]),this.tryEntries.push(W)}function ae(q){var W=q.completion||{};W.type="normal",delete W.arg,q.completion=W}function se(q){this.tryEntries=[{tryLoc:"root"}],q.forEach(J,this),this.reset(!0)}u.keys=function(q){var W=[];for(var H in q)W.push(H);return W.reverse(),function R(){for(;W.length;){var y=W.pop();if(y in q)return R.value=y,R.done=!1,R}return R.done=!0,R}};function G(q){if(q){var W=q[p];if(W)return W.call(q);if(typeof q.next=="function")return q;if(!isNaN(q.length)){var H=-1,R=function y(){for(;++H<q.length;)if(T.call(q,H))return y.value=q[H],y.done=!1,y;return y.value=_,y.done=!0,y};return R.next=R}}return{next:he}}u.values=G;function he(){return{value:_,done:!0}}se.prototype={constructor:se,reset:function(q){if(this.prev=0,this.next=0,this.sent=this._sent=_,this.done=!1,this.delegate=null,this.method="next",this.arg=_,this.tryEntries.forEach(ae),!q)for(var W in this)W.charAt(0)==="t"&&T.call(this,W)&&!isNaN(+W.slice(1))&&(this[W]=_)},stop:function(){this.done=!0;var q=this.tryEntries[0],W=q.completion;if(W.type==="throw")throw W.arg;return this.rval},dispatchException:function(q){if(this.done)throw q;var W=this;function H(de,be){return A.type="throw",A.arg=q,W.next=de,be&&(W.method="next",W.arg=_),!!be}for(var R=this.tryEntries.length-1;R>=0;--R){var y=this.tryEntries[R],A=y.completion;if(y.tryLoc==="root")return H("end");if(y.tryLoc<=this.prev){var ee=T.call(y,"catchLoc"),oe=T.call(y,"finallyLoc");if(ee&&oe){if(this.prev<y.catchLoc)return H(y.catchLoc,!0);if(this.prev<y.finallyLoc)return H(y.finallyLoc)}else if(ee){if(this.prev<y.catchLoc)return H(y.catchLoc,!0)}else if(oe){if(this.prev<y.finallyLoc)return H(y.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(q,W){for(var H=this.tryEntries.length-1;H>=0;--H){var R=this.tryEntries[H];if(R.tryLoc<=this.prev&&T.call(R,"finallyLoc")&&this.prev<R.finallyLoc){var y=R;break}}y&&(q==="break"||q==="continue")&&y.tryLoc<=W&&W<=y.finallyLoc&&(y=null);var A=y?y.completion:{};return A.type=q,A.arg=W,y?(this.method="next",this.next=y.finallyLoc,O):this.complete(A)},complete:function(q,W){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"&&W&&(this.next=W),O},finish:function(q){for(var W=this.tryEntries.length-1;W>=0;--W){var H=this.tryEntries[W];if(H.finallyLoc===q)return this.complete(H.completion,H.afterLoc),ae(H),O}},catch:function(q){for(var W=this.tryEntries.length-1;W>=0;--W){var H=this.tryEntries[W];if(H.tryLoc===q){var R=H.completion;if(R.type==="throw"){var y=R.arg;ae(H)}return y}}throw new Error("illegal catch attempt")},delegateYield:function(q,W,H){return this.delegate={iterator:G(q),resultName:W,nextLoc:H},this.method==="next"&&(this.arg=_),O}}}(function(){return this}()||Function("return this")())},{}],228:[function(s,z,d){var h=s("buffer"),a=h.Buffer;function T(x,p){for(var f in x)p[f]=x[f]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?z.exports=h:(T(h,d),d.Buffer=_);function _(x,p,f){return a(x,p,f)}T(a,_),_.from=function(x,p,f){if(typeof x=="number")throw new TypeError("Argument must not be a number");return a(x,p,f)},_.alloc=function(x,p,f){if(typeof x!="number")throw new TypeError("Argument must be a number");var o=a(x);return p!==void 0?typeof f=="string"?o.fill(p,f):o.fill(p):o.fill(0),o},_.allocUnsafe=function(x){if(typeof x!="number")throw new TypeError("Argument must be a number");return a(x)},_.allocUnsafeSlow=function(x){if(typeof x!="number")throw new TypeError("Argument must be a number");return h.SlowBuffer(x)}},{buffer:73}],229:[function(s,z,d){(function(h){"use strict";var a=s("babel-runtime/core-js/string/from-code-point"),T=g(a),_=s("babel-runtime/core-js/json/stringify"),x=g(_),p=s("babel-runtime/helpers/typeof"),f=g(p),o=s("babel-runtime/core-js/object/define-property"),i=g(o),u=s("babel-runtime/core-js/object/keys"),l=g(u),v=s("babel-runtime/core-js/object/create"),m=g(v);function g(E){return E&&E.__esModule?E:{default:E}}(function(E){E.parser=function(S,B){return new O(S,B)},E.SAXParser=O,E.SAXStream=V,E.createStream=b,E.MAX_BUFFER_LENGTH=64*1024;var w=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];E.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function O(S,B){if(!(this instanceof O))return new O(S,B);var me=this;M(me),me.q=me.c="",me.bufferCheckPosition=E.MAX_BUFFER_LENGTH,me.opt=B||{},me.opt.lowercase=me.opt.lowercase||me.opt.lowercasetags,me.looseCase=me.opt.lowercase?"toLowerCase":"toUpperCase",me.tags=[],me.closed=me.closedRoot=me.sawRoot=!1,me.tag=me.error=null,me.strict=!!S,me.noscript=!!(S||me.opt.noscript),me.state=A.BEGIN,me.strictEntities=me.opt.strictEntities,me.ENTITIES=me.strictEntities?(0,m.default)(E.XML_ENTITIES):(0,m.default)(E.ENTITIES),me.attribList=[],me.opt.xmlns&&(me.ns=(0,m.default)(J)),me.trackPosition=me.opt.position!==!1,me.trackPosition&&(me.position=me.line=me.column=0),oe(me,"onready")}m.default||(Object.create=function(S){function B(){}B.prototype=S;var me=new B;return me}),l.default||(Object.keys=function(S){var B=[];for(var me in S)S.hasOwnProperty(me)&&B.push(me);return B});function C(S){for(var B=Math.max(E.MAX_BUFFER_LENGTH,10),me=0,fe=0,we=w.length;fe<we;fe++){var ke=S[w[fe]].length;if(ke>B)switch(w[fe]){case"textNode":be(S);break;case"cdata":de(S,"oncdata",S.cdata),S.cdata="";break;case"script":de(S,"onscript",S.script),S.script="";break;default:te(S,"Max buffer length exceeded: "+w[fe])}me=Math.max(me,ke)}var Me=E.MAX_BUFFER_LENGTH-me;S.bufferCheckPosition=Me+S.position}function M(S){for(var B=0,me=w.length;B<me;B++)S[w[B]]=""}function N(S){be(S),S.cdata!==""&&(de(S,"oncdata",S.cdata),S.cdata=""),S.script!==""&&(de(S,"onscript",S.script),S.script="")}O.prototype={end:function(){le(this)},write:j,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){N(this)}};var P;try{P=s("stream").Stream}catch(S){P=function(){}}var k=E.EVENTS.filter(function(S){return S!=="error"&&S!=="end"});function b(S,B){return new V(S,B)}function V(S,B){if(!(this instanceof V))return new V(S,B);P.apply(this),this._parser=new O(S,B),this.writable=!0,this.readable=!0;var me=this;this._parser.onend=function(){me.emit("end")},this._parser.onerror=function(fe){me.emit("error",fe),me._parser.error=null},this._decoder=null,k.forEach(function(fe){(0,i.default)(me,"on"+fe,{get:function(){return me._parser["on"+fe]},set:function(ke){if(!ke)return me.removeAllListeners(fe),me._parser["on"+fe]=ke,ke;me.on(fe,ke)},enumerable:!0,configurable:!1})})}V.prototype=(0,m.default)(P.prototype,{constructor:{value:V}}),V.prototype.write=function(S){if(typeof h=="function"&&typeof h.isBuffer=="function"&&h.isBuffer(S)){if(!this._decoder){var B=s("string_decoder").StringDecoder;this._decoder=new B("utf8")}S=this._decoder.write(S)}return this._parser.write(S.toString()),this.emit("data",S),!0},V.prototype.end=function(S){return S&&S.length&&this.write(S),this._parser.end(),!0},V.prototype.on=function(S,B){var me=this;return!me._parser["on"+S]&&k.indexOf(S)!==-1&&(me._parser["on"+S]=function(){var fe=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);fe.splice(0,0,S),me.emit.apply(me,fe)}),P.prototype.on.call(me,S,B)};var X="[CDATA[",D="DOCTYPE",L="http://www.w3.org/XML/1998/namespace",U="http://www.w3.org/2000/xmlns/",J={xml:L,xmlns:U},ae=/[:_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]/,se=/[:_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-]/,G=/[#:_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]/,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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function q(S){return S===" "||S===`
`||S==="\r"||S===" "}function W(S){return S==='"'||S==="'"}function H(S){return S===">"||q(S)}function R(S,B){return S.test(B)}function y(S,B){return!R(S,B)}var A=0;E.STATE={BEGIN:A++,BEGIN_WHITESPACE:A++,TEXT:A++,TEXT_ENTITY:A++,OPEN_WAKA:A++,SGML_DECL:A++,SGML_DECL_QUOTED:A++,DOCTYPE:A++,DOCTYPE_QUOTED:A++,DOCTYPE_DTD:A++,DOCTYPE_DTD_QUOTED:A++,COMMENT_STARTING:A++,COMMENT:A++,COMMENT_ENDING:A++,COMMENT_ENDED:A++,CDATA:A++,CDATA_ENDING:A++,CDATA_ENDING_2:A++,PROC_INST:A++,PROC_INST_BODY:A++,PROC_INST_ENDING:A++,OPEN_TAG:A++,OPEN_TAG_SLASH:A++,ATTRIB:A++,ATTRIB_NAME:A++,ATTRIB_NAME_SAW_WHITE:A++,ATTRIB_VALUE:A++,ATTRIB_VALUE_QUOTED:A++,ATTRIB_VALUE_CLOSED:A++,ATTRIB_VALUE_UNQUOTED:A++,ATTRIB_VALUE_ENTITY_Q:A++,ATTRIB_VALUE_ENTITY_U:A++,CLOSE_TAG:A++,CLOSE_TAG_SAW_WHITE:A++,SCRIPT:A++,SCRIPT_ENDING:A++},E.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},E.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,l.default)(E.ENTITIES).forEach(function(S){var B=E.ENTITIES[S],me=typeof B=="number"?String.fromCharCode(B):B;E.ENTITIES[S]=me});for(var ee in E.STATE)E.STATE[E.STATE[ee]]=ee;A=E.STATE;function oe(S,B,me){S[B]&&S[B](me)}function de(S,B,me){S.textNode&&be(S),oe(S,B,me)}function be(S){S.textNode=xe(S.opt,S.textNode),S.textNode&&oe(S,"ontext",S.textNode),S.textNode=""}function xe(S,B){return S.trim&&(B=B.trim()),S.normalize&&(B=B.replace(/\s+/g," ")),B}function te(S,B){return be(S),S.trackPosition&&(B+=`
Line: `+S.line+`
Column: `+S.column+`
Char: `+S.c),B=new Error(B),S.error=B,oe(S,"onerror",B),S}function le(S){return S.sawRoot&&!S.closedRoot&&ue(S,"Unclosed root tag"),S.state!==A.BEGIN&&S.state!==A.BEGIN_WHITESPACE&&S.state!==A.TEXT&&te(S,"Unexpected end"),be(S),S.c="",S.closed=!0,oe(S,"onend"),O.call(S,S.strict,S.opt),S}function ue(S,B){if((typeof S=="undefined"?"undefined":(0,f.default)(S))!=="object"||!(S instanceof O))throw new Error("bad call to strictFail");S.strict&&te(S,B)}function Z(S){S.strict||(S.tagName=S.tagName[S.looseCase]());var B=S.tags[S.tags.length-1]||S,me=S.tag={name:S.tagName,attributes:{}};S.opt.xmlns&&(me.ns=B.ns),S.attribList.length=0,de(S,"onopentagstart",me)}function ne(S,B){var me=S.indexOf(":"),fe=me<0?["",S]:S.split(":"),we=fe[0],ke=fe[1];return B&&S==="xmlns"&&(we="xmlns",ke=""),{prefix:we,local:ke}}function Y(S){if(S.strict||(S.attribName=S.attribName[S.looseCase]()),S.attribList.indexOf(S.attribName)!==-1||S.tag.attributes.hasOwnProperty(S.attribName)){S.attribName=S.attribValue="";return}if(S.opt.xmlns){var B=ne(S.attribName,!0),me=B.prefix,fe=B.local;if(me==="xmlns")if(fe==="xml"&&S.attribValue!==L)ue(S,"xml: prefix must be bound to "+L+`
Actual: `+S.attribValue);else if(fe==="xmlns"&&S.attribValue!==U)ue(S,"xmlns: prefix must be bound to "+U+`
Actual: `+S.attribValue);else{var we=S.tag,ke=S.tags[S.tags.length-1]||S;we.ns===ke.ns&&(we.ns=(0,m.default)(ke.ns)),we.ns[fe]=S.attribValue}S.attribList.push([S.attribName,S.attribValue])}else S.tag.attributes[S.attribName]=S.attribValue,de(S,"onattribute",{name:S.attribName,value:S.attribValue});S.attribName=S.attribValue=""}function re(S,B){if(S.opt.xmlns){var me=S.tag,fe=ne(S.tagName);me.prefix=fe.prefix,me.local=fe.local,me.uri=me.ns[fe.prefix]||"",me.prefix&&!me.uri&&(ue(S,"Unbound namespace prefix: "+(0,x.default)(S.tagName)),me.uri=fe.prefix);var we=S.tags[S.tags.length-1]||S;me.ns&&we.ns!==me.ns&&(0,l.default)(me.ns).forEach(function(Ue){de(S,"onopennamespace",{prefix:Ue,uri:me.ns[Ue]})});for(var ke=0,Me=S.attribList.length;ke<Me;ke++){var Ne=S.attribList[ke],Le=Ne[0],We=Ne[1],Fe=ne(Le,!0),He=Fe.prefix,Oe=Fe.local,Ve=He===""?"":me.ns[He]||"",$e={name:Le,value:We,prefix:He,local:Oe,uri:Ve};He&&He!=="xmlns"&&!Ve&&(ue(S,"Unbound namespace prefix: "+(0,x.default)(He)),$e.uri=He),S.tag.attributes[Le]=$e,de(S,"onattribute",$e)}S.attribList.length=0}S.tag.isSelfClosing=!!B,S.sawRoot=!0,S.tags.push(S.tag),de(S,"onopentag",S.tag),B||(!S.noscript&&S.tagName.toLowerCase()==="script"?S.state=A.SCRIPT:S.state=A.TEXT,S.tag=null,S.tagName=""),S.attribName=S.attribValue="",S.attribList.length=0}function F(S){if(!S.tagName){ue(S,"Weird empty close tag."),S.textNode+="</>",S.state=A.TEXT;return}if(S.script){if(S.tagName!=="script"){S.script+="</"+S.tagName+">",S.tagName="",S.state=A.SCRIPT;return}de(S,"onscript",S.script),S.script=""}var B=S.tags.length,me=S.tagName;S.strict||(me=me[S.looseCase]());for(var fe=me;B--;){var we=S.tags[B];if(we.name!==fe)ue(S,"Unexpected close tag");else break}if(B<0){ue(S,"Unmatched closing tag: "+S.tagName),S.textNode+="</"+S.tagName+">",S.state=A.TEXT;return}S.tagName=me;for(var ke=S.tags.length;ke-- >B;){var Me=S.tag=S.tags.pop();S.tagName=S.tag.name,de(S,"onclosetag",S.tagName);var Ne={};for(var Le in Me.ns)Ne[Le]=Me.ns[Le];var We=S.tags[S.tags.length-1]||S;S.opt.xmlns&&Me.ns!==We.ns&&(0,l.default)(Me.ns).forEach(function(Fe){var He=Me.ns[Fe];de(S,"onclosenamespace",{prefix:Fe,uri:He})})}B===0&&(S.closedRoot=!0),S.tagName=S.attribValue=S.attribName="",S.attribList.length=0,S.state=A.TEXT}function K(S){var B=S.entity,me=B.toLowerCase(),fe,we="";return S.ENTITIES[B]?S.ENTITIES[B]:S.ENTITIES[me]?S.ENTITIES[me]:(B=me,B.charAt(0)==="#"&&(B.charAt(1)==="x"?(B=B.slice(2),fe=parseInt(B,16),we=fe.toString(16)):(B=B.slice(1),fe=parseInt(B,10),we=fe.toString(10))),B=B.replace(/^0+/,""),isNaN(fe)||we.toLowerCase()!==B?(ue(S,"Invalid character entity"),"&"+S.entity+";"):(0,T.default)(fe))}function pe(S,B){B==="<"?(S.state=A.OPEN_WAKA,S.startTagPosition=S.position):q(B)||(ue(S,"Non-whitespace before first tag."),S.textNode=B,S.state=A.TEXT)}function $(S,B){var me="";return B<S.length&&(me=S.charAt(B)),me}function j(S){var B=this;if(this.error)throw this.error;if(B.closed)return te(B,"Cannot write after close. Assign an onready handler.");if(S===null)return le(B);(typeof S=="undefined"?"undefined":(0,f.default)(S))==="object"&&(S=S.toString());for(var me=0,fe="";!(fe=$(S,me++),B.c=fe,!fe);){B.trackPosition&&(B.position++,fe===`
`?(B.line++,B.column=0):B.column++);switch(B.state){case A.BEGIN:if(B.state=A.BEGIN_WHITESPACE,fe==="\uFEFF")continue;pe(B,fe);continue;case A.BEGIN_WHITESPACE:pe(B,fe);continue;case A.TEXT:if(B.sawRoot&&!B.closedRoot){for(var we=me-1;fe&&fe!=="<"&&fe!=="&";)fe=$(S,me++),fe&&B.trackPosition&&(B.position++,fe===`
`?(B.line++,B.column=0):B.column++);B.textNode+=S.substring(we,me-1)}fe==="<"&&!(B.sawRoot&&B.closedRoot&&!B.strict)?(B.state=A.OPEN_WAKA,B.startTagPosition=B.position):(!q(fe)&&(!B.sawRoot||B.closedRoot)&&ue(B,"Text data outside of root node."),fe==="&"?B.state=A.TEXT_ENTITY:B.textNode+=fe);continue;case A.SCRIPT:fe==="<"?B.state=A.SCRIPT_ENDING:B.script+=fe;continue;case A.SCRIPT_ENDING:fe==="/"?B.state=A.CLOSE_TAG:(B.script+="<"+fe,B.state=A.SCRIPT);continue;case A.OPEN_WAKA:if(fe==="!")B.state=A.SGML_DECL,B.sgmlDecl="";else if(!q(fe))if(R(ae,fe))B.state=A.OPEN_TAG,B.tagName=fe;else if(fe==="/")B.state=A.CLOSE_TAG,B.tagName="";else if(fe==="?")B.state=A.PROC_INST,B.procInstName=B.procInstBody="";else{if(ue(B,"Unencoded <"),B.startTagPosition+1<B.position){var ke=B.position-B.startTagPosition;fe=new Array(ke).join(" ")+fe}B.textNode+="<"+fe,B.state=A.TEXT}continue;case A.SGML_DECL:(B.sgmlDecl+fe).toUpperCase()===X?(de(B,"onopencdata"),B.state=A.CDATA,B.sgmlDecl="",B.cdata=""):B.sgmlDecl+fe==="--"?(B.state=A.COMMENT,B.comment="",B.sgmlDecl=""):(B.sgmlDecl+fe).toUpperCase()===D?(B.state=A.DOCTYPE,(B.doctype||B.sawRoot)&&ue(B,"Inappropriately located doctype declaration"),B.doctype="",B.sgmlDecl=""):fe===">"?(de(B,"onsgmldeclaration",B.sgmlDecl),B.sgmlDecl="",B.state=A.TEXT):(W(fe)&&(B.state=A.SGML_DECL_QUOTED),B.sgmlDecl+=fe);continue;case A.SGML_DECL_QUOTED:fe===B.q&&(B.state=A.SGML_DECL,B.q=""),B.sgmlDecl+=fe;continue;case A.DOCTYPE:fe===">"?(B.state=A.TEXT,de(B,"ondoctype",B.doctype),B.doctype=!0):(B.doctype+=fe,fe==="["?B.state=A.DOCTYPE_DTD:W(fe)&&(B.state=A.DOCTYPE_QUOTED,B.q=fe));continue;case A.DOCTYPE_QUOTED:B.doctype+=fe,fe===B.q&&(B.q="",B.state=A.DOCTYPE);continue;case A.DOCTYPE_DTD:B.doctype+=fe,fe==="]"?B.state=A.DOCTYPE:W(fe)&&(B.state=A.DOCTYPE_DTD_QUOTED,B.q=fe);continue;case A.DOCTYPE_DTD_QUOTED:B.doctype+=fe,fe===B.q&&(B.state=A.DOCTYPE_DTD,B.q="");continue;case A.COMMENT:fe==="-"?B.state=A.COMMENT_ENDING:B.comment+=fe;continue;case A.COMMENT_ENDING:fe==="-"?(B.state=A.COMMENT_ENDED,B.comment=xe(B.opt,B.comment),B.comment&&de(B,"oncomment",B.comment),B.comment=""):(B.comment+="-"+fe,B.state=A.COMMENT);continue;case A.COMMENT_ENDED:fe!==">"?(ue(B,"Malformed comment"),B.comment+="--"+fe,B.state=A.COMMENT):B.state=A.TEXT;continue;case A.CDATA:fe==="]"?B.state=A.CDATA_ENDING:B.cdata+=fe;continue;case A.CDATA_ENDING:fe==="]"?B.state=A.CDATA_ENDING_2:(B.cdata+="]"+fe,B.state=A.CDATA);continue;case A.CDATA_ENDING_2:fe===">"?(B.cdata&&de(B,"oncdata",B.cdata),de(B,"onclosecdata"),B.cdata="",B.state=A.TEXT):fe==="]"?B.cdata+="]":(B.cdata+="]]"+fe,B.state=A.CDATA);continue;case A.PROC_INST:fe==="?"?B.state=A.PROC_INST_ENDING:q(fe)?B.state=A.PROC_INST_BODY:B.procInstName+=fe;continue;case A.PROC_INST_BODY:if(!B.procInstBody&&q(fe))continue;fe==="?"?B.state=A.PROC_INST_ENDING:B.procInstBody+=fe;continue;case A.PROC_INST_ENDING:fe===">"?(de(B,"onprocessinginstruction",{name:B.procInstName,body:B.procInstBody}),B.procInstName=B.procInstBody="",B.state=A.TEXT):(B.procInstBody+="?"+fe,B.state=A.PROC_INST_BODY);continue;case A.OPEN_TAG:R(se,fe)?B.tagName+=fe:(Z(B),fe===">"?re(B):fe==="/"?B.state=A.OPEN_TAG_SLASH:(q(fe)||ue(B,"Invalid character in tag name"),B.state=A.ATTRIB));continue;case A.OPEN_TAG_SLASH:fe===">"?(re(B,!0),F(B)):(ue(B,"Forward-slash in opening tag not followed by >"),B.state=A.ATTRIB);continue;case A.ATTRIB:if(q(fe))continue;fe===">"?re(B):fe==="/"?B.state=A.OPEN_TAG_SLASH:R(ae,fe)?(B.attribName=fe,B.attribValue="",B.state=A.ATTRIB_NAME):ue(B,"Invalid attribute name");continue;case A.ATTRIB_NAME:fe==="="?B.state=A.ATTRIB_VALUE:fe===">"?(ue(B,"Attribute without value"),B.attribValue=B.attribName,Y(B),re(B)):q(fe)?B.state=A.ATTRIB_NAME_SAW_WHITE:R(se,fe)?B.attribName+=fe:ue(B,"Invalid attribute name");continue;case A.ATTRIB_NAME_SAW_WHITE:if(fe==="=")B.state=A.ATTRIB_VALUE;else{if(q(fe))continue;ue(B,"Attribute without value"),B.tag.attributes[B.attribName]="",B.attribValue="",de(B,"onattribute",{name:B.attribName,value:""}),B.attribName="",fe===">"?re(B):R(ae,fe)?(B.attribName=fe,B.state=A.ATTRIB_NAME):(ue(B,"Invalid attribute name"),B.state=A.ATTRIB)}continue;case A.ATTRIB_VALUE:if(q(fe))continue;W(fe)?(B.q=fe,B.state=A.ATTRIB_VALUE_QUOTED):(ue(B,"Unquoted attribute value"),B.state=A.ATTRIB_VALUE_UNQUOTED,B.attribValue=fe);continue;case A.ATTRIB_VALUE_QUOTED:if(fe!==B.q){fe==="&"?B.state=A.ATTRIB_VALUE_ENTITY_Q:B.attribValue+=fe;continue}Y(B),B.q="",B.state=A.ATTRIB_VALUE_CLOSED;continue;case A.ATTRIB_VALUE_CLOSED:q(fe)?B.state=A.ATTRIB:fe===">"?re(B):fe==="/"?B.state=A.OPEN_TAG_SLASH:R(ae,fe)?(ue(B,"No whitespace between attributes"),B.attribName=fe,B.attribValue="",B.state=A.ATTRIB_NAME):ue(B,"Invalid attribute name");continue;case A.ATTRIB_VALUE_UNQUOTED:if(!H(fe)){fe==="&"?B.state=A.ATTRIB_VALUE_ENTITY_U:B.attribValue+=fe;continue}Y(B),fe===">"?re(B):B.state=A.ATTRIB;continue;case A.CLOSE_TAG:if(B.tagName)fe===">"?F(B):R(se,fe)?B.tagName+=fe:B.script?(B.script+="</"+B.tagName,B.tagName="",B.state=A.SCRIPT):(q(fe)||ue(B,"Invalid tagname in closing tag"),B.state=A.CLOSE_TAG_SAW_WHITE);else{if(q(fe))continue;y(ae,fe)?B.script?(B.script+="</"+fe,B.state=A.SCRIPT):ue(B,"Invalid tagname in closing tag."):B.tagName=fe}continue;case A.CLOSE_TAG_SAW_WHITE:if(q(fe))continue;fe===">"?F(B):ue(B,"Invalid characters in closing tag");continue;case A.TEXT_ENTITY:case A.ATTRIB_VALUE_ENTITY_Q:case A.ATTRIB_VALUE_ENTITY_U:var Me,Ne;switch(B.state){case A.TEXT_ENTITY:Me=A.TEXT,Ne="textNode";break;case A.ATTRIB_VALUE_ENTITY_Q:Me=A.ATTRIB_VALUE_QUOTED,Ne="attribValue";break;case A.ATTRIB_VALUE_ENTITY_U:Me=A.ATTRIB_VALUE_UNQUOTED,Ne="attribValue";break}fe===";"?(B[Ne]+=K(B),B.entity="",B.state=Me):R(B.entity.length?he:G,fe)?B.entity+=fe:(ue(B,"Invalid character in entity name"),B[Ne]+="&"+B.entity+fe,B.entity="",B.state=Me);continue;default:throw new Error(B,"Unknown state: "+B.state)}}return B.position>=B.bufferCheckPosition&&C(B),B}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */T.default||function(){var S=String.fromCharCode,B=Math.floor,me=function(){var we=16384,ke=[],Me,Ne,Le=-1,We=arguments.length;if(!We)return"";for(var Fe="";++Le<We;){var He=Number(arguments[Le]);if(!isFinite(He)||He<0||He>1114111||B(He)!==He)throw RangeError("Invalid code point: "+He);He<=65535?ke.push(He):(He-=65536,Me=(He>>10)+55296,Ne=He%1024+56320,ke.push(Me,Ne)),(Le+1===We||ke.length>we)&&(Fe+=S.apply(null,ke),ke.length=0)}return Fe};i.default?Object.defineProperty(String,"fromCodePoint",{value:me,configurable:!0,writable:!0}):String.fromCodePoint=me}()})(typeof d=="undefined"?(void 0).sax={}:d)}).call(this,s("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(s,z,d){z.exports=T;var h=s("events").EventEmitter,a=s("inherits");a(T,h),T.Readable=s("readable-stream/readable.js"),T.Writable=s("readable-stream/writable.js"),T.Duplex=s("readable-stream/duplex.js"),T.Transform=s("readable-stream/transform.js"),T.PassThrough=s("readable-stream/passthrough.js"),T.Stream=T;function T(){h.call(this)}T.prototype.pipe=function(_,x){var p=this;function f(g){_.writable&&(_.write(g)===!1&&p.pause&&p.pause())}p.on("data",f);function o(){p.readable&&p.resume&&p.resume()}_.on("drain",o),!_._isStdio&&(!x||x.end!==!1)&&(p.on("end",u),p.on("close",l));var i=!1;function u(){if(i)return;i=!0,_.end()}function l(){if(i)return;i=!0,typeof _.destroy=="function"&&_.destroy()}function v(g){if(m(),h.listenerCount(this,"error")===0)throw g}p.on("error",v),_.on("error",v);function m(){p.removeListener("data",f),_.removeListener("drain",o),p.removeListener("end",u),p.removeListener("close",l),p.removeListener("error",v),_.removeListener("error",v),p.removeListener("end",m),p.removeListener("close",m),_.removeListener("close",m)}return p.on("end",m),p.on("close",m),_.on("close",m),_.emit("pipe",p),_}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(s,z,d){(function(h){var a=s("./lib/request"),T=s("./lib/response"),_=s("xtend"),x=s("builtin-status-codes"),p=s("url"),f=d;f.request=function(o,i){typeof o=="string"?o=p.parse(o):o=_(o);var u=h.location.protocol.search(/^https?:$/)===-1?"http:":"",l=o.protocol||u,v=o.hostname||o.host,m=o.port,g=o.path||"/";v&&v.indexOf(":")!==-1&&(v="["+v+"]"),o.url=(v?l+"//"+v:"")+(m?":"+m:"")+g,o.method=(o.method||"GET").toUpperCase(),o.headers=o.headers||{};var E=new a(o);return i&&E.on("response",i),E},f.get=function(i,u){var l=f.request(i,u);return l.end(),l},f.ClientRequest=a,f.IncomingMessage=T.IncomingMessage,f.Agent=function(){},f.Agent.defaultMaxSockets=4,f.globalAgent=new f.Agent,f.STATUS_CODES=x,f.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(s,z,d){(function(h){"use strict";d.fetch=f(h.fetch)&&f(h.ReadableStream),d.writableStream=f(h.WritableStream),d.abortController=f(h.AbortController),d.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),d.blobConstructor=!0}catch(o){}var a;function T(){if(a!==void 0)return a;if(h.XMLHttpRequest){a=new h.XMLHttpRequest;try{a.open("GET",h.XDomainRequest?"/":"https://example.com")}catch(o){a=null}}else a=null;return a}function _(o){var i=T();if(!i)return!1;try{return i.responseType=o,i.responseType===o}catch(u){}return!1}var x=typeof h.ArrayBuffer!="undefined",p=x&&f(h.ArrayBuffer.prototype.slice);d.arraybuffer=d.fetch||x&&_("arraybuffer"),d.msstream=!d.fetch&&p&&_("ms-stream"),d.mozchunkedarraybuffer=!d.fetch&&x&&_("moz-chunked-arraybuffer"),d.overrideMimeType=d.fetch||(T()?f(T().overrideMimeType):!1),d.vbArray=f(h.VBArray);function f(o){return typeof o=="function"}a=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(s,z,d){(function(h,a,T){"use strict";var _=s("babel-runtime/core-js/object/keys"),x=p(_);function p(C){return C&&C.__esModule?C:{default:C}}var f=s("./capability"),o=s("inherits"),i=s("./response"),u=s("readable-stream"),l=s("to-arraybuffer"),v=i.IncomingMessage,m=i.readyStates;function g(C,M){return f.fetch&&M?"fetch":f.mozchunkedarraybuffer?"moz-chunked-arraybuffer":f.msstream?"ms-stream":f.arraybuffer&&C?"arraybuffer":f.vbArray&&C?"text:vbarray":"text"}var E=z.exports=function(C){var M=this;u.Writable.call(M),M._opts=C,M._body=[],M._headers={},C.auth&&M.setHeader("Authorization","Basic "+new T(C.auth).toString("base64")),(0,x.default)(C.headers).forEach(function(k){M.setHeader(k,C.headers[k])});var N,P=!0;if(C.mode==="disable-fetch"||"requestTimeout"in C&&!f.abortController)P=!1,N=!0;else if(C.mode==="prefer-streaming")N=!1;else if(C.mode==="allow-wrong-content-type")N=!f.overrideMimeType;else if(!C.mode||C.mode==="default"||C.mode==="prefer-fast")N=!0;else throw new Error("Invalid value for opts.mode");M._mode=g(N,P),M._fetchTimer=null,M.on("finish",function(){M._onFinish()})};o(E,u.Writable),E.prototype.setHeader=function(C,M){var N=this,P=C.toLowerCase();if(O.indexOf(P)!==-1)return;N._headers[P]={name:C,value:M}},E.prototype.getHeader=function(C){var M=this._headers[C.toLowerCase()];return M?M.value:null},E.prototype.removeHeader=function(C){var M=this;delete M._headers[C.toLowerCase()]},E.prototype._onFinish=function(){var C=this;if(C._destroyed)return;var M=C._opts,N=C._headers,P=null;M.method!=="GET"&&M.method!=="HEAD"&&(f.arraybuffer?P=l(T.concat(C._body)):f.blobConstructor?P=new a.Blob(C._body.map(function(L){return l(L)}),{type:(N["content-type"]||{}).value||""}):P=T.concat(C._body).toString());var k=[];if((0,x.default)(N).forEach(function(L){var U=N[L].name,J=N[L].value;Array.isArray(J)?J.forEach(function(ae){k.push([U,ae])}):k.push([U,J])}),C._mode==="fetch"){var b=null,V=null;if(f.abortController){var X=new AbortController;b=X.signal,C._fetchAbortController=X,"requestTimeout"in M&&M.requestTimeout!==0&&(C._fetchTimer=a.setTimeout(function(){C.emit("requestTimeout"),C._fetchAbortController&&C._fetchAbortController.abort()},M.requestTimeout))}a.fetch(C._opts.url,{method:C._opts.method,headers:k,body:P||void 0,mode:"cors",credentials:M.withCredentials?"include":"same-origin",signal:b}).then(function(L){C._fetchResponse=L,C._connect()},function(L){a.clearTimeout(C._fetchTimer),C._destroyed||C.emit("error",L)})}else{var D=C._xhr=new a.XMLHttpRequest;try{D.open(C._opts.method,C._opts.url,!0)}catch(L){h.nextTick(function(){C.emit("error",L)});return}"responseType"in D&&(D.responseType=C._mode.split(":")[0]),"withCredentials"in D&&(D.withCredentials=!!M.withCredentials),C._mode==="text"&&"overrideMimeType"in D&&D.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in M&&(D.timeout=M.requestTimeout,D.ontimeout=function(){C.emit("requestTimeout")}),k.forEach(function(L){D.setRequestHeader(L[0],L[1])}),C._response=null,D.onreadystatechange=function(){switch(D.readyState){case m.LOADING:case m.DONE:C._onXHRProgress();break}},C._mode==="moz-chunked-arraybuffer"&&(D.onprogress=function(){C._onXHRProgress()}),D.onerror=function(){if(C._destroyed)return;C.emit("error",new Error("XHR error"))};try{D.send(P)}catch(L){h.nextTick(function(){C.emit("error",L)});return}}};function w(C){try{var M=C.status;return M!==null&&M!==0}catch(N){return!1}}E.prototype._onXHRProgress=function(){var C=this;if(!w(C._xhr)||C._destroyed)return;C._response||C._connect(),C._response._onXHRProgress()},E.prototype._connect=function(){var C=this;if(C._destroyed)return;C._response=new v(C._xhr,C._fetchResponse,C._mode,C._fetchTimer),C._response.on("error",function(M){C.emit("error",M)}),C.emit("response",C._response)},E.prototype._write=function(C,M,N){var P=this;P._body.push(C),N()},E.prototype.abort=E.prototype.destroy=function(){var C=this;C._destroyed=!0,a.clearTimeout(C._fetchTimer),C._response&&(C._response._destroyed=!0),C._xhr?C._xhr.abort():C._fetchAbortController&&C._fetchAbortController.abort()},E.prototype.end=function(C,M,N){var P=this;typeof C=="function"&&(N=C,C=void 0),u.Writable.prototype.end.call(P,C,M,N)},E.prototype.flushHeaders=function(){},E.prototype.setTimeout=function(){},E.prototype.setNoDelay=function(){},E.prototype.setSocketKeepAlive=function(){};var O=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,s("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},s("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(s,z,d){(function(h,a,T){"use strict";var _=s("babel-runtime/core-js/promise"),x=p(_);function p(v){return v&&v.__esModule?v:{default:v}}var f=s("./capability"),o=s("inherits"),i=s("readable-stream"),u=d.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=d.IncomingMessage=function(v,m,g,E){var w=this;if(i.Readable.call(w),w._mode=g,w.headers={},w.rawHeaders=[],w.trailers={},w.rawTrailers=[],w.on("end",function(){h.nextTick(function(){w.emit("close")})}),g==="fetch"){var O=function b(){M.read().then(function(V){if(w._destroyed)return;if(V.done){a.clearTimeout(E),w.push(null);return}w.push(new T(V.value)),b()}).catch(function(V){a.clearTimeout(E),w._destroyed||w.emit("error",V)})};if(w._fetchResponse=m,w.url=m.url,w.statusCode=m.status,w.statusMessage=m.statusText,m.headers.forEach(function(b,V){w.headers[V.toLowerCase()]=b,w.rawHeaders.push(V,b)}),f.writableStream){var C=new WritableStream({write:function(V){return new x.default(function(X,D){w._destroyed?D():w.push(new T(V))?X():w._resumeFetch=X})},close:function(){a.clearTimeout(E),w._destroyed||w.push(null)},abort:function(V){w._destroyed||w.emit("error",V)}});try{m.body.pipeTo(C).catch(function(b){a.clearTimeout(E),w._destroyed||w.emit("error",b)});return}catch(b){}}var M=m.body.getReader();O()}else{w._xhr=v,w._pos=0,w.url=v.responseURL,w.statusCode=v.status,w.statusMessage=v.statusText;var N=v.getAllResponseHeaders().split(/\r?\n/);if(N.forEach(function(b){var V=b.match(/^([^:]+):\s*(.*)/);if(V){var X=V[1].toLowerCase();X==="set-cookie"?(w.headers[X]===void 0&&(w.headers[X]=[]),w.headers[X].push(V[2])):w.headers[X]!==void 0?w.headers[X]+=", "+V[2]:w.headers[X]=V[2],w.rawHeaders.push(V[1],V[2])}}),w._charset="x-user-defined",!f.overrideMimeType){var P=w.rawHeaders["mime-type"];if(P){var k=P.match(/;\s*charset=([^;])(;|$)/);k&&(w._charset=k[1].toLowerCase())}w._charset||(w._charset="utf-8")}}};o(l,i.Readable),l.prototype._read=function(){var v=this,m=v._resumeFetch;m&&(v._resumeFetch=null,m())},l.prototype._onXHRProgress=function(){var v=this,m=v._xhr,g=null;switch(v._mode){case"text:vbarray":if(m.readyState!==u.DONE)break;try{g=new a.VBArray(m.responseBody).toArray()}catch(M){}if(g!==null){v.push(new T(g));break}case"text":try{g=m.responseText}catch(M){v._mode="text:vbarray";break}if(g.length>v._pos){var E=g.substr(v._pos);if(v._charset==="x-user-defined"){for(var w=new T(E.length),O=0;O<E.length;O++)w[O]=E.charCodeAt(O)&255;v.push(w)}else v.push(E,v._charset);v._pos=g.length}break;case"arraybuffer":if(m.readyState!==u.DONE||!m.response)break;g=m.response,v.push(new T(new Uint8Array(g)));break;case"moz-chunked-arraybuffer":if(g=m.response,m.readyState!==u.LOADING||!g)break;v.push(new T(new Uint8Array(g)));break;case"ms-stream":if(g=m.response,m.readyState!==u.LOADING)break;var C=new a.MSStreamReader;C.onprogress=function(){C.result.byteLength>v._pos&&(v.push(new T(new Uint8Array(C.result.slice(v._pos)))),v._pos=C.result.byteLength)},C.onload=function(){v.push(null)},C.readAsArrayBuffer(g);break}v._xhr.readyState===u.DONE&&v._mode!=="ms-stream"&&v.push(null)}}).call(this,s("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},s("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(s,z,d){"use strict";var h=s("safe-buffer").Buffer,a=h.isEncoding||function(C){C=""+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 T(C){if(!C)return"utf8";for(var M;;)switch(C){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 C;default:if(M)return;C=(""+C).toLowerCase(),M=!0}}function _(C){var M=T(C);if(typeof M!="string"&&(h.isEncoding===a||!a(C)))throw new Error("Unknown encoding: "+C);return M||C}d.StringDecoder=x;function x(C){this.encoding=_(C);var M;switch(this.encoding){case"utf16le":this.text=v,this.end=m,M=4;break;case"utf8":this.fillLast=i,M=4;break;case"base64":this.text=g,this.end=E,M=3;break;default:this.write=w,this.end=O;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=h.allocUnsafe(M)}x.prototype.write=function(C){if(C.length===0)return"";var M,N;if(this.lastNeed){if(M=this.fillLast(C),M===void 0)return"";N=this.lastNeed,this.lastNeed=0}else N=0;return N<C.length?M?M+this.text(C,N):this.text(C,N):M||""},x.prototype.end=l,x.prototype.text=u,x.prototype.fillLast=function(C){if(this.lastNeed<=C.length)return C.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);C.copy(this.lastChar,this.lastTotal-this.lastNeed,0,C.length),this.lastNeed-=C.length};function p(C){return C<=127?0:C>>5===6?2:C>>4===14?3:C>>3===30?4:C>>6===2?-1:-2}function f(C,M,N){var P=M.length-1;if(P<N)return 0;var k=p(M[P]);return k>=0?(k>0&&(C.lastNeed=k-1),k):--P<N||k===-2?0:(k=p(M[P]),k>=0?(k>0&&(C.lastNeed=k-2),k):--P<N||k===-2?0:(k=p(M[P]),k>=0?(k>0&&(k===2?k=0:C.lastNeed=k-3),k):0))}function o(C,M,N){if((M[0]&192)!==128)return C.lastNeed=0,"\uFFFD";if(C.lastNeed>1&&M.length>1){if((M[1]&192)!==128)return C.lastNeed=1,"\uFFFD";if(C.lastNeed>2&&M.length>2&&(M[2]&192)!==128)return C.lastNeed=2,"\uFFFD"}}function i(C){var M=this.lastTotal-this.lastNeed,N=o(this,C,M);if(N!==void 0)return N;if(this.lastNeed<=C.length)return C.copy(this.lastChar,M,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);C.copy(this.lastChar,M,0,C.length),this.lastNeed-=C.length}function u(C,M){var N=f(this,C,M);if(!this.lastNeed)return C.toString("utf8",M);this.lastTotal=N;var P=C.length-(N-this.lastNeed);return C.copy(this.lastChar,0,P),C.toString("utf8",M,P)}function l(C){var M=C&&C.length?this.write(C):"";return this.lastNeed?M+"\uFFFD":M}function v(C,M){if((C.length-M)%2===0){var N=C.toString("utf16le",M);if(N){var P=N.charCodeAt(N.length-1);if(P>=55296&&P<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=C[C.length-2],this.lastChar[1]=C[C.length-1],N.slice(0,-1)}return N}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=C[C.length-1],C.toString("utf16le",M,C.length-1)}function m(C){var M=C&&C.length?this.write(C):"";if(this.lastNeed){var N=this.lastTotal-this.lastNeed;return M+this.lastChar.toString("utf16le",0,N)}return M}function g(C,M){var N=(C.length-M)%3;return N===0?C.toString("base64",M):(this.lastNeed=3-N,this.lastTotal=3,N===1?this.lastChar[0]=C[C.length-1]:(this.lastChar[0]=C[C.length-2],this.lastChar[1]=C[C.length-1]),C.toString("base64",M,C.length-N))}function E(C){var M=C&&C.length?this.write(C):"";return this.lastNeed?M+this.lastChar.toString("base64",0,3-this.lastNeed):M}function w(C){return C.toString(this.encoding)}function O(C){return C&&C.length?this.write(C):""}},{"safe-buffer":228}],236:[function(s,z,d){(function(h,a){var T=s("process/browser.js").nextTick,_=Function.prototype.apply,x=Array.prototype.slice,p={},f=0;d.setTimeout=function(){return new o(_.call(setTimeout,window,arguments),clearTimeout)},d.setInterval=function(){return new o(_.call(setInterval,window,arguments),clearInterval)},d.clearTimeout=d.clearInterval=function(i){i.close()};function o(i,u){this._id=i,this._clearFn=u}o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},d.enroll=function(i,u){clearTimeout(i._idleTimeoutId),i._idleTimeout=u},d.unenroll=function(i){clearTimeout(i._idleTimeoutId),i._idleTimeout=-1},d._unrefActive=d.active=function(i){clearTimeout(i._idleTimeoutId);var u=i._idleTimeout;u>=0&&(i._idleTimeoutId=setTimeout(function(){i._onTimeout&&i._onTimeout()},u))},d.setImmediate=typeof h=="function"?h:function(i){var u=f++,l=arguments.length<2?!1:x.call(arguments,1);return p[u]=!0,T(function(){p[u]&&(l?i.apply(null,l):i.call(null),d.clearImmediate(u))}),u},d.clearImmediate=typeof a=="function"?a:function(i){delete p[i]}}).call(this,s("timers").setImmediate,s("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(s,z,d){var h=s("buffer").Buffer;z.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(h.isBuffer(a)){for(var T=new Uint8Array(a.length),_=a.length,x=0;x<_;x++)T[x]=a[x];return T.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(s,z,d){"use strict";var h=s("punycode"),a=s("./util");d.parse=M,d.resolve=P,d.resolveObject=k,d.format=N,d.Url=T;function T(){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 _=/^([a-z0-9.+-]+:)/i,x=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["<",">",'"',"`"," ","\r",`
`," "],o=["{","}","|","\\","^","`"].concat(f),i=["'"].concat(o),u=["%","/","?",";","#"].concat(i),l=["/","?","#"],v=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,E={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},C=s("querystring");function M(b,V,X){if(b&&a.isObject(b)&&b instanceof T)return b;var D=new T;return D.parse(b,V,X),D}T.prototype.parse=function(b,V,X){if(!a.isString(b))throw new TypeError("Parameter 'url' must be a string, not "+typeof b);var D=b.indexOf("?"),L=D!==-1&&D<b.indexOf("#")?"?":"#",U=b.split(L),J=/\\/g;U[0]=U[0].replace(J,"/"),b=U.join(L);var ae=b;if(ae=ae.trim(),!X&&b.split("#").length===1){var se=p.exec(ae);if(se)return this.path=ae,this.href=ae,this.pathname=se[1],se[2]?(this.search=se[2],V?this.query=C.parse(this.search.substr(1)):this.query=this.search.substr(1)):V&&(this.search="",this.query={}),this}var G=_.exec(ae);if(G){G=G[0];var he=G.toLowerCase();this.protocol=he,ae=ae.substr(G.length)}if(X||G||ae.match(/^\/\/[^@\/]+@[^@\/]+/)){var q=ae.substr(0,2)==="//";q&&!(G&&w[G])&&(ae=ae.substr(2),this.slashes=!0)}if(!w[G]&&(q||G&&!O[G])){for(var W=-1,H=0;H<l.length;H++){var R=ae.indexOf(l[H]);R!==-1&&(W===-1||R<W)&&(W=R)}var y,A;W===-1?A=ae.lastIndexOf("@"):A=ae.lastIndexOf("@",W),A!==-1&&(y=ae.slice(0,A),ae=ae.slice(A+1),this.auth=decodeURIComponent(y)),W=-1;for(var H=0;H<u.length;H++){var R=ae.indexOf(u[H]);R!==-1&&(W===-1||R<W)&&(W=R)}W===-1&&(W=ae.length),this.host=ae.slice(0,W),ae=ae.slice(W),this.parseHost(),this.hostname=this.hostname||"";var ee=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ee)for(var oe=this.hostname.split(/\./),H=0,de=oe.length;H<de;H++){var be=oe[H];if(!be)continue;if(!be.match(m)){for(var xe="",te=0,le=be.length;te<le;te++)be.charCodeAt(te)>127?xe+="x":xe+=be[te];if(!xe.match(m)){var ue=oe.slice(0,H),Z=oe.slice(H+1),ne=be.match(g);ne&&(ue.push(ne[1]),Z.unshift(ne[2])),Z.length&&(ae="/"+Z.join(".")+ae),this.hostname=ue.join(".");break}}}this.hostname.length>v?this.hostname="":this.hostname=this.hostname.toLowerCase(),ee||(this.hostname=h.toASCII(this.hostname));var Y=this.port?":"+this.port:"",re=this.hostname||"";this.host=re+Y,this.href+=this.host,ee&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),ae[0]!=="/"&&(ae="/"+ae))}if(!E[he])for(var H=0,de=i.length;H<de;H++){var F=i[H];if(ae.indexOf(F)===-1)continue;var K=encodeURIComponent(F);K===F&&(K=escape(F)),ae=ae.split(F).join(K)}var pe=ae.indexOf("#");pe!==-1&&(this.hash=ae.substr(pe),ae=ae.slice(0,pe));var $=ae.indexOf("?");if($!==-1?(this.search=ae.substr($),this.query=ae.substr($+1),V&&(this.query=C.parse(this.query)),ae=ae.slice(0,$)):V&&(this.search="",this.query={}),ae&&(this.pathname=ae),O[he]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Y=this.pathname||"",j=this.search||"";this.path=Y+j}return this.href=this.format(),this};function N(b){return a.isString(b)&&(b=M(b)),b instanceof T?b.format():T.prototype.format.call(b)}T.prototype.format=function(){var b=this.auth||"";b&&(b=encodeURIComponent(b),b=b.replace(/%3A/i,":"),b+="@");var V=this.protocol||"",X=this.pathname||"",D=this.hash||"",L=!1,U="";this.host?L=b+this.host:this.hostname&&(L=b+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(L+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(U=C.stringify(this.query));var J=this.search||U&&"?"+U||"";return V&&V.substr(-1)!==":"&&(V+=":"),this.slashes||(!V||O[V])&&L!==!1?(L="//"+(L||""),X&&X.charAt(0)!=="/"&&(X="/"+X)):L||(L=""),D&&D.charAt(0)!=="#"&&(D="#"+D),J&&J.charAt(0)!=="?"&&(J="?"+J),X=X.replace(/[?#]/g,function(ae){return encodeURIComponent(ae)}),J=J.replace("#","%23"),V+L+X+J+D};function P(b,V){return M(b,!1,!0).resolve(V)}T.prototype.resolve=function(b){return this.resolveObject(M(b,!1,!0)).format()};function k(b,V){return b?M(b,!1,!0).resolveObject(V):V}T.prototype.resolveObject=function(b){if(a.isString(b)){var V=new T;V.parse(b,!1,!0),b=V}for(var X=new T,D=Object.keys(this),L=0;L<D.length;L++){var U=D[L];X[U]=this[U]}if(X.hash=b.hash,b.href==="")return X.href=X.format(),X;if(b.slashes&&!b.protocol){for(var J=Object.keys(b),ae=0;ae<J.length;ae++){var se=J[ae];se!=="protocol"&&(X[se]=b[se])}return O[X.protocol]&&X.hostname&&!X.pathname&&(X.path=X.pathname="/"),X.href=X.format(),X}if(b.protocol&&b.protocol!==X.protocol){if(!O[b.protocol]){for(var G=Object.keys(b),he=0;he<G.length;he++){var q=G[he];X[q]=b[q]}return X.href=X.format(),X}if(X.protocol=b.protocol,!b.host&&!w[b.protocol]){for(var de=(b.pathname||"").split("/");de.length&&!(b.host=de.shift()););b.host||(b.host=""),b.hostname||(b.hostname=""),de[0]!==""&&de.unshift(""),de.length<2&&de.unshift(""),X.pathname=de.join("/")}else X.pathname=b.pathname;if(X.search=b.search,X.query=b.query,X.host=b.host||"",X.auth=b.auth,X.hostname=b.hostname||b.host,X.port=b.port,X.pathname||X.search){var W=X.pathname||"",H=X.search||"";X.path=W+H}return X.slashes=X.slashes||b.slashes,X.href=X.format(),X}var R=X.pathname&&X.pathname.charAt(0)==="/",y=b.host||b.pathname&&b.pathname.charAt(0)==="/",A=y||R||X.host&&b.pathname,ee=A,oe=X.pathname&&X.pathname.split("/")||[],de=b.pathname&&b.pathname.split("/")||[],be=X.protocol&&!O[X.protocol];if(be&&(X.hostname="",X.port=null,X.host&&(oe[0]===""?oe[0]=X.host:oe.unshift(X.host)),X.host="",b.protocol&&(b.hostname=null,b.port=null,b.host&&(de[0]===""?de[0]=b.host:de.unshift(b.host)),b.host=null),A=A&&(de[0]===""||oe[0]==="")),y)X.host=b.host||b.host===""?b.host:X.host,X.hostname=b.hostname||b.hostname===""?b.hostname:X.hostname,X.search=b.search,X.query=b.query,oe=de;else if(de.length)oe||(oe=[]),oe.pop(),oe=oe.concat(de),X.search=b.search,X.query=b.query;else if(!a.isNullOrUndefined(b.search)){if(be){X.hostname=X.host=oe.shift();var xe=X.host&&X.host.indexOf("@")>0?X.host.split("@"):!1;xe&&(X.auth=xe.shift(),X.host=X.hostname=xe.shift())}return X.search=b.search,X.query=b.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(!oe.length)return X.pathname=null,X.search?X.path="/"+X.search:X.path=null,X.href=X.format(),X;for(var te=oe.slice(-1)[0],le=(X.host||b.host||oe.length>1)&&(te==="."||te==="..")||te==="",ue=0,Z=oe.length;Z>=0;Z--)te=oe[Z],te==="."?oe.splice(Z,1):te===".."?(oe.splice(Z,1),ue++):ue&&(oe.splice(Z,1),ue--);if(!A&&!ee)for(;ue--;ue)oe.unshift("..");A&&oe[0]!==""&&(!oe[0]||oe[0].charAt(0)!=="/")&&oe.unshift(""),le&&oe.join("/").substr(-1)!=="/"&&oe.push("");var ne=oe[0]===""||oe[0]&&oe[0].charAt(0)==="/";if(be){X.hostname=X.host=ne?"":oe.length?oe.shift():"";var xe=X.host&&X.host.indexOf("@")>0?X.host.split("@"):!1;xe&&(X.auth=xe.shift(),X.host=X.hostname=xe.shift())}return A=A||X.host&&oe.length,A&&!ne&&oe.unshift(""),oe.length?X.pathname=oe.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=b.auth||X.auth,X.slashes=X.slashes||b.slashes,X.href=X.format(),X},T.prototype.parseHost=function(){var b=this.host,V=x.exec(b);V&&(V=V[0],V!==":"&&(this.port=V.substr(1)),b=b.substr(0,b.length-V.length)),b&&(this.hostname=b)}},{"./util":239,punycode:209,querystring:212}],239:[function(s,z,d){"use strict";z.exports={isString:function(h){return typeof h=="string"},isObject:function(h){return typeof h=="object"&&h!==null},isNull:function(h){return h===null},isNullOrUndefined:function(h){return h==null}}},{}],240:[function(s,z,d){(function(h){z.exports=a;function a(_,x){if(T("noDeprecation"))return _;var p=!1;function f(){if(!p){if(T("throwDeprecation"))throw new Error(x);T("traceDeprecation")?console.trace(x):console.warn(x),p=!0}return _.apply(this,arguments)}return f}function T(_){try{if(!h.localStorage)return!1}catch(p){return!1}var x=h.localStorage[_];return x==null?!1:String(x).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(s,z,d){typeof Object.create=="function"?z.exports=function(a,T){a.super_=T,a.prototype=Object.create(T.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})}:z.exports=function(a,T){a.super_=T;var _=function(){};_.prototype=T.prototype,a.prototype=new _,a.prototype.constructor=a}},{}],242:[function(s,z,d){z.exports=function(a){return a&&typeof a=="object"&&typeof a.copy=="function"&&typeof a.fill=="function"&&typeof a.readUInt8=="function"}},{}],243:[function(s,z,d){(function(h,a){var T=/%[sdj%]/g;d.format=function(W){if(!P(W)){for(var H=[],R=0;R<arguments.length;R++)H.push(p(arguments[R]));return H.join(" ")}for(var R=1,y=arguments,A=y.length,ee=String(W).replace(T,function(de){if(de==="%%")return"%";if(R>=A)return de;switch(de){case"%s":return String(y[R++]);case"%d":return Number(y[R++]);case"%j":try{return JSON.stringify(y[R++])}catch(be){return"[Circular]"}default:return de}}),oe=y[R];R<A;oe=y[++R])C(oe)||!X(oe)?ee+=" "+oe:ee+=" "+p(oe);return ee},d.deprecate=function(W,H){if(b(a.process))return function(){return d.deprecate(W,H).apply(this,arguments)};if(h.noDeprecation===!0)return W;var R=!1;function y(){if(!R){if(h.throwDeprecation)throw new Error(H);h.traceDeprecation?console.trace(H):console.error(H),R=!0}return W.apply(this,arguments)}return y};var _={},x;d.debuglog=function(W){if(b(x)&&(x=h.env.NODE_DEBUG||""),W=W.toUpperCase(),!_[W])if(new RegExp("\\b"+W+"\\b","i").test(x)){var H=h.pid;_[W]=function(){var R=d.format.apply(d,arguments);console.error("%s %d: %s",W,H,R)}}else _[W]=function(){};return _[W]};function p(W,H){var R={seen:[],stylize:o};return arguments.length>=3&&(R.depth=arguments[2]),arguments.length>=4&&(R.colors=arguments[3]),O(H)?R.showHidden=H:H&&d._extend(R,H),b(R.showHidden)&&(R.showHidden=!1),b(R.depth)&&(R.depth=2),b(R.colors)&&(R.colors=!1),b(R.customInspect)&&(R.customInspect=!0),R.colors&&(R.stylize=f),u(R,W,R.depth)}d.inspect=p,p.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]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function f(W,H){var R=p.styles[H];return R?"["+p.colors[R][0]+"m"+W+"["+p.colors[R][1]+"m":W}function o(W,H){return W}function i(W){var H={};return W.forEach(function(R,y){H[R]=!0}),H}function u(W,H,R){if(W.customInspect&&H&&U(H.inspect)&&H.inspect!==d.inspect&&!(H.constructor&&H.constructor.prototype===H)){var y=H.inspect(R,W);return P(y)||(y=u(W,y,R)),y}var A=l(W,H);if(A)return A;var ee=Object.keys(H),oe=i(ee);if(W.showHidden&&(ee=Object.getOwnPropertyNames(H)),L(H)&&(ee.indexOf("message")>=0||ee.indexOf("description")>=0))return v(H);if(ee.length===0){if(U(H)){var de=H.name?": "+H.name:"";return W.stylize("[Function"+de+"]","special")}if(V(H))return W.stylize(RegExp.prototype.toString.call(H),"regexp");if(D(H))return W.stylize(Date.prototype.toString.call(H),"date");if(L(H))return v(H)}var be="",xe=!1,te=["{","}"];if(w(H)&&(xe=!0,te=["[","]"]),U(H)){var le=H.name?": "+H.name:"";be=" [Function"+le+"]"}if(V(H)&&(be=" "+RegExp.prototype.toString.call(H)),D(H)&&(be=" "+Date.prototype.toUTCString.call(H)),L(H)&&(be=" "+v(H)),ee.length===0&&(!xe||H.length==0))return te[0]+be+te[1];if(R<0)return V(H)?W.stylize(RegExp.prototype.toString.call(H),"regexp"):W.stylize("[Object]","special");W.seen.push(H);var ue;return xe?ue=m(W,H,R,oe,ee):ue=ee.map(function(Z){return g(W,H,R,oe,Z,xe)}),W.seen.pop(),E(ue,be,te)}function l(W,H){if(b(H))return W.stylize("undefined","undefined");if(P(H)){var R="'"+JSON.stringify(H).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return W.stylize(R,"string")}if(N(H))return W.stylize(""+H,"number");if(O(H))return W.stylize(""+H,"boolean");if(C(H))return W.stylize("null","null")}function v(W){return"["+Error.prototype.toString.call(W)+"]"}function m(W,H,R,y,A){for(var ee=[],oe=0,de=H.length;oe<de;++oe)q(H,String(oe))?ee.push(g(W,H,R,y,String(oe),!0)):ee.push("");return A.forEach(function(be){be.match(/^\d+$/)||ee.push(g(W,H,R,y,be,!0))}),ee}function g(W,H,R,y,A,ee){var oe,de,be;if(be=Object.getOwnPropertyDescriptor(H,A)||{value:H[A]},be.get?be.set?de=W.stylize("[Getter/Setter]","special"):de=W.stylize("[Getter]","special"):be.set&&(de=W.stylize("[Setter]","special")),q(y,A)||(oe="["+A+"]"),de||(W.seen.indexOf(be.value)<0?(C(R)?de=u(W,be.value,null):de=u(W,be.value,R-1),de.indexOf(`
`)>-1&&(ee?de=de.split(`
`).map(function(xe){return" "+xe}).join(`
`).substr(2):de=`
`+de.split(`
`).map(function(xe){return" "+xe}).join(`
`))):de=W.stylize("[Circular]","special")),b(oe)){if(ee&&A.match(/^\d+$/))return de;oe=JSON.stringify(""+A),oe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(oe=oe.substr(1,oe.length-2),oe=W.stylize(oe,"name")):(oe=oe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),oe=W.stylize(oe,"string"))}return oe+": "+de}function E(W,H,R){var y=0,A=W.reduce(function(ee,oe){return y++,oe.indexOf(`
`)>=0&&y++,ee+oe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return A>60?R[0]+(H===""?"":H+`
`)+" "+W.join(`,
`)+" "+R[1]:R[0]+H+" "+W.join(", ")+" "+R[1]}function w(W){return Array.isArray(W)}d.isArray=w;function O(W){return typeof W=="boolean"}d.isBoolean=O;function C(W){return W===null}d.isNull=C;function M(W){return W==null}d.isNullOrUndefined=M;function N(W){return typeof W=="number"}d.isNumber=N;function P(W){return typeof W=="string"}d.isString=P;function k(W){return typeof W=="symbol"}d.isSymbol=k;function b(W){return W===void 0}d.isUndefined=b;function V(W){return X(W)&&ae(W)==="[object RegExp]"}d.isRegExp=V;function X(W){return typeof W=="object"&&W!==null}d.isObject=X;function D(W){return X(W)&&ae(W)==="[object Date]"}d.isDate=D;function L(W){return X(W)&&(ae(W)==="[object Error]"||W instanceof Error)}d.isError=L;function U(W){return typeof W=="function"}d.isFunction=U;function J(W){return W===null||typeof W=="boolean"||typeof W=="number"||typeof W=="string"||typeof W=="symbol"||typeof W=="undefined"}d.isPrimitive=J,d.isBuffer=s("./support/isBuffer");function ae(W){return Object.prototype.toString.call(W)}function se(W){return W<10?"0"+W.toString(10):W.toString(10)}var G=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function he(){var W=new Date,H=[se(W.getHours()),se(W.getMinutes()),se(W.getSeconds())].join(":");return[W.getDate(),G[W.getMonth()],H].join(" ")}d.log=function(){console.log("%s - %s",he(),d.format.apply(d,arguments))},d.inherits=s("inherits"),d._extend=function(W,H){if(!H||!X(H))return W;for(var R=Object.keys(H),y=R.length;y--;)W[R[y]]=H[R[y]];return W};function q(W,H){return Object.prototype.hasOwnProperty.call(W,H)}}).call(this,s("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(s,z,d){"use strict";(function(){"use strict";d.stripBOM=function(h){return h[0]==="\uFEFF"?h.substring(1):h}}).call(void 0)},{}],245:[function(s,z,d){"use strict";var h=s("babel-runtime/helpers/typeof"),a=x(h),T=s("babel-runtime/core-js/object/keys"),_=x(T);function x(p){return p&&p.__esModule?p:{default:p}}(function(){"use strict";var p,f,o,i,u,l={}.hasOwnProperty;p=s("xmlbuilder"),f=s("./defaults").defaults,i=function(m){return typeof m=="string"&&(m.indexOf("&")>=0||m.indexOf(">")>=0||m.indexOf("<")>=0)},u=function(m){return"<![CDATA["+o(m)+"]]>"},o=function(m){return m.replace("]]>","]]]]><![CDATA[>")},d.Builder=function(){function v(m){var g,E,w;this.options={},E=f["0.2"];for(g in E){if(!l.call(E,g))continue;w=E[g],this.options[g]=w}for(g in m){if(!l.call(m,g))continue;w=m[g],this.options[g]=w}}return v.prototype.buildObject=function(m){var g,E,w,O,C;return g=this.options.attrkey,E=this.options.charkey,(0,_.default)(m).length===1&&this.options.rootName===f["0.2"].rootName?(C=(0,_.default)(m)[0],m=m[C]):C=this.options.rootName,w=function(M){return function(N,P){var k,b,V,X,D,L;if((typeof P=="undefined"?"undefined":(0,a.default)(P))!=="object")M.options.cdata&&i(P)?N.raw(u(P)):N.txt(P);else if(Array.isArray(P))for(X in P){if(!l.call(P,X))continue;b=P[X];for(D in b)V=b[D],N=w(N.ele(D),V).up()}else for(D in P){if(!l.call(P,D))continue;if(b=P[D],D===g){if((typeof b=="undefined"?"undefined":(0,a.default)(b))==="object")for(k in b)L=b[k],N=N.att(k,L)}else if(D===E)M.options.cdata&&i(b)?N=N.raw(u(b)):N=N.txt(b);else if(Array.isArray(b))for(X in b){if(!l.call(b,X))continue;V=b[X],typeof V=="string"?M.options.cdata&&i(V)?N=N.ele(D).raw(u(V)).up():N=N.ele(D,V).up():N=w(N.ele(D),V).up()}else(typeof b=="undefined"?"undefined":(0,a.default)(b))==="object"?N=w(N.ele(D),b).up():typeof b=="string"&&M.options.cdata&&i(b)?N=N.ele(D).raw(u(b)).up():(b==null&&(b=""),N=N.ele(D,b.toString()).up())}return N}}(this),O=p.create(C,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),w(O,m).end(this.options.renderOpts)},v}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(s,z,d){"use strict";(function(){d.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/promise"),a=i(h),T=s("babel-runtime/core-js/object/get-own-property-names"),_=i(T),x=s("babel-runtime/core-js/object/keys"),p=i(x),f=s("babel-runtime/helpers/typeof"),o=i(f);function i(u){return u&&u.__esModule?u:{default:u}}(function(){"use strict";var u,l,v,m,g,E,w,O,C=function(k,b){return function(){return k.apply(b,arguments)}},M=function(k,b){for(var V in b)N.call(b,V)&&(k[V]=b[V]);function X(){this.constructor=k}return X.prototype=b.prototype,k.prototype=new X,k.__super__=b.prototype,k},N={}.hasOwnProperty;w=s("sax"),v=s("events"),u=s("./bom"),E=s("./processors"),O=s("timers").setImmediate,l=s("./defaults").defaults,m=function(k){return(typeof k=="undefined"?"undefined":(0,o.default)(k))==="object"&&k!=null&&(0,p.default)(k).length===0},g=function(k,b,V){var X,D,L;for(X=0,D=k.length;X<D;X++)L=k[X],b=L(b,V);return b},d.Parser=function(P){M(k,P);function k(b){this.parseStringPromise=C(this.parseStringPromise,this),this.parseString=C(this.parseString,this),this.reset=C(this.reset,this),this.assignOrPush=C(this.assignOrPush,this),this.processAsync=C(this.processAsync,this);var V,X,D;if(!(this instanceof d.Parser))return new d.Parser(b);this.options={},X=l["0.2"];for(V in X){if(!N.call(X,V))continue;D=X[V],this.options[V]=D}for(V in b){if(!N.call(b,V))continue;D=b[V],this.options[V]=D}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(E.normalize)),this.reset()}return k.prototype.processAsync=function(){var b,V;try{return this.remaining.length<=this.options.chunkSize?(b=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(b),this.saxParser.close()):(b=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(b),O(this.processAsync))}catch(X){if(V=X,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(V)}},k.prototype.assignOrPush=function(b,V,X){return V in b?(b[V]instanceof Array||(b[V]=[b[V]]),b[V].push(X)):this.options.explicitArray?b[V]=[X]:b[V]=X},k.prototype.reset=function(){var b,V,X,D;return this.removeAllListeners(),this.saxParser=w.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(L){return function(U){if(L.saxParser.resume(),!L.saxParser.errThrown)return L.saxParser.errThrown=!0,L.emit("error",U)}}(this),this.saxParser.onend=function(L){return function(){if(!L.saxParser.ended)return L.saxParser.ended=!0,L.emit("end",L.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,D=[],b=this.options.attrkey,V=this.options.charkey,this.saxParser.onopentag=function(L){return function(U){var J,ae,se,G,he;if(se={},se[V]="",!L.options.ignoreAttrs){he=U.attributes;for(J in he){if(!N.call(he,J))continue;!(b in se)&&!L.options.mergeAttrs&&(se[b]={}),ae=L.options.attrValueProcessors?g(L.options.attrValueProcessors,U.attributes[J],J):U.attributes[J],G=L.options.attrNameProcessors?g(L.options.attrNameProcessors,J):J,L.options.mergeAttrs?L.assignOrPush(se,G,ae):se[b][G]=ae}}return se["#name"]=L.options.tagNameProcessors?g(L.options.tagNameProcessors,U.name):U.name,L.options.xmlns&&(se[L.options.xmlnskey]={uri:U.uri,local:U.local}),D.push(se)}}(this),this.saxParser.onclosetag=function(L){return function(){var U,J,ae,se,G,he,q,W,H,R;if(he=D.pop(),G=he["#name"],(!L.options.explicitChildren||!L.options.preserveChildrenOrder)&&delete he["#name"],he.cdata===!0&&(U=he.cdata,delete he.cdata),H=D[D.length-1],he[V].match(/^\s*$/)&&!U?(J=he[V],delete he[V]):(L.options.trim&&(he[V]=he[V].trim()),L.options.normalize&&(he[V]=he[V].replace(/\s{2,}/g," ").trim()),he[V]=L.options.valueProcessors?g(L.options.valueProcessors,he[V],G):he[V],(0,p.default)(he).length===1&&V in he&&!L.EXPLICIT_CHARKEY&&(he=he[V])),m(he)&&(he=L.options.emptyTag!==""?L.options.emptyTag:J),L.options.validator!=null&&(R="/"+function(){var y,A,ee;for(ee=[],y=0,A=D.length;y<A;y++)se=D[y],ee.push(se["#name"]);return ee}().concat(G).join("/"),function(){var y;try{return he=L.options.validator(R,H&&H[G],he)}catch(A){return y=A,L.emit("error",y)}}()),L.options.explicitChildren&&!L.options.mergeAttrs&&(typeof he=="undefined"?"undefined":(0,o.default)(he))==="object"){if(!L.options.preserveChildrenOrder)se={},L.options.attrkey in he&&(se[L.options.attrkey]=he[L.options.attrkey],delete he[L.options.attrkey]),!L.options.charsAsChildren&&L.options.charkey in he&&(se[L.options.charkey]=he[L.options.charkey],delete he[L.options.charkey]),(0,_.default)(he).length>0&&(se[L.options.childkey]=he),he=se;else if(H){H[L.options.childkey]=H[L.options.childkey]||[],q={};for(ae in he){if(!N.call(he,ae))continue;q[ae]=he[ae]}H[L.options.childkey].push(q),delete he["#name"],(0,p.default)(he).length===1&&V in he&&!L.EXPLICIT_CHARKEY&&(he=he[V])}}return D.length>0?L.assignOrPush(H,G,he):(L.options.explicitRoot&&(W=he,he={},he[G]=W),L.resultObject=he,L.saxParser.ended=!0,L.emit("end",L.resultObject))}}(this),X=function(L){return function(U){var J,ae;if(ae=D[D.length-1],ae)return ae[V]+=U,L.options.explicitChildren&&L.options.preserveChildrenOrder&&L.options.charsAsChildren&&(L.options.includeWhiteChars||U.replace(/\\n/g,"").trim()!=="")&&(ae[L.options.childkey]=ae[L.options.childkey]||[],J={"#name":"__text__"},J[V]=U,L.options.normalize&&(J[V]=J[V].replace(/\s{2,}/g," ").trim()),ae[L.options.childkey].push(J)),ae}}(this),this.saxParser.ontext=X,this.saxParser.oncdata=function(L){return function(U){var J;if(J=X(U),J)return J.cdata=!0}}(this)},k.prototype.parseString=function(b,V){var X;V!=null&&typeof V=="function"&&(this.on("end",function(D){return this.reset(),V(null,D)}),this.on("error",function(D){return this.reset(),V(D)}));try{return b=b.toString(),b.trim()===""?(this.emit("end",null),!0):(b=u.stripBOM(b),this.options.async?(this.remaining=b,O(this.processAsync),this.saxParser):this.saxParser.write(b).close())}catch(D){if(X=D,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw X}else return this.emit("error",X),this.saxParser.errThrown=!0}},k.prototype.parseStringPromise=function(b){return new a.default(function(V){return function(X,D){return V.parseString(b,function(L,U){return L?D(L):X(U)})}}(this))},k}(v),d.parseString=function(P,k,b){var V,X,D;return b!=null?(typeof b=="function"&&(V=b),(typeof k=="undefined"?"undefined":(0,o.default)(k))==="object"&&(X=k)):(typeof k=="function"&&(V=k),X={}),D=new d.Parser(X),D.parseString(P,V)},d.parseStringPromise=function(P,k){var b,V;return(typeof k=="undefined"?"undefined":(0,o.default)(k))==="object"&&(b=k),V=new d.Parser(b),V.parseStringPromise(P)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(s,z,d){"use strict";(function(){"use strict";var h;h=new RegExp(/(?!xmlns)^.*:/),d.normalize=function(a){return a.toLowerCase()},d.firstCharLowerCase=function(a){return a.charAt(0).toLowerCase()+a.slice(1)},d.stripPrefix=function(a){return a.replace(h,"")},d.parseNumbers=function(a){return isNaN(a)||(a=a%1===0?parseInt(a,10):parseFloat(a)),a},d.parseBooleans=function(a){return/^(?:true|false)$/i.test(a)&&(a=a.toLowerCase()==="true"),a}}).call(void 0)},{}],249:[function(s,z,d){"use strict";(function(){"use strict";var h,a,T,_,x=function(o,i){for(var u in i)p.call(i,u)&&(o[u]=i[u]);function l(){this.constructor=o}return l.prototype=i.prototype,o.prototype=new l,o.__super__=i.prototype,o},p={}.hasOwnProperty;a=s("./defaults"),h=s("./builder"),T=s("./parser"),_=s("./processors"),d.defaults=a.defaults,d.processors=_,d.ValidationError=function(f){x(o,f);function o(i){this.message=i}return o}(Error),d.Builder=h.Builder,d.Parser=T.Parser,d.parseString=T.parseString,d.parseStringPromise=T.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(s,z,d){"use strict";(function(){z.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(s,z,d){"use strict";(function(){z.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/get-prototype-of"),a=f(h),T=s("babel-runtime/helpers/typeof"),_=f(T),x=s("babel-runtime/core-js/object/assign"),p=f(x);function f(o){return o&&o.__esModule?o:{default:o}}(function(){var o,i,u,l,v,m,g,E=[].slice,w={}.hasOwnProperty;o=function(){var C,M,N,P,k,b;if(b=arguments[0],k=2<=arguments.length?E.call(arguments,1):[],v(p.default))p.default.apply(null,arguments);else for(C=0,N=k.length;C<N;C++)if(P=k[C],P!=null)for(M in P){if(!w.call(P,M))continue;b[M]=P[M]}return b},v=function(C){return!!C&&Object.prototype.toString.call(C)==="[object Function]"},m=function(C){var M;return!!C&&((M=typeof C=="undefined"?"undefined":(0,_.default)(C))==="function"||M==="object")},u=function(C){return v(Array.isArray)?Array.isArray(C):Object.prototype.toString.call(C)==="[object Array]"},l=function(C){var M;if(u(C))return!C.length;for(M in C){if(!w.call(C,M))continue;return!1}return!0},g=function(C){var M,N;return m(C)&&(N=(0,a.default)(C))&&(M=N.constructor)&&typeof M=="function"&&M instanceof M&&Function.prototype.toString.call(M)===Function.prototype.toString.call(Object)},i=function(C){return v(C.valueOf)?C.valueOf():C},z.exports.assign=o,z.exports.isFunction=v,z.exports.isObject=m,z.exports.isArray=u,z.exports.isEmpty=l,z.exports.isPlainObject=g,z.exports.getValue=i}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(s,z,d){"use strict";(function(){z.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/create"),a=T(h);function T(_){return _&&_.__esModule?_:{default:_}}(function(){var _,x,p;_=s("./NodeType"),p=s("./XMLNode"),z.exports=x=function(){function f(o,i,u){if(this.parent=o,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),i==null)throw new Error("Missing attribute name. "+this.debugInfo(i));this.name=this.stringify.name(i),this.value=this.stringify.attValue(u),this.type=_.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(f.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(f.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(f.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(f.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(f.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(f.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(f.prototype,"specified",{get:function(){return!0}}),f.prototype.clone=function(){return(0,a.default)(this)},f.prototype.toString=function(o){return this.options.writer.attribute(this,this.options.writer.filterOptions(o))},f.prototype.debugInfo=function(o){return o=o||this.name,o==null?"parent: <"+this.parent.name+">":"attribute: {"+o+"}, parent: <"+this.parent.name+">"},f.prototype.isEqualNode=function(o){return o.namespaceURI!==this.namespaceURI||(o.prefix!==this.prefix||o.localName!==this.localName)?!1:!(o.value!==this.value)},f}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/create"),a=T(h);function T(_){return _&&_.__esModule?_:{default:_}}(function(){var _,x,p,f=function(u,l){for(var v in l)o.call(l,v)&&(u[v]=l[v]);function m(){this.constructor=u}return m.prototype=l.prototype,u.prototype=new m,u.__super__=l.prototype,u},o={}.hasOwnProperty;_=s("./NodeType"),p=s("./XMLCharacterData"),z.exports=x=function(i){f(u,i);function u(l,v){if(u.__super__.constructor.call(this,l),v==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=_.CData,this.value=this.stringify.cdata(v)}return u.prototype.clone=function(){return(0,a.default)(this)},u.prototype.toString=function(l){return this.options.writer.cdata(this,this.options.writer.filterOptions(l))},u}(p)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/create"),a=T(h);function T(_){return _&&_.__esModule?_:{default:_}}(function(){var _,x,p=function(i,u){for(var l in u)f.call(u,l)&&(i[l]=u[l]);function v(){this.constructor=i}return v.prototype=u.prototype,i.prototype=new v,i.__super__=u.prototype,i},f={}.hasOwnProperty;x=s("./XMLNode"),z.exports=_=function(o){p(i,o);function i(u){i.__super__.constructor.call(this,u),this.value=""}return Object.defineProperty(i.prototype,"data",{get:function(){return this.value},set:function(l){return this.value=l||""}}),Object.defineProperty(i.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(l){return this.value=l||""}}),i.prototype.clone=function(){return(0,a.default)(this)},i.prototype.substringData=function(u,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.appendData=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.insertData=function(u,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.deleteData=function(u,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.replaceData=function(u,l,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.isEqualNode=function(u){return i.__super__.isEqualNode.apply(this,arguments).isEqualNode(u)?!(u.data!==this.data):!1},i}(x)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/create"),a=T(h);function T(_){return _&&_.__esModule?_:{default:_}}(function(){var _,x,p,f=function(u,l){for(var v in l)o.call(l,v)&&(u[v]=l[v]);function m(){this.constructor=u}return m.prototype=l.prototype,u.prototype=new m,u.__super__=l.prototype,u},o={}.hasOwnProperty;_=s("./NodeType"),x=s("./XMLCharacterData"),z.exports=p=function(i){f(u,i);function u(l,v){if(u.__super__.constructor.call(this,l),v==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=_.Comment,this.value=this.stringify.comment(v)}return u.prototype.clone=function(){return(0,a.default)(this)},u.prototype.toString=function(l){return this.options.writer.comment(this,this.options.writer.filterOptions(l))},u}(x)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/keys"),a=x(h),T=s("babel-runtime/core-js/object/create"),_=x(T);function x(p){return p&&p.__esModule?p:{default:p}}(function(){var p,f,o;f=s("./XMLDOMErrorHandler"),o=s("./XMLDOMStringList"),z.exports=p=function(){function i(){var u;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new f,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=u=(0,_.default)(this.defaultParams)}return Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new o((0,a.default)(this.defaultParams))}}),i.prototype.getParameter=function(u){return this.params.hasOwnProperty(u)?this.params[u]:null},i.prototype.canSetParameter=function(u,l){return!0},i.prototype.setParameter=function(u,l){return l!=null?this.params[u]=l:delete this.params[u]},i}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(s,z,d){"use strict";(function(){var h;z.exports=h=function(){function a(){}return a.prototype.handleError=function(T){throw new Error(T)},a}()}).call(void 0)},{}],260:[function(s,z,d){"use strict";(function(){var h;z.exports=h=function(){function a(){}return a.prototype.hasFeature=function(T,_){return!0},a.prototype.createDocumentType=function(T,_,x){throw new Error("This DOM method is not implemented.")},a.prototype.createDocument=function(T,_,x){throw new Error("This DOM method is not implemented.")},a.prototype.createHTMLDocument=function(T){throw new Error("This DOM method is not implemented.")},a.prototype.getFeature=function(T,_){throw new Error("This DOM method is not implemented.")},a}()}).call(void 0)},{}],261:[function(s,z,d){"use strict";(function(){var h;z.exports=h=function(){function a(T){this.arr=T||[]}return Object.defineProperty(a.prototype,"length",{get:function(){return this.arr.length}}),a.prototype.item=function(T){return this.arr[T]||null},a.prototype.contains=function(T){return this.arr.indexOf(T)!==-1},a}()}).call(void 0)},{}],262:[function(s,z,d){"use strict";(function(){var h,a,T,_=function(f,o){for(var i in o)x.call(o,i)&&(f[i]=o[i]);function u(){this.constructor=f}return u.prototype=o.prototype,f.prototype=new u,f.__super__=o.prototype,f},x={}.hasOwnProperty;T=s("./XMLNode"),h=s("./NodeType"),z.exports=a=function(p){_(f,p);function f(o,i,u,l,v,m){if(f.__super__.constructor.call(this,o),i==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(u==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(i));if(!l)throw new Error("Missing DTD attribute type. "+this.debugInfo(i));if(!v)throw new Error("Missing DTD attribute default. "+this.debugInfo(i));if(v.indexOf("#")!==0&&(v="#"+v),!v.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(i));if(m&&!v.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(i));this.elementName=this.stringify.name(i),this.type=h.AttributeDeclaration,this.attributeName=this.stringify.name(u),this.attributeType=this.stringify.dtdAttType(l),m&&(this.defaultValue=this.stringify.dtdAttDefault(m)),this.defaultValueType=v}return f.prototype.toString=function(o){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(o))},f}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(s,z,d){"use strict";(function(){var h,a,T,_=function(f,o){for(var i in o)x.call(o,i)&&(f[i]=o[i]);function u(){this.constructor=f}return u.prototype=o.prototype,f.prototype=new u,f.__super__=o.prototype,f},x={}.hasOwnProperty;T=s("./XMLNode"),h=s("./NodeType"),z.exports=a=function(p){_(f,p);function f(o,i,u){if(f.__super__.constructor.call(this,o),i==null)throw new Error("Missing DTD element name. "+this.debugInfo());u||(u="(#PCDATA)"),Array.isArray(u)&&(u="("+u.join(",")+")"),this.name=this.stringify.name(i),this.type=h.ElementDeclaration,this.value=this.stringify.dtdElementValue(u)}return f.prototype.toString=function(o){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(o))},f}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(s,z,d){"use strict";(function(){var h,a,T,_,x=function(o,i){for(var u in i)p.call(i,u)&&(o[u]=i[u]);function l(){this.constructor=o}return l.prototype=i.prototype,o.prototype=new l,o.__super__=i.prototype,o},p={}.hasOwnProperty;_=s("./Utility").isObject,T=s("./XMLNode"),h=s("./NodeType"),z.exports=a=function(f){x(o,f);function o(i,u,l,v){if(o.__super__.constructor.call(this,i),l==null)throw new Error("Missing DTD entity name. "+this.debugInfo(l));if(v==null)throw new Error("Missing DTD entity value. "+this.debugInfo(l));if(this.pe=!!u,this.name=this.stringify.name(l),this.type=h.EntityDeclaration,!_(v))this.value=this.stringify.dtdEntityValue(v),this.internal=!0;else{if(!v.pubID&&!v.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(l));if(v.pubID&&!v.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(l));if(this.internal=!1,v.pubID!=null&&(this.pubID=this.stringify.dtdPubID(v.pubID)),v.sysID!=null&&(this.sysID=this.stringify.dtdSysID(v.sysID)),v.nData!=null&&(this.nData=this.stringify.dtdNData(v.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(l))}}return Object.defineProperty(o.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(o.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(o.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(o.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(o.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(o.prototype,"xmlVersion",{get:function(){return null}}),o.prototype.toString=function(i){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(i))},o}(T)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(s,z,d){"use strict";(function(){var h,a,T,_=function(f,o){for(var i in o)x.call(o,i)&&(f[i]=o[i]);function u(){this.constructor=f}return u.prototype=o.prototype,f.prototype=new u,f.__super__=o.prototype,f},x={}.hasOwnProperty;T=s("./XMLNode"),h=s("./NodeType"),z.exports=a=function(p){_(f,p);function f(o,i,u){if(f.__super__.constructor.call(this,o),i==null)throw new Error("Missing DTD notation name. "+this.debugInfo(i));if(!u.pubID&&!u.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(i));this.name=this.stringify.name(i),this.type=h.NotationDeclaration,u.pubID!=null&&(this.pubID=this.stringify.dtdPubID(u.pubID)),u.sysID!=null&&(this.sysID=this.stringify.dtdSysID(u.sysID))}return Object.defineProperty(f.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(f.prototype,"systemId",{get:function(){return this.sysID}}),f.prototype.toString=function(o){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(o))},f}(T)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(s,z,d){"use strict";(function(){var h,a,T,_,x=function(o,i){for(var u in i)p.call(i,u)&&(o[u]=i[u]);function l(){this.constructor=o}return l.prototype=i.prototype,o.prototype=new l,o.__super__=i.prototype,o},p={}.hasOwnProperty;_=s("./Utility").isObject,T=s("./XMLNode"),h=s("./NodeType"),z.exports=a=function(f){x(o,f);function o(i,u,l,v){var m;o.__super__.constructor.call(this,i),_(u)&&(m=u,u=m.version,l=m.encoding,v=m.standalone),u||(u="1.0"),this.type=h.Declaration,this.version=this.stringify.xmlVersion(u),l!=null&&(this.encoding=this.stringify.xmlEncoding(l)),v!=null&&(this.standalone=this.stringify.xmlStandalone(v))}return o.prototype.toString=function(i){return this.options.writer.declaration(this,this.options.writer.filterOptions(i))},o}(T)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(s,z,d){"use strict";(function(){var h,a,T,_,x,p,f,o,i,u=function(m,g){for(var E in g)l.call(g,E)&&(m[E]=g[E]);function w(){this.constructor=m}return w.prototype=g.prototype,m.prototype=new w,m.__super__=g.prototype,m},l={}.hasOwnProperty;i=s("./Utility").isObject,o=s("./XMLNode"),h=s("./NodeType"),a=s("./XMLDTDAttList"),_=s("./XMLDTDEntity"),T=s("./XMLDTDElement"),x=s("./XMLDTDNotation"),f=s("./XMLNamedNodeMap"),z.exports=p=function(v){u(m,v);function m(g,E,w){var O,C,M,N,P,k;if(m.__super__.constructor.call(this,g),this.type=h.DocType,g.children){for(N=g.children,C=0,M=N.length;C<M;C++)if(O=N[C],O.type===h.Element){this.name=O.name;break}}this.documentObject=g,i(E)&&(P=E,E=P.pubID,w=P.sysID),w==null&&(k=[E,w],w=k[0],E=k[1]),E!=null&&(this.pubID=this.stringify.dtdPubID(E)),w!=null&&(this.sysID=this.stringify.dtdSysID(w))}return Object.defineProperty(m.prototype,"entities",{get:function(){var E,w,O,C,M;for(C={},M=this.children,w=0,O=M.length;w<O;w++)E=M[w],E.type===h.EntityDeclaration&&!E.pe&&(C[E.name]=E);return new f(C)}}),Object.defineProperty(m.prototype,"notations",{get:function(){var E,w,O,C,M;for(C={},M=this.children,w=0,O=M.length;w<O;w++)E=M[w],E.type===h.NotationDeclaration&&(C[E.name]=E);return new f(C)}}),Object.defineProperty(m.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(m.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(m.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),m.prototype.element=function(g,E){var w;return w=new T(this,g,E),this.children.push(w),this},m.prototype.attList=function(g,E,w,O,C){var M;return M=new a(this,g,E,w,O,C),this.children.push(M),this},m.prototype.entity=function(g,E){var w;return w=new _(this,!1,g,E),this.children.push(w),this},m.prototype.pEntity=function(g,E){var w;return w=new _(this,!0,g,E),this.children.push(w),this},m.prototype.notation=function(g,E){var w;return w=new x(this,g,E),this.children.push(w),this},m.prototype.toString=function(g){return this.options.writer.docType(this,this.options.writer.filterOptions(g))},m.prototype.ele=function(g,E){return this.element(g,E)},m.prototype.att=function(g,E,w,O,C){return this.attList(g,E,w,O,C)},m.prototype.ent=function(g,E){return this.entity(g,E)},m.prototype.pent=function(g,E){return this.pEntity(g,E)},m.prototype.not=function(g,E){return this.notation(g,E)},m.prototype.up=function(){return this.root()||this.documentObject},m.prototype.isEqualNode=function(g){return m.__super__.isEqualNode.apply(this,arguments).isEqualNode(g)?g.name!==this.name||g.publicId!==this.publicId?!1:!(g.systemId!==this.systemId):!1},m}(o)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(s,z,d){"use strict";(function(){var h,a,T,_,x,p,f,o,i=function(v,m){for(var g in m)u.call(m,g)&&(v[g]=m[g]);function E(){this.constructor=v}return E.prototype=m.prototype,v.prototype=new E,v.__super__=m.prototype,v},u={}.hasOwnProperty;o=s("./Utility").isPlainObject,T=s("./XMLDOMImplementation"),a=s("./XMLDOMConfiguration"),x=s("./XMLNode"),h=s("./NodeType"),f=s("./XMLStringifier"),p=s("./XMLStringWriter"),z.exports=_=function(l){i(v,l);function v(m){v.__super__.constructor.call(this,null),this.name="#document",this.type=h.Document,this.documentURI=null,this.domConfig=new a,m||(m={}),m.writer||(m.writer=new p),this.options=m,this.stringify=new f(m)}return Object.defineProperty(v.prototype,"implementation",{value:new T}),Object.defineProperty(v.prototype,"doctype",{get:function(){var g,E,w,O;for(O=this.children,E=0,w=O.length;E<w;E++)if(g=O[E],g.type===h.DocType)return g;return null}}),Object.defineProperty(v.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(v.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(v.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(v.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===h.Declaration?this.children[0].encoding:null}}),Object.defineProperty(v.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===h.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(v.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===h.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(v.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(v.prototype,"origin",{get:function(){return null}}),Object.defineProperty(v.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(v.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(v.prototype,"contentType",{get:function(){return null}}),v.prototype.end=function(m){var g;return g={},m?o(m)&&(g=m,m=this.options.writer):m=this.options.writer,m.document(this,m.filterOptions(g))},v.prototype.toString=function(m){return this.options.writer.document(this,this.options.writer.filterOptions(m))},v.prototype.createElement=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createTextNode=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createComment=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createCDATASection=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createProcessingInstruction=function(m,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createAttribute=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createEntityReference=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.getElementsByTagName=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.importNode=function(m,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createElementNS=function(m,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createAttributeNS=function(m,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.getElementsByTagNameNS=function(m,g){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.getElementById=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.adoptNode=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.renameNode=function(m,g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.getElementsByClassName=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createEvent=function(m){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createNodeIterator=function(m,g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},v.prototype.createTreeWalker=function(m,g,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},v}(x)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(s,z,d){"use strict";(function(){var h,a,T,_,x,p,f,o,i,u,l,v,m,g,E,w,O,C,M,N,P,k,b,V,X={}.hasOwnProperty;V=s("./Utility"),k=V.isObject,P=V.isFunction,b=V.isPlainObject,N=V.getValue,h=s("./NodeType"),v=s("./XMLDocument"),g=s("./XMLElement"),_=s("./XMLCData"),x=s("./XMLComment"),w=s("./XMLRaw"),M=s("./XMLText"),E=s("./XMLProcessingInstruction"),u=s("./XMLDeclaration"),l=s("./XMLDocType"),p=s("./XMLDTDAttList"),o=s("./XMLDTDEntity"),f=s("./XMLDTDElement"),i=s("./XMLDTDNotation"),T=s("./XMLAttribute"),C=s("./XMLStringifier"),O=s("./XMLStringWriter"),a=s("./WriterState"),z.exports=m=function(){function D(L,U,J){var ae;this.name="?xml",this.type=h.Document,L||(L={}),ae={},L.writer?b(L.writer)&&(ae=L.writer,L.writer=new O):L.writer=new O,this.options=L,this.writer=L.writer,this.writerOptions=this.writer.filterOptions(ae),this.stringify=new C(L),this.onDataCallback=U||function(){},this.onEndCallback=J||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return D.prototype.createChildNode=function(L){var U,J,ae,se,G,he,q,W;switch(L.type){case h.CData:this.cdata(L.value);break;case h.Comment:this.comment(L.value);break;case h.Element:ae={},q=L.attribs;for(J in q){if(!X.call(q,J))continue;U=q[J],ae[J]=U.value}this.node(L.name,ae);break;case h.Dummy:this.dummy();break;case h.Raw:this.raw(L.value);break;case h.Text:this.text(L.value);break;case h.ProcessingInstruction:this.instruction(L.target,L.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+L.constructor.name)}for(W=L.children,G=0,he=W.length;G<he;G++)se=W[G],this.createChildNode(se),se.type===h.Element&&this.up();return this},D.prototype.dummy=function(){return this},D.prototype.node=function(L,U,J){var ae;if(L==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(L));return this.openCurrent(),L=N(L),U==null&&(U={}),U=N(U),k(U)||(ae=[U,J],J=ae[0],U=ae[1]),this.currentNode=new g(this,L,U),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,J!=null&&this.text(J),this},D.prototype.element=function(L,U,J){var ae,se,G,he,q,W;if(this.currentNode&&this.currentNode.type===h.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(L)||k(L)||P(L))for(he=this.options.noValidation,this.options.noValidation=!0,W=new v(this.options).element("TEMP_ROOT"),W.element(L),this.options.noValidation=he,q=W.children,se=0,G=q.length;se<G;se++)ae=q[se],this.createChildNode(ae),ae.type===h.Element&&this.up();else this.node(L,U,J);return this},D.prototype.attribute=function(L,U){var J,ae;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(L));if(L!=null&&(L=N(L)),k(L))for(J in L){if(!X.call(L,J))continue;ae=L[J],this.attribute(J,ae)}else P(U)&&(U=U.apply()),this.options.keepNullAttributes&&U==null?this.currentNode.attribs[L]=new T(this,L,""):U!=null&&(this.currentNode.attribs[L]=new T(this,L,U));return this},D.prototype.text=function(L){var U;return this.openCurrent(),U=new M(this,L),this.onData(this.writer.text(U,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.prototype.cdata=function(L){var U;return this.openCurrent(),U=new _(this,L),this.onData(this.writer.cdata(U,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.prototype.comment=function(L){var U;return this.openCurrent(),U=new x(this,L),this.onData(this.writer.comment(U,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.prototype.raw=function(L){var U;return this.openCurrent(),U=new w(this,L),this.onData(this.writer.raw(U,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.prototype.instruction=function(L,U){var J,ae,se,G,he;if(this.openCurrent(),L!=null&&(L=N(L)),U!=null&&(U=N(U)),Array.isArray(L))for(J=0,G=L.length;J<G;J++)ae=L[J],this.instruction(ae);else if(k(L))for(ae in L){if(!X.call(L,ae))continue;se=L[ae],this.instruction(ae,se)}else P(U)&&(U=U.apply()),he=new E(this,L,U),this.onData(this.writer.processingInstruction(he,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},D.prototype.declaration=function(L,U,J){var ae;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return ae=new u(this,L,U,J),this.onData(this.writer.declaration(ae,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.prototype.doctype=function(L,U,J){if(this.openCurrent(),L==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 l(this,U,J),this.currentNode.rootNodeName=L,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},D.prototype.dtdElement=function(L,U){var J;return this.openCurrent(),J=new f(this,L,U),this.onData(this.writer.dtdElement(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.prototype.attList=function(L,U,J,ae,se){var G;return this.openCurrent(),G=new p(this,L,U,J,ae,se),this.onData(this.writer.dtdAttList(G,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.prototype.entity=function(L,U){var J;return this.openCurrent(),J=new o(this,!1,L,U),this.onData(this.writer.dtdEntity(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.prototype.pEntity=function(L,U){var J;return this.openCurrent(),J=new o(this,!0,L,U),this.onData(this.writer.dtdEntity(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.prototype.notation=function(L,U){var J;return this.openCurrent(),J=new i(this,L,U),this.onData(this.writer.dtdNotation(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.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},D.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},D.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},D.prototype.openNode=function(L){var U,J,ae,se;if(!L.isOpen){if(!this.root&&this.currentLevel===0&&L.type===h.Element&&(this.root=L),J="",L.type===h.Element){this.writerOptions.state=a.OpenTag,J=this.writer.indent(L,this.writerOptions,this.currentLevel)+"<"+L.name,se=L.attribs;for(ae in se){if(!X.call(se,ae))continue;U=se[ae],J+=this.writer.attribute(U,this.writerOptions,this.currentLevel)}J+=(L.children?">":"/>")+this.writer.endline(L,this.writerOptions,this.currentLevel),this.writerOptions.state=a.InsideTag}else this.writerOptions.state=a.OpenTag,J=this.writer.indent(L,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+L.rootNodeName,L.pubID&&L.sysID?J+=' PUBLIC "'+L.pubID+'" "'+L.sysID+'"':L.sysID&&(J+=' SYSTEM "'+L.sysID+'"'),L.children?(J+=" [",this.writerOptions.state=a.InsideTag):(this.writerOptions.state=a.CloseTag,J+=">"),J+=this.writer.endline(L,this.writerOptions,this.currentLevel);return this.onData(J,this.currentLevel),L.isOpen=!0}},D.prototype.closeNode=function(L){var U;if(!L.isClosed)return U="",this.writerOptions.state=a.CloseTag,L.type===h.Element?U=this.writer.indent(L,this.writerOptions,this.currentLevel)+"</"+L.name+">"+this.writer.endline(L,this.writerOptions,this.currentLevel):U=this.writer.indent(L,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(L,this.writerOptions,this.currentLevel),this.writerOptions.state=a.None,this.onData(U,this.currentLevel),L.isClosed=!0},D.prototype.onData=function(L,U){return this.documentStarted=!0,this.onDataCallback(L,U+1)},D.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},D.prototype.debugInfo=function(L){return L==null?"":"node: <"+L+">"},D.prototype.ele=function(){return this.element.apply(this,arguments)},D.prototype.nod=function(L,U,J){return this.node(L,U,J)},D.prototype.txt=function(L){return this.text(L)},D.prototype.dat=function(L){return this.cdata(L)},D.prototype.com=function(L){return this.comment(L)},D.prototype.ins=function(L,U){return this.instruction(L,U)},D.prototype.dec=function(L,U,J){return this.declaration(L,U,J)},D.prototype.dtd=function(L,U,J){return this.doctype(L,U,J)},D.prototype.e=function(L,U,J){return this.element(L,U,J)},D.prototype.n=function(L,U,J){return this.node(L,U,J)},D.prototype.t=function(L){return this.text(L)},D.prototype.d=function(L){return this.cdata(L)},D.prototype.c=function(L){return this.comment(L)},D.prototype.r=function(L){return this.raw(L)},D.prototype.i=function(L,U){return this.instruction(L,U)},D.prototype.att=function(){return this.currentNode&&this.currentNode.type===h.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},D.prototype.a=function(){return this.currentNode&&this.currentNode.type===h.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},D.prototype.ent=function(L,U){return this.entity(L,U)},D.prototype.pent=function(L,U){return this.pEntity(L,U)},D.prototype.not=function(L,U){return this.notation(L,U)},D}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/create"),a=T(h);function T(_){return _&&_.__esModule?_:{default:_}}(function(){var _,x,p,f=function(u,l){for(var v in l)o.call(l,v)&&(u[v]=l[v]);function m(){this.constructor=u}return m.prototype=l.prototype,u.prototype=new m,u.__super__=l.prototype,u},o={}.hasOwnProperty;p=s("./XMLNode"),_=s("./NodeType"),z.exports=x=function(i){f(u,i);function u(l){u.__super__.constructor.call(this,l),this.type=_.Dummy}return u.prototype.clone=function(){return(0,a.default)(this)},u.prototype.toString=function(l){return""},u}(p)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/create"),a=T(h);function T(_){return _&&_.__esModule?_:{default:_}}(function(){var _,x,p,f,o,i,u,l,v,m=function(w,O){for(var C in O)g.call(O,C)&&(w[C]=O[C]);function M(){this.constructor=w}return M.prototype=O.prototype,w.prototype=new M,w.__super__=O.prototype,w},g={}.hasOwnProperty;v=s("./Utility"),l=v.isObject,u=v.isFunction,i=v.getValue,o=s("./XMLNode"),_=s("./NodeType"),x=s("./XMLAttribute"),f=s("./XMLNamedNodeMap"),z.exports=p=function(E){m(w,E);function w(O,C,M){var N,P,k,b;if(w.__super__.constructor.call(this,O),C==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(C),this.type=_.Element,this.attribs={},this.schemaTypeInfo=null,M!=null&&this.attribute(M),O.type===_.Document&&(this.isRoot=!0,this.documentObject=O,O.rootObject=this,O.children)){for(b=O.children,P=0,k=b.length;P<k;P++)if(N=b[P],N.type===_.DocType){N.name=this.name;break}}}return Object.defineProperty(w.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(w.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(w.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(w.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(w.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(w.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(w.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(w.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new f(this.attribs)),this.attributeMap}}),w.prototype.clone=function(){var O,C,M,N;M=(0,a.default)(this),M.isRoot&&(M.documentObject=null),M.attribs={},N=this.attribs;for(C in N){if(!g.call(N,C))continue;O=N[C],M.attribs[C]=O.clone()}return M.children=[],this.children.forEach(function(P){var k;return k=P.clone(),k.parent=M,M.children.push(k)}),M},w.prototype.attribute=function(O,C){var M,N;if(O!=null&&(O=i(O)),l(O))for(M in O){if(!g.call(O,M))continue;N=O[M],this.attribute(M,N)}else u(C)&&(C=C.apply()),this.options.keepNullAttributes&&C==null?this.attribs[O]=new x(this,O,""):C!=null&&(this.attribs[O]=new x(this,O,C));return this},w.prototype.removeAttribute=function(O){var C,M,N;if(O==null)throw new Error("Missing attribute name. "+this.debugInfo());if(O=i(O),Array.isArray(O))for(M=0,N=O.length;M<N;M++)C=O[M],delete this.attribs[C];else delete this.attribs[O];return this},w.prototype.toString=function(O){return this.options.writer.element(this,this.options.writer.filterOptions(O))},w.prototype.att=function(O,C){return this.attribute(O,C)},w.prototype.a=function(O,C){return this.attribute(O,C)},w.prototype.getAttribute=function(O){return this.attribs.hasOwnProperty(O)?this.attribs[O].value:null},w.prototype.setAttribute=function(O,C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getAttributeNode=function(O){return this.attribs.hasOwnProperty(O)?this.attribs[O]:null},w.prototype.setAttributeNode=function(O){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.removeAttributeNode=function(O){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getElementsByTagName=function(O){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getAttributeNS=function(O,C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setAttributeNS=function(O,C,M){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.removeAttributeNS=function(O,C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getAttributeNodeNS=function(O,C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setAttributeNodeNS=function(O){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getElementsByTagNameNS=function(O,C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.hasAttribute=function(O){return this.attribs.hasOwnProperty(O)},w.prototype.hasAttributeNS=function(O,C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setIdAttribute=function(O,C){return this.attribs.hasOwnProperty(O)?this.attribs[O].isId:C},w.prototype.setIdAttributeNS=function(O,C,M){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.setIdAttributeNode=function(O,C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getElementsByTagName=function(O){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getElementsByTagNameNS=function(O,C){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.getElementsByClassName=function(O){throw new Error("This DOM method is not implemented."+this.debugInfo())},w.prototype.isEqualNode=function(O){var C,M,N;if(!w.__super__.isEqualNode.apply(this,arguments).isEqualNode(O))return!1;if(O.namespaceURI!==this.namespaceURI)return!1;if(O.prefix!==this.prefix)return!1;if(O.localName!==this.localName)return!1;if(O.attribs.length!==this.attribs.length)return!1;for(C=M=0,N=this.attribs.length-1;0<=N?M<=N:M>=N;C=0<=N?++M:--M)if(!this.attribs[C].isEqualNode(O.attribs[C]))return!1;return!0},w}(o)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/keys"),a=T(h);function T(_){return _&&_.__esModule?_:{default:_}}(function(){var _;z.exports=_=function(){function x(p){this.nodes=p}return Object.defineProperty(x.prototype,"length",{get:function(){return(0,a.default)(this.nodes).length||0}}),x.prototype.clone=function(){return this.nodes=null},x.prototype.getNamedItem=function(p){return this.nodes[p]},x.prototype.setNamedItem=function(p){var f;return f=this.nodes[p.nodeName],this.nodes[p.nodeName]=p,f||null},x.prototype.removeNamedItem=function(p){var f;return f=this.nodes[p],delete this.nodes[p],f||null},x.prototype.item=function(p){return this.nodes[(0,a.default)(this.nodes)[p]]||null},x.prototype.getNamedItemNS=function(p,f){throw new Error("This DOM method is not implemented.")},x.prototype.setNamedItemNS=function(p){throw new Error("This DOM method is not implemented.")},x.prototype.removeNamedItemNS=function(p,f){throw new Error("This DOM method is not implemented.")},x}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(s,z,d){"use strict";(function(){var h,a,T,_,x,p,f,o,i,u,l,v,m,g,E,w,O,C,M,N={}.hasOwnProperty;M=s("./Utility"),C=M.isObject,O=M.isFunction,w=M.isEmpty,E=M.getValue,o=null,T=null,_=null,x=null,p=null,m=null,g=null,v=null,f=null,a=null,l=null,i=null,h=null,z.exports=u=function(){function P(k){this.parent=k,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,o||(o=s("./XMLElement"),T=s("./XMLCData"),_=s("./XMLComment"),x=s("./XMLDeclaration"),p=s("./XMLDocType"),m=s("./XMLRaw"),g=s("./XMLText"),v=s("./XMLProcessingInstruction"),f=s("./XMLDummy"),a=s("./NodeType"),l=s("./XMLNodeList"),i=s("./XMLNamedNodeMap"),h=s("./DocumentPosition"))}return Object.defineProperty(P.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(P.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(P.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(P.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(P.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new l(this.children)),this.childNodeList}}),Object.defineProperty(P.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(P.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(P.prototype,"previousSibling",{get:function(){var b;return b=this.parent.children.indexOf(this),this.parent.children[b-1]||null}}),Object.defineProperty(P.prototype,"nextSibling",{get:function(){var b;return b=this.parent.children.indexOf(this),this.parent.children[b+1]||null}}),Object.defineProperty(P.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(P.prototype,"textContent",{get:function(){var b,V,X,D,L;if(this.nodeType===a.Element||this.nodeType===a.DocumentFragment){for(L="",D=this.children,V=0,X=D.length;V<X;V++)b=D[V],b.textContent&&(L+=b.textContent);return L}else return null},set:function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),P.prototype.setParent=function(k){var b,V,X,D,L;for(this.parent=k,k&&(this.options=k.options,this.stringify=k.stringify),D=this.children,L=[],V=0,X=D.length;V<X;V++)b=D[V],L.push(b.setParent(this));return L},P.prototype.element=function(k,b,V){var X,D,L,U,J,ae,se,G,he,q,W;if(ae=null,b===null&&V==null&&(he=[{},null],b=he[0],V=he[1]),b==null&&(b={}),b=E(b),C(b)||(q=[b,V],V=q[0],b=q[1]),k!=null&&(k=E(k)),Array.isArray(k))for(L=0,se=k.length;L<se;L++)D=k[L],ae=this.element(D);else if(O(k))ae=this.element(k.apply());else if(C(k))for(J in k){if(!N.call(k,J))continue;if(W=k[J],O(W)&&(W=W.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&J.indexOf(this.stringify.convertAttKey)===0)ae=this.attribute(J.substr(this.stringify.convertAttKey.length),W);else if(!this.options.separateArrayItems&&Array.isArray(W)&&w(W))ae=this.dummy();else if(C(W)&&w(W))ae=this.element(J);else if(!this.options.keepNullNodes&&W==null)ae=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(W))for(U=0,G=W.length;U<G;U++)D=W[U],X={},X[J]=D,ae=this.element(X);else C(W)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&J.indexOf(this.stringify.convertTextKey)===0?ae=this.element(W):(ae=this.element(J),ae.element(W)):ae=this.element(J,W)}else!this.options.keepNullNodes&&V===null?ae=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&k.indexOf(this.stringify.convertTextKey)===0?ae=this.text(V):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&k.indexOf(this.stringify.convertCDataKey)===0?ae=this.cdata(V):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&k.indexOf(this.stringify.convertCommentKey)===0?ae=this.comment(V):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&k.indexOf(this.stringify.convertRawKey)===0?ae=this.raw(V):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&k.indexOf(this.stringify.convertPIKey)===0?ae=this.instruction(k.substr(this.stringify.convertPIKey.length),V):ae=this.node(k,b,V);if(ae==null)throw new Error("Could not create any elements with: "+k+". "+this.debugInfo());return ae},P.prototype.insertBefore=function(k,b,V){var X,D,L,U,J;if(k!=null?k.type:void 0)return L=k,U=b,L.setParent(this),U?(D=children.indexOf(U),J=children.splice(D),children.push(L),Array.prototype.push.apply(children,J)):children.push(L),L;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(k));return D=this.parent.children.indexOf(this),J=this.parent.children.splice(D),X=this.parent.element(k,b,V),Array.prototype.push.apply(this.parent.children,J),X},P.prototype.insertAfter=function(k,b,V){var X,D,L;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(k));return D=this.parent.children.indexOf(this),L=this.parent.children.splice(D+1),X=this.parent.element(k,b,V),Array.prototype.push.apply(this.parent.children,L),X},P.prototype.remove=function(){var k,b;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return k=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[k,k-k+1].concat(b=[])),this.parent},P.prototype.node=function(k,b,V){var X,D;return k!=null&&(k=E(k)),b||(b={}),b=E(b),C(b)||(D=[b,V],V=D[0],b=D[1]),X=new o(this,k,b),V!=null&&X.text(V),this.children.push(X),X},P.prototype.text=function(k){var b;return C(k)&&this.element(k),b=new g(this,k),this.children.push(b),this},P.prototype.cdata=function(k){var b;return b=new T(this,k),this.children.push(b),this},P.prototype.comment=function(k){var b;return b=new _(this,k),this.children.push(b),this},P.prototype.commentBefore=function(k){var b,V,X;return V=this.parent.children.indexOf(this),X=this.parent.children.splice(V),b=this.parent.comment(k),Array.prototype.push.apply(this.parent.children,X),this},P.prototype.commentAfter=function(k){var b,V,X;return V=this.parent.children.indexOf(this),X=this.parent.children.splice(V+1),b=this.parent.comment(k),Array.prototype.push.apply(this.parent.children,X),this},P.prototype.raw=function(k){var b;return b=new m(this,k),this.children.push(b),this},P.prototype.dummy=function(){var k;return k=new f(this),k},P.prototype.instruction=function(k,b){var V,X,D,L,U;if(k!=null&&(k=E(k)),b!=null&&(b=E(b)),Array.isArray(k))for(L=0,U=k.length;L<U;L++)V=k[L],this.instruction(V);else if(C(k))for(V in k){if(!N.call(k,V))continue;X=k[V],this.instruction(V,X)}else O(b)&&(b=b.apply()),D=new v(this,k,b),this.children.push(D);return this},P.prototype.instructionBefore=function(k,b){var V,X,D;return X=this.parent.children.indexOf(this),D=this.parent.children.splice(X),V=this.parent.instruction(k,b),Array.prototype.push.apply(this.parent.children,D),this},P.prototype.instructionAfter=function(k,b){var V,X,D;return X=this.parent.children.indexOf(this),D=this.parent.children.splice(X+1),V=this.parent.instruction(k,b),Array.prototype.push.apply(this.parent.children,D),this},P.prototype.declaration=function(k,b,V){var X,D;return X=this.document(),D=new x(X,k,b,V),X.children.length===0?X.children.unshift(D):X.children[0].type===a.Declaration?X.children[0]=D:X.children.unshift(D),X.root()||X},P.prototype.dtd=function(k,b){var V,X,D,L,U,J,ae,se,G,he;for(X=this.document(),D=new p(X,k,b),G=X.children,L=U=0,ae=G.length;U<ae;L=++U)if(V=G[L],V.type===a.DocType)return X.children[L]=D,D;for(he=X.children,L=J=0,se=he.length;J<se;L=++J)if(V=he[L],V.isRoot)return X.children.splice(L,0,D),D;return X.children.push(D),D},P.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},P.prototype.root=function(){var k;for(k=this;k;){if(k.type===a.Document)return k.rootObject;if(k.isRoot)return k;k=k.parent}},P.prototype.document=function(){var k;for(k=this;k;){if(k.type===a.Document)return k;k=k.parent}},P.prototype.end=function(k){return this.document().end(k)},P.prototype.prev=function(){var k;if(k=this.parent.children.indexOf(this),k<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[k-1]},P.prototype.next=function(){var k;if(k=this.parent.children.indexOf(this),k===-1||k===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[k+1]},P.prototype.importDocument=function(k){var b;return b=k.root().clone(),b.parent=this,b.isRoot=!1,this.children.push(b),this},P.prototype.debugInfo=function(k){var b,V;return k=k||this.name,k==null&&!((b=this.parent)!=null?b.name:void 0)?"":k==null?"parent: <"+this.parent.name+">":((V=this.parent)!=null?V.name:void 0)?"node: <"+k+">, parent: <"+this.parent.name+">":"node: <"+k+">"},P.prototype.ele=function(k,b,V){return this.element(k,b,V)},P.prototype.nod=function(k,b,V){return this.node(k,b,V)},P.prototype.txt=function(k){return this.text(k)},P.prototype.dat=function(k){return this.cdata(k)},P.prototype.com=function(k){return this.comment(k)},P.prototype.ins=function(k,b){return this.instruction(k,b)},P.prototype.doc=function(){return this.document()},P.prototype.dec=function(k,b,V){return this.declaration(k,b,V)},P.prototype.e=function(k,b,V){return this.element(k,b,V)},P.prototype.n=function(k,b,V){return this.node(k,b,V)},P.prototype.t=function(k){return this.text(k)},P.prototype.d=function(k){return this.cdata(k)},P.prototype.c=function(k){return this.comment(k)},P.prototype.r=function(k){return this.raw(k)},P.prototype.i=function(k,b){return this.instruction(k,b)},P.prototype.u=function(){return this.up()},P.prototype.importXMLBuilder=function(k){return this.importDocument(k)},P.prototype.replaceChild=function(k,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.removeChild=function(k){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.appendChild=function(k){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.hasChildNodes=function(){return this.children.length!==0},P.prototype.cloneNode=function(k){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.isSupported=function(k,b){return!0},P.prototype.hasAttributes=function(){return this.attribs.length!==0},P.prototype.compareDocumentPosition=function(k){var b,V;return b=this,b===k?0:this.document()!==k.document()?(V=h.Disconnected|h.ImplementationSpecific,Math.random()<.5?V|=h.Preceding:V|=h.Following,V):b.isAncestor(k)?h.Contains|h.Preceding:b.isDescendant(k)?h.Contains|h.Following:b.isPreceding(k)?h.Preceding:h.Following},P.prototype.isSameNode=function(k){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.lookupPrefix=function(k){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.isDefaultNamespace=function(k){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.lookupNamespaceURI=function(k){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.isEqualNode=function(k){var b,V,X;if(k.nodeType!==this.nodeType)return!1;if(k.children.length!==this.children.length)return!1;for(b=V=0,X=this.children.length-1;0<=X?V<=X:V>=X;b=0<=X?++V:--V)if(!this.children[b].isEqualNode(k.children[b]))return!1;return!0},P.prototype.getFeature=function(k,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.setUserData=function(k,b,V){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.getUserData=function(k){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.contains=function(k){return k?k===this||this.isDescendant(k):!1},P.prototype.isDescendant=function(k){var b,V,X,D,L;for(L=this.children,X=0,D=L.length;X<D;X++){if(b=L[X],k===b)return!0;if(V=b.isDescendant(k),V)return!0}return!1},P.prototype.isAncestor=function(k){return k.isDescendant(this)},P.prototype.isPreceding=function(k){var b,V;return b=this.treePosition(k),V=this.treePosition(this),b===-1||V===-1?!1:b<V},P.prototype.isFollowing=function(k){var b,V;return b=this.treePosition(k),V=this.treePosition(this),b===-1||V===-1?!1:b>V},P.prototype.treePosition=function(k){var b,V;return V=0,b=!1,this.foreachTreeNode(this.document(),function(X){if(V++,!b&&X===k)return b=!0}),b?V:-1},P.prototype.foreachTreeNode=function(k,b){var V,X,D,L,U;for(k||(k=this.document()),L=k.children,X=0,D=L.length;X<D;X++){if(V=L[X],U=b(V))return U;if(U=this.foreachTreeNode(V,b),U)return U}},P}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(s,z,d){"use strict";(function(){var h;z.exports=h=function(){function a(T){this.nodes=T}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(T){return this.nodes[T]||null},a}()}).call(void 0)},{}],275:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/create"),a=T(h);function T(_){return _&&_.__esModule?_:{default:_}}(function(){var _,x,p,f=function(u,l){for(var v in l)o.call(l,v)&&(u[v]=l[v]);function m(){this.constructor=u}return m.prototype=l.prototype,u.prototype=new m,u.__super__=l.prototype,u},o={}.hasOwnProperty;_=s("./NodeType"),x=s("./XMLCharacterData"),z.exports=p=function(i){f(u,i);function u(l,v,m){if(u.__super__.constructor.call(this,l),v==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=_.ProcessingInstruction,this.target=this.stringify.insTarget(v),this.name=this.target,m&&(this.value=this.stringify.insValue(m))}return u.prototype.clone=function(){return(0,a.default)(this)},u.prototype.toString=function(l){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(l))},u.prototype.isEqualNode=function(l){return u.__super__.isEqualNode.apply(this,arguments).isEqualNode(l)?!(l.target!==this.target):!1},u}(x)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/create"),a=T(h);function T(_){return _&&_.__esModule?_:{default:_}}(function(){var _,x,p,f=function(u,l){for(var v in l)o.call(l,v)&&(u[v]=l[v]);function m(){this.constructor=u}return m.prototype=l.prototype,u.prototype=new m,u.__super__=l.prototype,u},o={}.hasOwnProperty;_=s("./NodeType"),x=s("./XMLNode"),z.exports=p=function(i){f(u,i);function u(l,v){if(u.__super__.constructor.call(this,l),v==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=_.Raw,this.value=this.stringify.raw(v)}return u.prototype.clone=function(){return(0,a.default)(this)},u.prototype.toString=function(l){return this.options.writer.raw(this,this.options.writer.filterOptions(l))},u}(x)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(s,z,d){"use strict";(function(){var h,a,T,_,x=function(o,i){for(var u in i)p.call(i,u)&&(o[u]=i[u]);function l(){this.constructor=o}return l.prototype=i.prototype,o.prototype=new l,o.__super__=i.prototype,o},p={}.hasOwnProperty;h=s("./NodeType"),_=s("./XMLWriterBase"),a=s("./WriterState"),z.exports=T=function(f){x(o,f);function o(i,u){this.stream=i,o.__super__.constructor.call(this,u)}return o.prototype.endline=function(i,u,l){return i.isLastRootNode&&u.state===a.CloseTag?"":o.__super__.endline.call(this,i,u,l)},o.prototype.document=function(i,u){var l,v,m,g,E,w,O,C,M;for(O=i.children,v=m=0,E=O.length;m<E;v=++m)l=O[v],l.isLastRootNode=v===i.children.length-1;for(u=this.filterOptions(u),C=i.children,M=[],g=0,w=C.length;g<w;g++)l=C[g],M.push(this.writeChildNode(l,u,0));return M},o.prototype.attribute=function(i,u,l){return this.stream.write(o.__super__.attribute.call(this,i,u,l))},o.prototype.cdata=function(i,u,l){return this.stream.write(o.__super__.cdata.call(this,i,u,l))},o.prototype.comment=function(i,u,l){return this.stream.write(o.__super__.comment.call(this,i,u,l))},o.prototype.declaration=function(i,u,l){return this.stream.write(o.__super__.declaration.call(this,i,u,l))},o.prototype.docType=function(i,u,l){var v,m,g,E;if(l||(l=0),this.openNode(i,u,l),u.state=a.OpenTag,this.stream.write(this.indent(i,u,l)),this.stream.write("<!DOCTYPE "+i.root().name),i.pubID&&i.sysID?this.stream.write(' PUBLIC "'+i.pubID+'" "'+i.sysID+'"'):i.sysID&&this.stream.write(' SYSTEM "'+i.sysID+'"'),i.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(i,u,l)),u.state=a.InsideTag,E=i.children,m=0,g=E.length;m<g;m++)v=E[m],this.writeChildNode(v,u,l+1);u.state=a.CloseTag,this.stream.write("]")}return u.state=a.CloseTag,this.stream.write(u.spaceBeforeSlash+">"),this.stream.write(this.endline(i,u,l)),u.state=a.None,this.closeNode(i,u,l)},o.prototype.element=function(i,u,l){var v,m,g,E,w,O,C,M,N,P;l||(l=0),this.openNode(i,u,l),u.state=a.OpenTag,this.stream.write(this.indent(i,u,l)+"<"+i.name),N=i.attribs;for(C in N){if(!p.call(N,C))continue;v=N[C],this.attribute(v,u,l)}if(g=i.children.length,E=g===0?null:i.children[0],g===0||i.children.every(function(k){return(k.type===h.Text||k.type===h.Raw)&&k.value===""}))u.allowEmpty?(this.stream.write(">"),u.state=a.CloseTag,this.stream.write("</"+i.name+">")):(u.state=a.CloseTag,this.stream.write(u.spaceBeforeSlash+"/>"));else if(u.pretty&&g===1&&(E.type===h.Text||E.type===h.Raw)&&E.value!=null)this.stream.write(">"),u.state=a.InsideTag,u.suppressPrettyCount++,M=!0,this.writeChildNode(E,u,l+1),u.suppressPrettyCount--,M=!1,u.state=a.CloseTag,this.stream.write("</"+i.name+">");else{for(this.stream.write(">"+this.endline(i,u,l)),u.state=a.InsideTag,P=i.children,w=0,O=P.length;w<O;w++)m=P[w],this.writeChildNode(m,u,l+1);u.state=a.CloseTag,this.stream.write(this.indent(i,u,l)+"</"+i.name+">")}return this.stream.write(this.endline(i,u,l)),u.state=a.None,this.closeNode(i,u,l)},o.prototype.processingInstruction=function(i,u,l){return this.stream.write(o.__super__.processingInstruction.call(this,i,u,l))},o.prototype.raw=function(i,u,l){return this.stream.write(o.__super__.raw.call(this,i,u,l))},o.prototype.text=function(i,u,l){return this.stream.write(o.__super__.text.call(this,i,u,l))},o.prototype.dtdAttList=function(i,u,l){return this.stream.write(o.__super__.dtdAttList.call(this,i,u,l))},o.prototype.dtdElement=function(i,u,l){return this.stream.write(o.__super__.dtdElement.call(this,i,u,l))},o.prototype.dtdEntity=function(i,u,l){return this.stream.write(o.__super__.dtdEntity.call(this,i,u,l))},o.prototype.dtdNotation=function(i,u,l){return this.stream.write(o.__super__.dtdNotation.call(this,i,u,l))},o}(_)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(s,z,d){"use strict";(function(){var h,a,T=function(p,f){for(var o in f)_.call(f,o)&&(p[o]=f[o]);function i(){this.constructor=p}return i.prototype=f.prototype,p.prototype=new i,p.__super__=f.prototype,p},_={}.hasOwnProperty;a=s("./XMLWriterBase"),z.exports=h=function(x){T(p,x);function p(f){p.__super__.constructor.call(this,f)}return p.prototype.document=function(f,o){var i,u,l,v,m;for(o=this.filterOptions(o),v="",m=f.children,u=0,l=m.length;u<l;u++)i=m[u],v+=this.writeChildNode(i,o,0);return o.pretty&&v.slice(-o.newline.length)===o.newline&&(v=v.slice(0,-o.newline.length)),v},p}(a)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(s,z,d){"use strict";(function(){var h,a=function(x,p){return function(){return x.apply(p,arguments)}},T={}.hasOwnProperty;z.exports=h=function(){function _(x){this.assertLegalName=a(this.assertLegalName,this),this.assertLegalChar=a(this.assertLegalChar,this);var p,f,o;x||(x={}),this.options=x,this.options.version||(this.options.version="1.0"),f=x.stringify||{};for(p in f){if(!T.call(f,p))continue;o=f[p],this[p]=o}}return _.prototype.name=function(x){return this.options.noValidation?x:this.assertLegalName(""+x||"")},_.prototype.text=function(x){return this.options.noValidation?x:this.assertLegalChar(this.textEscape(""+x||""))},_.prototype.cdata=function(x){return this.options.noValidation?x:(x=""+x||"",x=x.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(x))},_.prototype.comment=function(x){if(this.options.noValidation)return x;if(x=""+x||"",x.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+x);return this.assertLegalChar(x)},_.prototype.raw=function(x){return this.options.noValidation?x:""+x||""},_.prototype.attValue=function(x){return this.options.noValidation?x:this.assertLegalChar(this.attEscape(x=""+x||""))},_.prototype.insTarget=function(x){return this.options.noValidation?x:this.assertLegalChar(""+x||"")},_.prototype.insValue=function(x){if(this.options.noValidation)return x;if(x=""+x||"",x.match(/\?>/))throw new Error("Invalid processing instruction value: "+x);return this.assertLegalChar(x)},_.prototype.xmlVersion=function(x){if(this.options.noValidation)return x;if(x=""+x||"",!x.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+x);return x},_.prototype.xmlEncoding=function(x){if(this.options.noValidation)return x;if(x=""+x||"",!x.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+x);return this.assertLegalChar(x)},_.prototype.xmlStandalone=function(x){return this.options.noValidation?x:x?"yes":"no"},_.prototype.dtdPubID=function(x){return this.options.noValidation?x:this.assertLegalChar(""+x||"")},_.prototype.dtdSysID=function(x){return this.options.noValidation?x:this.assertLegalChar(""+x||"")},_.prototype.dtdElementValue=function(x){return this.options.noValidation?x:this.assertLegalChar(""+x||"")},_.prototype.dtdAttType=function(x){return this.options.noValidation?x:this.assertLegalChar(""+x||"")},_.prototype.dtdAttDefault=function(x){return this.options.noValidation?x:this.assertLegalChar(""+x||"")},_.prototype.dtdEntityValue=function(x){return this.options.noValidation?x:this.assertLegalChar(""+x||"")},_.prototype.dtdNData=function(x){return this.options.noValidation?x:this.assertLegalChar(""+x||"")},_.prototype.convertAttKey="@",_.prototype.convertPIKey="?",_.prototype.convertTextKey="#text",_.prototype.convertCDataKey="#cdata",_.prototype.convertCommentKey="#comment",_.prototype.convertRawKey="#raw",_.prototype.assertLegalChar=function(x){var p,f;if(this.options.noValidation)return x;if(p="",this.options.version==="1.0"){if(p=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=x.match(p))throw new Error("Invalid character in string: "+x+" at index "+f.index)}else if(this.options.version==="1.1"&&(p=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=x.match(p)))throw new Error("Invalid character in string: "+x+" at index "+f.index);return x},_.prototype.assertLegalName=function(x){var p;if(this.options.noValidation)return x;if(this.assertLegalChar(x),p=/^([: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])*$/,!x.match(p))throw new Error("Invalid character in name");return x},_.prototype.textEscape=function(x){var p;return this.options.noValidation?x:(p=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,x.replace(p,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},_.prototype.attEscape=function(x){var p;return this.options.noValidation?x:(p=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,x.replace(p,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},_}()}).call(void 0)},{}],280:[function(s,z,d){"use strict";var h=s("babel-runtime/core-js/object/create"),a=T(h);function T(_){return _&&_.__esModule?_:{default:_}}(function(){var _,x,p,f=function(u,l){for(var v in l)o.call(l,v)&&(u[v]=l[v]);function m(){this.constructor=u}return m.prototype=l.prototype,u.prototype=new m,u.__super__=l.prototype,u},o={}.hasOwnProperty;_=s("./NodeType"),x=s("./XMLCharacterData"),z.exports=p=function(i){f(u,i);function u(l,v){if(u.__super__.constructor.call(this,l),v==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=_.Text,this.value=this.stringify.text(v)}return Object.defineProperty(u.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(u.prototype,"wholeText",{get:function(){var v,m,g;for(g="",m=this.previousSibling;m;)g=m.data+g,m=m.previousSibling;for(g+=this.data,v=this.nextSibling;v;)g=g+v.data,v=v.nextSibling;return g}}),u.prototype.clone=function(){return(0,a.default)(this)},u.prototype.toString=function(l){return this.options.writer.text(this,this.options.writer.filterOptions(l))},u.prototype.splitText=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},u.prototype.replaceWholeText=function(l){throw new Error("This DOM method is not implemented."+this.debugInfo())},u}(x)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(s,z,d){"use strict";(function(){var h,a,T,_,x,p,f,o,i,u,l,v,m,g,E,w,O,C={}.hasOwnProperty;O=s("./Utility").assign,h=s("./NodeType"),i=s("./XMLDeclaration"),u=s("./XMLDocType"),T=s("./XMLCData"),_=s("./XMLComment"),v=s("./XMLElement"),g=s("./XMLRaw"),E=s("./XMLText"),m=s("./XMLProcessingInstruction"),l=s("./XMLDummy"),x=s("./XMLDTDAttList"),p=s("./XMLDTDElement"),f=s("./XMLDTDEntity"),o=s("./XMLDTDNotation"),a=s("./WriterState"),z.exports=w=function(){function M(N){var P,k,b;N||(N={}),this.options=N,k=N.writer||{};for(P in k){if(!C.call(k,P))continue;b=k[P],this["_"+P]=this[P],this[P]=b}}return M.prototype.filterOptions=function(N){var P,k,b,V,X,D,L,U;return N||(N={}),N=O({},this.options,N),P={writer:this},P.pretty=N.pretty||!1,P.allowEmpty=N.allowEmpty||!1,P.indent=(k=N.indent)!=null?k:" ",P.newline=(b=N.newline)!=null?b:`
`,P.offset=(V=N.offset)!=null?V:0,P.dontPrettyTextNodes=(X=(D=N.dontPrettyTextNodes)!=null?D:N.dontprettytextnodes)!=null?X:0,P.spaceBeforeSlash=(L=(U=N.spaceBeforeSlash)!=null?U:N.spacebeforeslash)!=null?L:"",P.spaceBeforeSlash===!0&&(P.spaceBeforeSlash=" "),P.suppressPrettyCount=0,P.user={},P.state=a.None,P},M.prototype.indent=function(N,P,k){var b;return!P.pretty||P.suppressPrettyCount?"":P.pretty&&(b=(k||0)+P.offset+1,b>0)?new Array(b).join(P.indent):""},M.prototype.endline=function(N,P,k){return!P.pretty||P.suppressPrettyCount?"":P.newline},M.prototype.attribute=function(N,P,k){var b;return this.openAttribute(N,P,k),b=" "+N.name+'="'+N.value+'"',this.closeAttribute(N,P,k),b},M.prototype.cdata=function(N,P,k){var b;return this.openNode(N,P,k),P.state=a.OpenTag,b=this.indent(N,P,k)+"<![CDATA[",P.state=a.InsideTag,b+=N.value,P.state=a.CloseTag,b+="]]>"+this.endline(N,P,k),P.state=a.None,this.closeNode(N,P,k),b},M.prototype.comment=function(N,P,k){var b;return this.openNode(N,P,k),P.state=a.OpenTag,b=this.indent(N,P,k)+"<!-- ",P.state=a.InsideTag,b+=N.value,P.state=a.CloseTag,b+=" -->"+this.endline(N,P,k),P.state=a.None,this.closeNode(N,P,k),b},M.prototype.declaration=function(N,P,k){var b;return this.openNode(N,P,k),P.state=a.OpenTag,b=this.indent(N,P,k)+"<?xml",P.state=a.InsideTag,b+=' version="'+N.version+'"',N.encoding!=null&&(b+=' encoding="'+N.encoding+'"'),N.standalone!=null&&(b+=' standalone="'+N.standalone+'"'),P.state=a.CloseTag,b+=P.spaceBeforeSlash+"?>",b+=this.endline(N,P,k),P.state=a.None,this.closeNode(N,P,k),b},M.prototype.docType=function(N,P,k){var b,V,X,D,L;if(k||(k=0),this.openNode(N,P,k),P.state=a.OpenTag,D=this.indent(N,P,k),D+="<!DOCTYPE "+N.root().name,N.pubID&&N.sysID?D+=' PUBLIC "'+N.pubID+'" "'+N.sysID+'"':N.sysID&&(D+=' SYSTEM "'+N.sysID+'"'),N.children.length>0){for(D+=" [",D+=this.endline(N,P,k),P.state=a.InsideTag,L=N.children,V=0,X=L.length;V<X;V++)b=L[V],D+=this.writeChildNode(b,P,k+1);P.state=a.CloseTag,D+="]"}return P.state=a.CloseTag,D+=P.spaceBeforeSlash+">",D+=this.endline(N,P,k),P.state=a.None,this.closeNode(N,P,k),D},M.prototype.element=function(N,P,k){var b,V,X,D,L,U,J,ae,se,G,he,q,W,H;k||(k=0),G=!1,he="",this.openNode(N,P,k),P.state=a.OpenTag,he+=this.indent(N,P,k)+"<"+N.name,q=N.attribs;for(se in q){if(!C.call(q,se))continue;b=q[se],he+=this.attribute(b,P,k)}if(X=N.children.length,D=X===0?null:N.children[0],X===0||N.children.every(function(R){return(R.type===h.Text||R.type===h.Raw)&&R.value===""}))P.allowEmpty?(he+=">",P.state=a.CloseTag,he+="</"+N.name+">"+this.endline(N,P,k)):(P.state=a.CloseTag,he+=P.spaceBeforeSlash+"/>"+this.endline(N,P,k));else if(P.pretty&&X===1&&(D.type===h.Text||D.type===h.Raw)&&D.value!=null)he+=">",P.state=a.InsideTag,P.suppressPrettyCount++,G=!0,he+=this.writeChildNode(D,P,k+1),P.suppressPrettyCount--,G=!1,P.state=a.CloseTag,he+="</"+N.name+">"+this.endline(N,P,k);else{if(P.dontPrettyTextNodes){for(W=N.children,L=0,J=W.length;L<J;L++)if(V=W[L],(V.type===h.Text||V.type===h.Raw)&&V.value!=null){P.suppressPrettyCount++,G=!0;break}}for(he+=">"+this.endline(N,P,k),P.state=a.InsideTag,H=N.children,U=0,ae=H.length;U<ae;U++)V=H[U],he+=this.writeChildNode(V,P,k+1);P.state=a.CloseTag,he+=this.indent(N,P,k)+"</"+N.name+">",G&&P.suppressPrettyCount--,he+=this.endline(N,P,k),P.state=a.None}return this.closeNode(N,P,k),he},M.prototype.writeChildNode=function(N,P,k){switch(N.type){case h.CData:return this.cdata(N,P,k);case h.Comment:return this.comment(N,P,k);case h.Element:return this.element(N,P,k);case h.Raw:return this.raw(N,P,k);case h.Text:return this.text(N,P,k);case h.ProcessingInstruction:return this.processingInstruction(N,P,k);case h.Dummy:return"";case h.Declaration:return this.declaration(N,P,k);case h.DocType:return this.docType(N,P,k);case h.AttributeDeclaration:return this.dtdAttList(N,P,k);case h.ElementDeclaration:return this.dtdElement(N,P,k);case h.EntityDeclaration:return this.dtdEntity(N,P,k);case h.NotationDeclaration:return this.dtdNotation(N,P,k);default:throw new Error("Unknown XML node type: "+N.constructor.name)}},M.prototype.processingInstruction=function(N,P,k){var b;return this.openNode(N,P,k),P.state=a.OpenTag,b=this.indent(N,P,k)+"<?",P.state=a.InsideTag,b+=N.target,N.value&&(b+=" "+N.value),P.state=a.CloseTag,b+=P.spaceBeforeSlash+"?>",b+=this.endline(N,P,k),P.state=a.None,this.closeNode(N,P,k),b},M.prototype.raw=function(N,P,k){var b;return this.openNode(N,P,k),P.state=a.OpenTag,b=this.indent(N,P,k),P.state=a.InsideTag,b+=N.value,P.state=a.CloseTag,b+=this.endline(N,P,k),P.state=a.None,this.closeNode(N,P,k),b},M.prototype.text=function(N,P,k){var b;return this.openNode(N,P,k),P.state=a.OpenTag,b=this.indent(N,P,k),P.state=a.InsideTag,b+=N.value,P.state=a.CloseTag,b+=this.endline(N,P,k),P.state=a.None,this.closeNode(N,P,k),b},M.prototype.dtdAttList=function(N,P,k){var b;return this.openNode(N,P,k),P.state=a.OpenTag,b=this.indent(N,P,k)+"<!ATTLIST",P.state=a.InsideTag,b+=" "+N.elementName+" "+N.attributeName+" "+N.attributeType,N.defaultValueType!=="#DEFAULT"&&(b+=" "+N.defaultValueType),N.defaultValue&&(b+=' "'+N.defaultValue+'"'),P.state=a.CloseTag,b+=P.spaceBeforeSlash+">"+this.endline(N,P,k),P.state=a.None,this.closeNode(N,P,k),b},M.prototype.dtdElement=function(N,P,k){var b;return this.openNode(N,P,k),P.state=a.OpenTag,b=this.indent(N,P,k)+"<!ELEMENT",P.state=a.InsideTag,b+=" "+N.name+" "+N.value,P.state=a.CloseTag,b+=P.spaceBeforeSlash+">"+this.endline(N,P,k),P.state=a.None,this.closeNode(N,P,k),b},M.prototype.dtdEntity=function(N,P,k){var b;return this.openNode(N,P,k),P.state=a.OpenTag,b=this.indent(N,P,k)+"<!ENTITY",P.state=a.InsideTag,N.pe&&(b+=" %"),b+=" "+N.name,N.value?b+=' "'+N.value+'"':(N.pubID&&N.sysID?b+=' PUBLIC "'+N.pubID+'" "'+N.sysID+'"':N.sysID&&(b+=' SYSTEM "'+N.sysID+'"'),N.nData&&(b+=" NDATA "+N.nData)),P.state=a.CloseTag,b+=P.spaceBeforeSlash+">"+this.endline(N,P,k),P.state=a.None,this.closeNode(N,P,k),b},M.prototype.dtdNotation=function(N,P,k){var b;return this.openNode(N,P,k),P.state=a.OpenTag,b=this.indent(N,P,k)+"<!NOTATION",P.state=a.InsideTag,b+=" "+N.name,N.pubID&&N.sysID?b+=' PUBLIC "'+N.pubID+'" "'+N.sysID+'"':N.pubID?b+=' PUBLIC "'+N.pubID+'"':N.sysID&&(b+=' SYSTEM "'+N.sysID+'"'),P.state=a.CloseTag,b+=P.spaceBeforeSlash+">"+this.endline(N,P,k),P.state=a.None,this.closeNode(N,P,k),b},M.prototype.openNode=function(N,P,k){},M.prototype.closeNode=function(N,P,k){},M.prototype.openAttribute=function(N,P,k){},M.prototype.closeAttribute=function(N,P,k){},M}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(s,z,d){"use strict";(function(){var h,a,T,_,x,p,f,o,i,u;u=s("./Utility"),o=u.assign,i=u.isFunction,T=s("./XMLDOMImplementation"),_=s("./XMLDocument"),x=s("./XMLDocumentCB"),f=s("./XMLStringWriter"),p=s("./XMLStreamWriter"),h=s("./NodeType"),a=s("./WriterState"),z.exports.create=function(l,v,m,g){var E,w;if(l==null)throw new Error("Root element needs a name.");return g=o({},v,m,g),E=new _(g),w=E.element(l),g.headless||(E.declaration(g),(g.pubID!=null||g.sysID!=null)&&E.dtd(g)),w},z.exports.begin=function(l,v,m){var g;return i(l)&&(g=[l,v],v=g[0],m=g[1],l={}),v?new x(l,v,m):new _(l)},z.exports.stringWriter=function(l){return new f(l)},z.exports.streamWriter=function(l,v){return new p(l,v)},z.exports.implementation=new T,z.exports.nodeType=h,z.exports.writerState=a}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(s,z,d){z.exports=a;var h=Object.prototype.hasOwnProperty;function a(){for(var T={},_=0;_<arguments.length;_++){var x=arguments[_];for(var p in x)h.call(x,p)&&(T[p]=x[p])}return T}},{}],284:[function(s,z,d){"use strict";var h=s("buffer").Buffer,a=s("./sha"),T=s("./md5"),_={sha1:a,md5:T},x=64,p=h.alloc(x);p.fill(0);function f(u,l,v){h.isBuffer(l)||(l=h.from(l)),h.isBuffer(v)||(v=h.from(v)),l.length>x?l=u(l):l.length<x&&(l=h.concat([l,p],x));for(var m=h.alloc(x),g=h.alloc(x),E=0;E<x;E++)m[E]=l[E]^54,g[E]=l[E]^92;var w=u(h.concat([m,v]));return u(h.concat([g,w]))}function o(u,l){u=u||"sha1";var v=_[u],m=[],g=0;return v||i("algorithm:",u,"is not yet supported"),{update:function(w){return h.isBuffer(w)||(w=h.from(w)),m.push(w),g+=w.length,this},digest:function(w){var O=h.concat(m),C=l?f(v,l,O):v(O);return m=null,w?C.toString(w):C}}}function i(){var u=[].slice.call(arguments).join(" ");throw new Error([u,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}d.createHash=function(u){return o(u)},d.createHmac=function(u,l){return o(u,l)},d.createCredentials=function(){i("sorry,createCredentials is not implemented yet")},d.createCipher=function(){i("sorry,createCipher is not implemented yet")},d.createCipheriv=function(){i("sorry,createCipheriv is not implemented yet")},d.createDecipher=function(){i("sorry,createDecipher is not implemented yet")},d.createDecipheriv=function(){i("sorry,createDecipheriv is not implemented yet")},d.createSign=function(){i("sorry,createSign is not implemented yet")},d.createVerify=function(){i("sorry,createVerify is not implemented yet")},d.createDiffieHellman=function(){i("sorry,createDiffieHellman is not implemented yet")},d.pbkdf2=function(){i("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(s,z,d){"use strict";var h=s("buffer").Buffer,a=4,T=h.alloc(a);T.fill(0);var _=8;function x(o,i){if(o.length%a!==0){var u=o.length+(a-o.length%a);o=h.concat([o,T],u)}for(var l=[],v=i?o.readInt32BE:o.readInt32LE,m=0;m<o.length;m+=a)l.push(v.call(o,m));return l}function p(o,i,u){for(var l=h.alloc(i),v=u?l.writeInt32BE:l.writeInt32LE,m=0;m<o.length;m++)v.call(l,o[m],m*4,!0);return l}function f(o,i,u,l){h.isBuffer(o)||(o=h.from(o));var v=i(x(o,l),o.length*_);return p(v,u,l)}z.exports={hash:f}},{buffer:73}],286:[function(s,z,d){"use strict";var h=s("./helpers");function a(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function T(l,v){l[v>>5]|=128<<v%32,l[(v+64>>>9<<4)+14]=v;for(var m=1732584193,g=-271733879,E=-1732584194,w=271733878,O=0;O<l.length;O+=16){var C=m,M=g,N=E,P=w;m=x(m,g,E,w,l[O+0],7,-680876936),w=x(w,m,g,E,l[O+1],12,-389564586),E=x(E,w,m,g,l[O+2],17,606105819),g=x(g,E,w,m,l[O+3],22,-1044525330),m=x(m,g,E,w,l[O+4],7,-176418897),w=x(w,m,g,E,l[O+5],12,1200080426),E=x(E,w,m,g,l[O+6],17,-1473231341),g=x(g,E,w,m,l[O+7],22,-45705983),m=x(m,g,E,w,l[O+8],7,1770035416),w=x(w,m,g,E,l[O+9],12,-1958414417),E=x(E,w,m,g,l[O+10],17,-42063),g=x(g,E,w,m,l[O+11],22,-1990404162),m=x(m,g,E,w,l[O+12],7,1804603682),w=x(w,m,g,E,l[O+13],12,-40341101),E=x(E,w,m,g,l[O+14],17,-1502002290),g=x(g,E,w,m,l[O+15],22,1236535329),m=p(m,g,E,w,l[O+1],5,-165796510),w=p(w,m,g,E,l[O+6],9,-1069501632),E=p(E,w,m,g,l[O+11],14,643717713),g=p(g,E,w,m,l[O+0],20,-373897302),m=p(m,g,E,w,l[O+5],5,-701558691),w=p(w,m,g,E,l[O+10],9,38016083),E=p(E,w,m,g,l[O+15],14,-660478335),g=p(g,E,w,m,l[O+4],20,-405537848),m=p(m,g,E,w,l[O+9],5,568446438),w=p(w,m,g,E,l[O+14],9,-1019803690),E=p(E,w,m,g,l[O+3],14,-187363961),g=p(g,E,w,m,l[O+8],20,1163531501),m=p(m,g,E,w,l[O+13],5,-1444681467),w=p(w,m,g,E,l[O+2],9,-51403784),E=p(E,w,m,g,l[O+7],14,1735328473),g=p(g,E,w,m,l[O+12],20,-1926607734),m=f(m,g,E,w,l[O+5],4,-378558),w=f(w,m,g,E,l[O+8],11,-2022574463),E=f(E,w,m,g,l[O+11],16,1839030562),g=f(g,E,w,m,l[O+14],23,-35309556),m=f(m,g,E,w,l[O+1],4,-1530992060),w=f(w,m,g,E,l[O+4],11,1272893353),E=f(E,w,m,g,l[O+7],16,-155497632),g=f(g,E,w,m,l[O+10],23,-1094730640),m=f(m,g,E,w,l[O+13],4,681279174),w=f(w,m,g,E,l[O+0],11,-358537222),E=f(E,w,m,g,l[O+3],16,-722521979),g=f(g,E,w,m,l[O+6],23,76029189),m=f(m,g,E,w,l[O+9],4,-640364487),w=f(w,m,g,E,l[O+12],11,-421815835),E=f(E,w,m,g,l[O+15],16,530742520),g=f(g,E,w,m,l[O+2],23,-995338651),m=o(m,g,E,w,l[O+0],6,-198630844),w=o(w,m,g,E,l[O+7],10,1126891415),E=o(E,w,m,g,l[O+14],15,-1416354905),g=o(g,E,w,m,l[O+5],21,-57434055),m=o(m,g,E,w,l[O+12],6,1700485571),w=o(w,m,g,E,l[O+3],10,-1894986606),E=o(E,w,m,g,l[O+10],15,-1051523),g=o(g,E,w,m,l[O+1],21,-2054922799),m=o(m,g,E,w,l[O+8],6,1873313359),w=o(w,m,g,E,l[O+15],10,-30611744),E=o(E,w,m,g,l[O+6],15,-1560198380),g=o(g,E,w,m,l[O+13],21,1309151649),m=o(m,g,E,w,l[O+4],6,-145523070),w=o(w,m,g,E,l[O+11],10,-1120210379),E=o(E,w,m,g,l[O+2],15,718787259),g=o(g,E,w,m,l[O+9],21,-343485551),m=i(m,C),g=i(g,M),E=i(E,N),w=i(w,P)}return Array(m,g,E,w)}function _(l,v,m,g,E,w){return i(u(i(i(v,l),i(g,w)),E),m)}function x(l,v,m,g,E,w,O){return _(v&m|~v&g,l,v,E,w,O)}function p(l,v,m,g,E,w,O){return _(v&g|m&~g,l,v,E,w,O)}function f(l,v,m,g,E,w,O){return _(v^m^g,l,v,E,w,O)}function o(l,v,m,g,E,w,O){return _(m^(v|~g),l,v,E,w,O)}function i(l,v){var m=(l&65535)+(v&65535),g=(l>>16)+(v>>16)+(m>>16);return g<<16|m&65535}function u(l,v){return l<<v|l>>>32-v}z.exports=function(v){return h.hash(v,T,16)}},{"./helpers":285}],287:[function(s,z,d){"use strict";var h=s("./helpers");function a(f,o){f[o>>5]|=128<<24-o%32,f[(o+64>>9<<4)+15]=o;for(var i=Array(80),u=1732584193,l=-271733879,v=-1732584194,m=271733878,g=-1009589776,E=0;E<f.length;E+=16){for(var w=u,O=l,C=v,M=m,N=g,P=0;P<80;P++){P<16?i[P]=f[E+P]:i[P]=p(i[P-3]^i[P-8]^i[P-14]^i[P-16],1);var k=x(x(p(u,5),T(P,l,v,m)),x(x(g,i[P]),_(P)));g=m,m=v,v=p(l,30),l=u,u=k}u=x(u,w),l=x(l,O),v=x(v,C),m=x(m,M),g=x(g,N)}return Array(u,l,v,m,g)}function T(f,o,i,u){return f<20?o&i|~o&u:f<40?o^i^u:f<60?o&i|o&u|i&u:o^i^u}function _(f){return f<20?1518500249:f<40?1859775393:f<60?-1894007588:-899497514}function x(f,o){var i=(f&65535)+(o&65535),u=(f>>16)+(o>>16)+(i>>16);return u<<16|i&65535}function p(f,o){return f<<o|f>>>32-o}z.exports=function(o){return h.hash(o,a,20,!0)}},{"./helpers":285}],288:[function(s,z,d){"use strict";z.exports=function(){return function(){}}},{}],289:[function(s,z,d){(function(h){"use strict";var a=s("babel-runtime/helpers/typeof"),T=_(a);function _(u){return u&&u.__esModule?u:{default:u}}var x=s("stream"),p=x.Stream,f=s("../lib/common/utils/isArray"),o=f.isArray;z.exports.string=function(l){return typeof l=="string"},z.exports.array=o,z.exports.buffer=h.isBuffer;function i(u){return u instanceof p}z.exports.writableStream=function(l){return i(l)&&typeof l._write=="function"&&(0,T.default)(l._writableState)==="object"}}).call(this,{isBuffer:s("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(s,z,d){"use strict";d.encodeURIComponent=function(h){try{return encodeURIComponent(h)}catch(a){return h}},d.escape=s("escape-html"),d.timestamp=function(a){if(a){var T=a;return typeof T=="string"&&(T=Number(T)),String(a).length===10&&(T*=1e3),new Date(T)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(s,z,d){(function(h,a){"use strict";var T=s("babel-runtime/core-js/json/stringify"),_=f(T),x=s("babel-runtime/helpers/typeof"),p=f(x);function f(P){return P&&P.__esModule?P:{default:P}}var o=s("util"),i=s("url"),u=s("http"),l=s("https"),v=s("debug")("urllib"),m=s("humanize-ms"),g,E=0,w=Math.pow(2,31)-10,O=/^https?:\/\//i;function C(P,k){return P===void 0?k:P}function M(P,k){return function(b,V,X){if(b)return k(b);P({data:V,status:X.statusCode,headers:X.headers,res:X})}}d.TIMEOUTS=[m("300s"),m("300s")];var N=["json","text"];d.request=function(k,b,V){return arguments.length===2&&typeof b=="function"&&(V=b,b=null),typeof V=="function"?d.requestWithCallback(k,b,V):(g||(g=s("any-promise")),new g(function(X,D){d.requestWithCallback(k,b,M(X,D))}))},d.requestWithCallback=function(k,b,V){if(!k||typeof k!="string"&&(typeof k=="undefined"?"undefined":(0,p.default)(k))!=="object"){var X=o.format("expect request url to be a string or a http request options, but got %j",k);throw new Error(X)}arguments.length===2&&typeof b=="function"&&(V=b,b=null),b=b||{},E>=w&&(E=0);var D=++E;b.requestUrls=b.requestUrls||[];var L={requestId:D,url:k,args:b,ctx:b.ctx};b.emitter&&b.emitter.emit("request",L),b.timeout=b.timeout||d.TIMEOUTS,b.maxRedirects=b.maxRedirects||10,b.streaming=b.streaming||b.customResponse;var U=Date.now(),J;typeof k=="string"?(O.test(k)||(k="http://"+k),J=i.parse(k)):J=k;var ae=(b.type||b.method||J.method||"GET").toUpperCase(),se=J.port||80,G=u,he=C(b.agent,d.agent),q=b.fixJSONCtlChars;J.protocol==="https:"&&(G=l,he=C(b.httpsAgent,d.httpsAgent),J.port||(se=443));var W={host:J.hostname||J.host||"localhost",path:J.path||"/",method:ae,port:se,agent:he,headers:b.headers||{},lookup:b.lookup};Array.isArray(b.timeout)?W.requestTimeout=b.timeout[b.timeout.length-1]:typeof b.timeout!="undefined"&&(W.requestTimeout=b.timeout);for(var H=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],R=0;R<H.length;R++){var y=H[R];b.hasOwnProperty(y)&&(W[y]=b[y])}W.rejectUnauthorized===!1&&!W.hasOwnProperty("secureOptions")&&(W.secureOptions=s("constants").SSL_OP_NO_TLSv1_2);var A=b.auth||J.auth;A&&(W.auth=A);var ee=b.content||b.data,oe=ae==="GET"||ae==="HEAD"||b.dataAsQueryString;if(!b.content&&(ee&&!(typeof ee=="string"||a.isBuffer(ee))))if(oe)ee=b.nestedQuerystring?qs.stringify(ee):querystring.stringify(ee);else{var de=W.headers["Content-Type"]||W.headers["content-type"];de||(b.contentType==="json"?de="application/json":de="application/x-www-form-urlencoded",W.headers["Content-Type"]=de),parseContentType(de).type==="application/json"?ee=(0,_.default)(ee):ee=b.nestedQuerystring?qs.stringify(ee):querystring.stringify(ee)}oe&&ee&&(W.path+=(J.query?"&":"?")+ee,ee=null);var be=0;if(ee){var xe=ee.length;a.isBuffer(ee)||(xe=a.byteLength(ee)),be=W.headers["Content-Length"]=xe}b.dataType==="json"&&(W.headers.Accept="application/json"),typeof b.beforeRequest=="function"&&b.beforeRequest(W);var te=null,le=null,ue=null,Z=!1,ne=!1,Y=0,re=-1,F=!1,K="",pe="",$=null;b.timing&&($={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function j(){te&&(clearTimeout(te),te=null)}function S(){le&&(clearTimeout(le),le=null)}function B(Oe,Ve,$e){if(S(),!V){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),D,h.pid,W.method,k),Oe&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),D,h.pid,Oe.name,Oe.message,Oe.stack);return}var Ue=V;V=null;var Ke={};if($e&&(re=$e.statusCode,Ke=$e.headers),re===401&&Ke["www-authenticate"]&&(!b.headers||!b.headers.Authorization)&&b.digestAuth){var Re=Ke["www-authenticate"];if(Re.indexOf("Digest ")>=0)return v("Request#%d %s: got digest auth header WWW-Authenticate: %s",D,k,Re),b.headers=b.headers||{},b.headers.Authorization=digestAuthHeader(W.method,W.path,Re,b.digestAuth),v("Request#%d %s: auth with digest header: %s",D,k,b.headers.Authorization),$e.headers["set-cookie"]&&(b.headers.Cookie=$e.headers["set-cookie"].join(";")),d.requestWithCallback(k,b,Ue)}var Te=Date.now()-U;$&&($.contentDownload=Te),v("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Te,Y,re,W.method,W.host,W.path,ne,$);var Ee={status:re,statusCode:re,headers:Ke,size:Y,aborted:F,rt:Te,keepAliveSocket:ne,data:Ve,requestUrls:b.requestUrls,timing:$,remoteAddress:K,remotePort:pe};if(Oe){var ve="";he&&typeof he.getCurrentStatus=="function"&&(ve=", agent status: "+(0,_.default)(he.getCurrentStatus())),Oe.message+=", "+W.method+" "+k+" "+re+" (connected: "+Z+", keepalive socket: "+ne+ve+`)
headers: `+(0,_.default)(Ke),Oe.data=Ve,Oe.path=W.path,Oe.status=re,Oe.headers=Ke,Oe.res=Ee}Ue(Oe,Ve,b.streaming?$e:Ee),b.emitter&&(L.url=k,L.socket=Fe&&Fe.connection,L.options=W,L.size=be,b.emitter.emit("response",{requestId:D,error:Oe,ctx:b.ctx,req:L,res:Ee}))}function me(Oe){var Ve=null;if(b.followRedirect&&statuses.redirect[Oe.statusCode]){b._followRedirectCount=(b._followRedirectCount||0)+1;var $e=Oe.headers.location;if(!$e)Ve=new Error("Got statusCode "+Oe.statusCode+" but cannot resolve next location from headers"),Ve.name="FollowRedirectError";else if(b._followRedirectCount>b.maxRedirects)Ve=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+k),Ve.name="MaxRedirectError";else{var Ue=b.formatRedirectUrl?b.formatRedirectUrl(k,$e):i.resolve(k,$e);v("Request#%d %s: `redirected` from %s to %s",D,W.path,k,Ue),S(),b.headers&&b.headers.Host&&O.test($e)&&(b.headers.Host=null);var Ke=V;return V=null,d.requestWithCallback(Ue,b,Ke),{redirect:!0,error:null}}}return{redirect:!1,error:Ve}}!W.headers["User-Agent"]&&!W.headers["user-agent"]&&(W.headers["User-Agent"]=navigator.userAgent),b.gzip&&(!W.headers["Accept-Encoding"]&&!W.headers["accept-encoding"]&&(W.headers["Accept-Encoding"]="gzip"));function fe(Oe,Ve,$e){var Ue=Oe.headers["content-encoding"];return $e(null,Ve,Ue)}var we=b.writeStream;v("Request#%d %s %s with headers %j, options.path: %s",D,ae,k,W.headers,W.path),b.requestUrls.push(k);function ke(Oe){if($&&($.waiting=Date.now()-U),v("Request#%d %s `req response` event emit: status %d, headers: %j",D,k,Oe.statusCode,Oe.headers),b.streaming){var Ve=me(Oe);if(Ve.redirect){Oe.resume();return}return Ve.error?(Oe.resume(),B(Ve.error,null,Oe)):B(null,null,Oe)}if(Oe.on("close",function(){v("Request#%d %s: `res close` event emit, total size %d",D,k,Y)}),Oe.on("error",function(){v("Request#%d %s: `res error` event emit, total size %d",D,k,Y)}),Oe.on("aborted",function(){F=!0,v("Request#%d %s: `res aborted` event emit, total size %d",D,k,Y)}),we){var Ve=me(Oe);if(Ve.redirect){Oe.resume();return}return Ve.error?(Oe.resume(),we.end(),B(Ve.error,null,Oe)):(b.consumeWriteStream===!1?Oe.on("end",B.bind(null,null,null,Oe)):isNode010||isNode012?first([[we,"close"],[Oe,"aborted"]],function(Ke,Re,Te){v("Request#%d %s: writeStream or res %s event emitted",D,k,Te),B(ue||null,null,Oe)}):we.on("close",function(){v("Request#%d %s: writeStream close event emitted",D,k),B(ue||null,null,Oe)}),Oe.pipe(we))}var $e=[];Oe.on("data",function(Ue){v("Request#%d %s: `res data` event emit, size %d",D,k,Ue.length),Y+=Ue.length,$e.push(Ue)}),Oe.on("end",function(){var Ue=a.concat($e,Y);if(v("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",D,k,Y,Oe._dumped),ue)return B(ue,Ue,Oe);var Ke=me(Oe);if(Ke.error)return B(Ke.error,Ue,Oe);if(Ke.redirect)return;fe(Oe,Ue,function(Re,Te,Ee){if(Re)return B(Re,Ue,Oe);if(!Ee&&N.indexOf(b.dataType)>=0){try{Te=decodeBodyByCharset(Te,Oe)}catch(ye){return v("decodeBodyByCharset error: %s",ye),B(null,Te,Oe)}if(b.dataType==="json")if(Y===0)Te=null;else{var ve=parseJSON(Te,q);ve.error?Re=ve.error:Te=ve.data}}F&&v("Request#%d %s: Remote socket was terminated before `response.end()` was called",D,k),B(Re,Te,Oe)})})}var Me,Ne;Array.isArray(b.timeout)?(Me=m(b.timeout[0]),Ne=m(b.timeout[1])):Me=Ne=m(b.timeout),v("ConnectTimeout: %d, ResponseTimeout: %d",Me,Ne);function Le(){v("Connect timer ticking, timeout: %d",Me),te=setTimeout(function(){te=null,re===-1&&(re=-2);var Oe="Connect timeout for "+Me+"ms",Ve="ConnectionTimeoutError";Fe.socket||(Ve="SocketAssignTimeoutError",Oe+=", working sockets is full"),ue=new Error(Oe),ue.name=Ve,ue.requestId=D,v("ConnectTimeout: Request#%d %s %s: %s, connected: %s",D,k,ue.name,Oe,Z),He()},Me)}function We(){v("Response timer ticking, timeout: %d",Ne),le=setTimeout(function(){le=null;var Oe="Response timeout for "+Ne+"ms",Ve="ResponseTimeoutError";ue=new Error(Oe),ue.name=Ve,ue.requestId=D,v("ResponseTimeout: Request#%d %s %s: %s, connected: %s",D,k,ue.name,Oe,Z),He()},Ne)}var Fe;W.mode=b.mode?b.mode:"";try{Fe=G.request(W,ke)}catch(Oe){return B(Oe)}typeof window=="undefined"?Le():Fe.on("requestTimeout",function(){re===-1&&(re=-2);var Oe="Connect timeout for "+Me+"ms",Ve="ConnectionTimeoutError";ue=new Error(Oe),ue.name=Ve,ue.requestId=D,He()});function He(){v("Request#%d %s abort, connected: %s",D,k,Z),Fe.socket||(ue.noSocket=!0,B(ue)),Fe.abort()}return $&&Fe.on("finish",function(){$.requestSent=Date.now()-U}),Fe.once("socket",function(Oe){$&&($.queuing=Date.now()-U),isNode010&&Oe.socket&&(Oe=Oe.socket);var Ve=Oe.readyState;if(Ve==="opening"){Oe.once("lookup",function($e,Ue,Ke){v("Request#%d %s lookup: %s, %s, %s",D,k,$e,Ue,Ke),$&&($.dnslookup=Date.now()-U),Ue&&(K=Ue)}),Oe.once("connect",function(){$&&($.connected=Date.now()-U),j(),We(),v("Request#%d %s new socket connected",D,k),Z=!0,K||(K=Oe.remoteAddress),pe=Oe.remotePort});return}v("Request#%d %s reuse socket connected, readyState: %s",D,k,Ve),Z=!0,ne=!0,K||(K=Oe.remoteAddress),pe=Oe.remotePort,j(),We()}),Fe.on("error",function(Oe){(Oe.name==="Error"||Oe.name==="TypeError")&&(Oe.name=Z?"ResponseError":"RequestError"),Oe.message+=' (req "error")',v("Request#%d %s `req error` event emit, %s: %s",D,k,Oe.name,Oe.message),B(ue||Oe)}),we&&we.once("error",function(Oe){Oe.message+=' (writeStream "error")',ue=Oe,v("Request#%d %s `writeStream error` event emit, %s: %s",D,k,Oe.name,Oe.message),He()}),b.stream?(b.stream.pipe(Fe),b.stream.once("error",function(Oe){Oe.message+=' (stream "error")',ue=Oe,v("Request#%d %s `readStream error` event emit, %s: %s",D,k,Oe.name,Oe.message),He()})):Fe.end(ee),Fe.requestId=D,Fe}}).call(this,s("_process"),s("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("IyRk"))},nj2k:function(s,z,d){s.exports=d.p+"static/nodata.c3b0b86c.svg"},oRuE:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("OLod"))})(this,function(h){return h.pad.Iso10126={pad:function(a,T){var _=T*4,x=_-a.sigBytes%_;a.concat(h.lib.WordArray.random(x-1)).concat(h.lib.WordArray.create([x<<24],1))},unpad:function(a){var T=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=T}},h.pad.Iso10126})},osHv:function(s,z,d){(function(h){h(d("VrN/"))})(function(h){"use strict";var a=h.Pos;function T(O,C){return O.line-C.line||O.ch-C.ch}var _="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",x=_+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",p=new RegExp("<(/?)(["+_+"]["+x+"]*)","g");function f(O,C,M,N){this.line=C,this.ch=M,this.cm=O,this.text=O.getLine(C),this.min=N?Math.max(N.from,O.firstLine()):O.firstLine(),this.max=N?Math.min(N.to-1,O.lastLine()):O.lastLine()}function o(O,C){var M=O.cm.getTokenTypeAt(a(O.line,C));return M&&/\btag\b/.test(M)}function i(O){return O.line>=O.max?void 0:(O.ch=0,O.text=O.cm.getLine(++O.line),!0)}function u(O){return O.line<=O.min?void 0:(O.text=O.cm.getLine(--O.line),O.ch=O.text.length,!0)}function l(O){for(;;){var C=O.text.indexOf(">",O.ch);if(C==-1){if(i(O))continue;return}if(!o(O,C+1)){O.ch=C+1;continue}var M=O.text.lastIndexOf("/",C),N=M>-1&&!/\S/.test(O.text.slice(M+1,C));return O.ch=C+1,N?"selfClose":"regular"}}function v(O){for(;;){var C=O.ch?O.text.lastIndexOf("<",O.ch-1):-1;if(C==-1){if(u(O))continue;return}if(!o(O,C+1)){O.ch=C;continue}p.lastIndex=C,O.ch=C;var M=p.exec(O.text);if(M&&M.index==C)return M}}function m(O){for(;;){p.lastIndex=O.ch;var C=p.exec(O.text);if(!C){if(i(O))continue;return}if(!o(O,C.index+1)){O.ch=C.index+1;continue}return O.ch=C.index+C[0].length,C}}function g(O){for(;;){var C=O.ch?O.text.lastIndexOf(">",O.ch-1):-1;if(C==-1){if(u(O))continue;return}if(!o(O,C+1)){O.ch=C;continue}var M=O.text.lastIndexOf("/",C),N=M>-1&&!/\S/.test(O.text.slice(M+1,C));return O.ch=C+1,N?"selfClose":"regular"}}function E(O,C){for(var M=[];;){var N=m(O),P,k=O.line,b=O.ch-(N?N[0].length:0);if(!N||!(P=l(O)))return;if(P=="selfClose")continue;if(N[1]){for(var V=M.length-1;V>=0;--V)if(M[V]==N[2]){M.length=V;break}if(V<0&&(!C||C==N[2]))return{tag:N[2],from:a(k,b),to:a(O.line,O.ch)}}else M.push(N[2])}}function w(O,C){for(var M=[];;){var N=g(O);if(!N)return;if(N=="selfClose"){v(O);continue}var P=O.line,k=O.ch,b=v(O);if(!b)return;if(b[1])M.push(b[2]);else{for(var V=M.length-1;V>=0;--V)if(M[V]==b[2]){M.length=V;break}if(V<0&&(!C||C==b[2]))return{tag:b[2],from:a(O.line,O.ch),to:a(P,k)}}}}h.registerHelper("fold","xml",function(O,C){for(var M=new f(O,C.line,0);;){var N=m(M);if(!N||M.line!=C.line)return;var P=l(M);if(!P)return;if(!N[1]&&P!="selfClose"){var k=a(M.line,M.ch),b=E(M,N[2]);return b&&T(b.from,k)>0?{from:k,to:b.from}:null}}}),h.findMatchingTag=function(O,C,M){var N=new f(O,C.line,C.ch,M);if(N.text.indexOf(">")==-1&&N.text.indexOf("<")==-1)return;var P=l(N),k=P&&a(N.line,N.ch),b=P&&v(N);if(!P||!b||T(N,C)>0)return;var V={from:a(N.line,N.ch),to:k,tag:b[2]};return P=="selfClose"?{open:V,close:null,at:"open"}:b[1]?{open:w(N,b[2]),close:V,at:"close"}:(N=new f(O,k.line,k.ch,M),{open:V,close:E(N,b[2]),at:"open"})},h.findEnclosingTag=function(O,C,M,N){for(var P=new f(O,C.line,C.ch,M);;){var k=w(P,N);if(!k)break;var b=new f(O,C.line,C.ch,M),V=E(b,k.tag);if(V)return{open:k,close:V}}},h.scanForClosingTag=function(O,C,M,N){var P=new f(O,C.line,C.ch,N?{from:0,to:N}:null);return E(P,M)}})},p5ED:function(s,z,d){"use strict";var h=d("+L6B"),a=d("2/Rp"),T=d("5Dmo"),_=d("3S7+"),x=d("k1fw"),p=d("tJVT"),f=d("q1tI"),o=d.n(f),i=d("vHTk"),u=d.n(i),l=d("yEEn"),v=d("ZW9T"),m=d("1vsH");z.a=function(g){var E=g.name,w=g.data,O=g.theme,C=g.type,M=g.filename,N=g.monacoEditor,P=g.className,k=g.style,b=g.close,V=g.onClose,X=g.hasMask,D=Object(f.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),L=Object(p.a)(D,2),U=L[0],J=L[1],ae=Object(f.useState)(""),se=Object(p.a)(ae,2),G=se[0],he=se[1],q=Object(f.useRef)();M&&(N.filename=M),Object(f.useEffect)(function(){var R,y,A=(R=document.cookie)===null||R===void 0||((y=R.replace(/\s/g,""))===null||y===void 0)?void 0:y.split(";");A==null||A.map(function(ee){var oe=ee.split("=");oe[0]==="_educoder_session"&&he(oe[1])})},[]);var W=function(){if(w.startsWith("http")||w.startsWith("/")){H();return}Object(m.y)(M||"educoder",w,M)},H=function(){Object(m.w)(M||E,w)};return console.log("data:",w,"fileanme:",M," name:",E),o.a.createElement("div",{style:Object(x.a)({},k||{}),className:"".concat(X&&u.a.bgBlack," ").concat(C?u.a.wrp:"hide")},b&&o.a.createElement("div",{className:u.a.close,ref:q},o.a.createElement(_.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return q.current}},o.a.createElement("span",{onClick:H},o.a.createElement("i",{className:"icon-quxiaozhiding"}))),o.a.createElement(_.a,{title:"\u5173\u95ED",getPopupContainer:function(){return q.current}},o.a.createElement("span",{className:"",onClick:V},o.a.createElement("i",{className:"icon-guanbi1"})))),o.a.createElement("div",{className:"".concat(u.a[P]," ").concat(P," ").concat(u.a.monaco," ").concat(C==="txt"?"show":"hide")},C==="txt"&&o.a.createElement(v.b,N)),C==="audio"&&o.a.createElement("audio",{src:"".concat(w!=null&&w.startsWith("/")||(w==null?void 0:w.indexOf("https://"))>-1?w:"data:audio/mp3;base64,").concat(w),autoPlay:!0}),C==="video"&&o.a.createElement(o.a.Fragment,null,w!=null&&w.startsWith("/")?o.a.createElement("video",{controls:!0,src:"".concat(w),autoPlay:!0}):o.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(w),autoPlay:!0})),C==="pdf"&&o.a.createElement("embed",{className:u.a.embed,src:w}),C==="image"&&o.a.createElement(o.a.Fragment,null,o.a.createElement("img",{src:"".concat(w!=null&&w.startsWith("/")||(w==null?void 0:w.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(w)})),C==="other"&&o.a.createElement("div",null,o.a.createElement(a.a,{type:"primary",size:"large",onClick:W},o.a.createElement(l.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(C==="download"||C==="office")&&o.a.createElement(a.a,{type:"primary",size:"large",onClick:W},o.a.createElement(l.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(s,z,d){},pA7S:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(h){return function(){var a=h,T=a.lib,_=T.WordArray,x=T.BlockCipher,p=a.algo,f=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[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],i=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{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}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],v=p.DES=x.extend({_doReset:function(){for(var w=this._key,O=w.words,C=[],M=0;M<56;M++){var N=f[M]-1;C[M]=O[N>>>5]>>>31-N%32&1}for(var P=this._subKeys=[],k=0;k<16;k++){for(var b=P[k]=[],V=i[k],M=0;M<24;M++)b[M/6|0]|=C[(o[M]-1+V)%28]<<31-M%6,b[4+(M/6|0)]|=C[28+(o[M+24]-1+V)%28]<<31-M%6;b[0]=b[0]<<1|b[0]>>>31;for(var M=1;M<7;M++)b[M]=b[M]>>>(M-1)*4+3;b[7]=b[7]<<5|b[7]>>>27}for(var X=this._invSubKeys=[],M=0;M<16;M++)X[M]=P[15-M]},encryptBlock:function(w,O){this._doCryptBlock(w,O,this._subKeys)},decryptBlock:function(w,O){this._doCryptBlock(w,O,this._invSubKeys)},_doCryptBlock:function(w,O,C){this._lBlock=w[O],this._rBlock=w[O+1],m.call(this,4,252645135),m.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),m.call(this,1,1431655765);for(var M=0;M<16;M++){for(var N=C[M],P=this._lBlock,k=this._rBlock,b=0,V=0;V<8;V++)b|=u[V][((k^N[V])&l[V])>>>0];this._lBlock=k,this._rBlock=P^b}var X=this._lBlock;this._lBlock=this._rBlock,this._rBlock=X,m.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),w[O]=this._lBlock,w[O+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(w,O){var C=(this._lBlock>>>w^this._rBlock)&O;this._rBlock^=C,this._lBlock^=C<<w}function g(w,O){var C=(this._rBlock>>>w^this._lBlock)&O;this._lBlock^=C,this._rBlock^=C<<w}a.DES=x._createHelper(v);var E=p.TripleDES=x.extend({_doReset:function(){var w=this._key,O=w.words;if(O.length!==2&&O.length!==4&&O.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var C=O.slice(0,2),M=O.length<4?O.slice(0,2):O.slice(2,4),N=O.length<6?O.slice(0,2):O.slice(4,6);this._des1=v.createEncryptor(_.create(C)),this._des2=v.createEncryptor(_.create(M)),this._des3=v.createEncryptor(_.create(N))},encryptBlock:function(w,O){this._des1.encryptBlock(w,O),this._des2.decryptBlock(w,O),this._des3.encryptBlock(w,O)},decryptBlock:function(w,O){this._des3.decryptBlock(w,O),this._des2.encryptBlock(w,O),this._des1.decryptBlock(w,O)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=x._createHelper(E)}(),h.TripleDES})},qBft:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("OLod"))})(this,function(h){return h.pad.AnsiX923={pad:function(a,T){var _=a.sigBytes,x=T*4,p=x-_%x,f=_+p-1;a.clamp(),a.words[f>>>2]|=p<<24-f%4*8,a.sigBytes+=p},unpad:function(a){var T=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=T}},h.pad.Ansix923})},qM6L:function(s,z,d){(function(h,a){s.exports=z=a(d("Ib8C"))})(this,function(h){return function(){var a=h,T=a.lib,_=T.WordArray,x=a.enc,p=x.Utf16=x.Utf16BE={stringify:function(o){for(var i=o.words,u=o.sigBytes,l=[],v=0;v<u;v+=2){var m=i[v>>>2]>>>16-v%4*8&65535;l.push(String.fromCharCode(m))}return l.join("")},parse:function(o){for(var i=o.length,u=[],l=0;l<i;l++)u[l>>>1]|=o.charCodeAt(l)<<16-l%2*16;return _.create(u,i*2)}};x.Utf16LE={stringify:function(o){for(var i=o.words,u=o.sigBytes,l=[],v=0;v<u;v+=2){var m=f(i[v>>>2]>>>16-v%4*8&65535);l.push(String.fromCharCode(m))}return l.join("")},parse:function(o){for(var i=o.length,u=[],l=0;l<i;l++)u[l>>>1]|=f(o.charCodeAt(l)<<16-l%2*16);return _.create(u,i*2)}};function f(o){return o<<8&4278255360|o>>>8&16711935}}(),h.enc.Utf16})},qu8F:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("OLod"))})(this,function(h){/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return h.mode.CTRGladman=function(){var a=h.lib.BlockCipherMode.extend();function T(p){if((p>>24&255)===255){var f=p>>16&255,o=p>>8&255,i=p&255;f===255?(f=0,o===255?(o=0,i===255?i=0:++i):++o):++f,p=0,p+=f<<16,p+=o<<8,p+=i}else p+=1<<24;return p}function _(p){return(p[0]=T(p[0]))===0&&(p[1]=T(p[1])),p}var x=a.Encryptor=a.extend({processBlock:function(p,f){var o=this._cipher,i=o.blockSize,u=this._iv,l=this._counter;u&&(l=this._counter=u.slice(0),this._iv=void 0),_(l);var v=l.slice(0);o.encryptBlock(v,0);for(var m=0;m<i;m++)p[f+m]^=v[m]}});return a.Decryptor=x,a}(),h.mode.CTRGladman})},"rAM+":function(s,z,d){"use strict";d.d(z,"a",function(){return a});var h=d("Qw5x");function a(T,_){var x;if(typeof Symbol=="undefined"||T[Symbol.iterator]==null){if(Array.isArray(T)||(x=Object(h.a)(T))||_&&T&&typeof T.length=="number"){x&&(T=x);var p=0,f=function(){};return{s:f,n:function(){return p>=T.length?{done:!0}:{done:!1,value:T[p++]}},e:function(v){throw v},f}}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 o=!0,i=!1,u;return{s:function(){x=T[Symbol.iterator]()},n:function(){var v=x.next();return o=v.done,v},e:function(v){i=!0,u=v},f:function(){try{!o&&x.return!=null&&x.return()}finally{if(i)throw u}}}}},rUJ1:function(s,z){const d=/[&<>"']/,h=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,T=/[<>"']|&(?!#?\w+;)/g,_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},x=X=>_[X];function p(X,D){if(D){if(d.test(X))return X.replace(h,x)}else if(a.test(X))return X.replace(T,x);return X}const f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function o(X){return X.replace(f,(D,L)=>(L=L.toLowerCase(),L==="colon"?":":L.charAt(0)==="#"?L.charAt(1)==="x"?String.fromCharCode(parseInt(L.substring(2),16)):String.fromCharCode(+L.substring(1)):""))}const i=/(^|[^\[])\^/g;function u(X,D){X=X.source||X,D=D||"";const L={replace:(U,J)=>(J=J.source||J,J=J.replace(i,"$1"),X=X.replace(U,J),L),getRegex:()=>new RegExp(X,D)};return L}const l=/[^\w:]/g,v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(X,D,L){if(X){let U;try{U=decodeURIComponent(o(L)).replace(l,"").toLowerCase()}catch(J){return null}if(U.indexOf("javascript:")===0||U.indexOf("vbscript:")===0||U.indexOf("data:")===0)return null}D&&!v.test(L)&&(L=C(D,L));try{L=encodeURI(L).replace(/%25/g,"%")}catch(U){return null}return L}const g={},E=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,O=/^([^:]+:\/*[^/]*)[\s\S]*$/;function C(X,D){g[" "+X]||(E.test(X)?g[" "+X]=X+"/":g[" "+X]=k(X,"/",!0)),X=g[" "+X];const L=X.indexOf(":")===-1;return D.substring(0,2)==="//"?L?D:X.replace(w,"$1")+D:D.charAt(0)==="/"?L?D:X.replace(O,"$1")+D:X+D}const M={exec:function(){}};function N(X){let D=1,L,U;for(;D<arguments.length;D++){L=arguments[D];for(U in L)Object.prototype.hasOwnProperty.call(L,U)&&(X[U]=L[U])}return X}function P(X,D){const L=X.replace(/\|/g,(ae,se,G)=>{let he=!1,q=se;for(;--q>=0&&G[q]==="\\";)he=!he;return he?"|":" |"}),U=L.split(/ \|/);let J=0;if(U.length>D)U.splice(D);else for(;U.length<D;)U.push("");for(;J<U.length;J++)U[J]=U[J].trim().replace(/\\\|/g,"|");return U}function k(X,D,L){const U=X.length;if(U===0)return"";let J=0;for(;J<U;){const ae=X.charAt(U-J-1);if(ae===D&&!L)J++;else if(ae!==D&&L)J++;else break}return X.substr(0,U-J)}function b(X,D){if(X.indexOf(D[1])===-1)return-1;const L=X.length;let U=0,J=0;for(;J<L;J++)if(X[J]==="\\")J++;else if(X[J]===D[0])U++;else if(X[J]===D[1]&&(U--,U<0))return J;return-1}function V(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")}s.exports={escape:p,unescape:o,edit:u,cleanUrl:m,resolveUrl:C,noopTest:M,merge:N,splitCells:P,rtrim:k,findClosingBracket:b,checkSanitizeDeprecation:V}},rdUC:function(s,z,d){var h=d("MFOe"),a=h.Global;s.exports={name:"localStorage",read:_,write:x,each:p,remove:f,clearAll:o};function T(){return a.localStorage}function _(i){return T().getItem(i)}function x(i,u){return T().setItem(i,u)}function p(i){for(var u=T().length-1;u>=0;u--){var l=T().key(u);i(_(l),l)}}function f(i){return T().removeItem(i)}function o(){return T().clear()}},sboe:function(s,z,d){"use strict";d.d(z,"a",function(){return T});var h=d("q1tI"),a=d.n(h),T=h.createContext(null)},spXi:function(s,z,d){s.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(s,z,d){"use strict";d.d(z,"a",function(){return k});var h=d("miYZ"),a=d("tsqr"),T=d("9og8"),_=d("5NDa"),x=d("5rEg"),p=d("2qtc"),f=d("kLXV"),o=d("oBTY"),i=d("tJVT"),u=d("OaEy"),l=d("2fM7"),v=d("WmNS"),m=d.n(v),g=d("q1tI"),E=d.n(g),w=d("ErOA"),O=d("i58Z"),C=d.n(O),M=d("T1X5"),N=d.n(M),P=l.a.Option,k=function(V){var X=V.subId,D=V.value,L=V.selectvalues,U=V.disabled,J=V.knowledgeOptions,ae=J===void 0?[]:J,se=V.onChange,G=se===void 0?function(){}:se,he=V.onAddKnowledgeFinish,q=he===void 0?function(){}:he,W=Object(g.useRef)(),H=Object(g.useState)([]),R=Object(i.a)(H,2),y=R[0],A=R[1];D=D||[];var ee=function(be,xe){be?(A([xe.key]),G([xe.key])):(A([]),G([]))};Object(g.useEffect)(function(){(L==null?void 0:L.length)>0&&(A(Object(o.a)(L)),G(Object(o.a)(L)))},[ae]),Object(g.useEffect)(function(){var de;((de=D)===null||de===void 0?void 0:de.length)>0&&G(Object(o.a)(D))},[ae]);var oe=function(be){be.preventDefault(),W.current="",f.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:E.a.createElement("div",{className:"font14"},E.a.createElement("div",{style:{display:"flex",marginTop:"48px",marginBottom:"36px"}},E.a.createElement("img",{src:N.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",E.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",E.a.createElement("br",null),"\u8BF7\u8BA4\u771F\u586B\u5199\u4E0E\u6559\u5B66\u5185\u5BB9\u76F8\u5173\u7684\u771F\u5B9E\u77E5\u8BC6\u70B9 ",E.a.createElement("br",null)),E.a.createElement(x.a,{className:"mt5",maxLength:20,style:{marginBottom:"42px"},placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:W.current,onChange:function(te){W.current=te.target.value}})),onOk:function(){return new Promise(function(){var te=Object(T.a)(m.a.mark(function le(ue,Z){var ne,Y;return m.a.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(W.current){F.next=3;break}return a.b.warn("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),F.abrupt("return",Z());case 3:if(!(W.current.length>20)){F.next=6;break}return a.b.warn("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),F.abrupt("return",Z());case 6:return F.next=8,Object(w.a)("/api/tag_disciplines.json",{method:"post",body:{name:W.current,sub_discipline_id:X}});case 8:return ne=F.sent,(ne==null?void 0:ne.status)===0&&(q({id:ne.tag_discipline_id,name:W.current,type:"personal"}),Y=[],Y.push(ne.tag_discipline_id),G([].concat(Y)),A([ne.tag_discipline_id]),G([].concat(Y))),F.abrupt("return",ue());case 11:case"end":return F.stop()}},le)}));return function(le,ue){return te.apply(this,arguments)}}())}})};return E.a.createElement("div",{className:C.a.wrap},E.a.createElement(l.a,{disabled:!X||U,className:"mr5",style:{width:"242px"},onChange:ee,showSearch:!0,allowClear:!0,value:ae==null?void 0:ae.filter(function(de){return(y==null?void 0:y.includes(de==null?void 0:de.id))||(y==null?void 0:y.includes((de==null?void 0:de.id)+""))}).map(function(de){return de.name})},ae==null?void 0:ae.map(function(de){return E.a.createElement(P,{key:de.id,value:de.name},E.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},E.a.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},de.name),E.a.createElement("span",null,de.type==="personal"?"\uFF08\u81EA\u7528\uFF09":"")))})),E.a.createElement("button",{disabled:!X,className:"".concat(C.a.addKnowledge," ").concat(X?"":C.a.disabled),onClick:oe},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"))}},uGsb:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("MlIO"),d("1uat"))})(this,function(h){return function(){var a=h,T=a.x64,_=T.Word,x=T.WordArray,p=a.algo,f=p.SHA512,o=p.SHA384=f.extend({_doReset:function(){this._hash=new x.init([new _.init(3418070365,3238371032),new _.init(1654270250,914150663),new _.init(2438529370,812702999),new _.init(355462360,4144912697),new _.init(1731405415,4290775857),new _.init(2394180231,1750603025),new _.init(3675008525,1694076839),new _.init(1203062813,3204075428)])},_doFinalize:function(){var i=f._doFinalize.call(this);return i.sigBytes-=16,i}});a.SHA384=f._createHelper(o),a.HmacSHA384=f._createHmacHelper(o)}(),h.SHA384})},uGxW:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("OLod"))})(this,function(h){return h.pad.NoPadding={pad:function(){},unpad:function(){}},h.pad.NoPadding})},uK0f:function(s,z,d){(function(h,a){s.exports=a()})(this,function(){"use strict";function h(a,T,_){_=_||{},_.childrenKeyName=_.childrenKeyName||"children";var x=a||[],p=[],f=0;do{var o=x.filter(function(i){return T(i,f)})[0];if(!o)break;p.push(o),x=o[_.childrenKeyName]||[],f+=1}while(x.length>0);return p}return h})},uMZB:function(s,z,d){s.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(s,z,d){s.exports=h;function h(){return d("gaXo"),{}}},vHTk:function(s,z,d){s.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},w7YG:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(h){return function(){var a=h,T=a.lib,_=T.StreamCipher,x=a.algo,p=x.RC4=_.extend({_doReset:function(){for(var i=this._key,u=i.words,l=i.sigBytes,v=this._S=[],m=0;m<256;m++)v[m]=m;for(var m=0,g=0;m<256;m++){var E=m%l,w=u[E>>>2]>>>24-E%4*8&255;g=(g+v[m]+w)%256;var O=v[m];v[m]=v[g],v[g]=O}this._i=this._j=0},_doProcessBlock:function(i,u){i[u]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var i=this._S,u=this._i,l=this._j,v=0,m=0;m<4;m++){u=(u+1)%256,l=(l+i[u])%256;var g=i[u];i[u]=i[l],i[l]=g,v|=i[(i[u]+i[l])%256]<<24-m*8}return this._i=u,this._j=l,v}a.RC4=_._createHelper(p);var o=x.RC4Drop=p.extend({cfg:p.cfg.extend({drop:192}),_doReset:function(){p._doReset.call(this);for(var i=this.cfg.drop;i>0;i--)f.call(this)}});a.RC4Drop=_._createHelper(o)}(),h.RC4})},wMS7:function(s,z,d){/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.0.8/LICENSE */(function(h,a){s.exports=a()})(this,function(){"use strict";function h(F){if(Array.isArray(F)){for(var K=0,pe=Array(F.length);K<F.length;K++)pe[K]=F[K];return pe}else return Array.from(F)}var a=Object.hasOwnProperty,T=Object.setPrototypeOf,_=Object.isFrozen,x=Object.keys,p=Object.freeze,f=Object.seal,o=Object.create,i=typeof Reflect!="undefined"&&Reflect,u=i.apply,l=i.construct;u||(u=function(K,pe,$){return K.apply(pe,$)}),p||(p=function(K){return K}),f||(f=function(K){return K}),l||(l=function(K,pe){return new(Function.prototype.bind.apply(K,[null].concat(h(pe))))});var v=D(Array.prototype.forEach),m=D(Array.prototype.indexOf),g=D(Array.prototype.join),E=D(Array.prototype.pop),w=D(Array.prototype.push),O=D(Array.prototype.slice),C=D(String.prototype.toLowerCase),M=D(String.prototype.match),N=D(String.prototype.replace),P=D(String.prototype.indexOf),k=D(String.prototype.trim),b=D(RegExp.prototype.test),V=L(RegExp),X=L(TypeError);function D(F){return function(K){for(var pe=arguments.length,$=Array(pe>1?pe-1:0),j=1;j<pe;j++)$[j-1]=arguments[j];return u(F,K,$)}}function L(F){return function(){for(var K=arguments.length,pe=Array(K),$=0;$<K;$++)pe[$]=arguments[$];return l(F,pe)}}function U(F,K){T&&T(F,null);for(var pe=K.length;pe--;){var $=K[pe];if(typeof $=="string"){var j=C($);j!==$&&(_(K)||(K[pe]=j),$=j)}F[$]=!0}return F}function J(F){var K=o(null),pe=void 0;for(pe in F)u(a,F,[pe])&&(K[pe]=F[pe]);return K}var ae=p(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),se=p(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"]),G=p(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),he=p(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),q=p(["#text"]),W=p(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),H=p(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),R=p(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),y=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),A=f(/\{\{[\s\S]*|[\s\S]*\}\}/gm),ee=f(/<%[\s\S]*|[\s\S]*%>/gm),oe=f(/^data-[\-\w.\u00B7-\uFFFF]/),de=f(/^aria-[\-\w]+$/),be=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xe=f(/^(?:\w+script|data):/i),te=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F};function ue(F){if(Array.isArray(F)){for(var K=0,pe=Array(F.length);K<F.length;K++)pe[K]=F[K];return pe}else return Array.from(F)}var Z=function(){return typeof window=="undefined"?null:window},ne=function(K,pe){if((typeof K=="undefined"?"undefined":le(K))!=="object"||typeof K.createPolicy!="function")return null;var $=null,j="data-tt-policy-suffix";pe.currentScript&&pe.currentScript.hasAttribute(j)&&($=pe.currentScript.getAttribute(j));var S="dompurify"+($?"#"+$:"");try{return K.createPolicy(S,{createHTML:function(me){return me}})}catch(B){return console.warn("TrustedTypes policy "+S+" could not be created."),null}};function Y(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Z(),K=function(Be){return Y(Be)};if(K.version="2.0.15",K.removed=[],!F||!F.document||F.document.nodeType!==9)return K.isSupported=!1,K;var pe=F.document,$=!1,j=F.document,S=F.DocumentFragment,B=F.HTMLTemplateElement,me=F.Node,fe=F.NodeFilter,we=F.NamedNodeMap,ke=we===void 0?F.NamedNodeMap||F.MozNamedAttrMap:we,Me=F.Text,Ne=F.Comment,Le=F.DOMParser,We=F.trustedTypes;if(typeof B=="function"){var Fe=j.createElement("template");Fe.content&&Fe.content.ownerDocument&&(j=Fe.content.ownerDocument)}var He=ne(We,pe),Oe=He&&Qt?He.createHTML(""):"",Ve=j,$e=Ve.implementation,Ue=Ve.createNodeIterator,Ke=Ve.getElementsByTagName,Re=Ve.createDocumentFragment,Te=pe.importNode,Ee=J(j).documentMode?j.documentMode:{},ve={};K.isSupported=$e&&typeof $e.createHTMLDocument!="undefined"&&Ee!==9;var ye=A,_e=ee,Se=oe,Ie=de,De=xe,ze=te,qe=be,tt=null,ot=U({},[].concat(ue(ae),ue(se),ue(G),ue(he),ue(q))),nt=null,pt=U({},[].concat(ue(W),ue(H),ue(R),ue(y))),ft=null,_t=null,Rt=!0,Gt=!0,Wt=!1,Ct=!1,At=!1,dr=!1,sr=!1,fr=!1,Ft=!1,vr=!1,rr=!1,Qt=!1,wr=!0,Pt=!0,rt=!1,kt={},nr=U({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),Et=null,Tt=U({},["audio","video","img","source","image","track"]),qt=null,Nr=U({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),br=null,Ye=j.createElement("form"),vt=function(Be){if(br&&br===Be)return;(!Be||(typeof Be=="undefined"?"undefined":le(Be))!=="object")&&(Be={}),Be=J(Be),tt="ALLOWED_TAGS"in Be?U({},Be.ALLOWED_TAGS):ot,nt="ALLOWED_ATTR"in Be?U({},Be.ALLOWED_ATTR):pt,qt="ADD_URI_SAFE_ATTR"in Be?U(J(Nr),Be.ADD_URI_SAFE_ATTR):Nr,Et="ADD_DATA_URI_TAGS"in Be?U(J(Tt),Be.ADD_DATA_URI_TAGS):Tt,ft="FORBID_TAGS"in Be?U({},Be.FORBID_TAGS):{},_t="FORBID_ATTR"in Be?U({},Be.FORBID_ATTR):{},kt="USE_PROFILES"in Be?Be.USE_PROFILES:!1,Rt=Be.ALLOW_ARIA_ATTR!==!1,Gt=Be.ALLOW_DATA_ATTR!==!1,Wt=Be.ALLOW_UNKNOWN_PROTOCOLS||!1,Ct=Be.SAFE_FOR_JQUERY||!1,At=Be.SAFE_FOR_TEMPLATES||!1,dr=Be.WHOLE_DOCUMENT||!1,Ft=Be.RETURN_DOM||!1,vr=Be.RETURN_DOM_FRAGMENT||!1,rr=Be.RETURN_DOM_IMPORT||!1,Qt=Be.RETURN_TRUSTED_TYPE||!1,fr=Be.FORCE_BODY||!1,wr=Be.SANITIZE_DOM!==!1,Pt=Be.KEEP_CONTENT!==!1,rt=Be.IN_PLACE||!1,qe=Be.ALLOWED_URI_REGEXP||qe,At&&(Gt=!1),vr&&(Ft=!0),kt&&(tt=U({},[].concat(ue(q))),nt=[],kt.html===!0&&(U(tt,ae),U(nt,W)),kt.svg===!0&&(U(tt,se),U(nt,H),U(nt,y)),kt.svgFilters===!0&&(U(tt,G),U(nt,H),U(nt,y)),kt.mathMl===!0&&(U(tt,he),U(nt,R),U(nt,y))),Be.ADD_TAGS&&(tt===ot&&(tt=J(tt)),U(tt,Be.ADD_TAGS)),Be.ADD_ATTR&&(nt===pt&&(nt=J(nt)),U(nt,Be.ADD_ATTR)),Be.ADD_URI_SAFE_ATTR&&U(qt,Be.ADD_URI_SAFE_ATTR),Pt&&(tt["#text"]=!0),dr&&U(tt,["html","head","body"]),tt.table&&(U(tt,["tbody"]),delete ft.tbody),p&&p(Be),br=Be},yr=function(Be){w(K.removed,{element:Be});try{Be.parentNode.removeChild(Be)}catch(st){Be.outerHTML=Oe}},er=function(Be,st){try{w(K.removed,{attribute:st.getAttributeNode(Be),from:st})}catch(bt){w(K.removed,{attribute:null,from:st})}st.removeAttribute(Be)},Ze=function(Be){var st=void 0,bt=void 0;if(fr)Be="<remove></remove>"+Be;else{var Ut=M(Be,/^[\r\n\t ]+/);bt=Ut&&Ut[0]}var Or=He?He.createHTML(Be):Be;try{st=new Le().parseFromString(Or,"text/html")}catch(zt){}if($&&U(ft,["title"]),!st||!st.documentElement){st=$e.createHTMLDocument("");var pr=st,$t=pr.body;$t.parentNode.removeChild($t.parentNode.firstElementChild),$t.outerHTML=Or}return Be&&bt&&st.body.insertBefore(j.createTextNode(bt),st.body.childNodes[0]||null),Ke.call(st,dr?"html":"body")[0]};K.isSupported&&function(){try{var lt=Ze("<x/><title>&lt;/title&gt;&lt;img&gt;");b(/<\/title/,lt.querySelector("title").innerHTML)&&($=!0)}catch(Be){}}();var zr=function(Be){return Ue.call(Be.ownerDocument||Be,Be,fe.SHOW_ELEMENT|fe.SHOW_COMMENT|fe.SHOW_TEXT,function(){return fe.FILTER_ACCEPT},!1)},nn=function(Be){return Be instanceof Me||Be instanceof Ne?!1:typeof Be.nodeName!="string"||typeof Be.textContent!="string"||typeof Be.removeChild!="function"||!(Be.attributes instanceof ke)||typeof Be.removeAttribute!="function"||typeof Be.setAttribute!="function"||typeof Be.namespaceURI!="string"},xt=function(Be){return(typeof me=="undefined"?"undefined":le(me))==="object"?Be instanceof me:Be&&(typeof Be=="undefined"?"undefined":le(Be))==="object"&&typeof Be.nodeType=="number"&&typeof Be.nodeName=="string"},hr=function(Be,st,bt){if(!ve[Be])return;v(ve[Be],function(Ut){Ut.call(K,st,bt,br)})},Kr=function(Be){var st=void 0;if(hr("beforeSanitizeElements",Be,null),nn(Be))return yr(Be),!0;if(M(Be.nodeName,/[\u0080-\uFFFF]/))return yr(Be),!0;var bt=C(Be.nodeName);if(hr("uponSanitizeElement",Be,{tagName:bt,allowedTags:tt}),(bt==="svg"||bt==="math")&&Be.querySelectorAll("p, br").length!==0)return yr(Be),!0;if(!tt[bt]||ft[bt]){if(Pt&&!nr[bt]&&typeof Be.insertAdjacentHTML=="function")try{var Ut=Be.innerHTML;Be.insertAdjacentHTML("AfterEnd",He?He.createHTML(Ut):Ut)}catch(Or){}return yr(Be),!0}return bt==="noscript"&&b(/<\/noscript/i,Be.innerHTML)||bt==="noembed"&&b(/<\/noembed/i,Be.innerHTML)?(yr(Be),!0):(Ct&&!xt(Be.firstElementChild)&&(!xt(Be.content)||!xt(Be.content.firstElementChild))&&b(/</g,Be.textContent)&&(w(K.removed,{element:Be.cloneNode()}),Be.innerHTML?Be.innerHTML=N(Be.innerHTML,/</g,"&lt;"):Be.innerHTML=N(Be.textContent,/</g,"&lt;")),At&&Be.nodeType===3&&(st=Be.textContent,st=N(st,ye," "),st=N(st,_e," "),Be.textContent!==st&&(w(K.removed,{element:Be.cloneNode()}),Be.textContent=st)),hr("afterSanitizeElements",Be,null),!1)},Xr=function(Be,st,bt){if(wr&&(st==="id"||st==="name")&&(bt in j||bt in Ye))return!1;if(!(Gt&&b(Se,st))){if(!(Rt&&b(Ie,st))){if(!nt[st]||_t[st])return!1;if(!qt[st]){if(!b(qe,N(bt,ze,""))){if(!((st==="src"||st==="xlink:href"||st==="href")&&Be!=="script"&&P(bt,"data:")===0&&Et[Be])){if(!(Wt&&!b(De,N(bt,ze,"")))){if(bt)return!1}}}}}}return!0},Ht=function(Be){var st=void 0,bt=void 0,Ut=void 0,Or=void 0,pr=void 0;hr("beforeSanitizeAttributes",Be,null);var $t=Be.attributes;if(!$t)return;var zt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:nt};for(pr=$t.length;pr--;){st=$t[pr];var fn=st,Ar=fn.name,Yr=fn.namespaceURI;if(bt=k(st.value),Ut=C(Ar),zt.attrName=Ut,zt.attrValue=bt,zt.keepAttr=!0,zt.forceKeepAttr=void 0,hr("uponSanitizeAttribute",Be,zt),bt=zt.attrValue,zt.forceKeepAttr)continue;if(Ut==="name"&&Be.nodeName==="IMG"&&$t.id)Or=$t.id,$t=O($t,[]),er("id",Be),er(Ar,Be),m($t,Or)>pr&&Be.setAttribute("id",Or.value);else{if(Be.nodeName==="INPUT"&&Ut==="type"&&bt==="file"&&zt.keepAttr&&(nt[Ut]||!_t[Ut]))continue;Ar==="id"&&Be.setAttribute(Ar,""),er(Ar,Be)}if(!zt.keepAttr)continue;if(Ct&&b(/\/>/i,bt)){er(Ar,Be);continue}if(b(/svg|math/i,Be.namespaceURI)&&b(V("</("+g(x(nr),"|")+")","i"),bt)){er(Ar,Be);continue}At&&(bt=N(bt,ye," "),bt=N(bt,_e," "));var Dr=Be.nodeName.toLowerCase();if(!Xr(Dr,Ut,bt))continue;try{Yr?Be.setAttributeNS(Yr,Ar,bt):Be.setAttribute(Ar,bt),E(K.removed)}catch(On){}}hr("afterSanitizeAttributes",Be,null)},Vt=function lt(Be){var st=void 0,bt=zr(Be);for(hr("beforeSanitizeShadowDOM",Be,null);st=bt.nextNode();){if(hr("uponSanitizeShadowNode",st,null),Kr(st))continue;st.content instanceof S&&lt(st.content),Ht(st)}hr("afterSanitizeShadowDOM",Be,null)};return K.sanitize=function(lt,Be){var st=void 0,bt=void 0,Ut=void 0,Or=void 0,pr=void 0;if(lt||(lt="<!-->"),typeof lt!="string"&&!xt(lt)){if(typeof lt.toString!="function")throw X("toString is not a function");if(lt=lt.toString(),typeof lt!="string")throw X("dirty is not a string, aborting")}if(!K.isSupported){if(le(F.toStaticHTML)==="object"||typeof F.toStaticHTML=="function"){if(typeof lt=="string")return F.toStaticHTML(lt);if(xt(lt))return F.toStaticHTML(lt.outerHTML)}return lt}if(sr||vt(Be),K.removed=[],typeof lt=="string"&&(rt=!1),!rt)if(lt instanceof me)st=Ze("<!-->"),bt=st.ownerDocument.importNode(lt,!0),bt.nodeType===1&&bt.nodeName==="BODY"||bt.nodeName==="HTML"?st=bt:st.appendChild(bt);else{if(!Ft&&!At&&!dr&&lt.indexOf("<")===-1)return He&&Qt?He.createHTML(lt):lt;if(st=Ze(lt),!st)return Ft?null:Oe}st&&fr&&yr(st.firstChild);for(var $t=zr(rt?lt:st);Ut=$t.nextNode();){if(Ut.nodeType===3&&Ut===Or)continue;if(Kr(Ut))continue;Ut.content instanceof S&&Vt(Ut.content),Ht(Ut),Or=Ut}if(Or=null,rt)return lt;if(Ft){if(vr)for(pr=Re.call(st.ownerDocument);st.firstChild;)pr.appendChild(st.firstChild);else pr=st;return rr&&(pr=Te.call(pe,pr,!0)),pr}var zt=dr?st.outerHTML:st.innerHTML;return At&&(zt=N(zt,ye," "),zt=N(zt,_e," ")),He&&Qt?He.createHTML(zt):zt},K.setConfig=function(lt){vt(lt),sr=!0},K.clearConfig=function(){br=null,sr=!1},K.isValidAttribute=function(lt,Be,st){br||vt({});var bt=C(lt),Ut=C(Be);return Xr(bt,Ut,st)},K.addHook=function(lt,Be){if(typeof Be!="function")return;ve[lt]=ve[lt]||[],w(ve[lt],Be)},K.removeHook=function(lt){ve[lt]&&E(ve[lt])},K.removeHooks=function(lt){ve[lt]&&(ve[lt]=[])},K.removeAllHooks=function(){ve={}},K}var re=Y();return re})},wZgz:function(s,z,d){(function(h,a,T){s.exports=z=a(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(h){return function(){var a=h,T=a.lib,_=T.BlockCipher,x=a.algo,p=[],f=[],o=[],i=[],u=[],l=[],v=[],m=[],g=[],E=[];(function(){for(var C=[],M=0;M<256;M++)M<128?C[M]=M<<1:C[M]=M<<1^283;for(var N=0,P=0,M=0;M<256;M++){var k=P^P<<1^P<<2^P<<3^P<<4;k=k>>>8^k&255^99,p[N]=k,f[k]=N;var b=C[N],V=C[b],X=C[V],D=C[k]*257^k*16843008;o[N]=D<<24|D>>>8,i[N]=D<<16|D>>>16,u[N]=D<<8|D>>>24,l[N]=D;var D=X*16843009^V*65537^b*257^N*16843008;v[k]=D<<24|D>>>8,m[k]=D<<16|D>>>16,g[k]=D<<8|D>>>24,E[k]=D,N?(N=b^C[C[C[X^b]]],P^=C[C[P]]):N=P=1}})();var w=[0,1,2,4,8,16,32,64,128,27,54],O=x.AES=_.extend({_doReset:function(){var C;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var M=this._keyPriorReset=this._key,N=M.words,P=M.sigBytes/4,k=this._nRounds=P+6,b=(k+1)*4,V=this._keySchedule=[],X=0;X<b;X++)X<P?V[X]=N[X]:(C=V[X-1],X%P?P>6&&X%P==4&&(C=p[C>>>24]<<24|p[C>>>16&255]<<16|p[C>>>8&255]<<8|p[C&255]):(C=C<<8|C>>>24,C=p[C>>>24]<<24|p[C>>>16&255]<<16|p[C>>>8&255]<<8|p[C&255],C^=w[X/P|0]<<24),V[X]=V[X-P]^C);for(var D=this._invKeySchedule=[],L=0;L<b;L++){var X=b-L;if(L%4)var C=V[X];else var C=V[X-4];L<4||X<=4?D[L]=C:D[L]=v[p[C>>>24]]^m[p[C>>>16&255]]^g[p[C>>>8&255]]^E[p[C&255]]}},encryptBlock:function(C,M){this._doCryptBlock(C,M,this._keySchedule,o,i,u,l,p)},decryptBlock:function(C,M){var N=C[M+1];C[M+1]=C[M+3],C[M+3]=N,this._doCryptBlock(C,M,this._invKeySchedule,v,m,g,E,f);var N=C[M+1];C[M+1]=C[M+3],C[M+3]=N},_doCryptBlock:function(C,M,N,P,k,b,V,X){for(var D=this._nRounds,L=C[M]^N[0],U=C[M+1]^N[1],J=C[M+2]^N[2],ae=C[M+3]^N[3],se=4,G=1;G<D;G++){var he=P[L>>>24]^k[U>>>16&255]^b[J>>>8&255]^V[ae&255]^N[se++],q=P[U>>>24]^k[J>>>16&255]^b[ae>>>8&255]^V[L&255]^N[se++],W=P[J>>>24]^k[ae>>>16&255]^b[L>>>8&255]^V[U&255]^N[se++],H=P[ae>>>24]^k[L>>>16&255]^b[U>>>8&255]^V[J&255]^N[se++];L=he,U=q,J=W,ae=H}var he=(X[L>>>24]<<24|X[U>>>16&255]<<16|X[J>>>8&255]<<8|X[ae&255])^N[se++],q=(X[U>>>24]<<24|X[J>>>16&255]<<16|X[ae>>>8&255]<<8|X[L&255])^N[se++],W=(X[J>>>24]<<24|X[ae>>>16&255]<<16|X[L>>>8&255]<<8|X[U&255])^N[se++],H=(X[ae>>>24]<<24|X[L>>>16&255]<<16|X[U>>>8&255]<<8|X[J&255])^N[se++];C[M]=he,C[M+1]=q,C[M+2]=W,C[M+3]=H},keySize:256/32});a.AES=_._createHelper(O)}(),h.AES})},wbyO:function(s,z,d){(function(h,a){s.exports=z=a(d("Ib8C"))})(this,function(h){return function(){var a=h,T=a.lib,_=T.WordArray,x=a.enc,p=x.Base64url={stringify:function(o,i=!0){var u=o.words,l=o.sigBytes,v=i?this._safe_map:this._map;o.clamp();for(var m=[],g=0;g<l;g+=3)for(var E=u[g>>>2]>>>24-g%4*8&255,w=u[g+1>>>2]>>>24-(g+1)%4*8&255,O=u[g+2>>>2]>>>24-(g+2)%4*8&255,C=E<<16|w<<8|O,M=0;M<4&&g+M*.75<l;M++)m.push(v.charAt(C>>>6*(3-M)&63));var N=v.charAt(64);if(N)for(;m.length%4;)m.push(N);return m.join("")},parse:function(o,i=!0){var u=o.length,l=i?this._safe_map:this._map,v=this._reverseMap;if(!v){v=this._reverseMap=[];for(var m=0;m<l.length;m++)v[l.charCodeAt(m)]=m}var g=l.charAt(64);if(g){var E=o.indexOf(g);E!==-1&&(u=E)}return f(o,u,v)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function f(o,i,u){for(var l=[],v=0,m=0;m<i;m++)if(m%4){var g=u[o.charCodeAt(m-1)]<<m%4*2,E=u[o.charCodeAt(m)]>>>6-m%4*2,w=g|E;l[v>>>2]|=w<<24-v%4*8,v++}return _.create(l,v)}}(),h.enc.Base64url})},ynwM:function(s,z,d){var h=d("MFOe"),a=h.Global;s.exports={name:"oldFF-globalStorage",read:_,write:x,each:p,remove:f,clearAll:o};var T=a.globalStorage;function _(i){return T[i]}function x(i,u){T[i]=u}function p(i){for(var u=T.length-1;u>=0;u--){var l=T.key(u);i(T[l],l)}}function f(i){return T.removeItem(i)}function o(){p(function(i,u){delete T[i]})}}}]);