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__Shixuns__Edit__body__Lev...

349 lines
838 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[222,7,9,10],{"+NIl":function(Be,Q,l){(function(U){U(l("VrN/"))})(function(U){"use strict";U.defineMode("stex",function(ve,de){"use strict";function J(A,O){A.cmdState.push(O)}function k(A){return A.cmdState.length>0?A.cmdState[A.cmdState.length-1]:null}function me(A){var O=A.cmdState.pop();O&&O.closeBracket()}function j(A){for(var O=A.cmdState,T=O.length-1;T>=0;T--){var m=O[T];if(m.name=="DEFAULT")continue;return m}return{styleIdentifier:function(){return null}}}function Y(A,O,T){return function(){this.name=A,this.bracketNo=0,this.style=O,this.styles=T,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var W={};W.importmodule=Y("importmodule","tag",["string","builtin"]),W.documentclass=Y("documentclass","tag",["","atom"]),W.usepackage=Y("usepackage","tag",["atom"]),W.begin=Y("begin","tag",["atom"]),W.end=Y("end","tag",["atom"]),W.label=Y("label","tag",["atom"]),W.ref=Y("ref","tag",["atom"]),W.eqref=Y("eqref","tag",["atom"]),W.cite=Y("cite","tag",["atom"]),W.bibitem=Y("bibitem","tag",["atom"]),W.Bibitem=Y("Bibitem","tag",["atom"]),W.RBibitem=Y("RBibitem","tag",["atom"]),W.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function _(A,O){A.f=O}function y(A,O){var T;if(A.match(/^\\[a-zA-Z@]+/)){var m=A.current().slice(1);return T=W.hasOwnProperty(m)?W[m]:W.DEFAULT,T=new T,J(O,T),_(O,R),T.style}if(A.match(/^\\[$&%#{}_]/))return"tag";if(A.match(/^\\[,;!\/\\]/))return"tag";if(A.match("\\["))return _(O,function(S,L){return C(S,L,"\\]")}),"keyword";if(A.match("\\("))return _(O,function(S,L){return C(S,L,"\\)")}),"keyword";if(A.match("$$"))return _(O,function(S,L){return C(S,L,"$$")}),"keyword";if(A.match("$"))return _(O,function(S,L){return C(S,L,"$")}),"keyword";var f=A.next();if(f=="%")return A.skipToEnd(),"comment";if(f=="}"||f=="]"){if(T=k(O),T)T.closeBracket(f),_(O,R);else return"error";return"bracket"}else return f=="{"||f=="["?(T=W.DEFAULT,T=new T,J(O,T),"bracket"):/\d/.test(f)?(A.eatWhile(/[\w.%]/),"atom"):(A.eatWhile(/[\w\-_]/),T=j(O),T.name=="begin"&&(T.argument=A.current()),T.styleIdentifier())}function C(A,O,T){if(A.eatSpace())return null;if(T&&A.match(T))return _(O,y),"keyword";if(A.match(/^\\[a-zA-Z@]+/))return"tag";if(A.match(/^[a-zA-Z]+/))return"variable-2";if(A.match(/^\\[$&%#{}_]/))return"tag";if(A.match(/^\\[,;!\/]/))return"tag";if(A.match(/^[\^_&]/))return"tag";if(A.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(A.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var m=A.next();return m=="{"||m=="}"||m=="["||m=="]"||m=="("||m==")"?"bracket":m=="%"?(A.skipToEnd(),"comment"):"error"}function R(A,O){var T=A.peek(),m;return T=="{"||T=="["?(m=k(O),m.openBracket(T),A.eat(T),_(O,y),"bracket"):/[ \t\r]/.test(T)?(A.eat(T),null):(_(O,y),me(O),y(A,O))}return{startState:function(){var A=de.inMathMode?function(O,T){return C(O,T)}:y;return{cmdState:[],f:A}},copyState:function(A){return{cmdState:A.cmdState.slice(),f:A.f}},token:function(A,O){return O.f(A,O)},blankLine:function(A){A.f=y,A.cmdState.length=0},lineComment:"%"}}),U.defineMIME("text/x-stex","stex"),U.defineMIME("text/x-latex","stex")})},"+ua5":function(Be,Q,l){},"/GNS":function(Be,Q,l){Be.exports=l.p+"static/search1.c4136dd4.png"},"/cxE":function(Be,Q,l){"use strict";l.d(Q,"e",function(){return de}),l.d(Q,"f",function(){return J}),l.d(Q,"g",function(){return k}),l.d(Q,"d",function(){return j}),l.d(Q,"a",function(){return Y}),l.d(Q,"b",function(){return W}),l.d(Q,"c",function(){return _});var U=function(){function y(){this.listeners=[],this.unexpectedErrorHandler=function(C){setTimeout(function(){throw C.stack?new Error(C.message+`
`+C.stack):C},0)}}return y.prototype.emit=function(C){this.listeners.forEach(function(R){R(C)})},y.prototype.onUnexpectedError=function(C){this.unexpectedErrorHandler(C),this.emit(C)},y.prototype.onUnexpectedExternalError=function(C){this.unexpectedErrorHandler(C)},y}(),ve=new U;function de(y){j(y)||ve.onUnexpectedError(y);return}function J(y){j(y)||ve.onUnexpectedExternalError(y);return}function k(y){if(y instanceof Error){var C=y.name,R=y.message,A=y.stacktrace||y.stack;return{$isError:!0,name:C,message:R,stack:A}}return y}var me="Canceled";function j(y){return y instanceof Error&&y.name===me&&y.message===me}function Y(){var y=new Error(me);return y.name=y.message,y}function W(y){return y?new Error("Illegal argument: "+y):new Error("Illegal argument")}function _(y){return y?new Error("Illegal state: "+y):new Error("Illegal state")}},"19Vz":function(Be,Q,l){(function(U){U(l("VrN/"))})(function(U){U.defineOption("placeholder","",function(Y,W,_){var y=_&&_!=U.Init;if(W&&!y)Y.on("blur",k),Y.on("change",me),Y.on("swapDoc",me),U.on(Y.getInputField(),"compositionupdate",Y.state.placeholderCompose=function(){J(Y)}),me(Y);else if(!W&&y){Y.off("blur",k),Y.off("change",me),Y.off("swapDoc",me),U.off(Y.getInputField(),"compositionupdate",Y.state.placeholderCompose),ve(Y);var C=Y.getWrapperElement();C.className=C.className.replace(" CodeMirror-empty","")}W&&!Y.hasFocus()&&k(Y)});function ve(Y){Y.state.placeholder&&(Y.state.placeholder.parentNode.removeChild(Y.state.placeholder),Y.state.placeholder=null)}function de(Y){ve(Y);var W=Y.state.placeholder=document.createElement("pre");W.style.cssText="height: 0; overflow: visible",W.style.direction=Y.getOption("direction"),W.className="CodeMirror-placeholder CodeMirror-line-like";var _=Y.getOption("placeholder");typeof _=="string"&&(_=document.createTextNode(_)),W.appendChild(_),Y.display.lineSpace.insertBefore(W,Y.display.lineSpace.firstChild)}function J(Y){setTimeout(function(){var W=!1,_=Y.getInputField();_.nodeName=="TEXTAREA"?W=!_.value:Y.lineCount()==1&&(W=!/[^\u200b]/.test(_.querySelector(".CodeMirror-line").textContent)),W?de(Y):ve(Y)},20)}function k(Y){j(Y)&&de(Y)}function me(Y){var W=Y.getWrapperElement(),_=j(Y);W.className=W.className.replace(" CodeMirror-empty","")+(_?" CodeMirror-empty":""),_?de(Y):ve(Y)}function j(Y){return Y.lineCount()===1&&Y.getLine(0)===""}})},"1eCo":function(Be,Q,l){(function(U){U(l("VrN/"))})(function(U){"use strict";var ve={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},de={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};U.defineMode("xml",function(J,k){var me=J.indentUnit,j={},Y=k.htmlMode?ve:de;for(var W in Y)j[W]=Y[W];for(var W in k)j[W]=k[W];var _,y;function C(P,Re){function fe(we){return Re.tokenize=we,we(P,Re)}var V=P.next();if(V=="<")return P.eat("!")?P.eat("[")?P.match("CDATA[")?fe(O("atom","]]>")):null:P.match("--")?fe(O("comment","-->")):P.match("DOCTYPE",!0,!0)?(P.eatWhile(/[\w\._\-]/),fe(T(1))):null:P.eat("?")?(P.eatWhile(/[\w\._\-]/),Re.tokenize=O("meta","?>"),"meta"):(_=P.eat("/")?"closeTag":"openTag",Re.tokenize=R,"tag bracket");if(V=="&"){var ce;return P.eat("#")?P.eat("x")?ce=P.eatWhile(/[a-fA-F\d]/)&&P.eat(";"):ce=P.eatWhile(/[\d]/)&&P.eat(";"):ce=P.eatWhile(/[\w\.\-:]/)&&P.eat(";"),ce?"atom":"error"}else return P.eatWhile(/[^&<]/),null}C.isInText=!0;function R(P,Re){var fe=P.next();if(fe==">"||fe=="/"&&P.eat(">"))return Re.tokenize=C,_=fe==">"?"endTag":"selfcloseTag","tag bracket";if(fe=="=")return _="equals",null;if(fe=="<"){Re.tokenize=C,Re.state=L,Re.tagName=Re.tagStart=null;var V=Re.tokenize(P,Re);return V?V+" tag error":"tag error"}else return/[\'\"]/.test(fe)?(Re.tokenize=A(fe),Re.stringStartCol=P.column(),Re.tokenize(P,Re)):(P.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function A(P){var Re=function(fe,V){for(;!fe.eol();)if(fe.next()==P){V.tokenize=R;break}return"string"};return Re.isInAttribute=!0,Re}function O(P,Re){return function(fe,V){for(;!fe.eol();){if(fe.match(Re)){V.tokenize=C;break}fe.next()}return P}}function T(P){return function(Re,fe){for(var V;(V=Re.next())!=null;){if(V=="<")return fe.tokenize=T(P+1),fe.tokenize(Re,fe);if(V==">")if(P==1){fe.tokenize=C;break}else return fe.tokenize=T(P-1),fe.tokenize(Re,fe)}return"meta"}}function m(P,Re,fe){this.prev=P.context,this.tagName=Re,this.indent=P.indented,this.startOfLine=fe,(j.doNotIndent.hasOwnProperty(Re)||P.context&&P.context.noIndent)&&(this.noIndent=!0)}function f(P){P.context&&(P.context=P.context.prev)}function S(P,Re){for(var fe;;){if(!P.context)return;if(fe=P.context.tagName,!j.contextGrabbers.hasOwnProperty(fe)||!j.contextGrabbers[fe].hasOwnProperty(Re))return;f(P)}}function L(P,Re,fe){return P=="openTag"?(fe.tagStart=Re.column(),le):P=="closeTag"?he:L}function le(P,Re,fe){return P=="word"?(fe.tagName=Re.current(),y="tag",xe):j.allowMissingTagName&&P=="endTag"?(y="tag bracket",xe(P,Re,fe)):(y="error",le)}function he(P,Re,fe){if(P=="word"){var V=Re.current();return fe.context&&fe.context.tagName!=V&&j.implicitlyClosed.hasOwnProperty(fe.context.tagName)&&f(fe),fe.context&&fe.context.tagName==V||j.matchClosing===!1?(y="tag",ge):(y="tag error",Ie)}else return j.allowMissingTagName&&P=="endTag"?(y="tag bracket",ge(P,Re,fe)):(y="error",Ie)}function ge(P,Re,fe){return P!="endTag"?(y="error",ge):(f(fe),L)}function Ie(P,Re,fe){return y="error",ge(P,Re,fe)}function xe(P,Re,fe){if(P=="word")return y="attribute",Oe;if(P=="endTag"||P=="selfcloseTag"){var V=fe.tagName,ce=fe.tagStart;return fe.tagName=fe.tagStart=null,P=="selfcloseTag"||j.autoSelfClosers.hasOwnProperty(V)?S(fe,V):(S(fe,V),fe.context=new m(fe,V,ce==fe.indented)),L}return y="error",xe}function Oe(P,Re,fe){return P=="equals"?Ge:(j.allowMissing||(y="error"),xe(P,Re,fe))}function Ge(P,Re,fe){return P=="string"?ue:P=="word"&&j.allowUnquoted?(y="string",xe):(y="error",xe(P,Re,fe))}function ue(P,Re,fe){return P=="string"?ue:xe(P,Re,fe)}return{startState:function(P){var Re={tokenize:C,state:L,indented:P||0,tagName:null,tagStart:null,context:null};return P!=null&&(Re.baseIndent=P),Re},token:function(P,Re){if(!Re.tagName&&P.sol()&&(Re.indented=P.indentation()),P.eatSpace())return null;_=null;var fe=Re.tokenize(P,Re);return(fe||_)&&fe!="comment"&&(y=null,Re.state=Re.state(_||fe,P,Re),y&&(fe=y=="error"?fe+" error":y)),fe},indent:function(P,Re,fe){var V=P.context;if(P.tokenize.isInAttribute)return P.tagStart==P.indented?P.stringStartCol+1:P.indented+me;if(V&&V.noIndent)return U.Pass;if(P.tokenize!=R&&P.tokenize!=C)return fe?fe.match(/^(\s*)/)[0].length:0;if(P.tagName)return j.multilineTagIndentPastTag!==!1?P.tagStart+P.tagName.length+2:P.tagStart+me*(j.multilineTagIndentFactor||1);if(j.alignCDATA&&/<!\[CDATA\[/.test(Re))return 0;var ce=Re&&/^<(\/)?([\w_:\.-]*)/.exec(Re);if(ce&&ce[1])for(;V;)if(V.tagName==ce[2]){V=V.prev;break}else if(j.implicitlyClosed.hasOwnProperty(V.tagName))V=V.prev;else break;else if(ce)for(;V;){var we=j.contextGrabbers[V.tagName];if(we&&we.hasOwnProperty(ce[2]))V=V.prev;else break}for(;V&&V.prev&&!V.startOfLine;)V=V.prev;return V?V.indent+me:P.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:j.htmlMode?"html":"xml",helperType:j.htmlMode?"html":"xml",skipAttribute:function(P){P.state==Ge&&(P.state=xe)},xmlCurrentTag:function(P){return P.tagName?{name:P.tagName,close:P.type=="closeTag"}:null},xmlCurrentContext:function(P){for(var Re=[],fe=P.context;fe;fe=fe.prev)fe.tagName&&Re.push(fe.tagName);return Re.reverse()}}}),U.defineMIME("text/xml","xml"),U.defineMIME("application/xml","xml"),U.mimeModes.hasOwnProperty("text/html")||U.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"24hK":function(Be,Q,l){"use strict";l.d(Q,"a",function(){return de});var U=l("JYp7"),ve=function(){function J(k){this.element=k,this.next=J.Undefined,this.prev=J.Undefined}return J.Undefined=new J(void 0),J}(),de=function(){function J(){this._first=ve.Undefined,this._last=ve.Undefined,this._size=0}return Object.defineProperty(J.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),J.prototype.isEmpty=function(){return this._first===ve.Undefined},J.prototype.clear=function(){this._first=ve.Undefined,this._last=ve.Undefined,this._size=0},J.prototype.unshift=function(k){return this._insert(k,!1)},J.prototype.push=function(k){return this._insert(k,!0)},J.prototype._insert=function(k,me){var j=this,Y=new ve(k);if(this._first===ve.Undefined)this._first=Y,this._last=Y;else if(me){var W=this._last;this._last=Y,Y.prev=W,W.next=Y}else{var _=this._first;this._first=Y,Y.next=_,_.prev=Y}this._size+=1;var y=!1;return function(){y||(y=!0,j._remove(Y))}},J.prototype.shift=function(){if(this._first===ve.Undefined)return;var k=this._first.element;return this._remove(this._first),k},J.prototype.pop=function(){if(this._last===ve.Undefined)return;var k=this._last.element;return this._remove(this._last),k},J.prototype._remove=function(k){if(k.prev!==ve.Undefined&&k.next!==ve.Undefined){var me=k.prev;me.next=k.next,k.next.prev=me}else k.prev===ve.Undefined&&k.next===ve.Undefined?(this._first=ve.Undefined,this._last=ve.Undefined):k.next===ve.Undefined?(this._last=this._last.prev,this._last.next=ve.Undefined):k.prev===ve.Undefined&&(this._first=this._first.next,this._first.prev=ve.Undefined);this._size-=1},J.prototype.iterator=function(){var k,me=this._first;return{next:function(){return me===ve.Undefined?U.c:(k?k.value=me.element:k={done:!1,value:me.element},me=me.next,k)}}},J.prototype.toArray=function(){for(var k=[],me=this._first;me!==ve.Undefined;me=me.next)k.push(me.element);return k},J}()},"4qgm":function(Be,Q){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTn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vuzj1VCo3J5kflgi5lPE9EKIprHzFIqtKO1PtiqWzLGyIb6oRyW5ZynBOCOHBhRqmNa61nHnhedjQZBcDsRycS7pg0E8kD+LZse3/d/agS5/I7XG0JpI4B9ebqsQN1NWuuWly2X7xVTvfestXfXarWDRHRTgT2aCMXMv3metzJp/5F4SymWhoaG5pfLZVlpL9k1a7VaVRs2bEi89HZyIOwu2b1tukQX3TL3OHGYsjw1GBwc7Oro6Kg7UthTA7mhn5yc3NfX1ycPQ5xbmhGYBSqPPYhINkMPAJDHHrJ4pWlTAOShx1FmvnSPPVoxbHxu43neAmauP7eRf2nTz2yI6FStViv0uc1/ndZCH8rgOooAAAAASUVORK5CYII="},"746U":function(Be,Q,l){"use strict";l.d(Q,"d",function(){return ve}),l.d(Q,"j",function(){return de}),l.d(Q,"i",function(){return J}),l.d(Q,"h",function(){return k}),l.d(Q,"e",function(){return me}),l.d(Q,"k",function(){return j}),l.d(Q,"l",function(){return Y}),l.d(Q,"a",function(){return W}),l.d(Q,"f",function(){return y}),l.d(Q,"g",function(){return C}),l.d(Q,"m",function(){return R}),l.d(Q,"c",function(){return T}),l.d(Q,"b",function(){return m}),l.d(Q,"n",function(){return f}),l.d(Q,"o",function(){return S});var U={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function ve(L){return Array.isArray?Array.isArray(L):!!(L&&typeof L.length===U.number&&L.constructor===Array)}function de(L){return typeof L===U.string||L instanceof String}function J(L){return typeof L===U.object&&L!==null&&!Array.isArray(L)&&!(L instanceof RegExp)&&!(L instanceof Date)}function k(L){return(typeof L===U.number||L instanceof Number)&&!isNaN(L)}function me(L){return L===!0||L===!1}function j(L){return typeof L===U.undefined}function Y(L){return j(L)||L===null}function W(L,le){if(!L)throw new Error(le?"Unexpected type, expected '"+le+"'":"Unexpected type")}var _=Object.prototype.hasOwnProperty;function y(L){if(!J(L))return!1;for(var le in L)if(_.call(L,le))return!1;return!0}function C(L){return typeof L===U.function}function R(L,le){for(var he=Math.min(L.length,le.length),ge=0;ge<he;ge++)A(L[ge],le[ge])}function A(L,le){if(de(le)){if(typeof L!==le)throw new Error("argument does not match constraint: typeof "+le)}else if(C(le)){try{if(L instanceof le)return}catch(he){}if(!Y(L)&&L.constructor===le)return;if(le.length===1&&le.call(void 0,L)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function O(L){for(var le=[],he=Object.getPrototypeOf(L);Object.prototype!==he;)le=le.concat(Object.getOwnPropertyNames(he)),he=Object.getPrototypeOf(he);return le}function T(L){for(var le=[],he=0,ge=O(L);he<ge.length;he++){var Ie=ge[he];typeof L[Ie]=="function"&&le.push(Ie)}return le}function m(L,le){for(var he=function(Ge){return function(){var ue=Array.prototype.slice.call(arguments,0);return le(Ge,ue)}},ge={},Ie=0,xe=L;Ie<xe.length;Ie++){var Oe=xe[Ie];ge[Oe]=he(Oe)}return ge}function f(L){return L===null?void 0:L}function S(L){return typeof L=="undefined"?null:L}},"7Cbv":function(Be,Q,l){"use strict";var U=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),ve=new Uint8Array(16);function de(){if(!U)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return U(ve)}var J=/^(?:[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 k(R){return typeof R=="string"&&J.test(R)}for(var me=k,j=[],Y=0;Y<256;++Y)j.push((Y+256).toString(16).substr(1));function W(R){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,O=(j[R[A+0]]+j[R[A+1]]+j[R[A+2]]+j[R[A+3]]+"-"+j[R[A+4]]+j[R[A+5]]+"-"+j[R[A+6]]+j[R[A+7]]+"-"+j[R[A+8]]+j[R[A+9]]+"-"+j[R[A+10]]+j[R[A+11]]+j[R[A+12]]+j[R[A+13]]+j[R[A+14]]+j[R[A+15]]).toLowerCase();if(!me(O))throw TypeError("Stringified UUID is invalid");return O}var _=W;function y(R,A,O){R=R||{};var T=R.random||(R.rng||de)();if(T[6]=T[6]&15|64,T[8]=T[8]&63|128,A){O=O||0;for(var m=0;m<16;++m)A[O+m]=T[m];return A}return _(T)}var C=Q.a=y},"7ZXX":function(Be,Q,l){Be.exports=l.p+"static/err.6e7c5817.png"},"7ahc":function(Be,Q,l){"use strict";l.d(Q,"a",function(){return le});var U=l("k1fw"),ve=l("0Owb"),de=l("+L6B"),J=l("2/Rp"),k=l("y8nQ"),me=l("Vl3Y"),j=l("tJVT"),Y=l("OaEy"),W=l("2fM7"),_=l("q1tI"),y=l.n(_),C=l("VrN/"),R=l.n(C),A=l("p77/"),O=l.n(A),T=l("c5Ni"),m=l.n(T),f=W.a.Option,S={labelCol:{span:4},wrapperCol:{span:20}},L={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"]};Q.b=function(he){var ge=he.callback,Ie=he.onCancel,xe=Object(_.useState)("python"),Oe=Object(j.a)(xe,2),Ge=Oe[0],ue=Oe[1];function P(fe){ue(L[fe][1])}function Re(fe){ge(fe)}return y.a.createElement(me.a,Object(ve.a)({},S,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Re}),y.a.createElement(me.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},y.a.createElement(W.a,{onChange:P},Object.keys(L).map(function(fe){return y.a.createElement(f,{key:fe,value:fe},L[fe][0])}))),y.a.createElement(me.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},y.a.createElement(le,{mode:Ge})),y.a.createElement("div",{className:"flex-container flex-end"},y.a.createElement(J.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.a.createElement(J.a,{type:"ghost",onClick:Ie},"\u53D6\u6D88")))};function le(he){var ge=he.value,Ie=he.onChange,xe=he.mode,Oe=he.options,Ge=Oe===void 0?{}:Oe,ue=Object(_.useRef)(),P=Object(_.useState)(),Re=Object(j.a)(P,2),fe=Re[0],V=Re[1];return Object(_.useEffect)(function(){if(fe){function ce(we){var ie=we.getValue();Ie&&Ie(ie)}return fe.on("change",ce),function(){fe.off("change",ce)}}},[fe,Ie]),Object(_.useEffect)(function(){fe&&fe.setOption("mode",xe)},[fe,xe]),Object(_.useEffect)(function(){fe&&((ge!==fe.getValue()||ge==="")&&setTimeout(function(){fe.setValue(ge||" ")},300))},[fe,ge]),Object(_.useEffect)(function(){if(ue.current&&!fe){var ce=R.a.fromTextArea(ue.current,Object(U.a)({mode:xe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ge));V(ce)}},[ue.current,fe]),y.a.createElement("div",{className:"my-codemirror-container"},y.a.createElement("textarea",{ref:ue}))}},"7ixt":function(Be,Q,l){"use strict";l.d(Q,"a",function(){return de});var U={adjustX:1,adjustY:1},ve=[0,0],de={left:{points:["cr","cl"],overflow:U,offset:[-4,0],targetOffset:ve},right:{points:["cl","cr"],overflow:U,offset:[4,0],targetOffset:ve},top:{points:["bc","tc"],overflow:U,offset:[0,-4],targetOffset:ve},bottom:{points:["tc","bc"],overflow:U,offset:[0,4],targetOffset:ve},topLeft:{points:["bl","tl"],overflow:U,offset:[0,-4],targetOffset:ve},leftTop:{points:["tr","tl"],overflow:U,offset:[-4,0],targetOffset:ve},topRight:{points:["br","tr"],overflow:U,offset:[0,-4],targetOffset:ve},rightTop:{points:["tl","tr"],overflow:U,offset:[4,0],targetOffset:ve},bottomRight:{points:["tr","br"],overflow:U,offset:[0,4],targetOffset:ve},rightBottom:{points:["bl","br"],overflow:U,offset:[4,0],targetOffset:ve},bottomLeft:{points:["tl","bl"],overflow:U,offset:[0,4],targetOffset:ve},leftBottom:{points:["br","bl"],overflow:U,offset:[-4,0],targetOffset:ve}},J=de},"7v3h":function(Be,Q,l){Be.exports=l.p+"static/empty2.dd73f390.png"},"8/bI":function(Be,Q,l){Be.exports=l.p+"static/empty.8918e228.png"},"8EBN":function(Be,Q,l){(function(U){U(l("VrN/"))})(function(U){"use strict";U.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 ve=0;ve<U.modeInfo.length;ve++){var de=U.modeInfo[ve];de.mimes&&(de.mime=de.mimes[0])}U.findModeByMIME=function(J){J=J.toLowerCase();for(var k=0;k<U.modeInfo.length;k++){var me=U.modeInfo[k];if(me.mime==J)return me;if(me.mimes){for(var j=0;j<me.mimes.length;j++)if(me.mimes[j]==J)return me}}if(/\+xml$/.test(J))return U.findModeByMIME("application/xml");if(/\+json$/.test(J))return U.findModeByMIME("application/json")},U.findModeByExtension=function(J){J=J.toLowerCase();for(var k=0;k<U.modeInfo.length;k++){var me=U.modeInfo[k];if(me.ext){for(var j=0;j<me.ext.length;j++)if(me.ext[j]==J)return me}}},U.findModeByFileName=function(J){for(var k=0;k<U.modeInfo.length;k++){var me=U.modeInfo[k];if(me.file&&me.file.test(J))return me}var j=J.lastIndexOf("."),Y=j>-1&&J.substring(j+1,J.length);if(Y)return U.findModeByExtension(Y)},U.findModeByName=function(J){J=J.toLowerCase();for(var k=0;k<U.modeInfo.length;k++){var me=U.modeInfo[k];if(me.name.toLowerCase()==J)return me;if(me.alias){for(var j=0;j<me.alias.length;j++)if(me.alias[j].toLowerCase()==J)return me}}}})},"8HAY":function(Be,Q,l){"use strict";l.d(Q,"a",function(){return me}),l.d(Q,"b",function(){return j});var U=l("pmY6"),ve=l("MI8n"),de=function(){var Y=function(W,_){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var R in C)C.hasOwnProperty(R)&&(y[R]=C[R])},Y(W,_)};return function(W,_){Y(W,_);function y(){this.constructor=W}W.prototype=_===null?Object.create(_):(y.prototype=_.prototype,new y)}}(),J=function(Y,W,_,y){function C(R){return R instanceof _?R:new _(function(A){A(R)})}return new(_||(_=Promise))(function(R,A){function O(f){try{m(y.next(f))}catch(S){A(S)}}function T(f){try{m(y.throw(f))}catch(S){A(S)}}function m(f){f.done?R(f.value):C(f.value).then(O,T)}m((y=y.apply(Y,W||[])).next())})},k=function(Y,W){var _={label:0,sent:function(){if(R[0]&1)throw R[1];return R[1]},trys:[],ops:[]},y,C,R,A;return A={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function O(m){return function(f){return T([m,f])}}function T(m){if(y)throw new TypeError("Generator is already executing.");for(;_;)try{if(y=1,C&&(R=m[0]&2?C.return:m[0]?C.throw||((R=C.return)&&R.call(C),0):C.next)&&!(R=R.call(C,m[1])).done)return R;(C=0,R)&&(m=[m[0]&2,R.value]);switch(m[0]){case 0:case 1:R=m;break;case 4:return _.label++,{value:m[1],done:!1};case 5:_.label++,C=m[1],m=[0];continue;case 7:m=_.ops.pop(),_.trys.pop();continue;default:if(!(R=_.trys,R=R.length>0&&R[R.length-1])&&(m[0]===6||m[0]===2)){_=0;continue}if(m[0]===3&&(!R||m[1]>R[0]&&m[1]<R[3])){_.label=m[1];break}if(m[0]===6&&_.label<R[1]){_.label=R[1],R=m;break}if(R&&_.label<R[2]){_.label=R[2],_.ops.push(m);break}R[2]&&_.ops.pop(),_.trys.pop();continue}m=W.call(Y,_)}catch(f){m=[6,f],C=0}finally{y=R=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},me=function(Y){de(W,Y);function W(_,y,C,R,A){y===void 0&&(y=""),C===void 0&&(C=""),R===void 0&&(R=!0);var O=Y.call(this)||this;return O._onDidChange=O._register(new ve.a),O.onDidChange=O._onDidChange.event,O._enabled=!0,O._checked=!1,O._id=_,O._label=y,O._cssClass=C,O._enabled=R,O._actionCallback=A,O}return Object.defineProperty(W.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(W.prototype,"label",{get:function(){return this._label},set:function(_){this._setLabel(_)},enumerable:!0,configurable:!0}),W.prototype._setLabel=function(_){this._label!==_&&(this._label=_,this._onDidChange.fire({label:_}))},Object.defineProperty(W.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(_){this._setTooltip(_)},enumerable:!0,configurable:!0}),W.prototype._setTooltip=function(_){this._tooltip!==_&&(this._tooltip=_,this._onDidChange.fire({tooltip:_}))},Object.defineProperty(W.prototype,"class",{get:function(){return this._cssClass},set:function(_){this._setClass(_)},enumerable:!0,configurable:!0}),W.prototype._setClass=function(_){this._cssClass!==_&&(this._cssClass=_,this._onDidChange.fire({class:_}))},Object.defineProperty(W.prototype,"enabled",{get:function(){return this._enabled},set:function(_){this._setEnabled(_)},enumerable:!0,configurable:!0}),W.prototype._setEnabled=function(_){this._enabled!==_&&(this._enabled=_,this._onDidChange.fire({enabled:_}))},Object.defineProperty(W.prototype,"checked",{get:function(){return this._checked},set:function(_){this._setChecked(_)},enumerable:!0,configurable:!0}),W.prototype._setChecked=function(_){this._checked!==_&&(this._checked=_,this._onDidChange.fire({checked:_}))},W.prototype.run=function(_,y){return this._actionCallback?this._actionCallback(_):Promise.resolve(!0)},W}(U.a),j=function(Y){de(W,Y);function W(){var _=Y!==null&&Y.apply(this,arguments)||this;return _._onDidBeforeRun=_._register(new ve.a),_.onDidBeforeRun=_._onDidBeforeRun.event,_._onDidRun=_._register(new ve.a),_.onDidRun=_._onDidRun.event,_}return W.prototype.run=function(_,y){return J(this,void 0,void 0,function(){var C,R;return k(this,function(A){switch(A.label){case 0:if(!_.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:_}),A.label=1;case 1:return A.trys.push([1,3,,4]),[4,this.runAction(_,y)];case 2:return C=A.sent(),this._onDidRun.fire({action:_,result:C}),[3,4];case 3:return R=A.sent(),this._onDidRun.fire({action:_,error:R}),[3,4];case 4:return[2]}})})},W.prototype.runAction=function(_,y){var C=y?_.run(y):_.run();return Promise.resolve(C)},W}(U.a)},"8hTe":function(Be,Q,l){Be.exports={button:"button___1wy9m"}},"9Bee":function(Be,Q,l){"use strict";var U=l("DYRE"),ve=l("zeV3"),de=l("+L6B"),J=l("2/Rp"),k=l("k1fw"),me=l("9og8"),j=l("tJVT"),Y=l("WmNS"),W=l.n(Y),_=l("q1tI"),y=l.n(_),C=l("vg9a"),R=l("DlQD"),A=l.n(R),O=l("rUJ1");function T(d,o){var a=d.match(/^(\s+)(?:```)/);if(a===null)return o;var c=a[1];return o.split(`
`).map(function(p){var h=p.match(/^\s+/);if(h===null)return p;var te=Object(j.a)(h,1),Ke=te[0];return Ke.length>=c.length?p.slice(c.length):p}).join(`
`)}var m=[],f=["<ul>"],S=new A.a.Renderer,L=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function le(){m.length=0,f=["<ul>"]}var he={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ge(d,o,a,c){if(o>=d.length||d[o].level<=a)return o;var p=d[o];c.push("<li><a href='#"+p.anchor+"'>"+p.text+"</a>"),o++;var h=[];return o=ge(d,o,p.level,h),h.length>0&&(c.push("<ul>"),h.forEach(function(te){c.push(te)}),c.push("</ul>")),c.push("</li>"),o=ge(d,o,a,c),o}function Ie(){return ge(m,0,0,f),f.push("</ul>"),f.join("")}var xe={heading:function(o){var a=L.exec(o);if(a)return{type:"heading",raw:a[0],depth:a[1].length,text:a[2]}},fences:function(o){var a=this.rules.block.fences.exec(o);if(a){var c=a[0],p=T(c,a[3]||""),h=a[2]?a[2].trim():a[2];if(["latex","katex","math"].indexOf(h)>=0){var te=ue(),Ke=p;p=te,P[te]={type:"block",expression:Ke}}return{type:"code",raw:c,lang:h,text:p}}}},Oe=/(?:\${2})([^\n`]+?)(?:\${2})/gi,Ge=0,ue=function(){return"__special_katext_id_".concat(Ge++,"__")},P={};function Re(){return P}function fe(){Ge=0,P={}}function V(d){return d=d.replace(Oe,function(o,a){var c=ue();return P[c]={type:"inline",expression:a},c}),d}var ce=S.listitem;S.listitem=function(d){return ce(V(d))};var we=S.paragraph;S.paragraph=function(d){return we(V(d))};var ie=S.tablecell;S.tablecell=function(d,o){return ie(V(d),o)},S.code=function(d,o,a){var c=(o||"").match(/\S*/)[0];return c?["latex","katex","math"].indexOf(c)>=0?"<p class='editormd-tex'>".concat(d,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(o,'">').concat(a?d:Object(O.escape)(d,!0),`</code></pre>
`):'<pre class="prettyprint linenums"><code>'+(a?d:Object(O.escape)(d,!0))+"</code></pre>"},S.heading=function(d,o,a){var c=this.options.headerPrefix+a.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return m.push({anchor:c,level:o,text:d}),"<h"+o+' id="'+c+'">'+d+"</h"+o+">"},A.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),A.a.use({tokenizer:xe,renderer:S});var De=A.a,I=l("SJMd"),b=l("ulZh"),ye=l.n(b),je=l("m3rI"),_e=l("Oy/b"),st=l("p5ED"),St=l("ErOA");/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var tt=function(d,o){return(tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&(a[p]=c[p])})(d,o)};function nt(d,o){function a(){this.constructor=d}tt(d,o),d.prototype=o===null?Object.create(o):(a.prototype=o.prototype,new a)}function Je(d,o,a,c){return new(a||(a=Promise))(function(p,h){function te(Nt){try{gt(c.next(Nt))}catch(Xe){h(Xe)}}function Ke(Nt){try{gt(c.throw(Nt))}catch(Xe){h(Xe)}}function gt(Nt){var Xe;Nt.done?p(Nt.value):(Xe=Nt.value,Xe instanceof a?Xe:new a(function(kt){kt(Xe)})).then(te,Ke)}gt((c=c.apply(d,o||[])).next())})}function Ye(d,o){var a,c,p,h,te={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return h={next:Ke(0),throw:Ke(1),return:Ke(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function Ke(gt){return function(Nt){return function(Xe){if(a)throw new TypeError("Generator is already executing.");for(;te;)try{if(a=1,c&&(p=2&Xe[0]?c.return:Xe[0]?c.throw||((p=c.return)&&p.call(c),0):c.next)&&!(p=p.call(c,Xe[1])).done)return p;switch(c=0,p&&(Xe=[2&Xe[0],p.value]),Xe[0]){case 0:case 1:p=Xe;break;case 4:return te.label++,{value:Xe[1],done:!1};case 5:te.label++,c=Xe[1],Xe=[0];continue;case 7:Xe=te.ops.pop(),te.trys.pop();continue;default:if(!(p=te.trys,(p=p.length>0&&p[p.length-1])||Xe[0]!==6&&Xe[0]!==2)){te=0;continue}if(Xe[0]===3&&(!p||Xe[1]>p[0]&&Xe[1]<p[3])){te.label=Xe[1];break}if(Xe[0]===6&&te.label<p[1]){te.label=p[1],p=Xe;break}if(p&&te.label<p[2]){te.label=p[2],te.ops.push(Xe);break}p[2]&&te.ops.pop(),te.trys.pop();continue}Xe=o.call(d,te)}catch(kt){Xe=[6,kt],c=0}finally{a=p=0}if(5&Xe[0])throw Xe[1];return{value:Xe[0]?Xe[1]:void 0,done:!0}}([gt,Nt])}}}function Ee(){for(var d=0,o=0,a=arguments.length;o<a;o++)d+=arguments[o].length;var c=Array(d),p=0;for(o=0;o<a;o++)for(var h=arguments[o],te=0,Ke=h.length;te<Ke;te++,p++)c[p]=h[te];return c}var F=function(){function d(){}return d.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},d.setAttributes=function(o,a){for(var c=0,p=a;c<p.length;c++){var h=p[c],te=h[0],Ke=h[1];o.setAttribute(te,Ke)}},d.createRect=function(o,a,c){var p=document.createElementNS("http://www.w3.org/2000/svg","rect");return p.setAttribute("width",o.toString()),p.setAttribute("height",a.toString()),c&&d.setAttributes(p,c),p},d.createLine=function(o,a,c,p,h){var te=document.createElementNS("http://www.w3.org/2000/svg","line");return te.setAttribute("x1",o.toString()),te.setAttribute("y1",a.toString()),te.setAttribute("x2",c.toString()),te.setAttribute("y2",p.toString()),h&&d.setAttributes(te,h),te},d.createPolygon=function(o,a){var c=document.createElementNS("http://www.w3.org/2000/svg","polygon");return c.setAttribute("points",o),a&&d.setAttributes(c,a),c},d.createCircle=function(o,a){var c=document.createElementNS("http://www.w3.org/2000/svg","circle");return c.setAttribute("cx",(o/2).toString()),c.setAttribute("cy",(o/2).toString()),c.setAttribute("r",o.toString()),a&&d.setAttributes(c,a),c},d.createEllipse=function(o,a,c){var p=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return p.setAttribute("cx",(o/2).toString()),p.setAttribute("cy",(a/2).toString()),p.setAttribute("rx",(o/2).toString()),p.setAttribute("ry",(a/2).toString()),c&&d.setAttributes(p,c),p},d.createGroup=function(o){var a=document.createElementNS("http://www.w3.org/2000/svg","g");return o&&d.setAttributes(a,o),a},d.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},d.createMarker=function(o,a,c,p,h,te,Ke){var gt=document.createElementNS("http://www.w3.org/2000/svg","marker");return d.setAttributes(gt,[["id",o],["orient",a],["markerWidth",c.toString()],["markerHeight",p.toString()],["refX",h.toString()],["refY",te.toString()]]),gt.appendChild(Ke),gt},d.createText=function(o){var a=document.createElementNS("http://www.w3.org/2000/svg","text");return a.setAttribute("x","0"),a.setAttribute("y","0"),o&&d.setAttributes(a,o),a},d.createTSpan=function(o,a){var c=document.createElementNS("http://www.w3.org/2000/svg","tspan");return c.textContent=o,a&&d.setAttributes(c,a),c},d.createImage=function(o){var a=document.createElementNS("http://www.w3.org/2000/svg","image");return o&&d.setAttributes(a,o),a},d.createPoint=function(o,a){var c=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return c.x=o,c.y=a,c},d.createPath=function(o,a){var c=document.createElementNS("http://www.w3.org/2000/svg","path");return c.setAttribute("d",o),a&&d.setAttributes(c,a),c},d}(),it=function(){function d(){}return d.addKey=function(o){d.key=o},Object.defineProperty(d,"isLicensed",{get:function(){return!!d.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(d.key)},enumerable:!1,configurable:!0}),d}(),Mt=function(){function d(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return d.prototype.rasterize=function(o,a,c){var p=this;return new Promise(function(h){var te=c!==void 0?c:document.createElement("canvas");o===null&&(p.markersOnly=!0,p.naturalSize=!1);var Ke=document.createElementNS("http://www.w3.org/2000/svg","svg");Ke.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ke.setAttribute("width",a.width.baseVal.valueAsString),Ke.setAttribute("height",a.height.baseVal.valueAsString),Ke.setAttribute("viewBox","0 0 "+a.viewBox.baseVal.width.toString()+" "+a.viewBox.baseVal.height.toString()),Ke.innerHTML=a.innerHTML,p.naturalSize===!0?(Ke.width.baseVal.value=o.naturalWidth,Ke.height.baseVal.value=o.naturalHeight):p.width!==void 0&&p.height!==void 0&&(Ke.width.baseVal.value=p.width,Ke.height.baseVal.value=p.height),te.width=Ke.width.baseVal.value,te.height=Ke.height.baseVal.value;var gt=Ke.outerHTML,Nt=te.getContext("2d");p.markersOnly!==!0&&Nt.drawImage(o,0,0,te.width,te.height);var Xe=window.URL,kt=new Image(te.width,te.height);kt.setAttribute("crossOrigin","anonymous");var Rt=new Blob([gt],{type:"image/svg+xml"}),jt=Xe.createObjectURL(Rt);kt.onload=function(){Nt.drawImage(kt,0,0),Xe.revokeObjectURL(jt);var un=te.toDataURL(p.imageType,p.imageQuality);h(un)},kt.src=jt})},d}(),Tt=function(){},Ct=function(){function d(o){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+o+"_"}return Object.defineProperty(d.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),d.prototype.addClass=function(o){return this.styleSheet===void 0&&this.addStyleSheet(),o.name=""+this.classNamePrefix+o.localName,this.classes.push(o),this.styleSheet.sheet.insertRule("."+o.name+" {"+o.style+"}",this.styleSheet.sheet.cssRules.length),o},d.prototype.addRule=function(o){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(o),this.styleSheet.sheet.insertRule(o.selector+" {"+o.style+"}",this.styleSheet.sheet.cssRules.length)},d.prototype.addStyleSheet=function(){var o;this.styleSheet=document.createElement("style"),((o=this.styleSheetRoot)!==null&&o!==void 0?o:document.head).appendChild(this.styleSheet),this.addRule(new q("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new q("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new q("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new $("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new $("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},d.prototype.removeStyleSheet=function(){var o;this.styleSheet&&(((o=this.styleSheetRoot)!==null&&o!==void 0?o:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},d}(),q=function(d,o){this.selector=d,this.style=o},$=function(d,o){this.localName=d,this.style=o},Ae=function(){function d(o,a,c,p,h){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=o,this.displayMode=a,this.markerItems=c,this.uiStyleSettings=p,this.styles=h,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return d.prototype.show=function(o){var a=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=o,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var c=document.createElement("div");c.className=this.toolbarBlockStyleClass.name,c.style.whiteSpace="nowrap",this.uiContainer.appendChild(c),this.addActionButton(c,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(c,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(c,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(c,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(c,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(c,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(c,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(c,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(h){var te=document.createElement("div");te.className=""+a.toolbarButtonStyleClass.name,te.setAttribute("data-type-name",h.typeName),te.innerHTML=h.icon,te.addEventListener("click",function(){a.markerToolbarButtonClicked(te,h)}),a.buttons.push(te),a.markerButtons.push(te)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var p=document.createElement("div");p.className=this.toolbarBlockStyleClass.name,p.style.whiteSpace="nowrap",p.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(p),this.addActionButton(p,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(p,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},d.prototype.addButtonClickListener=function(o){this.buttonClickListeners.push(o)},d.prototype.removeButtonClickListener=function(o){this.buttonClickListeners.indexOf(o)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(o),1)},d.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},d.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var o=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var a=0;a<this.markerButtons.length;a++)a<o||a===o&&this.markerButtons.length-1===o?this.markerButtonBlock.appendChild(this.markerButtons[a]):(a===o&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[a]))}},d.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},d.prototype.resetButtonStyles=function(){var o=this;this.buttons.forEach(function(a){a.className=a.className.replace(o.uiStyleSettings.toolbarButtonStyleColorsClassName?o.uiStyleSettings.toolbarButtonStyleColorsClassName:o.toolbarButtonStyleColorsClass.name,"").trim(),a.className=a.className.replace(o.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?o.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:o.toolbarActiveButtonStyleColorsClass.name,"").trim(),a.className+=" "+(o.uiStyleSettings.toolbarButtonStyleColorsClassName?o.uiStyleSettings.toolbarButtonStyleColorsClassName:o.toolbarButtonStyleColorsClass.name)})},d.prototype.addActionButton=function(o,a,c){var p=this,h=document.createElement("div");switch(h.className=""+this.toolbarButtonStyleClass.name,h.innerHTML=a,h.setAttribute("data-action",c),h.addEventListener("click",function(){p.actionToolbarButtonClicked(h,c)}),c){case"select":h.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":h.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":h.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":h.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":h.style.fill=this.uiStyleSettings.closeButtonColor}o.appendChild(h),this.buttons.push(h)},d.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new $("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new $("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new $("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new $("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new $("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var o=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new $("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*o)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*o)+`px;
padding: `+o+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new $("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new $("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new q("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new q("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},d.prototype.markerToolbarButtonClicked=function(o,a){this.setActiveButton(o),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(c){return c("marker",a)}),this.markerButtonOverflowBlock.style.display="none"},d.prototype.actionToolbarButtonClicked=function(o,a){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(c){return c("action",a)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},d.prototype.setActiveButton=function(o){this.resetButtonStyles(),o.className=o.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),o.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},d.prototype.setActiveMarkerButton=function(o){var a=this.markerButtons.find(function(c){return c.getAttribute("data-type-name")===o});a&&this.setActiveButton(a)},d.prototype.setCurrentMarker=function(o){var a=this;this.currentMarker=o,this.buttons.filter(function(c){return/delete|notes/.test(c.getAttribute("data-action"))}).forEach(function(c){a.currentMarker===void 0?(c.style.fillOpacity="0.4",c.style.pointerEvents="none"):(c.style.fillOpacity="1",c.style.pointerEvents="all")})},d}(),Pe=function(){function d(o,a,c,p){this.panels=[],this.panelButtons=[],this.markerjsContainer=o,this.displayMode=a,this.uiStyleSettings=c,this.styles=p,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return d.prototype.addStyles=function(){var o;this.toolboxStyleClass=this.styles.addClass(new $("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new $("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var a=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new $("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new $("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new $("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new $("toolbox-panel-row_colors",`
background-color: `+((o=this.uiStyleSettings.toolboxBackgroundColor)!==null&&o!==void 0?o:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new $("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*a)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*a)+`px;
padding: `+a+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new $("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new $("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new q("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new q("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},d.prototype.show=function(o){var a;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=o,this.uiContainer.className=this.toolboxStyleClass.name+" "+((a=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&a!==void 0?a:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},d.prototype.setPanelButtons=function(o){var a,c,p=this;this.panels=o,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((a=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&a!==void 0?a:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((c=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&c!==void 0?c:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(h){var te;h.uiStyleSettings=p.uiStyleSettings;var Ke=document.createElement("div");Ke.className=p.toolboxButtonStyleClass.name+" "+((te=p.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&te!==void 0?te:p.toolboxButtonStyleColorsClass.name),Ke.innerHTML=h.icon,Ke.title=h.title,Ke.addEventListener("click",function(){p.panelButtonClick(h)}),p.panelButtons.push(Ke),p.buttonRow.appendChild(Ke)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},d.prototype.panelButtonClick=function(o){var a=this,c=-1;if(o!==this.activePanel){c=this.panels.indexOf(o),this.panelRow.innerHTML="";var p=o.getUi();p.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(p),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=o}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){a.displayMode==="inline"?a.panelRow.style.display="none":a.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(h,te){var Ke,gt;h.className=a.toolboxButtonStyleClass.name+" "+(te===c?""+((Ke=a.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ke!==void 0?Ke:a.toolboxActiveButtonStyleColorsClass.name):""+((gt=a.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&gt!==void 0?gt:a.toolboxButtonStyleColorsClass.name))})},d}(),He=function(d,o){this.title=d,this.icon=o},Ue=function(d){function o(a,c,p,h){var te=d.call(this,a,h||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return te.colors=[],te.addTransparent=!1,te.colorBoxes=[],te.colors=c,te.currentColor=p,te.setCurrentColor=te.setCurrentColor.bind(te),te.getColorBox=te.getColorBox.bind(te),te}return nt(o,d),o.prototype.getUi=function(){var a=this,c=document.createElement("div");return c.style.overflow="hidden",c.style.whiteSpace="nowrap",this.colors.forEach(function(p){var h=a.getColorBox(p);c.appendChild(h),a.colorBoxes.push(h)}),c},o.prototype.getColorBox=function(a){var c=this,p=this.uiStyleSettings.toolbarHeight/4,h=this.uiStyleSettings.toolbarHeight-p,te=document.createElement("div");te.style.display="inline-block",te.style.boxSizing="content-box",te.style.width=h-2+"px",te.style.height=h-2+"px",te.style.padding="1px",te.style.marginRight="2px",te.style.marginBottom="2px",te.style.borderWidth="2px",te.style.borderStyle="solid",te.style.borderRadius=(h+2)/2+"px",te.style.borderColor=a===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",te.addEventListener("click",function(){c.setCurrentColor(a,te)});var Ke=document.createElement("div");return Ke.style.display="inline-block",Ke.style.width=h-2+"px",Ke.style.height=h-2+"px",Ke.style.backgroundColor=a,Ke.style.borderRadius=h/2+"px",a==="transparent"&&(Ke.style.fill=this.uiStyleSettings.toolboxAccentColor,Ke.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),te.appendChild(Ke),te},o.prototype.setCurrentColor=function(a,c){var p=this;this.currentColor=a,this.colorBoxes.forEach(function(h){h.style.borderColor=h===c?p.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(a)},o}(He),Qe=function(){function d(o,a,c){this._state="new",this._isSelected=!1,this._container=o,this._overlayContainer=a,this.globalSettings=c,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(d.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),d.prototype.ownsTarget=function(o){return!1},Object.defineProperty(d.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),d.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},d.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},d.prototype.pointerDown=function(o,a){},d.prototype.dblClick=function(o,a){},d.prototype.manipulate=function(o){},d.prototype.pointerUp=function(o){this.stateChanged()},d.prototype.dispose=function(){},d.prototype.addMarkerVisualToContainer=function(o){this.container.childNodes.length>0?this.container.insertBefore(o,this.container.childNodes[0]):this.container.appendChild(o)},d.prototype.getState=function(){return{typeName:d.typeName,state:this.state,notes:this.notes}},d.prototype.restoreState=function(o){this._state=o.state,this.notes=o.notes},d.prototype.scale=function(o,a){},d.prototype.colorChanged=function(o){this.onColorChanged&&this.onColorChanged(o),this.stateChanged()},d.prototype.fillColorChanged=function(o){this.onFillColorChanged&&this.onFillColorChanged(o),this.stateChanged()},d.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var o=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),o.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(o)&&this.onStateChanged(this)}},d.typeName="MarkerBase",d}(),et=function(){function d(){this.findGripByVisual=this.findGripByVisual.bind(this)}return d.prototype.findGripByVisual=function(o){return this.topLeft.ownsTarget(o)?this.topLeft:this.topCenter.ownsTarget(o)?this.topCenter:this.topRight.ownsTarget(o)?this.topRight:this.centerLeft.ownsTarget(o)?this.centerLeft:this.centerRight.ownsTarget(o)?this.centerRight:this.bottomLeft.ownsTarget(o)?this.bottomLeft:this.bottomCenter.ownsTarget(o)?this.bottomCenter:this.bottomRight.ownsTarget(o)?this.bottomRight:void 0},d}(),Dt=function(){function d(){this.GRIP_SIZE=10,this.visual=F.createGroup(),this.visual.appendChild(F.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(F.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return d.prototype.ownsTarget=function(o){return o===this.visual||o===this.visual.childNodes[0]||o===this.visual.childNodes[1]},d}(),ct=function(){function d(){}return d.toITransformMatrix=function(o){return{a:o.a,b:o.b,c:o.c,d:o.d,e:o.e,f:o.f}},d.toSVGMatrix=function(o,a){return o.a=a.a,o.b=a.b,o.c=a.c,o.d=a.d,o.e=a.e,o.f=a.f,o},d}(),ot=function(d){function o(a,c,p){var h=d.call(this,a,c,p)||this;return h.left=0,h.top=0,h.width=0,h.height=0,h.defaultSize={x:50,y:20},h.offsetX=0,h.offsetY=0,h.rotationAngle=0,h.CB_DISTANCE=10,h._suppressMarkerCreateEvent=!1,h.container.transform.baseVal.appendItem(F.createTransform()),h.setupControlBox(),h}return nt(o,d),Object.defineProperty(o.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"visual",{get:function(){return this._visual},set:function(a){this._visual=a;var c=F.createTransform();this._visual.transform.baseVal.appendItem(c)},enumerable:!1,configurable:!0}),o.prototype.ownsTarget=function(a){return!!d.prototype.ownsTarget.call(this,a)||!!(this.controlGrips.findGripByVisual(a)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(a))},o.prototype.pointerDown=function(a,c){d.prototype.pointerDown.call(this,a,c),this.state==="new"&&(this.left=a.x,this.top=a.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var p=this.unrotatePoint(a);if(this.manipulationStartX=p.x,this.manipulationStartY=p.y,this.offsetX=p.x-this.left,this.offsetY=p.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(c),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(c)){this.activeGrip=this.rotatorGrip;var h=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=h.x-this.width/2,this.top=h.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var te=this.container.transform.baseVal.getItem(0);te.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(te,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},o.prototype.pointerUp=function(a){var c=this.state;d.prototype.pointerUp.call(this,a),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(a),this._state="select",c==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},o.prototype.moveVisual=function(a){this.visual.style.transform="translate("+a.x+"px, "+a.y+"px)"},o.prototype.manipulate=function(a){var c=this.unrotatePoint(a);this.state==="creating"?this.resize(a):this.state==="move"?(this.left=this.manipulationStartLeft+(c.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(c.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(c):this.state==="rotate"&&this.rotate(a)},o.prototype.resize=function(a){var c=this.manipulationStartLeft,p=this.manipulationStartWidth,h=this.manipulationStartTop,te=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:c=this.manipulationStartLeft+a.x-this.manipulationStartX,p=this.manipulationStartWidth+this.manipulationStartLeft-c;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:p=this.manipulationStartWidth+a.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:h=this.manipulationStartTop+a.y-this.manipulationStartY,te=this.manipulationStartHeight+this.manipulationStartTop-h;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:te=this.manipulationStartHeight+a.y-this.manipulationStartY}p>=0?(this.left=c,this.width=p):(this.left=c+p,this.width=-p),te>=0?(this.top=h,this.height=te):(this.top=h+te,this.height=-te),this.setSize()},o.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},o.prototype.rotate=function(a){if(Math.abs(a.x-this.centerX)>.1){var c=Math.sign(a.x-this.centerX);this.rotationAngle=180*Math.atan((a.y-this.centerY)/(a.x-this.centerX))/Math.PI+90*c,this.applyRotation()}},o.prototype.applyRotation=function(){var a=this.container.transform.baseVal.getItem(0);a.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(a,0)},o.prototype.rotatePoint=function(a){if(this.rotationAngle===0)return a;var c=this.container.getCTM(),p=F.createPoint(a.x,a.y);return{x:(p=p.matrixTransform(c)).x,y:p.y}},o.prototype.unrotatePoint=function(a){if(this.rotationAngle===0)return a;var c=this.container.getCTM();c=c.inverse();var p=F.createPoint(a.x,a.y);return{x:(p=p.matrixTransform(c)).x,y:p.y}},o.prototype.select=function(){d.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},o.prototype.deselect=function(){d.prototype.deselect.call(this),this.controlBox.style.display="none"},o.prototype.setupControlBox=function(){this.controlBox=F.createGroup();var a=F.createTransform();a.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(a),this.container.appendChild(this.controlBox),this.controlRect=F.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=F.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new et,this.addControlGrips(),this.controlBox.style.display="none"},o.prototype.adjustControlBox=function(){var a=this.controlBox.transform.baseVal.getItem(0);a.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(a,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},o.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},o.prototype.createGrip=function(){var a=new Dt;return a.visual.transform.baseVal.appendItem(F.createTransform()),this.controlBox.appendChild(a.visual),a},o.prototype.positionGrips=function(){var a=this.controlGrips.topLeft.GRIP_SIZE,c=-a/2,p=c,h=(this.width+this.CB_DISTANCE)/2-a/2,te=(this.height+this.CB_DISTANCE)/2-a/2,Ke=this.height+this.CB_DISTANCE-a/2,gt=this.width+this.CB_DISTANCE-a/2;this.positionGrip(this.controlGrips.topLeft.visual,c,p),this.positionGrip(this.controlGrips.topCenter.visual,h,p),this.positionGrip(this.controlGrips.topRight.visual,gt,p),this.positionGrip(this.controlGrips.centerLeft.visual,c,te),this.positionGrip(this.controlGrips.centerRight.visual,gt,te),this.positionGrip(this.controlGrips.bottomLeft.visual,c,Ke),this.positionGrip(this.controlGrips.bottomCenter.visual,h,Ke),this.positionGrip(this.controlGrips.bottomRight.visual,gt,Ke),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,h,p-3*this.CB_DISTANCE)},o.prototype.positionGrip=function(a,c,p){var h=a.transform.baseVal.getItem(0);h.setTranslate(c,p),a.transform.baseVal.replaceItem(h,0)},o.prototype.hideControlBox=function(){this.controlBox.style.display="none"},o.prototype.showControlBox=function(){this.controlBox.style.display=""},o.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ct.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ct.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},d.prototype.getState.call(this))},o.prototype.restoreState=function(a){d.prototype.restoreState.call(this,a);var c=a;this.left=c.left,this.top=c.top,this.width=c.width,this.height=c.height,this.rotationAngle=c.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ct.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,c.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ct.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,c.containerTransformMatrix))},o.prototype.scale=function(a,c){d.prototype.scale.call(this,a,c);var p=this.rotatePoint({x:this.left,y:this.top}),h=this.unrotatePoint({x:p.x*a,y:p.y*c});this.left=h.x,this.top=h.y,this.width=this.width*a,this.height=this.height*c,this.adjustControlBox()},o}(Qe),$e=function(d){function o(a,c,p){var h=d.call(this,a,c,p)||this;return h.fillColor="transparent",h.strokeColor="transparent",h.strokeWidth=0,h.strokeDasharray="",h.opacity=1,h.setStrokeColor=h.setStrokeColor.bind(h),h.setFillColor=h.setFillColor.bind(h),h.setStrokeWidth=h.setStrokeWidth.bind(h),h.setStrokeDasharray=h.setStrokeDasharray.bind(h),h.createVisual=h.createVisual.bind(h),h}return nt(o,d),o.prototype.ownsTarget=function(a){return!(!d.prototype.ownsTarget.call(this,a)&&a!==this.visual)},o.prototype.createVisual=function(){this.visual=F.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},o.prototype.pointerDown=function(a,c){d.prototype.pointerDown.call(this,a,c),this.state==="new"&&(this.createVisual(),this.moveVisual(a),this._state="creating")},o.prototype.manipulate=function(a){d.prototype.manipulate.call(this,a)},o.prototype.resize=function(a){d.prototype.resize.call(this,a),this.setSize()},o.prototype.setSize=function(){d.prototype.setSize.call(this),F.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},o.prototype.pointerUp=function(a){d.prototype.pointerUp.call(this,a),this.setSize()},o.prototype.setStrokeColor=function(a){this.strokeColor=a,this.visual&&F.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(a),this.stateChanged()},o.prototype.setFillColor=function(a){this.fillColor=a,this.visual&&F.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},o.prototype.setStrokeWidth=function(a){this.strokeWidth=a,this.visual&&F.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},o.prototype.setStrokeDasharray=function(a){this.strokeDasharray=a,this.visual&&F.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},o.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},d.prototype.getState.call(this))},o.prototype.restoreState=function(a){var c=a;this.fillColor=c.fillColor,this.strokeColor=c.strokeColor,this.strokeWidth=c.strokeWidth,this.strokeDasharray=c.strokeDasharray,this.opacity=c.opacity,this.createVisual(),d.prototype.restoreState.call(this,a),this.setSize()},o.prototype.scale=function(a,c){d.prototype.scale.call(this,a,c),this.setSize()},o.title="Rectangle marker",o}(ot),Lt=function(d){function o(a,c,p,h){var te=d.call(this,a,h||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return te.widths=[],te.widthBoxes=[],te.widths=c,te.currentWidth=p,te.setCurrentWidth=te.setCurrentWidth.bind(te),te}return nt(o,d),o.prototype.getUi=function(){var a=this,c=document.createElement("div");return c.style.display="flex",c.style.overflow="hidden",c.style.flexGrow="2",this.widths.forEach(function(p){var h=document.createElement("div");h.style.display="flex",h.style.flexGrow="2",h.style.alignItems="center",h.style.justifyContent="space-between",h.style.padding="5px",h.style.borderWidth="2px",h.style.borderStyle="solid",h.style.borderColor=p===a.currentWidth?a.uiStyleSettings.toolboxAccentColor:"transparent",h.addEventListener("click",function(){a.setCurrentWidth(p,h)}),c.appendChild(h);var te=document.createElement("div");te.innerText=p.toString(),te.style.marginRight="5px",h.appendChild(te);var Ke=document.createElement("div");Ke.style.minHeight="20px",Ke.style.flexGrow="2",Ke.style.display="flex",Ke.style.alignItems="center";var gt=document.createElement("hr");gt.style.minWidth="20px",gt.style.border="0px",gt.style.borderTop=p+"px solid "+a.uiStyleSettings.toolboxColor,gt.style.flexGrow="2",Ke.appendChild(gt),h.appendChild(Ke),a.widthBoxes.push(h)}),c},o.prototype.setCurrentWidth=function(a,c){var p=this;this.currentWidth=a,this.widthBoxes.forEach(function(h){h.style.borderColor=h===c?p.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},o}(He),mt=function(d){function o(a,c,p,h){var te=d.call(this,a,h||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return te.styles=[],te.styleBoxes=[],te.styles=c,te.currentStyle=p,te.setCurrentStyle=te.setCurrentStyle.bind(te),te}return nt(o,d),o.prototype.getUi=function(){var a=this,c=document.createElement("div");return c.style.display="flex",c.style.overflow="hidden",c.style.flexGrow="2",this.styles.forEach(function(p){var h=document.createElement("div");h.style.display="flex",h.style.alignItems="center",h.style.justifyContent="space-between",h.style.padding="5px",h.style.borderWidth="2px",h.style.borderStyle="solid",h.style.overflow="hidden",h.style.maxWidth=100/a.styles.length-5+"%",h.style.borderColor=p===a.currentStyle?a.uiStyleSettings.toolboxAccentColor:"transparent",h.addEventListener("click",function(){a.setCurrentStyle(p,h)}),c.appendChild(h);var te=document.createElement("div");te.style.minHeight="20px",te.style.flexGrow="2",te.style.overflow="hidden";var Ke=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+a.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(p!==""?'stroke-dasharray="'+p+'"':"")+` />
</svg>`;te.innerHTML=Ke,h.appendChild(te),a.styleBoxes.push(h)}),c},o.prototype.setCurrentStyle=function(a,c){var p=this;this.currentStyle=a,this.styleBoxes.forEach(function(h){h.style.borderColor=h===c?p.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},o}(He),Ot=function(d){function o(a,c,p){var h=d.call(this,a,c,p)||this;return h.strokeColor=p.defaultColor,h.strokeWidth=p.defaultStrokeWidth,h.strokeDasharray=p.defaultStrokeDasharray,h.strokePanel=new Ue("Line color",p.defaultColorSet,p.defaultColor),h.strokePanel.onColorChanged=h.setStrokeColor,h.strokeWidthPanel=new Lt("Line width",p.defaultStrokeWidths,p.defaultStrokeWidth),h.strokeWidthPanel.onWidthChanged=h.setStrokeWidth,h.strokeStylePanel=new mt("Line style",p.defaultStrokeDasharrays,p.defaultStrokeDasharray),h.strokeStylePanel.onStyleChanged=h.setStrokeDasharray,h}return nt(o,d),Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=d.prototype.getState.call(this);return a.typeName=o.typeName,a},o.typeName="FrameMarker",o.title="Frame marker",o.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',o}($e),Le=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1},ht=function(d){function o(a,c,p){var h=d.call(this,a,c,p)||this;return h.x1=0,h.y1=0,h.x2=0,h.y2=0,h.defaultLength=50,h.manipulationStartX=0,h.manipulationStartY=0,h.manipulationStartX1=0,h.manipulationStartY1=0,h.manipulationStartX2=0,h.manipulationStartY2=0,h.setupControlBox(),h}return nt(o,d),o.prototype.ownsTarget=function(a){return!!d.prototype.ownsTarget.call(this,a)||!(!this.grip1.ownsTarget(a)&&!this.grip2.ownsTarget(a))},o.prototype.pointerDown=function(a,c){d.prototype.pointerDown.call(this,a,c),this.manipulationStartX=a.x,this.manipulationStartY=a.y,this.state==="new"&&(this.x1=a.x,this.y1=a.y,this.x2=a.x,this.y2=a.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(c)?this.activeGrip=this.grip1:this.grip2.ownsTarget(c)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},o.prototype.pointerUp=function(a){var c=this.state;d.prototype.pointerUp.call(this,a),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(a),this._state="select",c==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},o.prototype.adjustVisual=function(){},o.prototype.manipulate=function(a){this.state==="creating"?this.resize(a):this.state==="move"?(this.x1=this.manipulationStartX1+a.x-this.manipulationStartX,this.y1=this.manipulationStartY1+a.y-this.manipulationStartY,this.x2=this.manipulationStartX2+a.x-this.manipulationStartX,this.y2=this.manipulationStartY2+a.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(a)},o.prototype.resize=function(a){switch(this.activeGrip){case this.grip1:this.x1=a.x,this.y1=a.y;break;case this.grip2:case void 0:this.x2=a.x,this.y2=a.y}this.adjustVisual(),this.adjustControlBox()},o.prototype.select=function(){d.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},o.prototype.deselect=function(){d.prototype.deselect.call(this),this.controlBox.style.display="none"},o.prototype.setupControlBox=function(){this.controlBox=F.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},o.prototype.adjustControlBox=function(){this.positionGrips()},o.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},o.prototype.createGrip=function(){var a=new Dt;return a.visual.transform.baseVal.appendItem(F.createTransform()),this.controlBox.appendChild(a.visual),a},o.prototype.positionGrips=function(){var a=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-a/2,this.y1-a/2),this.positionGrip(this.grip2.visual,this.x2-a/2,this.y2-a/2)},o.prototype.positionGrip=function(a,c,p){var h=a.transform.baseVal.getItem(0);h.setTranslate(c,p),a.transform.baseVal.replaceItem(h,0)},o.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},d.prototype.getState.call(this))},o.prototype.restoreState=function(a){d.prototype.restoreState.call(this,a);var c=a;this.x1=c.x1,this.y1=c.y1,this.x2=c.x2,this.y2=c.y2},o.prototype.scale=function(a,c){d.prototype.scale.call(this,a,c),this.x1=this.x1*a,this.y1=this.y1*c,this.x2=this.x2*a,this.y2=this.y2*c,this.adjustVisual(),this.adjustControlBox()},o}(Qe),yt=function(d){function o(a,c,p){var h=d.call(this,a,c,p)||this;return h.strokeColor="transparent",h.strokeWidth=0,h.strokeDasharray="",h.setStrokeColor=h.setStrokeColor.bind(h),h.setStrokeWidth=h.setStrokeWidth.bind(h),h.setStrokeDasharray=h.setStrokeDasharray.bind(h),h.strokeColor=p.defaultColor,h.strokeWidth=p.defaultStrokeWidth,h.strokeDasharray=p.defaultStrokeDasharray,h.strokePanel=new Ue("Line color",p.defaultColorSet,p.defaultColor),h.strokePanel.onColorChanged=h.setStrokeColor,h.strokeWidthPanel=new Lt("Line width",p.defaultStrokeWidths,p.defaultStrokeWidth),h.strokeWidthPanel.onWidthChanged=h.setStrokeWidth,h.strokeStylePanel=new mt("Line style",p.defaultStrokeDasharrays,p.defaultStrokeDasharray),h.strokeStylePanel.onStyleChanged=h.setStrokeDasharray,h}return nt(o,d),o.prototype.ownsTarget=function(a){return!(!d.prototype.ownsTarget.call(this,a)&&a!==this.visual&&a!==this.selectorLine&&a!==this.visibleLine)},o.prototype.createVisual=function(){this.visual=F.createGroup(),this.selectorLine=F.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=F.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},o.prototype.pointerDown=function(a,c){d.prototype.pointerDown.call(this,a,c),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},o.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),F.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),F.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),F.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},o.prototype.setStrokeColor=function(a){this.strokeColor=a,this.adjustVisual(),this.colorChanged(a)},o.prototype.setStrokeWidth=function(a){this.strokeWidth=a,this.adjustVisual()},o.prototype.setStrokeDasharray=function(a){this.strokeDasharray=a,this.adjustVisual(),this.stateChanged()},Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},d.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){d.prototype.restoreState.call(this,a);var c=a;this.strokeColor=c.strokeColor,this.strokeWidth=c.strokeWidth,this.strokeDasharray=c.strokeDasharray,this.createVisual(),this.adjustVisual()},o.typeName="LineMarker",o.title="Line marker",o.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',o}(ht),Fe=function(d){function o(a,c,p,h){var te=d.call(this,a,h||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return te.fonts=[],te.fontBoxes=[],te.fonts=c,te.currentFont=p,te.setCurrentFont=te.setCurrentFont.bind(te),te}return nt(o,d),o.prototype.getUi=function(){var a=this,c=document.createElement("div");return c.style.overflow="hidden",c.style.flexGrow="2",this.fonts.forEach(function(p){var h=document.createElement("div");h.style.display="inline-block",h.style.alignItems="center",h.style.justifyContent="space-between",h.style.padding="5px",h.style.borderWidth="2px",h.style.borderStyle="solid",h.style.overflow="hidden",h.style.maxWidth=100/a.fonts.length-5+"%",h.style.borderColor=p===a.currentFont?a.uiStyleSettings.toolboxAccentColor:"transparent",h.addEventListener("click",function(){a.setCurrentFont(p,h)}),c.appendChild(h);var te=document.createElement("div");te.style.display="flex",te.style.minHeight="20px",te.style.flexGrow="2",te.style.fontFamily=p,te.style.overflow="hidden";var Ke=document.createElement("div");Ke.style.whiteSpace="nowrap",Ke.style.overflow="hidden",Ke.style.textOverflow="ellipsis",Ke.innerHTML="The quick brown fox jumps over the lazy dog",te.appendChild(Ke),h.appendChild(te),a.fontBoxes.push(h)}),c},o.prototype.setCurrentFont=function(a,c){var p=this;this.currentFont=a,this.fontBoxes.forEach(function(h){h.style.borderColor=h===c?p.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},o}(He),Ze=function(d){function o(a,c,p){var h=d.call(this,a,c,p)||this;return h.color="transparent",h.padding=5,h.DEFAULT_TEXT="your text here",h.text=h.DEFAULT_TEXT,h.isMoved=!1,h.color=p.defaultColor,h.fontFamily=p.defaultFontFamily,h.defaultSize={x:100,y:30},h.setColor=h.setColor.bind(h),h.setFont=h.setFont.bind(h),h.renderText=h.renderText.bind(h),h.sizeText=h.sizeText.bind(h),h.textEditDivClicked=h.textEditDivClicked.bind(h),h.showTextEditor=h.showTextEditor.bind(h),h.setSize=h.setSize.bind(h),h.positionTextEditor=h.positionTextEditor.bind(h),h.colorPanel=new Ue("Color",p.defaultColorSet,p.defaultColor),h.colorPanel.onColorChanged=h.setColor,h.fontFamilyPanel=new Fe("Font",p.defaultFontFamilies,p.defaultFontFamily),h.fontFamilyPanel.onFontChanged=h.setFont,h}return nt(o,d),o.prototype.ownsTarget=function(a){if(d.prototype.ownsTarget.call(this,a)||a===this.visual||a===this.textElement||a===this.bgRectangle)return!0;var c=!1;return this.textElement.childNodes.forEach(function(p){p===a&&(c=!0)}),c},o.prototype.createVisual=function(){this.visual=F.createGroup(),this.bgRectangle=F.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=F.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(F.createTransform()),this.textElement.transform.baseVal.appendItem(F.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},o.prototype.pointerDown=function(a,c){d.prototype.pointerDown.call(this,a,c),this.isMoved=!1,this.pointerDownPoint=a,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(a),this._state="creating")},o.prototype.renderText=function(){var a=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(c){a.textElement.appendChild(F.createTSpan(c.trim()===""?" ":c.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},o.prototype.getTextScale=function(){var a=this.textElement.getBBox(),c=1;if(a.width>0&&a.height>0){var p=(1*this.width-this.width*this.padding*2/100)/a.width,h=(1*this.height-this.height*this.padding*2/100)/a.height;c=Math.min(p,h)}return c},o.prototype.getTextPosition=function(a){var c=this.textElement.getBBox(),p=0,h=0;return c.width>0&&c.height>0&&(p=(this.width-c.width*a)/2,h=this.height/2-c.height*a/2),{x:p,y:h}},o.prototype.sizeText=function(){var a=this.textElement.getBBox(),c=this.getTextScale(),p=this.getTextPosition(c);p.y-=a.y*c,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+p.x+"px, "+p.y+"px) scale("+c+", "+c+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(p.x,p.y),this.textElement.transform.baseVal.getItem(1).setScale(c,c))},o.prototype.manipulate=function(a){d.prototype.manipulate.call(this,a),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(a.x-this.pointerDownPoint.x)>5||Math.abs(a.y-this.pointerDownPoint.y)>5)},o.prototype.resize=function(a){d.prototype.resize.call(this,a),this.isMoved=!0,this.setSize(),this.sizeText()},o.prototype.setSize=function(){d.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(F.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),F.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},o.prototype.pointerUp=function(a){var c=this.state;c==="creating"&&(this._suppressMarkerCreateEvent=!0),d.prototype.pointerUp.call(this,a),this.setSize(),(c==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},o.prototype.showTextEditor=function(){var a=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(c){c.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var c=Number.parseFloat(a.textEditor.style.fontSize);a.textEditor.clientWidth>=Number.parseInt(a.textEditor.style.maxWidth)&&c>.9;)c-=.1,a.textEditor.style.fontSize=Math.max(c,.9)+"em"}),this.textEditor.addEventListener("keyup",function(c){c.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(c){if(c.clipboardData){var p=c.clipboardData.getData("text"),h=window.getSelection();if(!h.rangeCount)return!1;h.deleteFromDocument(),h.getRangeAt(0).insertNode(document.createTextNode(p)),c.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){a.textEditDivClicked(a.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},o.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var a=this.getTextScale(),c=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),p=this.textElement.getBBox(),h={x:p.width*a,y:p.height*a};c.x-=h.x/2,c.y-=h.y/2,this.textEditor.style.top=c.y+"px",this.textEditor.style.left=c.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-c.x+"px",this.textEditor.style.fontSize=Math.max(16*a,12)+"px",this.textElement.style.display="none"}},o.prototype.textEditDivClicked=function(a){this.text=a.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},o.prototype.select=function(){d.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},o.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),d.prototype.deselect.call(this)},o.prototype.dblClick=function(a,c){d.prototype.dblClick.call(this,a,c),this.showTextEditor()},o.prototype.setColor=function(a){this.textElement&&F.setAttributes(this.textElement,[["fill",a]]),this.color=a,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(a)},o.prototype.setFont=function(a){this.textElement&&F.setAttributes(this.textElement,[["font-family",a]]),this.fontFamily=a,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},o.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},o.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},d.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){var c=a;this.color=c.color,this.fontFamily=c.fontFamily,this.padding=c.padding,this.text=c.text,this.createVisual(),d.prototype.restoreState.call(this,a),this.setSize()},o.prototype.scale=function(a,c){d.prototype.scale.call(this,a,c),this.setSize(),this.sizeText(),this.positionTextEditor()},o.typeName="TextMarker",o.title="Text marker",o.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',o}(ot),se=function(d){function o(a,c,p){var h=d.call(this,a,c,p)||this;return h.color="transparent",h.lineWidth=3,h.drawing=!1,h.pixelRatio=1,h.color=p.defaultColor,h.lineWidth=p.defaultStrokeWidth,h.pixelRatio=p.freehandPixelRatio,h.setColor=h.setColor.bind(h),h.addCanvas=h.addCanvas.bind(h),h.finishCreation=h.finishCreation.bind(h),h.setLineWidth=h.setLineWidth.bind(h),h.colorPanel=new Ue("Color",p.defaultColorSet,p.defaultColor),h.colorPanel.onColorChanged=h.setColor,h.lineWidthPanel=new Lt("Line width",p.defaultStrokeWidths,p.defaultStrokeWidth),h.lineWidthPanel.onWidthChanged=h.setLineWidth,h}return nt(o,d),o.prototype.ownsTarget=function(a){return!(!d.prototype.ownsTarget.call(this,a)&&a!==this.visual&&a!==this.drawingImage)},o.prototype.createVisual=function(){this.visual=F.createGroup(),this.drawingImage=F.createImage(),this.visual.appendChild(this.drawingImage);var a=F.createTransform();this.visual.transform.baseVal.appendItem(a),this.addMarkerVisualToContainer(this.visual)},o.prototype.pointerDown=function(a,c){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(a.x,a.y),this.drawing=!0):d.prototype.pointerDown.call(this,a,c)},o.prototype.manipulate=function(a){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(a.x,a.y),this.canvasContext.stroke()):d.prototype.manipulate.call(this,a)},o.prototype.resize=function(a){d.prototype.resize.call(this,a),F.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),F.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},o.prototype.pointerUp=function(a){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):d.prototype.pointerUp.call(this,a)},o.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},o.prototype.select=function(){this.state==="creating"&&this.finishCreation(),d.prototype.select.call(this)},o.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),d.prototype.deselect.call(this)},o.prototype.finishCreation=function(){for(var a=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),c=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],p=c[0],h=c[1],te=c[2],Ke=c[3],gt=!1,Nt=0;Nt<this.canvasElement.height;Nt++)for(var Xe=0;Xe<this.canvasElement.width;Xe++)a.data[Nt*this.canvasElement.width*4+4*Xe+3]>0&&(gt=!0,Nt<h&&(h=Nt),Xe<p&&(p=Xe),Nt>Ke&&(Ke=Nt),Xe>te&&(te=Xe));if(gt){this.left=p/this.pixelRatio,this.top=h/this.pixelRatio,this.width=(te-p)/this.pixelRatio,this.height=(Ke-h)/this.pixelRatio;var kt=document.createElement("canvas");kt.width=te-p,kt.height=Ke-h,kt.getContext("2d").putImageData(this.canvasContext.getImageData(p,h,te-p,Ke-h),0,0),this.drawingImgUrl=kt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},o.prototype.setDrawingImage=function(){F.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),F.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},o.prototype.setColor=function(a){this.color=a,this.colorChanged(a)},o.prototype.setLineWidth=function(a){this.lineWidth=a},Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=Object.assign({drawingImgUrl:this.drawingImgUrl},d.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){this.createVisual(),d.prototype.restoreState.call(this,a),this.drawingImgUrl=a.drawingImgUrl,this.setDrawingImage()},o.prototype.scale=function(a,c){d.prototype.scale.call(this,a,c),this.setDrawingImage()},o.typeName="FreehandMarker",o.title="Freehand marker",o.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',o}(ot),ne=function(d){function o(a,c,p){var h=d.call(this,a,p||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return h.typeBoxes=[],h.currentType=c,h.setCurrentType=h.setCurrentType.bind(h),h}return nt(o,d),o.prototype.getUi=function(){var a=this,c=document.createElement("div");c.style.display="flex",c.style.overflow="hidden",c.style.flexGrow="2";for(var p=function(Ke){var gt="both";switch(Ke){case 0:gt="both";break;case 1:gt="start";break;case 2:gt="end";break;case 3:gt="none"}var Nt=document.createElement("div");if(Nt.style.display="flex",Nt.style.flexGrow="2",Nt.style.alignItems="center",Nt.style.justifyContent="space-between",Nt.style.padding="5px",Nt.style.borderWidth="2px",Nt.style.borderStyle="solid",Nt.style.borderColor=gt===h.currentType?h.uiStyleSettings.toolboxAccentColor:"transparent",Nt.addEventListener("click",function(){a.setCurrentType(gt,Nt)}),c.appendChild(Nt),gt==="both"||gt==="start"){var Xe=document.createElement("div");Xe.style.display="flex",Xe.style.alignItems="center",Xe.style.minHeight="20px",Xe.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(h.uiStyleSettings!==void 0?h.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Xe.style.marginLeft="5px",Nt.appendChild(Xe)}var kt=document.createElement("div");kt.style.display="flex",kt.style.alignItems="center",kt.style.minHeight="20px",kt.style.flexGrow="2";var Rt=document.createElement("hr");if(Rt.style.minWidth="20px",Rt.style.border="0px",Rt.style.borderTop="3px solid "+(h.uiStyleSettings!==void 0?h.uiStyleSettings.toolboxColor:"#eeeeee"),Rt.style.flexGrow="2",kt.appendChild(Rt),Nt.appendChild(kt),gt==="both"||gt==="end"){var jt=document.createElement("div");jt.style.display="flex",jt.style.alignItems="center",jt.style.minHeight="20px",jt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(h.uiStyleSettings!==void 0?h.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,jt.style.marginRight="5px",Nt.appendChild(jt)}h.typeBoxes.push(Nt)},h=this,te=0;te<4;te++)p(te);return c},o.prototype.setCurrentType=function(a,c){var p=this;this.currentType=a,this.typeBoxes.forEach(function(h){h.style.borderColor=h===c?p.uiStyleSettings!==void 0?p.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},o}(He),oe=function(d){function o(a,c,p){var h=d.call(this,a,c,p)||this;return h.arrowType="end",h.arrowBaseHeight=10,h.arrowBaseWidth=10,h.getArrowPoints=h.getArrowPoints.bind(h),h.setArrowType=h.setArrowType.bind(h),h.arrowTypePanel=new ne("Arrow type","end"),h.arrowTypePanel.onArrowTypeChanged=h.setArrowType,h}return nt(o,d),o.prototype.ownsTarget=function(a){return!(!d.prototype.ownsTarget.call(this,a)&&a!==this.arrow1&&a!==this.arrow2)},o.prototype.getArrowPoints=function(a,c){var p=this.arrowBaseWidth+2*this.strokeWidth,h=this.arrowBaseHeight+2*this.strokeWidth;return a-p/2+","+(c+h/2)+" "+a+","+(c-h/2)+" "+(a+p/2)+","+(c+h/2)},o.prototype.createTips=function(){this.arrow1=F.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(F.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=F.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(F.createTransform()),this.visual.appendChild(this.arrow2)},o.prototype.pointerDown=function(a,c){d.prototype.pointerDown.call(this,a,c),this.state==="creating"&&this.createTips()},o.prototype.adjustVisual=function(){if(d.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2&&(this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",F.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),F.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]),Math.abs(this.x1-this.x2)>.1)){var a=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),c=this.arrow1.transform.baseVal.getItem(0);c.setRotate(a,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(c,0);var p=this.arrow2.transform.baseVal.getItem(0);p.setRotate(a+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(p,0)}},o.prototype.setArrowType=function(a){this.arrowType=a,this.adjustVisual(),this.stateChanged()},Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=Object.assign({arrowType:this.arrowType},d.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){d.prototype.restoreState.call(this,a);var c=a;this.arrowType=c.arrowType,this.createTips(),this.adjustVisual()},o.typeName="ArrowMarker",o.title="Arrow marker",o.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',o}(yt),M=function(d){function o(a,c,p){var h=d.call(this,a,c,p)||this;return h.fillColor=p.defaultFillColor,h.strokeWidth=0,h.fillPanel=new Ue("Color",p.defaultColorSet,p.defaultFillColor),h.fillPanel.onColorChanged=h.setFillColor,h}return nt(o,d),Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=d.prototype.getState.call(this);return a.typeName=o.typeName,a},o.typeName="CoverMarker",o.title="Cover marker",o.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',o}($e),D=function(d){function o(a,c,p,h){var te=d.call(this,a,h||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return te.opacities=[],te.opacityBoxes=[],te.opacities=c,te.currentOpacity=p,te.setCurrentOpacity=te.setCurrentOpacity.bind(te),te}return nt(o,d),o.prototype.getUi=function(){var a=this,c=document.createElement("div");return c.style.display="flex",c.style.overflow="hidden",c.style.flexGrow="2",c.style.justifyContent="space-between",this.opacities.forEach(function(p){var h=document.createElement("div");h.style.display="flex",h.style.alignItems="center",h.style.justifyContent="center",h.style.padding="5px",h.style.borderWidth="2px",h.style.borderStyle="solid",h.style.borderColor=p===a.currentOpacity?a.uiStyleSettings.toolboxAccentColor:"transparent",h.addEventListener("click",function(){a.setCurrentOpacity(p,h)}),c.appendChild(h);var te=document.createElement("div");te.innerText=100*p+"%",h.appendChild(te),a.opacityBoxes.push(h)}),c},o.prototype.setCurrentOpacity=function(a,c){var p=this;this.currentOpacity=a,this.opacityBoxes.forEach(function(h){h.style.borderColor=h===c?p.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},o}(He),z=function(d){function o(a,c,p){var h=d.call(this,a,c,p)||this;return h.setOpacity=h.setOpacity.bind(h),h.fillColor=p.defaultHighlightColor,h.strokeWidth=0,h.opacity=p.defaultHighlightOpacity,h.fillPanel=new Ue("Color",p.defaultColorSet,h.fillColor),h.fillPanel.onColorChanged=h.setFillColor,h.opacityPanel=new D("Opacity",p.defaultOpacitySteps,h.opacity),h.opacityPanel.onOpacityChanged=h.setOpacity,h}return nt(o,d),o.prototype.setOpacity=function(a){this.opacity=a,this.visual&&F.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=d.prototype.getState.call(this);return a.typeName=o.typeName,a},o.typeName="HighlightMarker",o.title="Highlight marker",o.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',o}(M),Z='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Te=function(d){function o(a,c,p){var h=d.call(this,a,c,p)||this;return h.bgColor="transparent",h.tipPosition={x:0,y:0},h.tipBase1Position={x:0,y:0},h.tipBase2Position={x:0,y:0},h.tipMoving=!1,h.color=p.defaultStrokeColor,h.bgColor=p.defaultFillColor,h.fontFamily=p.defaultFontFamily,h.defaultSize={x:100,y:30},h.setBgColor=h.setBgColor.bind(h),h.getTipPoints=h.getTipPoints.bind(h),h.positionTip=h.positionTip.bind(h),h.setTipPoints=h.setTipPoints.bind(h),h.colorPanel=new Ue("Text color",p.defaultColorSet,h.color,'<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>'),h.colorPanel.onColorChanged=h.setColor,h.bgColorPanel=new Ue("Fill color",p.defaultColorSet,h.bgColor,Z),h.bgColorPanel.onColorChanged=h.setBgColor,h.fontFamilyPanel=new Fe("Font",p.defaultFontFamilies,p.defaultFontFamily),h.fontFamilyPanel.onFontChanged=h.setFont,h.tipGrip=new Dt,h.tipGrip.visual.transform.baseVal.appendItem(F.createTransform()),h.controlBox.appendChild(h.tipGrip.visual),h}return nt(o,d),o.prototype.ownsTarget=function(a){return d.prototype.ownsTarget.call(this,a)||this.tipGrip.ownsTarget(a)||this.tip===a},o.prototype.createTip=function(){F.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=F.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},o.prototype.pointerDown=function(a,c){this.state==="new"&&d.prototype.pointerDown.call(this,a,c),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(c)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):d.prototype.pointerDown.call(this,a,c)},o.prototype.pointerUp=function(a){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,d.prototype.pointerUp.call(this,a);else{var c=this.state==="creating";d.prototype.pointerUp.call(this,a),this.setTipPoints(c),this.positionTip()}},o.prototype.manipulate=function(a){if(this.tipMoving){var c=this.unrotatePoint(a);this.tipPosition={x:c.x-this.manipulationStartLeft,y:c.y-this.manipulationStartTop},this.positionTip()}else d.prototype.manipulate.call(this,a)},o.prototype.setBgColor=function(a){this.bgRectangle&&this.tip&&(F.setAttributes(this.bgRectangle,[["fill",a]]),F.setAttributes(this.tip,[["fill",a]])),this.bgColor=a,this.fillColorChanged(a)},o.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},o.prototype.setTipPoints=function(a){a===void 0&&(a=!1);var c=Math.min(this.height/2,15),p=this.height/5;a&&(this.tipPosition={x:c+p/2,y:this.height+20});var h=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?h<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(p=this.width/5,c=Math.min(this.width/2,15),this.tipBase1Position={x:c,y:0},this.tipBase2Position={x:c+p,y:0}):(this.tipBase1Position={x:0,y:c},this.tipBase2Position={x:0,y:c+p}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?h<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(p=this.width/5,c=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-c-p,y:0},this.tipBase2Position={x:this.width-c,y:0}):(this.tipBase1Position={x:this.width,y:c},this.tipBase2Position={x:this.width,y:c+p}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?h<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(p=this.width/5,c=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-c-p,y:this.height},this.tipBase2Position={x:this.width-c,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-c-p},this.tipBase2Position={x:this.width,y:this.height-c}):h<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(p=this.width/5,c=Math.min(this.width/2,15),this.tipBase1Position={x:c,y:this.height},this.tipBase2Position={x:c+p,y:this.height}):(this.tipBase1Position={x:0,y:this.height-c},this.tipBase2Position={x:0,y:this.height-c-p})},o.prototype.resize=function(a){d.prototype.resize.call(this,a),this.positionTip()},o.prototype.positionTip=function(){F.setAttributes(this.tip,[["points",this.getTipPoints()]]);var a=this.tipGrip.visual.transform.baseVal.getItem(0);a.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(a,0)},Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),o.prototype.select=function(){this.positionTip(),d.prototype.select.call(this)},o.prototype.getState=function(){var a=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},d.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){var c=a;this.bgColor=c.bgColor,this.tipPosition=c.tipPosition,d.prototype.restoreState.call(this,a),this.createTip(),this.setTipPoints()},o.prototype.scale=function(a,c){d.prototype.scale.call(this,a,c),this.tipPosition={x:this.tipPosition.x*a,y:this.tipPosition.y*c},this.positionTip()},o.typeName="CalloutMarker",o.title="Callout marker",o.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',o}(Ze),Ce=function(d){function o(a,c,p){var h=d.call(this,a,c,p)||this;return h.fillColor="transparent",h.strokeColor="transparent",h.strokeWidth=0,h.strokeDasharray="",h.opacity=1,h.strokeColor=p.defaultColor,h.strokeWidth=p.defaultStrokeWidth,h.strokeDasharray=p.defaultStrokeDasharray,h.fillColor=p.defaultFillColor,h.setStrokeColor=h.setStrokeColor.bind(h),h.setFillColor=h.setFillColor.bind(h),h.setStrokeWidth=h.setStrokeWidth.bind(h),h.setStrokeDasharray=h.setStrokeDasharray.bind(h),h.setOpacity=h.setOpacity.bind(h),h.createVisual=h.createVisual.bind(h),h.strokePanel=new Ue("Line color",Ee(p.defaultColorSet,["transparent"]),p.defaultColor),h.strokePanel.onColorChanged=h.setStrokeColor,h.fillPanel=new Ue("Fill color",Ee(p.defaultColorSet,["transparent"]),h.fillColor,Z),h.fillPanel.onColorChanged=h.setFillColor,h.strokeWidthPanel=new Lt("Line width",p.defaultStrokeWidths,p.defaultStrokeWidth),h.strokeWidthPanel.onWidthChanged=h.setStrokeWidth,h.strokeStylePanel=new mt("Line style",p.defaultStrokeDasharrays,p.defaultStrokeDasharray),h.strokeStylePanel.onStyleChanged=h.setStrokeDasharray,h.opacityPanel=new D("Opacity",p.defaultOpacitySteps,h.opacity),h.opacityPanel.onOpacityChanged=h.setOpacity,h}return nt(o,d),o.prototype.ownsTarget=function(a){return!(!d.prototype.ownsTarget.call(this,a)&&a!==this.visual)},o.prototype.createVisual=function(){this.visual=F.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},o.prototype.pointerDown=function(a,c){d.prototype.pointerDown.call(this,a,c),this.state==="new"&&(this.createVisual(),this.moveVisual(a),this._state="creating")},o.prototype.manipulate=function(a){d.prototype.manipulate.call(this,a)},o.prototype.resize=function(a){d.prototype.resize.call(this,a),this.setSize()},o.prototype.setSize=function(){d.prototype.setSize.call(this),F.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},o.prototype.pointerUp=function(a){d.prototype.pointerUp.call(this,a),this.setSize()},o.prototype.setStrokeColor=function(a){this.strokeColor=a,this.visual&&F.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(a),this.stateChanged()},o.prototype.setFillColor=function(a){this.fillColor=a,this.visual&&F.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(a),this.stateChanged()},o.prototype.setStrokeWidth=function(a){this.strokeWidth=a,this.visual&&F.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},o.prototype.setStrokeDasharray=function(a){this.strokeDasharray=a,this.visual&&F.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},o.prototype.setOpacity=function(a){this.opacity=a,this.visual&&F.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},d.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){var c=a;this.fillColor=c.fillColor,this.strokeColor=c.strokeColor,this.strokeWidth=c.strokeWidth,this.strokeDasharray=c.strokeDasharray,this.opacity=c.opacity,this.createVisual(),d.prototype.restoreState.call(this,a),this.setSize()},o.prototype.scale=function(a,c){d.prototype.scale.call(this,a,c),this.setSize()},o.typeName="EllipseMarker",o.title="Ellipse marker",o.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',o}(ot),Ve=function(d){function o(a,c,p){return d.call(this,a,c,p)||this}return nt(o,d),Object.defineProperty(o.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),o.prototype.ownsTarget=function(a){return!(!d.prototype.ownsTarget.call(this,a)&&a!==this.tip1&&a!==this.tip2)},o.prototype.createTips=function(){this.tip1=F.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(F.createTransform()),this.visual.appendChild(this.tip1),this.tip2=F.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(F.createTransform()),this.visual.appendChild(this.tip2)},o.prototype.pointerDown=function(a,c){d.prototype.pointerDown.call(this,a,c),this.state==="creating"&&this.createTips()},o.prototype.adjustVisual=function(){if(d.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(F.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),F.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var a=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),c=this.tip1.transform.baseVal.getItem(0);c.setRotate(a,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(c,0);var p=this.tip2.transform.baseVal.getItem(0);p.setRotate(a+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(p,0)}},Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=d.prototype.getState.call(this);return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){d.prototype.restoreState.call(this,a),this.createTips(),this.adjustVisual()},o.typeName="MeasurementMarker",o.title="Measurement marker",o.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',o}(yt),vt=function(d){function o(a,c,p){var h=d.call(this,a,c,p)||this;return h.strokePanel.colors=p.defaultColorSet,h.fillColor="transparent",h}return nt(o,d),Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=d.prototype.getState.call(this);return a.typeName=o.typeName,a},o.typeName="EllipseFrameMarker",o.title="Ellipse frame marker",o.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',o}(Ce),bt=function(){function d(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(d.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),d.prototype.addUndoStep=function(o){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(o)||(this.undoStack.push(o),JSON.stringify(this.lastRedoStep)!==JSON.stringify(o)&&this.redoStack.splice(0,this.redoStack.length))},d.prototype.replaceLastUndoStep=function(o){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=o)},d.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},d.prototype.undo=function(){if(this.undoStack.length>1){var o=this.undoStack.pop();return o!==void 0&&this.redoStack.push(o),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},d.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},d}(),ft=function(d){function o(a,c,p){var h=d.call(this,a,c,p)||this;return h.strokeColor="transparent",h.strokeWidth=0,h.strokeDasharray="",h.curveX=0,h.curveY=0,h.manipulationStartCurveX=0,h.manipulationStartCurveY=0,h.setStrokeColor=h.setStrokeColor.bind(h),h.setStrokeWidth=h.setStrokeWidth.bind(h),h.setStrokeDasharray=h.setStrokeDasharray.bind(h),h.positionGrips=h.positionGrips.bind(h),h.addControlGrips=h.addControlGrips.bind(h),h.adjustVisual=h.adjustVisual.bind(h),h.setupControlBox=h.setupControlBox.bind(h),h.resize=h.resize.bind(h),h.strokeColor=p.defaultColor,h.strokeWidth=p.defaultStrokeWidth,h.strokeDasharray=p.defaultStrokeDasharray,h.strokePanel=new Ue("Line color",p.defaultColorSet,p.defaultColor),h.strokePanel.onColorChanged=h.setStrokeColor,h.strokeWidthPanel=new Lt("Line width",p.defaultStrokeWidths,p.defaultStrokeWidth),h.strokeWidthPanel.onWidthChanged=h.setStrokeWidth,h.strokeStylePanel=new mt("Line style",p.defaultStrokeDasharrays,p.defaultStrokeDasharray),h.strokeStylePanel.onStyleChanged=h.setStrokeDasharray,h}return nt(o,d),o.prototype.ownsTarget=function(a){return!(!d.prototype.ownsTarget.call(this,a)&&a!==this.visual&&a!==this.selectorCurve&&a!==this.visibleCurve&&!this.curveGrip.ownsTarget(a))},o.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},o.prototype.createVisual=function(){this.visual=F.createGroup(),this.selectorCurve=F.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=F.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},o.prototype.pointerDown=function(a,c){d.prototype.pointerDown.call(this,a,c),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=a.x,this.curveY=a.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(c)&&(this.activeGrip=this.curveGrip,this._state="resize")},o.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),F.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),F.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),F.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},o.prototype.setupControlBox=function(){d.prototype.setupControlBox.call(this),this.curveControlLine1=F.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=F.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},o.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,d.prototype.addControlGrips.call(this)},o.prototype.positionGrips=function(){d.prototype.positionGrips.call(this);var a=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-a/2,this.curveY-a/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},o.prototype.manipulate=function(a){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+a.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+a.y-this.manipulationStartY),d.prototype.manipulate.call(this,a)},o.prototype.resize=function(a){this.activeGrip===this.curveGrip&&(this.curveX=a.x,this.curveY=a.y),d.prototype.resize.call(this,a),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},o.prototype.setStrokeColor=function(a){this.strokeColor=a,this.adjustVisual(),this.colorChanged(a)},o.prototype.setStrokeWidth=function(a){this.strokeWidth=a,this.adjustVisual()},o.prototype.setStrokeDasharray=function(a){this.strokeDasharray=a,this.adjustVisual()},o.prototype.scale=function(a,c){this.curveX=this.curveX*a,this.curveY=this.curveY*c,d.prototype.scale.call(this,a,c)},Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},d.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){d.prototype.restoreState.call(this,a);var c=a;this.strokeColor=c.strokeColor,this.strokeWidth=c.strokeWidth,this.strokeDasharray=c.strokeDasharray,this.curveX=c.curveX,this.curveY=c.curveY,this.createVisual(),this.adjustVisual()},o.typeName="CurveMarker",o.title="Curve marker",o.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',o}(ht),_t=function(){function d(o,a){a===void 0&&(a=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=o,this.cancelable=a}return Object.defineProperty(d.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),d.prototype.preventDefault=function(){this._defaultPrevented=!0},d}(),Bt=function(d){function o(a,c,p){var h=d.call(this,a,!1)||this;return h.dataUrl=c,h.state=p,h}return nt(o,d),o}(_t),ut=function(d){function o(a,c,p){p===void 0&&(p=!1);var h=d.call(this,a,p)||this;return h.marker=c,h}return nt(o,d),o}(_t),ln=function(){function d(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return d.prototype.addEventListener=function(o,a){this[o].push(a)},d.prototype.removeEventListener=function(o,a){var c=this[o].indexOf(a);c>-1&&this[o].splice(c,1)},d}(),qt=function(){function d(o){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Le,this._isOpen=!1,this.undoRedoManager=new bt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new ln,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=d.instanceCounter++,this.styles=new Ct(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=o,this.targetRoot=document.body,this.width=o.clientWidth,this.height=o.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(d.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ot,se,oe,Ze,vt,Ce,z,Te,Ve,M,yt,ft]},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ot,se,oe,Ze,Ce,z,Te]},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ot,se,oe,Ze,z]},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(o){var a=this;this._availableMarkerTypes.splice(0),o.forEach(function(c){if(typeof c=="string"){var p=a.ALL_MARKER_TYPES.find(function(h){return h.typeName===c});p!==void 0&&a._availableMarkerTypes.push(p)}else a._availableMarkerTypes.push(c)})},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(o){this._zoomLevel=o,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),d.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),it.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},d.prototype.show=function(){var o=this;this.styles.styleSheetRoot===void 0&&Tt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Tt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(a){return a(new _t(o))})},d.prototype.render=function(){return Je(this,void 0,void 0,function(){var o;return Ye(this,function(a){switch(a.label){case 0:return this.setCurrentMarker(),(o=new Mt).naturalSize=this.renderAtNaturalSize,o.imageType=this.renderImageType,o.imageQuality=this.renderImageQuality,o.markersOnly=this.renderMarkersOnly,o.width=this.renderWidth,o.height=this.renderHeight,[4,o.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return a.sent(),[4,o.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,a.sent()]}})})},d.prototype.close=function(o){var a=this;if(o===void 0&&(o=!1),this.isOpen){var c=!1;o||this.eventListeners.beforeclose.forEach(function(p){var h=new _t(a,!0);p(h),h.defaultPrevented&&(c=!0)}),c||(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(p){return p(new _t(a))}),this.detachEvents(),this._isOpen=!1)}},d.prototype.addMarkersToToolbar=function(){for(var o,a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];(o=this._availableMarkerTypes).push.apply(o,a)},d.prototype.addRenderEventListener=function(o){this.addEventListener("render",function(a){o(a.dataUrl,a.state)})},d.prototype.removeRenderEventListener=function(o){},d.prototype.addCloseEventListener=function(o){this.addEventListener("close",function(){o()})},d.prototype.removeCloseEventListener=function(o){},d.prototype.setupResizeObserver=function(){var o=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){o.resize(o.target.clientWidth,o.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return o.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},d.prototype.onPopupTargetResize=function(){var o=1*this.target.clientWidth/this.target.clientHeight,a=this.editorCanvas.clientWidth/o>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*o:this.editorCanvas.clientWidth,c=a<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/o;this.resize(a,c)},d.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},d.prototype.resize=function(o,a){this._isResizing=!0;var c=o/this.imageWidth,p=a/this.imageHeight;this.imageWidth=Math.round(o),this.imageHeight=Math.round(a),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(c,p),this._isResizing=!1},d.prototype.scaleMarkers=function(o,a){var c,p=this;this._currentMarker&&this._currentMarker instanceof Ze?this._currentMarker.scale(o,a):(c=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(h){h!==p._currentMarker&&h.scale(o,a)}),c!==void 0&&this.setCurrentMarker(c)},d.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},d.prototype.setTopLeft=function(){var o=this.editingTarget.getBoundingClientRect(),a=this.editorCanvas.getBoundingClientRect();this.left=o.left-a.left,this.top=o.top-a.top},d.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},d.prototype.addDefs=function(){for(var o,a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];this.defs=F.createDefs(),this.addDefsToImage(),(o=this.defs).append.apply(o,a)},d.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},d.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},d.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},d.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},d.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},d.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},d.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},d.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var o=document.createElement("a");o.href="https://markerjs.com/",o.target="_blank",o.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',o.title="Powered by marker.js",o.style.display="grid",o.style.alignItems="center",o.style.justifyItems="center",o.style.padding="3px",o.style.width="20px",o.style.height="20px",this.logoUI.appendChild(o),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},d.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},d.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},d.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},d.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var o=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=o+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Ae(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.target.getClientRects().item(0).y<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Pe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},d.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},d.prototype.removeMarker=function(o){this.markerImage.removeChild(o.container),this.markers.indexOf(o)>-1&&this.markers.splice(this.markers.indexOf(o),1),o.dispose()},d.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},d.prototype.toolbarButtonClicked=function(o,a){if(o==="marker"&&a!==void 0)this.createNewMarker(a);else if(o==="action")switch(a){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},d.prototype.deleteSelectedMarker=function(){var o=this;if(this._currentMarker!==void 0){var a=!1;if(this.eventListeners.markerbeforedelete.forEach(function(p){var h=new ut(o,o._currentMarker,!0);p(h),h.defaultPrevented&&(a=!0)}),!a){var c=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(p){return p(new ut(o,c))})}}},d.prototype.clear=function(){var o=this,a=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(te){var Ke=new ut(o,void 0,!0);te(Ke),Ke.defaultPrevented&&(a=!0)}),!a)){this.setCurrentMarker();for(var c=function(te){var Ke=p.markers[te];p.setCurrentMarker(p.markers[te]),p._currentMarker.dispose(),p.markerImage.removeChild(p._currentMarker.container),p.markers.splice(p.markers.indexOf(p._currentMarker),1),p.eventListeners.markerdelete.forEach(function(gt){return gt(new ut(o,Ke))})},p=this,h=this.markers.length-1;h>=0;h--)c(h);this.addUndoStep()}},Object.defineProperty(d.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),d.prototype.showNotesEditor=function(){var o;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(o=this._currentMarker.notes)!==null&&o!==void 0?o:"",this.overlayContainer.appendChild(this.notesArea))},d.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},d.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},d.prototype.addUndoStep=function(){var o=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var a=this.getState(),c=this.undoRedoManager.getLastUndoStep();if(!c||c.width===a.width&&c.height===a.height){var p=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(a),p<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(h){return h(new _t(o))})}else this.undoRedoManager.replaceLastUndoStep(a),this.eventListeners.statechange.forEach(function(h){return h(new _t(o))})}},d.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},d.prototype.undoStep=function(){var o=this,a=this.undoRedoManager.undo();a!==void 0&&(this.restoreState(a),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(c){return c(new _t(o))}))},d.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},d.prototype.redoStep=function(){var o=this,a=this.undoRedoManager.redo();a!==void 0&&(this.restoreState(a),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(c){return c(new _t(o))}))},d.prototype.stepZoom=function(){var o=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=o<this.zoomSteps.length-1?this.zoomSteps[o+1]:this.zoomSteps[0]},d.prototype.panTo=function(o){this.contentDiv.scrollBy({left:this.prevPanPoint.x-o.x,top:this.prevPanPoint.y-o.y}),this.prevPanPoint=o},d.prototype.startRenderAndClose=function(){return Je(this,void 0,void 0,function(){var o,a,c=this;return Ye(this,function(p){switch(p.label){case 0:return[4,this.render()];case 1:return o=p.sent(),a=this.getState(),this.eventListeners.render.forEach(function(h){return h(new Bt(c,o,a))}),this.close(!0),[2]}})})},d.prototype.getState=function(o){o===!0&&this.setCurrentMarker();var a={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(c){return a.markers.push(c.getState())}),a},d.prototype.restoreState=function(o){var a=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);o.markers.forEach(function(c){var p=a._availableMarkerTypes.find(function(te){return te.typeName===c.typeName});if(p!==void 0){var h=a.addNewMarker(p);h.restoreState(c),a.markers.push(h)}}),o.width&&o.height&&(o.width!==this.imageWidth||o.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/o.width,this.imageHeight/o.height),this.eventListeners.restorestate.forEach(function(c){return c(new _t(a))})},d.prototype.addNewMarker=function(o){var a=F.createGroup();return this.markerImage.appendChild(a),new o(a,this.overlayContainer,this.settings)},d.prototype.createNewMarker=function(o){var a,c=this;(a=typeof o=="string"?this._availableMarkerTypes.find(function(p){return p.typeName===o}):o)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(a),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(a.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(p){return p(new ut(c,c._currentMarker))}))},d.prototype.markerCreated=function(o){var a=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(o),this.setCurrentMarker(o),o instanceof se&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(se):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(c){return c(new ut(a,a._currentMarker))})},d.prototype.colorChanged=function(o){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=o,this.settings.defaultStrokeColor=o)},d.prototype.fillColorChanged=function(o){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=o)},d.prototype.markerStateChanged=function(o){var a=this;this.eventListeners.markerchange.forEach(function(c){return c(new ut(a,o))})},d.prototype.setCurrentMarker=function(o){var a=this;this._currentMarker!==o&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(c){return c(new ut(a,a._currentMarker))})),this._currentMarker=o,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(c){return c(new ut(a,a._currentMarker))}))},d.prototype.onPointerDown=function(o){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||o.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var a=this.markers.find(function(c){return c.ownsTarget(o.target)});a!==void 0?(this.setCurrentMarker(a),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(o.clientX,o.clientY),o.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:o.clientX,y:o.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(o.clientX,o.clientY))},d.prototype.onDblClick=function(o){if(this._isFocused||this.focus(),this.mode==="select"){var a=this.markers.find(function(c){return c.ownsTarget(o.target)});a!==void 0&&a!==this._currentMarker&&this.setCurrentMarker(a),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(o.clientX,o.clientY),o.target):this.setCurrentMarker()}},d.prototype.onPointerMove=function(o){this.touchPoints!==1&&o.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||o.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(o.clientX,o.clientY)):this.zoomLevel>1&&this.panTo({x:o.clientX,y:o.clientY}))},d.prototype.onPointerUp=function(o){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(o.clientX,o.clientY)),this.isDragging=!1,this.addUndoStep()},d.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},d.prototype.onKeyUp=function(o){this._currentMarker===void 0||this.notesArea!==void 0||o.key!=="Delete"&&o.key!=="Backspace"||this.deleteSelectedMarker()},d.prototype.clientToLocalCoordinates=function(o,a){var c=this.markerImage.getBoundingClientRect();return{x:(o-c.left)/this.zoomLevel,y:(a-c.top)/this.zoomLevel}},d.prototype.onWindowResize=function(){this.positionUI()},d.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var o=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=o+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},d.prototype.addLicenseKey=function(o){it.addKey(o)},d.prototype.addEventListener=function(o,a){this.eventListeners.addEventListener(o,a)},d.prototype.removeEventListener=function(o,a){this.eventListeners.removeEventListener(o,a)},d.prototype.renderState=function(o){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(o),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(d.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),d.prototype.focus=function(){var o=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(a){return a(new _t(o))}))},d.prototype.blur=function(){var o=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(a){return a(new _t(o))}))},d.instanceCounter=0,d}();/* **********************************
cropro version 1.2.0
@license SEE LICENSE IN LICENSE
copyright Alan Mendelevich
see README and LICENSE for details
********************************** *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var lt=function(d,o){return(lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var p in c)Object.prototype.hasOwnProperty.call(c,p)&&(a[p]=c[p])})(d,o)};function mn(d,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function a(){this.constructor=d}lt(d,o),d.prototype=o===null?Object.create(o):(a.prototype=o.prototype,new a)}function Kt(d,o,a,c){return new(a||(a=Promise))(function(p,h){function te(Nt){try{gt(c.next(Nt))}catch(Xe){h(Xe)}}function Ke(Nt){try{gt(c.throw(Nt))}catch(Xe){h(Xe)}}function gt(Nt){var Xe;Nt.done?p(Nt.value):(Xe=Nt.value,Xe instanceof a?Xe:new a(function(kt){kt(Xe)})).then(te,Ke)}gt((c=c.apply(d,o||[])).next())})}function si(d,o){var a,c,p,h,te={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return h={next:Ke(0),throw:Ke(1),return:Ke(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function Ke(gt){return function(Nt){return function(Xe){if(a)throw new TypeError("Generator is already executing.");for(;te;)try{if(a=1,c&&(p=2&Xe[0]?c.return:Xe[0]?c.throw||((p=c.return)&&p.call(c),0):c.next)&&!(p=p.call(c,Xe[1])).done)return p;switch(c=0,p&&(Xe=[2&Xe[0],p.value]),Xe[0]){case 0:case 1:p=Xe;break;case 4:return te.label++,{value:Xe[1],done:!1};case 5:te.label++,c=Xe[1],Xe=[0];continue;case 7:Xe=te.ops.pop(),te.trys.pop();continue;default:if(!(p=te.trys,(p=p.length>0&&p[p.length-1])||Xe[0]!==6&&Xe[0]!==2)){te=0;continue}if(Xe[0]===3&&(!p||Xe[1]>p[0]&&Xe[1]<p[3])){te.label=Xe[1];break}if(Xe[0]===6&&te.label<p[1]){te.label=p[1],p=Xe;break}if(p&&te.label<p[2]){te.label=p[2],te.ops.push(Xe);break}p[2]&&te.ops.pop(),te.trys.pop();continue}Xe=o.call(d,te)}catch(kt){Xe=[6,kt],c=0}finally{a=p=0}if(5&Xe[0])throw Xe[1];return{value:Xe[0]?Xe[1]:void 0,done:!0}}([gt,Nt])}}}var li=function(){function d(){}return d.addKey=function(o){d.key=o},Object.defineProperty(d,"isLicensed",{get:function(){return!!d.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(d.key)},enumerable:!1,configurable:!0}),d}(),Ht=function(){function d(){}return d.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},d.setAttributes=function(o,a){for(var c=0,p=a;c<p.length;c++){var h=p[c],te=h[0],Ke=h[1];o.setAttribute(te,Ke)}},d.createRect=function(o,a,c){var p=document.createElementNS("http://www.w3.org/2000/svg","rect");return p.setAttribute("width",o.toString()),p.setAttribute("height",a.toString()),c&&d.setAttributes(p,c),p},d.createLine=function(o,a,c,p,h){var te=document.createElementNS("http://www.w3.org/2000/svg","line");return te.setAttribute("x1",o.toString()),te.setAttribute("y1",a.toString()),te.setAttribute("x2",c.toString()),te.setAttribute("y2",p.toString()),h&&d.setAttributes(te,h),te},d.createPolygon=function(o,a){var c=document.createElementNS("http://www.w3.org/2000/svg","polygon");return c.setAttribute("points",o),a&&d.setAttributes(c,a),c},d.createCircle=function(o,a){var c=document.createElementNS("http://www.w3.org/2000/svg","circle");return c.setAttribute("cx",(o/2).toString()),c.setAttribute("cy",(o/2).toString()),c.setAttribute("r",o.toString()),a&&d.setAttributes(c,a),c},d.createEllipse=function(o,a,c){var p=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return p.setAttribute("cx",(o/2).toString()),p.setAttribute("cy",(a/2).toString()),p.setAttribute("rx",(o/2).toString()),p.setAttribute("ry",(a/2).toString()),c&&d.setAttributes(p,c),p},d.createGroup=function(o){var a=document.createElementNS("http://www.w3.org/2000/svg","g");return o&&d.setAttributes(a,o),a},d.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},d.createMarker=function(o,a,c,p,h,te,Ke){var gt=document.createElementNS("http://www.w3.org/2000/svg","marker");return d.setAttributes(gt,[["id",o],["orient",a],["markerWidth",c.toString()],["markerHeight",p.toString()],["refX",h.toString()],["refY",te.toString()]]),gt.appendChild(Ke),gt},d.createText=function(o){var a=document.createElementNS("http://www.w3.org/2000/svg","text");return a.setAttribute("x","0"),a.setAttribute("y","0"),o&&d.setAttributes(a,o),a},d.createTSpan=function(o,a){var c=document.createElementNS("http://www.w3.org/2000/svg","tspan");return c.textContent=o,a&&d.setAttributes(c,a),c},d.createImage=function(o){var a=document.createElementNS("http://www.w3.org/2000/svg","image");return o&&d.setAttributes(a,o),a},d.createPoint=function(o,a){var c=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return c.x=o,c.y=a,c},d.createPath=function(o,a){var c=document.createElementNS("http://www.w3.org/2000/svg","path");return c.setAttribute("d",o),a&&d.setAttributes(c,a),c},d.createElement=function(o,a){var c=document.createElementNS("http://www.w3.org/2000/svg",o);return a&&d.setAttributes(c,a),c},d.getHollowRectanglePath=function(o,a,c,p,h,te,Ke,gt){return"M"+o+","+a+"V"+(a+p)+"H"+(o+c)+"V"+a+"H"+h+"V"+te+"H"+(h+Ke)+"V"+(te+gt)+"H"+h+"V"+a+"Z"},d}(),Wt=function(){function d(o){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+o+"_"}return Object.defineProperty(d.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#333333",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarBackgroundActiveColor:"#282828",toolbarColor:"#eeeeee",cropShadeColor:"#ffffff",cropFrameColor:"#ffffff",gripColor:"#333333",gripFillColor:"#cccccc",toolbarHeight:40}},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),d.prototype.addClass=function(o){return this.styleSheet===void 0&&this.addStyleSheet(),o.name=""+this.classNamePrefix+o.localName,this.classes.push(o),this.styleSheet.sheet.insertRule("."+o.name+" {"+o.style+"}",this.styleSheet.sheet.cssRules.length),o},d.prototype.addRule=function(o){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(o),this.styleSheet.sheet.insertRule(o.selector+" {"+o.style+"}",this.styleSheet.sheet.cssRules.length)},d.prototype.addStyleSheet=function(){var o;this.styleSheet=document.createElement("style"),((o=this.styleSheetRoot)!==null&&o!==void 0?o:document.head).appendChild(this.styleSheet),this.addRule(new At("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new At("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new At("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Ft("_fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Ft("_fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},d.prototype.removeStyleSheet=function(){var o;this.styleSheet&&(((o=this.styleSheetRoot)!==null&&o!==void 0?o:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},d}(),At=function(d,o){this.selector=d,this.style=o},Ft=function(d,o){this.localName=d,this.style=o},Sn=function(){function d(){this.blocks=[],this.display=""}return d.prototype.addButtonBlock=function(o){o.className=this.blockClassName,o.buttonClassName=this.buttonClassName,o.buttonColorsClassName=this.buttonColorsClassName,o.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(o)},d.prototype.addElementBlock=function(o){o.className===void 0&&(o.className=this.blockClassName),this.blocks.push(o)},d.prototype.getUI=function(){var o=document.createElement("div");return o.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,o.style.display=this.display,this.blocks.forEach(function(a){return o.appendChild(a.getUI())}),o},d}(),Bn=function(){function d(){}return d.prototype.getUI=function(){var o=document.createElement("div");if(o.className=this.className,this.minWidth!==void 0&&(o.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":o.style.justifyContent="flex-start";break;case"center":o.style.justifyContent="center";break;case"end":o.style.justifyContent="flex-end"}return o.style.whiteSpace="nowrap",o},d}(),zn=function(d){function o(){var a=d!==null&&d.apply(this,arguments)||this;return a.buttons=[],a}return mn(o,d),o.prototype.addButton=function(a){a.className=this.buttonClassName,a.colorsClassName=this.buttonColorsClassName,a.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(a)},o.prototype.getUI=function(){var a=d.prototype.getUI.call(this);return this.buttons.forEach(function(c){return a.appendChild(c.getUI())}),a},o}(Bn),nn=function(){function d(o,a){this._isActive=!1,this._isHidden=!1,this._icon=o,this.title=a,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(d.prototype,"icon",{get:function(){return this._icon},set:function(o){this._icon=o,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isActive",{get:function(){return this._isActive},set:function(o){this._isActive=o,this.adjustClassName()},enumerable:!1,configurable:!0}),d.prototype.getUI=function(){var o=this;return this.buttonContainer=document.createElement("div"),this.buttonContainer.title=this.title,this.buttonContainer.className=this.className+" "+this.colorsClassName,this.adjustClassName(),this.buttonContainer.innerHTML=this._icon,this.onClick&&this.buttonContainer.addEventListener("click",function(){return o.onClick()}),this.uiContainer.appendChild(this.buttonContainer),this.uiContainer.style.display=this._isHidden?"none":"inline-block",this.uiContainer},d.prototype.adjustClassName=function(){this.activeColorsClassName&&(this._isActive&&this.buttonContainer.className.indexOf(this.activeColorsClassName)<0?this.buttonContainer.className+=" "+this.activeColorsClassName:this._isActive||(this.buttonContainer.className=this.buttonContainer.className.replace(this.activeColorsClassName,"")))},d.prototype.hide=function(){this._isHidden=!0},d}(),It=function(d){function o(){var a=d!==null&&d.apply(this,arguments)||this;return a.elements=[],a}return mn(o,d),o.prototype.addElement=function(a){this.elements.push(a)},o.prototype.getUI=function(){var a=d.prototype.getUI.call(this);return this.elements.forEach(function(c){return a.appendChild(c)}),a},o}(Bn),Mi=function(){function d(o,a){this.horizontal=o,this.vertical=a}return Object.defineProperty(d.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),d.prototype.getVerticalLength=function(o){return o/this.ratio},d.prototype.getHorizontalLength=function(o){return o*this.ratio},d}(),wi=function(){function d(){}return d.getIcon=function(o,a){if(o>0&&a>0){var c=new Mi(o,a),p=c.ratio>=1?20:c.getHorizontalLength(20),h=c.ratio<1?20:c.getVerticalLength(20),te=document.createElementNS("http://www.w3.org/2000/svg","svg");te.setAttribute("xmlns","http://www.w3.org/2000/svg"),te.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(te);var Ke=Ht.createDefs();te.appendChild(Ke);var gt=Ht.createElement("clipPath",[["id","text-bg-clip"]]);Ke.appendChild(gt);var Nt=Ht.createPath(Ht.getHollowRectanglePath((24-p)/2,(24-h)/2,p,h,(24-p)/2+2,(24-h)/2+2,p-4,h-4));te.appendChild(Nt);var Xe=Ht.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Xe.appendChild(Ht.createTSpan(o+":"+a)),te.appendChild(Xe);var kt=Xe.getBBox();Ht.setAttributes(Xe,[["x",((24-kt.width)/2).toString()],["y",((24-kt.height)/2-kt.y).toString()]]);var Rt=Ht.createPath(Ht.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(kt.width))/2,(24-Math.ceil(kt.height))/2,Math.ceil(kt.width),Math.ceil(kt.height)));return gt.appendChild(Rt),Ht.setAttributes(Nt,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(te),te.outerHTML}return'<svg viewBox="0 0 24 24"><path d="M19 12h-2v3h-3v2h5v-5M7 9h3V7H5v5h2V9m14-6H3a2 2 0 00-2 2v14a2 2 0 002 2h18a2 2 0 002-2V5a2 2 0 00-2-2m0 16H3V5h18v14z"/></svg>'},d}(),_n=function(d){function o(a,c,p){var h=d.call(this,a,c)||this;return h.isDropdownOpen=!1,h.onClick=h.dropdownButtonClicked,h.dropdownButtons=p,h}return mn(o,d),o.prototype.setupDropdown=function(){var a=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(c){c.className=a.className,c.colorsClassName=a.colorsClassName,a.dropdownBlock.appendChild(c.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},o.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},o.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},o.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},o.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},o.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},o}(nn),Vt=function(){function d(o,a){this.GRIP_SIZE=10,this.color=o,this.fillColor=a,this.visual=Ht.createGroup(),this.visual.appendChild(Ht.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ht.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return d.prototype.ownsTarget=function(o){return o===this.visual||o===this.visual.childNodes[0]||o===this.visual.childNodes[1]},d.prototype.setCenter=function(o,a){this.visual.childNodes.forEach(function(c){return Ht.setAttributes(c,[["cx",o.toString()],["cy",a.toString()]])})},d}(),bn=function(){function d(o,a,c,p){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=o,this.canvasHeight=a,this.margin=c,this.container=p,this.attachEvents=this.attachEvents.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.resize=this.resize.bind(this),this.adjustCropRect=this.adjustCropRect.bind(this),this.scaleCanvas=this.scaleCanvas.bind(this),this.getRescaledRect=this.getRescaledRect.bind(this)}return Object.defineProperty(d.prototype,"aspectRatio",{get:function(){return this._aspectRatio},set:function(o){this._aspectRatio=o,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(o){this._isGridVisible=o,this.gridContainer&&Ht.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(o){this._zoomFactor=o,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),d.prototype.open=function(){var o=this;this.cropShadeElement=Ht.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=Ht.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var a=0;a<this.numberOfGridLines;a++)this.horizontalGridLines.push(Ht.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(Ht.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(c){return o.gridContainer.appendChild(c)}),this.verticalGridLines.forEach(function(c){return o.gridContainer.appendChild(c)}),this.cropRectElement=Ht.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new Vt(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new Vt(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new Vt(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new Vt(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},d.prototype.setCropRectangle=function(o){this.cropRect=o;var a=Object.assign({},this.cropRect);this.zoomFactor!==1&&(a.width=this.cropRect.width*this.zoomFactor,a.height=this.cropRect.height*this.zoomFactor,a.x=this.cropRect.height/this.cropRect.width<this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasWidth/2-a.width/2,a.y=this.cropRect.height/this.cropRect.width>this.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-a.height/2),Ht.setAttributes(this.cropRectElement,[["x",a.x.toString()],["y",a.y.toString()],["width",a.width.toString()],["height",a.height.toString()]]);var c=a.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(h,te){var Ke=a.y+c*(te+1);Ht.setAttributes(h,[["x1",""+a.x],["y1",""+Ke],["x2",""+(a.x+a.width)],["y2",""+Ke]])});var p=a.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(h,te){var Ke=a.x+p*(te+1);Ht.setAttributes(h,[["x1",""+Ke],["y1",""+a.y],["x2",""+Ke],["y2",""+(a.y+a.height)]])}),Ht.setAttributes(this.cropShadeElement,[["d",Ht.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,a.x,a.y,a.width,a.height)]]),this.topLeftGrip.setCenter(a.x,a.y),this.topRightGrip.setCenter(a.x+a.width,a.y),this.bottomLeftGrip.setCenter(a.x,a.y+a.height),this.bottomRightGrip.setCenter(a.x+a.width,a.y+a.height),this.cropRectChanged&&this.onCropChange&&(this.cropRectChanged=!1,this.onCropChange(this.cropRect)),this.cropRectChanged=!1},d.prototype.attachEvents=function(){this.container.style.touchAction="none",this.container.addEventListener("pointerdown",this.onPointerDown),this.container.addEventListener("pointermove",this.onPointerMove),this.container.addEventListener("pointerup",this.onPointerUp)},d.prototype.clientToLocalCoordinates=function(o,a){var c=this.container.getBoundingClientRect();return{x:o-c.left+this.margin,y:a-c.top+this.margin}},d.prototype.onPointerDown=function(o){this.container.setPointerCapture(o.pointerId),this.previousPoint=this.clientToLocalCoordinates(o.clientX,o.clientY),this.cropRectElement===o.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(o.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(o.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(o.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(o.target)&&(this.activeGrip=this.bottomRightGrip)},d.prototype.onPointerMove=function(o){if(this.isMoving)this.move(this.clientToLocalCoordinates(o.clientX,o.clientY));else if(this.activeGrip){var a=this.clientToLocalCoordinates(o.clientX,o.clientY);this.resize(a)}o.preventDefault()},d.prototype.onPointerUp=function(o){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(o.pointerId)},d.prototype.move=function(o){var a=o.x-this.previousPoint.x,c=o.y-this.previousPoint.y;this.zoomFactor!==1&&(a=-a/this.zoomFactor,c=-c/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+a),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+c),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=o},d.prototype.resize=function(o){var a=Object.assign({},this.cropRect),c=o.x-this.previousPoint.x,p=o.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:a.x+c<this.margin&&(c=this.margin-a.x),a.x+=c,a.width=this.cropRect.x+this.cropRect.width-a.x;break;case this.bottomRightGrip:case this.topRightGrip:a.width+c>this.canvasWidth*this.zoomFactor&&(c=this.canvasWidth*this.zoomFactor-a.width),a.width+=c}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(a.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(c),a.height=this.aspectRatio.getVerticalLength(a.width)):(a.y+=p,a.height=this.cropRect.y+this.cropRect.height-a.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?a.height=this.aspectRatio.getVerticalLength(a.width):a.height+=p}a.width<10&&(a.x=this.cropRect.x,a.width=10),a.height<10&&(a.y=this.cropRect.y,a.height=10),this.previousPoint=o,a.x>=this.margin&&a.y>=this.margin&&a.x-this.margin+a.width<=this.canvasWidth&&a.y-this.margin+a.height<=this.canvasHeight&&(this.cropRect=a,this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect))},d.prototype.adjustCropRect=function(){if(this.aspectRatio&&Math.round(this.cropRect.height)!==Math.round(this.aspectRatio.getVerticalLength(this.cropRect.width))){var o=this.cropRect.x+this.cropRect.width/2,a=this.cropRect.y+this.cropRect.height/2,c=this.aspectRatio.getHorizontalLength(this.cropRect.height),p=this.aspectRatio.getVerticalLength(this.cropRect.width);c/this.canvasWidth<p/this.canvasHeight?this.cropRect.width=c:this.cropRect.height=p,this.cropRect.width>this.canvasWidth&&(this.cropRect.height/=this.cropRect.width/this.canvasWidth,this.cropRect.width=this.canvasWidth),this.cropRect.height>this.canvasHeight&&(this.cropRect.width/=this.cropRect.height/this.canvasHeight,this.cropRect.height=this.canvasHeight),this.cropRect.x=o-this.cropRect.width/2,this.cropRect.y=a-this.cropRect.height/2,this.cropRect.x+this.cropRect.width>this.margin+this.canvasWidth&&(this.cropRect.x=this.margin+this.canvasWidth-this.cropRect.width),this.cropRect.y+this.cropRect.height>this.margin+this.canvasHeight&&(this.cropRect.y=this.margin+this.canvasHeight-this.cropRect.height),this.cropRect.x=Math.max(this.cropRect.x,this.margin),this.cropRect.y=Math.max(this.cropRect.y,this.margin)}},d.prototype.getRescaledRect=function(o,a,c,p,h,te){var Ke=c/o,gt=p/a;return{x:(h.x-te)*Ke+te,y:(h.y-te)*gt+te,width:h.width*Ke,height:h.height*gt}},d.prototype.scaleCanvas=function(o,a){var c=this.getRescaledRect(this.canvasWidth,this.canvasHeight,o,a,this.cropRect,this.margin);this.canvasWidth=o,this.canvasHeight=a,this.onCropChange&&this.onCropChange(c),this.setCropRectangle(c)},d}(),rn=function(){function d(o){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=o,this.uiContainer=document.createElement("div"),this.getUI=this.getUI.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.setAngleLabel=this.setAngleLabel.bind(this),this.positionScaleShape=this.positionScaleShape.bind(this)}return Object.defineProperty(d.prototype,"angle",{get:function(){return this._angle},set:function(o){this._angle=o,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),d.prototype.getUI=function(){return this.controlContainer=document.createElement("div"),this.controlContainer.title=this.title,this.controlContainer.className=this.className+" "+this.colorsClassName,this.controlContainer.appendChild(this.getVisual()),this.controlContainer.addEventListener("pointerdown",this.onPointerDown),this.controlContainer.addEventListener("pointermove",this.onPointerMove),this.controlContainer.addEventListener("pointerup",this.onPointerUp),this.uiContainer.appendChild(this.controlContainer),this.uiContainer.style.display="inline-block",this.uiContainer.style.touchAction="none",this.setAngleLabel(),this.positionScaleShape(),this.uiContainer},d.prototype.onPointerDown=function(o){this.controlContainer.setPointerCapture(o.pointerId),this.isDragging=!0,this.previousPoint={x:o.clientX,y:o.clientY}},d.prototype.onPointerMove=function(o){this.isDragging&&(this.onAngleChange&&this.onAngleChange((o.clientX-this.previousPoint.x)/5),this.previousPoint.x=o.clientX)},d.prototype.onPointerUp=function(o){this.isDragging&&this.onAngleChange&&this.onAngleChange((o.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(o.pointerId)},d.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var o=this.angleLabelText.getBBox();Ht.setAttributes(this.angleLabelElement,[["x",((this.width-o.width)/2).toString()],["y",(this.height/2).toString()]])}},d.prototype.positionScaleShape=function(){if(this.scaleShape){var o=this.scaleShape.transform.baseVal.getItem(0);o.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(o,0)}},d.prototype.getVisual=function(){var o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("width",this.width+"px"),o.setAttribute("height",this.height+"px"),o.setAttribute("viewBox","0 0 "+this.width+" "+this.height),o.style.flexShrink="0",document.body.appendChild(o);for(var a="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,c=1;c<=this.width/5+10;c++){var p=c%5==0?this.height/3:this.height/6;a+="h4v"+-p+"h1v"+p}a+="v1H0Z",this.scaleShape=Ht.createPath(a);var h=Ht.createTransform();this.scaleShape.transform.baseVal.appendItem(h),o.appendChild(this.scaleShape),this.angleLabelElement=Ht.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=Ht.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var te=Ht.createTSpan("");return te.innerHTML="&deg;",this.angleLabelElement.appendChild(te),o.appendChild(this.angleLabelElement),document.body.removeChild(o),o},d}(),gn=function(){function d(){this.naturalSize=!1,this.imageType="image/png"}return d.prototype.rasterize=function(o,a,c,p,h,te,Ke){var gt=this;return new Promise(function(Nt){var Xe=document.createElement("canvas");Xe.width=o.width.baseVal.value-2*p,Xe.height=o.height.baseVal.value-2*p;var kt=1,Rt=1;gt.naturalSize===!0?(kt=a.naturalWidth/(o.width.baseVal.value-2*p)/te,Rt=a.naturalHeight/(o.height.baseVal.value-2*p)/Ke,Xe.width=a.naturalWidth/te,Xe.height=a.naturalHeight/Ke):gt.width!==void 0&&gt.height!==void 0&&(kt=gt.width/c.width,Rt=gt.height/c.height,Xe.width*=kt,Xe.height*=Rt);var jt=Xe.getContext("2d");jt.translate(Xe.width/2,Xe.height/2),jt.rotate(h*Math.PI/180),jt.scale(te,Ke),jt.translate(-Xe.width/2,-Xe.height/2),jt.drawImage(a,0,0,Xe.width,Xe.height);var un=document.createElement("canvas");un.width=c.width*kt,un.height=c.height*Rt,un.getContext("2d").putImageData(jt.getImageData((c.x-p)*kt,(c.y-p)*Rt,c.width*kt,c.height*Rt),0,0),Nt(un.toDataURL(gt.imageType,gt.imageQuality))})},d}(),Ne=function(){function d(o){this._zoomToCropEnabled=!0,this.zoomFactor=1,this.flippedHorizontally=!1,this.flippedVertically=!1,this._isGridVisible=!0,this._gridLines=2,this._rotationAngle=0,this.scaleFactor=1,this.renderEventListeners=[],this.closeEventListeners=[],this._isOpen=!1,this.CANVAS_MARGIN=20,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.displayMode="inline",this.popupMargin=30,this.toolbarHeight=40,this.aspectRatios=[{horizontal:0,vertical:0},{horizontal:4,vertical:3},{horizontal:3,vertical:2},{horizontal:16,vertical:9},{horizontal:1,vertical:1},{horizontal:3,vertical:4},{horizontal:2,vertical:3},{horizontal:9,vertical:16}],this._instanceNo=d.instanceCounter++,this.styles=new Wt(this.instanceNo),this.target=o,this.targetRoot=document.body,this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.rotateBy=this.rotateBy.bind(this),this.applyRotation=this.applyRotation.bind(this),this.cropRectChanged=this.cropRectChanged.bind(this),this.zoomToCrop=this.zoomToCrop.bind(this),this.unzoomFromCrop=this.unzoomFromCrop.bind(this),this.rotateLeftButtonClicked=this.rotateLeftButtonClicked.bind(this),this.rotateRightButtonClicked=this.rotateRightButtonClicked.bind(this),this.flipHorizontallyButtonClicked=this.flipHorizontallyButtonClicked.bind(this),this.flipVerticallyButtonClicked=this.flipVerticallyButtonClicked.bind(this),this.applyFlip=this.applyFlip.bind(this),this.startRenderAndClose=this.startRenderAndClose.bind(this),this.render=this.render.bind(this),this.onPopupResize=this.onPopupResize.bind(this),this.applyAspectRatio=this.applyAspectRatio.bind(this)}return Object.defineProperty(d.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(o){this._zoomToCropEnabled=o,o?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(o){this._isGridVisible=o,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"gridLines",{get:function(){return this._gridLines},set:function(o){this._gridLines=o,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(o){this._rotationAngle=o,this.straightener&&(this.straightener.angle=this._rotationAngle)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"aspectRatio",{get:function(){var o;return(o=this._aspectRatio)!==null&&o!==void 0?o:this.aspectRatios[0]},set:function(o){this._aspectRatio=o},enumerable:!1,configurable:!0}),d.prototype.open=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.setupResizeObserver(),this.initCropCanvas(),this.setEditingTarget(),this.setTopLeft(),this.initCropLayer(),this.attachEvents(),this.applyAspectRatio(),this.displayMode==="popup"&&this.onPopupResize(),this._isOpen=!0},d.prototype.show=function(){this.showUI(),this.open()},d.prototype.close=function(o){o===void 0&&(o=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),o||this.closeEventListeners.forEach(function(a){return a()}),this._isOpen=!1)},d.prototype.addRenderEventListener=function(o){this.renderEventListeners.push(o)},d.prototype.removeRenderEventListener=function(o){this.renderEventListeners.indexOf(o)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(o),1)},d.prototype.addCloseEventListener=function(o){this.closeEventListeners.push(o)},d.prototype.removeCloseEventListener=function(o){this.closeEventListeners.indexOf(o)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(o),1)},d.prototype.setupResizeObserver=function(){var o=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){o.resize(o.target.clientWidth,o.target.clientHeight)}),this.targetObserver.observe(this.target)):this.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(this.onPopupResize),this.targetObserver.observe(this.contentDiv)),window.addEventListener("resize",this.setWindowHeight))},d.prototype.onPopupResize=function(){if(this.contentDiv.clientWidth>0&&this.contentDiv.clientHeight>0){var o=1*this.target.clientWidth/this.target.clientHeight,a=this.contentDiv.clientWidth/o>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*o:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,c=a+2*this.CANVAS_MARGIN<this.contentDiv.clientWidth?this.contentDiv.clientHeight-2*this.CANVAS_MARGIN:(this.contentDiv.clientWidth-2*this.CANVAS_MARGIN)/o;this.resize(a,c)}},d.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},d.prototype.setEditingTargetSize=function(){this.editorCanvas.style.width=this.imageWidth+2*this.CANVAS_MARGIN+"px",this.editorCanvas.style.height=this.imageHeight+2*this.CANVAS_MARGIN+"px",Ht.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},d.prototype.resize=function(o,a){this.imageWidth=Math.round(o),this.imageHeight=Math.round(a),this.setEditingTargetSize(),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.displayMode!=="popup"?this.coverDiv.style.width=this.paddedImageWidth+"px":(this.setTopLeft(),this.positionCropImage()),this.cropLayer.scaleCanvas(this.imageWidth,this.imageHeight),this.applyRotation()},d.prototype.setEditingTarget=function(){var o=document.createElement("canvas");o.width=this.target.naturalWidth,o.height=this.target.naturalHeight,o.getContext("2d").drawImage(this.target,0,0,this.target.naturalWidth,this.target.naturalHeight);var a=o.toDataURL();Ht.setAttributes(this.editingTarget,[["href",a]]),this.setEditingTargetSize()},d.prototype.setTopLeft=function(){var o=this.target.getBoundingClientRect(),a=this.editorCanvas.getBoundingClientRect();this.left=o.left-a.left-this.CANVAS_MARGIN,this.top=o.top-a.top-this.CANVAS_MARGIN},d.prototype.initCropCanvas=function(){this.cropImageHolder=document.createElement("div"),this.cropImageHolder.style.setProperty("touch-action","none"),this.cropImageHolder.style.setProperty("-ms-touch-action","none"),this.cropImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.cropImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.cropImage.setAttribute("width",this.paddedImageWidth.toString()),this.cropImage.setAttribute("height",this.paddedImageHeight.toString()),this.cropImage.setAttribute("viewBox","0 0 "+this.paddedImageWidth.toString()+" "+this.paddedImageHeight.toString()),this.cropImage.style.pointerEvents="auto",this.cropImageHolder.style.width=this.paddedImageWidth+"px",this.cropImageHolder.style.height=this.paddedImageHeight+"px",this.cropImageHolder.style.transformOrigin="top left",this.positionCropImage(),this.defs=Ht.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=Ht.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=Ht.createGroup(),this.editingTargetRotationScaleContainer=Ht.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var o=Ht.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(o);var a=Ht.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(a),this.editingTargetContainer=Ht.createGroup(),this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px)",this.editingTargetContainer.appendChild(this.editingTargetRotationContainer),this.cropImage.appendChild(this.editingTargetContainer),this.cropImageHolder.appendChild(this.cropImage),this.editorCanvas.appendChild(this.cropImageHolder)},d.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},d.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=Ht.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new bn(this.imageWidth,this.imageHeight,this.CANVAS_MARGIN,this.cropLayerContainer),this.cropLayer.onCropChange=this.cropRectChanged,this.cropLayer.numberOfGridLines=this.gridLines,this.cropLayer.isGridVisible=this.isGridVisible,this.cropLayer.cropShadeColor=this.styles.settings.cropShadeColor,this.cropLayer.cropFrameColor=this.styles.settings.cropFrameColor,this.cropLayer.gripColor=this.styles.settings.gripColor,this.cropLayer.gripFillColor=this.styles.settings.gripFillColor,this.cropLayer.open(),this.cropLayer.setCropRectangle(this.cropRect),this.zoomToCropEnabled&&this.zoomToCrop()},d.prototype.zoomToCrop=function(){if(this.cropRect){var o=this.cropRect.x-this.CANVAS_MARGIN+this.cropRect.width/2,a=this.cropRect.y-this.CANVAS_MARGIN+this.cropRect.height/2;this.zoomFactor=Math.min(this.imageWidth/this.cropRect.width,this.imageHeight/this.cropRect.height),this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin=o+"px "+a+"px",this.editingTargetContainer.style.transform="translate("+(this.imageWidth/2-o+this.CANVAS_MARGIN)+"px,"+(this.imageHeight/2-a+this.CANVAS_MARGIN)+"px) scale("+this.zoomFactor+")",this.cropLayer.zoomFactor=this.zoomFactor)}},d.prototype.unzoomFromCrop=function(){this.zoomFactor=1,this.editingTargetContainer&&this.cropLayer&&(this.editingTargetContainer.style.transformOrigin="center",this.editingTargetContainer.style.transform="translate("+this.CANVAS_MARGIN+"px, "+this.CANVAS_MARGIN+"px) scale(1)",this.cropLayer.zoomFactor=this.zoomFactor)},d.prototype.cropRectChanged=function(o){this.cropRect=o,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},d.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},d.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},d.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},d.prototype.showUI=function(){switch(this.addStyles(),this.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.displayMode){case"inline":this.coverDiv.style.position="absolute";var o=this.styles.settings.hideTopToolbar?0:this.toolbarHeight,a=this.target.offsetTop>o+this.CANVAS_MARGIN?this.target.offsetTop-(o+this.CANVAS_MARGIN):0;this.coverDiv.style.top=a+"px",this.coverDiv.style.left=(this.target.offsetLeft>this.CANVAS_MARGIN?this.target.offsetLeft-this.CANVAS_MARGIN:0)+"px",this.coverDiv.style.width=this.target.offsetWidth+this.CANVAS_MARGIN+"px",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.styles.settings.zIndex!==void 0?this.styles.settings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.displayMode==="popup"?this.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.addToolbars(),this.uiDiv.appendChild(this.topToolbar.getUI()),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.alignItems="center",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.contentDiv.style.overflow="hidden",this.contentDiv.style.backgroundColor=this.styles.settings.canvasBackgroundColor,this.displayMode==="popup"&&(this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.popupMargin+"px)"),this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.contentDiv.appendChild(this.editorCanvas),this.uiDiv.appendChild(this.bottomToolbar.getUI()),this.straightener.angle=this.rotationAngle},d.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},d.prototype.addTopToolbar=function(){var o=this;this.topToolbar=new Sn,this.topToolbar.display=this.styles.settings.hideTopToolbar?"none":"",this.topToolbar.className=this.toolbarStyleClass.name,this.topToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.topToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.topToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.topToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.topToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.topToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var a=new zn;a.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(a);var c=[];this.aspectRatios.forEach(function(Rt){var jt=new nn(wi.getIcon(Rt.horizontal,Rt.vertical),Rt.horizontal===0&&Rt.vertical===0?"FREE":Rt.horizontal+":"+Rt.vertical);jt.onClick=function(){return o.ratioButtonClicked(Rt)},c.push(jt)}),this.aspectRatioButton=new _n(wi.getIcon(0,0),"Aspect ratio",c),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,a.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var p=new nn('<svg viewBox="0 0 24 24"><path d="M10 4v4h4V4h-4m6 0v4h4V4h-4m0 6v4h4v-4h-4m0 6v4h4v-4h-4m-2 4v-4h-4v4h4m-6 0v-4H4v4h4m0-6v-4H4v4h4m0-6V4H4v4h4m2 6h4v-4h-4v4M4 2h16a2 2 0 012 2v16a2 2 0 01-2 2H4c-1.08 0-2-.9-2-2V4a2 2 0 012-2z"/></svg>',"Toggle grid");p.isActive=this.isGridVisible,p.onClick=function(){o.isGridVisible=!o.isGridVisible,p.isActive=o.isGridVisible},a.addButton(p);var h=new nn('<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"Zoom to selection");if(h.isActive=this.zoomToCropEnabled,h.onClick=function(){o.zoomToCropEnabled=!o.zoomToCropEnabled,h.isActive=o.zoomToCropEnabled},a.addButton(h),!li.isLicensed){var te=new It;this.topToolbar.addElementBlock(te);var Ke=document.createElement("div");Ke.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var gt=document.createElement("a");gt.style.color="currentColor",gt.href="https://markerjs.com/products/cropro",gt.target="_blank",gt.innerHTML='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M16.326 14.895c0 1.126-.558 1.688-1.673 1.688H9.931c-1.116 0-1.674-.562-1.674-1.688V3.733c0-1.126.558-1.688 1.674-1.688h4.722c1.115 0 1.673.562 1.673 1.688v2.899h-1.957V3.793h-4.124v11.042h4.124v-3.242h1.957v3.302z" fill="currentColor"/><path d="M15.94 7.364a.783.783 0 00-1.065-.304l-11.01 6.126a.783.783 0 00-.303 1.065l4.498 8.085a.783.783 0 001.065.304l11.01-6.126a.783.783 0 00.303-1.065L15.94 7.364zM5.311 14.173l3.737 6.718 9.641-5.364-3.737-6.718-9.641 5.364z" fill="#eef762"/></svg>',Ke.appendChild(gt),te.addElement(Ke)}var Nt=new zn;Nt.minWidth=3*this.toolbarHeight+"px",Nt.contentAlign="end",this.topToolbar.addButtonBlock(Nt);var Xe=new nn('<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"OK");Xe.onClick=this.startRenderAndClose,Nt.addButton(Xe),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Xe.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var kt=new nn('<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"Close");kt.onClick=this.close,Nt.addButton(kt),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(kt.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},d.prototype.addBottomToolbar=function(){var o=this;this.bottomToolbar=new Sn,this.bottomToolbar.display=this.styles.settings.hideBottomToolbar?"none":"",this.bottomToolbar.className=this.toolbarStyleClass.name,this.bottomToolbar.colorsClassName=this.styles.settings.toolbarStyleColorsClassName?this.styles.settings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name,this.bottomToolbar.fadeInClassName=this.styles.fadeInAnimationClassName,this.bottomToolbar.blockClassName=this.toolbarBlockStyleClass.name,this.bottomToolbar.buttonClassName=this.toolbarButtonStyleClass.name,this.bottomToolbar.buttonColorsClassName=this.styles.settings.toolbarButtonStyleColorsClassName?this.styles.settings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,this.bottomToolbar.buttonActiveColorsClassName=this.styles.settings.toolbarActiveButtonStyleColorsClassName?this.styles.settings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name;var a=new zn;a.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(a);var c=new nn('<svg viewBox="0 0 24 24"><path d="M13 4.07V1L8.45 5.55 13 10V6.09c2.84.48 5 2.94 5 5.91s-2.16 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93s-3.05-7.44-7-7.93M7.1 18.32c1.16.9 2.51 1.44 3.9 1.61V17.9c-.87-.15-1.71-.49-2.46-1.03L7.1 18.32M6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.01-2.47m1.02-4.47L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47z"/></svg>',"Rotate left");c.onClick=this.rotateLeftButtonClicked,a.addButton(c);var p=new nn('<svg viewBox="0 0 24 24"><path d="M16.89 15.5l1.42 1.39c.9-1.16 1.45-2.5 1.62-3.89h-2.02c-.14.87-.48 1.72-1.02 2.5M13 17.9v2.02c1.39-.17 2.74-.71 3.9-1.61l-1.44-1.44c-.75.54-1.59.89-2.46 1.03m6.93-6.9a7.906 7.906 0 00-1.62-3.89l-1.42 1.42c.54.75.88 1.6 1.02 2.47m-2.36-5.45L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45z"/></svg>',"Rotate right");p.onClick=this.rotateRightButtonClicked,a.addButton(p);var h=new It;h.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(h),this.straightener=new rn("Straighten"),this.straightener.className=this.toolbarStraightenerStyleClass.name,this.straightener.colorsClassName=this.styles.settings.toolbarStraightenerColorsClassName?this.styles.settings.toolbarStraightenerColorsClassName:this.toolbarStraightenerStyleColorsClass.name,this.straightener.onAngleChange=function(Nt){o.rotateBy(Nt),o.straightener.angle=o.rotationAngle},h.addElement(this.straightener.getUI());var te=new zn;te.minWidth=2*this.toolbarHeight+"px",te.contentAlign="end",this.bottomToolbar.addButtonBlock(te);var Ke=new nn('<svg viewBox="0 0 24 24"><path d="M15 21h2v-2h-2m4-10h2V7h-2M3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2m16-2v2h2c0-1.1-.9-2-2-2m-8 20h2V1h-2m8 16h2v-2h-2M15 5h2V3h-2m4 10h2v-2h-2m0 10c1.1 0 2-.9 2-2h-2z"/></svg>',"Flip horizontal");Ke.onClick=this.flipHorizontallyButtonClicked,te.addButton(Ke);var gt=new nn('<svg viewBox="0 0 24 24"><path d="M3 15v2h2v-2m10 4v2h2v-2m2-16H5c-1.1 0-2 .9-2 2v4h2V5h14v4h2V5c0-1.1-.9-2-2-2m2 16h-2v2c1.1 0 2-.9 2-2M1 11v2h22v-2M7 19v2h2v-2m10-4v2h2v-2m-10 4v2h2v-2M3 19c0 1.1.9 2 2 2v-2z"/></svg>',"Flip vertical");gt.onClick=this.flipVerticallyButtonClicked,te.addButton(gt)},d.prototype.ratioButtonClicked=function(o){this.aspectRatio=o,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},d.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=wi.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},d.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Mi(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},d.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},d.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},d.prototype.restoreState=function(o){if(o){var a=this.cropLayer.getRescaledRect(o.width,o.height,this.imageWidth,this.imageHeight,o.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(a),this.cropRectChanged(a),this.flippedHorizontally=o.flippedHorizontally,this.flippedVertically=o.flippedVertically,this.applyFlip(),this.rotationAngle=o.rotationAngle,this.applyRotation()}},d.prototype.clientToLocalCoordinates=function(o,a){var c=this.cropImage.getBoundingClientRect();return{x:o-c.left,y:a-c.top}},d.prototype.onWindowResize=function(){this.positionUI()},d.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var o=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=o+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight="calc(100vh - "+(2*this.popupMargin+2*this.toolbarHeight)+"px)"}this.positionCropImage()},d.prototype.rotateLeftButtonClicked=function(){var o=this.rotationAngle-90;this.rotationAngle%90!=0&&(o+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(o)},d.prototype.rotateRightButtonClicked=function(){var o=this.rotationAngle+90;this.rotationAngle%90!=0&&(o-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(o)},d.prototype.rotateTo=function(o){o=(o=o>180?o-360:o)<=-180?o+360:o,this.rotationAngle=o,this.applyRotation()},d.prototype.rotateBy=function(o){this.rotateTo((this.rotationAngle+o)%360)},d.prototype.applyRotation=function(){var o=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var a=this.editingTargetRotationContainer.transform.baseVal.getItem(0);a.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(a,0);var c=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/c.width,this.imageHeight/c.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=o},d.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},d.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},d.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},d.prototype.startRenderAndClose=function(){return Kt(this,void 0,void 0,function(){var o,a;return si(this,function(c){switch(c.label){case 0:return[4,this.render()];case 1:return o=c.sent(),a=this.getState(),this.renderEventListeners.forEach(function(p){return p(o,a)}),this.close(!0),[2]}})})},d.prototype.render=function(){return Kt(this,void 0,void 0,function(){var o;return si(this,function(a){switch(a.label){case 0:return(o=new gn).naturalSize=this.renderAtNaturalSize,o.imageType=this.renderImageType,o.imageQuality=this.renderImageQuality,o.width=this.renderWidth,o.height=this.renderHeight,this.unzoomFromCrop(),Ht.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,o.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 1:return a.sent(),[4,o.rasterize(this.cropImage,this.target,{x:this.cropRect.x,y:this.cropRect.y,width:this.cropRect.width,height:this.cropRect.height},this.CANVAS_MARGIN,this.rotationAngle,this.scaleFactor*(this.flippedHorizontally?-1:1),this.scaleFactor*(this.flippedVertically?-1:1))];case 2:return[2,a.sent()]}})})},d.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ft("toolbar",`
width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.toolbarHeight+`px;
box-sizing: content-box;
overflow: hidden;
line-height: 0px;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Ft("toolbar_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ft("toolbar-block",`
display: flex;
align-items: center;
box-sizing: content-box;
`));var o=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ft("toolbar_button",`
display: inline-block;
width: `+(this.toolbarHeight-2*o)+`px;
height: `+(this.toolbarHeight-2*o)+`px;
padding: `+o+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Ft("toolbar_button_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ft("toolbar_active_button",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
`)),this.styles.addRule(new At("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.toolbarHeight/2+`px;
`)),this.styles.addRule(new At("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new Ft("toolbar_dropdown",`
position: absolute;
max-width: `+4*this.toolbarHeight+`px;
z-index: 20;
white-space: normal;
box-sizing: content-box;
box-shadow: 3px 3px rgba(33, 33, 33, 0.1);
margin: `+(this.displayMode==="inline"?"0":this.popupMargin)+`px;
line-height: 0px;
`)),this.toolbarDropdownStyleColorsClass=this.styles.addClass(new Ft("toolbar_dropdown_colors",`
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new Ft("toolbar_straightener_block",`
display: flex;
overflow: hidden;
justify-content: center;
-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
`)),this.toolbarStraightenerStyleClass=this.styles.addClass(new Ft("toolbar_straightener",`
display: flex;
overflow: hidden;
justify-content: center;
height: `+(this.toolbarHeight-2*o)+`px;
padding: `+o+`px;
cursor: default;
user-select: none;
box-sizing: content-box;
`)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new Ft("toolbar_straightener_colors",`
color: `+this.styles.settings.toolbarColor+`;
fill: currentColor;
`))},d.instanceCounter=0,d}(),pt=l("8hTe"),Yt=l.n(pt),an=/<pre[^>]*>/g;function Pn(d){var o=document.createElement("div");return o.innerHTML=d,o.childNodes.length===0?"":o.childNodes[0].nodeValue}var Un=Q.a=function(d){var o=d.value,a=o===void 0?"":o,c=d.edit,p=c===void 0?!1:c,h=d.className,te=d.showTextOnly,Ke=d.showLines,gt=d.replaces,Nt=d.zoomImg,Xe=d.hasMask,kt=d.style,Rt=kt===void 0?{}:kt,jt=d.stylesPrev,un=jt===void 0?{}:jt,wn=String(a),on=Object(_.useRef)(),_i=Object(_.useRef)(),vi=Object(_.useState)(""),Oi=Object(j.a)(vi,2),zi=Oi[0],ui=Oi[1],sr=Object(_.useState)("office"),$i=Object(j.a)(sr,2),yr=$i[0],gr=$i[1],ao=function(){var In=new Ne(_i.current);In.displayMode="popup",In.addRenderEventListener(function(){var ci=Object(me.a)(W.a.mark(function On(di){var Fn;return W.a.wrap(function(hi){for(;;)switch(hi.prev=hi.next){case 0:return on.current.style.display="none",hi.next=3,Object(St.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:di}});case 3:Fn=hi.sent,Fn!=null&&Fn.id&&gt(_i.current.getAttribute("src").replace(je.a.API_SERVER,""),"/api/attachments/".concat(Fn==null?void 0:Fn.id,"?type=").concat(Fn.content_type));case 5:case"end":return hi.stop()}},On)}));return function(On){return ci.apply(this,arguments)}}()),In.show()},Gr=function(){var In=new qt(_i.current);In.settings.displayMode="popup",In.addEventListener("render",function(){var ci=Object(me.a)(W.a.mark(function On(di){var Fn;return W.a.wrap(function(hi){for(;;)switch(hi.prev=hi.next){case 0:if(on.current.style.display="none",!_i.current){hi.next=6;break}return hi.next=4,Object(St.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:di.dataUrl}});case 4:Fn=hi.sent,Fn!=null&&Fn.id&&gt(_i.current.getAttribute("src").replace(je.a.API_SERVER,""),"/api/attachments/".concat(Fn==null?void 0:Fn.id,"?type=").concat(Fn.content_type));case 6:case"end":return hi.stop()}},On)}));return function(On){return ci.apply(this,arguments)}}()),In.show(),window.markerArea=In},lr=Object(_.useMemo)(function(){try{var ei=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,In=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ci=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;wn=wn.replace(ei,"("+je.a.API_SERVER+"/api/attachments/").replace(In,'"'+je.a.API_SERVER+"/api/attachments/").replace(ci,'"'+je.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),wn=wn.replace(new RegExp("(?<!\\n)\\n(?!\\n)","g"),`
`)}catch(ur){}var On=De(wn),di=Re();if(wn.match(/\[TOC\]/)&&(On=On.replace("<p>[TOC]</p>",Ie()),le()),On=On.replace(/(__special_katext_id_\d+__)/g,function(ur,hi){var Ui=di[hi],Vr=Ui.type,Kr=Ui.expression;return Object(_e.renderToString)(Pn(Kr)||"",{displayMode:Vr==="block",throwOnError:!1,output:"html"})}),On=On.replace(/▁/g,"\u2581\u2581\u2581"),fe(),te){var Fn=document.createElement("div");return Fn.innerHTML=On,Fn.innerText}return setTimeout(function(){return Pr()},500),On},[wn]),yi=Object(_.useRef)();he.WebkitLineClamp=Ke,Ke&&(Rt=Object(k.a)(Object(k.a)({},Rt),he));function Sr(ei){var In=ei.target;if(In.tagName.toUpperCase()==="IMG"){if(Nt){var ci=In.getAttribute("src");ui(ci),gr("image")}}else if(In.tagName.toUpperCase()==="A"){var On=In.getAttribute("href");if(On.indexOf("office")>-1)ei.preventDefault(),ui(On),gr("office");else if(On.indexOf("application/pdf")>-1)ei.preventDefault(),ui(On),gr("pdf");else if(On.indexOf("type=text")>-1)ei.preventDefault(),ui(On),gr("html");else if(On.startsWith("#")){ei.preventDefault();var di=document.getElementById(On.replace("#",""));di&&di.scrollIntoView(!0)}}}var Pr=function(){var In,ci=(In=yi.current)===null||In===void 0?void 0:In.querySelectorAll("video");ci==null||ci.forEach(function(On){if(On.oncontextmenu=function(){return!1},On.src.indexOf(".m3u8")>-1&&!On.canPlayType("application/vnd.apple.mpegurl")){if(ye.a.isSupported()){var di=new ye.a;di.loadSource(On.src),di.attachMedia(On)}}})};Object(_.useEffect)(function(){if(yi.current&&lr&&(lr.match(an)&&window.PR.prettyPrint()),yi.current)return yi.current.addEventListener("click",Sr),function(){yi.current.removeEventListener("click",Sr),fe(),le()}},[lr,yi.current,Sr]);var yo=function(In){if(!p)return;In.target.nodeName==="IMG"?(on.current.style.display="flex",on.current.style.width=In.target.clientWidth+"px",on.current.style.height=In.target.clientHeight+"px",on.current.style.top=In.target.offsetTop+"px",on.current.style.left=In.target.offsetLeft+"px",_i.current.src=In.target.getAttribute("src")):on.current.style.display="none"};return y.a.createElement("div",{style:{position:"relative"}},y.a.createElement("div",{ref:yi,style:Object(k.a)({},Rt),className:"".concat(h||""," markdown-body ").concat(Yt.a.mdBody),onMouseOver:yo,dangerouslySetInnerHTML:{__html:lr}}),y.a.createElement("div",{ref:on,className:Yt.a.button},y.a.createElement(ve.a,null,y.a.createElement(J.a,{onClick:function(){return ao()}},"\u88C1\u526A"),y.a.createElement(J.a,{onClick:function(){return Gr()}},"\u7F16\u8F91"))),y.a.createElement("img",{ref:_i,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),y.a.createElement(st.a,{close:!0,data:zi,hasMask:Xe,type:zi!=null&&zi.length?yr:"",style:Object(k.a)({},un),onClose:function(){return ui("")}}))}},"9VGf":function(Be,Q,l){"use strict";l.d(Q,"a",function(){return de});var U=l("q1tI"),ve=l.n(U);function de(J,k){var me=Object(U.useRef)();Object(U.useEffect)(function(){me.current=J}),Object(U.useEffect)(function(){function j(){me.current()}if(k!==null){var Y=setInterval(j,k);return function(){return clearInterval(Y)}}},[k])}},"9ZNV":function(Be,Q,l){"use strict";l.d(Q,"a",function(){return _});var U=l("0Owb"),ve=l("+L6B"),de=l("2/Rp"),J=l("q1tI"),k=l.n(J),me=l("UUDw"),j=l.n(me),Y=l("TSYQ"),W=l.n(Y),_=function(C){var R=C.cancelText,A=R===void 0?"\u53D6\u6D88":R,O=C.okText,T=O===void 0?"\u786E\u5B9A":O,m=C.loading,f=m===void 0?!1:m,S=C.hasOkBtn,L=S===void 0?!0:S,le=C.okButtonProps,he=le===void 0?{}:le,ge=C.onCancel,Ie=ge===void 0?function(){}:ge,xe=C.onOk,Oe=xe===void 0?function(){}:xe,Ge=C.className,ue=Ge===void 0?"":Ge;return k.a.createElement("div",{className:W()(j.a.buttonFixed,ue)},k.a.createElement("div",{className:j.a.buttonWrap},k.a.createElement(de.a,{size:"large",className:"".concat(j.a.button," mr20"),onClick:Ie},A),L&&k.a.createElement(de.a,Object(U.a)({size:"large",type:"primary",className:"".concat(j.a.button," mr20"),loading:f,onClick:Oe},he),T)))}},"A/g1":function(Be,Q){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4OjMyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSB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3j/+PWwUnoj9jyHCk+OP7p3Kry+6nL33uvazqbD+6+W35RDmrtGOPW8Va7JcjzemtC+frTKWfgJyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},Bd2K:function(Be,Q,l){(function(U){U(l("VrN/"),l("osHv"))})(function(U){U.defineOption("autoCloseTags",!1,function(W,_,y){if(y!=U.Init&&y&&W.removeKeyMap("autoCloseTags"),!_)return;var C={name:"autoCloseTags"};(typeof _!="object"||_.whenClosing!==!1)&&(C["'/'"]=function(R){return me(R)}),(typeof _!="object"||_.whenOpening!==!1)&&(C["'>'"]=function(R){return J(R)}),W.addKeyMap(C)});var ve=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],de=["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 J(W){if(W.getOption("disableInput"))return U.Pass;for(var _=W.listSelections(),y=[],C=W.getOption("autoCloseTags"),R=0;R<_.length;R++){if(!_[R].empty())return U.Pass;var A=_[R].head,O=W.getTokenAt(A),T=U.innerMode(W.getMode(),O.state),m=T.state,f=T.mode.xmlCurrentTag&&T.mode.xmlCurrentTag(m),S=f&&f.name;if(!S)return U.Pass;var L=T.mode.configuration=="html",le=typeof C=="object"&&C.dontCloseTags||L&&ve,he=typeof C=="object"&&C.indentTags||L&&de;O.end>A.ch&&(S=S.slice(0,S.length-O.end+A.ch));var ge=S.toLowerCase();if(!S||O.type=="string"&&(O.end!=A.ch||!/[\"\']/.test(O.string.charAt(O.string.length-1))||O.string.length==1)||O.type=="tag"&&f.close||O.string.indexOf("/")==A.ch-O.start-1||le&&j(le,ge)>-1||Y(W,T.mode.xmlCurrentContext&&T.mode.xmlCurrentContext(m)||[],S,A,!0))return U.Pass;var Ie=typeof C=="object"&&C.emptyTags;if(Ie&&j(Ie,S)>-1){y[R]={text:"/>",newPos:U.Pos(A.line,A.ch+2)};continue}var xe=he&&j(he,ge)>-1;y[R]={indent:xe,text:">"+(xe?`
`:"")+"</"+S+">",newPos:xe?U.Pos(A.line+1,0):U.Pos(A.line,A.ch+1)}}for(var Oe=typeof C=="object"&&C.dontIndentOnAutoClose,R=_.length-1;R>=0;R--){var Ge=y[R];W.replaceRange(Ge.text,_[R].head,_[R].anchor,"+insert");var ue=W.listSelections().slice(0);ue[R]={head:Ge.newPos,anchor:Ge.newPos},W.setSelections(ue),!Oe&&Ge.indent&&(W.indentLine(Ge.newPos.line,null,!0),W.indentLine(Ge.newPos.line+1,null,!0))}}function k(W,_){for(var y=W.listSelections(),C=[],R=_?"/":"</",A=W.getOption("autoCloseTags"),O=typeof A=="object"&&A.dontIndentOnSlash,T=0;T<y.length;T++){if(!y[T].empty())return U.Pass;var m=y[T].head,f=W.getTokenAt(m),S=U.innerMode(W.getMode(),f.state),L=S.state;if(_&&(f.type=="string"||f.string.charAt(0)!="<"||f.start!=m.ch-1))return U.Pass;var le,he=S.mode.name!="xml"&&W.getMode().name=="htmlmixed";if(he&&S.mode.name=="javascript")le=R+"script";else if(he&&S.mode.name=="css")le=R+"style";else{var ge=S.mode.xmlCurrentContext&&S.mode.xmlCurrentContext(L);if(!ge||ge.length&&Y(W,ge,ge[ge.length-1],m))return U.Pass;le=R+ge[ge.length-1]}W.getLine(m.line).charAt(f.end)!=">"&&(le+=">"),C[T]=le}if(W.replaceSelections(C),y=W.listSelections(),!O)for(var T=0;T<y.length;T++)(T==y.length-1||y[T].head.line<y[T+1].head.line)&&W.indentLine(y[T].head.line)}function me(W){return W.getOption("disableInput")?U.Pass:k(W,!0)}U.commands.closeTag=function(W){return k(W)};function j(W,_){if(W.indexOf)return W.indexOf(_);for(var y=0,C=W.length;y<C;++y)if(W[y]==_)return y;return-1}function Y(W,_,y,C,R){if(!U.scanForClosingTag)return!1;var A=Math.min(W.lastLine()+1,C.line+500),O=U.scanForClosingTag(W,C,null,A);if(!O||O.tag!=y)return!1;for(var T=R?1:0,m=_.length-1;m>=0&&_[m]==y;m--)++T;C=O.to;for(var m=1;m<T;m++){var f=U.scanForClosingTag(W,C,null,A);if(!f||f.tag!=y)return!1;C=f.to}return!0}})},BjJ7:function(Be,Q,l){"use strict";l.d(Q,"d",function(){return ve}),l.d(Q,"c",function(){return de}),l.d(Q,"e",function(){return J}),l.d(Q,"b",function(){return k}),l.d(Q,"a",function(){return j});var U=l("m3rI");function ve(Y){var W=!0;if(Y.length>0){for(var _=0;_<Y.length;_++)if(Y[_].compile_success==0||!Y[_].compile_success){W=!1;break}}else W=!1;return W}function de(Y){for(var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",_=[],y=0;y<Y.length;y++){var C=Y[y],R=W?"".concat(W,"/").concat(C.name):"".concat(C.name);_.push({title:C.name,isLeaf:!(C.type==="tree"),key:R})}return _}function J(Y,W,_){for(var y=0;y<Y.length;y++){var C=Y[y];if(C.key===W){C.children=_;break}C.children&&J(C.children,W,_)}return Y}function k(Y,W,_){var y;return function(){var C=this,R=arguments,A=function(){y=null,_||Y.apply(C,R)},O=_&&!y;clearTimeout(y),y=setTimeout(A,W),O&&Y.apply(C,R)}}var me=!0,j=U.a.API_SERVER},"C+DQ":function(Be,Q,l){},"C/vA":function(Be,Q,l){"use strict";l.d(Q,"a",function(){return U});function U(ve){var de=this,J=!1,k;return function(){return J||(J=!0,k=ve.apply(de,arguments)),k}}},"Cg/j":function(Be,Q,l){"use strict";l.d(Q,"b",function(){return U}),l.d(Q,"a",function(){return ve}),l.d(Q,"c",function(){return J}),l.d(Q,"d",function(){return k});var U;(function(me){me.serviceIds=new Map,me.DI_TARGET="$di$target",me.DI_DEPENDENCIES="$di$dependencies";function j(Y){return Y[me.DI_DEPENDENCIES]||[]}me.getServiceDependencies=j})(U||(U={}));var ve=J("instantiationService");function de(me,j,Y,W){j[U.DI_TARGET]===j?j[U.DI_DEPENDENCIES].push({id:me,index:Y,optional:W}):(j[U.DI_DEPENDENCIES]=[{id:me,index:Y,optional:W}],j[U.DI_TARGET]=j)}function J(me){if(U.serviceIds.has(me))return U.serviceIds.get(me);var j=function(Y,W,_){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");de(j,Y,_,!1)};return j.toString=function(){return me},U.serviceIds.set(me,j),j}function k(me){return function(j,Y,W){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");de(me,j,W,!0)}}},DlQD:function(Be,Q,l){(function(U,ve){Be.exports=ve()})(this,function(){"use strict";function U(se,ne){for(var oe=0;oe<ne.length;oe++){var M=ne[oe];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(se,M.key,M)}}function ve(se,ne,oe){return ne&&U(se.prototype,ne),oe&&U(se,oe),se}function de(se,ne){if(!se)return;if(typeof se=="string")return J(se,ne);var oe=Object.prototype.toString.call(se).slice(8,-1);if(oe==="Object"&&se.constructor&&(oe=se.constructor.name),oe==="Map"||oe==="Set")return Array.from(se);if(oe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(oe))return J(se,ne)}function J(se,ne){(ne==null||ne>se.length)&&(ne=se.length);for(var oe=0,M=new Array(ne);oe<ne;oe++)M[oe]=se[oe];return M}function k(se,ne){var oe;if(typeof Symbol=="undefined"||se[Symbol.iterator]==null){if(Array.isArray(se)||(oe=de(se))||ne&&se&&typeof se.length=="number"){oe&&(se=oe);var M=0;return function(){return M>=se.length?{done:!0}:{done:!1,value:se[M++]}}}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 oe=se[Symbol.iterator](),oe.next.bind(oe)}function me(se,ne){return ne={exports:{}},se(ne,ne.exports),ne.exports}var j=me(function(se){function ne(){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 oe(M){se.exports.defaults=M}se.exports={defaults:ne(),getDefaults:ne,changeDefaults:oe}}),Y=j.defaults,W=j.getDefaults,_=j.changeDefaults,y=/[&<>"']/,C=/[&<>"']/g,R=/[<>"']|&(?!#?\w+;)/,A=/[<>"']|&(?!#?\w+;)/g,O={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},T=function(ne){return O[ne]};function m(se,ne){if(ne){if(y.test(se))return se.replace(C,T)}else if(R.test(se))return se.replace(A,T);return se}var f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function S(se){return se.replace(f,function(ne,oe){return oe=oe.toLowerCase(),oe==="colon"?":":oe.charAt(0)==="#"?oe.charAt(1)==="x"?String.fromCharCode(parseInt(oe.substring(2),16)):String.fromCharCode(+oe.substring(1)):""})}var L=/(^|[^\[])\^/g;function le(se,ne){se=se.source||se,ne=ne||"";var oe={replace:function(D,z){return z=z.source||z,z=z.replace(L,"$1"),se=se.replace(D,z),oe},getRegex:function(){return new RegExp(se,ne)}};return oe}var he=/[^\w:]/g,ge=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ie(se,ne,oe){if(se){var M;try{M=decodeURIComponent(S(oe)).replace(he,"").toLowerCase()}catch(D){return null}if(M.indexOf("javascript:")===0||M.indexOf("vbscript:")===0||M.indexOf("data:")===0)return null}ne&&!ge.test(oe)&&(oe=P(ne,oe));try{oe=encodeURI(oe).replace(/%25/g,"%")}catch(D){return null}return oe}var xe={},Oe=/^[^:]+:\/*[^/]*$/,Ge=/^([^:]+:)[\s\S]*$/,ue=/^([^:]+:\/*[^/]*)[\s\S]*$/;function P(se,ne){xe[" "+se]||(Oe.test(se)?xe[" "+se]=se+"/":xe[" "+se]=ce(se,"/",!0)),se=xe[" "+se];var oe=se.indexOf(":")===-1;return ne.substring(0,2)==="//"?oe?ne:se.replace(Ge,"$1")+ne:ne.charAt(0)==="/"?oe?ne:se.replace(ue,"$1")+ne:se+ne}var Re={exec:function(){}};function fe(se){for(var ne=1,oe,M;ne<arguments.length;ne++){oe=arguments[ne];for(M in oe)Object.prototype.hasOwnProperty.call(oe,M)&&(se[M]=oe[M])}return se}function V(se,ne){var oe=se.replace(/\|/g,function(z,Z,Te){for(var Ce=!1,Ve=Z;--Ve>=0&&Te[Ve]==="\\";)Ce=!Ce;return Ce?"|":" |"}),M=oe.split(/ \|/),D=0;if(M.length>ne)M.splice(ne);else for(;M.length<ne;)M.push("");for(;D<M.length;D++)M[D]=M[D].trim().replace(/\\\|/g,"|");return M}function ce(se,ne,oe){var M=se.length;if(M===0)return"";for(var D=0;D<M;){var z=se.charAt(M-D-1);if(z===ne&&!oe)D++;else if(z!==ne&&oe)D++;else break}return se.substr(0,M-D)}function we(se,ne){if(se.indexOf(ne[1])===-1)return-1;for(var oe=se.length,M=0,D=0;D<oe;D++)if(se[D]==="\\")D++;else if(se[D]===ne[0])M++;else if(se[D]===ne[1]&&(M--,M<0))return D;return-1}function ie(se){se&&se.sanitize&&!se.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 De={escape:m,unescape:S,edit:le,cleanUrl:Ie,resolveUrl:P,noopTest:Re,merge:fe,splitCells:V,rtrim:ce,findClosingBracket:we,checkSanitizeDeprecation:ie},I=j.defaults,b=De.rtrim,ye=De.splitCells,je=De.escape,_e=De.findClosingBracket;function st(se,ne,oe){var M=ne.href,D=ne.title?je(ne.title):null,z=se[1].replace(/\\([\[\]])/g,"$1");return se[0].charAt(0)!=="!"?{type:"link",raw:oe,href:M,title:D,text:z}:{type:"image",raw:oe,href:M,title:D,text:je(z)}}function St(se,ne){var oe=se.match(/^(\s+)(?:```)/);if(oe===null)return ne;var M=oe[1];return ne.split(`
`).map(function(D){var z=D.match(/^\s+/);if(z===null)return D;var Z=z[0];return Z.length>=M.length?D.slice(M.length):D}).join(`
`)}var tt=function(){function se(oe){this.options=oe||I}var ne=se.prototype;return ne.space=function(M){var D=this.rules.block.newline.exec(M);if(D)return D[0].length>1?{type:"space",raw:D[0]}:{raw:`
`}},ne.code=function(M,D){var z=this.rules.block.code.exec(M);if(z){var Z=D[D.length-1];if(Z&&Z.type==="paragraph")return{raw:z[0],text:z[0].trimRight()};var Te=z[0].replace(/^ {4}/gm,"");return{type:"code",raw:z[0],codeBlockStyle:"indented",text:this.options.pedantic?Te:b(Te,`
`)}}},ne.fences=function(M){var D=this.rules.block.fences.exec(M);if(D){var z=D[0],Z=St(z,D[3]||"");return{type:"code",raw:z,lang:D[2]?D[2].trim():D[2],text:Z}}},ne.heading=function(M){var D=this.rules.block.heading.exec(M);if(D)return{type:"heading",raw:D[0],depth:D[1].length,text:D[2]}},ne.nptable=function(M){var D=this.rules.block.nptable.exec(M);if(D){var z={type:"table",header:ye(D[1].replace(/^ *| *\| *$/g,"")),align:D[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:D[3]?D[3].replace(/\n$/,"").split(`
`):[],raw:D[0]};if(z.header.length===z.align.length){var Z=z.align.length,Te;for(Te=0;Te<Z;Te++)/^ *-+: *$/.test(z.align[Te])?z.align[Te]="right":/^ *:-+: *$/.test(z.align[Te])?z.align[Te]="center":/^ *:-+ *$/.test(z.align[Te])?z.align[Te]="left":z.align[Te]=null;for(Z=z.cells.length,Te=0;Te<Z;Te++)z.cells[Te]=ye(z.cells[Te],z.header.length);return z}}},ne.hr=function(M){var D=this.rules.block.hr.exec(M);if(D)return{type:"hr",raw:D[0]}},ne.blockquote=function(M){var D=this.rules.block.blockquote.exec(M);if(D){var z=D[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:D[0],text:z}}},ne.list=function(M){var D=this.rules.block.list.exec(M);if(D){for(var z=D[0],Z=D[2],Te=Z.length>1,Ce=Z[Z.length-1]===")",Ve={type:"list",raw:z,ordered:Te,start:Te?+Z.slice(0,-1):"",loose:!1,items:[]},vt=D[0].match(this.rules.block.item),bt=!1,ft,_t,Bt,ut,ln,qt,lt,mn=vt.length,Kt=0;Kt<mn;Kt++)ft=vt[Kt],z=ft,_t=ft.length,ft=ft.replace(/^ *([*+-]|\d+[.)]) */,""),~ft.indexOf(`
`)&&(_t-=ft.length,ft=this.options.pedantic?ft.replace(/^ {1,4}/gm,""):ft.replace(new RegExp("^ {1,"+_t+"}","gm"),"")),Kt!==mn-1&&(Bt=this.rules.block.bullet.exec(vt[Kt+1])[0],(Te?Bt.length===1||!Ce&&Bt[Bt.length-1]===")":Bt.length>1||this.options.smartLists&&Bt!==Z)&&(ut=vt.slice(Kt+1).join(`
`),Ve.raw=Ve.raw.substring(0,Ve.raw.length-ut.length),Kt=mn-1)),ln=bt||/\n\n(?!\s*$)/.test(ft),Kt!==mn-1&&(bt=ft.charAt(ft.length-1)===`
`,ln||(ln=bt)),ln&&(Ve.loose=!0),qt=/^\[[ xX]\] /.test(ft),lt=void 0,qt&&(lt=ft[1]!==" ",ft=ft.replace(/^\[[ xX]\] +/,"")),Ve.items.push({type:"list_item",raw:z,task:qt,checked:lt,loose:ln,text:ft});return Ve}},ne.html=function(M){var D=this.rules.block.html.exec(M);if(D)return{type:this.options.sanitize?"paragraph":"html",raw:D[0],pre:!this.options.sanitizer&&(D[1]==="pre"||D[1]==="script"||D[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(D[0]):je(D[0]):D[0]}},ne.def=function(M){var D=this.rules.block.def.exec(M);if(D){D[3]&&(D[3]=D[3].substring(1,D[3].length-1));var z=D[1].toLowerCase().replace(/\s+/g," ");return{tag:z,raw:D[0],href:D[2],title:D[3]}}},ne.table=function(M){var D=this.rules.block.table.exec(M);if(D){var z={type:"table",header:ye(D[1].replace(/^ *| *\| *$/g,"")),align:D[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:D[3]?D[3].replace(/\n$/,"").split(`
`):[]};if(z.header.length===z.align.length){z.raw=D[0];var Z=z.align.length,Te;for(Te=0;Te<Z;Te++)/^ *-+: *$/.test(z.align[Te])?z.align[Te]="right":/^ *:-+: *$/.test(z.align[Te])?z.align[Te]="center":/^ *:-+ *$/.test(z.align[Te])?z.align[Te]="left":z.align[Te]=null;for(Z=z.cells.length,Te=0;Te<Z;Te++)z.cells[Te]=ye(z.cells[Te].replace(/^ *\| *| *\| *$/g,""),z.header.length);return z}}},ne.lheading=function(M){var D=this.rules.block.lheading.exec(M);if(D)return{type:"heading",raw:D[0],depth:D[2].charAt(0)==="="?1:2,text:D[1]}},ne.paragraph=function(M){var D=this.rules.block.paragraph.exec(M);if(D)return{type:"paragraph",raw:D[0],text:D[1].charAt(D[1].length-1)===`
`?D[1].slice(0,-1):D[1]}},ne.text=function(M,D){var z=this.rules.block.text.exec(M);if(z){var Z=D[D.length-1];return Z&&Z.type==="text"?{raw:z[0],text:z[0]}:{type:"text",raw:z[0],text:z[0]}}},ne.escape=function(M){var D=this.rules.inline.escape.exec(M);if(D)return{type:"escape",raw:D[0],text:je(D[1])}},ne.tag=function(M,D,z){var Z=this.rules.inline.tag.exec(M);if(Z)return!D&&/^<a /i.test(Z[0])?D=!0:D&&/^<\/a>/i.test(Z[0])&&(D=!1),!z&&/^<(pre|code|kbd|script)(\s|>)/i.test(Z[0])?z=!0:z&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Z[0])&&(z=!1),{type:this.options.sanitize?"text":"html",raw:Z[0],inLink:D,inRawBlock:z,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Z[0]):je(Z[0]):Z[0]}},ne.link=function(M){var D=this.rules.inline.link.exec(M);if(D){var z=_e(D[2],"()");if(z>-1){var Z=D[0].indexOf("!")===0?5:4,Te=Z+D[1].length+z;D[2]=D[2].substring(0,z),D[0]=D[0].substring(0,Te).trim(),D[3]=""}var Ce=D[2],Ve="";if(this.options.pedantic){var vt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Ce);vt?(Ce=vt[1],Ve=vt[3]):Ve=""}else Ve=D[3]?D[3].slice(1,-1):"";Ce=Ce.trim().replace(/^<([\s\S]*)>$/,"$1");var bt=st(D,{href:Ce&&Ce.replace(this.rules.inline._escapes,"$1"),title:Ve&&Ve.replace(this.rules.inline._escapes,"$1")},D[0]);return bt}},ne.reflink=function(M,D){var z;if((z=this.rules.inline.reflink.exec(M))||(z=this.rules.inline.nolink.exec(M))){var Z=(z[2]||z[1]).replace(/\s+/g," ");if(Z=D[Z.toLowerCase()],!Z||!Z.href){var Te=z[0].charAt(0);return{type:"text",raw:Te,text:Te}}var Ce=st(z,Z,z[0]);return Ce}},ne.strong=function(M,D,z){z===void 0&&(z="");var Z=this.rules.inline.strong.start.exec(M);if(Z&&(!Z[1]||Z[1]&&(z===""||this.rules.inline.punctuation.exec(z)))){D=D.slice(-1*M.length);var Te=Z[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Te.lastIndex=0;for(var Ce;(Z=Te.exec(D))!=null;)if(Ce=this.rules.inline.strong.middle.exec(D.slice(0,Z.index+3)),Ce)return{type:"strong",raw:M.slice(0,Ce[0].length),text:M.slice(2,Ce[0].length-2)}}},ne.em=function(M,D,z){z===void 0&&(z="");var Z=this.rules.inline.em.start.exec(M);if(Z&&(!Z[1]||Z[1]&&(z===""||this.rules.inline.punctuation.exec(z)))){D=D.slice(-1*M.length);var Te=Z[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Te.lastIndex=0;for(var Ce;(Z=Te.exec(D))!=null;)if(Ce=this.rules.inline.em.middle.exec(D.slice(0,Z.index+2)),Ce)return{type:"em",raw:M.slice(0,Ce[0].length),text:M.slice(1,Ce[0].length-1)}}},ne.codespan=function(M){var D=this.rules.inline.code.exec(M);if(D){var z=D[2].replace(/\n/g," "),Z=/[^ ]/.test(z),Te=z.startsWith(" ")&&z.endsWith(" ");return Z&&Te&&(z=z.substring(1,z.length-1)),z=je(z,!0),{type:"codespan",raw:D[0],text:z}}},ne.br=function(M){var D=this.rules.inline.br.exec(M);if(D)return{type:"br",raw:D[0]}},ne.del=function(M){var D=this.rules.inline.del.exec(M);if(D)return{type:"del",raw:D[0],text:D[1]}},ne.autolink=function(M,D){var z=this.rules.inline.autolink.exec(M);if(z){var Z,Te;return z[2]==="@"?(Z=je(this.options.mangle?D(z[1]):z[1]),Te="mailto:"+Z):(Z=je(z[1]),Te=Z),{type:"link",raw:z[0],text:Z,href:Te,tokens:[{type:"text",raw:Z,text:Z}]}}},ne.url=function(M,D){var z;if(z=this.rules.inline.url.exec(M)){var Z,Te;if(z[2]==="@")Z=je(this.options.mangle?D(z[0]):z[0]),Te="mailto:"+Z;else{var Ce;do Ce=z[0],z[0]=this.rules.inline._backpedal.exec(z[0])[0];while(Ce!==z[0]);Z=je(z[0]),z[1]==="www."?Te="http://"+Z:Te=Z}return{type:"link",raw:z[0],text:Z,href:Te,tokens:[{type:"text",raw:Z,text:Z}]}}},ne.inlineText=function(M,D,z){var Z=this.rules.inline.text.exec(M);if(Z){var Te;return D?Te=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Z[0]):je(Z[0]):Z[0]:Te=je(this.options.smartypants?z(Z[0]):Z[0]),{type:"text",raw:Z[0],text:Te}}},se}(),nt=De.noopTest,Je=De.edit,Ye=De.merge,Ee={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:nt,table:nt,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Ee._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ee._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ee.def=Je(Ee.def).replace("label",Ee._label).replace("title",Ee._title).getRegex(),Ee.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ee.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Ee.item=Je(Ee.item,"gm").replace(/bull/g,Ee.bullet).getRegex(),Ee.list=Je(Ee.list).replace(/bull/g,Ee.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ee.def.source+")").getRegex(),Ee._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ee._comment=/<!--(?!-?>)[\s\S]*?-->/,Ee.html=Je(Ee.html,"i").replace("comment",Ee._comment).replace("tag",Ee._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ee.paragraph=Je(Ee._paragraph).replace("hr",Ee.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ee._tag).getRegex(),Ee.blockquote=Je(Ee.blockquote).replace("paragraph",Ee.paragraph).getRegex(),Ee.normal=Ye({},Ee),Ee.gfm=Ye({},Ee.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ee.gfm.nptable=Je(Ee.gfm.nptable).replace("hr",Ee.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ee._tag).getRegex(),Ee.gfm.table=Je(Ee.gfm.table).replace("hr",Ee.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ee._tag).getRegex(),Ee.pedantic=Ye({},Ee.normal,{html:Je(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ee._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:nt,paragraph:Je(Ee.normal._paragraph).replace("hr",Ee.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Ee.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var F={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:nt,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:nt,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};F._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",F.punctuation=Je(F.punctuation).replace(/punctuation/g,F._punctuation).getRegex(),F._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",F._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",F.em.start=Je(F.em.start).replace(/punctuation/g,F._punctuation).getRegex(),F.em.middle=Je(F.em.middle).replace(/punctuation/g,F._punctuation).replace(/overlapSkip/g,F._overlapSkip).getRegex(),F.em.endAst=Je(F.em.endAst,"g").replace(/punctuation/g,F._punctuation).getRegex(),F.em.endUnd=Je(F.em.endUnd,"g").replace(/punctuation/g,F._punctuation).getRegex(),F.strong.start=Je(F.strong.start).replace(/punctuation/g,F._punctuation).getRegex(),F.strong.middle=Je(F.strong.middle).replace(/punctuation/g,F._punctuation).replace(/blockSkip/g,F._blockSkip).getRegex(),F.strong.endAst=Je(F.strong.endAst,"g").replace(/punctuation/g,F._punctuation).getRegex(),F.strong.endUnd=Je(F.strong.endUnd,"g").replace(/punctuation/g,F._punctuation).getRegex(),F.blockSkip=Je(F._blockSkip,"g").getRegex(),F.overlapSkip=Je(F._overlapSkip,"g").getRegex(),F._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,F._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,F._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])?)+(?![-_])/,F.autolink=Je(F.autolink).replace("scheme",F._scheme).replace("email",F._email).getRegex(),F._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,F.tag=Je(F.tag).replace("comment",Ee._comment).replace("attribute",F._attribute).getRegex(),F._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,F._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,F._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,F.link=Je(F.link).replace("label",F._label).replace("href",F._href).replace("title",F._title).getRegex(),F.reflink=Je(F.reflink).replace("label",F._label).getRegex(),F.reflinkSearch=Je(F.reflinkSearch,"g").replace("reflink",F.reflink).replace("nolink",F.nolink).getRegex(),F.normal=Ye({},F),F.pedantic=Ye({},F.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:Je(/^!?\[(label)\]\((.*?)\)/).replace("label",F._label).getRegex(),reflink:Je(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",F._label).getRegex()}),F.gfm=Ye({},F.normal,{escape:Je(F.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),F.gfm.url=Je(F.gfm.url,"i").replace("email",F.gfm._extended_email).getRegex(),F.breaks=Ye({},F.gfm,{br:Je(F.br).replace("{2,}","*").getRegex(),text:Je(F.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var it={block:Ee,inline:F},Mt=j.defaults,Tt=it.block,Ct=it.inline;function q(se){return se.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 $(se){var ne="",oe,M,D=se.length;for(oe=0;oe<D;oe++)M=se.charCodeAt(oe),Math.random()>.5&&(M="x"+M.toString(16)),ne+="&#"+M+";";return ne}var Ae=function(){function se(oe){this.tokens=[],this.tokens.links=Object.create(null),this.options=oe||Mt,this.options.tokenizer=this.options.tokenizer||new tt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var M={block:Tt.normal,inline:Ct.normal};this.options.pedantic?(M.block=Tt.pedantic,M.inline=Ct.pedantic):this.options.gfm&&(M.block=Tt.gfm,this.options.breaks?M.inline=Ct.breaks:M.inline=Ct.gfm),this.tokenizer.rules=M}se.lex=function(M,D){var z=new se(D);return z.lex(M)};var ne=se.prototype;return ne.lex=function(M){return M=M.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(M,this.tokens,!0),this.inline(this.tokens),this.tokens},ne.blockTokens=function(M,D,z){D===void 0&&(D=[]),z===void 0&&(z=!0),M=M.replace(/^ +$/gm,"");for(var Z,Te,Ce,Ve;M;){if(Z=this.tokenizer.space(M)){M=M.substring(Z.raw.length),Z.type&&D.push(Z);continue}if(Z=this.tokenizer.code(M,D)){M=M.substring(Z.raw.length),Z.type?D.push(Z):(Ve=D[D.length-1],Ve.raw+=`
`+Z.raw,Ve.text+=`
`+Z.text);continue}if(Z=this.tokenizer.fences(M)){M=M.substring(Z.raw.length),D.push(Z);continue}if(Z=this.tokenizer.heading(M)){M=M.substring(Z.raw.length),D.push(Z);continue}if(Z=this.tokenizer.nptable(M)){M=M.substring(Z.raw.length),D.push(Z);continue}if(Z=this.tokenizer.hr(M)){M=M.substring(Z.raw.length),D.push(Z);continue}if(Z=this.tokenizer.blockquote(M)){M=M.substring(Z.raw.length),Z.tokens=this.blockTokens(Z.text,[],z),D.push(Z);continue}if(Z=this.tokenizer.list(M)){for(M=M.substring(Z.raw.length),Ce=Z.items.length,Te=0;Te<Ce;Te++)Z.items[Te].tokens=this.blockTokens(Z.items[Te].text,[],!1);D.push(Z);continue}if(Z=this.tokenizer.html(M)){M=M.substring(Z.raw.length),D.push(Z);continue}if(z&&(Z=this.tokenizer.def(M))){M=M.substring(Z.raw.length),this.tokens.links[Z.tag]||(this.tokens.links[Z.tag]={href:Z.href,title:Z.title});continue}if(Z=this.tokenizer.table(M)){M=M.substring(Z.raw.length),D.push(Z);continue}if(Z=this.tokenizer.lheading(M)){M=M.substring(Z.raw.length),D.push(Z);continue}if(z&&(Z=this.tokenizer.paragraph(M))){M=M.substring(Z.raw.length),D.push(Z);continue}if(Z=this.tokenizer.text(M,D)){M=M.substring(Z.raw.length),Z.type?D.push(Z):(Ve=D[D.length-1],Ve.raw+=`
`+Z.raw,Ve.text+=`
`+Z.text);continue}if(M){var vt="Infinite loop on byte: "+M.charCodeAt(0);if(this.options.silent){console.error(vt);break}else throw new Error(vt)}}return D},ne.inline=function(M){var D,z,Z,Te,Ce,Ve,vt=M.length;for(D=0;D<vt;D++){Ve=M[D];switch(Ve.type){case"paragraph":case"text":case"heading":{Ve.tokens=[],this.inlineTokens(Ve.text,Ve.tokens);break}case"table":{for(Ve.tokens={header:[],cells:[]},Te=Ve.header.length,z=0;z<Te;z++)Ve.tokens.header[z]=[],this.inlineTokens(Ve.header[z],Ve.tokens.header[z]);for(Te=Ve.cells.length,z=0;z<Te;z++)for(Ce=Ve.cells[z],Ve.tokens.cells[z]=[],Z=0;Z<Ce.length;Z++)Ve.tokens.cells[z][Z]=[],this.inlineTokens(Ce[Z],Ve.tokens.cells[z][Z]);break}case"blockquote":{this.inline(Ve.tokens);break}case"list":{for(Te=Ve.items.length,z=0;z<Te;z++)this.inline(Ve.items[z].tokens);break}}}return M},ne.inlineTokens=function(M,D,z,Z,Te){D===void 0&&(D=[]),z===void 0&&(z=!1),Z===void 0&&(Z=!1),Te===void 0&&(Te="");var Ce,Ve=M,vt;if(this.tokens.links){var bt=Object.keys(this.tokens.links);if(bt.length>0)for(;(vt=this.tokenizer.rules.inline.reflinkSearch.exec(Ve))!=null;)bt.includes(vt[0].slice(vt[0].lastIndexOf("[")+1,-1))&&(Ve=Ve.slice(0,vt.index)+"["+"a".repeat(vt[0].length-2)+"]"+Ve.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(vt=this.tokenizer.rules.inline.blockSkip.exec(Ve))!=null;)Ve=Ve.slice(0,vt.index)+"["+"a".repeat(vt[0].length-2)+"]"+Ve.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;M;){if(Ce=this.tokenizer.escape(M)){M=M.substring(Ce.raw.length),D.push(Ce);continue}if(Ce=this.tokenizer.tag(M,z,Z)){M=M.substring(Ce.raw.length),z=Ce.inLink,Z=Ce.inRawBlock,D.push(Ce);continue}if(Ce=this.tokenizer.link(M)){M=M.substring(Ce.raw.length),Ce.type==="link"&&(Ce.tokens=this.inlineTokens(Ce.text,[],!0,Z)),D.push(Ce);continue}if(Ce=this.tokenizer.reflink(M,this.tokens.links)){M=M.substring(Ce.raw.length),Ce.type==="link"&&(Ce.tokens=this.inlineTokens(Ce.text,[],!0,Z)),D.push(Ce);continue}if(Ce=this.tokenizer.strong(M,Ve,Te)){M=M.substring(Ce.raw.length),Ce.tokens=this.inlineTokens(Ce.text,[],z,Z),D.push(Ce);continue}if(Ce=this.tokenizer.em(M,Ve,Te)){M=M.substring(Ce.raw.length),Ce.tokens=this.inlineTokens(Ce.text,[],z,Z),D.push(Ce);continue}if(Ce=this.tokenizer.codespan(M)){M=M.substring(Ce.raw.length),D.push(Ce);continue}if(Ce=this.tokenizer.br(M)){M=M.substring(Ce.raw.length),D.push(Ce);continue}if(Ce=this.tokenizer.del(M)){M=M.substring(Ce.raw.length),Ce.tokens=this.inlineTokens(Ce.text,[],z,Z),D.push(Ce);continue}if(Ce=this.tokenizer.autolink(M,$)){M=M.substring(Ce.raw.length),D.push(Ce);continue}if(!z&&(Ce=this.tokenizer.url(M,$))){M=M.substring(Ce.raw.length),D.push(Ce);continue}if(Ce=this.tokenizer.inlineText(M,Z,q)){M=M.substring(Ce.raw.length),Te=Ce.raw.slice(-1),D.push(Ce);continue}if(M){var ft="Infinite loop on byte: "+M.charCodeAt(0);if(this.options.silent){console.error(ft);break}else throw new Error(ft)}}return D},ve(se,null,[{key:"rules",get:function(){return{block:Tt,inline:Ct}}}]),se}(),Pe=j.defaults,He=De.cleanUrl,Ue=De.escape,Qe=function(){function se(oe){this.options=oe||Pe}var ne=se.prototype;return ne.code=function(M,D,z){var Z=(D||"").match(/\S*/)[0];if(this.options.highlight){var Te=this.options.highlight(M,Z);Te!=null&&Te!==M&&(z=!0,M=Te)}return Z?'<pre><code class="'+this.options.langPrefix+Ue(Z,!0)+'">'+(z?M:Ue(M,!0))+`</code></pre>
`:"<pre><code>"+(z?M:Ue(M,!0))+`</code></pre>
`},ne.blockquote=function(M){return`<blockquote>
`+M+`</blockquote>
`},ne.html=function(M){return M},ne.heading=function(M,D,z,Z){return this.options.headerIds?"<h"+D+' id="'+this.options.headerPrefix+Z.slug(z)+'">'+M+"</h"+D+`>
`:"<h"+D+">"+M+"</h"+D+`>
`},ne.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},ne.list=function(M,D,z){var Z=D?"ol":"ul",Te=D&&z!==1?' start="'+z+'"':"";return"<"+Z+Te+`>
`+M+"</"+Z+`>
`},ne.listitem=function(M){return"<li>"+M+`</li>
`},ne.checkbox=function(M){return"<input "+(M?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},ne.paragraph=function(M){return"<p>"+M+`</p>
`},ne.table=function(M,D){return D&&(D="<tbody>"+D+"</tbody>"),`<table>
<thead>
`+M+`</thead>
`+D+`</table>
`},ne.tablerow=function(M){return`<tr>
`+M+`</tr>
`},ne.tablecell=function(M,D){var z=D.header?"th":"td",Z=D.align?"<"+z+' align="'+D.align+'">':"<"+z+">";return Z+M+"</"+z+`>
`},ne.strong=function(M){return"<strong>"+M+"</strong>"},ne.em=function(M){return"<em>"+M+"</em>"},ne.codespan=function(M){return"<code>"+M+"</code>"},ne.br=function(){return this.options.xhtml?"<br/>":"<br>"},ne.del=function(M){return"<del>"+M+"</del>"},ne.link=function(M,D,z){if(M=He(this.options.sanitize,this.options.baseUrl,M),M===null)return z;var Z='<a href="'+Ue(M)+'"';return D&&(Z+=' title="'+D+'"'),Z+=">"+z+"</a>",Z},ne.image=function(M,D,z){if(M=He(this.options.sanitize,this.options.baseUrl,M),M===null)return z;var Z='<img src="'+M+'" alt="'+z+'"';return D&&(Z+=' title="'+D+'"'),Z+=this.options.xhtml?"/>":">",Z},ne.text=function(M){return M},se}(),et=function(){function se(){}var ne=se.prototype;return ne.strong=function(M){return M},ne.em=function(M){return M},ne.codespan=function(M){return M},ne.del=function(M){return M},ne.html=function(M){return M},ne.text=function(M){return M},ne.link=function(M,D,z){return""+z},ne.image=function(M,D,z){return""+z},ne.br=function(){return""},se}(),Dt=function(){function se(){this.seen={}}var ne=se.prototype;return ne.slug=function(M){var D=M.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(D)){var z=D;do this.seen[z]++,D=z+"-"+this.seen[z];while(this.seen.hasOwnProperty(D))}return this.seen[D]=0,D},se}(),ct=j.defaults,ot=De.unescape,$e=function(){function se(oe){this.options=oe||ct,this.options.renderer=this.options.renderer||new Qe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new et,this.slugger=new Dt}se.parse=function(M,D){var z=new se(D);return z.parse(M)};var ne=se.prototype;return ne.parse=function(M,D){D===void 0&&(D=!0);var z="",Z,Te,Ce,Ve,vt,bt,ft,_t,Bt,ut,ln,qt,lt,mn,Kt,si,li,Ht,Wt=M.length;for(Z=0;Z<Wt;Z++){ut=M[Z];switch(ut.type){case"space":continue;case"hr":{z+=this.renderer.hr();continue}case"heading":{z+=this.renderer.heading(this.parseInline(ut.tokens),ut.depth,ot(this.parseInline(ut.tokens,this.textRenderer)),this.slugger);continue}case"code":{z+=this.renderer.code(ut.text,ut.lang,ut.escaped);continue}case"table":{for(_t="",ft="",Ve=ut.header.length,Te=0;Te<Ve;Te++)ft+=this.renderer.tablecell(this.parseInline(ut.tokens.header[Te]),{header:!0,align:ut.align[Te]});for(_t+=this.renderer.tablerow(ft),Bt="",Ve=ut.cells.length,Te=0;Te<Ve;Te++){for(bt=ut.tokens.cells[Te],ft="",vt=bt.length,Ce=0;Ce<vt;Ce++)ft+=this.renderer.tablecell(this.parseInline(bt[Ce]),{header:!1,align:ut.align[Ce]});Bt+=this.renderer.tablerow(ft)}z+=this.renderer.table(_t,Bt);continue}case"blockquote":{Bt=this.parse(ut.tokens),z+=this.renderer.blockquote(Bt);continue}case"list":{for(ln=ut.ordered,qt=ut.start,lt=ut.loose,Ve=ut.items.length,Bt="",Te=0;Te<Ve;Te++)Kt=ut.items[Te],si=Kt.checked,li=Kt.task,mn="",Kt.task&&(Ht=this.renderer.checkbox(si),lt?Kt.tokens.length>0&&Kt.tokens[0].type==="text"?(Kt.tokens[0].text=Ht+" "+Kt.tokens[0].text,Kt.tokens[0].tokens&&Kt.tokens[0].tokens.length>0&&Kt.tokens[0].tokens[0].type==="text"&&(Kt.tokens[0].tokens[0].text=Ht+" "+Kt.tokens[0].tokens[0].text)):Kt.tokens.unshift({type:"text",text:Ht}):mn+=Ht),mn+=this.parse(Kt.tokens,lt),Bt+=this.renderer.listitem(mn,li,si);z+=this.renderer.list(Bt,ln,qt);continue}case"html":{z+=this.renderer.html(ut.text);continue}case"paragraph":{z+=this.renderer.paragraph(this.parseInline(ut.tokens));continue}case"text":{for(Bt=ut.tokens?this.parseInline(ut.tokens):ut.text;Z+1<Wt&&M[Z+1].type==="text";)ut=M[++Z],Bt+=`
`+(ut.tokens?this.parseInline(ut.tokens):ut.text);z+=D?this.renderer.paragraph(Bt):Bt;continue}default:{var At='Token with "'+ut.type+'" type was not found.';if(this.options.silent){console.error(At);return}else throw new Error(At)}}}return z},ne.parseInline=function(M,D){D=D||this.renderer;var z="",Z,Te,Ce=M.length;for(Z=0;Z<Ce;Z++){Te=M[Z];switch(Te.type){case"escape":{z+=D.text(Te.text);break}case"html":{z+=D.html(Te.text);break}case"link":{z+=D.link(Te.href,Te.title,this.parseInline(Te.tokens,D));break}case"image":{z+=D.image(Te.href,Te.title,Te.text);break}case"strong":{z+=D.strong(this.parseInline(Te.tokens,D));break}case"em":{z+=D.em(this.parseInline(Te.tokens,D));break}case"codespan":{z+=D.codespan(Te.text);break}case"br":{z+=D.br();break}case"del":{z+=D.del(this.parseInline(Te.tokens,D));break}case"text":{z+=D.text(Te.text);break}default:{var Ve='Token with "'+Te.type+'" type was not found.';if(this.options.silent){console.error(Ve);return}else throw new Error(Ve)}}}return z},se}(),Lt=De.merge,mt=De.checkSanitizeDeprecation,Ot=De.escape,Le=j.getDefaults,ht=j.changeDefaults,yt=j.defaults;function Fe(se,ne,oe){if(typeof se=="undefined"||se===null)throw new Error("marked(): input parameter is undefined or null");if(typeof se!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(se)+", string expected");if(typeof ne=="function"&&(oe=ne,ne=null),ne=Lt({},Fe.defaults,ne||{}),mt(ne),oe){var M=ne.highlight,D;try{D=Ae.lex(se,ne)}catch(Ce){return oe(Ce)}var z=function(Ve){var vt;if(!Ve)try{vt=$e.parse(D,ne)}catch(bt){Ve=bt}return ne.highlight=M,Ve?oe(Ve):oe(null,vt)};if(!M||M.length<3)return z();if(delete ne.highlight,!D.length)return z();var Z=0;Fe.walkTokens(D,function(Ce){Ce.type==="code"&&(Z++,setTimeout(function(){M(Ce.text,Ce.lang,function(Ve,vt){if(Ve)return z(Ve);vt!=null&&vt!==Ce.text&&(Ce.text=vt,Ce.escaped=!0),Z--,Z===0&&z()})},0))}),Z===0&&z();return}try{var Te=Ae.lex(se,ne);return ne.walkTokens&&Fe.walkTokens(Te,ne.walkTokens),$e.parse(Te,ne)}catch(Ce){if(Ce.message+=`
Please report this to https://github.com/markedjs/marked.`,ne.silent)return"<p>An error occurred:</p><pre>"+Ot(Ce.message+"",!0)+"</pre>";throw Ce}}Fe.options=Fe.setOptions=function(se){return Lt(Fe.defaults,se),ht(Fe.defaults),Fe},Fe.getDefaults=Le,Fe.defaults=yt,Fe.use=function(se){var ne=Lt({},se);if(se.renderer&&function(){var M=Fe.defaults.renderer||new Qe,D=function(Te){var Ce=M[Te];M[Te]=function(){for(var Ve=arguments.length,vt=new Array(Ve),bt=0;bt<Ve;bt++)vt[bt]=arguments[bt];var ft=se.renderer[Te].apply(M,vt);return ft===!1&&(ft=Ce.apply(M,vt)),ft}};for(var z in se.renderer)D(z);ne.renderer=M}(),se.tokenizer&&function(){var M=Fe.defaults.tokenizer||new tt,D=function(Te){var Ce=M[Te];M[Te]=function(){for(var Ve=arguments.length,vt=new Array(Ve),bt=0;bt<Ve;bt++)vt[bt]=arguments[bt];var ft=se.tokenizer[Te].apply(M,vt);return ft===!1&&(ft=Ce.apply(M,vt)),ft}};for(var z in se.tokenizer)D(z);ne.tokenizer=M}(),se.walkTokens){var oe=Fe.defaults.walkTokens;ne.walkTokens=function(M){se.walkTokens(M),oe&&oe(M)}}Fe.setOptions(ne)},Fe.walkTokens=function(se,ne){for(var oe=k(se),M;!(M=oe()).done;){var D=M.value;ne(D);switch(D.type){case"table":{for(var z=k(D.tokens.header),Z;!(Z=z()).done;){var Te=Z.value;Fe.walkTokens(Te,ne)}for(var Ce=k(D.tokens.cells),Ve;!(Ve=Ce()).done;)for(var vt=Ve.value,bt=k(vt),ft;!(ft=bt()).done;){var _t=ft.value;Fe.walkTokens(_t,ne)}break}case"list":{Fe.walkTokens(D.items,ne);break}default:D.tokens&&Fe.walkTokens(D.tokens,ne)}}},Fe.Parser=$e,Fe.parser=$e.parse,Fe.Renderer=Qe,Fe.TextRenderer=et,Fe.Lexer=Ae,Fe.lexer=Ae.lex,Fe.Tokenizer=tt,Fe.Slugger=Dt,Fe.parse=Fe;var Ze=Fe;return Ze})},E7E6:function(Be,Q){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv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LSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},ELLl:function(Be,Q,l){(function(U){U(l("VrN/"))})(function(U){var ve={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},de=U.Pos;U.defineOption("autoCloseBrackets",!1,function(O,T,m){m&&m!=U.Init&&(O.removeKeyMap(k),O.state.closeBrackets=null),T&&(me(J(T,"pairs")),O.state.closeBrackets=T,O.addKeyMap(k))});function J(O,T){return T=="pairs"&&typeof O=="string"?O:typeof O=="object"&&O[T]!=null?O[T]:ve[T]}var k={Backspace:W,Enter:_};function me(O){for(var T=0;T<O.length;T++){var m=O.charAt(T),f="'"+m+"'";k[f]||(k[f]=j(m))}}me(ve.pairs+"`");function j(O){return function(T){return C(T,O)}}function Y(O){var T=O.state.closeBrackets;if(!T||T.override)return T;var m=O.getModeAt(O.getCursor());return m.closeBrackets||T}function W(O){var T=Y(O);if(!T||O.getOption("disableInput"))return U.Pass;for(var m=J(T,"pairs"),f=O.listSelections(),S=0;S<f.length;S++){if(!f[S].empty())return U.Pass;var L=R(O,f[S].head);if(!L||m.indexOf(L)%2!=0)return U.Pass}for(var S=f.length-1;S>=0;S--){var le=f[S].head;O.replaceRange("",de(le.line,le.ch-1),de(le.line,le.ch+1),"+delete")}}function _(O){var T=Y(O),m=T&&J(T,"explode");if(!m||O.getOption("disableInput"))return U.Pass;for(var f=O.listSelections(),S=0;S<f.length;S++){if(!f[S].empty())return U.Pass;var L=R(O,f[S].head);if(!L||m.indexOf(L)%2!=0)return U.Pass}O.operation(function(){var le=O.lineSeparator()||`
`;O.replaceSelection(le+le,null),O.execCommand("goCharLeft"),f=O.listSelections();for(var he=0;he<f.length;he++){var ge=f[he].head.line;O.indentLine(ge,null,!0),O.indentLine(ge+1,null,!0)}})}function y(O){var T=U.cmpPos(O.anchor,O.head)>0;return{anchor:new de(O.anchor.line,O.anchor.ch+(T?-1:1)),head:new de(O.head.line,O.head.ch+(T?1:-1))}}function C(O,T){var m=Y(O);if(!m||O.getOption("disableInput"))return U.Pass;var f=J(m,"pairs"),S=f.indexOf(T);if(S==-1)return U.Pass;for(var L=J(m,"closeBefore"),le=J(m,"triples"),he=f.charAt(S+1)==T,ge=O.listSelections(),Ie=S%2==0,xe,Oe=0;Oe<ge.length;Oe++){var Ge=ge[Oe],ue=Ge.head,P,Re=O.getRange(ue,de(ue.line,ue.ch+1));if(Ie&&!Ge.empty())P="surround";else if((he||!Ie)&&Re==T)he&&A(O,ue)?P="both":le.indexOf(T)>=0&&O.getRange(ue,de(ue.line,ue.ch+3))==T+T+T?P="skipThree":P="skip";else if(he&&ue.ch>1&&le.indexOf(T)>=0&&O.getRange(de(ue.line,ue.ch-2),ue)==T+T){if(ue.ch>2&&/\bstring/.test(O.getTokenTypeAt(de(ue.line,ue.ch-2))))return U.Pass;P="addFour"}else if(he){var fe=ue.ch==0?" ":O.getRange(de(ue.line,ue.ch-1),ue);if(!U.isWordChar(Re)&&fe!=T&&!U.isWordChar(fe))P="both";else return U.Pass}else if(Ie&&(Re.length===0||/\s/.test(Re)||L.indexOf(Re)>-1))P="both";else return U.Pass;if(!xe)xe=P;else if(xe!=P)return U.Pass}var V=S%2?f.charAt(S-1):T,ce=S%2?T:f.charAt(S+1);O.operation(function(){if(xe=="skip")O.execCommand("goCharRight");else if(xe=="skipThree")for(var we=0;we<3;we++)O.execCommand("goCharRight");else if(xe=="surround"){for(var ie=O.getSelections(),we=0;we<ie.length;we++)ie[we]=V+ie[we]+ce;O.replaceSelections(ie,"around"),ie=O.listSelections().slice();for(var we=0;we<ie.length;we++)ie[we]=y(ie[we]);O.setSelections(ie)}else xe=="both"?(O.replaceSelection(V+ce,null),O.triggerElectric(V+ce),O.execCommand("goCharLeft")):xe=="addFour"&&(O.replaceSelection(V+V+V+V,"before"),O.execCommand("goCharRight"))})}function R(O,T){var m=O.getRange(de(T.line,T.ch-1),de(T.line,T.ch+1));return m.length==2?m:null}function A(O,T){var m=O.getTokenAt(de(T.line,T.ch+1));return/\bstring/.test(m.type)&&m.start==T.ch&&(T.ch==0||!/\bstring/.test(O.getTokenTypeAt(T)))}})},F8wB:function(Be,Q,l){Be.exports={loading:"loading___1SIOG"}},FOrL:function(Be,Q,l){Be.exports=l.p+"static/nodata.a6b3f948.png"},FPkq:function(Be,Q,l){Be.exports=l.p+"static/qrCode.dd0fe9b2.png"},GABl:function(Be,Q){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnVUGLxWogqPp78SGSeC3wP4ZUR8pJ+Ct50O7e344uKjEXFcBkUkSERY6e43RkE9JcCgawngaiw3O6A/l7CvaHckvLYFhTKi5B8C3B2JQ6sYEhvpcMxKKioqs4ox7SwLkvT0mFNnz82HqKkCaHacRGxL1gDybHJp6WKSYoXHkqBytzuF4FoR6WOFtKNtCP4b0c7s5N27v22Pu11B5e7+6ZTgBgE6t0f2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;if(k!==void 0)return!!k;if(U===ve)return!0;if(typeof U!="object"||!U||typeof ve!="object"||!ve)return!1;var me=Object.keys(U),j=Object.keys(ve);if(me.length!==j.length)return!1;for(var Y=Object.prototype.hasOwnProperty.bind(ve),W=0;W<me.length;W++){var _=me[W];if(!Y(_))return!1;var y=U[_],C=ve[_];if(k=de?de.call(J,y,C,_):void 0,k===!1||k===void 0&&y!==C)return!1}return!0}},HmJG:function(Be,Q,l){},HpTS:function(Be,Q,l){Be.exports=l.p+"static/small_program.f74069ec.png"},I8Z2:function(Be,Q,l){"use strict";l.d(Q,"a",function(){return J}),l.d(Q,"b",function(){return R}),l.d(Q,"c",function(){return O});var U=l("q1tI"),ve=function(){var T=function(m,f){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,L){S.__proto__=L}||function(S,L){for(var le in L)L.hasOwnProperty(le)&&(S[le]=L[le])},T(m,f)};return function(m,f){T(m,f);function S(){this.constructor=m}m.prototype=f===null?Object.create(f):(S.prototype=f.prototype,new S)}}(),de=U.createContext(null),J=function(T){ve(m,T);function m(){return T!==null&&T.apply(this,arguments)||this}return m.prototype.render=function(){return U.createElement(de.Provider,{value:this.props.store},this.props.children)},m}(U.Component),k=l("Gytx"),me=l.n(k),j=l("2mql"),Y=l.n(j),W=function(){var T=function(m,f){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,L){S.__proto__=L}||function(S,L){for(var le in L)L.hasOwnProperty(le)&&(S[le]=L[le])},T(m,f)};return function(m,f){T(m,f);function S(){this.constructor=m}m.prototype=f===null?Object.create(f):(S.prototype=f.prototype,new S)}}(),_=function(){return _=Object.assign||function(T){for(var m,f=1,S=arguments.length;f<S;f++){m=arguments[f];for(var L in m)Object.prototype.hasOwnProperty.call(m,L)&&(T[L]=m[L])}return T},_.apply(this,arguments)};function y(T){return T.displayName||T.name||"Component"}var C=function(){return{}};function R(T,m){m===void 0&&(m={});var f=!!T,S=T||C;return function(le){var he=function(Ie){W(xe,Ie);function xe(Oe,Ge){var ue=Ie.call(this,Oe,Ge)||this;return ue.unsubscribe=null,ue.handleChange=function(){if(!ue.unsubscribe)return;var P=S(ue.store.getState(),ue.props);ue.setState({subscribed:P})},ue.store=ue.context,ue.state={subscribed:S(ue.store.getState(),Oe),store:ue.store,props:Oe},ue}return xe.getDerivedStateFromProps=function(Oe,Ge){return T&&T.length===2&&Oe!==Ge.props?{subscribed:S(Ge.store.getState(),Oe),props:Oe}:{props:Oe}},xe.prototype.componentDidMount=function(){this.trySubscribe()},xe.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},xe.prototype.shouldComponentUpdate=function(Oe,Ge){return!me()(this.props,Oe)||!me()(this.state.subscribed,Ge.subscribed)},xe.prototype.trySubscribe=function(){f&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},xe.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},xe.prototype.render=function(){var Oe=_(_(_({},this.props),this.state.subscribed),{store:this.store});return U.createElement(le,_({},Oe,{ref:this.props.miniStoreForwardedRef}))},xe.displayName="Connect("+y(le)+")",xe.contextType=de,xe}(U.Component);if(m.forwardRef){var ge=U.forwardRef(function(Ie,xe){return U.createElement(he,_({},Ie,{miniStoreForwardedRef:xe}))});return Y()(ge,le)}return Y()(he,le)}}var A=function(){return A=Object.assign||function(T){for(var m,f=1,S=arguments.length;f<S;f++){m=arguments[f];for(var L in m)Object.prototype.hasOwnProperty.call(m,L)&&(T[L]=m[L])}return T},A.apply(this,arguments)};function O(T){var m=T,f=[];function S(he){m=A(A({},m),he);for(var ge=0;ge<f.length;ge++)f[ge]()}function L(){return m}function le(he){return f.push(he),function(){var Ie=f.indexOf(he);f.splice(Ie,1)}}return{setState:S,getState:L,subscribe:le}}},JWDV:function(Be,Q,l){Be.exports=l.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(Be,Q,l){"use strict";l.d(Q,"c",function(){return ve}),l.d(Q,"d",function(){return de}),l.d(Q,"f",function(){return k}),l.d(Q,"a",function(){return me}),l.d(Q,"b",function(){return j}),l.d(Q,"e",function(){return Y});var U=function(){var W=function(_,y){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,R){C.__proto__=R}||function(C,R){for(var A in R)R.hasOwnProperty(A)&&(C[A]=R[A])},W(_,y)};return function(_,y){W(_,y);function C(){this.constructor=_}_.prototype=y===null?Object.create(y):(C.prototype=y.prototype,new C)}}(),ve={done:!0,value:void 0},de;(function(W){var _={next:function(){return ve}};function y(){return _}W.empty=y;function C(he){var ge=!1;return{next:function(){return ge?ve:(ge=!0,{done:!1,value:he})}}}W.single=C;function R(he,ge,Ie){return ge===void 0&&(ge=0),Ie===void 0&&(Ie=he.length),{next:function(){return ge>=Ie?ve:{done:!1,value:he[ge++]}}}}W.fromArray=R;function A(he){return{next:function(){var ge=he.next();return ge.done?ve:{done:!1,value:ge.value}}}}W.fromNativeIterator=A;function O(he){return he?Array.isArray(he)?W.fromArray(he):he:W.empty()}W.from=O;function T(he,ge){return{next:function(){var Ie=he.next();return Ie.done?ve:{done:!1,value:ge(Ie.value)}}}}W.map=T;function m(he,ge){return{next:function(){for(;;){var Ie=he.next();if(Ie.done)return ve;if(ge(Ie.value))return{done:!1,value:Ie.value}}}}}W.filter=m;function f(he,ge){for(var Ie=he.next();!Ie.done;Ie=he.next())ge(Ie.value)}W.forEach=f;function S(he,ge){ge===void 0&&(ge=Number.POSITIVE_INFINITY);var Ie=[];if(ge===0)return Ie;for(var xe=0,Oe=he.next();!Oe.done&&!(Ie.push(Oe.value),++xe>=ge);Oe=he.next());return Ie}W.collect=S;function L(){for(var he=[],ge=0;ge<arguments.length;ge++)he[ge]=arguments[ge];var Ie=0;return{next:function(){if(Ie>=he.length)return ve;var xe=he[Ie],Oe=xe.next();return Oe.done?(Ie++,this.next()):Oe}}}W.concat=L;function le(he){return new J(he)}W.chain=le})(de||(de={}));var J=function(){function W(_){this.it=_}return W.prototype.next=function(){return this.it.next()},W}();function k(W){return Array.isArray(W)?de.fromArray(W):W||de.empty()}var me=function(){function W(_,y,C,R){y===void 0&&(y=0),C===void 0&&(C=_.length),R===void 0&&(R=y-1),this.items=_,this.start=y,this.end=C,this.index=R}return W.prototype.first=function(){return this.index=this.start,this.current()},W.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},W.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},W}(),j=function(W){U(_,W);function _(y,C,R,A){return C===void 0&&(C=0),R===void 0&&(R=y.length),A===void 0&&(A=C-1),W.call(this,y,C,R,A)||this}return _.prototype.current=function(){return W.prototype.current.call(this)},_.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},_.prototype.first=function(){return this.index=this.start,this.current()},_.prototype.last=function(){return this.index=this.end-1,this.current()},_.prototype.parent=function(){return null},_}(me),Y=function(){function W(_,y){this.iterator=_,this.fn=y}return W.prototype.next=function(){return this.fn(this.iterator.next())},W}()},JeFH:function(Be,Q){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JK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CSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(Be,Q,l){Be.exports=l.p+"static/qrcode.54870d9b.png"},LdHM:function(Be,Q,l){"use strict";l.d(Q,"b",function(){return L}),l.d(Q,"a",function(){return he});var U=l("1OyB"),ve=l("vuIU"),de=l("Ji7U"),J=l("LK+K"),k=l("q1tI"),me=l("rePB"),j=l("Ff2n"),Y=l("ODXe"),W=l("4IlW"),_=l("bX4T"),y=l("YrtM"),C=l("TSYQ"),R=l.n(C),A=l("+nKL"),O=l("8OUc"),T=function(ye,je){var _e=ye.prefixCls,st=ye.id,St=ye.flattenOptions,tt=ye.childrenAsData,nt=ye.values,Je=ye.searchValue,Ye=ye.multiple,Ee=ye.defaultActiveFirstOption,F=ye.height,it=ye.itemHeight,Mt=ye.notFoundContent,Tt=ye.open,Ct=ye.menuItemSelectedIcon,q=ye.virtual,$=ye.onSelect,Ae=ye.onToggleOpen,Pe=ye.onActiveValue,He=ye.onScroll,Ue=ye.onMouseEnter,Qe="".concat(_e,"-item"),et=Object(y.a)(function(){return St},[Tt,St],function(Ze,se){return se[0]&&Ze[1]!==se[1]}),Dt=k.useRef(null),ct=function(se){se.preventDefault()},ot=function(se){Dt.current&&Dt.current.scrollTo({index:se})},$e=function(se){for(var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,oe=et.length,M=0;M<oe;M+=1){var D=(se+M*ne+oe)%oe,z=et[D],Z=z.group,Te=z.data;if(!Z&&!Te.disabled)return D}return-1},Lt=k.useState(function(){return $e(0)}),mt=Object(Y.a)(Lt,2),Ot=mt[0],Le=mt[1],ht=function(se){Le(se);var ne=et[se];if(!ne){Pe(null,-1);return}Pe(ne.data.value,se)};k.useEffect(function(){ht(Ee!==!1?$e(0):-1)},[et.length,Je]),k.useEffect(function(){var Ze=setTimeout(function(){if(!Ye&&Tt&&nt.size===1){var se=Array.from(nt)[0],ne=et.findIndex(function(oe){var M=oe.data;return M.value===se});ht(ne),ot(ne)}});return function(){return clearTimeout(Ze)}},[Tt]);var yt=function(se){se!==void 0&&$(se,{selected:!nt.has(se)}),Ye||Ae(!1)};if(k.useImperativeHandle(je,function(){return{onKeyDown:function(se){var ne=se.which;switch(ne){case W.a.UP:case W.a.DOWN:{var oe=0;if(ne===W.a.UP?oe=-1:ne===W.a.DOWN&&(oe=1),oe!==0){var M=$e(Ot+oe,oe);ot(M),ht(M)}break}case W.a.ENTER:{var D=et[Ot];D&&!D.data.disabled?yt(D.data.value):yt(void 0),Tt&&se.preventDefault();break}case W.a.ESC:Ae(!1)}},onKeyUp:function(){},scrollTo:function(se){ot(se)}}}),et.length===0)return k.createElement("div",{role:"listbox",id:"".concat(st,"_list"),className:"".concat(Qe,"-empty"),onMouseDown:ct},Mt);function Fe(Ze){var se=et[Ze];if(!se)return null;var ne=se.data||{},oe=ne.value,M=ne.label,D=ne.children,z=Object(_.a)(ne,!0),Z=tt?D:M;return se?k.createElement("div",Object.assign({"aria-label":typeof Z=="string"?Z:null},z,{key:Ze,role:"option",id:"".concat(st,"_list_").concat(Ze),"aria-selected":nt.has(oe)}),oe):null}return k.createElement(k.Fragment,null,k.createElement("div",{role:"listbox",id:"".concat(st,"_list"),style:{height:0,width:0,overflow:"hidden"}},Fe(Ot-1),Fe(Ot),Fe(Ot+1)),k.createElement(A.a,{itemKey:"key",ref:Dt,data:et,height:F,itemHeight:it,fullHeight:!1,onMouseDown:ct,onScroll:He,virtual:q,onMouseEnter:Ue},function(Ze,se){var ne,oe=Ze.group,M=Ze.groupOption,D=Ze.data,z=D.label,Z=D.key;if(oe)return k.createElement("div",{className:R()(Qe,"".concat(Qe,"-group"))},z!==void 0?z:Z);var Te=D.disabled,Ce=D.value,Ve=D.title,vt=D.children,bt=D.style,ft=D.className,_t=Object(j.a)(D,["disabled","value","title","children","style","className"]),Bt=nt.has(Ce),ut="".concat(Qe,"-option"),ln=R()(Qe,ut,ft,(ne={},Object(me.a)(ne,"".concat(ut,"-grouped"),M),Object(me.a)(ne,"".concat(ut,"-active"),Ot===se&&!Te),Object(me.a)(ne,"".concat(ut,"-disabled"),Te),Object(me.a)(ne,"".concat(ut,"-selected"),Bt),ne)),qt=tt?vt:z,lt=!Ct||typeof Ct=="function"||Bt;return k.createElement("div",Object.assign({},_t,{"aria-selected":Bt,className:ln,title:Ve,onMouseMove:function(){if(Ot===se||Te)return;ht(se)},onClick:function(){Te||yt(Ce)},style:bt}),k.createElement("div",{className:"".concat(ut,"-content")},qt||Ce),k.isValidElement(Ct)||Bt,lt&&k.createElement(O.a,{className:"".concat(Qe,"-option-state"),customizeIcon:Ct,customizeIconProps:{isSelected:Bt}},Bt?"\u2713":null))}))},m=k.forwardRef(T);m.displayName="OptionList";var f=m,S=function(){return null};S.isSelectOption=!0;var L=S,le=function(){return null};le.isSelectOptGroup=!0;var he=le,ge=l("VTBJ"),Ie=l("Zm9Q");function xe(b){var ye=b.key,je=b.props,_e=je.children,st=je.value,St=Object(j.a)(je,["children","value"]);return Object(ge.a)({key:ye,value:st!==void 0?st:ye,children:_e},St)}function Oe(b){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(Ie.a)(b).map(function(je,_e){if(!k.isValidElement(je)||!je.type)return null;var st=je.type.isSelectOptGroup,St=je.key,tt=je.props,nt=tt.children,Je=Object(j.a)(tt,["children"]);return ye||!st?xe(je):Object(ge.a)(Object(ge.a)({key:"__RC_SELECT_GRP__".concat(St===null?_e:St,"__"),label:St},Je),{},{options:Oe(nt)})}).filter(function(je){return je})}var Ge=l("2Qr1"),ue=l("qNPg"),P=l("U8pU"),Re=l("Kwbf"),fe=l("WKfj");function V(b){var ye=b.mode,je=b.options,_e=b.children,st=b.backfill,St=b.allowClear,tt=b.placeholder,nt=b.getInputElement,Je=b.showSearch,Ye=b.onSearch,Ee=b.defaultOpen,F=b.autoFocus,it=b.labelInValue,Mt=b.value,Tt=b.inputValue,Ct=b.optionLabelProp,q=ye==="multiple"||ye==="tags",$=Je!==void 0?Je:q||ye==="combobox",Ae=je||Oe(_e);if(Object(Re.a)(ye!=="tags"||Ae.every(function(Qe){return!Qe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ye==="tags"||ye==="combobox"){var Pe=Ae.some(function(Qe){return Qe.options?Qe.options.some(function(et){return typeof("value"in et?et.value:et.key)=="number"}):typeof("value"in Qe?Qe.value:Qe.key)=="number"});Object(Re.a)(!Pe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(Re.a)(ye!=="combobox"||!Ct,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(Re.a)(ye==="combobox"||!st,"`backfill` only works with `combobox` mode."),Object(Re.a)(ye==="combobox"||!nt,"`getInputElement` only work with `combobox` mode."),Object(Re.b)(ye!=="combobox"||!nt||!St||!tt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ye&&!$&&ye!=="combobox"&&ye!=="tags"&&Object(Re.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(Re.b)(!Ee||F,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Mt!=null){var He=Object(fe.d)(Mt);Object(Re.a)(!it||He.every(function(Qe){return Object(P.a)(Qe)==="object"&&("key"in Qe||"value"in Qe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(Re.a)(!q||Array.isArray(Mt),"`value` should be array when `mode` is `multiple` or `tags`")}if(_e){var Ue=null;Object(Ie.a)(_e).some(function(Qe){if(!k.isValidElement(Qe)||!Qe.type)return!1;var et=Qe.type;if(et.isSelectOption)return!1;if(et.isSelectOptGroup){var Dt=Object(Ie.a)(Qe.props.children).every(function(ct){return!k.isValidElement(ct)||!Qe.type||ct.type.isSelectOption?!0:(Ue=ct.type,!1)});return!Dt}return Ue=et,!0}),Ue&&Object(Re.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ue.displayName||Ue.name||Ue,"`.")),Object(Re.a)(Tt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var ce=V,we=Object(ue.a)({prefixCls:"rc-select",components:{optionList:f},convertChildrenToData:Oe,flattenOptions:Ge.d,getLabeledValue:Ge.e,filterOptions:Ge.b,isValueDisabled:Ge.g,findValueOption:Ge.c,warningProps:ce,fillOptionsWithMissingValue:Ge.a}),ie=function(b){Object(de.a)(je,b);var ye=Object(J.a)(je);function je(){var _e;return Object(U.a)(this,je),_e=ye.apply(this,arguments),_e.selectRef=k.createRef(),_e.focus=function(){_e.selectRef.current.focus()},_e.blur=function(){_e.selectRef.current.blur()},_e}return Object(ve.a)(je,[{key:"render",value:function(){return k.createElement(we,Object.assign({ref:this.selectRef},this.props))}}]),je}(k.Component);ie.Option=L,ie.OptGroup=he;var De=ie,I=Q.c=De},M8RZ:function(Be,Q,l){"use strict";l.d(Q,"a",function(){return W});var U=l("fWQN"),ve=l("mtLc"),de=l("yKVA"),J=l("879j"),k=l("q1tI"),me=l.n(k),j=l("i8i4"),Y=l.n(j),W=function(_){Object(de.a)(C,_);var y=Object(J.a)(C);function C(R){var A;Object(U.a)(this,C),A=y.call(this,R);var O=window.document;return A.node=O.createElement("div"),O.body.appendChild(A.node),A}return Object(ve.a)(C,[{key:"render",value:function(){var A=this.props.children;return Object(j.createPortal)(A,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),C}(me.a.Component)},MI8n:function(Be,Q,l){"use strict";l.d(Q,"b",function(){return me}),l.d(Q,"a",function(){return W}),l.d(Q,"e",function(){return _}),l.d(Q,"d",function(){return y}),l.d(Q,"c",function(){return C}),l.d(Q,"f",function(){return R});var U=l("/cxE"),ve=l("C/vA"),de=l("pmY6"),J=l("24hK"),k=function(){var A=function(O,T){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,f){m.__proto__=f}||function(m,f){for(var S in f)f.hasOwnProperty(S)&&(m[S]=f[S])},A(O,T)};return function(O,T){A(O,T);function m(){this.constructor=O}O.prototype=T===null?Object.create(T):(m.prototype=T.prototype,new m)}}(),me;(function(A){A.None=function(){return de.a.None};function O(ce){return function(we,ie,De){ie===void 0&&(ie=null);var I=!1,b;return b=ce(function(ye){return I?void 0:(b?b.dispose():I=!0,we.call(ie,ye))},null,De),I&&b.dispose(),b}}A.once=O;function T(ce,we){return he(function(ie,De,I){return De===void 0&&(De=null),ce(function(b){return ie.call(De,we(b))},null,I)})}A.map=T;function m(ce,we){return he(function(ie,De,I){return De===void 0&&(De=null),ce(function(b){we(b),ie.call(De,b)},null,I)})}A.forEach=m;function f(ce,we){return he(function(ie,De,I){return De===void 0&&(De=null),ce(function(b){return we(b)&&ie.call(De,b)},null,I)})}A.filter=f;function S(ce){return ce}A.signal=S;function L(){for(var ce=[],we=0;we<arguments.length;we++)ce[we]=arguments[we];return function(ie,De,I){return De===void 0&&(De=null),de.e.apply(void 0,ce.map(function(b){return b(function(ye){return ie.call(De,ye)},null,I)}))}}A.any=L;function le(ce,we,ie){var De=ie;return T(ce,function(I){return De=we(De,I),De})}A.reduce=le;function he(ce){var we,ie=new W({onFirstListenerAdd:function(){we=ce(ie.fire,ie)},onLastListenerRemove:function(){we.dispose()}});return ie.event}A.snapshot=he;function ge(ce,we,ie,De,I){ie===void 0&&(ie=100),De===void 0&&(De=!1);var b,ye=void 0,je=void 0,_e=0,st=new W({leakWarningThreshold:I,onFirstListenerAdd:function(){b=ce(function(St){_e++,ye=we(ye,St),De&&!je&&(st.fire(ye),ye=void 0),clearTimeout(je),je=setTimeout(function(){var tt=ye;ye=void 0,je=void 0,(!De||_e>1)&&st.fire(tt),_e=0},ie)})},onLastListenerRemove:function(){b.dispose()}});return st.event}A.debounce=ge;function Ie(ce){var we=new Date().getTime();return T(O(ce),function(ie){return new Date().getTime()-we})}A.stopwatch=Ie;function xe(ce){var we=!0,ie;return f(ce,function(De){var I=we||De!==ie;return we=!1,ie=De,I})}A.latch=xe;function Oe(ce,we,ie){we===void 0&&(we=!1),ie===void 0&&(ie=[]);var De=ie.slice(),I=ce(function(je){De?De.push(je):ye.fire(je)}),b=function(){De&&De.forEach(function(je){return ye.fire(je)}),De=null},ye=new W({onFirstListenerAdd:function(){I||(I=ce(function(je){return ye.fire(je)}))},onFirstListenerDidAdd:function(){De&&(we?setTimeout(b):b())},onLastListenerRemove:function(){I&&I.dispose(),I=null}});return ye.event}A.buffer=Oe;var Ge=function(){function ce(we){this.event=we}return ce.prototype.map=function(we){return new ce(T(this.event,we))},ce.prototype.forEach=function(we){return new ce(m(this.event,we))},ce.prototype.filter=function(we){return new ce(f(this.event,we))},ce.prototype.reduce=function(we,ie){return new ce(le(this.event,we,ie))},ce.prototype.latch=function(){return new ce(xe(this.event))},ce.prototype.debounce=function(we,ie,De,I){return ie===void 0&&(ie=100),De===void 0&&(De=!1),new ce(ge(this.event,we,ie,De,I))},ce.prototype.on=function(we,ie,De){return this.event(we,ie,De)},ce.prototype.once=function(we,ie,De){return O(this.event)(we,ie,De)},ce}();function ue(ce){return new Ge(ce)}A.chain=ue;function P(ce,we,ie){ie===void 0&&(ie=function(je){return je});var De=function(){for(var je=[],_e=0;_e<arguments.length;_e++)je[_e]=arguments[_e];return ye.fire(ie.apply(void 0,je))},I=function(){return ce.on(we,De)},b=function(){return ce.removeListener(we,De)},ye=new W({onFirstListenerAdd:I,onLastListenerRemove:b});return ye.event}A.fromNodeEventEmitter=P;function Re(ce,we,ie){ie===void 0&&(ie=function(je){return je});var De=function(){for(var je=[],_e=0;_e<arguments.length;_e++)je[_e]=arguments[_e];return ye.fire(ie.apply(void 0,je))},I=function(){return ce.addEventListener(we,De)},b=function(){return ce.removeEventListener(we,De)},ye=new W({onFirstListenerAdd:I,onLastListenerRemove:b});return ye.event}A.fromDOMEventEmitter=Re;function fe(ce){var we=new W,ie=!1;return ce.then(void 0,function(){return null}).then(function(){ie?we.fire(void 0):setTimeout(function(){return we.fire(void 0)},0)}),ie=!0,we.event}A.fromPromise=fe;function V(ce){return new Promise(function(we){return O(ce)(we)})}A.toPromise=V})(me||(me={}));var j=-1,Y=function(){function A(O,T){T===void 0&&(T=Math.random().toString(18).slice(2,5)),this.customThreshold=O,this.name=T,this._warnCountdown=0}return A.prototype.dispose=function(){this._stacks&&this._stacks.clear()},A.prototype.check=function(O){var T=this,m=j;if(typeof this.customThreshold=="number"&&(m=this.customThreshold),m<=0||O<m)return;this._stacks||(this._stacks=new Map);var f=new Error().stack.split(`
`).slice(3).join(`
`),S=this._stacks.get(f)||0;if(this._stacks.set(f,S+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=m*.5;var L,le=0;this._stacks.forEach(function(he,ge){(!L||le<he)&&(L=ge,le=he)}),console.warn("["+this.name+"] potential listener LEAK detected, having "+O+" listeners already. MOST frequent listener ("+le+"):"),console.warn(L)}return function(){var he=T._stacks.get(f)||0;T._stacks.set(f,he-1)}},A}(),W=function(){function A(O){this._disposed=!1,this._options=O,this._leakageMon=j>0?new Y(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(A.prototype,"event",{get:function(){var O=this;return this._event||(this._event=function(T,m,f){O._listeners||(O._listeners=new J.a);var S=O._listeners.isEmpty();S&&O._options&&O._options.onFirstListenerAdd&&O._options.onFirstListenerAdd(O);var L=O._listeners.push(m?[T,m]:T);S&&O._options&&O._options.onFirstListenerDidAdd&&O._options.onFirstListenerDidAdd(O),O._options&&O._options.onListenerDidAdd&&O._options.onListenerDidAdd(O,T,m);var le;O._leakageMon&&(le=O._leakageMon.check(O._listeners.size));var he;return he={dispose:function(){if(le&&le(),he.dispose=A._noop,!O._disposed&&(L(),O._options&&O._options.onLastListenerRemove)){var ge=O._listeners&&!O._listeners.isEmpty();ge||O._options.onLastListenerRemove(O)}}},f instanceof de.b?f.add(he):Array.isArray(f)&&f.push(he),he}),this._event},enumerable:!0,configurable:!0}),A.prototype.fire=function(O){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new J.a);for(var T=this._listeners.iterator(),m=T.next();!m.done;m=T.next())this._deliveryQueue.push([m.value,O]);for(;this._deliveryQueue.size>0;){var f=this._deliveryQueue.shift(),S=f[0],L=f[1];try{typeof S=="function"?S.call(void 0,L):S[0].call(S[1],L)}catch(le){Object(U.e)(le)}}}},A.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},A._noop=function(){},A}(),_=function(A){k(O,A);function O(T){var m=A.call(this,T)||this;return m._isPaused=0,m._eventQueue=new J.a,m._mergeFn=T&&T.merge,m}return O.prototype.pause=function(){this._isPaused++},O.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var T=this._eventQueue.toArray();this._eventQueue.clear(),A.prototype.fire.call(this,this._mergeFn(T))}else for(;!this._isPaused&&this._eventQueue.size!==0;)A.prototype.fire.call(this,this._eventQueue.shift())},O.prototype.fire=function(T){this._listeners&&(this._isPaused!==0?this._eventQueue.push(T):A.prototype.fire.call(this,T))},O}(W),y=function(){function A(){var O=this;this.hasListeners=!1,this.events=[],this.emitter=new W({onFirstListenerAdd:function(){return O.onFirstListenerAdd()},onLastListenerRemove:function(){return O.onLastListenerRemove()}})}return Object.defineProperty(A.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),A.prototype.add=function(O){var T=this,m={event:O,listener:null};this.events.push(m),this.hasListeners&&this.hook(m);var f=function(){T.hasListeners&&T.unhook(m);var S=T.events.indexOf(m);T.events.splice(S,1)};return Object(de.h)(Object(ve.a)(f))},A.prototype.onFirstListenerAdd=function(){var O=this;this.hasListeners=!0,this.events.forEach(function(T){return O.hook(T)})},A.prototype.onLastListenerRemove=function(){var O=this;this.hasListeners=!1,this.events.forEach(function(T){return O.unhook(T)})},A.prototype.hook=function(O){var T=this;O.listener=O.event(function(m){return T.emitter.fire(m)})},A.prototype.unhook=function(O){O.listener&&O.listener.dispose(),O.listener=null},A.prototype.dispose=function(){this.emitter.dispose()},A}(),C=function(){function A(){this.buffers=[]}return A.prototype.wrapEvent=function(O){var T=this;return function(m,f,S){return O(function(L){var le=T.buffers[T.buffers.length-1];le?le.push(function(){return m.call(f,L)}):m.call(f,L)},void 0,S)}},A.prototype.bufferEvents=function(O){var T=[];this.buffers.push(T);var m=O();return this.buffers.pop(),T.forEach(function(f){return f()}),m},A}(),R=function(){function A(){var O=this;this.listening=!1,this.inputEvent=me.None,this.inputEventListener=de.a.None,this.emitter=new W({onFirstListenerDidAdd:function(){O.listening=!0,O.inputEventListener=O.inputEvent(O.emitter.fire,O.emitter)},onLastListenerRemove:function(){O.listening=!1,O.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(A.prototype,"input",{set:function(O){this.inputEvent=O,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=O(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),A.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},A}()},N0LK:function(Be,Q,l){"use strict";l.d(Q,"x",function(){return U}),l.d(Q,"F",function(){return ve}),l.d(Q,"r",function(){return J}),l.d(Q,"o",function(){return k}),l.d(Q,"p",function(){return me}),l.d(Q,"Q",function(){return j}),l.d(Q,"K",function(){return W}),l.d(Q,"k",function(){return _}),l.d(Q,"N",function(){return y}),l.d(Q,"m",function(){return C}),l.d(Q,"l",function(){return R}),l.d(Q,"I",function(){return A}),l.d(Q,"H",function(){return O}),l.d(Q,"q",function(){return T}),l.d(Q,"t",function(){return m}),l.d(Q,"D",function(){return f}),l.d(Q,"e",function(){return S}),l.d(Q,"f",function(){return L}),l.d(Q,"B",function(){return le}),l.d(Q,"C",function(){return he}),l.d(Q,"n",function(){return Ie}),l.d(Q,"O",function(){return Oe}),l.d(Q,"c",function(){return Ge}),l.d(Q,"d",function(){return ue}),l.d(Q,"z",function(){return P}),l.d(Q,"A",function(){return Re}),l.d(Q,"u",function(){return fe}),l.d(Q,"E",function(){return ce}),l.d(Q,"G",function(){return we}),l.d(Q,"i",function(){return De}),l.d(Q,"g",function(){return b}),l.d(Q,"v",function(){return je}),l.d(Q,"h",function(){return _e}),l.d(Q,"y",function(){return st}),l.d(Q,"w",function(){return St}),l.d(Q,"a",function(){return tt}),l.d(Q,"P",function(){return nt}),l.d(Q,"L",function(){return Je}),l.d(Q,"J",function(){return Ye}),l.d(Q,"j",function(){return Ee}),l.d(Q,"M",function(){return F}),l.d(Q,"s",function(){return it}),l.d(Q,"b",function(){return Mt});function U(q){return!q||typeof q!="string"?!0:q.trim().length===0}function ve(q,$,Ae){Ae===void 0&&(Ae="0");for(var Pe=""+q,He=[Pe],Ue=Pe.length;Ue<$;Ue++)He.push(Ae);return He.reverse().join("")}var de=/{(\d+)}/g;function J(q){for(var $=[],Ae=1;Ae<arguments.length;Ae++)$[Ae-1]=arguments[Ae];return $.length===0?q:q.replace(de,function(Pe,He){var Ue=parseInt(He,10);return isNaN(Ue)||Ue<0||Ue>=$.length?Pe:$[Ue]})}function k(q){return q.replace(/[<>&]/g,function($){switch($){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return $}})}function me(q){return q.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function j(q,$){$===void 0&&($=" ");var Ae=Y(q,$);return W(Ae,$)}function Y(q,$){if(!q||!$)return q;var Ae=$.length;if(Ae===0||q.length===0)return q;for(var Pe=0;q.indexOf($,Pe)===Pe;)Pe=Pe+Ae;return q.substring(Pe)}function W(q,$){if(!q||!$)return q;var Ae=$.length,Pe=q.length;if(Ae===0||Pe===0)return q;for(var He=Pe,Ue=-1;!(Ue=q.lastIndexOf($,He-1),Ue===-1||Ue+Ae!==He);){if(Ue===0)return"";He=Ue}return q.substring(0,He)}function _(q){return q.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function y(q,$){if(q.length<$.length)return!1;if(q===$)return!0;for(var Ae=0;Ae<$.length;Ae++)if(q[Ae]!==$[Ae])return!1;return!0}function C(q,$){var Ae=q.length-$.length;return Ae>0?q.indexOf($,Ae)===Ae:Ae===0?q===$:!1}function R(q,$,Ae){if(Ae===void 0&&(Ae={}),!q)throw new Error("Cannot create regex from empty string");$||(q=me(q)),Ae.wholeWord&&(/\B/.test(q.charAt(0))||(q="\\b"+q),/\B/.test(q.charAt(q.length-1))||(q=q+"\\b"));var Pe="";return Ae.global&&(Pe+="g"),Ae.matchCase||(Pe+="i"),Ae.multiline&&(Pe+="m"),Ae.unicode&&(Pe+="u"),new RegExp(q,Pe)}function A(q){if(q.source==="^"||q.source==="^$"||q.source==="$"||q.source==="^\\s*$")return!1;var $=q.exec("");return!!($&&q.lastIndex===0)}function O(q){return(q.global?"g":"")+(q.ignoreCase?"i":"")+(q.multiline?"m":"")+(q.unicode?"u":"")}function T(q){for(var $=0,Ae=q.length;$<Ae;$++){var Pe=q.charCodeAt($);if(Pe!==32&&Pe!==9)return $}return-1}function m(q,$,Ae){$===void 0&&($=0),Ae===void 0&&(Ae=q.length);for(var Pe=$;Pe<Ae;Pe++){var He=q.charCodeAt(Pe);if(He!==32&&He!==9)return q.substring($,Pe)}return q.substring($,Ae)}function f(q,$){$===void 0&&($=q.length-1);for(var Ae=$;Ae>=0;Ae--){var Pe=q.charCodeAt(Ae);if(Pe!==32&&Pe!==9)return Ae}return-1}function S(q,$){return q<$?-1:q>$?1:0}function L(q,$){for(var Ae=Math.min(q.length,$.length),Pe=0;Pe<Ae;Pe++){var He=q.charCodeAt(Pe),Ue=$.charCodeAt(Pe);if(He===Ue)continue;he(He)&&(He+=32),he(Ue)&&(Ue+=32);var Qe=He-Ue;if(Qe===0)continue;return le(He)&&le(Ue)?Qe:S(q.toLowerCase(),$.toLowerCase())}return q.length<$.length?-1:q.length>$.length?1:0}function le(q){return q>=97&&q<=122}function he(q){return q>=65&&q<=90}function ge(q){return le(q)||he(q)}function Ie(q,$){return q.length===$.length&&xe(q,$)}function xe(q,$,Ae){Ae===void 0&&(Ae=q.length);for(var Pe=0;Pe<Ae;Pe++){var He=q.charCodeAt(Pe),Ue=$.charCodeAt(Pe);if(He===Ue)continue;if(ge(He)&&ge(Ue)){var Qe=Math.abs(He-Ue);if(Qe!==0&&Qe!==32)return!1}else if(String.fromCharCode(He).toLowerCase()!==String.fromCharCode(Ue).toLowerCase())return!1}return!0}function Oe(q,$){var Ae=$.length;return $.length>q.length?!1:xe(q,$,Ae)}function Ge(q,$){var Ae,Pe=Math.min(q.length,$.length);for(Ae=0;Ae<Pe;Ae++)if(q.charCodeAt(Ae)!==$.charCodeAt(Ae))return Ae;return Pe}function ue(q,$){var Ae,Pe=Math.min(q.length,$.length),He=q.length-1,Ue=$.length-1;for(Ae=0;Ae<Pe;Ae++)if(q.charCodeAt(He-Ae)!==$.charCodeAt(Ue-Ae))return Ae;return Pe}function P(q){return 55296<=q&&q<=56319}function Re(q){return 56320<=q&&q<=57343}function fe(q,$,Ae){var Pe=q.charCodeAt(Ae);if(P(Pe)&&Ae+1<$){var He=q.charCodeAt(Ae+1);if(Re(He))return(Pe-55296<<10)+(He-56320)+65536}return Pe}function V(q,$){var Ae=q.charCodeAt($-1);if(Re(Ae)&&$>1){var Pe=q.charCodeAt($-2);if(P(Pe))return(Pe-55296<<10)+(Ae-56320)+65536}return Ae}function ce(q,$){var Ae=Tt.getInstance(),Pe=$,He=q.length,Ue=fe(q,He,$);$+=Ue>=65536?2:1;for(var Qe=Ae.getGraphemeBreakType(Ue);$<He;){var et=fe(q,He,$),Dt=Ae.getGraphemeBreakType(et);if(Mt(Qe,Dt))break;$+=et>=65536?2:1,Qe=Dt}return $-Pe}function we(q,$){var Ae=Tt.getInstance(),Pe=$,He=V(q,$);$-=He>=65536?2:1;for(var Ue=Ae.getGraphemeBreakType(He);$>0;){var Qe=V(q,$),et=Ae.getGraphemeBreakType(Qe);if(Mt(et,Ue))break;$-=Qe>=65536?2:1,Ue=et}return Pe-$}var ie=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function De(q){return ie.test(q)}var I=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function b(q){return I.test(q)}var ye=/^[\t\n\r\x20-\x7E]*$/;function je(q){return ye.test(q)}function _e(q){for(var $=0,Ae=q.length;$<Ae;$++)if(st(q.charCodeAt($)))return!0;return!1}function st(q){return q=+q,q>=11904&&q<=55215||q>=63744&&q<=64255||q>=65281&&q<=65374}function St(q){return q>=127462&&q<=127487||q>=9728&&q<=10175||q>=127744&&q<=128591||q>=128640&&q<=128764||q>=128992&&q<=129003||q>=129280&&q<=129535||q>=129648&&q<=129651||q>=129656&&q<=129666||q>=129680&&q<=129685}var tt=String.fromCharCode(65279);function nt(q){return!!(q&&q.length>0&&q.charCodeAt(0)===65279)}function Je(q){return btoa(encodeURIComponent(q))}function Ye(q,$){for(var Ae="",Pe=0;Pe<$;Pe++)Ae+=q;return Ae}function Ee(q,$){return $===void 0&&($=!1),q?($&&(q=q.replace(/\\./g,"")),q.toLowerCase()!==q):!1}function F(q){var $=90-65+1;return q=q%(2*$),q<$?String.fromCharCode(97+q):String.fromCharCode(65+q-$)}function it(q){var $=Tt.getInstance();return $.getGraphemeBreakType(q)}function Mt(q,$){return q===0?$!==5&&$!==7:q===2&&$===3?!1:q===4||q===2||q===3||($===4||$===2||$===3)?!0:q===8&&($===8||$===9||$===11||$===12)||((q===11||q===9)&&($===9||$===10)||((q===12||q===10)&&$===10||($===5||$===13||($===7||(q===1||q===13&&$===14)))))?!1:!(q===6&&$===6)}var Tt=function(){function q(){this._data=Ct()}return q.getInstance=function(){return q._INSTANCE||(q._INSTANCE=new q),q._INSTANCE},q.prototype.getGraphemeBreakType=function($){if($<32)return $===10?3:$===13?2:4;if($<127)return 0;for(var Ae=this._data,Pe=Ae.length/3,He=1;He<=Pe;)if($<Ae[3*He])He=2*He;else if($>Ae[3*He+1])He=2*He+1;else return Ae[3*He+2];return 0},q._INSTANCE=null,q}();function Ct(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},Nmxd:function(Be,Q){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeN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1iz7qurxBlmDlrxlb5Pl5z8iC8LIVuHmjoueEtqjvddBwDa6JWHCQlnwyjjAu7wtxjPRK+4Ta7Y6XPskpvDqJLUdoMdTWTJOX9kWs+2bL9pN89U3GTdn3WKKxpvTmRuWglmPpKOtK91IiQ73vvJFL/YCa5UbLaVaDzXXTP2p4tmjvGREYnbruOgrn7MwKvlEg9gvLpG1E2000ntKNh5O82EznQobvkVF9S732LIgus6rg0RHTNCsdYJA7oWB7jLJdlOIxzfUwwbTHY+zSy+ccldAkbtRjimThroCYAzA46bqUl6JmxOh+IH8mbq1K65NXLuIIAnymqAMQbyNRrhtvT0qkQgqe4lRof7RHKdEe6Y9XEe0NVDBLzsnrMwcmbp/rOs8lXPQtzODHhY+/9LEq0aCcV0M22wX21jge5yiwdwGVW+RuPZnGUVM9FkP+NlYesaIFcJ8s+TLM9UQDwY1JYOx6Y3QPLXRpNqPzEiHpJfBOAD8KgHjoJQs3VIh+Kzlj3zDCzp63zEJ8QgCHeXW4AnPsZvGSkbLjR3/DCT5/+3vD7lTkl0bQHRPk9PrVxg5q1GpL3gZkvpLaZU93qW8r/dYhJiw3DTNudbTFMPb1lf5xIpxHEQ7i/XA7XFw/hZSLlmqLn094flLqWZzNzcZikO/JvbrCTkJjub3rYMZJ8YgwJJbSuBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},OLES:function(Be,Q,l){"use strict";var U=l("U8pU"),ve=l("VTBJ"),de=l("Ff2n"),J=l("q1tI"),k=l("uciX"),me=l("7ixt"),j=function(R){var A=R.overlay,O=R.prefixCls,T=R.id,m=R.overlayInnerStyle;return J.createElement("div",{className:"".concat(O,"-inner"),id:T,role:"tooltip",style:m},typeof A=="function"?A():A)},Y=j,W=function(R,A){var O=R.overlayClassName,T=R.trigger,m=T===void 0?["hover"]:T,f=R.mouseEnterDelay,S=f===void 0?0:f,L=R.mouseLeaveDelay,le=L===void 0?.1:L,he=R.overlayStyle,ge=R.prefixCls,Ie=ge===void 0?"rc-tooltip":ge,xe=R.children,Oe=R.onVisibleChange,Ge=R.afterVisibleChange,ue=R.transitionName,P=R.animation,Re=R.placement,fe=Re===void 0?"right":Re,V=R.align,ce=V===void 0?{}:V,we=R.destroyTooltipOnHide,ie=we===void 0?!1:we,De=R.defaultVisible,I=R.getTooltipContainer,b=R.overlayInnerStyle,ye=Object(de.a)(R,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),je=Object(J.useRef)(null);Object(J.useImperativeHandle)(A,function(){return je.current});var _e=Object(ve.a)({},ye);"visible"in R&&(_e.popupVisible=R.visible);var st=function(){var Ye=R.arrowContent,Ee=Ye===void 0?null:Ye,F=R.overlay,it=R.id;return[J.createElement("div",{className:"".concat(Ie,"-arrow"),key:"arrow"},Ee),J.createElement(Y,{key:"content",prefixCls:Ie,id:it,overlay:F,overlayInnerStyle:b})]},St=!1,tt=!1;if(typeof ie=="boolean")St=ie;else if(ie&&Object(U.a)(ie)==="object"){var nt=ie.keepParent;St=nt===!0,tt=nt===!1}return J.createElement(k.a,Object.assign({popupClassName:O,prefixCls:Ie,popup:st,action:m,builtinPlacements:me.a,popupPlacement:fe,ref:je,popupAlign:ce,getPopupContainer:I,onPopupVisibleChange:Oe,afterPopupVisibleChange:Ge,popupTransitionName:ue,popupAnimation:P,defaultPopupVisible:De,destroyPopupOnHide:St,autoDestroy:tt,mouseLeaveDelay:le,popupStyle:he,mouseEnterDelay:S},_e),xe)},_=Object(J.forwardRef)(W),y=Q.a=_},Ohmc:function(Be,Q,l){Be.exports=l.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(Be,Q,l){"use strict";var U=l("2qtc"),ve=l("kLXV"),de=l("rAM+"),J=l("miYZ"),k=l("tsqr"),me=l("9og8"),j=l("tJVT"),Y=l("jrin"),W=l("WmNS"),_=l.n(W),y=l("q1tI"),C=l.n(y),R=l("VrN/"),A=l.n(R),O=l("bdgK"),T=l("p77/"),m=l("Bd2K"),f=l("ELLl"),S=l("19Vz"),L=l("lZu9"),le=l("+NIl"),he=l("kSUc"),ge=l("9Bee"),Ie=function(Ce){var Ve=Ce.value,vt=Ve===void 0?"":Ve,bt=Ce.className,ft=Ce.showTextOnly,_t=Ce.showLines,Bt=Ce.style,ut=Bt===void 0?{}:Bt,ln=Object(y.useMemo)(function(){return""},[vt]);return C.a.createElement(C.a.Fragment,null,C.a.createElement("div",{dangerouslySetInnerHTML:{__html:ln}}))},xe=l("0Owb"),Oe=l("dejd"),Ge=l("C+DQ"),ue=l("1vsH"),P=l("m3rI"),Re=[{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 fe(Ce){var Ve=Ce.onActionCallback,vt=Ce.title,bt=Ce.icon,ft=Ce.actionName,_t=Ce.className,Bt=_t===void 0?"":_t,ut=Ce.children;function ln(){Ve(ft)}return C.a.createElement("a",{title:vt,className:Bt,onClick:ln},C.a.createElement("i",{className:"md-iconfont ".concat(bt)}),ut)}var V=function(Ce){var Ve=Ce.watch,vt=Ce.showNullButton,bt=Ce.onActionCallback,ft=Ce.fullScreen,_t=Ce.insertTemp,Bt=Ce.hidetoolBar,ut=Ce.uuid,ln=Ce.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(ue.D)("_educoder_session_login"),"&_educoder_session=").concat(Object(ue.D)("_educoder_session"),"&key=").concat(ut,"&api=").concat(encodeURIComponent(P.a.PROXY_SERVER)));var qt=[].concat(Re,[{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 C.a.createElement("ul",{className:"markdown-toolbar-container"},!Bt&&qt.map(function(lt,mn){return C.a.createElement("li",{key:mn},lt.actionName?C.a.createElement(fe,Object(xe.a)({},lt,{onActionCallback:bt})):C.a.createElement("span",{className:"v-line"}))}),vt?C.a.createElement("li",null,C.a.createElement(fe,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:bt},C.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,_t&&C.a.createElement("li",null,C.a.createElement(fe,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(_t),onActionCallback:bt},C.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),C.a.createElement("li",{className:"btn-full-screen"},C.a.createElement(fe,{icon:"".concat(ft?"icon-shrink":"icon-enlarge"),title:ft?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:bt})))},ce=l("M8RZ"),we=l("+L6B"),ie=l("2/Rp"),De=l("y8nQ"),I=l("Vl3Y"),b=l("5NDa"),ye=l("5rEg"),je={labelCol:{span:4},wrapperCol:{span:20}},_e=function(Ce){var Ve=Ce.callback,vt=Ce.onCancel;function bt(ft){Ve(ft)}return C.a.createElement(I.a,Object(xe.a)({},je,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:bt}),C.a.createElement(I.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},C.a.createElement(ye.a,null)),C.a.createElement(I.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},C.a.createElement(ye.a,null)),C.a.createElement("div",{className:"flex-container flex-end"},C.a.createElement(ie.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),C.a.createElement(ie.a,{type:"ghost",onClick:vt},"\u53D6\u6D88")))},st=l("7ahc"),St=l("k1fw"),tt=l("HmJG"),nt=l("BjJ7"),Je=I.a.useForm,Ye={width:280,marginRight:10},Ee={labelCol:{span:5},wrapperCol:{span:19}},F=function(Ce){var Ve=Ce.callback,vt=Ce.onCancel,bt=Je(),ft=Object(j.a)(bt,1),_t=ft[0],Bt=Object(y.useRef)();function ut(lt){Ve(Object(St.a)(Object(St.a)({},lt),{},{name:Bt.current}))}function ln(lt,mn){_t.setFieldsValue({src:"/api/attachments/".concat(lt.id,"?type=").concat(lt.content_type),type:mn.type})}function qt(lt){var mn=lt.target.files[0];Bt.current=mn.name,Mt(mn,ln)}return C.a.createElement(I.a,Object(xe.a)({form:_t},Ee,{className:"upload-image-panel",onFinish:ut}),C.a.createElement(I.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},C.a.createElement("div",{className:"flex-container"},C.a.createElement(I.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},C.a.createElement(ye.a,{style:Ye})),C.a.createElement(it,{onFileChange:qt}))),C.a.createElement(I.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},C.a.createElement(ye.a,{style:{width:264}})),C.a.createElement(I.a.Item,{style:{textAlign:"right"}},C.a.createElement(ie.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),C.a.createElement(ie.a,{type:"ghost",onClick:vt},"\u53D6\u6D88")))};function it(Ce){var Ve=Ce.onFileChange;return C.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",C.a.createElement("input",{type:"file",onChange:Ve}))}function Mt(Ce,Ve){if(!Ce)throw new String("\u6CA1\u6709\u6587\u4EF6");var vt=new FormData;vt.append("editormd-image-file",Ce),vt.append("file_param_name","editormd-image-file"),vt.append("byxhr","true");var bt=new window.XMLHttpRequest;bt.withCredentials=!0,bt.addEventListener("load",function(ft){Ve(JSON.parse(ft.target.responseText),Ce)},!1),bt.addEventListener("error",function(ft){console.error(ft)},!1),bt.open("POST","".concat(nt.a,"/api/attachments.json")),bt.send(vt)}var Tt=l("giR+"),Ct=l("fyUT"),q=l("7Kak"),$=l("9yH6"),Ae=$.a.Group,Pe={margin:"0 8px"},He=function(Ce){var Ve=Ce.callback,vt=Ce.onCancel;function bt(ft){Ve(ft)}return C.a.createElement(I.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:bt},C.a.createElement("div",{className:"flex-container"},C.a.createElement("span",{style:Pe},"\u5355\u5143\u683C\u6570\uFF1A"),C.a.createElement("span",{style:Pe},"\u884C\u6570"),C.a.createElement(I.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},C.a.createElement(Ct.a,null)),C.a.createElement("span",{style:Pe},"\u5217\u6570"),C.a.createElement(I.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},C.a.createElement(Ct.a,null))),C.a.createElement("div",{className:"flex-container",style:{marginTop:12}},C.a.createElement("span",{style:Pe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),C.a.createElement(I.a.Item,{name:"align"},C.a.createElement(Ae,null,C.a.createElement($.a,{value:"default"},C.a.createElement("i",{className:"fa fa-align-justify"})),C.a.createElement($.a,{value:"left"},C.a.createElement("i",{className:"fa fa-align-left"})),C.a.createElement($.a,{value:"center"},C.a.createElement("i",{className:"fa fa-align-center"})),C.a.createElement($.a,{value:"right"},C.a.createElement("i",{className:"fa fa-align-right"}))))),C.a.createElement("div",{className:"flex-container flex-end"},C.a.createElement(ie.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),C.a.createElement(ie.a,{type:"ghost",onClick:vt},"\u53D6\u6D88")))},Ue=l("ErOA"),Qe=l("7Cbv"),et="link",Dt="upload-image",ct="code-block",ot="add-table",$e="------------",Lt={default:$e,left:":".concat($e),center:":".concat($e,":"),right:"".concat($e,":")},mt=l("9VGf"),Ot,Le;function ht(){}var yt=0,Fe=1e4,Ze="\u2581",se=`
**\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 ne(Ce){return/^\d+$/.test(Ce)?"".concat(Ce,"px"):Ce}var oe=navigator.platform.toUpperCase().indexOf("MAC")>=0,M=oe?"Cmd":"Ctrl",D=["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"],z=(Ot={},Object(Y.a)(Ot,M+"-B","bold"),Object(Y.a)(Ot,M+"-I","italic"),Ot),Z=(Le={},Object(Y.a)(Le,et,"\u6DFB\u52A0\u94FE\u63A5"),Object(Y.a)(Le,ct,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(Y.a)(Le,Dt,"\u6DFB\u52A0\u6587\u4EF6"),Object(Y.a)(Le,ot,"\u6DFB\u52A0\u8868\u683C"),Le),Te=Q.a=function(Ce){var Ve=Ce.defaultValue,vt=Ve===void 0?"":Ve,bt=Ce.onChange,ft=Ce.width,_t=ft===void 0?"100%":ft,Bt=Ce.height,ut=Bt===void 0?400:Bt,ln=Ce.miniToolbar,qt=ln===void 0?!1:ln,lt=Ce.isFocus,mn=lt===void 0?!1:lt,Kt=Ce.watch,si=Ce.insertTemp,li=Ce.mode,Ht=li===void 0?"markdown":li,Wt=Ce.id,At=Wt===void 0?"markdown-editor-id":Wt,Ft=Ce.showResizeBar,Sn=Ft===void 0?!1:Ft,Bn=Ce.noStorage,zn=Bn===void 0?!1:Bn,nn=Ce.showNullButton,It=nn===void 0?!1:nn,Mi=Ce.hidetoolBar,wi=Mi===void 0?!1:Mi,_n=Ce.fullScreen,Vt=_n===void 0?!1:_n,bn=Ce.onBlur,rn=Ce.onCMBeforeChange,gn=Ce.onFullScreen,Ne=Ce.className,pt=Ne===void 0?"":Ne,Yt=Ce.disablePaste,an=Yt===void 0?!1:Yt,Pn=Ce.placeholder,Un=Pn===void 0?"":Pn,d=Ce.values,o=d===void 0?"":d,a=Object(y.useState)(null),c=Object(j.a)(a,2),p=c[0],h=c[1],te=Object(y.useState)(vt),Ke=Object(j.a)(te,2),gt=Ke[0],Nt=Ke[1],Xe=Object(y.useState)(Kt),kt=Object(j.a)(Xe,2),Rt=kt[0],jt=kt[1],un=Object(y.useState)(Vt),wn=Object(j.a)(un,2),on=wn[0],_i=wn[1],vi=Object(y.useState)(""),Oi=Object(j.a)(vi,2),zi=Oi[0],ui=Oi[1],sr=Object(y.useState)(0),$i=Object(j.a)(sr,2),yr=$i[0],gr=$i[1],ao=Object(y.useState)(ut),Gr=Object(j.a)(ao,2),lr=Gr[0],yi=Gr[1],Sr=Object(y.useState)(!1),Pr=Object(j.a)(Sr,2),yo=Pr[0],ei=Pr[1],In=Object(y.useRef)(Object(Qe.a)()),ci=Object(y.useRef)(!1),On=Object(y.useRef)(),di=Object(y.useRef)(),Fn=Object(y.useRef)(),ur=Object(y.useRef)(),hi=Object(y.useRef)(),Ui=function(){var Gt=Object(me.a)(_.a.mark(function tn(){var Qt,vn;return _.a.wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:return Gn.next=2,Object(Ue.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:In.current}});case 2:vn=Gn.sent,vn!=null&&(Qt=vn.attachments)!==null&&Qt!==void 0&&Qt.length&&(console.log("cm:",p,di),vn.attachments.map(function(kn){kn.content_type.indexOf("image")>-1?p.replaceSelection("![,](/api/attachments/".concat(kn.id,"?type=").concat(kn.content_type,")")):kn.content_type.indexOf("video")>-1?p.replaceSelection('<video width="100%" controls src="'.concat(P.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):kn.content_type.indexOf("pdf")>-1?p.replaceSelection('<a href="'.concat(P.a.API_SERVER,"/api/attachments/").concat(kn.id,"?type=").concat(kn.content_type,'&disposition=inline" target="_blank">').concat(kn.name,"</a>")):p.replaceSelection("[".concat(kn.name,"](").concat(P.a.API_SERVER,"/api/attachments/").concat(kn.id,"?type=").concat(kn.content_type,")"))}));case 4:case"end":return Gn.stop()}},tn)}));return function(){return Gt.apply(this,arguments)}}();Object(y.useEffect)(function(){Nt(o),p==null||p.setValue(o)},[o]),Object(y.useEffect)(function(){gn==null||gn(on)},[on]),Object(y.useEffect)(function(){if(di.current){var Gt=A.a.fromTextArea(di.current,{mode:Ht,lineNumbers:!qt,lineWrapping:!0,value:vt,autoCloseTags:!0,autoCloseBrackets:!0});mn&&Gt.focus();function tn(Qt,vn){if(an){vn.preventDefault();return}var Tn=vn.clipboardData;if(Tn){var Gn=Tn.types.toString(),kn=Tn.items;if(Gn==="Files"||Tn.types.indexOf("Files")>-1){if(vn.preventDefault(),Ht=="stex")return;try{var bi,Hi=kn[1];((bi=kn[0])===null||bi===void 0?void 0:bi.kind)==="file"&&(Hi=kn[0]);var Cn=Hi.getAsFile(),kr=Cn.name.split(".").pop();Mt(Cn,function(Nn){if(Nn.id){var Ai,or,Qi;(Cn==null||((Ai=Cn.type)===null||Ai===void 0)?void 0:Ai.indexOf("image"))>-1?Gt.replaceSelection("![,](/api/attachments/".concat(Nn.id,"?type=").concat(Nn.content_type,")")):(Cn==null||((or=Cn.type)===null||or===void 0)?void 0:or.indexOf("video"))>-1?Gt.replaceSelection('<video width="100%" controls src="'.concat(P.a.API_SERVER,"/api/attachments/").concat(Nn.id,'"></video>')):(Cn==null||((Qi=Cn.type)===null||Qi===void 0)?void 0:Qi.indexOf("pdf"))>-1?Gt.replaceSelection('<a href="'.concat(P.a.API_SERVER,"/api/attachments/").concat(Nn.id,"?type=").concat(Cn.type,'&disposition=inline" target="_blank">').concat(Cn.name,"</a>")):D.includes(kr)?Gt.replaceSelection('<a href="'.concat(P.a.API_SERVER,"/api/attachments/").concat(Nn.id,'?type=office&disposition=inline" target="_blank">').concat(Cn.name,"</a>")):Gt.replaceSelection("[".concat(Cn.name,"](").concat(P.a.API_SERVER,"/api/attachments/").concat(Nn.id,"?type=").concat(Nn.content_type,")"))}else(Nn==null?void 0:Nn.status)===401&&(document.location.href="/user/login")})}catch(Nn){k.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return Gt.on("paste",tn),Gt.on("dragleave",function(Qt,vn){Fn.current.classList.remove("mouse-hover-md")}),Gt.on("dragover",function(Qt,vn){Fn.current.classList.add("mouse-hover-md")}),Gt.on("drop",function(Qt,vn){Fn.current.classList.add("mouse-hover-md");var Tn;if(Tn=vn.dataTransfer.files,Tn.length>0){vn.preventDefault(),vn.stopPropagation();for(var Gn=function(Hi){var Cn=Tn[Hi],kr=Cn.name.split(".").pop();Mt(Cn,function(Nn){if(Nn.id){var Ai,or,Qi;(Cn==null||((Ai=Cn.type)===null||Ai===void 0)?void 0:Ai.indexOf("image"))>-1?Gt.replaceSelection("![,](/api/attachments/".concat(Nn.id,"?type=").concat(Nn.content_type,")")):(Cn==null||((or=Cn.type)===null||or===void 0)?void 0:or.indexOf("video"))>-1?Gt.replaceSelection('<video width="100%" controls src="'.concat(P.a.API_SERVER,"/api/attachments/").concat(Nn.id,'"></video>')):(Cn==null||((Qi=Cn.type)===null||Qi===void 0)?void 0:Qi.indexOf("pdf"))>-1?Gt.replaceSelection('<a href="'.concat(P.a.API_SERVER,"/api/attachments/").concat(Nn.id,"?type=").concat(Cn.type,'&disposition=inline" target="_blank">').concat(Cn.name,"</a>")):D.includes(kr)?Gt.replaceSelection('<a href="'.concat(P.a.API_SERVER,"/api/attachments/").concat(Nn.id,'?type=office&disposition=inline" target="_blank">').concat(Cn.name,"</a>")):Gt.replaceSelection("[".concat(Cn.name,"](").concat(P.a.API_SERVER,"/api/attachments/").concat(Nn.id,"?type=").concat(Nn.content_type,")"))}else(Nn==null?void 0:Nn.status)===401&&(document.location.href="/user/login")})},kn=0;kn<Tn.length;kn++)Gn(kn)}}),h(Gt),function(){Gt.off("paste",tn)}}},[]);var Vr=Object(y.useCallback)(function(){if(Fn.current)try{}catch(Gt){console.log(Gt,"---- to set md editor body height")}},[lr,Fn,on]);Object(y.useEffect)(function(){function Gt(){var Qt=new O.default(function(vn){var Tn=Object(de.a)(vn),Gn;try{for(Tn.s();!(Gn=Tn.n()).done;){var kn=Gn.value;(kn.target.offsetHeight>0||kn.target.offsetWidth>0)&&(Vr(),p.setSize("100%","100%"),p.refresh())}}catch(bi){Tn.e(bi)}finally{Tn.f()}});return Qt.observe(di.current.parentElement),Qt}if(p){var tn=Gt();return function(){tn.unobserve(di.current.parentElement)}}},[p,Vr]),Object(y.useEffect)(function(){if(p){for(var Gt=[],tn=function(){var kn=vn[Qt];Tn=Object(j.a)(kn,2);var bi=Tn[0],Hi=Tn[1],Cn=Object(Y.a)({},bi,function(){Kr(Hi)});Gt.push(Cn),p.addKeyMap(Cn)},Qt=0,vn=Object.entries(z);Qt<vn.length;Qt++){var Tn;tn()}return On.current=setInterval(function(){ci.current&&Ui()},4e3),function(){clearInterval(On.current);var Gn=Object(de.a)(Gt),kn;try{for(Gn.s();!(kn=Gn.n()).done;){var bi=kn.value;p.removeKeyMap(bi)}}catch(Hi){Gn.e(Hi)}finally{Gn.f()}}}},[p]),Object(y.useEffect)(function(){Vt!==on&&_i(Vt)},[Vt]),Object(mt.a)(function(){if(!zn&&yr>0){var Gt=new Date().getTime(),tn=window.sessionStorage.getItem(At);Gt>=yr+Fe&&(!tn||tn!==gt)&&(window.sessionStorage.setItem(At,gt),ei(!0))}},Fe),Object(y.useEffect)(function(){jt(Kt)},[p,Kt]),Object(y.useEffect)(function(){p&&(mn&&p.focus())},[p,mn]),Object(y.useEffect)(function(){if(Rt&&p){var Gt=p.getScrollerElement();function tn(Qt){var vn=Qt.target;if(hi.current){var Tn=vn.scrollTop/vn.scrollHeight;hi.current.scrollTop=hi.current.scrollHeight*Tn}}return Gt.addEventListener("scroll",tn),function(){Gt.removeEventListener("scroll",tn)}}},[p,Rt]),Object(y.useEffect)(function(){if(p&&rn){function Gt(tn,Qt){rn(tn,Qt)}return p.on("beforeChange",Gt),function(){p.off("beforeChange",Gt)}}},[p,rn]),Object(y.useEffect)(function(){if(p&&bn){function Gt(){bn(p.getValue())}return p.on("blur",Gt),function(){p.off("blur",Gt)}}},[p,bn]),Object(y.useEffect)(function(){if(p){function Gt(tn){var Qt=tn.getValue();Nt(Qt),gr(new Date().getTime()),tn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),bt&&bt(Qt)}return p.on("change",Gt),function(){p.off("change",Gt)}}},[p,bt]),Object(y.useEffect)(function(){p&&(vt==null?(p.setValue(""),Nt("")):vt!==p.getValue()&&(p.setValue(vt),Nt(vt),p.setCursor(p.lineCount(),0)))},[p,vt]);var Kr=Object(y.useCallback)(function(Gt){var tn=p.getCursor(),Qt=p.getSelection(),vn=Qt.split(`
`);switch(Gt){case"bold":return p.replaceSelection("**"+Qt+"**"),Qt===""&&p.setCursor(tn.line,tn.ch+2),p.focus();case"italic":return p.replaceSelection("*"+Qt+"*"),Qt===""&&p.setCursor(tn.line,tn.ch+1),p.focus();case"code":return p.replaceSelection("`"+Qt+"`"),Qt===""&&p.setCursor(tn.line,tn.ch+1),p.focus();case"inline-latex":return p.replaceSelection("`$$"+Qt+"$$`"),Qt===""&&p.setCursor(tn.line,tn.ch+3),p.focus();case"latex":return p.replaceSelection("```latex\n"+Qt+"\n```"),p.setCursor(tn.line+1,Qt.length+1),p.focus();case"line-break":return p.replaceSelection(`<br/>
`),p.focus();case"list-ul":return Qt===""?p.replaceSelection("- "+Qt):p.replaceSelection(vn.map(function(Tn){return Tn===""?"":"- ".concat(Tn)}).join(`
`)),p.focus();case"list-ol":return Qt===""?p.replaceSelection("1. "+Qt):p.replaceSelection(vn.map(function(Tn,Gn){return Tn===""?"":"".concat(Gn+1,". ").concat(Tn)}).join(`
`)),p.focus();case"add-null-ch":return Qt===""&&p.setCursor(tn.line,tn.ch+1),p.replaceSelection(Ze),p.focus();case"inster-template-1":return Qt===""&&p.setCursor(tn.line,tn.ch),p.replaceSelection(se),p.focus();case"eraser":return p.setValue(""),p.focus();case"trigger-watch":return jt(!Rt),p.focus();case"trigger-full-screen":return _i(!on),p.focus();case et:ui(et);return;case ct:ui(ct);return;case Dt:ui(Dt);return;case ot:ui(ot);return;default:throw new Error}},[p,Rt,on]),cr=Object(y.useCallback)(function(Gt){ui("");switch(zi){case et:var tn=Gt.title,Qt=Gt.link;return p.replaceSelection("[".concat(tn,"](").concat(Qt,")")),p.focus();case ct:var vn=Gt.language,Tn=Gt.content;return p.replaceSelection(["```"+vn,Tn,"```"].join(`
`)),p.focus();case Dt:var Gn=Gt.src,kn=Gt.alt,bi=Gt.name;return Gn.indexOf("type=image")>-1?p.replaceSelection("![ ".concat(kn||""," ]( ").concat(Gn,' "').concat(kn||"",'" )')):Gn.indexOf("type=application/pdf")>-1?p.replaceSelection('<a href="'.concat(Gn,'&disposition=inline" target="_blank">').concat(bi,"</a>")):p.replaceSelection('<a href="'.concat(Gn,'" target="_blank">').concat(bi,"</a>")),p.focus();case ot:for(var Hi=Gt.row,Cn=Gt.col,kr=Gt.align,Nn=`
`,Ai=0;Ai<Hi;Ai++){for(var or=[],Qi=[],Co=0;Co<Cn;Co++)Ai===1&&Qi.push(Lt[kr]),or.push(" ");Ai===1&&(Nn+="| ".concat(Qi.join(" | "),` |
`)),Nn+="| ".concat(or.join(Cn===1?"":" | "),` |
`)}return p.replaceSelection(Nn+`
`),p.focus();default:throw new Error}},[p,zi]),br=Object(y.useMemo)(function(){switch(zi){case et:return C.a.createElement(_e,{callback:cr,onCancel:Pi});case ct:return C.a.createElement(st.b,{callback:cr,onCancel:Pi});case Dt:return C.a.createElement(F,{callback:cr,onCancel:Pi});case ot:return C.a.createElement(He,{callback:cr,onCancel:Pi});default:return null}},[zi]);function Pi(){ui("")}Object(y.useEffect)(function(){if(ur.current){var Gt=ur.current,tn=!1,Qt=0;function vn(kn){tn=!0,Qt=kn.pageY}function Tn(){tn=!1}function Gn(kn){if(tn){var bi=kn.pageY-Qt;bi<0&&(bi=0),bi>300&&(bi=300);var Hi=ut+bi+"px";yi(Hi)}}return Gt.addEventListener("mousedown",vn),document.addEventListener("mousemove",Gn),document.addEventListener("mouseup",Tn),function(){Gt.removeEventListener("mousedown",vn),document.removeEventListener("mousemove",Gn),document.removeEventListener("mouseup",Tn)}}},[p,ur]),Object(y.useEffect)(function(){yi(ut)},[ut]);var so=ne(_t),rr=ne(lr),Qr={width:so,height:rr},lo=Object(y.useMemo)(function(){if(yr){var Gt=new Date(yr),tn=Gt.getHours(),Qt=Gt.getMinutes(),vn=Gt.getSeconds();return tn=tn<10?"0"+tn:tn,Qt=Qt<10?"0"+Qt:Qt,vn=vn<10?"0"+vn:vn,"".concat(tn,":").concat(Qt,":").concat(vn)}return 0},[yr]);function jr(){window.sessionStorage.removeItem(At),ei(!1),gr(0)}function ga(){ei(!1),gr(0),p.setValue(window.sessionStorage.getItem(At))}function bo(Gt,tn){var Qt=p.getValue();Qt=Qt.replace(Gt,tn),Nt(Qt),p==null||p.setValue(Qt)}return C.a.createElement(y.Fragment,null,C.a.createElement("div",{className:"markdown-editor-wrapper",ref:Fn},C.a.createElement("div",{className:"markdown-editor-container ".concat(pt," ").concat(Rt?"on-preview":""," ").concat(qt?"mini":""," ").concat(on?"full-screen":""),style:Qr},C.a.createElement(V,{insertTemp:si,watch:Rt,fullScreen:on,showNullButton:It,onActionCallback:Kr,hidetoolBar:wi,uuid:In.current,setOpenPhones:function(){ci.current=!0}}),C.a.createElement("div",{className:"markdown-editor-body"},C.a.createElement("div",{className:"codemirror-container"},C.a.createElement("textarea",{ref:di,placeholder:Un})),Rt?C.a.createElement("div",{ref:hi,className:"preview-container"},Ht==="stex"&&C.a.createElement(Ie,{value:gt}),Ht!=="stex"&&C.a.createElement(ge.a,{edit:!0,value:gt,replaces:bo})):null))),Sn?C.a.createElement("a",{ref:ur,className:"editor-resize"}):null,C.a.createElement(ce.a,null,Z[zi]?C.a.createElement(ve.a,{centered:!0,title:Z[zi],visible:!0,onCancel:Pi,footer:null},br):null))}},QDVR:function(Be,Q,l){"use strict";l.d(Q,"e",function(){return ve}),l.d(Q,"d",function(){return de}),l.d(Q,"c",function(){return j}),l.d(Q,"b",function(){return Y}),l.d(Q,"a",function(){return _});var U=function(){var y=function(C,R){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,O){A.__proto__=O}||function(A,O){for(var T in O)O.hasOwnProperty(T)&&(A[T]=O[T])},y(C,R)};return function(C,R){y(C,R);function A(){this.constructor=C}C.prototype=R===null?Object.create(R):(A.prototype=R.prototype,new A)}}();function ve(y){var C=[];return y.forEach(function(R){return C.push(R)}),C}function de(y){var C=[];return y.forEach(function(R,A){return C.push(A)}),C}var J=function(){function y(){this._value="",this._pos=0}return y.prototype.reset=function(C){return this._value=C,this._pos=0,this},y.prototype.next=function(){return this._pos+=1,this},y.prototype.hasNext=function(){return this._pos<this._value.length-1},y.prototype.cmp=function(C){var R=C.charCodeAt(0),A=this._value.charCodeAt(this._pos);return R-A},y.prototype.value=function(){return this._value[this._pos]},y}(),k=function(){function y(C){C===void 0&&(C=!0),this._splitOnBackslash=C}return y.prototype.reset=function(C){return this._value=C.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},y.prototype.hasNext=function(){return this._to<this._value.length},y.prototype.next=function(){this._from=this._to;for(var C=!0;this._to<this._value.length;this._to++){var R=this._value.charCodeAt(this._to);if(R===47||this._splitOnBackslash&&R===92)if(C)this._from++;else break;else C=!1}return this},y.prototype.cmp=function(C){for(var R=0,A=C.length,O=this._from;R<A&&O<this._to;){var T=C.charCodeAt(R)-this._value.charCodeAt(O);if(T!==0)return T;R+=1,O+=1}return A===this._to-this._from?0:R<A?-1:1},y.prototype.value=function(){return this._value.substring(this._from,this._to)},y}(),me=function(){function y(){}return y}(),j=function(){function y(C){this._iter=C}return y.forPaths=function(){return new y(new k)},y.forStrings=function(){return new y(new J)},y.prototype.clear=function(){this._root=void 0},y.prototype.set=function(C,R){var A=this._iter.reset(C),O;for(this._root||(this._root=new me,this._root.segment=A.value()),O=this._root;;){var T=A.cmp(O.segment);if(T>0)O.left||(O.left=new me,O.left.segment=A.value()),O=O.left;else if(T<0)O.right||(O.right=new me,O.right.segment=A.value()),O=O.right;else if(A.hasNext())A.next(),O.mid||(O.mid=new me,O.mid.segment=A.value()),O=O.mid;else break}var m=O.value;return O.value=R,O.key=C,m},y.prototype.get=function(C){for(var R=this._iter.reset(C),A=this._root;A;){var O=R.cmp(A.segment);if(O>0)A=A.left;else if(O<0)A=A.right;else if(R.hasNext())R.next(),A=A.mid;else break}return A?A.value:void 0},y.prototype.findSubstr=function(C){for(var R=this._iter.reset(C),A=this._root,O=void 0;A;){var T=R.cmp(A.segment);if(T>0)A=A.left;else if(T<0)A=A.right;else if(R.hasNext())R.next(),O=A.value||O,A=A.mid;else break}return A&&A.value||O},y.prototype.forEach=function(C){this._forEach(this._root,C)},y.prototype._forEach=function(C,R){C&&(this._forEach(C.left,R),C.value&&R(C.value,C.key),this._forEach(C.mid,R),this._forEach(C.right,R))},y}(),Y=function(){function y(){this.map=new Map,this.ignoreCase=!1}return y.prototype.set=function(C,R){this.map.set(this.toKey(C),R)},y.prototype.get=function(C){return this.map.get(this.toKey(C))},y.prototype.toKey=function(C){var R=C.toString();return this.ignoreCase&&(R=R.toLowerCase()),R},y}(),W=function(){function y(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return y.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(y.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),y.prototype.get=function(C,R){R===void 0&&(R=0);var A=this._map.get(C);return A?(R!==0&&this.touch(A,R),A.value):void 0},y.prototype.set=function(C,R,A){A===void 0&&(A=0);var O=this._map.get(C);if(O)O.value=R,A!==0&&this.touch(O,A);else{O={key:C,value:R,next:void 0,previous:void 0};switch(A){case 0:this.addItemLast(O);break;case 1:this.addItemFirst(O);break;case 2:this.addItemLast(O);break;default:this.addItemLast(O);break}this._map.set(C,O),this._size++}},y.prototype.delete=function(C){return!!this.remove(C)},y.prototype.remove=function(C){var R=this._map.get(C);return R?(this._map.delete(C),this.removeItem(R),this._size--,R.value):void 0},y.prototype.forEach=function(C,R){for(var A=this._head;A;)R?C.bind(R)(A.value,A.key,this):C(A.value,A.key,this),A=A.next},y.prototype.trimOld=function(C){if(C>=this.size)return;if(C===0){this.clear();return}for(var R=this._head,A=this.size;R&&A>C;)this._map.delete(R.key),R=R.next,A--;this._head=R,this._size=A,R&&(R.previous=void 0)},y.prototype.addItemFirst=function(C){if(!this._head&&!this._tail)this._tail=C;else if(this._head)C.next=this._head,this._head.previous=C;else throw new Error("Invalid list");this._head=C},y.prototype.addItemLast=function(C){if(!this._head&&!this._tail)this._head=C;else if(this._tail)C.previous=this._tail,this._tail.next=C;else throw new Error("Invalid list");this._tail=C},y.prototype.removeItem=function(C){if(C===this._head&&C===this._tail)this._head=void 0,this._tail=void 0;else if(C===this._head){if(!C.next)throw new Error("Invalid list");C.next.previous=void 0,this._head=C.next}else if(C===this._tail){if(!C.previous)throw new Error("Invalid list");C.previous.next=void 0,this._tail=C.previous}else{var R=C.next,A=C.previous;if(!R||!A)throw new Error("Invalid list");R.previous=A,A.next=R}C.next=void 0,C.previous=void 0},y.prototype.touch=function(C,R){if(!this._head||!this._tail)throw new Error("Invalid list");if(R!==1&&R!==2)return;if(R===1){if(C===this._head)return;var A=C.next,O=C.previous;C===this._tail?(O.next=void 0,this._tail=O):(A.previous=O,O.next=A),C.previous=void 0,C.next=this._head,this._head.previous=C,this._head=C}else if(R===2){if(C===this._tail)return;var A=C.next,O=C.previous;C===this._head?(A.previous=void 0,this._head=A):(A.previous=O,O.next=A),C.next=void 0,C.previous=this._tail,this._tail.next=C,this._tail=C}},y.prototype.toJSON=function(){var C=[];return this.forEach(function(R,A){C.push([A,R])}),C},y}(),_=function(y){U(C,y);function C(R,A){A===void 0&&(A=1);var O=y.call(this)||this;return O._limit=R,O._ratio=Math.min(Math.max(0,A),1),O}return C.prototype.get=function(R){return y.prototype.get.call(this,R,2)},C.prototype.peek=function(R){return y.prototype.get.call(this,R,0)},C.prototype.set=function(R,A){y.prototype.set.call(this,R,A,2),this.checkTrim()},C.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},C}(W)},RMFE:function(Be,Q){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZ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A4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},SJMd:function(Be,Q){/**
* @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 l,U,ve,de=!1,J,k;window.PR_SHOULD_USE_CONTINUATION=!0;var me,j;(function(){var Y=window,W=["break,continue,do,else,for,if,return,while"],_=[W,"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"],y=[_,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],C=[y,"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"],R=[y,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],A=[y,"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"],O="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",T=[y,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],m="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",f=[W,"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"],S=[W,"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"],L=[W,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],le=[C,A,R,T,m,f,S,L],he=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,ge="str",Ie="kwd",xe="com",Oe="typ",Ge="lit",ue="pun",P="pln",Re="tag",fe="dec",V="src",ce="atn",we="atv",ie="nocode",De="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function I($){for(var Ae=0,Pe=!1,He=!1,Ue=0,Qe=$.length;Ue<Qe;++Ue){var et=$[Ue];if(et.ignoreCase)He=!0;else if(/[a-z]/i.test(et.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Pe=!0,He=!1;break}}var Dt={b:8,t:9,n:10,v:11,f:12,r:13};function ct(Ot){var Le=Ot.charCodeAt(0);if(Le!==92)return Le;var ht=Ot.charAt(1);return Le=Dt[ht],Le||("0"<=ht&&ht<="7"?parseInt(Ot.substring(1),8):ht==="u"||ht==="x"?parseInt(Ot.substring(2),16):Ot.charCodeAt(1))}function ot(Ot){if(Ot<32)return(Ot<16?"\\x0":"\\x")+Ot.toString(16);var Le=String.fromCharCode(Ot);return Le==="\\"||Le==="-"||Le==="]"||Le==="^"?"\\"+Le:Le}function $e(Ot){var Le=Ot.substring(1,Ot.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")),ht=[],yt=Le[0]==="^",Fe=["["];yt&&Fe.push("^");for(var Ze=yt?1:0,se=Le.length;Ze<se;++Ze){var ne=Le[Ze];if(/\\[bdsw]/i.test(ne))Fe.push(ne);else{var oe=ct(ne),M;Ze+2<se&&Le[Ze+1]==="-"?(M=ct(Le[Ze+2]),Ze+=2):M=oe,ht.push([oe,M]),M<65||oe>122||(M<65||oe>90||ht.push([Math.max(65,oe)|32,Math.min(M,90)|32]),M<97||oe>122||ht.push([Math.max(97,oe)&~32,Math.min(M,122)&~32]))}}ht.sort(function(Te,Ce){return Te[0]-Ce[0]||Ce[1]-Te[1]});for(var D=[],z=[],Ze=0;Ze<ht.length;++Ze){var Z=ht[Ze];Z[0]<=z[1]+1?z[1]=Math.max(z[1],Z[1]):D.push(z=Z)}for(var Ze=0;Ze<D.length;++Ze){var Z=D[Ze];Fe.push(ot(Z[0])),Z[1]>Z[0]&&(Z[1]+1>Z[0]&&Fe.push("-"),Fe.push(ot(Z[1])))}return Fe.push("]"),Fe.join("")}function Lt(Ot){for(var Le=Ot.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")),ht=Le.length,yt=[],Fe=0,Ze=0;Fe<ht;++Fe){var se=Le[Fe];if(se==="(")++Ze;else if(se.charAt(0)==="\\"){var ne=+se.substring(1);ne&&(ne<=Ze?yt[ne]=-1:Le[Fe]=ot(ne))}}for(var Fe=1;Fe<yt.length;++Fe)yt[Fe]===-1&&(yt[Fe]=++Ae);for(var Fe=0,Ze=0;Fe<ht;++Fe){var se=Le[Fe];if(se==="(")++Ze,yt[Ze]||(Le[Fe]="(?:");else if(se.charAt(0)==="\\"){var ne=+se.substring(1);ne&&ne<=Ze&&(Le[Fe]="\\"+yt[ne])}}for(var Fe=0;Fe<ht;++Fe)Le[Fe]==="^"&&Le[Fe+1]!=="^"&&(Le[Fe]="");if(Ot.ignoreCase&&Pe)for(var Fe=0;Fe<ht;++Fe){var se=Le[Fe],oe=se.charAt(0);se.length>=2&&oe==="["?Le[Fe]=$e(se):oe!=="\\"&&(Le[Fe]=se.replace(/[a-zA-Z]/g,function(z){var Z=z.charCodeAt(0);return"["+String.fromCharCode(Z&~32,Z|32)+"]"}))}return Le.join("")}for(var mt=[],Ue=0,Qe=$.length;Ue<Qe;++Ue){var et=$[Ue];if(et.global||et.multiline)throw new Error(""+et);mt.push("(?:"+Lt(et)+")")}return new RegExp(mt.join("|"),He?"gi":"g")}function b($,Ae){var Pe=/(?:^|\s)nocode(?:\s|$)/,He=[],Ue=0,Qe=[],et=0;function Dt(ct){var ot=ct.nodeType;if(ot==1){if(Pe.test(ct.className))return;for(var $e=ct.firstChild;$e;$e=$e.nextSibling)Dt($e);var Lt=ct.nodeName.toLowerCase();(Lt==="br"||Lt==="li")&&(He[et]=`
`,Qe[et<<1]=Ue++,Qe[et++<<1|1]=ct)}else if(ot==3||ot==4){var mt=ct.nodeValue;mt.length&&(Ae?mt=mt.replace(/\r\n?/g,`
`):mt=mt.replace(/[ \t\r\n]+/g," "),He[et]=mt,Qe[et<<1]=Ue,Ue+=mt.length,Qe[et++<<1|1]=ct)}}return Dt($),{sourceCode:He.join("").replace(/\n$/,""),spans:Qe}}function ye($,Ae,Pe,He,Ue){if(!Pe)return;var Qe={sourceNode:$,pre:1,langExtension:null,numberLines:null,sourceCode:Pe,spans:null,basePos:Ae,decorations:null};He(Qe),Ue.push.apply(Ue,Qe.decorations)}var je=/\S/;function _e($){for(var Ae=void 0,Pe=$.firstChild;Pe;Pe=Pe.nextSibling){var He=Pe.nodeType;Ae=He===1?Ae?$:Pe:He===3&&je.test(Pe.nodeValue)?$:Ae}return Ae===$?void 0:Ae}function st($,Ae){var Pe={},He;(function(){for(var et=$.concat(Ae),Dt=[],ct={},ot=0,$e=et.length;ot<$e;++ot){var Lt=et[ot],mt=Lt[3];if(mt)for(var Ot=mt.length;--Ot>=0;)Pe[mt.charAt(Ot)]=Lt;var Le=Lt[1],ht=""+Le;ct.hasOwnProperty(ht)||(Dt.push(Le),ct[ht]=null)}Dt.push(/[\0-\uffff]/),He=I(Dt)})();var Ue=Ae.length,Qe=function(et){for(var Dt=et.sourceCode,ct=et.basePos,ot=et.sourceNode,$e=[ct,P],Lt=0,mt=Dt.match(He)||[],Ot={},Le=0,ht=mt.length;Le<ht;++Le){var yt=mt[Le],Fe=Ot[yt],Ze=void 0,se;if(typeof Fe=="string")se=!1;else{var ne=Pe[yt.charAt(0)];if(ne)Ze=yt.match(ne[1]),Fe=ne[0];else{for(var oe=0;oe<Ue;++oe)if(ne=Ae[oe],Ze=yt.match(ne[1]),Ze){Fe=ne[0];break}Ze||(Fe=P)}se=Fe.length>=5&&Fe.substring(0,5)==="lang-",se&&!(Ze&&typeof Ze[1]=="string")&&(se=!1,Fe=V),se||(Ot[yt]=Fe)}var M=Lt;if(Lt+=yt.length,!se)$e.push(ct+M,Fe);else{var D=Ze[1],z=yt.indexOf(D),Z=z+D.length;Ze[2]&&(Z=yt.length-Ze[2].length,z=Z-D.length);var Te=Fe.substring(5);ye(ot,ct+M,yt.substring(0,z),Qe,$e),ye(ot,ct+M+z,D,F(Te,D),$e),ye(ot,ct+M+Z,yt.substring(Z),Qe,$e)}}et.decorations=$e};return Qe}function St($){var Ae=[],Pe=[];$.tripleQuotedStrings?Ae.push([ge,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):$.multiLineStrings?Ae.push([ge,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Ae.push([ge,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),$.verbatimStrings&&Pe.push([ge,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var He=$.hashComments;He&&($.cStyleComments?(He>1?Ae.push([xe,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Ae.push([xe,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Pe.push([ge,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Ae.push([xe,/^#[^\r\n]*/,null,"#"])),$.cStyleComments&&(Pe.push([xe,/^\/\/[^\r\n]*/,null]),Pe.push([xe,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ue=$.regexLiterals;if(Ue){var Qe=Ue>1?"":`
\r`,et=Qe?".":"[\\S\\s]",Dt="/(?=[^/*"+Qe+"])(?:[^/\\x5B\\x5C"+Qe+"]|\\x5C"+et+"|\\x5B(?:[^\\x5C\\x5D"+Qe+"]|\\x5C"+et+")*(?:\\x5D|$))+/";Pe.push(["lang-regex",RegExp("^"+De+"("+Dt+")")])}var ct=$.types;ct&&Pe.push([Oe,ct]);var ot=(""+$.keywords).replace(/^ | $/g,"");ot.length&&Pe.push([Ie,new RegExp("^(?:"+ot.replace(/[\s,]+/g,"|")+")\\b"),null]),Ae.push([P,/^\s+/,null,` \r
\xA0`]);var $e="^.[^\\s\\w.$@'\"`/\\\\]*";return $.regexLiterals&&($e+="(?!s*/)"),Pe.push([Ge,/^@[a-z_$][a-z_$@0-9]*/i,null],[Oe,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[P,/^[a-z_$][a-z_$@0-9]*/i,null],[Ge,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[P,/^\\[\s\S]?/,null],[ue,new RegExp($e),null]),st(Ae,Pe)}var tt=St({keywords:le,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function nt($,Ae,Pe){for(var He=/(?:^|\s)nocode(?:\s|$)/,Ue=/\r\n?|\n/,Qe=$.ownerDocument,et=Qe.createElement("li");$.firstChild;)et.appendChild($.firstChild);var Dt=[et];function ct(Le){var ht=Le.nodeType;if(ht==1&&!He.test(Le.className))if(Le.nodeName==="br")ot(Le),Le.parentNode&&Le.parentNode.removeChild(Le);else for(var yt=Le.firstChild;yt;yt=yt.nextSibling)ct(yt);else if((ht==3||ht==4)&&Pe){var Fe=Le.nodeValue,Ze=Fe.match(Ue);if(Ze){var se=Fe.substring(0,Ze.index);Le.nodeValue=se;var ne=Fe.substring(Ze.index+Ze[0].length);if(ne){var oe=Le.parentNode;oe.insertBefore(Qe.createTextNode(ne),Le.nextSibling)}ot(Le),se||Le.parentNode.removeChild(Le)}}}function ot(Le){for(;!Le.nextSibling;)if(Le=Le.parentNode,!Le)return;function ht(Ze,se){var ne=se?Ze.cloneNode(!1):Ze,oe=Ze.parentNode;if(oe){var M=ht(oe,1),D=Ze.nextSibling;M.appendChild(ne);for(var z=D;z;z=D)D=z.nextSibling,M.appendChild(z)}return ne}for(var yt=ht(Le.nextSibling,0),Fe;(Fe=yt.parentNode)&&Fe.nodeType===1;)yt=Fe;Dt.push(yt)}for(var $e=0;$e<Dt.length;++$e)ct(Dt[$e]);Ae===(Ae|0)&&Dt[0].setAttribute("value",Ae);var Lt=Qe.createElement("ol");Lt.className="linenums";for(var mt=Math.max(0,Ae-1|0)||0,$e=0,Ot=Dt.length;$e<Ot;++$e)et=Dt[$e],et.className="L"+($e+mt)%10,et.firstChild||et.appendChild(Qe.createTextNode("\xA0")),Lt.appendChild(et);$.appendChild(Lt)}function Je($){var Ae=/\bMSIE\s(\d+)/.exec(navigator.userAgent);Ae=Ae&&+Ae[1]<=8;var Pe=/\n/g,He=$.sourceCode,Ue=He.length,Qe=0,et=$.spans,Dt=et.length,ct=0,ot=$.decorations,$e=ot.length,Lt=0;ot[$e]=Ue;var mt,Ot;for(Ot=mt=0;Ot<$e;)ot[Ot]!==ot[Ot+2]?(ot[mt++]=ot[Ot++],ot[mt++]=ot[Ot++]):Ot+=2;for($e=mt,Ot=mt=0;Ot<$e;){for(var Le=ot[Ot],ht=ot[Ot+1],yt=Ot+2;yt+2<=$e&&ot[yt+1]===ht;)yt+=2;ot[mt++]=Le,ot[mt++]=ht,Ot=yt}$e=ot.length=mt;var Fe=$.sourceNode,Ze="";Fe&&(Ze=Fe.style.display,Fe.style.display="none");try{for(var se=null;ct<Dt;){var ne=et[ct],oe=et[ct+2]||Ue,M=ot[Lt+2]||Ue,yt=Math.min(oe,M),D=et[ct+1],z;if(D.nodeType!==1&&(z=He.substring(Qe,yt))){Ae&&(z=z.replace(Pe,"\r")),D.nodeValue=z;var Z=D.ownerDocument,Te=Z.createElement("span");Te.className=ot[Lt+1];var Ce=D.parentNode;Ce.replaceChild(Te,D),Te.appendChild(D),Qe<oe&&(et[ct+1]=D=Z.createTextNode(He.substring(yt,oe)),Ce.insertBefore(D,Te.nextSibling))}Qe=yt,Qe>=oe&&(ct+=2),Qe>=M&&(Lt+=2)}}finally{Fe&&(Fe.style.display=Ze)}}var Ye={};function Ee($,Ae){for(var Pe=Ae.length;--Pe>=0;){var He=Ae[Pe];Ye.hasOwnProperty(He)?Y.console&&console.warn("cannot override language handler %s",He):Ye[He]=$}}function F($,Ae){return $&&Ye.hasOwnProperty($)||($=/^\s*</.test(Ae)?"default-markup":"default-code"),Ye[$]}Ee(tt,["default-code"]),Ee(st([],[[P,/^[^<?]+/],[fe,/^<!\w[^>]*(?:>|$)/],[xe,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[ue,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Ee(st([[P,/^[\s]+/,null,` \r
`],[we,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Re,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[ce,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[ue,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),Ee(st([],[[we,/^[\s\S]+/]]),["uq.val"]),Ee(St({keywords:C,hashComments:!0,cStyleComments:!0,types:he}),["c","cc","cpp","cxx","cyc","m"]),Ee(St({keywords:"null,true,false"}),["json"]),Ee(St({keywords:A,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:he}),["cs"]),Ee(St({keywords:R,cStyleComments:!0}),["java"]),Ee(St({keywords:L,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ee(St({keywords:f,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ee(St({keywords:m,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ee(St({keywords:S,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ee(St({keywords:T,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ee(St({keywords:O,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ee(st([],[[ge,/^[\s\S]+/]]),["regex"]);function it($){var Ae=$.langExtension;try{var Pe=b($.sourceNode,$.pre),He=Pe.sourceCode;$.sourceCode=He,$.spans=Pe.spans,$.basePos=0,F(Ae,He)($),Je($)}catch(Ue){Y.console&&console.log(Ue&&Ue.stack||Ue)}}function Mt($,Ae,Pe){var He=Pe||!1,Ue=Ae||null,Qe=document.createElement("div");Qe.innerHTML="<pre>"+$+"</pre>",Qe=Qe.firstChild,He&&nt(Qe,He,!0);var et={langExtension:Ue,numberLines:He,sourceNode:Qe,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return it(et),Qe.innerHTML}function Tt($,Ae){var Pe=Ae||document.body,He=Pe.ownerDocument||document;function Ue(ne){return Pe.getElementsByTagName(ne)}for(var Qe=[Ue("pre"),Ue("code"),Ue("xmp")],et=[],Dt=0;Dt<Qe.length;++Dt)for(var ct=0,ot=Qe[Dt].length;ct<ot;++ct)et.push(Qe[Dt][ct]);Qe=null;var $e=Date;$e.now||($e={now:function(){return+new Date}});var Lt=0,mt=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ot=/\bprettyprint\b/,Le=/\bprettyprinted\b/,ht=/pre|xmp/i,yt=/^code$/i,Fe=/^(?:pre|code|xmp)$/i,Ze={};function se(){for(var ne=Y.PR_SHOULD_USE_CONTINUATION?$e.now()+250:Infinity;Lt<et.length&&$e.now()<ne;Lt++){for(var oe=et[Lt],M=Ze,D=oe;D=D.previousSibling;){var z=D.nodeType,Z=(z===7||z===8)&&D.nodeValue;if(Z?!/^\??prettify\b/.test(Z):z!==3||/\S/.test(D.nodeValue))break;if(Z){M={},Z.replace(/\b(\w+)=([\w:.%+-]+)/g,function(mn,Kt,si){M[Kt]=si});break}}var Te=oe.className;if((M!==Ze||Ot.test(Te))&&!Le.test(Te)){for(var Ce=!1,Ve=oe.parentNode;Ve;Ve=Ve.parentNode){var vt=Ve.tagName;if(Fe.test(vt)&&Ve.className&&Ot.test(Ve.className)){Ce=!0;break}}if(!Ce){oe.className+=" prettyprinted";var bt=M.lang;if(!bt){bt=Te.match(mt);var ft;!bt&&(ft=_e(oe))&&yt.test(ft.tagName)&&(bt=ft.className.match(mt)),bt&&(bt=bt[1])}var _t;if(ht.test(oe.tagName))_t=1;else{var Bt=oe.currentStyle,ut=He.defaultView,ln=Bt?Bt.whiteSpace:ut&&ut.getComputedStyle?ut.getComputedStyle(oe,null).getPropertyValue("white-space"):0;_t=ln&&ln.substring(0,3)==="pre"}var qt=M.linenums;(qt=qt==="true"||+qt)||(qt=Te.match(/\blinenums\b(?::(\d+))?/),qt=qt?qt[1]&&qt[1].length?+qt[1]:!0:!1),qt&&nt(oe,qt,_t);var lt={langExtension:bt,sourceNode:oe,numberLines:qt,pre:_t,sourceCode:null,basePos:null,spans:null,decorations:null};it(lt)}}}Lt<et.length?Y.setTimeout(se,250):typeof $=="function"&&$()}se()}var Ct=Y.PR={createSimpleLexer:st,registerLangHandler:Ee,sourceDecorator:St,PR_ATTRIB_NAME:ce,PR_ATTRIB_VALUE:we,PR_COMMENT:xe,PR_DECLARATION:fe,PR_KEYWORD:Ie,PR_LITERAL:Ge,PR_NOCODE:ie,PR_PLAIN:P,PR_PUNCTUATION:ue,PR_SOURCE:V,PR_STRING:ge,PR_TAG:Re,PR_TYPE:Oe,prettyPrintOne:de?Y.prettyPrintOne=Mt:me=Mt,prettyPrint:j=de?Y.prettyPrint=Tt:j=Tt},q=Y.define;typeof q=="function"&&q.amd&&q("google-code-prettify",[],function(){return Ct})})()},SMhR:function(Be,Q){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiB/s7a5AWTTNhsgN9pmA2TTNp8MyI22uQHkv7TNDSCbttkAudE2bwJyo22eBGTTNhsgf7O2ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTD9c2nwzIk9pmA2TTNjeAPAnIpm1uANm0zQbIDSBPAXIDyKZtPhmQG22zAfLN2uaTAflUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT74ckCe1zZOAbNpm0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k4Bs2uZJQJ7UNjeA3GibTwXkRttsgNxomw2QG22zAXKjbW4AeVLbbIDcaJsNkCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},T8No:function(Be,Q,l){"use strict";l.d(Q,"a",function(){return J}),l.d(Q,"b",function(){return R}),l.d(Q,"d",function(){return A}),l.d(Q,"c",function(){return O}),l.d(Q,"e",function(){return T});var U=l("N0LK"),ve=l("Cg/j"),de=function(){var m=function(f,S){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,le){L.__proto__=le}||function(L,le){for(var he in le)le.hasOwnProperty(he)&&(L[he]=le[he])},m(f,S)};return function(f,S){m(f,S);function L(){this.constructor=f}f.prototype=S===null?Object.create(S):(L.prototype=S.prototype,new L)}}(),J=function(){function m(){}return m.has=function(f){return me.create(f)},m.equals=function(f,S){return j.create(f,S)},m.regex=function(f,S){return _.create(f,S)},m.not=function(f){return W.create(f)},m.and=function(){for(var f=[],S=0;S<arguments.length;S++)f[S]=arguments[S];return C.create(f)},m.or=function(){for(var f=[],S=0;S<arguments.length;S++)f[S]=arguments[S];return R.create(f)},m.deserialize=function(f,S){return S===void 0&&(S=!1),f?this._deserializeOrExpression(f,S):void 0},m._deserializeOrExpression=function(f,S){var L=this,le=f.split("||");return R.create(le.map(function(he){return L._deserializeAndExpression(he,S)}))},m._deserializeAndExpression=function(f,S){var L=this,le=f.split("&&");return C.create(le.map(function(he){return L._deserializeOne(he,S)}))},m._deserializeOne=function(f,S){if(f=f.trim(),f.indexOf("!=")>=0){var L=f.split("!=");return Y.create(L[0].trim(),this._deserializeValue(L[1],S))}if(f.indexOf("==")>=0){var L=f.split("==");return j.create(L[0].trim(),this._deserializeValue(L[1],S))}if(f.indexOf("=~")>=0){var L=f.split("=~");return _.create(L[0].trim(),this._deserializeRegexValue(L[1],S))}return/^\!\s*/.test(f)?W.create(f.substr(1).trim()):me.create(f)},m._deserializeValue=function(f,S){if(f=f.trim(),f==="true")return!0;if(f==="false")return!1;var L=/^'([^']*)'$/.exec(f);return L?L[1].trim():f},m._deserializeRegexValue=function(f,S){if(Object(U.x)(f)){if(S)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var L=f.indexOf("/"),le=f.lastIndexOf("/");if(L===le||L<0){if(S)throw new Error("bad regexp-value '"+f+"', missing /-enclosure");return console.warn("bad regexp-value '"+f+"', missing /-enclosure"),null}var he=f.slice(L+1,le),ge=f[le+1]==="i"?"i":"";try{return new RegExp(he,ge)}catch(Ie){if(S)throw new Error("bad regexp-value '"+f+"', parse error: "+Ie);return console.warn("bad regexp-value '"+f+"', parse error: "+Ie),null}},m}();function k(m,f){var S=m.getType(),L=f.getType();if(S!==L)return S-L;switch(S){case 1:return m.cmp(f);case 2:return m.cmp(f);case 3:return m.cmp(f);case 4:return m.cmp(f);case 6:return m.cmp(f);case 7:return m.cmp(f);case 5:return m.cmp(f);default:throw new Error("Unknown ContextKeyExpr!")}}var me=function(){function m(f){this.key=f}return m.create=function(f){return new m(f)},m.prototype.getType=function(){return 1},m.prototype.cmp=function(f){return this.key<f.key?-1:this.key>f.key?1:0},m.prototype.equals=function(f){return f instanceof m?this.key===f.key:!1},m.prototype.evaluate=function(f){return!!f.getValue(this.key)},m.prototype.keys=function(){return[this.key]},m.prototype.negate=function(){return W.create(this.key)},m}(),j=function(){function m(f,S){this.key=f,this.value=S}return m.create=function(f,S){return typeof S=="boolean"?S?me.create(f):W.create(f):new m(f,S)},m.prototype.getType=function(){return 3},m.prototype.cmp=function(f){return this.key<f.key?-1:this.key>f.key?1:this.value<f.value?-1:this.value>f.value?1:0},m.prototype.equals=function(f){return f instanceof m?this.key===f.key&&this.value===f.value:!1},m.prototype.evaluate=function(f){return f.getValue(this.key)==this.value},m.prototype.keys=function(){return[this.key]},m.prototype.negate=function(){return Y.create(this.key,this.value)},m}(),Y=function(){function m(f,S){this.key=f,this.value=S}return m.create=function(f,S){return typeof S=="boolean"?S?W.create(f):me.create(f):new m(f,S)},m.prototype.getType=function(){return 4},m.prototype.cmp=function(f){return this.key<f.key?-1:this.key>f.key?1:this.value<f.value?-1:this.value>f.value?1:0},m.prototype.equals=function(f){return f instanceof m?this.key===f.key&&this.value===f.value:!1},m.prototype.evaluate=function(f){return f.getValue(this.key)!=this.value},m.prototype.keys=function(){return[this.key]},m.prototype.negate=function(){return j.create(this.key,this.value)},m}(),W=function(){function m(f){this.key=f}return m.create=function(f){return new m(f)},m.prototype.getType=function(){return 2},m.prototype.cmp=function(f){return this.key<f.key?-1:this.key>f.key?1:0},m.prototype.equals=function(f){return f instanceof m?this.key===f.key:!1},m.prototype.evaluate=function(f){return!f.getValue(this.key)},m.prototype.keys=function(){return[this.key]},m.prototype.negate=function(){return me.create(this.key)},m}(),_=function(){function m(f,S){this.key=f,this.regexp=S}return m.create=function(f,S){return new m(f,S)},m.prototype.getType=function(){return 6},m.prototype.cmp=function(f){if(this.key<f.key)return-1;if(this.key>f.key)return 1;var S=this.regexp?this.regexp.source:"",L=f.regexp?f.regexp.source:"";return S<L?-1:S>L?1:0},m.prototype.equals=function(f){if(f instanceof m){var S=this.regexp?this.regexp.source:"",L=f.regexp?f.regexp.source:"";return this.key===f.key&&S===L}return!1},m.prototype.evaluate=function(f){var S=f.getValue(this.key);return this.regexp?this.regexp.test(S):!1},m.prototype.keys=function(){return[this.key]},m.prototype.negate=function(){return y.create(this)},m}(),y=function(){function m(f){this._actual=f}return m.create=function(f){return new m(f)},m.prototype.getType=function(){return 7},m.prototype.cmp=function(f){return this._actual.cmp(f._actual)},m.prototype.equals=function(f){return f instanceof m?this._actual.equals(f._actual):!1},m.prototype.evaluate=function(f){return!this._actual.evaluate(f)},m.prototype.keys=function(){return this._actual.keys()},m.prototype.negate=function(){return this._actual},m}(),C=function(){function m(f){this.expr=f}return m.create=function(f){var S=m._normalizeArr(f);return S.length===0?void 0:S.length===1?S[0]:new m(S)},m.prototype.getType=function(){return 5},m.prototype.cmp=function(f){if(this.expr.length<f.expr.length)return-1;if(this.expr.length>f.expr.length)return 1;for(var S=0,L=this.expr.length;S<L;S++){var le=k(this.expr[S],f.expr[S]);if(le!==0)return le}return 0},m.prototype.equals=function(f){if(f instanceof m){if(this.expr.length!==f.expr.length)return!1;for(var S=0,L=this.expr.length;S<L;S++)if(!this.expr[S].equals(f.expr[S]))return!1;return!0}return!1},m.prototype.evaluate=function(f){for(var S=0,L=this.expr.length;S<L;S++)if(!this.expr[S].evaluate(f))return!1;return!0},m._normalizeArr=function(f){var S=[];if(f){for(var L=0,le=f.length;L<le;L++){var he=f[L];if(!he)continue;if(he instanceof m){S=S.concat(he.expr);continue}if(he instanceof R)throw new Error('It is not allowed to have an or expression here due to lack of parens! For example "a && (b||c)" is not supported, use "(a&&b) || (a&&c)" instead.');S.push(he)}S.sort(k)}return S},m.prototype.keys=function(){for(var f=[],S=0,L=this.expr;S<L.length;S++){var le=L[S];f.push.apply(f,le.keys())}return f},m.prototype.negate=function(){for(var f=[],S=0,L=this.expr;S<L.length;S++){var le=L[S];f.push(le.negate())}return R.create(f)},m}(),R=function(){function m(f){this.expr=f}return m.create=function(f){var S=m._normalizeArr(f);return S.length===0?void 0:S.length===1?S[0]:new m(S)},m.prototype.getType=function(){return 8},m.prototype.equals=function(f){if(f instanceof m){if(this.expr.length!==f.expr.length)return!1;for(var S=0,L=this.expr.length;S<L;S++)if(!this.expr[S].equals(f.expr[S]))return!1;return!0}return!1},m.prototype.evaluate=function(f){for(var S=0,L=this.expr.length;S<L;S++)if(this.expr[S].evaluate(f))return!0;return!1},m._normalizeArr=function(f){var S=[];if(f){for(var L=0,le=f.length;L<le;L++){var he=f[L];if(!he)continue;if(he instanceof m){S=S.concat(he.expr);continue}S.push(he)}S.sort(k)}return S},m.prototype.keys=function(){for(var f=[],S=0,L=this.expr;S<L.length;S++){var le=L[S];f.push.apply(f,le.keys())}return f},m.prototype.negate=function(){for(var f=[],S=0,L=this.expr;S<L.length;S++){var le=L[S];f.push(le.negate())}for(var he=function(V){return V instanceof m?V.expr:[V]};f.length>1;){for(var ge=f.shift(),Ie=f.shift(),xe=[],Oe=0,Ge=he(ge);Oe<Ge.length;Oe++)for(var ue=Ge[Oe],P=0,Re=he(Ie);P<Re.length;P++){var fe=Re[P];xe.push(J.and(ue,fe))}f.unshift(J.or.apply(J,xe))}return f[0]},m}(),A=function(m){de(f,m);function f(S,L){var le=m.call(this,S)||this;return le._defaultValue=L,le}return f.prototype.bindTo=function(S){return S.createKey(this.key,this._defaultValue)},f.prototype.getValue=function(S){return S.getContextKeyValue(this.key)},f.prototype.toNegated=function(){return J.not(this.key)},f}(me),O=Object(ve.c)("contextKeyService"),T="setContext"},TGq3:function(Be,Q,l){Be.exports=l.p+"static/lockclose.365036e8.svg"},UUDw:function(Be,Q,l){Be.exports={buttonFixed:"buttonFixed___2zLVJ",button:"button___-JgFH",buttonWrap:"buttonWrap___aZhhk"}},UeE2:function(Be,Q,l){"use strict";l.r(Q);var U=l("5NDa"),ve=l("5rEg"),de=l("2qtc"),J=l("kLXV"),k=l("miYZ"),me=l("tsqr"),j=l("9og8"),Y=l("k1fw"),W=l("y8nQ"),_=l("Vl3Y"),y=l("tJVT"),C=l("PpiC"),R=l("Znn+"),A=l("ZTPi"),O=l("WmNS"),T=l.n(O),m=l("q1tI"),f=l.n(m),S=l("9kvl"),L=l("Ot1p"),le=l("9Bee"),he=l("HBuW"),ge=l("+L6B"),Ie=l("2/Rp"),xe=l("14J3"),Oe=l("BMrR"),Ge=l("jCWc"),ue=l("kPKH"),P=l("OaEy"),Re=l("2fM7"),fe=l("7Kak"),V=l("9yH6"),ce=l("1vsH"),we=l("uIXO"),ie=l.n(we),De=l("5Dmo"),I=l("3S7+"),b=l("oBTY"),ye=l("Ty5D"),je=l("V0Rq"),_e=l("muJo"),st=l.n(_e),St=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],tt=function(Ue,Qe){var et=Ue.problemset,Dt=Ue.globalSetting,ct=Ue.loading,ot=Ue.dispatch,$e=Ue.onRef,Lt=$e===void 0?function(){}:$e,mt=Ue.editData,Ot=Object(C.a)(Ue,["problemset","globalSetting","loading","dispatch","onRef","editData"]),Le=Object(m.useState)([]),ht=Object(y.a)(Le,2),yt=ht[0],Fe=ht[1],Ze=Object(m.useState)(),se=Object(y.a)(Ze,2),ne=se[0],oe=se[1],M=Object(m.useState)([]),D=Object(y.a)(M,2),z=D[0],Z=D[1],Te=Object(m.useState)(""),Ce=Object(y.a)(Te,2),Ve=Ce[0],vt=Ce[1],bt=Object(m.useState)(!1),ft=Object(y.a)(bt,2),_t=ft[0],Bt=ft[1],ut=Object(m.useState)(""),ln=Object(y.a)(ut,2),qt=ln[0],lt=ln[1],mn=Object(m.useState)(5),Kt=Object(y.a)(mn,2),si=Kt[0],li=Kt[1],Ht=Object(m.useState)(!1),Wt=Object(y.a)(Ht,2),At=Wt[0],Ft=Wt[1],Sn=Object(ye.i)();Object(m.useEffect)(function(){Fe(["","","",""])},[]),Object(m.useEffect)(function(){console.log(yt,"questionChoiceList")},[yt]),Object(m.useEffect)(function(){var _n,Vt;if(!(mt!=null&&mt.challenge_id)){Ft(!0);return}vt(mt==null?void 0:mt.subject),li(parseInt(mt==null?void 0:mt.question_score)),Fe(mt==null||((_n=mt.choose_contents)===null||_n===void 0)?void 0:_n.map(function(rn){return rn.option_name}));var bn=[];mt==null||((Vt=mt.standard_answer)===null||Vt===void 0)||Vt.split("").map(function(rn,gn){bn.push(St.indexOf(rn))}),Z(bn)},[mt]),Object(m.useImperativeHandle)(Qe,function(){return{onSave:nn,onReset:Bn,isEdit:At}});var Bn=function(){Fe(["","","",""]),vt(""),Z([])},zn=function(){for(var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],bn=Object(b.a)(Vt),rn=bn.sort(),gn=0;gn<rn.length-1;gn++)if(rn[gn]==rn[gn+1])return!0;return!1},nn=function(){var _n=Object(j.a)(T.a.mark(function Vt(){var bn,rn;return T.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(Ve){Ne.next=4;break}return document.getElementById("question-scroll").scrollTo(0,0),Bt(!0),Ne.abrupt("return",!1);case 4:if(bn=yt.findIndex(function(pt){return!pt}),!(bn>-1)){Ne.next=9;break}return document.getElementById("question-scroll").scrollTo(0,250),lt("\u8BF7\u5148\u8F93\u5165 ".concat(St[bn]," \u9009\u9879\u7684\u5185\u5BB9")),Ne.abrupt("return",!1);case 9:if(!zn(yt)){Ne.next=13;break}return document.getElementById("question-scroll").scrollTo(0,250),lt("\u9009\u9879\u5DF2\u91CD\u590D"),Ne.abrupt("return",!1);case 13:if(z.length){Ne.next=17;break}return document.getElementById("question-scroll").scrollTo(0,250),lt("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),Ne.abrupt("return",!1);case 17:return rn=yt.map(function(pt,Yt){return{choice_text:pt,is_answer:!!z.includes(Yt)}}),Ne.abrupt("return",{subject:Ve,question:{cnt:rn.map(function(pt){return pt.choice_text})},choice:{answer:rn.map(function(pt){return pt.is_answer})}});case 19:case"end":return Ne.stop()}},Vt)}));return function(){return _n.apply(this,arguments)}}(),It=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Mi=function(){var _n=Object(j.a)(T.a.mark(function Vt(bn){return T.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:gn.t0=bn.id,gn.next=gn.t0==="del"?3:gn.t0==="up"||gn.t0==="down"?5:gn.t0==="edit"?9:11;break;case 3:return J.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk:function(){return Object(j.a)(T.a.mark(function pt(){return T.a.wrap(function(an){for(;;)switch(an.prev=an.next){case 0:return an.next=2,Object(je.m)({id:mt.question_id});case 2:ot({type:"exercise/editExercise",payload:Object(Y.a)({},Sn)});case 3:case"end":return an.stop()}},pt)}))()}}),gn.abrupt("break",11);case 5:return gn.next=7,ot({type:"exercise/exeriseMoveUpDown",payload:{id:mt.question_id,opr:bn.id}});case 7:return ot({type:"exercise/editExercise",payload:Object(Y.a)({},Sn)}),gn.abrupt("break",11);case 9:return Ft(!0),gn.abrupt("break",11);case 11:case"end":return gn.stop()}},Vt)}));return function(bn){return _n.apply(this,arguments)}}(),wi=function(){var Vt;return f.a.createElement("aside",null,f.a.createElement("p",{className:st.a.titleWrap},f.a.createElement("span",{className:st.a.required},"*"),f.a.createElement("span",{className:st.a.title},"\u9898\u5E72\uFF1A")),f.a.createElement(L.a,{id:"single-question-title",watch:!0,isFocus:!0,height:155,defaultValue:Ve,onChange:function(rn){vt(rn),Bt(!1)}}),_t&&f.a.createElement("div",{className:st.a.error},"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),f.a.createElement("p",{className:st.a.titleWrap},f.a.createElement("span",{className:st.a.required},"*"),f.a.createElement("span",{className:st.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",f.a.createElement("span",{className:st.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),yt.map(function(bn,rn){return f.a.createElement("div",{className:st.a.choiceWrap,key:rn},f.a.createElement(I.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},f.a.createElement("div",{className:"".concat(st.a.answer," ").concat(z.includes(rn)?st.a.activeAnswer:""),onClick:function(){lt(""),z.includes(rn)?Z(z.filter(function(Ne){return Ne!==rn})):Z([].concat(Object(b.a)(z),[rn]))}},St[rn])),f.a.createElement("div",{className:st.a.editorWrap},ne===rn?f.a.createElement(L.a,{id:"single-question-option-".concat(rn),watch:!0,isFocus:!0,height:155,defaultValue:bn,onChange:function(Ne){lt(""),yt[rn]=Ne,Fe(yt)}}):f.a.createElement("div",{className:st.a.htmlWrap,onClick:function(){return oe(rn)}},f.a.createElement(le.a,{value:bn}))),rn>1&&f.a.createElement(I.a,{title:"\u5220\u9664"},f.a.createElement("i",{className:"".concat(st.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){Fe(yt.filter(function(Yt,an){return an!==rn}));var Ne=z.filter(function(Yt,an){return Yt!==rn}),pt=Ne.map(function(Yt){return Yt<rn?Yt:Yt-1});Z(pt)}})),rn<7&&rn===yt.length-1&&f.a.createElement(I.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},f.a.createElement("i",{className:"".concat(st.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return Fe([].concat(Object(b.a)(yt),[""]))}})))}),qt&&f.a.createElement("div",{className:"".concat(st.a.error," mt10")},qt),f.a.createElement("div",{className:"mt10"},f.a.createElement("span",{className:"c-grey-999"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),f.a.createElement("p",null,"\u6807\u51C6\u7B54\u6848\uFF1A",f.a.createElement("span",{className:"c-light-primary"},z==null||((Vt=z.sort(function(bn,rn){return bn-rn}))===null||Vt===void 0)?void 0:Vt.map(function(bn){return St[bn]})))))};return console.log(z,"activeAnswer"),f.a.createElement("section",{className:st.a.wrap},wi())},nt=Object(S.a)(function(He){var Ue=He.problemset,Qe=He.loading,et=He.globalSetting;return{problemset:Ue,globalSetting:et,loading:Qe.effects}},null,null,{forwardRef:!0})(Object(m.forwardRef)(tt)),Je=function(Ue){var Qe=Ue.visible,et=Qe===void 0?!1:Qe,Dt=Ue.is_published,ct=Ue.match,ot=Ue.editData,$e=Ue.onOk,Lt=Ue.onCancel,mt=Object(m.useState)([10,20]),Ot=Object(y.a)(mt,2),Le=Ot[0],ht=Ot[1],yt=_.a.useForm(),Fe=Object(y.a)(yt,1),Ze=Fe[0],se=Object(m.useState)({}),ne=Object(y.a)(se,2),oe=ne[0],M=ne[1],D=Object(m.useRef)();Object(m.useEffect)(function(){return document.getElementById("modal-level-question").style.transform="none",function(){document.getElementById("modal-level-question").style.transform="translateX(0)"}},[]),Object(m.useEffect)(function(){et&&ot&&(Ze.setFieldsValue(Object(Y.a)({},ot)),ht(z[ot.difficult]))},[et]);var z={1:[10,20],2:[30,40,50,60],3:[70,80,90,100]},Z=function(ft,_t){M(Object(Y.a)({},_t)),"difficult"in ft&&Ce(ft.difficult)},Te=function(){var bt=Object(j.a)(T.a.mark(function ft(){var _t,Bt,ut;return T.a.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return Bt="",qt.next=3,D.current.onSave();case 3:if(ut=qt.sent,ut){qt.next=6;break}return qt.abrupt("return",!1);case 6:return(_t=ut.choice)===null||_t===void 0||_t.answer.map(function(lt,mn){lt&&(Bt+=ce.m[mn])}),qt.abrupt("return",{challenge_choose:{subject:ut.subject,answer:oe.task_pass,standard_answer:Bt,score:oe.score,difficult:oe.difficult},challenge_tag:oe.challenge_tag,question:ut.question,choice:ut.choice});case 8:case"end":return qt.stop()}},ft)}));return function(){return bt.apply(this,arguments)}}(),Ce=function(ft){var _t=z[ft],Bt=_t==null?void 0:_t[0];ht(_t),Ze.setFieldsValue({score:Bt}),M(Object(Y.a)(Object(Y.a)({},Ze.getFieldsValue()),{score:Bt}))},Ve=function(){var bt=Object(j.a)(T.a.mark(function ft(_t){var Bt,ut,ln;return T.a.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return lt.next=2,Te();case 2:if(Bt=lt.sent,Bt){lt.next=5;break}return lt.abrupt("return");case 5:if(!ot){lt.next=25;break}return lt.t0=he.Mb,lt.t1=Y.a,lt.t2=Y.a,lt.t3=Y.a,lt.t4={},lt.next=13,Bt;case 13:return lt.t5=lt.sent,lt.t6=(0,lt.t3)(lt.t4,lt.t5),lt.t7=ct.params,lt.t8=(0,lt.t2)(lt.t6,lt.t7),lt.t9={},lt.t10={questionId:ot.choose_id},lt.t11=(0,lt.t1)(lt.t8,lt.t9,lt.t10),lt.next=22,(0,lt.t0)(lt.t11);case 22:return ut=lt.sent,ut.challenge_choose_id&&(me.b.success("\u64CD\u4F5C\u6210\u529F"),$e()),lt.abrupt("return");case 25:return lt.t12=he.c,lt.t13=Y.a,lt.t14=Y.a,lt.t15={},lt.next=31,Bt;case 31:return lt.t16=lt.sent,lt.t17=(0,lt.t14)(lt.t15,lt.t16),lt.t18=ct.params,lt.t19=(0,lt.t13)(lt.t17,lt.t18),lt.next=37,(0,lt.t12)(lt.t19);case 37:ln=lt.sent,ln.challenge_choose_id&&(me.b.success("\u64CD\u4F5C\u6210\u529F"),$e());case 39:case"end":return lt.stop()}},ft)}));return function(_t){return bt.apply(this,arguments)}}(),vt=function(){var bt=Object(j.a)(T.a.mark(function ft(){var _t;return T.a.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return ut.next=2,D.current.onSave();case 2:if(_t=ut.sent,_t){ut.next=5;break}return ut.abrupt("return",!1);case 5:Ze.submit();case 6:case"end":return ut.stop()}},ft)}));return function(){return bt.apply(this,arguments)}}();return f.a.createElement("div",{className:ie.a.modal},f.a.createElement("div",{className:ie.a.main},f.a.createElement("div",{className:ie.a.title},f.a.createElement("span",{className:ie.a.name},ot?"\u7F16\u8F91\u9898\u76EE":"\u6DFB\u52A0\u9898\u76EE"),f.a.createElement("span",{className:ie.a.edit,onClick:Lt}," ",f.a.createElement("i",{className:"iconfont icon-guanbi1"})," ")),f.a.createElement("div",{className:ie.a.body,id:"question-scroll"},f.a.createElement(_.a,{form:Ze,className:ie.a.form,scrollToFirstError:!0,layout:"vertical",onValuesChange:Z,onFinish:Ve,initialValues:{difficult:1,score:10}},f.a.createElement(nt,{ref:D,editData:ot}),f.a.createElement(_.a.Item,{name:"task_pass",label:"\u53C2\u8003\u7B54\u6848:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53C2\u8003\u7B54\u6848"},{max:35e3,message:"\u53C2\u8003\u7B54\u6848\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},f.a.createElement(L.a,{watch:!0,defaultValue:(ot==null?void 0:ot.answer)||""})),f.a.createElement(_.a.Item,{name:"difficult",label:"\u96BE\u5EA6\u7CFB\u6570:",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6\u7CFB\u6570"}]},f.a.createElement(V.a.Group,{disabled:Dt},f.a.createElement(V.a,{value:1},"\u7B80\u5355"),f.a.createElement(V.a,{style:{marginLeft:80},value:2},"\u4E2D\u7B49"),f.a.createElement(V.a,{style:{marginLeft:80},className:"ml80",value:3},"\u56F0\u96BE"))),f.a.createElement(Oe.a,{className:"customAddItemSelect"},f.a.createElement(ue.a,null,f.a.createElement(_.a.Item,{name:"score",label:"\u5956\u52B1\u91D1\u5E01:",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5956\u52B1\u7ECF\u9A8C\u503C"}]},f.a.createElement(Re.a,{disabled:Dt,bordered:!1},Le.map(function(bt){return f.a.createElement(Re.a.Option,{key:bt,value:bt},bt)})))),f.a.createElement(ue.a,{style:{paddingTop:65}},f.a.createElement("div",{className:"font12 c-light-black ml10 mt20"},"\u5B66\u5458\u6B63\u786E\u7B54\u9898\u65F6\u83B7\u5F97\u91D1\u5E01\uFF0C\u5E76\u4E14\u83B7\u5F97\u7B49\u91CF\u7684\u7ECF\u9A8C\u503C\u3002\u5982\uFF1A+100\u91D1\u5E01\u3001+100\u7ECF\u9A8C\u503C\u3002"))))),f.a.createElement("div",{className:ie.a.btns},f.a.createElement(Ie.a,{size:"large",style:{marginRight:20},onClick:Lt},"\u53D6\u6D88"),f.a.createElement(Ie.a,{size:"large",type:"primary",onClick:vt},"\u4FDD\u5B58"))))},Ye=Je,Ee=l("mepR"),F=l.n(Ee),it=l("9ZNV"),Mt=l("nuEh"),Tt=l("UqFu"),Ct=l("lzim"),q=l("xKgJ"),$=A.a.TabPane,Ae=function(Ue){var Qe,et,Dt=Ue.shixunsDetail,ct=Ue.practiceSetting,ot=Ue.dispatch,$e=Ue.match,Lt=Ue.location,mt=Object(C.a)(Ue,["shixunsDetail","practiceSetting","dispatch","match","location"]),Ot=_.a.useForm(),Le=Object(y.a)(Ot,1),ht=Le[0],yt=Object(m.useState)({}),Fe=Object(y.a)(yt,2),Ze=Fe[0],se=Fe[1],ne=Object(m.useState)([]),oe=Object(y.a)(ne,2),M=oe[0],D=oe[1],z=Object(m.useState)(!0),Z=Object(y.a)(z,2),Te=Z[0],Ce=Z[1],Ve=Object(m.useState)(!0),vt=Object(y.a)(Ve,2),bt=vt[0],ft=vt[1],_t=Object(m.useState)(!1),Bt=Object(y.a)(_t,2),ut=Bt[0],ln=Bt[1],qt=Object(m.useState)(null),lt=Object(y.a)(qt,2),mn=lt[0],Kt=lt[1],si=Object(m.useState)(null),li=Object(y.a)(si,2),Ht=li[0],Wt=li[1],At=Object(m.useState)("1"),Ft=Object(y.a)(At,2),Sn=Ft[0],Bn=Ft[1],zn=Object(m.useState)(1),nn=Object(y.a)(zn,2),It=nn[0],Mi=nn[1],wi=Object(m.useRef)({subject:"",task_pass:""}),_n=Object(m.useRef)(null),Vt=ct.is_published,bn=ct.id,rn=Dt.challengesEdit,gn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];Object(m.useEffect)(function(){var kt;return Lt!=null&&(kt=Lt.query)!==null&&kt!==void 0&&kt.tab&&Bn(Lt.query.tab),Yt(),an(),function(){clearTimeout(_n.current)}},[Lt.pathname]);var Ne=function(){clearTimeout(_n.current),_n.current=setTimeout(function(){var Rt=ht.getFieldsValue(),jt=Rt.subject,un=Rt.task_pass;wi.current.subject!==""&&(jt!==wi.current.subject||un!==wi.current.task_pass?ot({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):ot({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}))},500)},pt=function(Rt,jt){se(Object(Y.a)({},jt)),Ne()},Yt=function(){var kt=Object(j.a)(T.a.mark(function Rt(){var jt;return T.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return ft(!0),wn.next=3,ot({type:"shixunsDetail/getChallengesEdit",payload:Object(Y.a)({},$e.params)});case 3:jt=wn.sent,Wt(Object(Y.a)({},jt)),wi.current={subject:jt.subject,task_pass:Object(Tt.a)(jt.task_pass),unity_3d_routes:jt.unity_3d_routes},se(Object(Y.a)({},wi.current)),ht.setFieldsValue(Object(Y.a)({},jt)),ft(!1);case 9:case"end":return wn.stop()}},Rt)}));return function(){return kt.apply(this,arguments)}}(),an=function(){var kt=Object(j.a)(T.a.mark(function Rt(){var jt;return T.a.wrap(function(wn){for(;;)switch(wn.prev=wn.next){case 0:return Ce(!0),wn.next=3,Object(he.ab)(Object(Y.a)({},$e.params));case 3:jt=wn.sent,D(jt.data),Ce(!1);case 6:case"end":return wn.stop()}},Rt)}));return function(){return kt.apply(this,arguments)}}(),Pn=function(){var kt=Object(j.a)(T.a.mark(function Rt(jt){var un,wn,on;return T.a.wrap(function(vi){for(;;)switch(vi.prev=vi.next){case 0:return un=!(!jt.unity_3d_routes||jt.unity_3d_routes==""),wn=Object(Y.a)(Object(Y.a)(Object(Y.a)({},jt),$e.params),{},{unity_3d_routes:un?jt.unity_3d_routes:null,unity_3d:un}),vi.next=4,Object(he.Lb)(wn);case 4:on=vi.sent,on.status===0&&(me.b.success(on.message),ot({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),ot({type:"practiceSetting/setUpdateIndex"}),Bn("2"),te());case 6:case"end":return vi.stop()}},Rt)}));return function(jt){return kt.apply(this,arguments)}}(),Un=function(){return Sn==="1"?null:f.a.createElement("span",{className:F.a.addBtn,onClick:function(){return ln(!0)}},f.a.createElement("i",{className:"iconfont icon-tianjiatimu"}),"\u6DFB\u52A0\u9898\u76EE")},d=function(Rt){var jt,un=function(){Bn(Rt),te(),ot({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};ct!=null&&(jt=ct.sideBar)!==null&&jt!==void 0&&jt.confirmLeave?J.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){un()}}):un()},o=function(Rt){var jt=function(){var un=Object(j.a)(T.a.mark(function wn(){var on;return T.a.wrap(function(vi){for(;;)switch(vi.prev=vi.next){case 0:return vi.next=2,Object(he.v)(Object(Y.a)(Object(Y.a)({},$e.params),{},{questionId:Rt}));case 2:on=vi.sent,on.challenge_id&&(an(),me.b.success("\u5220\u9664\u6210\u529F"));case 4:case"end":return vi.stop()}},wn)}));return function(){return un.apply(this,arguments)}}();J.a.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u5220\u9664\u9898\u76EE!",centered:!0,onOk:jt})},a=function(){var kt=Object(j.a)(T.a.mark(function Rt(jt){var un;return T.a.wrap(function(on){for(;;)switch(on.prev=on.next){case 0:return on.next=2,Object(he.Hb)(Object(Y.a)(Object(Y.a)({},$e.params),{},{questionId:jt}));case 2:un=on.sent,un.status===0&&an();case 4:case"end":return on.stop()}},Rt)}));return function(jt){return kt.apply(this,arguments)}}(),c=function(){var kt=Object(j.a)(T.a.mark(function Rt(jt){var un;return T.a.wrap(function(on){for(;;)switch(on.prev=on.next){case 0:return on.next=2,Object(he.B)(Object(Y.a)(Object(Y.a)({},$e.params),{},{questionId:jt}));case 2:un=on.sent,un.status===0&&an();case 4:case"end":return on.stop()}},Rt)}));return function(jt){return kt.apply(this,arguments)}}(),p=function(){var kt=Object(j.a)(T.a.mark(function Rt(jt){var un;return T.a.wrap(function(on){for(;;)switch(on.prev=on.next){case 0:return on.next=2,Object(he.P)(Object(Y.a)(Object(Y.a)({},$e.params),{},{questionId:jt}));case 2:un=on.sent,Kt(Object(Y.a)(Object(Y.a)({},un),{},{choose_id:jt})),ln(!0);case 5:case"end":return on.stop()}},Rt)}));return function(jt){return kt.apply(this,arguments)}}(),h=function(){Ke()},te=function(){Mi(It+1),Yt()},Ke=function(){var Rt,jt=function(){S.d.push("/shixuns/".concat(bn,"/challenges")),ot({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};ct!=null&&(Rt=ct.sideBar)!==null&&Rt!==void 0&&Rt.confirmLeave?J.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){jt()}}):jt()},gt=function(){return M.map(function(Rt,jt){var un=Rt.challenge_choose_id,wn=Rt.subject,on=Rt.choose_contents,_i=Rt.standard_answer,vi=Rt.answer,Oi=Rt.score,zi=Rt.category;return f.a.createElement("div",{key:un,className:F.a.list},f.a.createElement("div",{className:F.a.top},f.a.createElement("div",{className:F.a.left},f.a.createElement("div",{className:F.a.title},f.a.createElement("div",{className:F.a.fs},jt+1,". "),f.a.createElement(le.a,{value:wn})),on.map(function(ui,sr){return f.a.createElement("ul",{key:sr,className:ui.right_key?F.a.qsActive:F.a.qs},f.a.createElement("li",null,gn[ui.position]),f.a.createElement("li",null,f.a.createElement(le.a,{value:ui.option_name})))})),f.a.createElement("div",{className:F.a.right},f.a.createElement("i",{onClick:function(){return p(un)},className:"iconfont icon-xiaoxiugai"}),f.a.createElement("i",{onClick:function(){return o(un)},className:"iconfont icon-shanchu23"}),jt!==M.length-1&&f.a.createElement("i",{onClick:function(){return c(un)},className:"iconfont icon-xiayi2"}),jt!==0&&f.a.createElement("i",{onClick:function(){return a(un)},className:"iconfont icon-shangyi2"}))),f.a.createElement("div",{className:F.a.bt},"\u9898\u578B\uFF1A",zi===1?"\u5355\u9009\u9898":"\u591A\u9009\u9898","\xA0\xA0\xA0\xA0\u5956\u52B1\u91D1\u5E01\uFF1A",Oi),f.a.createElement("div",{className:F.a.answer},f.a.createElement("p",null,"\u6807\u51C6\u7B54\u6848\uFF1A",_i),f.a.createElement("p",null,f.a.createElement("div",{className:F.a.fs},"\u53C2\u8003\u7B54\u6848\uFF1A"),f.a.createElement(le.a,{value:vi}))))})},Nt=function(){ln(!1),Kt(null),an()},Xe=function(){ln(!1),Kt(null)};return f.a.createElement("section",{className:F.a.bg,style:{marginBottom:Sn==="1"?67:0}},f.a.createElement(A.a,{activeKey:Sn,onChange:d,tabBarExtraContent:Un()},f.a.createElement($,{tab:"\u672C\u5173\u4EFB\u52A1",key:"1"},f.a.createElement(_.a,{key:It,form:ht,scrollToFirstError:!0,className:F.a.formWrap,layout:"vertical",onValuesChange:pt,onFinish:Pn},f.a.createElement("div",{className:F.a.fieldWrap},f.a.createElement(_.a.Item,{initialValue:"",name:"subject",label:"\u4EFB\u52A1\u540D\u79F0:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"}]},f.a.createElement(ve.a,{bordered:!1,maxLength:60,suffix:"".concat(((Qe=Ze.subject)===null||Qe===void 0?void 0:Qe.length)||0,"/60"),placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),f.a.createElement("div",{className:F.a.mdWrap},f.a.createElement(_.a.Item,{name:"task_pass",label:"\u4EFB\u52A1\u8981\u6C42:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:35e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},f.a.createElement(L.a,{key:$e.params.challengesId||"3",watch:!0,defaultValue:rn.task_pass}))),f.a.createElement(_.a.Item,{noStyle:!0},f.a.createElement(it.a,{okButtonProps:{htmlType:"submit"},className:"customFixedButton",onCancel:h})),Object(q.o)()&&f.a.createElement("div",{className:F.a.fieldWrap},f.a.createElement(_.a.Item,{initialValue:"",name:"unity_3d_routes",label:"\u5D4C\u5165\u7B2C\u4E09\u65B9\u5E73\u53F0:"},f.a.createElement(ve.a,{bordered:!1,maxLength:60,suffix:"".concat(((et=Ze.unity_3d_routes)===null||et===void 0?void 0:et.length)||0,"/60"),placeholder:"\u8BF7\u8F93\u5165\u7B2C\u4E09\u65B9\u5E73\u53F0\u5730\u5740"}))))),f.a.createElement($,{tab:"\u9898\u76EE",key:"2"},!!M.length&&gt(),!M.length&&f.a.createElement("div",{className:F.a.empty},f.a.createElement("img",{src:Ct.l,width:"258"}),f.a.createElement("span",{className:"c-grey-c"},"\u8BF7\u70B9\u51FB\u53F3\u4E0A\u89D2\u6DFB\u52A0\u9898\u76EE\u6309\u94AE\u8FDB\u884C\u9898\u76EE\u7684\u521B\u5EFA! ")))),ut&&f.a.createElement(Ye,{is_published:Vt,visible:ut,onCancel:Xe,onOk:Nt,match:$e,editData:mn}),f.a.createElement(Mt.a,{loading:bt}))},Pe=Q.default=Object(S.a)(function(He){var Ue=He.shixunsDetail,Qe=He.newCourse,et=He.globalSetting,Dt=He.practiceSetting;return{shixunsDetail:Ue,newCourse:Qe,globalSetting:et,practiceSetting:Dt}})(Ae)},UqFu:function(Be,Q,l){"use strict";l.d(Q,"a",function(){return U});var U=function(de){var J=document.createElement("textarea");return J.value=de,J.value}},"VrN/":function(Be,Q,l){(function(U,ve){Be.exports=ve()})(this,function(){"use strict";var U=navigator.userAgent,ve=navigator.platform,de=/gecko\/\d/i.test(U),J=/MSIE \d/.test(U),k=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(U),me=/Edge\/(\d+)/.exec(U),j=J||k||me,Y=j&&(J?document.documentMode||6:+(me||k)[1]),W=!me&&/WebKit\//.test(U),_=W&&/Qt\/\d+\.\d+/.test(U),y=!me&&/Chrome\//.test(U),C=/Opera\//.test(U),R=/Apple Computer/.test(navigator.vendor),A=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(U),O=/PhantomJS/.test(U),T=!me&&/AppleWebKit/.test(U)&&/Mobile\/\w+/.test(U),m=/Android/.test(U),f=T||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(U),S=T||/Mac/.test(ve),L=/\bCrOS\b/.test(U),le=/win/i.test(ve),he=C&&U.match(/Version\/(\d*\.\d*)/);he&&(he=Number(he[1])),he&&he>=15&&(C=!1,W=!0);var ge=S&&(_||C&&(he==null||he<12.11)),Ie=de||j&&Y>=9;function xe(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var Oe=function(e,t){var i=e.className,n=xe(t).exec(i);if(n){var r=i.slice(n.index+n[0].length);e.className=i.slice(0,n.index)+(r?n[1]+r:"")}};function Ge(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function ue(e,t){return Ge(e).appendChild(t)}function P(e,t,i,n){var r=document.createElement(e);if(i&&(r.className=i),n&&(r.style.cssText=n),typeof t=="string")r.appendChild(document.createTextNode(t));else if(t)for(var s=0;s<t.length;++s)r.appendChild(t[s]);return r}function Re(e,t,i,n){var r=P(e,t,i,n);return r.setAttribute("role","presentation"),r}var fe;document.createRange?fe=function(e,t,i,n){var r=document.createRange();return r.setEnd(n||e,i),r.setStart(e,t),r}:fe=function(e,t,i){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(r){return n}return n.collapse(!0),n.moveEnd("character",i),n.moveStart("character",t),n};function V(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 ce(){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 we(e,t){var i=e.className;xe(t).test(i)||(e.className+=(i?" ":"")+t)}function ie(e,t){for(var i=e.split(" "),n=0;n<i.length;n++)i[n]&&!xe(i[n]).test(t)&&(t+=" "+i[n]);return t}var De=function(e){e.select()};T?De=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:j&&(De=function(e){try{e.select()}catch(t){}});function I(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function b(e,t,i){t||(t={});for(var n in e)e.hasOwnProperty(n)&&(i!==!1||!t.hasOwnProperty(n))&&(t[n]=e[n]);return t}function ye(e,t,i,n,r){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var s=n||0,u=r||0;;){var g=e.indexOf(" ",s);if(g<0||g>=t)return u+(t-s);u+=g-s,u+=i-u%i,s=g+1}}var je=function(){this.id=null,this.f=null,this.time=0,this.handler=I(this.onTimeout,this)};je.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},je.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function _e(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var st=50,St={toString:function(){return"CodeMirror.Pass"}},tt={scroll:!1},nt={origin:"*mouse"},Je={origin:"+move"};function Ye(e,t,i){for(var n=0,r=0;;){var s=e.indexOf(" ",n);s==-1&&(s=e.length);var u=s-n;if(s==e.length||r+u>=t)return n+Math.min(u,t-r);if(r+=s-n,r+=i-r%i,n=s+1,r>=t)return n}}var Ee=[""];function F(e){for(;Ee.length<=e;)Ee.push(it(Ee)+" ");return Ee[e]}function it(e){return e[e.length-1]}function Mt(e,t){for(var i=[],n=0;n<e.length;n++)i[n]=t(e[n],n);return i}function Tt(e,t,i){for(var n=0,r=i(t);n<e.length&&i(e[n])<=r;)n++;e.splice(n,0,t)}function Ct(){}function q(e,t){var i;return Object.create?i=Object.create(e):(Ct.prototype=e,i=new Ct),t&&b(t,i),i}var $=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ae(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||$.test(e))}function Pe(e,t){return t?t.source.indexOf("\\w")>-1&&Ae(e)?!0:t.test(e):Ae(e)}function He(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Ue=/[\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 Qe(e){return e.charCodeAt(0)>=768&&Ue.test(e)}function et(e,t,i){for(;(i<0?t>0:t<e.length)&&Qe(e.charAt(t));)t+=i;return t}function Dt(e,t,i){for(var n=t>i?-1:1;;){if(t==i)return t;var r=(t+i)/2,s=n<0?Math.ceil(r):Math.floor(r);if(s==t)return e(s)?t:i;e(s)?i=s:t=s+n}}function ct(e,t,i,n){if(!e)return n(t,i,"ltr",0);for(var r=!1,s=0;s<e.length;++s){var u=e[s];(u.from<i&&u.to>t||t==i&&u.to==t)&&(n(Math.max(u.from,t),Math.min(u.to,i),u.level==1?"rtl":"ltr",s),r=!0)}r||n(t,i,"ltr")}var ot=null;function $e(e,t,i){var n;ot=null;for(var r=0;r<e.length;++r){var s=e[r];if(s.from<t&&s.to>t)return r;s.to==t&&(s.from!=s.to&&i=="before"?n=r:ot=r),s.from==t&&(s.from!=s.to&&i!="before"?n=r:ot=r)}return n!=null?n:ot}var Lt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(x){return x<=247?e.charAt(x):1424<=x&&x<=1524?"R":1536<=x&&x<=1785?t.charAt(x-1536):1774<=x&&x<=2220?"r":8192<=x&&x<=8203?"w":x==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,s=/[LRr]/,u=/[Lb1n]/,g=/[1n]/;function v(x,G,ee){this.level=x,this.from=G,this.to=ee}return function(x,G){var ee=G=="ltr"?"L":"R";if(x.length==0||G=="ltr"&&!n.test(x))return!1;for(var Me=x.length,Se=[],ze=0;ze<Me;++ze)Se.push(i(x.charCodeAt(ze)));for(var qe=0,dt=ee;qe<Me;++qe){var xt=Se[qe];xt=="m"?Se[qe]=dt:dt=xt}for(var Pt=0,wt=ee;Pt<Me;++Pt){var Ut=Se[Pt];Ut=="1"&&wt=="r"?Se[Pt]="n":s.test(Ut)&&(wt=Ut,Ut=="r"&&(Se[Pt]="R"))}for(var en=1,Xt=Se[0];en<Me-1;++en){var yn=Se[en];yn=="+"&&Xt=="1"&&Se[en+1]=="1"?Se[en]="1":yn==","&&Xt==Se[en+1]&&(Xt=="1"||Xt=="n")&&(Se[en]=Xt),Xt=yn}for(var $n=0;$n<Me;++$n){var ji=Se[$n];if(ji==",")Se[$n]="N";else if(ji=="%"){var fi=void 0;for(fi=$n+1;fi<Me&&Se[fi]=="%";++fi);for(var ar=$n&&Se[$n-1]=="!"||fi<Me&&Se[fi]=="1"?"1":"N",tr=$n;tr<fi;++tr)Se[tr]=ar;$n=fi-1}}for(var Si=0,nr=ee;Si<Me;++Si){var Wi=Se[Si];nr=="L"&&Wi=="1"?Se[Si]="L":s.test(Wi)&&(nr=Wi)}for(var Ni=0;Ni<Me;++Ni)if(r.test(Se[Ni])){var ki=void 0;for(ki=Ni+1;ki<Me&&r.test(Se[ki]);++ki);for(var gi=(Ni?Se[Ni-1]:ee)=="L",ir=(ki<Me?Se[ki]:ee)=="L",Uo=gi==ir?gi?"L":"R":ee,oo=Ni;oo<ki;++oo)Se[oo]=Uo;Ni=ki-1}for(var Ki=[],Nr,Bi=0;Bi<Me;)if(u.test(Se[Bi])){var ps=Bi;for(++Bi;Bi<Me&&u.test(Se[Bi]);++Bi);Ki.push(new v(0,ps,Bi))}else{var Hr=Bi,go=Ki.length,vo=G=="rtl"?1:0;for(++Bi;Bi<Me&&Se[Bi]!="L";++Bi);for(var qi=Hr;qi<Bi;)if(g.test(Se[qi])){Hr<qi&&(Ki.splice(go,0,new v(1,Hr,qi)),go+=vo);var Fo=qi;for(++qi;qi<Bi&&g.test(Se[qi]);++qi);Ki.splice(go,0,new v(2,Fo,qi)),go+=vo,Hr=qi}else++qi;Hr<Bi&&Ki.splice(go,0,new v(1,Hr,Bi))}return G=="ltr"&&(Ki[0].level==1&&(Nr=x.match(/^\s+/))&&(Ki[0].from=Nr[0].length,Ki.unshift(new v(0,0,Nr[0].length))),it(Ki).level==1&&(Nr=x.match(/\s+$/))&&(it(Ki).to-=Nr[0].length,Ki.push(new v(0,Me-Nr[0].length,Me)))),G=="rtl"?Ki.reverse():Ki}}();function mt(e,t){var i=e.order;return i==null&&(i=e.order=Lt(e.text,t)),i}var Ot=[],Le=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||Ot).concat(i)}};function ht(e,t){return e._handlers&&e._handlers[t]||Ot}function yt(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var n=e._handlers,r=n&&n[t];if(r){var s=_e(r,i);s>-1&&(n[t]=r.slice(0,s).concat(r.slice(s+1)))}}}function Fe(e,t){var i=ht(e,t);if(!i.length)return;for(var n=Array.prototype.slice.call(arguments,2),r=0;r<i.length;++r)i[r].apply(null,n)}function Ze(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Fe(e,i||t.type,e,t),z(t)||t.codemirrorIgnore}function se(e){var t=e._handlers&&e._handlers.cursorActivity;if(!t)return;for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)_e(i,t[n])==-1&&i.push(t[n])}function ne(e,t){return ht(e,t).length>0}function oe(e){e.prototype.on=function(t,i){Le(this,t,i)},e.prototype.off=function(t,i){yt(this,t,i)}}function M(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function D(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function z(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Z(e){M(e),D(e)}function Te(e){return e.target||e.srcElement}function Ce(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),S&&e.ctrlKey&&t==1&&(t=3),t}var Ve=function(){if(j&&Y<9)return!1;var e=P("div");return"draggable"in e||"dragDrop"in e}(),vt;function bt(e){if(vt==null){var t=P("span","\u200B");ue(e,P("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(vt=t.offsetWidth<=1&&t.offsetHeight>2&&!(j&&Y<8))}var i=vt?P("span","\u200B"):P("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var ft;function _t(e){if(ft!=null)return ft;var t=ue(e,document.createTextNode("A\u062EA")),i=fe(t,0,1).getBoundingClientRect(),n=fe(t,1,2).getBoundingClientRect();return Ge(e),!i||i.left==i.right?!1:ft=n.right-i.right<3}var Bt=`
b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],n=e.length;t<=n;){var r=e.indexOf(`
`,t);r==-1&&(r=e.length);var s=e.slice(t,e.charAt(r-1)=="\r"?r-1:r),u=s.indexOf("\r");u!=-1?(i.push(s.slice(0,u)),t+=u+1):(i.push(s),t=r+1)}return i}:function(e){return e.split(/\r\n?|\n/)},ut=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(i){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},ln=function(){var e=P("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),qt=null;function lt(e){if(qt!=null)return qt;var t=ue(e,P("span","x")),i=t.getBoundingClientRect(),n=fe(t,0,1).getBoundingClientRect();return qt=Math.abs(i.left-n.left)>1}var mn={},Kt={};function si(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),mn[e]=t}function li(e,t){Kt[e]=t}function Ht(e){if(typeof e=="string"&&Kt.hasOwnProperty(e))e=Kt[e];else if(e&&typeof e.name=="string"&&Kt.hasOwnProperty(e.name)){var t=Kt[e.name];typeof t=="string"&&(t={name:t}),e=q(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ht("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ht("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Wt(e,t){t=Ht(t);var i=mn[t.name];if(!i)return Wt(e,"text/plain");var n=i(e,t);if(At.hasOwnProperty(t.name)){var r=At[t.name];for(var s in r){if(!r.hasOwnProperty(s))continue;n.hasOwnProperty(s)&&(n["_"+s]=n[s]),n[s]=r[s]}}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var u in t.modeProps)n[u]=t.modeProps[u];return n}var At={};function Ft(e,t){var i=At.hasOwnProperty(e)?At[e]:At[e]={};b(t,i)}function Sn(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var n in t){var r=t[n];r instanceof Array&&(r=r.concat([])),i[n]=r}return i}function Bn(e,t){for(var i;e.innerMode&&!(i=e.innerMode(t),!i||i.mode==e);)t=i.state,e=i.mode;return i||{mode:e,state:t}}function zn(e,t,i){return e.startState?e.startState(t,i):!0}var nn=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};nn.prototype.eol=function(){return this.pos>=this.string.length},nn.prototype.sol=function(){return this.pos==this.lineStart},nn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},nn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},nn.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e.test?e.test(t):e(t)),i)return++this.pos,t},nn.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},nn.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},nn.prototype.skipToEnd=function(){this.pos=this.string.length},nn.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},nn.prototype.backUp=function(e){this.pos-=e},nn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ye(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ye(this.string,this.lineStart,this.tabSize):0)},nn.prototype.indentation=function(){return ye(this.string,null,this.tabSize)-(this.lineStart?ye(this.string,this.lineStart,this.tabSize):0)},nn.prototype.match=function(e,t,i){if(typeof e=="string"){var n=function(u){return i?u.toLowerCase():u},r=this.string.substr(this.pos,e.length);if(n(r)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var s=this.string.slice(this.pos).match(e);return s&&s.index>0?null:(s&&t!==!1&&(this.pos+=s[0].length),s)}},nn.prototype.current=function(){return this.string.slice(this.start,this.pos)},nn.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},nn.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},nn.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function It(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var n=0;;++n){var r=i.children[n],s=r.chunkSize();if(t<s){i=r;break}t-=s}return i.lines[t]}function Mi(e,t,i){var n=[],r=t.line;return e.iter(t.line,i.line+1,function(s){var u=s.text;r==i.line&&(u=u.slice(0,i.ch)),r==t.line&&(u=u.slice(t.ch)),n.push(u),++r}),n}function wi(e,t,i){var n=[];return e.iter(t,i,function(r){n.push(r.text)}),n}function _n(e,t){var i=t-e.height;if(i)for(var n=e;n;n=n.parent)n.height+=i}function Vt(e){if(e.parent==null)return null;for(var t=e.parent,i=_e(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var r=0;!(n.children[r]==t);++r)i+=n.children[r].chunkSize();return i+t.first}function bn(e,t){var i=e.first;e:do{for(var n=0;n<e.children.length;++n){var r=e.children[n],s=r.height;if(t<s){e=r;continue e}t-=s,i+=r.chunkSize()}return i}while(!e.lines);for(var u=0;u<e.lines.length;++u){var g=e.lines[u],v=g.height;if(t<v)break;t-=v}return i+u}function rn(e,t){return t>=e.first&&t<e.first+e.size}function gn(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function Ne(e,t,i){if(i===void 0&&(i=null),!(this instanceof Ne))return new Ne(e,t,i);this.line=e,this.ch=t,this.sticky=i}function pt(e,t){return e.line-t.line||e.ch-t.ch}function Yt(e,t){return e.sticky==t.sticky&&pt(e,t)==0}function an(e){return Ne(e.line,e.ch)}function Pn(e,t){return pt(e,t)<0?t:e}function Un(e,t){return pt(e,t)<0?e:t}function d(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function o(e,t){if(t.line<e.first)return Ne(e.first,0);var i=e.first+e.size-1;return t.line>i?Ne(i,It(e,i).text.length):a(t,It(e,t.line).text.length)}function a(e,t){var i=e.ch;return i==null||i>t?Ne(e.line,t):i<0?Ne(e.line,0):e}function c(e,t){for(var i=[],n=0;n<t.length;n++)i[n]=o(e,t[n]);return i}var p=function(e,t){this.state=e,this.lookAhead=t},h=function(e,t,i,n){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};h.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},h.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}},h.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},h.fromSaved=function(e,t,i){return t instanceof p?new h(e,Sn(e.mode,t.state),i,t.lookAhead):new h(e,Sn(e.mode,t),i)},h.prototype.save=function(e){var t=e!==!1?Sn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new p(t,this.maxLookAhead):t};function te(e,t,i,n){var r=[e.state.modeGen],s={};wn(e,t.text,e.doc.mode,i,function(x,G){return r.push(x,G)},s,n);for(var u=i.state,g=function(x){i.baseTokens=r;var G=e.state.overlays[x],ee=1,Me=0;i.state=!0,wn(e,t.text,G.mode,i,function(Se,ze){for(var qe=ee;Me<Se;){var dt=r[ee];dt>Se&&r.splice(ee,1,Se,r[ee+1],dt),ee+=2,Me=Math.min(Se,dt)}if(!ze)return;if(G.opaque)r.splice(qe,ee-qe,Se,"overlay "+ze),ee=qe+2;else for(;qe<ee;qe+=2){var xt=r[qe+1];r[qe+1]=(xt?xt+" ":"")+"overlay "+ze}},s),i.state=u,i.baseTokens=null,i.baseTokenPos=1},v=0;v<e.state.overlays.length;++v)g(v);return{styles:r,classes:s.bgClass||s.textClass?s:null}}function Ke(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=gt(e,Vt(t)),r=t.text.length>e.options.maxHighlightLength&&Sn(e.doc.mode,n.state),s=te(e,t,n);r&&(n.state=r),t.stateAfter=n.save(!r),t.styles=s.styles,s.classes?t.styleClasses=s.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function gt(e,t,i){var n=e.doc,r=e.display;if(!n.mode.startState)return new h(n,!0,t);var s=on(e,t,i),u=s>n.first&&It(n,s-1).stateAfter,g=u?h.fromSaved(n,u,s):new h(n,zn(n.mode),s);return n.iter(s,t,function(v){Nt(e,v.text,g);var x=g.line;v.stateAfter=x==t-1||x%5==0||x>=r.viewFrom&&x<r.viewTo?g.save():null,g.nextLine()}),i&&(n.modeFrontier=g.line),g}function Nt(e,t,i,n){var r=e.doc.mode,s=new nn(t,e.options.tabSize,i);for(s.start=s.pos=n||0,t==""&&Xe(r,i.state);!s.eol();)kt(r,s,i.state),s.start=s.pos}function Xe(e,t){if(e.blankLine)return e.blankLine(t);if(!e.innerMode)return;var i=Bn(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}function kt(e,t,i,n){for(var r=0;r<10;r++){n&&(n[0]=Bn(e,i).mode);var s=e.token(t,i);if(t.pos>t.start)return s}throw new Error("Mode "+e.name+" failed to advance stream.")}var Rt=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function jt(e,t,i,n){var r=e.doc,s=r.mode,u;t=o(r,t);var g=It(r,t.line),v=gt(e,t.line,i),x=new nn(g.text,e.options.tabSize,v),G;for(n&&(G=[]);(n||x.pos<t.ch)&&!x.eol();)x.start=x.pos,u=kt(s,x,v.state),n&&G.push(new Rt(x,u,Sn(r.mode,v.state)));return n?G:new Rt(x,u,v.state)}function un(e,t){if(e)for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var n=i[1]?"bgClass":"textClass";t[n]==null?t[n]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+i[2])}return e}function wn(e,t,i,n,r,s,u){var g=i.flattenSpans;g==null&&(g=e.options.flattenSpans);var v=0,x=null,G=new nn(t,e.options.tabSize,n),ee,Me=e.options.addModeClass&&[null];for(t==""&&un(Xe(i,n.state),s);!G.eol();){if(G.pos>e.options.maxHighlightLength?(g=!1,u&&Nt(e,t,n,G.pos),G.pos=t.length,ee=null):ee=un(kt(i,G,n.state,Me),s),Me){var Se=Me[0].name;Se&&(ee="m-"+(ee?Se+" "+ee:Se))}if(!g||x!=ee){for(;v<G.start;)v=Math.min(G.start,v+5e3),r(v,x);x=ee}G.start=G.pos}for(;v<G.pos;){var ze=Math.min(G.pos,v+5e3);r(ze,x),v=ze}}function on(e,t,i){for(var n,r,s=e.doc,u=i?-1:t-(e.doc.mode.innerMode?1e3:100),g=t;g>u;--g){if(g<=s.first)return s.first;var v=It(s,g-1),x=v.stateAfter;if(x&&(!i||g+(x instanceof p?x.lookAhead:0)<=s.modeFrontier))return g;var G=ye(v.text,null,e.options.tabSize);(r==null||n>G)&&(r=g-1,n=G)}return r}function _i(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontier<t-10)return;for(var i=e.first,n=t-1;n>i;n--){var r=It(e,n).stateAfter;if(r&&(!(r instanceof p)||n+r.lookAhead<t)){i=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}var vi=!1,Oi=!1;function zi(){vi=!0}function ui(){Oi=!0}function sr(e,t,i){this.marker=e,this.from=t,this.to=i}function $i(e,t){if(e)for(var i=0;i<e.length;++i){var n=e[i];if(n.marker==t)return n}}function yr(e,t){for(var i,n=0;n<e.length;++n)e[n]!=t&&(i||(i=[])).push(e[n]);return i}function gr(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function ao(e,t,i){var n;if(e)for(var r=0;r<e.length;++r){var s=e[r],u=s.marker,g=s.from==null||(u.inclusiveLeft?s.from<=t:s.from<t);if(g||s.from==t&&u.type=="bookmark"&&(!i||!s.marker.insertLeft)){var v=s.to==null||(u.inclusiveRight?s.to>=t:s.to>t);(n||(n=[])).push(new sr(u,s.from,v?null:s.to))}}return n}function Gr(e,t,i){var n;if(e)for(var r=0;r<e.length;++r){var s=e[r],u=s.marker,g=s.to==null||(u.inclusiveRight?s.to>=t:s.to>t);if(g||s.from==t&&u.type=="bookmark"&&(!i||s.marker.insertLeft)){var v=s.from==null||(u.inclusiveLeft?s.from<=t:s.from<t);(n||(n=[])).push(new sr(u,v?null:s.from-t,s.to==null?null:s.to-t))}}return n}function lr(e,t){if(t.full)return null;var i=rn(e,t.from.line)&&It(e,t.from.line).markedSpans,n=rn(e,t.to.line)&&It(e,t.to.line).markedSpans;if(!i&&!n)return null;var r=t.from.ch,s=t.to.ch,u=pt(t.from,t.to)==0,g=ao(i,r,u),v=Gr(n,s,u),x=t.text.length==1,G=it(t.text).length+(x?r:0);if(g)for(var ee=0;ee<g.length;++ee){var Me=g[ee];if(Me.to==null){var Se=$i(v,Me.marker);Se?x&&(Me.to=Se.to==null?null:Se.to+G):Me.to=r}}if(v)for(var ze=0;ze<v.length;++ze){var qe=v[ze];if(qe.to!=null&&(qe.to+=G),qe.from==null){var dt=$i(g,qe.marker);dt||(qe.from=G,x&&(g||(g=[])).push(qe))}else qe.from+=G,x&&(g||(g=[])).push(qe)}g&&(g=yi(g)),v&&v!=g&&(v=yi(v));var xt=[g];if(!x){var Pt=t.text.length-2,wt;if(Pt>0&&g)for(var Ut=0;Ut<g.length;++Ut)g[Ut].to==null&&(wt||(wt=[])).push(new sr(g[Ut].marker,null,null));for(var en=0;en<Pt;++en)xt.push(wt);xt.push(v)}return xt}function yi(e){for(var t=0;t<e.length;++t){var i=e[t];i.from!=null&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Sr(e,t,i){var n=null;if(e.iter(t.line,i.line+1,function(Se){if(Se.markedSpans)for(var ze=0;ze<Se.markedSpans.length;++ze){var qe=Se.markedSpans[ze].marker;qe.readOnly&&(!n||_e(n,qe)==-1)&&(n||(n=[])).push(qe)}}),!n)return null;for(var r=[{from:t,to:i}],s=0;s<n.length;++s)for(var u=n[s],g=u.find(0),v=0;v<r.length;++v){var x=r[v];if(pt(x.to,g.from)<0||pt(x.from,g.to)>0)continue;var G=[v,1],ee=pt(x.from,g.from),Me=pt(x.to,g.to);(ee<0||!u.inclusiveLeft&&!ee)&&G.push({from:x.from,to:g.from}),(Me>0||!u.inclusiveRight&&!Me)&&G.push({from:g.to,to:x.to}),r.splice.apply(r,G),v+=G.length-3}return r}function Pr(e){var t=e.markedSpans;if(!t)return;for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}function yo(e,t){if(!t)return;for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}function ei(e){return e.inclusiveLeft?-1:0}function In(e){return e.inclusiveRight?1:0}function ci(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var n=e.find(),r=t.find(),s=pt(n.from,r.from)||ei(e)-ei(t);if(s)return-s;var u=pt(n.to,r.to)||In(e)-In(t);return u||t.id-e.id}function On(e,t){var i=Oi&&e.markedSpans,n;if(i)for(var r=void 0,s=0;s<i.length;++s)r=i[s],r.marker.collapsed&&(t?r.from:r.to)==null&&(!n||ci(n,r.marker)<0)&&(n=r.marker);return n}function di(e){return On(e,!0)}function Fn(e){return On(e,!1)}function ur(e,t){var i=Oi&&e.markedSpans,n;if(i)for(var r=0;r<i.length;++r){var s=i[r];s.marker.collapsed&&(s.from==null||s.from<t)&&(s.to==null||s.to>t)&&(!n||ci(n,s.marker)<0)&&(n=s.marker)}return n}function hi(e,t,i,n,r){var s=It(e,t),u=Oi&&s.markedSpans;if(u)for(var g=0;g<u.length;++g){var v=u[g];if(!v.marker.collapsed)continue;var x=v.marker.find(0),G=pt(x.from,i)||ei(v.marker)-ei(r),ee=pt(x.to,n)||In(v.marker)-In(r);if(G>=0&&ee<=0||G<=0&&ee>=0)continue;if(G<=0&&(v.marker.inclusiveRight&&r.inclusiveLeft?pt(x.to,i)>=0:pt(x.to,i)>0)||G>=0&&(v.marker.inclusiveRight&&r.inclusiveLeft?pt(x.from,n)<=0:pt(x.from,n)<0))return!0}}function Ui(e){for(var t;t=di(e);)e=t.find(-1,!0).line;return e}function Vr(e){for(var t;t=Fn(e);)e=t.find(1,!0).line;return e}function Kr(e){for(var t,i;t=Fn(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function cr(e,t){var i=It(e,t),n=Ui(i);return i==n?t:Vt(n)}function br(e,t){if(t>e.lastLine())return t;var i=It(e,t),n;if(!Pi(e,i))return t;for(;n=Fn(i);)i=n.find(1,!0).line;return Vt(i)+1}function Pi(e,t){var i=Oi&&t.markedSpans;if(i)for(var n=void 0,r=0;r<i.length;++r){if(n=i[r],!n.marker.collapsed)continue;if(n.from==null)return!0;if(n.marker.widgetNode)continue;if(n.from==0&&n.marker.inclusiveLeft&&so(e,t,n))return!0}}function so(e,t,i){if(i.to==null){var n=i.marker.find(1,!0);return so(e,n.line,$i(n.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var r=void 0,s=0;s<t.markedSpans.length;++s)if(r=t.markedSpans[s],r.marker.collapsed&&!r.marker.widgetNode&&r.from==i.to&&(r.to==null||r.to!=i.from)&&(r.marker.inclusiveLeft||i.marker.inclusiveRight)&&so(e,t,r))return!0}function rr(e){e=Ui(e);for(var t=0,i=e.parent,n=0;n<i.lines.length;++n){var r=i.lines[n];if(r==e)break;t+=r.height}for(var s=i.parent;s;i=s,s=i.parent)for(var u=0;u<s.children.length;++u){var g=s.children[u];if(g==i)break;t+=g.height}return t}function Qr(e){if(e.height==0)return 0;for(var t=e.text.length,i,n=e;i=di(n);){var r=i.find(0,!0);n=r.from.line,t+=r.from.ch-r.to.ch}for(n=e;i=Fn(n);){var s=i.find(0,!0);t-=n.text.length-s.from.ch,n=s.to.line,t+=n.text.length-s.to.ch}return t}function lo(e){var t=e.display,i=e.doc;t.maxLine=It(i,i.first),t.maxLineLength=Qr(t.maxLine),t.maxLineChanged=!0,i.iter(function(n){var r=Qr(n);r>t.maxLineLength&&(t.maxLineLength=r,t.maxLine=n)})}var jr=function(e,t,i){this.text=e,yo(this,t),this.height=i?i(this):1};jr.prototype.lineNo=function(){return Vt(this)},oe(jr);function ga(e,t,i,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Pr(e),yo(e,i);var r=n?n(e):1;r!=e.height&&_n(e,r)}function bo(e){e.parent=null,Pr(e)}var Gt={},tn={};function Qt(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?tn:Gt;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function vn(e,t){var i=Re("span",null,null,W?"padding-right: .1px":null),n={pre:Re("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var r=0;r<=(t.rest?t.rest.length:0);r++){var s=r?t.rest[r-1]:t.line,u=void 0;n.pos=0,n.addToken=Gn,_t(e.display.measure)&&(u=mt(s,e.doc.direction))&&(n.addToken=bi(n.addToken,u)),n.map=[];var g=t!=e.display.externalMeasured&&Vt(s);Cn(s,n,Ke(e,s,g)),s.styleClasses&&(s.styleClasses.bgClass&&(n.bgClass=ie(s.styleClasses.bgClass,n.bgClass||"")),s.styleClasses.textClass&&(n.textClass=ie(s.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(bt(e.display.measure))),r==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(W){var v=n.content.lastChild;(/\bcm-tab\b/.test(v.className)||v.querySelector&&v.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Fe(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=ie(n.pre.className,n.textClass||"")),n}function Tn(e){var t=P("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Gn(e,t,i,n,r,s,u){if(!t)return;var g=e.splitSpaces?kn(t,e.trailingSpace):t,v=e.cm.state.specialChars,x=!1,G;if(!v.test(t))e.col+=t.length,G=document.createTextNode(g),e.map.push(e.pos,e.pos+t.length,G),j&&Y<9&&(x=!0),e.pos+=t.length;else{G=document.createDocumentFragment();for(var ee=0;;){v.lastIndex=ee;var Me=v.exec(t),Se=Me?Me.index-ee:t.length-ee;if(Se){var ze=document.createTextNode(g.slice(ee,ee+Se));j&&Y<9?G.appendChild(P("span",[ze])):G.appendChild(ze),e.map.push(e.pos,e.pos+Se,ze),e.col+=Se,e.pos+=Se}if(!Me)break;ee+=Se+1;var qe=void 0;if(Me[0]==" "){var dt=e.cm.options.tabSize,xt=dt-e.col%dt;qe=G.appendChild(P("span",F(xt),"cm-tab")),qe.setAttribute("role","presentation"),qe.setAttribute("cm-text"," "),e.col+=xt}else Me[0]=="\r"||Me[0]==`
`?(qe=G.appendChild(P("span",Me[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),qe.setAttribute("cm-text",Me[0]),e.col+=1):(qe=e.cm.options.specialCharPlaceholder(Me[0]),qe.setAttribute("cm-text",Me[0]),j&&Y<9?G.appendChild(P("span",[qe])):G.appendChild(qe),e.col+=1);e.map.push(e.pos,e.pos+1,qe),e.pos++}}if(e.trailingSpace=g.charCodeAt(t.length-1)==32,i||n||r||x||s||u){var Pt=i||"";n&&(Pt+=n),r&&(Pt+=r);var wt=P("span",[G],Pt,s);if(u)for(var Ut in u)u.hasOwnProperty(Ut)&&Ut!="style"&&Ut!="class"&&wt.setAttribute(Ut,u[Ut]);return e.content.appendChild(wt)}e.content.appendChild(G)}function kn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,n="",r=0;r<e.length;r++){var s=e.charAt(r);s==" "&&i&&(r==e.length-1||e.charCodeAt(r+1)==32)&&(s="\xA0"),n+=s,i=s==" "}return n}function bi(e,t){return function(i,n,r,s,u,g,v){r=r?r+" cm-force-border":"cm-force-border";for(var x=i.pos,G=x+n.length;;){for(var ee=void 0,Me=0;Me<t.length&&!(ee=t[Me],ee.to>x&&ee.from<=x);Me++);if(ee.to>=G)return e(i,n,r,s,u,g,v);e(i,n.slice(0,ee.to-x),r,s,null,g,v),s=null,n=n.slice(ee.to-x),x=ee.to}}}function Hi(e,t,i,n){var r=!n&&i.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!n&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",i.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function Cn(e,t,i){var n=e.markedSpans,r=e.text,s=0;if(!n){for(var u=1;u<i.length;u+=2)t.addToken(t,r.slice(s,s=i[u]),Qt(i[u+1],t.cm.options));return}for(var g=r.length,v=0,x=1,G="",ee,Me,Se=0,ze,qe,dt,xt,Pt;;){if(Se==v){ze=qe=dt=Me="",Pt=null,xt=null,Se=Infinity;for(var wt=[],Ut=void 0,en=0;en<n.length;++en){var Xt=n[en],yn=Xt.marker;if(yn.type=="bookmark"&&Xt.from==v&&yn.widgetNode)wt.push(yn);else if(Xt.from<=v&&(Xt.to==null||Xt.to>v||yn.collapsed&&Xt.to==v&&Xt.from==v)){if(Xt.to!=null&&Xt.to!=v&&Se>Xt.to&&(Se=Xt.to,qe=""),yn.className&&(ze+=" "+yn.className),yn.css&&(Me=(Me?Me+";":"")+yn.css),yn.startStyle&&Xt.from==v&&(dt+=" "+yn.startStyle),yn.endStyle&&Xt.to==Se&&(Ut||(Ut=[])).push(yn.endStyle,Xt.to),yn.title&&((Pt||(Pt={})).title=yn.title),yn.attributes)for(var $n in yn.attributes)(Pt||(Pt={}))[$n]=yn.attributes[$n];yn.collapsed&&(!xt||ci(xt.marker,yn)<0)&&(xt=Xt)}else Xt.from>v&&Se>Xt.from&&(Se=Xt.from)}if(Ut)for(var ji=0;ji<Ut.length;ji+=2)Ut[ji+1]==Se&&(qe+=" "+Ut[ji]);if(!xt||xt.from==v)for(var fi=0;fi<wt.length;++fi)Hi(t,0,wt[fi]);if(xt&&(xt.from||0)==v){if(Hi(t,(xt.to==null?g+1:xt.to)-v,xt.marker,xt.from==null),xt.to==null)return;xt.to==v&&(xt=!1)}}if(v>=g)break;for(var ar=Math.min(g,Se);;){if(G){var tr=v+G.length;if(!xt){var Si=tr>ar?G.slice(0,ar-v):G;t.addToken(t,Si,ee?ee+ze:ze,dt,v+Si.length==Se?qe:"",Me,Pt)}if(tr>=ar){G=G.slice(ar-v),v=ar;break}v=tr,dt=""}G=r.slice(s,s=i[x++]),ee=Qt(i[x++],t.cm.options)}}}function kr(e,t,i){this.line=t,this.rest=Kr(t),this.size=this.rest?Vt(it(this.rest))-i+1:1,this.node=this.text=null,this.hidden=Pi(e,t)}function Nn(e,t,i){for(var n=[],r,s=t;s<i;s=r){var u=new kr(e.doc,It(e.doc,s),s);r=s+u.size,n.push(u)}return n}var Ai=null;function or(e){Ai?Ai.ops.push(e):e.ownsGroup=Ai={ops:[e],delayedCallbacks:[]}}function Qi(e){var t=e.delayedCallbacks,i=0;do{for(;i<t.length;i++)t[i].call(null);for(var n=0;n<e.ops.length;n++){var r=e.ops[n];if(r.cursorActivityHandlers)for(;r.cursorActivityCalled<r.cursorActivityHandlers.length;)r.cursorActivityHandlers[r.cursorActivityCalled++].call(null,r.cm)}}while(i<t.length)}function Co(e,t){var i=e.ownsGroup;if(!i)return;try{Qi(i)}finally{Ai=null,t(i)}}var Jr=null;function pi(e,t){var i=ht(e,t);if(!i.length)return;var n=Array.prototype.slice.call(arguments,2),r;Ai?r=Ai.delayedCallbacks:Jr?r=Jr:(r=Jr=[],setTimeout(va,0));for(var s=function(g){r.push(function(){return i[g].apply(null,n)})},u=0;u<i.length;++u)s(u)}function va(){var e=Jr;Jr=null;for(var t=0;t<e.length;++t)e[t]()}function ya(e,t,i,n){for(var r=0;r<t.changes.length;r++){var s=t.changes[r];s=="text"?ba(e,t):s=="gutter"?Ho(e,t,i,n):s=="class"?zo(e,t):s=="widget"&&Va(e,t,n)}t.changes=null}function uo(e){return e.node==e.text&&(e.node=P("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),j&&Y<8&&(e.node.style.zIndex=2)),e.node}function Ga(e,t){var i=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(i&&(i+=" CodeMirror-linebackground"),t.background)i?t.background.className=i:(t.background.parentNode.removeChild(t.background),t.background=null);else if(i){var n=uo(t);t.background=n.insertBefore(P("div",null,i),n.firstChild),e.display.input.setUneditable(t.background)}}function Wo(e,t){var i=e.display.externalMeasured;return i&&i.line==t.line?(e.display.externalMeasured=null,t.measure=i.measure,i.built):vn(e,t)}function ba(e,t){var i=t.text.className,n=Wo(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,zo(e,t)):i&&(t.text.className=i)}function zo(e,t){Ga(e,t),t.line.wrapClass?uo(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var i=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=i||""}function Ho(e,t,i,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var r=uo(t);t.gutterBackground=P("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),r.insertBefore(t.gutterBackground,t.text)}var s=t.line.gutterMarkers;if(e.options.lineNumbers||s){var u=uo(t),g=t.gutter=P("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(e.display.input.setUneditable(g),u.insertBefore(g,t.text),t.line.gutterClass&&(g.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!s||!s["CodeMirror-linenumbers"])&&(t.lineNumber=g.appendChild(P("div",gn(e.options,i),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),s)for(var v=0;v<e.display.gutterSpecs.length;++v){var x=e.display.gutterSpecs[v].className,G=s.hasOwnProperty(x)&&s[x];G&&g.appendChild(P("div",[G],"CodeMirror-gutter-elt","left: "+n.gutterLeft[x]+"px; width: "+n.gutterWidth[x]+"px"))}}}function Va(e,t,i){t.alignable&&(t.alignable=null);for(var n=xe("CodeMirror-linewidget"),r=t.node.firstChild,s=void 0;r;r=s)s=r.nextSibling,n.test(r.className)&&t.node.removeChild(r);Go(e,t,i)}function Ca(e,t,i,n){var r=Wo(e,t);return t.text=t.node=r.pre,r.bgClass&&(t.bgClass=r.bgClass),r.textClass&&(t.textClass=r.textClass),zo(e,t),Ho(e,t,i,n),Go(e,t,n),t.node}function Go(e,t,i){if(Ea(e,t.line,t,i,!0),t.rest)for(var n=0;n<t.rest.length;n++)Ea(e,t.rest[n],t,i,!1)}function Ea(e,t,i,n,r){if(!t.widgets)return;for(var s=uo(i),u=0,g=t.widgets;u<g.length;++u){var v=g[u],x=P("div",[v.node],"CodeMirror-linewidget"+(v.className?" "+v.className:""));v.handleMouseEvents||x.setAttribute("cm-ignore-events","true"),Ka(v,x,i,n),e.display.input.setUneditable(x),r&&v.above?s.insertBefore(x,i.gutter||i.text):s.appendChild(x),pi(v,"redraw")}}function Ka(e,t,i,n){if(e.noHScroll){(i.alignable||(i.alignable=[])).push(t);var r=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(r-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=r+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function Xr(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!V(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),ue(t.display.measure,P("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function Cr(e,t){for(var i=Te(t);i!=e.wrapper;i=i.parentNode)if(!i||i.nodeType==1&&i.getAttribute("cm-ignore-events")=="true"||i.parentNode==e.sizer&&i!=e.mover)return!0}function Vo(e){return e.lineSpace.offsetTop}function B(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function re(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=ue(e.measure,P("pre","x","CodeMirror-line-like")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return!isNaN(n.left)&&!isNaN(n.right)&&(e.cachedPaddingH=n),n}function pe(e){return st-e.display.nativeBarWidth}function H(e){return e.display.scroller.clientWidth-pe(e)-e.display.barWidth}function E(e){return e.display.scroller.clientHeight-pe(e)-e.display.barHeight}function N(e,t,i){var n=e.options.lineWrapping,r=n&&H(e);if(!t.measure.heights||n&&t.measure.width!=r){var s=t.measure.heights=[];if(n){t.measure.width=r;for(var u=t.text.firstChild.getClientRects(),g=0;g<u.length-1;g++){var v=u[g],x=u[g+1];Math.abs(v.bottom-x.bottom)>2&&s.push((v.bottom+x.top)/2-i.top)}}s.push(i.bottom-i.top)}}function w(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var r=0;r<e.rest.length;r++)if(Vt(e.rest[r])>i)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function K(e,t){t=Ui(t);var i=Vt(t),n=e.display.externalMeasured=new kr(e.doc,t,i);n.lineN=i;var r=n.built=vn(e,n);return n.text=r.pre,ue(e.display.lineMeasure,r.pre),n}function X(e,t,i,n){return ke(e,ae(e,t),i,n)}function be(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[qn(e,t)];var i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size)return i}function ae(e,t){var i=Vt(t),n=be(e,i);n&&!n.text?n=null:n&&n.changes&&(ya(e,n,i,ri(e)),e.curOp.forceUpdate=!0),n||(n=K(e,t));var r=w(n,t,i);return{line:t,view:n,rect:null,map:r.map,cache:r.cache,before:r.before,hasHeights:!1}}function ke(e,t,i,n,r){t.before&&(i=-1);var s=i+(n||""),u;return t.cache.hasOwnProperty(s)?u=t.cache[s]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(N(e,t.view,t.rect),t.hasHeights=!0),u=Et(e,t,i,n),u.bogus||(t.cache[s]=u)),{left:u.left,right:u.right,top:r?u.rtop:u.top,bottom:r?u.rbottom:u.bottom}}var We={left:0,right:0,top:0,bottom:0};function at(e,t,i){for(var n,r,s,u,g,v,x=0;x<e.length;x+=3)if(g=e[x],v=e[x+1],t<g?(r=0,s=1,u="left"):t<v?(r=t-g,s=r+1):(x==e.length-3||t==v&&e[x+3]>t)&&(s=v-g,r=s-1,t>=v&&(u="right")),r!=null){if(n=e[x+2],g==v&&i==(n.insertLeft?"left":"right")&&(u=i),i=="left"&&r==0)for(;x&&e[x-2]==e[x-3]&&e[x-1].insertLeft;)n=e[(x-=3)+2],u="left";if(i=="right"&&r==v-g)for(;x<e.length-3&&e[x+3]==e[x+4]&&!e[x+5].insertLeft;)n=e[(x+=3)+2],u="right";break}return{node:n,start:r,end:s,collapse:u,coverStart:g,coverEnd:v}}function rt(e,t){var i=We;if(t=="left")for(var n=0;n<e.length&&!((i=e[n]).left!=i.right);n++);else for(var r=e.length-1;r>=0&&!((i=e[r]).left!=i.right);r--);return i}function Et(e,t,i,n){var r=at(t.map,i,n),s=r.node,u=r.start,g=r.end,v=r.collapse,x;if(s.nodeType==3){for(var G=0;G<4;G++){for(;u&&Qe(t.line.text.charAt(r.coverStart+u));)--u;for(;r.coverStart+g<r.coverEnd&&Qe(t.line.text.charAt(r.coverStart+g));)++g;if(j&&Y<9&&u==0&&g==r.coverEnd-r.coverStart?x=s.parentNode.getBoundingClientRect():x=rt(fe(s,u,g).getClientRects(),n),x.left||x.right||u==0)break;g=u,u=u-1,v="right"}j&&Y<11&&(x=$t(e.display.measure,x))}else{u>0&&(v=n="right");var ee;e.options.lineWrapping&&(ee=s.getClientRects()).length>1?x=ee[n=="right"?ee.length-1:0]:x=s.getBoundingClientRect()}if(j&&Y<9&&!u&&(!x||!x.left&&!x.right)){var Me=s.parentNode.getClientRects()[0];Me?x={left:Me.left,right:Me.left+Ti(e.display),top:Me.top,bottom:Me.bottom}:x=We}for(var Se=x.top-t.rect.top,ze=x.bottom-t.rect.top,qe=(Se+ze)/2,dt=t.view.measure.heights,xt=0;xt<dt.length-1&&!(qe<dt[xt]);xt++);var Pt=xt?dt[xt-1]:0,wt=dt[xt],Ut={left:(v=="right"?x.right:x.left)-t.rect.left,right:(v=="left"?x.left:x.right)-t.rect.left,top:Pt,bottom:wt};return!x.left&&!x.right&&(Ut.bogus=!0),e.options.singleCursorHeightPerLine||(Ut.rtop=Se,Ut.rbottom=ze),Ut}function $t(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!lt(e))return t;var i=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*i,right:t.right*i,top:t.top*n,bottom:t.bottom*n}}function fn(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 sn(e){e.display.externalMeasure=null,Ge(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)fn(e.display.view[t])}function cn(e){sn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function pn(){return y&&m?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function hn(){return y&&m?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function dn(e){var t=0;if(e.widgets)for(var i=0;i<e.widgets.length;++i)e.widgets[i].above&&(t+=Xr(e.widgets[i]));return t}function Rn(e,t,i,n,r){if(!r){var s=dn(t);i.top+=s,i.bottom+=s}if(n=="line")return i;n||(n="local");var u=rr(t);if(n=="local"?u+=Vo(e.display):u-=e.display.viewOffset,n=="page"||n=="window"){var g=e.display.lineSpace.getBoundingClientRect();u+=g.top+(n=="window"?0:hn());var v=g.left+(n=="window"?0:pn());i.left+=v,i.right+=v}return i.top+=u,i.bottom+=u,i}function En(e,t,i){if(i=="div")return t;var n=t.left,r=t.top;if(i=="page")n-=pn(),r-=hn();else if(i=="local"||!i){var s=e.display.sizer.getBoundingClientRect();n+=s.left,r+=s.top}var u=e.display.lineSpace.getBoundingClientRect();return{left:n-u.left,top:r-u.top}}function ti(e,t,i,n,r){return n||(n=It(e.doc,t.line)),Rn(e,n,X(e,n,t.ch,r),i)}function xn(e,t,i,n,r,s){n=n||It(e.doc,t.line),r||(r=ae(e,n));function u(ze,qe){var dt=ke(e,r,ze,qe?"right":"left",s);return qe?dt.left=dt.right:dt.right=dt.left,Rn(e,n,dt,i)}var g=mt(n,e.doc.direction),v=t.ch,x=t.sticky;if(v>=n.text.length?(v=n.text.length,x="before"):v<=0&&(v=0,x="after"),!g)return u(x=="before"?v-1:v,x=="before");function G(ze,qe,dt){var xt=g[qe],Pt=xt.level==1;return u(dt?ze-1:ze,Pt!=dt)}var ee=$e(g,v,x),Me=ot,Se=G(v,ee,x=="before");return Me!=null&&(Se.other=G(v,Me,x!="before")),Se}function Zt(e,t){var i=0;t=o(e.doc,t),e.options.lineWrapping||(i=Ti(e.display)*t.ch);var n=It(e.doc,t.line),r=rr(n)+Vo(e.display);return{left:i,right:i,top:r,bottom:r+n.height}}function Jt(e,t,i,n,r){var s=Ne(e,t,i);return s.xRel=r,n&&(s.outside=n),s}function An(e,t,i){var n=e.doc;if(i+=e.display.viewOffset,i<0)return Jt(n.first,0,null,-1,-1);var r=bn(n,i),s=n.first+n.size-1;if(r>s)return Jt(n.first+n.size-1,It(n,s).text.length,null,1,1);t<0&&(t=0);for(var u=It(n,r);;){var g=ni(e,u,r,t,i),v=ur(u,g.ch+(g.xRel>0||g.outside>0?1:0));if(!v)return g;var x=v.find(1);if(x.line==r)return x;u=It(n,r=x.line)}}function Dn(e,t,i,n){n-=dn(t);var r=t.text.length,s=Dt(function(u){return ke(e,i,u-1).bottom<=n},r,0);return r=Dt(function(u){return ke(e,i,u).top>n},s,r),{begin:s,end:r}}function zt(e,t,i,n){i||(i=ae(e,t));var r=Rn(e,t,ke(e,i,n),"line").top;return Dn(e,t,i,r)}function Ln(e,t,i,n){return e.bottom<=i?!1:e.top>i?!0:(n?e.left:e.right)>t}function ni(e,t,i,n,r){r-=rr(t);var s=ae(e,t),u=dn(t),g=0,v=t.text.length,x=!0,G=mt(t,e.doc.direction);if(G){var ee=(e.options.lineWrapping?Jn:jn)(e,t,i,s,G,n,r);x=ee.level!=1,g=x?ee.from:ee.to-1,v=x?ee.to:ee.from-1}var Me=null,Se=null,ze=Dt(function(en){var Xt=ke(e,s,en);return Xt.top+=u,Xt.bottom+=u,Ln(Xt,n,r,!1)?(Xt.top<=r&&Xt.left<=n&&(Me=en,Se=Xt),!0):!1},g,v),qe,dt,xt=!1;if(Se){var Pt=n-Se.left<Se.right-n,wt=Pt==x;ze=Me+(wt?0:1),dt=wt?"after":"before",qe=Pt?Se.left:Se.right}else{!x&&(ze==v||ze==g)&&ze++,dt=ze==0?"after":ze==t.text.length?"before":ke(e,s,ze-(x?1:0)).bottom+u<=r==x?"after":"before";var Ut=xn(e,Ne(i,ze,dt),"line",t,s);qe=Ut.left,xt=r<Ut.top?-1:r>=Ut.bottom?1:0}return ze=et(t.text,ze,1),Jt(i,ze,dt,xt,n-qe)}function jn(e,t,i,n,r,s,u){var g=Dt(function(ee){var Me=r[ee],Se=Me.level!=1;return Ln(xn(e,Ne(i,Se?Me.to:Me.from,Se?"before":"after"),"line",t,n),s,u,!0)},0,r.length-1),v=r[g];if(g>0){var x=v.level!=1,G=xn(e,Ne(i,x?v.from:v.to,x?"after":"before"),"line",t,n);Ln(G,s,u,!0)&&G.top>u&&(v=r[g-1])}return v}function Jn(e,t,i,n,r,s,u){var g=Dn(e,t,n,u),v=g.begin,x=g.end;/\s/.test(t.text.charAt(x-1))&&x--;for(var G=null,ee=null,Me=0;Me<r.length;Me++){var Se=r[Me];if(Se.from>=x||Se.to<=v)continue;var ze=Se.level!=1,qe=ke(e,n,ze?Math.min(x,Se.to)-1:Math.max(v,Se.from)).right,dt=qe<s?s-qe+1e9:qe-s;(!G||ee>dt)&&(G=Se,ee=dt)}return G||(G=r[r.length-1]),G.from<v&&(G={from:v,to:G.to,level:G.level}),G.to>x&&(G={from:G.from,to:x,level:G.level}),G}var Kn;function mi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Kn==null){Kn=P("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Kn.appendChild(document.createTextNode("x")),Kn.appendChild(P("br"));Kn.appendChild(document.createTextNode("x"))}ue(e.measure,Kn);var i=Kn.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),Ge(e.measure),i||1}function Ti(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=P("span","xxxxxxxxxx"),i=P("pre",[t],"CodeMirror-line-like");ue(e.measure,i);var n=t.getBoundingClientRect(),r=(n.right-n.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function ri(e){for(var t=e.display,i={},n={},r=t.gutters.clientLeft,s=t.gutters.firstChild,u=0;s;s=s.nextSibling,++u){var g=e.display.gutterSpecs[u].className;i[g]=s.offsetLeft+s.clientLeft+r,n[g]=s.clientWidth}return{fixedPos:Gi(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Gi(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function dr(e){var t=mi(e.display),i=e.options.lineWrapping,n=i&&Math.max(5,e.display.scroller.clientWidth/Ti(e.display)-3);return function(r){if(Pi(e.doc,r))return 0;var s=0;if(r.widgets)for(var u=0;u<r.widgets.length;u++)r.widgets[u].height&&(s+=r.widgets[u].height);return i?s+(Math.ceil(r.text.length/n)||1)*t:s+t}}function Ji(e){var t=e.doc,i=dr(e);t.iter(function(n){var r=i(n);r!=n.height&&_n(n,r)})}function Ri(e,t,i,n){var r=e.display;if(!i&&Te(t).getAttribute("cm-not-content")=="true")return null;var s,u,g=r.lineSpace.getBoundingClientRect();try{s=t.clientX-g.left,u=t.clientY-g.top}catch(ee){return null}var v=An(e,s,u),x;if(n&&v.xRel>0&&(x=It(e.doc,v.line).text).length==v.ch){var G=ye(x,x.length,e.options.tabSize)-x.length;v=Ne(v.line,Math.max(0,Math.round((s-re(e.display).left)/Ti(e.display))-G))}return v}function qn(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var i=e.display.view,n=0;n<i.length;n++)if(t-=i[n].size,t<0)return n}function Xn(e,t,i,n){t==null&&(t=e.doc.first),i==null&&(i=e.doc.first+e.doc.size),n||(n=0);var r=e.display;if(n&&i<r.viewTo&&(r.updateLineNumbers==null||r.updateLineNumbers>t)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)Oi&&cr(e.doc,t)<r.viewTo&&ii(e);else if(i<=r.viewFrom)Oi&&br(e.doc,i+n)>r.viewFrom?ii(e):(r.viewFrom+=n,r.viewTo+=n);else if(t<=r.viewFrom&&i>=r.viewTo)ii(e);else if(t<=r.viewFrom){var s=hr(e,i,i+n,1);s?(r.view=r.view.slice(s.index),r.viewFrom=s.lineN,r.viewTo+=n):ii(e)}else if(i>=r.viewTo){var u=hr(e,t,t,-1);u?(r.view=r.view.slice(0,u.index),r.viewTo=u.lineN):ii(e)}else{var g=hr(e,t,t,-1),v=hr(e,i,i+n,1);g&&v?(r.view=r.view.slice(0,g.index).concat(Nn(e,g.lineN,v.lineN)).concat(r.view.slice(v.index)),r.viewTo+=n):ii(e)}var x=r.externalMeasured;x&&(i<x.lineN?x.lineN+=n:t<x.lineN+x.size&&(r.externalMeasured=null))}function oi(e,t,i){e.curOp.viewChanged=!0;var n=e.display,r=e.display.externalMeasured;if(r&&t>=r.lineN&&t<r.lineN+r.size&&(n.externalMeasured=null),t<n.viewFrom||t>=n.viewTo)return;var s=n.view[qn(e,t)];if(s.node==null)return;var u=s.changes||(s.changes=[]);_e(u,i)==-1&&u.push(i)}function ii(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function hr(e,t,i,n){var r=qn(e,t),s,u=e.display.view;if(!Oi||i==e.doc.first+e.doc.size)return{index:r,lineN:i};for(var g=e.display.viewFrom,v=0;v<r;v++)g+=u[v].size;if(g!=t){if(n>0){if(r==u.length-1)return null;s=g+u[r].size-t,r++}else s=g-t;t+=s,i+=s}for(;cr(e.doc,i)!=i;){if(r==(n<0?0:u.length-1))return null;i+=n*u[r-(n<0?1:0)].size,r+=n}return{index:r,lineN:i}}function Mr(e,t,i){var n=e.display,r=n.view;r.length==0||t>=n.viewTo||i<=n.viewFrom?(n.view=Nn(e,t,i),n.viewFrom=t):(n.viewFrom>t?n.view=Nn(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(qn(e,t))),n.viewFrom=t,n.viewTo<i?n.view=n.view.concat(Nn(e,n.viewTo,i)):n.viewTo>i&&(n.view=n.view.slice(0,qn(e,i)))),n.viewTo=i}function Or(e){for(var t=e.display.view,i=0,n=0;n<t.length;n++){var r=t[n];!r.hidden&&(!r.node||r.changes)&&++i}return i}function Qn(e){e.display.input.showSelection(e.display.input.prepareSelection())}function vr(e,t){t===void 0&&(t=!0);for(var i=e.doc,n={},r=n.cursors=document.createDocumentFragment(),s=n.selection=document.createDocumentFragment(),u=0;u<i.sel.ranges.length;u++){if(!t&&u==i.sel.primIndex)continue;var g=i.sel.ranges[u];if(g.from().line>=e.display.viewTo||g.to().line<e.display.viewFrom)continue;var v=g.empty();(v||e.options.showCursorWhenSelecting)&&Tr(e,g.head,r),v||Vn(e,g,s)}return n}function Tr(e,t,i){var n=xn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),r=i.appendChild(P("div","\xA0","CodeMirror-cursor"));if(r.style.left=n.left+"px",r.style.top=n.top+"px",r.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",n.other){var s=i.appendChild(P("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=n.other.left+"px",s.style.top=n.other.top+"px",s.style.height=(n.other.bottom-n.other.top)*.85+"px"}}function Zn(e,t){return e.top-t.top||e.left-t.left}function Vn(e,t,i){var n=e.display,r=e.doc,s=document.createDocumentFragment(),u=re(e.display),g=u.left,v=Math.max(n.sizerWidth,H(e)-n.sizer.offsetLeft)-u.right,x=r.direction=="ltr";function G(wt,Ut,en,Xt){Ut<0&&(Ut=0),Ut=Math.round(Ut),Xt=Math.round(Xt),s.appendChild(P("div",null,"CodeMirror-selected","position: absolute; left: "+wt+`px;
top: `+Ut+"px; width: "+(en==null?v-wt:en)+`px;
height: `+(Xt-Ut)+"px"))}function ee(wt,Ut,en){var Xt=It(r,wt),yn=Xt.text.length,$n,ji;function fi(Si,nr){return ti(e,Ne(wt,Si),"div",Xt,nr)}function ar(Si,nr,Wi){var Ni=zt(e,Xt,null,Si),ki=nr=="ltr"==(Wi=="after")?"left":"right",gi=Wi=="after"?Ni.begin:Ni.end-(/\s/.test(Xt.text.charAt(Ni.end-1))?2:1);return fi(gi,ki)[ki]}var tr=mt(Xt,r.direction);return ct(tr,Ut||0,en==null?yn:en,function(Si,nr,Wi,Ni){var ki=Wi=="ltr",gi=fi(Si,ki?"left":"right"),ir=fi(nr-1,ki?"right":"left"),Uo=Ut==null&&Si==0,oo=en==null&&nr==yn,Ki=Ni==0,Nr=!tr||Ni==tr.length-1;if(ir.top-gi.top<=3){var Bi=(x?Uo:oo)&&Ki,ps=(x?oo:Uo)&&Nr,Hr=Bi?g:(ki?gi:ir).left,go=ps?v:(ki?ir:gi).right;G(Hr,gi.top,go-Hr,gi.bottom)}else{var vo,qi,Fo,ms;ki?(vo=x&&Uo&&Ki?g:gi.left,qi=x?v:ar(Si,Wi,"before"),Fo=x?g:ar(nr,Wi,"after"),ms=x&&oo&&Nr?v:ir.right):(vo=x?ar(Si,Wi,"before"):g,qi=!x&&Uo&&Ki?v:gi.right,Fo=!x&&oo&&Nr?g:ir.left,ms=x?ar(nr,Wi,"after"):v),G(vo,gi.top,qi-vo,gi.bottom),gi.bottom<ir.top&&G(g,gi.bottom,null,ir.top),G(Fo,ir.top,ms-Fo,ir.bottom)}(!$n||Zn(gi,$n)<0)&&($n=gi),Zn(ir,$n)<0&&($n=ir),(!ji||Zn(gi,ji)<0)&&(ji=gi),Zn(ir,ji)<0&&(ji=ir)}),{start:$n,end:ji}}var Me=t.from(),Se=t.to();if(Me.line==Se.line)ee(Me.line,Me.ch,Se.ch);else{var ze=It(r,Me.line),qe=It(r,Se.line),dt=Ui(ze)==Ui(qe),xt=ee(Me.line,Me.ch,dt?ze.text.length+1:null).end,Pt=ee(Se.line,dt?0:null,Se.ch).start;dt&&(xt.top<Pt.top-2?(G(xt.right,xt.top,null,xt.bottom),G(g,Pt.top,Pt.left,Pt.bottom)):G(xt.right,xt.top,Pt.left-xt.right,xt.bottom)),xt.bottom<Pt.top&&G(g,xt.bottom,null,Pt.top)}i.appendChild(s)}function Di(e){if(!e.state.focused)return;var t=e.display;clearInterval(t.blinker);var i=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Yr(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function xa(e){e.state.focused||(e.display.input.focus(),Rr(e))}function Ko(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Yr(e))},100)}function Rr(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(Fe(e,"focus",e,t),e.state.focused=!0,we(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),W&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Di(e)}function Yr(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(Fe(e,"blur",e,t),e.state.focused=!1,Oe(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Eo(e){for(var t=e.display,i=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var r=t.view[n],s=e.options.lineWrapping,u=void 0,g=0;if(r.hidden)continue;if(j&&Y<8){var v=r.node.offsetTop+r.node.offsetHeight;u=v-i,i=v}else{var x=r.node.getBoundingClientRect();u=x.bottom-x.top,!s&&r.text.firstChild&&(g=r.text.firstChild.getBoundingClientRect().right-x.left-1)}var G=r.line.height-u;if((G>.005||G<-.005)&&(_n(r.line,u),Qo(r.line),r.rest))for(var ee=0;ee<r.rest.length;ee++)Qo(r.rest[ee]);if(g>e.display.sizerWidth){var Me=Math.ceil(g/Ti(e.display));Me>e.display.maxLineLength&&(e.display.maxLineLength=Me,e.display.maxLine=r.line,e.display.maxLineChanged=!0)}}}function Qo(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var i=e.widgets[t],n=i.node.parentNode;n&&(i.height=n.offsetHeight)}}function xo(e,t,i){var n=i&&i.top!=null?Math.max(0,i.top):e.scroller.scrollTop;n=Math.floor(n-Vo(e));var r=i&&i.bottom!=null?i.bottom:n+e.wrapper.clientHeight,s=bn(t,n),u=bn(t,r);if(i&&i.ensure){var g=i.ensure.from.line,v=i.ensure.to.line;g<s?(s=g,u=bn(t,rr(It(t,g))+e.wrapper.clientHeight)):Math.min(v,t.lastLine())>=u&&(s=bn(t,rr(It(t,v))-e.wrapper.clientHeight),u=v)}return{from:s,to:Math.max(u,s+1)}}function Qa(e,t){if(Ze(e,"scrollCursorIntoView"))return;var i=e.display,n=i.sizer.getBoundingClientRect(),r=null;if(t.top+n.top<0?r=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(r=!1),r!=null&&!O){var s=P("div","\u200B",null,`position: absolute;
top: `+(t.top-i.viewOffset-Vo(e.display))+`px;
height: `+(t.bottom-t.top+pe(e)+i.barHeight)+`px;
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(s),s.scrollIntoView(r),e.display.lineSpace.removeChild(s)}}function Ja(e,t,i,n){n==null&&(n=0);var r;!e.options.lineWrapping&&t==i&&(t=t.ch?Ne(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?Ne(t.line,t.ch+1,"before"):t);for(var s=0;s<5;s++){var u=!1,g=xn(e,t),v=!i||i==t?g:xn(e,i);r={left:Math.min(g.left,v.left),top:Math.min(g.top,v.top)-n,right:Math.max(g.left,v.left),bottom:Math.max(g.bottom,v.bottom)+n};var x=Jo(e,r),G=e.doc.scrollTop,ee=e.doc.scrollLeft;if(x.scrollTop!=null&&($r(e,x.scrollTop),Math.abs(e.doc.scrollTop-G)>1&&(u=!0)),x.scrollLeft!=null&&(fr(e,x.scrollLeft),Math.abs(e.doc.scrollLeft-ee)>1&&(u=!0)),!u)break}return r}function wa(e,t){var i=Jo(e,t);i.scrollTop!=null&&$r(e,i.scrollTop),i.scrollLeft!=null&&fr(e,i.scrollLeft)}function Jo(e,t){var i=e.display,n=mi(e.display);t.top<0&&(t.top=0);var r=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,s=E(e),u={};t.bottom-t.top>s&&(t.bottom=t.top+s);var g=e.doc.height+B(i),v=t.top<n,x=t.bottom>g-n;if(t.top<r)u.scrollTop=v?0:t.top;else if(t.bottom>r+s){var G=Math.min(t.top,(x?g:t.bottom)-s);G!=r&&(u.scrollTop=G)}var ee=e.options.fixedGutter?0:i.gutters.offsetWidth,Me=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-ee,Se=H(e)-i.gutters.offsetWidth,ze=t.right-t.left>Se;return ze&&(t.right=t.left+Se),t.left<10?u.scrollLeft=0:t.left<Me?u.scrollLeft=Math.max(0,t.left+ee-(ze?0:10)):t.right>Se+Me-3&&(u.scrollLeft=t.right+(ze?0:10)-Se),u}function Xo(e,t){if(t==null)return;wo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function Zr(e){wo(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function qr(e,t,i){(t!=null||i!=null)&&wo(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function Xa(e,t){wo(e),e.curOp.scrollToPos=t}function wo(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=Zt(e,t.from),n=Zt(e,t.to);co(e,i,n,t.margin)}}function co(e,t,i,n){var r=Jo(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-n,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+n});qr(e,r.scrollLeft,r.scrollTop)}function $r(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;de||po(e,{top:t}),eo(e,t,!0),de&&po(e),fo(e,100)}function eo(e,t,i){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!i)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function fr(e,t,i,n){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)return;e.doc.scrollLeft=t,Mn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function Br(e){var t=e.display,i=t.gutters.offsetWidth,n=Math.round(e.doc.height+B(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:n,scrollHeight:n+pe(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var Dr=function(e,t,i){this.cm=i;var n=this.vert=P("div",[P("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=P("div",[P("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=r.tabIndex=-1,e(n),e(r),Le(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Le(r,"scroll",function(){r.clientWidth&&t(r.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,j&&Y<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Dr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var r=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var s=e.viewWidth-e.barLeft-(i?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+s)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?n:0,bottom:t?n:0}},Dr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Dr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Dr.prototype.zeroWidthHack=function(){var e=S&&!A?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new je,this.disableVert=new je},Dr.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function n(){var r=e.getBoundingClientRect(),s=i=="vert"?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1);s!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},Dr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ho=function(){};ho.prototype.update=function(){return{bottom:0,right:0}},ho.prototype.setScrollLeft=function(){},ho.prototype.setScrollTop=function(){},ho.prototype.clear=function(){};function _r(e,t){t||(t=Br(e));var i=e.display.barWidth,n=e.display.barHeight;Ao(e,t);for(var r=0;r<4&&i!=e.display.barWidth||n!=e.display.barHeight;r++)i!=e.display.barWidth&&e.options.lineWrapping&&Eo(e),Ao(e,Br(e)),i=e.display.barWidth,n=e.display.barHeight}function Ao(e,t){var i=e.display,n=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=n.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=n.bottom)+"px",i.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=n.bottom+"px",i.scrollbarFiller.style.width=n.right+"px"):i.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=n.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var Yo={native:Dr,null:ho};function So(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Oe(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Yo[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Le(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?fr(e,t):$r(e,t)},e),e.display.scrollbars.addClass&&we(e.display.wrapper,e.display.scrollbars.addClass)}var Zo=0;function Lr(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:++Zo},or(e.curOp)}function Ur(e){var t=e.curOp;t&&Co(t,function(i){for(var n=0;n<i.ops.length;n++)i.ops[n].cm.curOp=null;Aa(i)})}function Aa(e){for(var t=e.ops,i=0;i<t.length;i++)Ya(t[i]);for(var n=0;n<t.length;n++)Za(t[n]);for(var r=0;r<t.length;r++)qa(t[r]);for(var s=0;s<t.length;s++)qo(t[s]);for(var u=0;u<t.length;u++)$a(t[u])}function Ya(e){var t=e.cm,i=t.display;Sa(t),e.updateMaxLine&&lo(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<i.viewFrom||e.scrollToPos.to.line>=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new pr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Za(e){e.updatedDisplay=e.mustUpdate&&Fr(e.cm,e.update)}function qa(e){var t=e.cm,i=t.display;e.updatedDisplay&&Eo(t),e.barMeasure=Br(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=X(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+pe(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-H(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function qo(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&fr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var i=e.focus&&e.focus==ce();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,i),(e.updatedDisplay||e.startHeight!=t.doc.height)&&_r(t,e.barMeasure),e.updatedDisplay&&Hn(t,e.barMeasure),e.selectionChanged&&Di(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),i&&xa(e.cm)}function $a(e){var t=e.cm,i=t.display,n=t.doc;if(e.updatedDisplay&&ko(t,e.update),i.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(i.wheelStartX=i.wheelStartY=null),e.scrollTop!=null&&eo(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&fr(t,e.scrollLeft,!0,!0),e.scrollToPos){var r=Ja(t,o(n,e.scrollToPos.from),o(n,e.scrollToPos.to),e.scrollToPos.margin);Qa(t,r)}var s=e.maybeHiddenMarkers,u=e.maybeUnhiddenMarkers;if(s)for(var g=0;g<s.length;++g)s[g].lines.length||Fe(s[g],"hide");if(u)for(var v=0;v<u.length;++v)u[v].lines.length&&Fe(u[v],"unhide");i.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Fe(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Xi(e,t){if(e.curOp)return t();Lr(e);try{return t()}finally{Ur(e)}}function Ci(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Lr(e);try{return t.apply(e,arguments)}finally{Ur(e)}}}function Fi(e){return function(){if(this.curOp)return e.apply(this,arguments);Lr(this);try{return e.apply(this,arguments)}finally{Ur(this)}}}function Ei(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Lr(t);try{return e.apply(this,arguments)}finally{Ur(t)}}}function fo(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,I(es,e))}function es(e){var t=e.doc;if(t.highlightFrontier>=e.display.viewTo)return;var i=+new Date+e.options.workTime,n=gt(e,t.highlightFrontier),r=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(s){if(n.line>=e.display.viewFrom){var u=s.styles,g=s.text.length>e.options.maxHighlightLength?Sn(t.mode,n.state):null,v=te(e,s,n,!0);g&&(n.state=g),s.styles=v.styles;var x=s.styleClasses,G=v.classes;G?s.styleClasses=G:x&&(s.styleClasses=null);for(var ee=!u||u.length!=s.styles.length||x!=G&&(!x||!G||x.bgClass!=G.bgClass||x.textClass!=G.textClass),Me=0;!ee&&Me<u.length;++Me)ee=u[Me]!=s.styles[Me];ee&&r.push(n.line),s.stateAfter=n.save(),n.nextLine()}else s.text.length<=e.options.maxHighlightLength&&Nt(e,s.text,n),s.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>i)return fo(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),r.length&&Xi(e,function(){for(var s=0;s<r.length;s++)oi(e,r[s],"text")})}var pr=function(e,t,i){var n=e.display;this.viewport=t,this.visible=xo(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=H(e),this.force=i,this.dims=ri(e),this.events=[]};pr.prototype.signal=function(e,t){ne(e,t)&&this.events.push(arguments)},pr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Fe.apply(null,this.events[e])};function Sa(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=pe(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=pe(e)+"px",t.scrollbarsClipped=!0)}function ka(e){if(e.hasFocus())return null;var t=ce();if(!t||!V(e.display.lineDiv,t))return null;var i={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&V(e.display.lineDiv,n.anchorNode)&&(i.anchorNode=n.anchorNode,i.anchorOffset=n.anchorOffset,i.focusNode=n.focusNode,i.focusOffset=n.focusOffset)}return i}function Ma(e){if(!e||!e.activeElt||e.activeElt==ce())return;if(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&V(document.body,e.anchorNode)&&V(document.body,e.focusNode)){var t=window.getSelection(),i=document.createRange();i.setEnd(e.anchorNode,e.anchorOffset),i.collapse(!1),t.removeAllRanges(),t.addRange(i),t.extend(e.focusNode,e.focusOffset)}}function Fr(e,t){var i=e.display,n=e.doc;if(t.editorIsHidden)return ii(e),!1;if(!t.force&&t.visible.from>=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&Or(e)==0)return!1;Li(e)&&(ii(e),t.dims=ri(e));var r=n.first+n.size,s=Math.max(t.visible.from-e.options.viewportMargin,n.first),u=Math.min(r,t.visible.to+e.options.viewportMargin);i.viewFrom<s&&s-i.viewFrom<20&&(s=Math.max(n.first,i.viewFrom)),i.viewTo>u&&i.viewTo-u<20&&(u=Math.min(r,i.viewTo)),Oi&&(s=cr(e.doc,s),u=br(e.doc,u));var g=s!=i.viewFrom||u!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Mr(e,s,u),i.viewOffset=rr(It(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var v=Or(e);if(!g&&v==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var x=ka(e);return v>4&&(i.lineDiv.style.display="none"),Oa(e,i.updateLineNumbers,t.dims),v>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,Ma(x),Ge(i.cursorDiv),Ge(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,g&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,fo(e,400)),i.updateLineNumbers=null,!0}function ko(e,t){for(var i=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==H(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+B(e.display)-E(e),i.top)}),t.visible=xo(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=xo(e.display,e.doc,i));if(!Fr(e,t))break;Eo(e);var r=Br(e);Qn(e),_r(e,r),Hn(e,r),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 po(e,t){var i=new pr(e,t);if(Fr(e,i)){Eo(e),ko(e,i);var n=Br(e);Qn(e),_r(e,n),Hn(e,n),i.finish()}}function Oa(e,t,i){var n=e.display,r=e.options.lineNumbers,s=n.lineDiv,u=s.firstChild;function g(ze){var qe=ze.nextSibling;return W&&S&&e.display.currentWheelTarget==ze?ze.style.display="none":ze.parentNode.removeChild(ze),qe}for(var v=n.view,x=n.viewFrom,G=0;G<v.length;G++){var ee=v[G];if(!ee.hidden)if(!ee.node||ee.node.parentNode!=s){var Me=Ca(e,ee,x,i);s.insertBefore(Me,u)}else{for(;u!=ee.node;)u=g(u);var Se=r&&t!=null&&t<=x&&ee.lineNumber;ee.changes&&(_e(ee.changes,"gutter")>-1&&(Se=!1),ya(e,ee,x,i)),Se&&(Ge(ee.lineNumber),ee.lineNumber.appendChild(document.createTextNode(gn(e.options,x)))),u=ee.node.nextSibling}x+=ee.size}for(;u;)u=g(u)}function Mo(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Hn(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+pe(e)+"px"}function Mn(e){var t=e.display,i=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var n=Gi(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,s=n+"px",u=0;u<i.length;u++)if(!i[u].hidden){e.options.fixedGutter&&(i[u].gutter&&(i[u].gutter.style.left=s),i[u].gutterBackground&&(i[u].gutterBackground.style.left=s));var g=i[u].alignable;if(g)for(var v=0;v<g.length;v++)g[v].style.left=s}e.options.fixedGutter&&(t.gutters.style.left=n+r+"px")}function Li(e){if(!e.options.lineNumbers)return!1;var t=e.doc,i=gn(e.options,t.first+t.size-1),n=e.display;if(i.length!=n.lineNumChars){var r=n.measure.appendChild(P("div",[P("div",i)],"CodeMirror-linenumber CodeMirror-gutter-elt")),s=r.firstChild.offsetWidth,u=r.offsetWidth-s;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(s,n.lineGutter.offsetWidth-u)+1,n.lineNumWidth=n.lineNumInnerWidth+u,n.lineNumChars=n.lineNumInnerWidth?i.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",Mo(e.display),!0}return!1}function Yi(e,t){for(var i=[],n=!1,r=0;r<e.length;r++){var s=e[r],u=null;if(typeof s!="string"&&(u=s.style,s=s.className),s=="CodeMirror-linenumbers")if(t)n=!0;else continue;i.push({className:s,style:u})}return t&&!n&&i.push({className:"CodeMirror-linenumbers",style:null}),i}function to(e){var t=e.gutters,i=e.gutterSpecs;Ge(t),e.lineGutter=null;for(var n=0;n<i.length;++n){var r=i[n],s=r.className,u=r.style,g=t.appendChild(P("div",null,"CodeMirror-gutter "+s));u&&(g.style.cssText=u),s=="CodeMirror-linenumbers"&&(e.lineGutter=g,g.style.width=(e.lineNumWidth||1)+"px")}t.style.display=i.length?"":"none",Mo(e)}function Er(e){to(e.display),Xn(e),Mn(e)}function mo(e,t,i,n){var r=this;this.input=i,r.scrollbarFiller=P("div",null,"CodeMirror-scrollbar-filler"),r.scrollbarFiller.setAttribute("cm-not-content","true"),r.gutterFiller=P("div",null,"CodeMirror-gutter-filler"),r.gutterFiller.setAttribute("cm-not-content","true"),r.lineDiv=Re("div",null,"CodeMirror-code"),r.selectionDiv=P("div",null,null,"position: relative; z-index: 1"),r.cursorDiv=P("div",null,"CodeMirror-cursors"),r.measure=P("div",null,"CodeMirror-measure"),r.lineMeasure=P("div",null,"CodeMirror-measure"),r.lineSpace=Re("div",[r.measure,r.lineMeasure,r.selectionDiv,r.cursorDiv,r.lineDiv],null,"position: relative; outline: none");var s=Re("div",[r.lineSpace],"CodeMirror-lines");r.mover=P("div",[s],null,"position: relative"),r.sizer=P("div",[r.mover],"CodeMirror-sizer"),r.sizerWidth=null,r.heightForcer=P("div",null,null,"position: absolute; height: "+st+"px; width: 1px;"),r.gutters=P("div",null,"CodeMirror-gutters"),r.lineGutter=null,r.scroller=P("div",[r.sizer,r.heightForcer,r.gutters],"CodeMirror-scroll"),r.scroller.setAttribute("tabIndex","-1"),r.wrapper=P("div",[r.scrollbarFiller,r.gutterFiller,r.scroller],"CodeMirror"),j&&Y<8&&(r.gutters.style.zIndex=-1,r.scroller.style.paddingRight=0),!W&&!(de&&f)&&(r.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(r.wrapper):e(r.wrapper)),r.viewFrom=r.viewTo=t.first,r.reportedViewFrom=r.reportedViewTo=t.first,r.view=[],r.renderedView=null,r.externalMeasured=null,r.viewOffset=0,r.lastWrapHeight=r.lastWrapWidth=0,r.updateLineNumbers=null,r.nativeBarWidth=r.barHeight=r.barWidth=0,r.scrollbarsClipped=!1,r.lineNumWidth=r.lineNumInnerWidth=r.lineNumChars=null,r.alignWidgets=!1,r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.maxLine=null,r.maxLineLength=0,r.maxLineChanged=!1,r.wheelDX=r.wheelDY=r.wheelStartX=r.wheelStartY=null,r.shift=!1,r.selForContextMenu=null,r.activeTouch=null,r.gutterSpecs=Yi(n.gutters,n.lineNumbers),to(r),i.init(r)}var Ir=0,Ii=null;j?Ii=-.53:de?Ii=15:y?Ii=-.7:R&&(Ii=-1/3);function Oo(e){var t=e.wheelDeltaX,i=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),i==null&&e.detail&&e.axis==e.VERTICAL_AXIS?i=e.detail:i==null&&(i=e.wheelDelta),{x:t,y:i}}function $o(e){var t=Oo(e);return t.x*=Ii,t.y*=Ii,t}function ea(e,t){var i=Oo(t),n=i.x,r=i.y,s=e.display,u=s.scroller,g=u.scrollWidth>u.clientWidth,v=u.scrollHeight>u.clientHeight;if(!(n&&g||r&&v))return;if(r&&S&&W){e:for(var x=t.target,G=s.view;x!=u;x=x.parentNode)for(var ee=0;ee<G.length;ee++)if(G[ee].node==x){e.display.currentWheelTarget=x;break e}}if(n&&!de&&!C&&Ii!=null){r&&v&&$r(e,Math.max(0,u.scrollTop+r*Ii)),fr(e,Math.max(0,u.scrollLeft+n*Ii)),(!r||r&&v)&&M(t),s.wheelStartX=null;return}if(r&&Ii!=null){var Me=r*Ii,Se=e.doc.scrollTop,ze=Se+s.wrapper.clientHeight;Me<0?Se=Math.max(0,Se+Me-50):ze=Math.min(e.doc.height,ze+Me+50),po(e,{top:Se,bottom:ze})}Ir<20&&(s.wheelStartX==null?(s.wheelStartX=u.scrollLeft,s.wheelStartY=u.scrollTop,s.wheelDX=n,s.wheelDY=r,setTimeout(function(){if(s.wheelStartX==null)return;var qe=u.scrollLeft-s.wheelStartX,dt=u.scrollTop-s.wheelStartY,xt=dt&&s.wheelDY&&dt/s.wheelDY||qe&&s.wheelDX&&qe/s.wheelDX;if(s.wheelStartX=s.wheelStartY=null,!xt)return;Ii=(Ii*Ir+xt)/(Ir+1),++Ir},200)):(s.wheelDX+=n,s.wheelDY+=r))}var Zi=function(e,t){this.ranges=e,this.primIndex=t};Zi.prototype.primary=function(){return this.ranges[this.primIndex]},Zi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var i=this.ranges[t],n=e.ranges[t];if(!Yt(i.anchor,n.anchor)||!Yt(i.head,n.head))return!1}return!0},Zi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Wn(an(this.ranges[t].anchor),an(this.ranges[t].head));return new Zi(e,this.primIndex)},Zi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Zi.prototype.contains=function(e,t){t||(t=e);for(var i=0;i<this.ranges.length;i++){var n=this.ranges[i];if(pt(t,n.from())>=0&&pt(e,n.to())<=0)return i}return-1};var Wn=function(e,t){this.anchor=e,this.head=t};Wn.prototype.from=function(){return Un(this.anchor,this.head)},Wn.prototype.to=function(){return Pn(this.anchor,this.head)},Wn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function mr(e,t,i){var n=e&&e.options.selectionsMayTouch,r=t[i];t.sort(function(Me,Se){return pt(Me.from(),Se.from())}),i=_e(t,r);for(var s=1;s<t.length;s++){var u=t[s],g=t[s-1],v=pt(g.to(),u.from());if(n&&!u.empty()?v>0:v>=0){var x=Un(g.from(),u.from()),G=Pn(g.to(),u.to()),ee=g.empty()?u.from()==u.head:g.from()==g.head;s<=i&&--i,t.splice(--s,2,new Wn(ee?G:x,ee?x:G))}}return new Zi(t,i)}function xr(e,t){return new Zi([new Wn(e,t||e)],0)}function wr(e){return e.text?Ne(e.from.line+e.text.length-1,it(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function ta(e,t){if(pt(e,t.from)<0)return e;if(pt(e,t.to)<=0)return wr(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=wr(t).ch-t.to.ch),Ne(i,n)}function To(e,t){for(var i=[],n=0;n<e.sel.ranges.length;n++){var r=e.sel.ranges[n];i.push(new Wn(ta(r.anchor,t),ta(r.head,t)))}return mr(e.cm,i,e.sel.primIndex)}function Ta(e,t,i){return e.line==t.line?Ne(i.line,e.ch-t.ch+i.ch):Ne(i.line+(e.line-t.line),e.ch)}function Ra(e,t,i){for(var n=[],r=Ne(e.first,0),s=r,u=0;u<t.length;u++){var g=t[u],v=Ta(g.from,r,s),x=Ta(wr(g),r,s);if(r=g.to,s=x,i=="around"){var G=e.sel.ranges[u],ee=pt(G.head,G.anchor)<0;n[u]=new Wn(ee?x:v,ee?v:x)}else n[u]=new Wn(v,v)}return new Zi(n,e.sel.primIndex)}function Wr(e){e.doc.mode=Wt(e.options,e.doc.modeOption),na(e)}function na(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,fo(e,100),e.state.modeGen++,e.curOp&&Xn(e)}function gs(e,t){return t.from.ch==0&&t.to.ch==0&&it(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ts(e,t,i,n){function r(Pt){return i?i[Pt]:null}function s(Pt,wt,Ut){ga(Pt,wt,Ut,n),pi(Pt,"change",Pt,t)}function u(Pt,wt){for(var Ut=[],en=Pt;en<wt;++en)Ut.push(new jr(x[en],r(en),n));return Ut}var g=t.from,v=t.to,x=t.text,G=It(e,g.line),ee=It(e,v.line),Me=it(x),Se=r(x.length-1),ze=v.line-g.line;if(t.full)e.insert(0,u(0,x.length)),e.remove(x.length,e.size-x.length);else if(gs(e,t)){var qe=u(0,x.length-1);s(ee,ee.text,Se),ze&&e.remove(g.line,ze),qe.length&&e.insert(g.line,qe)}else if(G==ee)if(x.length==1)s(G,G.text.slice(0,g.ch)+Me+G.text.slice(v.ch),Se);else{var dt=u(1,x.length-1);dt.push(new jr(Me+G.text.slice(v.ch),Se,n)),s(G,G.text.slice(0,g.ch)+x[0],r(0)),e.insert(g.line+1,dt)}else if(x.length==1)s(G,G.text.slice(0,g.ch)+x[0]+ee.text.slice(v.ch),r(0)),e.remove(g.line+1,ze);else{s(G,G.text.slice(0,g.ch)+x[0],r(0)),s(ee,Me+ee.text.slice(v.ch),Se);var xt=u(1,x.length-1);ze>1&&e.remove(g.line+1,ze-1),e.insert(g.line+1,xt)}pi(e,"change",e,t)}function no(e,t,i){function n(r,s,u){if(r.linked)for(var g=0;g<r.linked.length;++g){var v=r.linked[g];if(v.doc==s)continue;var x=u&&v.sharedHist;if(i&&!x)continue;t(v.doc,x),n(v.doc,r,x)}}n(e,null,!0)}function vs(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Ji(e),Wr(e),ys(e),e.options.lineWrapping||lo(e),e.options.mode=t.modeOption,Xn(e)}function ys(e){(e.doc.direction=="rtl"?we:Oe)(e.display.lineDiv,"CodeMirror-rtl")}function fl(e){Xi(e,function(){ys(e),Xn(e)})}function Da(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 ns(e,t){var i={from:an(t.from),to:wr(t),text:Mi(e,t.from,t.to)};return Es(e,i,t.from.line,t.to.line+1),no(e,function(n){return Es(n,i,t.from.line,t.to.line+1)},!0),i}function bs(e){for(;e.length;){var t=it(e);if(t.ranges)e.pop();else break}}function pl(e,t){if(t)return bs(e.done),it(e.done);if(e.done.length&&!it(e.done).ranges)return it(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),it(e.done)}function Cs(e,t,i,n){var r=e.history;r.undone.length=0;var s=+new Date,u,g;if((r.lastOp==n||r.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&r.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(u=pl(r,r.lastOp==n)))g=it(u.changes),pt(t.from,t.to)==0&&pt(t.from,g.to)==0?g.to=wr(t):u.changes.push(ns(e,t));else{var v=it(r.done);for((!v||!v.ranges)&&La(e.sel,r.done),u={changes:[ns(e,t)],generation:r.generation},r.done.push(u);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(i),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=s,r.lastOp=r.lastSelOp=n,r.lastOrigin=r.lastSelOrigin=t.origin,g||Fe(e,"historyAdded")}function ml(e,t,i,n){var r=t.charAt(0);return r=="*"||r=="+"&&i.ranges.length==n.ranges.length&&i.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,t,i,n){var r=e.history,s=n&&n.origin;i==r.lastSelOp||s&&r.lastSelOrigin==s&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==s||ml(e,s,it(r.done),t))?r.done[r.done.length-1]=t:La(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=s,r.lastSelOp=i,n&&n.clearRedo!==!1&&bs(r.undone)}function La(e,t){var i=it(t);i&&i.ranges&&i.equals(e)||t.push(e)}function Es(e,t,i,n){var r=t["spans_"+e.id],s=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,n),function(u){u.markedSpans&&((r||(r=t["spans_"+e.id]={}))[s]=u.markedSpans),++s})}function vl(e){if(!e)return null;for(var t,i=0;i<e.length;++i)e[i].marker.explicitlyCleared?t||(t=e.slice(0,i)):t&&t.push(e[i]);return t?t.length?t:null:e}function yl(e,t){var i=t["spans_"+e.id];if(!i)return null;for(var n=[],r=0;r<t.text.length;++r)n.push(vl(i[r]));return n}function xs(e,t){var i=yl(e,t),n=lr(e,t);if(!i)return n;if(!n)return i;for(var r=0;r<i.length;++r){var s=i[r],u=n[r];if(s&&u){e:for(var g=0;g<u.length;++g){for(var v=u[g],x=0;x<s.length;++x)if(s[x].marker==v.marker)continue e;s.push(v)}}else u&&(i[r]=u)}return i}function Ro(e,t,i){for(var n=[],r=0;r<e.length;++r){var s=e[r];if(s.ranges){n.push(i?Zi.prototype.deepCopy.call(s):s);continue}var u=s.changes,g=[];n.push({changes:g});for(var v=0;v<u.length;++v){var x=u[v],G=void 0;if(g.push({from:x.from,to:x.to,text:x.text}),t)for(var ee in x)(G=ee.match(/^spans_(\d+)$/))&&(_e(t,Number(G[1]))>-1&&(it(g)[ee]=x[ee],delete x[ee]))}}return n}function is(e,t,i,n){if(n){var r=e.anchor;if(i){var s=pt(t,r)<0;s!=pt(i,r)<0?(r=t,t=i):s!=pt(t,i)<0&&(t=i)}return new Wn(r,t)}else return new Wn(i||t,t)}function Ia(e,t,i,n,r){r==null&&(r=e.cm&&(e.cm.display.shift||e.extend)),Vi(e,new Zi([is(e.sel.primary(),t,i,r)],0),n)}function ws(e,t,i){for(var n=[],r=e.cm&&(e.cm.display.shift||e.extend),s=0;s<e.sel.ranges.length;s++)n[s]=is(e.sel.ranges[s],t[s],null,r);var u=mr(e.cm,n,e.sel.primIndex);Vi(e,u,i)}function rs(e,t,i,n){var r=e.sel.ranges.slice(0);r[t]=i,Vi(e,mr(e.cm,r,e.sel.primIndex),n)}function As(e,t,i,n){Vi(e,xr(t,i),n)}function bl(e,t,i){var n={ranges:t.ranges,update:function(r){this.ranges=[];for(var s=0;s<r.length;s++)this.ranges[s]=new Wn(o(e,r[s].anchor),o(e,r[s].head))},origin:i&&i.origin};return Fe(e,"beforeSelectionChange",e,n),e.cm&&Fe(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?mr(e.cm,n.ranges,n.ranges.length-1):t}function Ss(e,t,i){var n=e.history.done,r=it(n);r&&r.ranges?(n[n.length-1]=t,Na(e,t,i)):Vi(e,t,i)}function Vi(e,t,i){Na(e,t,i),gl(e,e.sel,e.cm?e.cm.curOp.id:NaN,i)}function Na(e,t,i){(ne(e,"beforeSelectionChange")||e.cm&&ne(e.cm,"beforeSelectionChange"))&&(t=bl(e,t,i));var n=i&&i.bias||(pt(t.primary().head,e.sel.primary().head)<0?-1:1);ks(e,Os(e,t,n,!0)),!(i&&i.scroll===!1)&&e.cm&&Zr(e.cm)}function ks(e,t){if(t.equals(e.sel))return;e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,se(e.cm)),pi(e,"cursorActivity",e)}function Ms(e){ks(e,Os(e,e.sel,null,!1))}function Os(e,t,i,n){for(var r,s=0;s<t.ranges.length;s++){var u=t.ranges[s],g=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[s],v=Pa(e,u.anchor,g&&g.anchor,i,n),x=Pa(e,u.head,g&&g.head,i,n);(r||v!=u.anchor||x!=u.head)&&(r||(r=t.ranges.slice(0,s)),r[s]=new Wn(v,x))}return r?mr(e.cm,r,t.primIndex):t}function Do(e,t,i,n,r){var s=It(e,t.line);if(s.markedSpans)for(var u=0;u<s.markedSpans.length;++u){var g=s.markedSpans[u],v=g.marker,x="selectLeft"in v?!v.selectLeft:v.inclusiveLeft,G="selectRight"in v?!v.selectRight:v.inclusiveRight;if((g.from==null||(x?g.from<=t.ch:g.from<t.ch))&&(g.to==null||(G?g.to>=t.ch:g.to>t.ch))){if(r&&(Fe(v,"beforeCursorEnter"),v.explicitlyCleared))if(s.markedSpans){--u;continue}else break;if(!v.atomic)continue;if(i){var ee=v.find(n<0?1:-1),Me=void 0;if((n<0?G:x)&&(ee=Ts(e,ee,-n,ee&&ee.line==t.line?s:null)),ee&&ee.line==t.line&&(Me=pt(ee,i))&&(n<0?Me<0:Me>0))return Do(e,ee,t,n,r)}var Se=v.find(n<0?-1:1);return(n<0?x:G)&&(Se=Ts(e,Se,n,Se.line==t.line?s:null)),Se?Do(e,Se,t,n,r):null}}return t}function Pa(e,t,i,n,r){var s=n||1,u=Do(e,t,i,s,r)||!r&&Do(e,t,i,s,!0)||Do(e,t,i,-s,r)||!r&&Do(e,t,i,-s,!0);return u||(e.cantEdit=!0,Ne(e.first,0))}function Ts(e,t,i,n){return i<0&&t.ch==0?t.line>e.first?o(e,Ne(t.line-1)):null:i>0&&t.ch==(n||It(e,t.line)).text.length?t.line<e.first+e.size-1?Ne(t.line+1,0):null:new Ne(t.line,t.ch+i)}function Rs(e){e.setSelection(Ne(e.firstLine(),0),Ne(e.lastLine()),tt)}function Ds(e,t,i){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return i&&(n.update=function(r,s,u,g){r&&(n.from=o(e,r)),s&&(n.to=o(e,s)),u&&(n.text=u),g!==void 0&&(n.origin=g)}),Fe(e,"beforeChange",e,n),e.cm&&Fe(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function Lo(e,t,i){if(e.cm){if(!e.cm.curOp)return Ci(e.cm,Lo)(e,t,i);if(e.cm.state.suppressEdits)return}if((ne(e,"beforeChange")||e.cm&&ne(e.cm,"beforeChange"))&&(t=Ds(e,t,!0),!t))return;var n=vi&&!i&&Sr(e,t.from,t.to);if(n)for(var r=n.length-1;r>=0;--r)Ls(e,{from:n[r].from,to:n[r].to,text:r?[""]:t.text,origin:t.origin});else Ls(e,t)}function Ls(e,t){if(t.text.length==1&&t.text[0]==""&&pt(t.from,t.to)==0)return;var i=To(e,t);Cs(e,t,i,e.cm?e.cm.curOp.id:NaN),ia(e,t,i,lr(e,t));var n=[];no(e,function(r,s){!s&&_e(n,r.history)==-1&&(js(r.history,t),n.push(r.history)),ia(r,t,null,lr(r,t))})}function ja(e,t,i){var n=e.cm&&e.cm.state.suppressEdits;if(n&&!i)return;for(var r=e.history,s,u=e.sel,g=t=="undo"?r.done:r.undone,v=t=="undo"?r.undone:r.done,x=0;x<g.length&&!(s=g[x],i?s.ranges&&!s.equals(e.sel):!s.ranges);x++);if(x==g.length)return;for(r.lastOrigin=r.lastSelOrigin=null;;)if(s=g.pop(),s.ranges){if(La(s,v),i&&!s.equals(e.sel)){Vi(e,s,{clearRedo:!1});return}u=s}else if(n){g.push(s);return}else break;var G=[];La(u,v),v.push({changes:G,generation:r.generation}),r.generation=s.generation||++r.maxGeneration;for(var ee=ne(e,"beforeChange")||e.cm&&ne(e.cm,"beforeChange"),Me=function(qe){var dt=s.changes[qe];if(dt.origin=t,ee&&!Ds(e,dt,!1))return g.length=0,{};G.push(ns(e,dt));var xt=qe?To(e,dt):it(g);ia(e,dt,xt,xs(e,dt)),!qe&&e.cm&&e.cm.scrollIntoView({from:dt.from,to:wr(dt)});var Pt=[];no(e,function(wt,Ut){!Ut&&_e(Pt,wt.history)==-1&&(js(wt.history,dt),Pt.push(wt.history)),ia(wt,dt,null,xs(wt,dt))})},Se=s.changes.length-1;Se>=0;--Se){var ze=Me(Se);if(ze)return ze.v}}function Is(e,t){if(t==0)return;if(e.first+=t,e.sel=new Zi(Mt(e.sel.ranges,function(r){return new Wn(Ne(r.anchor.line+t,r.anchor.ch),Ne(r.head.line+t,r.head.ch))}),e.sel.primIndex),e.cm){Xn(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,n=i.viewFrom;n<i.viewTo;n++)oi(e.cm,n,"gutter")}}function ia(e,t,i,n){if(e.cm&&!e.cm.curOp)return Ci(e.cm,ia)(e,t,i,n);if(t.to.line<e.first){Is(e,t.text.length-1-(t.to.line-t.from.line));return}if(t.from.line>e.lastLine())return;if(t.from.line<e.first){var r=t.text.length-1-(e.first-t.from.line);Is(e,r),t={from:Ne(e.first,0),to:Ne(t.to.line+r,t.to.ch),text:[it(t.text)],origin:t.origin}}var s=e.lastLine();t.to.line>s&&(t={from:t.from,to:Ne(s,It(e,s).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Mi(e,t.from,t.to),i||(i=To(e,t)),e.cm?Cl(e.cm,t,n):ts(e,t,n),Na(e,i,tt),e.cantEdit&&Pa(e,Ne(e.firstLine(),0))&&(e.cantEdit=!1)}function Cl(e,t,i){var n=e.doc,r=e.display,s=t.from,u=t.to,g=!1,v=s.line;e.options.lineWrapping||(v=Vt(Ui(It(n,s.line))),n.iter(v,u.line+1,function(Se){if(Se==r.maxLine)return g=!0,!0})),n.sel.contains(t.from,t.to)>-1&&se(e),ts(n,t,i,dr(e)),e.options.lineWrapping||(n.iter(v,s.line+t.text.length,function(Se){var ze=Qr(Se);ze>r.maxLineLength&&(r.maxLine=Se,r.maxLineLength=ze,r.maxLineChanged=!0,g=!1)}),g&&(e.curOp.updateMaxLine=!0)),_i(n,s.line),fo(e,400);var x=t.text.length-(u.line-s.line)-1;t.full?Xn(e):s.line==u.line&&t.text.length==1&&!gs(e.doc,t)?oi(e,s.line,"text"):Xn(e,s.line,u.line+1,x);var G=ne(e,"changes"),ee=ne(e,"change");if(ee||G){var Me={from:s,to:u,text:t.text,removed:t.removed,origin:t.origin};ee&&pi(e,"change",e,Me),G&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Me)}e.display.selForContextMenu=null}function Io(e,t,i,n,r){var s;n||(n=i),pt(n,i)<0&&(s=[n,i],i=s[0],n=s[1]),typeof t=="string"&&(t=e.splitLines(t)),Lo(e,{from:i,to:n,text:t,origin:r})}function Ns(e,t,i,n){i<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function Ps(e,t,i,n){for(var r=0;r<e.length;++r){var s=e[r],u=!0;if(s.ranges){s.copied||(s=e[r]=s.deepCopy(),s.copied=!0);for(var g=0;g<s.ranges.length;g++)Ns(s.ranges[g].anchor,t,i,n),Ns(s.ranges[g].head,t,i,n);continue}for(var v=0;v<s.changes.length;++v){var x=s.changes[v];if(i<x.from.line)x.from=Ne(x.from.line+n,x.from.ch),x.to=Ne(x.to.line+n,x.to.ch);else if(t<=x.to.line){u=!1;break}}u||(e.splice(0,r+1),r=0)}}function js(e,t){var i=t.from.line,n=t.to.line,r=t.text.length-(n-i)-1;Ps(e.done,i,n,r),Ps(e.undone,i,n,r)}function ra(e,t,i,n){var r=t,s=t;return typeof t=="number"?s=It(e,d(e,t)):r=Vt(t),r==null?null:(n(s,r)&&e.cm&&oi(e.cm,r,i),s)}function oa(e){this.lines=e,this.parent=null;for(var t=0,i=0;i<e.length;++i)e[i].parent=this,t+=e[i].height;this.height=t}oa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var i=e,n=e+t;i<n;++i){var r=this.lines[i];this.height-=r.height,bo(r),pi(r,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,i){this.height+=i,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,i){for(var n=e+t;e<n;++e)if(i(this.lines[e]))return!0}};function aa(e){this.children=e;for(var t=0,i=0,n=0;n<e.length;++n){var r=e[n];t+=r.chunkSize(),i+=r.height,r.parent=this}this.size=t,this.height=i,this.parent=null}aa.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var i=0;i<this.children.length;++i){var n=this.children[i],r=n.chunkSize();if(e<r){var s=Math.min(t,r-e),u=n.height;if(n.removeInner(e,s),this.height-=u-n.height,r==s&&(this.children.splice(i--,1),n.parent=null),(t-=s)==0)break;e=0}else e-=r}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof oa))){var g=[];this.collapse(g),this.children=[new oa(g)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,i){this.size+=t.length,this.height+=i;for(var n=0;n<this.children.length;++n){var r=this.children[n],s=r.chunkSize();if(e<=s){if(r.insertInner(e,t,i),r.lines&&r.lines.length>50){for(var u=r.lines.length%25+25,g=u;g<r.lines.length;){var v=new oa(r.lines.slice(g,g+=25));r.height-=v.height,this.children.splice(++n,0,v),v.parent=this}r.lines=r.lines.slice(0,u),this.maybeSpill()}break}e-=s}},maybeSpill:function(){if(this.children.length<=10)return;var e=this;do{var t=e.children.splice(e.children.length-5,5),i=new aa(t);if(e.parent){e.size-=i.size,e.height-=i.height;var r=_e(e.parent.children,e);e.parent.children.splice(r+1,0,i)}else{var n=new aa(e.children);n.parent=e,e.children=[n,i],e=n}i.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()},iterN:function(e,t,i){for(var n=0;n<this.children.length;++n){var r=this.children[n],s=r.chunkSize();if(e<s){var u=Math.min(t,s-e);if(r.iterN(e,u,i))return!0;if((t-=u)==0)break;e=0}else e-=s}}};var sa=function(e,t,i){if(i)for(var n in i)i.hasOwnProperty(n)&&(this[n]=i[n]);this.doc=e,this.node=t};sa.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,i=this.line,n=Vt(i);if(n==null||!t)return;for(var r=0;r<t.length;++r)t[r]==this&&t.splice(r--,1);t.length||(i.widgets=null);var s=Xr(this);_n(i,Math.max(0,i.height-s)),e&&(Xi(e,function(){Bs(e,i,-s),oi(e,n,"widget")}),pi(e,"lineWidgetCleared",e,this,n))},sa.prototype.changed=function(){var e=this,t=this.height,i=this.doc.cm,n=this.line;this.height=null;var r=Xr(this)-t;if(!r)return;Pi(this.doc,n)||_n(n,n.height+r),i&&Xi(i,function(){i.curOp.forceUpdate=!0,Bs(i,n,r),pi(i,"lineWidgetChanged",i,e,Vt(n))})},oe(sa);function Bs(e,t,i){rr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Xo(e,i)}function El(e,t,i,n){var r=new sa(e,i,n),s=e.cm;return s&&r.noHScroll&&(s.display.alignWidgets=!0),ra(e,t,"widget",function(u){var g=u.widgets||(u.widgets=[]);if(r.insertAt==null?g.push(r):g.splice(Math.min(g.length-1,Math.max(0,r.insertAt)),0,r),r.line=u,s&&!Pi(e,u)){var v=rr(u)<e.scrollTop;_n(u,u.height+Xr(r)),v&&Xo(s,r.height),s.curOp.forceUpdate=!0}return!0}),s&&pi(s,"lineWidgetAdded",s,r,typeof t=="number"?t:Vt(t)),r}var _s=0,io=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++_s};io.prototype.clear=function(){if(this.explicitlyCleared)return;var e=this.doc.cm,t=e&&!e.curOp;if(t&&Lr(e),ne(this,"clear")){var i=this.find();i&&pi(this,"clear",i.from,i.to)}for(var n=null,r=null,s=0;s<this.lines.length;++s){var u=this.lines[s],g=$i(u.markedSpans,this);e&&!this.collapsed?oi(e,Vt(u),"text"):e&&(g.to!=null&&(r=Vt(u)),g.from!=null&&(n=Vt(u))),u.markedSpans=yr(u.markedSpans,g),g.from==null&&this.collapsed&&!Pi(this.doc,u)&&e&&_n(u,mi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var v=0;v<this.lines.length;++v){var x=Ui(this.lines[v]),G=Qr(x);G>e.display.maxLineLength&&(e.display.maxLine=x,e.display.maxLineLength=G,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&Xn(e,n,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ms(e.doc)),e&&pi(e,"markerCleared",e,this,n,r),t&&Ur(e),this.parent&&this.parent.clear()},io.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,n,r=0;r<this.lines.length;++r){var s=this.lines[r],u=$i(s.markedSpans,this);if(u.from!=null&&(i=Ne(t?s:Vt(s),u.from),e==-1))return i;if(u.to!=null&&(n=Ne(t?s:Vt(s),u.to),e==1))return n}return i&&{from:i,to:n}},io.prototype.changed=function(){var e=this,t=this.find(-1,!0),i=this,n=this.doc.cm;if(!t||!n)return;Xi(n,function(){var r=t.line,s=Vt(t.line),u=be(n,s);if(u&&(fn(u),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Pi(i.doc,r)&&i.height!=null){var g=i.height;i.height=null;var v=Xr(i)-g;v&&_n(r,r.height+v)}pi(n,"markerChanged",n,e)})},io.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||_e(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},io.prototype.detachLine=function(e){if(this.lines.splice(_e(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},oe(io);function No(e,t,i,n,r){if(n&&n.shared)return xl(e,t,i,n,r);if(e.cm&&!e.cm.curOp)return Ci(e.cm,No)(e,t,i,n,r);var s=new io(e,r),u=pt(t,i);if(n&&b(n,s,!1),u>0||u==0&&s.clearWhenEmpty!==!1)return s;if(s.replacedWith&&(s.collapsed=!0,s.widgetNode=Re("span",[s.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||s.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(s.widgetNode.insertLeft=!0)),s.collapsed){if(hi(e,t.line,t,i,s)||t.line!=i.line&&hi(e,i.line,t,i,s))throw new Error("Inserting collapsed marker partially overlapping an existing one");ui()}s.addToHistory&&Cs(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var g=t.line,v=e.cm,x;if(e.iter(g,i.line+1,function(ee){v&&s.collapsed&&!v.options.lineWrapping&&Ui(ee)==v.display.maxLine&&(x=!0),s.collapsed&&g!=t.line&&_n(ee,0),gr(ee,new sr(s,g==t.line?t.ch:null,g==i.line?i.ch:null)),++g}),s.collapsed&&e.iter(t.line,i.line+1,function(ee){Pi(e,ee)&&_n(ee,0)}),s.clearOnEnter&&Le(s,"beforeCursorEnter",function(){return s.clear()}),s.readOnly&&(zi(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),s.collapsed&&(s.id=++_s,s.atomic=!0),v){if(x&&(v.curOp.updateMaxLine=!0),s.collapsed)Xn(v,t.line,i.line+1);else if(s.className||s.startStyle||s.endStyle||s.css||s.attributes||s.title)for(var G=t.line;G<=i.line;G++)oi(v,G,"text");s.atomic&&Ms(v.doc),pi(v,"markerAdded",v,s)}return s}var la=function(e,t){this.markers=e,this.primary=t;for(var i=0;i<e.length;++i)e[i].parent=this};la.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();pi(this,"clear")},la.prototype.find=function(e,t){return this.primary.find(e,t)},oe(la);function xl(e,t,i,n,r){n=b(n),n.shared=!1;var s=[No(e,t,i,n,r)],u=s[0],g=n.widgetNode;return no(e,function(v){g&&(n.widgetNode=g.cloneNode(!0)),s.push(No(v,o(v,t),o(v,i),n,r));for(var x=0;x<v.linked.length;++x)if(v.linked[x].isParent)return;u=it(s)}),new la(s,u)}function Us(e){return e.findMarks(Ne(e.first,0),e.clipPos(Ne(e.lastLine())),function(t){return t.parent})}function wl(e,t){for(var i=0;i<t.length;i++){var n=t[i],r=n.find(),s=e.clipPos(r.from),u=e.clipPos(r.to);if(pt(s,u)){var g=No(e,s,u,n.primary,n.primary.type);n.markers.push(g),g.parent=n}}}function Al(e){for(var t=function(n){var r=e[n],s=[r.primary.doc];no(r.primary.doc,function(v){return s.push(v)});for(var u=0;u<r.markers.length;u++){var g=r.markers[u];_e(s,g.doc)==-1&&(g.parent=null,r.markers.splice(u--,1))}},i=0;i<e.length;i++)t(i)}var Sl=0,er=function(e,t,i,n,r){if(!(this instanceof er))return new er(e,t,i,n,r);i==null&&(i=0),aa.call(this,[new oa([new jr("",null)])]),this.first=i,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=i;var s=Ne(i,0);this.sel=xr(s),this.history=new Da(null),this.id=++Sl,this.modeOption=t,this.lineSep=n,this.direction=r=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),ts(this,{from:s,to:s,text:e}),Vi(this,xr(s),tt)};er.prototype=q(aa.prototype,{constructor:er,iter:function(e,t,i){i?this.iterN(e-this.first,t-e,i):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var i=0,n=0;n<t.length;++n)i+=t[n].height;this.insertInner(e-this.first,t,i)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=wi(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:Ei(function(e){var t=Ne(this.first,0),i=this.first+this.size-1;Lo(this,{from:t,to:Ne(i,It(this,i).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&qr(this.cm,0,0),Vi(this,xr(t),tt)}),replaceRange:function(e,t,i,n){t=o(this,t),i=i?o(this,i):t,Io(this,e,t,i,n)},getRange:function(e,t,i){var n=Mi(this,o(this,e),o(this,t));return i===!1?n:n.join(i||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(rn(this,e))return It(this,e)},getLineNumber:function(e){return Vt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=It(this,e)),Ui(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return o(this,e)},getCursor:function(e){var t=this.sel.primary(),i;return e==null||e=="head"?i=t.head:e=="anchor"?i=t.anchor:e=="end"||e=="to"||e===!1?i=t.to():i=t.from(),i},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ei(function(e,t,i){As(this,o(this,typeof e=="number"?Ne(e,t||0):e),null,i)}),setSelection:Ei(function(e,t,i){As(this,o(this,e),o(this,t||e),i)}),extendSelection:Ei(function(e,t,i){Ia(this,o(this,e),t&&o(this,t),i)}),extendSelections:Ei(function(e,t){ws(this,c(this,e),t)}),extendSelectionsBy:Ei(function(e,t){var i=Mt(this.sel.ranges,e);ws(this,c(this,i),t)}),setSelections:Ei(function(e,t,i){if(!e.length)return;for(var n=[],r=0;r<e.length;r++)n[r]=new Wn(o(this,e[r].anchor),o(this,e[r].head));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Vi(this,mr(this.cm,n,t),i)}),addSelection:Ei(function(e,t,i){var n=this.sel.ranges.slice(0);n.push(new Wn(o(this,e),o(this,t||e))),Vi(this,mr(this.cm,n,n.length-1),i)}),getSelection:function(e){for(var t=this.sel.ranges,i,n=0;n<t.length;n++){var r=Mi(this,t[n].from(),t[n].to());i=i?i.concat(r):r}return e===!1?i:i.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],i=this.sel.ranges,n=0;n<i.length;n++){var r=Mi(this,i[n].from(),i[n].to());e!==!1&&(r=r.join(e||this.lineSeparator())),t[n]=r}return t},replaceSelection:function(e,t,i){for(var n=[],r=0;r<this.sel.ranges.length;r++)n[r]=e;this.replaceSelections(n,t,i||"+input")},replaceSelections:Ei(function(e,t,i){for(var n=[],r=this.sel,s=0;s<r.ranges.length;s++){var u=r.ranges[s];n[s]={from:u.from(),to:u.to(),text:this.splitLines(e[s]),origin:i}}for(var g=t&&t!="end"&&Ra(this,n,t),v=n.length-1;v>=0;v--)Lo(this,n[v]);g?Ss(this,g):this.cm&&Zr(this.cm)}),undo:Ei(function(){ja(this,"undo")}),redo:Ei(function(){ja(this,"redo")}),undoSelection:Ei(function(){ja(this,"undo",!0)}),redoSelection:Ei(function(){ja(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var r=0;r<e.undone.length;r++)e.undone[r].ranges||++i;return{undo:t,redo:i}},clearHistory:function(){var e=this;this.history=new Da(this.history.maxGeneration),no(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:Ro(this.history.done),undone:Ro(this.history.undone)}},setHistory:function(e){var t=this.history=new Da(this.history.maxGeneration);t.done=Ro(e.done.slice(0),null,!0),t.undone=Ro(e.undone.slice(0),null,!0)},setGutterMarker:Ei(function(e,t,i){return ra(this,e,"gutter",function(n){var r=n.gutterMarkers||(n.gutterMarkers={});return r[t]=i,!i&&He(r)&&(n.gutterMarkers=null),!0})}),clearGutter:Ei(function(e){var t=this;this.iter(function(i){i.gutterMarkers&&i.gutterMarkers[e]&&ra(t,i,"gutter",function(){return i.gutterMarkers[e]=null,He(i.gutterMarkers)&&(i.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!rn(this,e))return null;if(t=e,e=It(this,e),!e)return null}else if(t=Vt(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:Ei(function(e,t,i){return ra(this,e,t=="gutter"?"gutter":"class",function(n){var r=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!n[r])n[r]=i;else{if(xe(i).test(n[r]))return!1;n[r]+=" "+i}return!0})}),removeLineClass:Ei(function(e,t,i){return ra(this,e,t=="gutter"?"gutter":"class",function(n){var r=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",s=n[r];if(s)if(i==null)n[r]=null;else{var u=s.match(xe(i));if(!u)return!1;var g=u.index+u[0].length;n[r]=s.slice(0,u.index)+(!u.index||g==s.length?"":" ")+s.slice(g)||null}else return!1;return!0})}),addLineWidget:Ei(function(e,t,i){return El(this,e,t,i)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,i){return No(this,o(this,e),o(this,t),i,i&&i.type||"range")},setBookmark:function(e,t){var i={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=o(this,e),No(this,e,e,i,"bookmark")},findMarksAt:function(e){e=o(this,e);var t=[],i=It(this,e.line).markedSpans;if(i)for(var n=0;n<i.length;++n){var r=i[n];(r.from==null||r.from<=e.ch)&&(r.to==null||r.to>=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,i){e=o(this,e),t=o(this,t);var n=[],r=e.line;return this.iter(e.line,t.line+1,function(s){var u=s.markedSpans;if(u)for(var g=0;g<u.length;g++){var v=u[g];!(v.to!=null&&r==e.line&&e.ch>=v.to||v.from==null&&r!=e.line||v.from!=null&&r==t.line&&v.from>=t.ch)&&(!i||i(v.marker))&&n.push(v.marker.parent||v.marker)}++r}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var n=0;n<i.length;++n)i[n].from!=null&&e.push(i[n].marker)}),e},posFromIndex:function(e){var t,i=this.first,n=this.lineSeparator().length;return this.iter(function(r){var s=r.text.length+n;if(s>e)return t=e,!0;e-=s,++i}),o(this,Ne(i,t))},indexFromPos:function(e){e=o(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var i=this.lineSeparator().length;return this.iter(this.first,e.line,function(n){t+=n.text.length+i}),t},copy:function(e){var t=new er(wi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,i=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<i&&(i=e.to);var n=new er(wi(this,t,i),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],wl(n,Us(this)),n},unlinkDoc:function(e){if(e instanceof ai&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var i=this.linked[t];if(i.doc!=e)continue;this.linked.splice(t,1),e.unlinkDoc(this),Al(Us(this));break}if(e.history==this.history){var n=[e.id];no(e,function(r){return n.push(r.id)},!0),e.history=new Da(null),e.history.done=Ro(this.history.done,n),e.history.undone=Ro(this.history.undone,n)}},iterLinkedDocs:function(e){no(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Bt(e)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Ei(function(e){if(e!="rtl"&&(e="ltr"),e==this.direction)return;this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&fl(this.cm)})}),er.prototype.eachLine=er.prototype.iter;var Fs=0;function kl(e){var t=this;if(Ws(t),Ze(t,e)||Cr(t.display,e))return;M(e),j&&(Fs=+new Date);var i=Ri(t,e,!0),n=e.dataTransfer.files;if(!i||t.isReadOnly())return;if(n&&n.length&&window.FileReader&&window.File)for(var r=n.length,s=Array(r),u=0,g=function(){++u==r&&Ci(t,function(){i=o(t.doc,i);var Se={from:i,to:i,text:t.doc.splitLines(s.filter(function(ze){return ze!=null}).join(t.doc.lineSeparator())),origin:"paste"};Lo(t.doc,Se),Ss(t.doc,xr(o(t.doc,i),o(t.doc,wr(Se))))})()},v=function(Se,ze){if(t.options.allowDropFileTypes&&_e(t.options.allowDropFileTypes,Se.type)==-1){g();return}var qe=new FileReader;qe.onerror=function(){return g()},qe.onload=function(){var dt=qe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(dt)){g();return}s[ze]=dt,g()},qe.readAsText(Se)},x=0;x<n.length;x++)v(n[x],x);else{if(t.state.draggingText&&t.doc.sel.contains(i)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var G=e.dataTransfer.getData("Text");if(G){var ee;if(t.state.draggingText&&!t.state.draggingText.copy&&(ee=t.listSelections()),Na(t.doc,xr(i,i)),ee)for(var Me=0;Me<ee.length;++Me)Io(t.doc,"",ee[Me].anchor,ee[Me].head,"drag");t.replaceSelection(G,"around","paste"),t.display.input.focus()}}catch(Se){}}}function Ml(e,t){if(j&&(!e.state.draggingText||+new Date-Fs<100)){Z(t);return}if(Ze(e,t)||Cr(e.display,t))return;if(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!R){var i=P("img",null,null,"position: fixed; left: 0; top: 0;");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",C&&(i.width=i.height=1,e.display.wrapper.appendChild(i),i._top=i.offsetTop),t.dataTransfer.setDragImage(i,0,0),C&&i.parentNode.removeChild(i)}}function Ol(e,t){var i=Ri(e,t);if(!i)return;var n=document.createDocumentFragment();Tr(e,i,n),e.display.dragCursor||(e.display.dragCursor=P("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),ue(e.display.dragCursor,n)}function Ws(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function zs(e){if(!document.getElementsByClassName)return;for(var t=document.getElementsByClassName("CodeMirror"),i=[],n=0;n<t.length;n++){var r=t[n].CodeMirror;r&&i.push(r)}i.length&&i[0].operation(function(){for(var s=0;s<i.length;s++)e(i[s])})}var Hs=!1;function Tl(){if(Hs)return;Rl(),Hs=!0}function Rl(){var e;Le(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,zs(Dl)},100))}),Le(window,"blur",function(){return zs(Yr)})}function Dl(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var ro={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"},ua=0;ua<10;ua++)ro[ua+48]=ro[ua+96]=String(ua);for(var Ba=65;Ba<=90;Ba++)ro[Ba]=String.fromCharCode(Ba);for(var ca=1;ca<=12;ca++)ro[ca+111]=ro[ca+63235]="F"+ca;var zr={};zr.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"},zr.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"},zr.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"},zr.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"]},zr.default=S?zr.macDefault:zr.pcDefault;function Ll(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var i,n,r,s,u=0;u<t.length-1;u++){var g=t[u];if(/^(cmd|meta|m)$/i.test(g))s=!0;else if(/^a(lt)?$/i.test(g))i=!0;else if(/^(c|ctrl|control)$/i.test(g))n=!0;else if(/^s(hift)?$/i.test(g))r=!0;else throw new Error("Unrecognized modifier name: "+g)}return i&&(e="Alt-"+e),n&&(e="Ctrl-"+e),s&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Il(e){var t={};for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];if(/^(name|fallthrough|(de|at)tach)$/.test(i))continue;if(n=="..."){delete e[i];continue}for(var r=Mt(i.split(" "),Ll),s=0;s<r.length;s++){var u=void 0,g=void 0;s==r.length-1?(g=r.join(" "),u=n):(g=r.slice(0,s+1).join(" "),u="...");var v=t[g];if(!v)t[g]=u;else if(v!=u)throw new Error("Inconsistent bindings for "+g)}delete e[i]}for(var x in t)e[x]=t[x];return e}function Po(e,t,i,n){t=_a(t);var r=t.call?t.call(e,n):t[e];if(r===!1)return"nothing";if(r==="...")return"multi";if(r!=null&&i(r))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Po(e,t.fallthrough,i,n);for(var s=0;s<t.fallthrough.length;s++){var u=Po(e,t.fallthrough[s],i,n);if(u)return u}}}function Gs(e){var t=typeof e=="string"?e:ro[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function Vs(e,t,i){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(ge?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(ge?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!i&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function Ks(e,t){if(C&&e.keyCode==34&&e.char)return!1;var i=ro[e.keyCode];return i==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(i=e.code),Vs(i,e,t))}function _a(e){return typeof e=="string"?zr[e]:e}function jo(e,t){for(var i=e.doc.sel.ranges,n=[],r=0;r<i.length;r++){for(var s=t(i[r]);n.length&&pt(s.from,it(n).to)<=0;){var u=n.pop();if(pt(u.from,s.from)<0){s.from=u.from;break}}n.push(s)}Xi(e,function(){for(var g=n.length-1;g>=0;g--)Io(e.doc,"",n[g].from,n[g].to,"+delete");Zr(e)})}function os(e,t,i){var n=et(e.text,t+i,i);return n<0||n>e.text.length?null:n}function as(e,t,i){var n=os(e,t.ch,i);return n==null?null:new Ne(t.line,n,i<0?"after":"before")}function ss(e,t,i,n,r){if(e){t.doc.direction=="rtl"&&(r=-r);var s=mt(i,t.doc.direction);if(s){var u=r<0?it(s):s[0],g=r<0==(u.level==1),v=g?"after":"before",x;if(u.level>0||t.doc.direction=="rtl"){var G=ae(t,i);x=r<0?i.text.length-1:0;var ee=ke(t,G,x).top;x=Dt(function(Me){return ke(t,G,Me).top==ee},r<0==(u.level==1)?u.from:u.to-1,x),v=="before"&&(x=os(i,x,1))}else x=r<0?u.to:u.from;return new Ne(n,x,v)}}return new Ne(n,r<0?i.text.length:0,r<0?"before":"after")}function Nl(e,t,i,n){var r=mt(t,e.doc.direction);if(!r)return as(t,i,n);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var s=$e(r,i.ch,i.sticky),u=r[s];if(e.doc.direction=="ltr"&&u.level%2==0&&(n>0?u.to>i.ch:u.from<i.ch))return as(t,i,n);var g=function(xt,Pt){return os(t,xt instanceof Ne?xt.ch:xt,Pt)},v,x=function(xt){return e.options.lineWrapping?(v=v||ae(e,t),zt(e,t,v,xt)):{begin:0,end:t.text.length}},G=x(i.sticky=="before"?g(i,-1):i.ch);if(e.doc.direction=="rtl"||u.level==1){var ee=u.level==1==n<0,Me=g(i,ee?1:-1);if(Me!=null&&(ee?Me<=u.to&&Me<=G.end:Me>=u.from&&Me>=G.begin)){var Se=ee?"before":"after";return new Ne(i.line,Me,Se)}}var ze=function(xt,Pt,wt){for(var Ut=function($n,ji){return ji?new Ne(i.line,g($n,1),"before"):new Ne(i.line,$n,"after")};xt>=0&&xt<r.length;xt+=Pt){var en=r[xt],Xt=Pt>0==(en.level!=1),yn=Xt?wt.begin:g(wt.end,-1);if(en.from<=yn&&yn<en.to)return Ut(yn,Xt);if(yn=Xt?en.from:g(en.to,-1),wt.begin<=yn&&yn<wt.end)return Ut(yn,Xt)}},qe=ze(s+n,n,G);if(qe)return qe;var dt=n>0?G.end:g(G.begin,-1);return dt!=null&&!(n>0&&dt==t.text.length)&&(qe=ze(n>0?0:r.length-1,n,x(dt)),qe)?qe:null}var da={selectAll:Rs,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),tt)},killLine:function(e){return jo(e,function(t){if(t.empty()){var i=It(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line<e.lastLine()?{from:t.head,to:Ne(t.head.line+1,0)}:{from:t.head,to:Ne(t.head.line,i)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return jo(e,function(t){return{from:Ne(t.from().line,0),to:o(e.doc,Ne(t.to().line+1,0))}})},delLineLeft:function(e){return jo(e,function(t){return{from:Ne(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return jo(e,function(t){var i=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:i},"div");return{from:n,to:t.from()}})},delWrappedLineRight:function(e){return jo(e,function(t){var i=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div");return{from:t.from(),to:n}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(Ne(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(Ne(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Qs(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Js(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return Pl(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div")},Je)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:i},"div")},Je)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:i},"div");return n.ch<e.getLine(n.line).search(/\S/)?Js(e,t.head):n},Je)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],i=e.listSelections(),n=e.options.tabSize,r=0;r<i.length;r++){var s=i[r].from(),u=ye(e.getLine(s.line),s.ch,n);t.push(F(n-u%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Xi(e,function(){for(var t=e.listSelections(),i=[],n=0;n<t.length;n++){if(!t[n].empty())continue;var r=t[n].head,s=It(e.doc,r.line).text;if(s){if(r.ch==s.length&&(r=new Ne(r.line,r.ch-1)),r.ch>0)r=new Ne(r.line,r.ch+1),e.replaceRange(s.charAt(r.ch-1)+s.charAt(r.ch-2),Ne(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var u=It(e.doc,r.line-1).text;u&&(r=new Ne(r.line,1),e.replaceRange(s.charAt(0)+e.doc.lineSeparator()+u.charAt(u.length-1),Ne(r.line-1,u.length-1),r,"+transpose"))}}i.push(new Wn(r,r))}e.setSelections(i)})},newlineAndIndent:function(e){return Xi(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);Zr(e)})},openLine:function(e){return e.replaceSelection(`
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Qs(e,t){var i=It(e.doc,t),n=Ui(i);return n!=i&&(t=Vt(n)),ss(!0,e,n,t,1)}function Pl(e,t){var i=It(e.doc,t),n=Vr(i);return n!=i&&(t=Vt(n)),ss(!0,e,i,t,-1)}function Js(e,t){var i=Qs(e,t.line),n=It(e.doc,i.line),r=mt(n,e.doc.direction);if(!r||r[0].level==0){var s=Math.max(i.ch,n.text.search(/\S/)),u=t.line==i.line&&t.ch<=s&&t.ch;return Ne(i.line,u?0:s,i.sticky)}return i}function Ua(e,t,i){if(typeof t=="string"&&(t=da[t],!t))return!1;e.display.input.ensurePolled();var n=e.display.shift,r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),i&&(e.display.shift=!1),r=t(e)!=St}finally{e.display.shift=n,e.state.suppressEdits=!1}return r}function jl(e,t,i){for(var n=0;n<e.state.keyMaps.length;n++){var r=Po(t,e.state.keyMaps[n],i,e);if(r)return r}return e.options.extraKeys&&Po(t,e.options.extraKeys,i,e)||Po(t,e.options.keyMap,i,e)}var Bl=new je;function ha(e,t,i,n){var r=e.state.keySeq;if(r){if(Gs(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Bl.set(50,function(){e.state.keySeq==r&&(e.state.keySeq=null,e.display.input.reset())}),Xs(e,r+" "+t,i,n))return!0}return Xs(e,t,i,n)}function Xs(e,t,i,n){var r=jl(e,t,n);return r=="multi"&&(e.state.keySeq=t),r=="handled"&&pi(e,"keyHandled",e,t,i),(r=="handled"||r=="multi")&&(M(i),Di(e)),!!r}function Ys(e,t){var i=Ks(t,!0);return i?t.shiftKey&&!e.state.keySeq?ha(e,"Shift-"+i,t,function(n){return Ua(e,n,!0)})||ha(e,i,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return Ua(e,n)}):ha(e,i,t,function(n){return Ua(e,n)}):!1}function _l(e,t,i){return ha(e,"'"+i+"'",t,function(n){return Ua(e,n,!0)})}var ls=null;function Zs(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(t.curOp.focus=ce(),Ze(t,e))return;j&&Y<11&&e.keyCode==27&&(e.returnValue=!1);var i=e.keyCode;t.display.shift=i==16||e.shiftKey;var n=Ys(t,e);C&&(ls=n?i:null,!n&&i==88&&!ln&&(S?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),de&&!S&&!n&&i==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),i==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Ul(t)}function Ul(e){var t=e.display.lineDiv;we(t,"CodeMirror-crosshair");function i(n){(n.keyCode==18||!n.altKey)&&(Oe(t,"CodeMirror-crosshair"),yt(document,"keyup",i),yt(document,"mouseover",i))}Le(document,"keyup",i),Le(document,"mouseover",i)}function qs(e){e.keyCode==16&&(this.doc.sel.shift=!1),Ze(this,e)}function $s(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(Cr(t.display,e)||Ze(t,e)||e.ctrlKey&&!e.altKey||S&&e.metaKey)return;var i=e.keyCode,n=e.charCode;if(C&&i==ls){ls=null,M(e);return}if(C&&(!e.which||e.which<10)&&Ys(t,e))return;var r=String.fromCharCode(n==null?i:n);if(r=="\b")return;if(_l(t,e,r))return;t.display.input.onKeyPress(e)}var Fl=400,us=function(e,t,i){this.time=e,this.pos=t,this.button=i};us.prototype.compare=function(e,t,i){return this.time+Fl>e&&pt(t,this.pos)==0&&i==this.button};var fa,pa;function Wl(e,t){var i=+new Date;return pa&&pa.compare(i,e,t)?(fa=pa=null,"triple"):fa&&fa.compare(i,e,t)?(pa=new us(i,e,t),fa=null,"double"):(fa=new us(i,e,t),pa=null,"single")}function el(e){var t=this,i=t.display;if(Ze(t,e)||i.activeTouch&&i.input.supportsTouch())return;if(i.input.ensurePolled(),i.shift=e.shiftKey,Cr(i,e)){W||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(cs(t,e))return;var n=Ri(t,e),r=Ce(e),s=n?Wl(n,r):"single";if(window.focus(),r==1&&t.state.selectingText&&t.state.selectingText(e),n&&zl(t,r,n,s,e))return;r==1?n?Gl(t,n,s,e):Te(e)==i.scroller&&M(e):r==2?(n&&Ia(t.doc,n),setTimeout(function(){return i.input.focus()},20)):r==3&&(Ie?t.display.input.onContextMenu(e):Ko(t))}function zl(e,t,i,n,r){var s="Click";return n=="double"?s="Double"+s:n=="triple"&&(s="Triple"+s),s=(t==1?"Left":t==2?"Middle":"Right")+s,ha(e,Vs(s,r),r,function(u){if(typeof u=="string"&&(u=da[u]),!u)return!1;var g=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),g=u(e,i)!=St}finally{e.state.suppressEdits=!1}return g})}function Hl(e,t,i){var n=e.getOption("configureMouse"),r=n?n(e,t,i):{};if(r.unit==null){var s=L?i.shiftKey&&i.metaKey:i.altKey;r.unit=s?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(r.extend==null||e.doc.extend)&&(r.extend=e.doc.extend||i.shiftKey),r.addNew==null&&(r.addNew=S?i.metaKey:i.ctrlKey),r.moveOnDrag==null&&(r.moveOnDrag=!(S?i.altKey:i.ctrlKey)),r}function Gl(e,t,i,n){j?setTimeout(I(xa,e),0):e.curOp.focus=ce();var r=Hl(e,i,n),s=e.doc.sel,u;e.options.dragDrop&&Ve&&!e.isReadOnly()&&i=="single"&&(u=s.contains(t))>-1&&(pt((u=s.ranges[u]).from(),t)<0||t.xRel>0)&&(pt(u.to(),t)>0||t.xRel<0)?Vl(e,n,t,r):Kl(e,n,t,r)}function Vl(e,t,i,n){var r=e.display,s=!1,u=Ci(e,function(x){W&&(r.scroller.draggable=!1),e.state.draggingText=!1,yt(r.wrapper.ownerDocument,"mouseup",u),yt(r.wrapper.ownerDocument,"mousemove",g),yt(r.scroller,"dragstart",v),yt(r.scroller,"drop",u),s||(M(x),n.addNew||Ia(e.doc,i,null,null,n.extend),W&&!R||j&&Y==9?setTimeout(function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()},20):r.input.focus())}),g=function(x){s=s||Math.abs(t.clientX-x.clientX)+Math.abs(t.clientY-x.clientY)>=10},v=function(){return s=!0};W&&(r.scroller.draggable=!0),e.state.draggingText=u,u.copy=!n.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop(),Le(r.wrapper.ownerDocument,"mouseup",u),Le(r.wrapper.ownerDocument,"mousemove",g),Le(r.scroller,"dragstart",v),Le(r.scroller,"drop",u),Ko(e),setTimeout(function(){return r.input.focus()},20)}function tl(e,t,i){if(i=="char")return new Wn(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Wn(Ne(t.line,0),o(e.doc,Ne(t.line+1,0)));var n=i(e,t);return new Wn(n.from,n.to)}function Kl(e,t,i,n){var r=e.display,s=e.doc;M(t);var u,g,v=s.sel,x=v.ranges;if(n.addNew&&!n.extend?(g=s.sel.contains(i),g>-1?u=x[g]:u=new Wn(i,i)):(u=s.sel.primary(),g=s.sel.primIndex),n.unit=="rectangle")n.addNew||(u=new Wn(i,i)),i=Ri(e,t,!0,!0),g=-1;else{var G=tl(e,i,n.unit);n.extend?u=is(u,G.anchor,G.head,n.extend):u=G}n.addNew?g==-1?(g=x.length,Vi(s,mr(e,x.concat([u]),g),{scroll:!1,origin:"*mouse"})):x.length>1&&x[g].empty()&&n.unit=="char"&&!n.extend?(Vi(s,mr(e,x.slice(0,g).concat(x.slice(g+1)),0),{scroll:!1,origin:"*mouse"}),v=s.sel):rs(s,g,u,nt):(g=0,Vi(s,new Zi([u],0),nt),v=s.sel);var ee=i;function Me(wt){if(pt(ee,wt)==0)return;if(ee=wt,n.unit=="rectangle"){for(var Ut=[],en=e.options.tabSize,Xt=ye(It(s,i.line).text,i.ch,en),yn=ye(It(s,wt.line).text,wt.ch,en),$n=Math.min(Xt,yn),ji=Math.max(Xt,yn),fi=Math.min(i.line,wt.line),ar=Math.min(e.lastLine(),Math.max(i.line,wt.line));fi<=ar;fi++){var tr=It(s,fi).text,Si=Ye(tr,$n,en);$n==ji?Ut.push(new Wn(Ne(fi,Si),Ne(fi,Si))):tr.length>Si&&Ut.push(new Wn(Ne(fi,Si),Ne(fi,Ye(tr,ji,en))))}Ut.length||Ut.push(new Wn(i,i)),Vi(s,mr(e,v.ranges.slice(0,g).concat(Ut),g),{origin:"*mouse",scroll:!1}),e.scrollIntoView(wt)}else{var nr=u,Wi=tl(e,wt,n.unit),Ni=nr.anchor,ki;pt(Wi.anchor,Ni)>0?(ki=Wi.head,Ni=Un(nr.from(),Wi.anchor)):(ki=Wi.anchor,Ni=Pn(nr.to(),Wi.head));var gi=v.ranges.slice(0);gi[g]=Ql(e,new Wn(o(s,Ni),ki)),Vi(s,mr(e,gi,g),nt)}}var Se=r.wrapper.getBoundingClientRect(),ze=0;function qe(wt){var Ut=++ze,en=Ri(e,wt,!0,n.unit=="rectangle");if(!en)return;if(pt(en,ee)!=0){e.curOp.focus=ce(),Me(en);var Xt=xo(r,s);(en.line>=Xt.to||en.line<Xt.from)&&setTimeout(Ci(e,function(){ze==Ut&&qe(wt)}),150)}else{var yn=wt.clientY<Se.top?-20:wt.clientY>Se.bottom?20:0;yn&&setTimeout(Ci(e,function(){if(ze!=Ut)return;r.scroller.scrollTop+=yn,qe(wt)}),50)}}function dt(wt){e.state.selectingText=!1,ze=Infinity,wt&&(M(wt),r.input.focus()),yt(r.wrapper.ownerDocument,"mousemove",xt),yt(r.wrapper.ownerDocument,"mouseup",Pt),s.history.lastSelOrigin=null}var xt=Ci(e,function(wt){wt.buttons===0||!Ce(wt)?dt(wt):qe(wt)}),Pt=Ci(e,dt);e.state.selectingText=Pt,Le(r.wrapper.ownerDocument,"mousemove",xt),Le(r.wrapper.ownerDocument,"mouseup",Pt)}function Ql(e,t){var i=t.anchor,n=t.head,r=It(e.doc,i.line);if(pt(i,n)==0&&i.sticky==n.sticky)return t;var s=mt(r);if(!s)return t;var u=$e(s,i.ch,i.sticky),g=s[u];if(g.from!=i.ch&&g.to!=i.ch)return t;var v=u+(g.from==i.ch==(g.level!=1)?0:1);if(v==0||v==s.length)return t;var x;if(n.line!=i.line)x=(n.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var G=$e(s,n.ch,n.sticky),ee=G-u||(n.ch-i.ch)*(g.level==1?-1:1);G==v-1||G==v?x=ee<0:x=ee>0}var Me=s[v+(x?-1:0)],Se=x==(Me.level==1),ze=Se?Me.from:Me.to,qe=Se?"after":"before";return i.ch==ze&&i.sticky==qe?t:new Wn(new Ne(i.line,ze,qe),n)}function nl(e,t,i,n){var r,s;if(t.touches)r=t.touches[0].clientX,s=t.touches[0].clientY;else try{r=t.clientX,s=t.clientY}catch(Me){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&M(t);var u=e.display,g=u.lineDiv.getBoundingClientRect();if(s>g.bottom||!ne(e,i))return z(t);s-=g.top-u.viewOffset;for(var v=0;v<e.display.gutterSpecs.length;++v){var x=u.gutters.childNodes[v];if(x&&x.getBoundingClientRect().right>=r){var G=bn(e.doc,s),ee=e.display.gutterSpecs[v];return Fe(e,i,e,G,ee.className,t),z(t)}}}function cs(e,t){return nl(e,t,"gutterClick",!0)}function il(e,t){if(Cr(e.display,t)||Jl(e,t))return;if(Ze(e,t,"contextmenu"))return;Ie||e.display.input.onContextMenu(t)}function Jl(e,t){return ne(e,"gutterContextMenu")?nl(e,t,"gutterContextMenu",!1):!1}function rl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),cn(e)}var Bo={toString:function(){return"CodeMirror.Init"}},ol={},Fa={};function Xl(e){var t=e.optionHandlers;function i(n,r,s,u){e.defaults[n]=r,s&&(t[n]=u?function(g,v,x){x!=Bo&&s(g,v,x)}:s)}e.defineOption=i,e.Init=Bo,i("value","",function(n,r){return n.setValue(r)},!0),i("mode",null,function(n,r){n.doc.modeOption=r,Wr(n)},!0),i("indentUnit",2,Wr,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(n){na(n),cn(n),Xn(n)},!0),i("lineSeparator",null,function(n,r){if(n.doc.lineSep=r,!r)return;var s=[],u=n.doc.first;n.doc.iter(function(v){for(var x=0;;){var G=v.text.indexOf(r,x);if(G==-1)break;x=G+r.length,s.push(Ne(u,G))}u++});for(var g=s.length-1;g>=0;g--)Io(n.doc,r,s[g],Ne(s[g].line,s[g].ch+r.length))}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,r,s){n.state.specialChars=new RegExp(r.source+(r.test(" ")?"":"| "),"g"),s!=Bo&&n.refresh()}),i("specialCharPlaceholder",Tn,function(n){return n.refresh()},!0),i("electricChars",!0),i("inputStyle",f?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(n,r){return n.getInputField().spellcheck=r},!0),i("autocorrect",!1,function(n,r){return n.getInputField().autocorrect=r},!0),i("autocapitalize",!1,function(n,r){return n.getInputField().autocapitalize=r},!0),i("rtlMoveVisually",!le),i("wholeLineUpdateBefore",!0),i("theme","default",function(n){rl(n),Er(n)},!0),i("keyMap","default",function(n,r,s){var u=_a(r),g=s!=Bo&&_a(s);g&&g.detach&&g.detach(n,u),u.attach&&u.attach(n,g||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Zl,!0),i("gutters",[],function(n,r){n.display.gutterSpecs=Yi(r,n.options.lineNumbers),Er(n)},!0),i("fixedGutter",!0,function(n,r){n.display.gutters.style.left=r?Gi(n.display)+"px":"0",n.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(n){return _r(n)},!0),i("scrollbarStyle","native",function(n){So(n),_r(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),i("lineNumbers",!1,function(n,r){n.display.gutterSpecs=Yi(n.options.gutters,r),Er(n)},!0),i("firstLineNumber",1,Er,!0),i("lineNumberFormatter",function(n){return n},Er,!0),i("showCursorWhenSelecting",!1,Qn,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(n,r){r=="nocursor"&&(Yr(n),n.display.input.blur()),n.display.input.readOnlyChanged(r)}),i("screenReaderLabel",null,function(n,r){r=r===""?null:r,n.display.input.screenReaderLabelChanged(r)}),i("disableInput",!1,function(n,r){r||n.display.input.reset()},!0),i("dragDrop",!0,Yl),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,Qn,!0),i("singleCursorHeightPerLine",!0,Qn,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,na,!0),i("addModeClass",!1,na,!0),i("pollInterval",100),i("undoDepth",200,function(n,r){return n.doc.history.undoDepth=r}),i("historyEventDelay",1250),i("viewportMargin",10,function(n){return n.refresh()},!0),i("maxHighlightLength",1e4,na,!0),i("moveInputWithCursor",!0,function(n,r){r||n.display.input.resetPosition()}),i("tabindex",null,function(n,r){return n.display.input.getField().tabIndex=r||""}),i("autofocus",null),i("direction","ltr",function(n,r){return n.doc.setDirection(r)},!0),i("phrases",null)}function Yl(e,t,i){var n=i&&i!=Bo;if(!t!=!n){var r=e.display.dragFunctions,s=t?Le:yt;s(e.display.scroller,"dragstart",r.start),s(e.display.scroller,"dragenter",r.enter),s(e.display.scroller,"dragover",r.over),s(e.display.scroller,"dragleave",r.leave),s(e.display.scroller,"drop",r.drop)}}function Zl(e){e.options.lineWrapping?(we(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Oe(e.display.wrapper,"CodeMirror-wrap"),lo(e)),Ji(e),Xn(e),cn(e),setTimeout(function(){return _r(e)},100)}function ai(e,t){var i=this;if(!(this instanceof ai))return new ai(e,t);this.options=t=t?b(t):{},b(ol,t,!1);var n=t.value;typeof n=="string"?n=new er(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var r=new ai.inputStyles[t.inputStyle](this),s=this.display=new mo(e,n,r,t);s.wrapper.CodeMirror=this,rl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),So(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 je,keySeq:null,specialChars:null},t.autofocus&&!f&&s.input.focus(),j&&Y<11&&setTimeout(function(){return i.display.input.reset(!0)},20),ql(this),Tl(),Lr(this),this.curOp.forceUpdate=!0,vs(this,n),t.autofocus&&!f||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&Rr(i)},20):Yr(this);for(var u in Fa)Fa.hasOwnProperty(u)&&Fa[u](this,t[u],Bo);Li(this),t.finishInit&&t.finishInit(this);for(var g=0;g<ds.length;++g)ds[g](this);Ur(this),W&&t.lineWrapping&&getComputedStyle(s.lineDiv).textRendering=="optimizelegibility"&&(s.lineDiv.style.textRendering="auto")}ai.defaults=ol,ai.optionHandlers=Fa;function ql(e){var t=e.display;Le(t.scroller,"mousedown",Ci(e,el)),j&&Y<11?Le(t.scroller,"dblclick",Ci(e,function(v){if(Ze(e,v))return;var x=Ri(e,v);if(!x||cs(e,v)||Cr(e.display,v))return;M(v);var G=e.findWordAt(x);Ia(e.doc,G.anchor,G.head)})):Le(t.scroller,"dblclick",function(v){return Ze(e,v)||M(v)}),Le(t.scroller,"contextmenu",function(v){return il(e,v)}),Le(t.input.getField(),"contextmenu",function(v){t.scroller.contains(v.target)||il(e,v)});var i,n={end:0};function r(){t.activeTouch&&(i=setTimeout(function(){return t.activeTouch=null},1e3),n=t.activeTouch,n.end=+new Date)}function s(v){if(v.touches.length!=1)return!1;var x=v.touches[0];return x.radiusX<=1&&x.radiusY<=1}function u(v,x){if(x.left==null)return!0;var G=x.left-v.left,ee=x.top-v.top;return G*G+ee*ee>20*20}Le(t.scroller,"touchstart",function(v){if(!Ze(e,v)&&!s(v)&&!cs(e,v)){t.input.ensurePolled(),clearTimeout(i);var x=+new Date;t.activeTouch={start:x,moved:!1,prev:x-n.end<=300?n:null},v.touches.length==1&&(t.activeTouch.left=v.touches[0].pageX,t.activeTouch.top=v.touches[0].pageY)}}),Le(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Le(t.scroller,"touchend",function(v){var x=t.activeTouch;if(x&&!Cr(t,v)&&x.left!=null&&!x.moved&&new Date-x.start<300){var G=e.coordsChar(t.activeTouch,"page"),ee;!x.prev||u(x,x.prev)?ee=new Wn(G,G):!x.prev.prev||u(x,x.prev.prev)?ee=e.findWordAt(G):ee=new Wn(Ne(G.line,0),o(e.doc,Ne(G.line+1,0))),e.setSelection(ee.anchor,ee.head),e.focus(),M(v)}r()}),Le(t.scroller,"touchcancel",r),Le(t.scroller,"scroll",function(){t.scroller.clientHeight&&($r(e,t.scroller.scrollTop),fr(e,t.scroller.scrollLeft,!0),Fe(e,"scroll",e))}),Le(t.scroller,"mousewheel",function(v){return ea(e,v)}),Le(t.scroller,"DOMMouseScroll",function(v){return ea(e,v)}),Le(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(v){Ze(e,v)||Z(v)},over:function(v){Ze(e,v)||(Ol(e,v),Z(v))},start:function(v){return Ml(e,v)},drop:Ci(e,kl),leave:function(v){Ze(e,v)||Ws(e)}};var g=t.input.getField();Le(g,"keyup",function(v){return qs.call(e,v)}),Le(g,"keydown",Ci(e,Zs)),Le(g,"keypress",Ci(e,$s)),Le(g,"focus",function(v){return Rr(e,v)}),Le(g,"blur",function(v){return Yr(e,v)})}var ds=[];ai.defineInitHook=function(e){return ds.push(e)};function ma(e,t,i,n){var r=e.doc,s;i==null&&(i="add"),i=="smart"&&(r.mode.indent?s=gt(e,t).state:i="prev");var u=e.options.tabSize,g=It(r,t),v=ye(g.text,null,u);g.stateAfter&&(g.stateAfter=null);var x=g.text.match(/^\s*/)[0],G;if(!n&&!/\S/.test(g.text))G=0,i="not";else if(i=="smart"&&(G=r.mode.indent(s,g.text.slice(x.length),g.text),G==St||G>150)){if(!n)return;i="prev"}i=="prev"?t>r.first?G=ye(It(r,t-1).text,null,u):G=0:i=="add"?G=v+e.options.indentUnit:i=="subtract"?G=v-e.options.indentUnit:typeof i=="number"&&(G=v+i),G=Math.max(0,G);var ee="",Me=0;if(e.options.indentWithTabs)for(var Se=Math.floor(G/u);Se;--Se)Me+=u,ee+=" ";if(Me<G&&(ee+=F(G-Me)),ee!=x)return Io(r,ee,Ne(t,0),Ne(t,x.length),"+input"),g.stateAfter=null,!0;for(var ze=0;ze<r.sel.ranges.length;ze++){var qe=r.sel.ranges[ze];if(qe.head.line==t&&qe.head.ch<x.length){var dt=Ne(t,x.length);rs(r,ze,new Wn(dt,dt));break}}}var Ar=null;function Wa(e){Ar=e}function hs(e,t,i,n,r){var s=e.doc;e.display.shift=!1,n||(n=s.sel);var u=+new Date-200,g=r=="paste"||e.state.pasteIncoming>u,v=Bt(t),x=null;if(g&&n.ranges.length>1)if(Ar&&Ar.text.join(`
`)==t){if(n.ranges.length%Ar.text.length==0){x=[];for(var G=0;G<Ar.text.length;G++)x.push(s.splitLines(Ar.text[G]))}}else v.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(x=Mt(v,function(xt){return[xt]}));for(var ee=e.curOp.updateInput,Me=n.ranges.length-1;Me>=0;Me--){var Se=n.ranges[Me],ze=Se.from(),qe=Se.to();Se.empty()&&(i&&i>0?ze=Ne(ze.line,ze.ch-i):e.state.overwrite&&!g?qe=Ne(qe.line,Math.min(It(s,qe.line).text.length,qe.ch+it(v).length)):g&&Ar&&Ar.lineWise&&Ar.text.join(`
`)==v.join(`
`)&&(ze=qe=Ne(ze.line,0)));var dt={from:ze,to:qe,text:x?x[Me%x.length]:v,origin:r||(g?"paste":e.state.cutIncoming>u?"cut":"+input")};Lo(e.doc,dt),pi(e,"inputRead",e,dt)}t&&!g&&sl(e,t),Zr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=ee),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function al(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Xi(t,function(){return hs(t,i,0,null,"paste")}),!0}function sl(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var i=e.doc.sel,n=i.ranges.length-1;n>=0;n--){var r=i.ranges[n];if(r.head.ch>100||n&&i.ranges[n-1].head.line==r.head.line)continue;var s=e.getModeAt(r.head),u=!1;if(s.electricChars){for(var g=0;g<s.electricChars.length;g++)if(t.indexOf(s.electricChars.charAt(g))>-1){u=ma(e,r.head.line,"smart");break}}else s.electricInput&&(s.electricInput.test(It(e.doc,r.head.line).text.slice(0,r.head.ch))&&(u=ma(e,r.head.line,"smart")));u&&pi(e,"electricInput",e,r.head.line)}}function ll(e){for(var t=[],i=[],n=0;n<e.doc.sel.ranges.length;n++){var r=e.doc.sel.ranges[n].head.line,s={anchor:Ne(r,0),head:Ne(r+1,0)};i.push(s),t.push(e.getRange(s.anchor,s.head))}return{text:t,ranges:i}}function ul(e,t,i,n){e.setAttribute("autocorrect",i?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function cl(){var e=P("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=P("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return W?e.style.width="1000px":e.setAttribute("wrap","off"),T&&(e.style.border="1px solid black"),ul(e),t}function $l(e){var t=e.optionHandlers,i=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(n,r){var s=this.options,u=s[n];if(s[n]==r&&n!="mode")return;s[n]=r,t.hasOwnProperty(n)&&Ci(this,t[n])(this,r,u),Fe(this,"optionChange",this,n)},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,r){this.state.keyMaps[r?"push":"unshift"](_a(n))},removeKeyMap:function(n){for(var r=this.state.keyMaps,s=0;s<r.length;++s)if(r[s]==n||r[s].name==n)return r.splice(s,1),!0},addOverlay:Fi(function(n,r){var s=n.token?n:e.getMode(this.options,n);if(s.startState)throw new Error("Overlays may not be stateful.");Tt(this.state.overlays,{mode:s,modeSpec:n,opaque:r&&r.opaque,priority:r&&r.priority||0},function(u){return u.priority}),this.state.modeGen++,Xn(this)}),removeOverlay:Fi(function(n){for(var r=this.state.overlays,s=0;s<r.length;++s){var u=r[s].modeSpec;if(u==n||typeof n=="string"&&u.name==n){r.splice(s,1),this.state.modeGen++,Xn(this);return}}}),indentLine:Fi(function(n,r,s){typeof r!="string"&&typeof r!="number"&&(r==null?r=this.options.smartIndent?"smart":"prev":r=r?"add":"subtract"),rn(this.doc,n)&&ma(this,n,r,s)}),indentSelection:Fi(function(n){for(var r=this.doc.sel.ranges,s=-1,u=0;u<r.length;u++){var g=r[u];if(g.empty())g.head.line>s&&(ma(this,g.head.line,n,!0),s=g.head.line,u==this.doc.sel.primIndex&&Zr(this));else{var v=g.from(),x=g.to(),G=Math.max(s,v.line);s=Math.min(this.lastLine(),x.line-(x.ch?0:1))+1;for(var ee=G;ee<s;++ee)ma(this,ee,n);var Me=this.doc.sel.ranges;v.ch==0&&r.length==Me.length&&Me[u].from().ch>0&&rs(this.doc,u,new Wn(v,Me[u].to()),tt)}}}),getTokenAt:function(n,r){return jt(this,n,r)},getLineTokens:function(n,r){return jt(this,Ne(n),r,!0)},getTokenTypeAt:function(n){n=o(this.doc,n);var r=Ke(this,It(this.doc,n.line)),s=0,u=(r.length-1)/2,g=n.ch,v;if(g==0)v=r[2];else for(;;){var x=s+u>>1;if((x?r[x*2-1]:0)>=g)u=x;else if(r[x*2+1]<g)s=x+1;else{v=r[x*2+2];break}}var G=v?v.indexOf("overlay "):-1;return G<0?v:G==0?null:v.slice(0,G-1)},getModeAt:function(n){var r=this.doc.mode;return r.innerMode?e.innerMode(r,this.getTokenAt(n).state).mode:r},getHelper:function(n,r){return this.getHelpers(n,r)[0]},getHelpers:function(n,r){var s=[];if(!i.hasOwnProperty(r))return s;var u=i[r],g=this.getModeAt(n);if(typeof g[r]=="string")u[g[r]]&&s.push(u[g[r]]);else if(g[r])for(var v=0;v<g[r].length;v++){var x=u[g[r][v]];x&&s.push(x)}else g.helperType&&u[g.helperType]?s.push(u[g.helperType]):u[g.name]&&s.push(u[g.name]);for(var G=0;G<u._global.length;G++){var ee=u._global[G];ee.pred(g,this)&&_e(s,ee.val)==-1&&s.push(ee.val)}return s},getStateAfter:function(n,r){var s=this.doc;return n=d(s,n==null?s.first+s.size-1:n),gt(this,n+1,r).state},cursorCoords:function(n,r){var s,u=this.doc.sel.primary();return n==null?s=u.head:typeof n=="object"?s=o(this.doc,n):s=n?u.from():u.to(),xn(this,s,r||"page")},charCoords:function(n,r){return ti(this,o(this.doc,n),r||"page")},coordsChar:function(n,r){return n=En(this,n,r||"page"),An(this,n.left,n.top)},lineAtHeight:function(n,r){return n=En(this,{top:n,left:0},r||"page").top,bn(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,r,s){var u=!1,g;if(typeof n=="number"){var v=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>v&&(n=v,u=!0),g=It(this.doc,n)}else g=n;return Rn(this,g,{top:0,left:0},r||"page",s||u).top+(u?this.doc.height-rr(g):0)},defaultTextHeight:function(){return mi(this.display)},defaultCharWidth:function(){return Ti(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,r,s,u,g){var v=this.display;n=xn(this,o(this.doc,n));var x=n.bottom,G=n.left;if(r.style.position="absolute",r.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(r),v.sizer.appendChild(r),u=="over")x=n.top;else if(u=="above"||u=="near"){var ee=Math.max(v.wrapper.clientHeight,this.doc.height),Me=Math.max(v.sizer.clientWidth,v.lineSpace.clientWidth);(u=="above"||n.bottom+r.offsetHeight>ee)&&n.top>r.offsetHeight?x=n.top-r.offsetHeight:n.bottom+r.offsetHeight<=ee&&(x=n.bottom),G+r.offsetWidth>Me&&(G=Me-r.offsetWidth)}r.style.top=x+"px",r.style.left=r.style.right="",g=="right"?(G=v.sizer.clientWidth-r.offsetWidth,r.style.right="0px"):(g=="left"?G=0:g=="middle"&&(G=(v.sizer.clientWidth-r.offsetWidth)/2),r.style.left=G+"px"),s&&wa(this,{left:G,top:x,right:G+r.offsetWidth,bottom:x+r.offsetHeight})},triggerOnKeyDown:Fi(Zs),triggerOnKeyPress:Fi($s),triggerOnKeyUp:qs,triggerOnMouseDown:Fi(el),execCommand:function(n){if(da.hasOwnProperty(n))return da[n].call(null,this)},triggerElectric:Fi(function(n){sl(this,n)}),findPosH:function(n,r,s,u){var g=1;r<0&&(g=-1,r=-r);for(var v=o(this.doc,n),x=0;x<r&&!(v=fs(this.doc,v,g,s,u),v.hitSide);++x);return v},moveH:Fi(function(n,r){var s=this;this.extendSelectionsBy(function(u){return s.display.shift||s.doc.extend||u.empty()?fs(s.doc,u.head,n,r,s.options.rtlMoveVisually):n<0?u.from():u.to()},Je)}),deleteH:Fi(function(n,r){var s=this.doc.sel,u=this.doc;s.somethingSelected()?u.replaceSelection("",null,"+delete"):jo(this,function(g){var v=fs(u,g.head,n,r,!1);return n<0?{from:v,to:g.head}:{from:g.head,to:v}})}),findPosV:function(n,r,s,u){var g=1,v=u;r<0&&(g=-1,r=-r);for(var x=o(this.doc,n),G=0;G<r;++G){var ee=xn(this,x,"div");if(v==null?v=ee.left:ee.left=v,x=dl(this,ee,g,s),x.hitSide)break}return x},moveV:Fi(function(n,r){var s=this,u=this.doc,g=[],v=!this.display.shift&&!u.extend&&u.sel.somethingSelected();if(u.extendSelectionsBy(function(G){if(v)return n<0?G.from():G.to();var ee=xn(s,G.head,"div");G.goalColumn!=null&&(ee.left=G.goalColumn),g.push(ee.left);var Me=dl(s,ee,n,r);return r=="page"&&G==u.sel.primary()&&Xo(s,ti(s,Me,"div").top-ee.top),Me},Je),g.length)for(var x=0;x<u.sel.ranges.length;x++)u.sel.ranges[x].goalColumn=g[x]}),findWordAt:function(n){var r=this.doc,s=It(r,n.line).text,u=n.ch,g=n.ch;if(s){var v=this.getHelper(n,"wordChars");(n.sticky=="before"||g==s.length)&&u?--u:++g;for(var x=s.charAt(u),G=Pe(x,v)?function(ee){return Pe(ee,v)}:/\s/.test(x)?function(ee){return/\s/.test(ee)}:function(ee){return!/\s/.test(ee)&&!Pe(ee)};u>0&&G(s.charAt(u-1));)--u;for(;g<s.length&&G(s.charAt(g));)++g}return new Wn(Ne(n.line,u),Ne(n.line,g))},toggleOverwrite:function(n){if(n!=null&&n==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?we(this.display.cursorDiv,"CodeMirror-overwrite"):Oe(this.display.cursorDiv,"CodeMirror-overwrite"),Fe(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==ce()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Fi(function(n,r){qr(this,n,r)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-pe(this)-this.display.barHeight,width:n.scrollWidth-pe(this)-this.display.barWidth,clientHeight:E(this),clientWidth:H(this)}},scrollIntoView:Fi(function(n,r){n==null?(n={from:this.doc.sel.primary().head,to:null},r==null&&(r=this.options.cursorScrollMargin)):typeof n=="number"?n={from:Ne(n,0),to:null}:n.from==null&&(n={from:n,to:null}),n.to||(n.to=n.from),n.margin=r||0,n.from.line!=null?Xa(this,n):co(this,n.from,n.to,n.margin)}),setSize:Fi(function(n,r){var s=this,u=function(v){return typeof v=="number"||/^\d+$/.test(String(v))?v+"px":v};n!=null&&(this.display.wrapper.style.width=u(n)),r!=null&&(this.display.wrapper.style.height=u(r)),this.options.lineWrapping&&sn(this);var g=this.display.viewFrom;this.doc.iter(g,this.display.viewTo,function(v){if(v.widgets){for(var x=0;x<v.widgets.length;x++)if(v.widgets[x].noHScroll){oi(s,g,"widget");break}}++g}),this.curOp.forceUpdate=!0,Fe(this,"refresh",this)}),operation:function(n){return Xi(this,n)},startOperation:function(){return Lr(this)},endOperation:function(){return Ur(this)},refresh:Fi(function(){var n=this.display.cachedTextHeight;Xn(this),this.curOp.forceUpdate=!0,cn(this),qr(this,this.doc.scrollLeft,this.doc.scrollTop),Mo(this.display),(n==null||Math.abs(n-mi(this.display))>.5||this.options.lineWrapping)&&Ji(this),Fe(this,"refresh",this)}),swapDoc:Fi(function(n){var r=this.doc;return r.cm=null,this.state.selectingText&&this.state.selectingText(),vs(this,n),cn(this),this.display.input.reset(),qr(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,pi(this,"swapDoc",this,r),r}),phrase:function(n){var r=this.options.phrases;return r&&Object.prototype.hasOwnProperty.call(r,n)?r[n]:n},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},oe(e),e.registerHelper=function(n,r,s){i.hasOwnProperty(n)||(i[n]=e[n]={_global:[]}),i[n][r]=s},e.registerGlobalHelper=function(n,r,s,u){e.registerHelper(n,r,u),i[n]._global.push({pred:s,val:u})}}function fs(e,t,i,n,r){var s=t,u=i,g=It(e,t.line),v=r&&e.direction=="rtl"?-i:i;function x(){var Pt=t.line+v;return Pt<e.first||Pt>=e.first+e.size?!1:(t=new Ne(Pt,t.ch,t.sticky),g=It(e,Pt))}function G(Pt){var wt;if(n=="codepoint"){var Ut=g.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(Ut)?wt=null:wt=new Ne(t.line,Math.max(0,Math.min(g.text.length,t.ch+i*(Ut>=55296&&Ut<56320?2:1))),-i)}else r?wt=Nl(e.cm,g,t,i):wt=as(g,t,i);if(wt==null)if(!Pt&&x())t=ss(r,e.cm,g,t.line,v);else return!1;else t=wt;return!0}if(n=="char"||n=="codepoint")G();else if(n=="column")G(!0);else if(n=="word"||n=="group")for(var ee=null,Me=n=="group",Se=e.cm&&e.cm.getHelper(t,"wordChars"),ze=!0;!(i<0&&!G(!ze));ze=!1){var qe=g.text.charAt(t.ch)||`
`,dt=Pe(qe,Se)?"w":Me&&qe==`
`?"n":!Me||/\s/.test(qe)?null:"p";if(Me&&!ze&&!dt&&(dt="s"),ee&&ee!=dt){i<0&&(i=1,G(),t.sticky="after");break}if(dt&&(ee=dt),i>0&&!G(!ze))break}var xt=Pa(e,t,s,u,!0);return Yt(s,xt)&&(xt.hitSide=!0),xt}function dl(e,t,i,n){var r=e.doc,s=t.left,u;if(n=="page"){var g=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),v=Math.max(g-.5*mi(e.display),3);u=(i>0?t.bottom:t.top)+i*v}else n=="line"&&(u=i>0?t.bottom+3:t.top-3);for(var x;!(x=An(e,s,u),!x.outside);){if(i<0?u<=0:u>=r.height){x.hitSide=!0;break}u+=i*5}return x}var Yn=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new je,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Yn.prototype.init=function(e){var t=this,i=this,n=i.cm,r=i.div=e.lineDiv;ul(r,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function s(g){for(var v=g.target;v;v=v.parentNode){if(v==r)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(v.className))break}return!1}Le(r,"paste",function(g){if(!s(g)||Ze(n,g)||al(g,n))return;Y<=11&&setTimeout(Ci(n,function(){return t.updateFromDOM()}),20)}),Le(r,"compositionstart",function(g){t.composing={data:g.data,done:!1}}),Le(r,"compositionupdate",function(g){t.composing||(t.composing={data:g.data,done:!1})}),Le(r,"compositionend",function(g){t.composing&&(g.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Le(r,"touchstart",function(){return i.forceCompositionEnd()}),Le(r,"input",function(){t.composing||t.readFromDOMSoon()});function u(g){if(!s(g)||Ze(n,g))return;if(n.somethingSelected())Wa({lineWise:!1,text:n.getSelections()}),g.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var v=ll(n);Wa({lineWise:!0,text:v.text}),g.type=="cut"&&n.operation(function(){n.setSelections(v.ranges,0,tt),n.replaceSelection("",null,"cut")})}else return;if(g.clipboardData){g.clipboardData.clearData();var x=Ar.text.join(`
`);if(g.clipboardData.setData("Text",x),g.clipboardData.getData("Text")==x){g.preventDefault();return}}var G=cl(),ee=G.firstChild;n.display.lineSpace.insertBefore(G,n.display.lineSpace.firstChild),ee.value=Ar.text.join(`
`);var Me=document.activeElement;De(ee),setTimeout(function(){n.display.lineSpace.removeChild(G),Me.focus(),Me==r&&i.showPrimarySelection()},50)}Le(r,"copy",u),Le(r,"cut",u)},Yn.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Yn.prototype.prepareSelection=function(){var e=vr(this.cm,!1);return e.focus=document.activeElement==this.div,e},Yn.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Yn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Yn.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),n=i.from(),r=i.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||r.line<t.display.viewFrom){e.removeAllRanges();return}var s=za(t,e.anchorNode,e.anchorOffset),u=za(t,e.focusNode,e.focusOffset);if(s&&!s.bad&&u&&!u.bad&&pt(Un(s,u),n)==0&&pt(Pn(s,u),r)==0)return;var g=t.display.view,v=n.line>=t.display.viewFrom&&hl(t,n)||{node:g[0].measure.map[2],offset:0},x=r.line<t.display.viewTo&&hl(t,r);if(!x){var G=g[g.length-1].measure,ee=G.maps?G.maps[G.maps.length-1]:G.map;x={node:ee[ee.length-1],offset:ee[ee.length-2]-ee[ee.length-3]}}if(!v||!x){e.removeAllRanges();return}var Me=e.rangeCount&&e.getRangeAt(0),Se;try{Se=fe(v.node,v.offset,x.offset,x.node)}catch(ze){}Se&&(!de&&t.state.focused?(e.collapse(v.node,v.offset),Se.collapsed||(e.removeAllRanges(),e.addRange(Se))):(e.removeAllRanges(),e.addRange(Se)),Me&&e.anchorNode==null?e.addRange(Me):de&&this.startGracePeriod()),this.rememberSelection()},Yn.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)},Yn.prototype.showMultipleSelections=function(e){ue(this.cm.display.cursorDiv,e.cursors),ue(this.cm.display.selectionDiv,e.selection)},Yn.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Yn.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return V(this.div,t)},Yn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Yn.prototype.blur=function(){this.div.blur()},Yn.prototype.getField=function(){return this.div},Yn.prototype.supportsTouch=function(){return!0},Yn.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Xi(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)},Yn.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Yn.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var e=this.getSelection(),t=this.cm;if(m&&y&&this.cm.display.gutterSpecs.length&&eu(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var i=za(t,e.anchorNode,e.anchorOffset),n=za(t,e.focusNode,e.focusOffset);i&&n&&Xi(t,function(){Vi(t.doc,xr(i,n),tt),(i.bad||n.bad)&&(t.curOp.selectionChanged=!0)})},Yn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,i=e.doc.sel.primary(),n=i.from(),r=i.to();if(n.ch==0&&n.line>e.firstLine()&&(n=Ne(n.line-1,It(e.doc,n.line-1).length)),r.ch==It(e.doc,r.line).text.length&&r.line<e.lastLine()&&(r=Ne(r.line+1,0)),n.line<t.viewFrom||r.line>t.viewTo-1)return!1;var s,u,g;n.line==t.viewFrom||(s=qn(e,n.line))==0?(u=Vt(t.view[0].line),g=t.view[0].node):(u=Vt(t.view[s].line),g=t.view[s-1].node.nextSibling);var v=qn(e,r.line),x,G;if(v==t.view.length-1?(x=t.viewTo-1,G=t.lineDiv.lastChild):(x=Vt(t.view[v+1].line)-1,G=t.view[v+1].node.previousSibling),!g)return!1;for(var ee=e.doc.splitLines(tu(e,g,G,u,x)),Me=Mi(e.doc,Ne(u,0),Ne(x,It(e.doc,x).text.length));ee.length>1&&Me.length>1;)if(it(ee)==it(Me))ee.pop(),Me.pop(),x--;else if(ee[0]==Me[0])ee.shift(),Me.shift(),u++;else break;for(var Se=0,ze=0,qe=ee[0],dt=Me[0],xt=Math.min(qe.length,dt.length);Se<xt&&qe.charCodeAt(Se)==dt.charCodeAt(Se);)++Se;for(var Pt=it(ee),wt=it(Me),Ut=Math.min(Pt.length-(ee.length==1?Se:0),wt.length-(Me.length==1?Se:0));ze<Ut&&Pt.charCodeAt(Pt.length-ze-1)==wt.charCodeAt(wt.length-ze-1);)++ze;if(ee.length==1&&Me.length==1&&u==n.line)for(;Se&&Se>n.ch&&Pt.charCodeAt(Pt.length-ze-1)==wt.charCodeAt(wt.length-ze-1);)Se--,ze++;ee[ee.length-1]=Pt.slice(0,Pt.length-ze).replace(/^\u200b+/,""),ee[0]=ee[0].slice(Se).replace(/\u200b+$/,"");var en=Ne(u,Se),Xt=Ne(x,Me.length?it(Me).length-ze:0);if(ee.length>1||ee[0]||pt(en,Xt))return Io(e.doc,ee,en,Xt,"+input"),!0},Yn.prototype.ensurePolled=function(){this.forceCompositionEnd()},Yn.prototype.reset=function(){this.forceCompositionEnd()},Yn.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Yn.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)},Yn.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Xi(this.cm,function(){return Xn(e.cm)})},Yn.prototype.setUneditable=function(e){e.contentEditable="false"},Yn.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||Ci(this.cm,hs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Yn.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Yn.prototype.onContextMenu=function(){},Yn.prototype.resetPosition=function(){},Yn.prototype.needsContentAttribute=!0;function hl(e,t){var i=be(e,t.line);if(!i||i.hidden)return null;var n=It(e.doc,t.line),r=w(i,n,t.line),s=mt(n,e.doc.direction),u="left";if(s){var g=$e(s,t.ch);u=g%2?"right":"left"}var v=at(r.map,t.ch,u);return v.offset=v.collapse=="right"?v.end:v.start,v}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function _o(e,t){return t&&(e.bad=!0),e}function tu(e,t,i,n,r){var s="",u=!1,g=e.doc.lineSeparator(),v=!1;function x(Se){return function(ze){return ze.id==Se}}function G(){u&&(s+=g,v&&(s+=g),u=v=!1)}function ee(Se){Se&&(G(),s+=Se)}function Me(Se){if(Se.nodeType==1){var ze=Se.getAttribute("cm-text");if(ze){ee(ze);return}var qe=Se.getAttribute("cm-marker"),dt;if(qe){var xt=e.findMarks(Ne(n,0),Ne(r+1,0),x(+qe));xt.length&&(dt=xt[0].find(0))&&ee(Mi(e.doc,dt.from,dt.to).join(g));return}if(Se.getAttribute("contenteditable")=="false")return;var Pt=/^(pre|div|p|li|table|br)$/i.test(Se.nodeName);if(!/^br$/i.test(Se.nodeName)&&Se.textContent.length==0)return;Pt&&G();for(var wt=0;wt<Se.childNodes.length;wt++)Me(Se.childNodes[wt]);/^(pre|p)$/i.test(Se.nodeName)&&(v=!0),Pt&&(u=!0)}else Se.nodeType==3&&ee(Se.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Me(t),t==i);)t=t.nextSibling,v=!1;return s}function za(e,t,i){var n;if(t==e.display.lineDiv){if(n=e.display.lineDiv.childNodes[i],!n)return _o(e.clipPos(Ne(e.display.viewTo-1)),!0);t=null,i=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var r=0;r<e.display.view.length;r++){var s=e.display.view[r];if(s.node==n)return nu(s,t,i)}}function nu(e,t,i){var n=e.text.firstChild,r=!1;if(!t||!V(n,t))return _o(Ne(Vt(e.line),0),!0);if(t==n&&(r=!0,t=n.childNodes[i],i=0,!t)){var s=e.rest?it(e.rest):e.line;return _o(Ne(Vt(s),s.text.length),r)}var u=t.nodeType==3?t:null,g=t;for(!u&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(u=t.firstChild,i&&(i=u.nodeValue.length));g.parentNode!=n;)g=g.parentNode;var v=e.measure,x=v.maps;function G(dt,xt,Pt){for(var wt=-1;wt<(x?x.length:0);wt++)for(var Ut=wt<0?v.map:x[wt],en=0;en<Ut.length;en+=3){var Xt=Ut[en+2];if(Xt==dt||Xt==xt){var yn=Vt(wt<0?e.line:e.rest[wt]),$n=Ut[en]+Pt;return(Pt<0||Xt!=dt)&&($n=Ut[en+(Pt?1:0)]),Ne(yn,$n)}}}var ee=G(u,g,i);if(ee)return _o(ee,r);for(var Me=g.nextSibling,Se=u?u.nodeValue.length-i:0;Me;Me=Me.nextSibling){if(ee=G(Me,Me.firstChild,0),ee)return _o(Ne(ee.line,ee.ch-Se),r);Se+=Me.textContent.length}for(var ze=g.previousSibling,qe=i;ze;ze=ze.previousSibling){if(ee=G(ze,ze.firstChild,-1),ee)return _o(Ne(ee.line,ee.ch+qe),r);qe+=ze.textContent.length}}var xi=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new je,this.hasSelection=!1,this.composing=null};xi.prototype.init=function(e){var t=this,i=this,n=this.cm;this.createField(e);var r=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),T&&(r.style.width="0px"),Le(r,"input",function(){j&&Y>=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),Le(r,"paste",function(u){if(Ze(n,u)||al(u,n))return;n.state.pasteIncoming=+new Date,i.fastPoll()});function s(u){if(Ze(n,u))return;if(n.somethingSelected())Wa({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var g=ll(n);Wa({lineWise:!0,text:g.text}),u.type=="cut"?n.setSelections(g.ranges,null,tt):(i.prevInput="",r.value=g.text.join(`
`),De(r))}else return;u.type=="cut"&&(n.state.cutIncoming=+new Date)}Le(r,"cut",s),Le(r,"copy",s),Le(e.scroller,"paste",function(u){if(Cr(e,u)||Ze(n,u))return;if(!r.dispatchEvent){n.state.pasteIncoming=+new Date,i.focus();return}var g=new Event("paste");g.clipboardData=u.clipboardData,r.dispatchEvent(g)}),Le(e.lineSpace,"selectstart",function(u){Cr(e,u)||M(u)}),Le(r,"compositionstart",function(){var u=n.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:u,range:n.markText(u,n.getCursor("to"),{className:"CodeMirror-composing"})}}),Le(r,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},xi.prototype.createField=function(e){this.wrapper=cl(),this.textarea=this.wrapper.firstChild},xi.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},xi.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,n=vr(e);if(e.options.moveInputWithCursor){var r=xn(e,i.sel.primary().head,"div"),s=t.wrapper.getBoundingClientRect(),u=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+u.top-s.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+u.left-s.left))}return n},xi.prototype.showSelection=function(e){var t=this.cm,i=t.display;ue(i.cursorDiv,e.cursors),ue(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},xi.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&De(this.textarea),j&&Y>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",j&&Y>=9&&(this.hasSelection=null))},xi.prototype.getField=function(){return this.textarea},xi.prototype.supportsTouch=function(){return!1},xi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!f||ce()!=this.textarea))try{this.textarea.focus()}catch(e){}},xi.prototype.blur=function(){this.textarea.blur()},xi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},xi.prototype.receivedFocus=function(){this.slowPoll()},xi.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()})},xi.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},xi.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||ut(i)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var r=i.value;if(r==n&&!t.somethingSelected())return!1;if(j&&Y>=9&&this.hasSelection===r||S&&/[\uf700-\uf7ff]/.test(r))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var s=r.charCodeAt(0);if(s==8203&&!n&&(n="\u200B"),s==8666)return this.reset(),this.cm.execCommand("undo")}for(var u=0,g=Math.min(n.length,r.length);u<g&&n.charCodeAt(u)==r.charCodeAt(u);)++u;return Xi(t,function(){hs(t,r.slice(u),n.length-u,null,e.composing?"*compose":null),r.length>1e3||r.indexOf(`
`)>-1?i.value=e.prevInput="":e.prevInput=r,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},xi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},xi.prototype.onKeyPress=function(){j&&Y>=9&&(this.hasSelection=null),this.fastPoll()},xi.prototype.onContextMenu=function(e){var t=this,i=t.cm,n=i.display,r=t.textarea;t.contextMenuPending&&t.contextMenuPending();var s=Ri(i,e),u=n.scroller.scrollTop;if(!s||C)return;var g=i.options.resetSelectionOnContextMenu;g&&i.doc.sel.contains(s)==-1&&Ci(i,Vi)(i.doc,xr(s),tt);var v=r.style.cssText,x=t.wrapper.style.cssText,G=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",r.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(e.clientY-G.top-5)+"px; left: "+(e.clientX-G.left-5)+`px;
z-index: 1000; background: `+(j?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ee;W&&(ee=window.scrollY),n.input.focus(),W&&window.scrollTo(null,ee),n.input.reset(),i.somethingSelected()||(r.value=t.prevInput=" "),t.contextMenuPending=Se,n.selForContextMenu=i.doc.sel,clearTimeout(n.detectingSelectAll);function Me(){if(r.selectionStart!=null){var qe=i.somethingSelected(),dt="\u200B"+(qe?r.value:"");r.value="\u21DA",r.value=dt,t.prevInput=qe?"":"\u200B",r.selectionStart=1,r.selectionEnd=dt.length,n.selForContextMenu=i.doc.sel}}function Se(){if(t.contextMenuPending!=Se)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=x,r.style.cssText=v,j&&Y<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=u),r.selectionStart!=null){(!j||j&&Y<9)&&Me();var qe=0,dt=function(){n.selForContextMenu==i.doc.sel&&r.selectionStart==0&&r.selectionEnd>0&&t.prevInput=="\u200B"?Ci(i,Rs)(i):qe++<10?n.detectingSelectAll=setTimeout(dt,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(dt,200)}}if(j&&Y>=9&&Me(),Ie){Z(e);var ze=function(){yt(window,"mouseup",ze),setTimeout(Se,20)};Le(window,"mouseup",ze)}else setTimeout(Se,50)},xi.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},xi.prototype.setUneditable=function(){},xi.prototype.needsContentAttribute=!1;function iu(e,t){if(t=t?b(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=ce();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function n(){e.value=g.getValue()}var r;if(e.form&&(Le(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var s=e.form;r=s.submit;try{var u=s.submit=function(){n(),s.submit=r,s.submit(),s.submit=u}}catch(v){}}t.finishInit=function(v){v.save=n,v.getTextArea=function(){return e},v.toTextArea=function(){v.toTextArea=isNaN,n(),e.parentNode.removeChild(v.getWrapperElement()),e.style.display="",e.form&&(yt(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=r))}},e.style.display="none";var g=ai(function(v){return e.parentNode.insertBefore(v,e.nextSibling)},t);return g}function ru(e){e.off=yt,e.on=Le,e.wheelEventPixels=$o,e.Doc=er,e.splitLines=Bt,e.countColumn=ye,e.findColumn=Ye,e.isWordChar=Ae,e.Pass=St,e.signal=Fe,e.Line=jr,e.changeEnd=wr,e.scrollbarModel=Yo,e.Pos=Ne,e.cmpPos=pt,e.modes=mn,e.mimeModes=Kt,e.resolveMode=Ht,e.getMode=Wt,e.modeExtensions=At,e.extendMode=Ft,e.copyState=Sn,e.startState=zn,e.innerMode=Bn,e.commands=da,e.keyMap=zr,e.keyName=Ks,e.isModifierKey=Gs,e.lookupKey=Po,e.normalizeKeyMap=Il,e.StringStream=nn,e.SharedTextMarker=la,e.TextMarker=io,e.LineWidget=sa,e.e_preventDefault=M,e.e_stopPropagation=D,e.e_stop=Z,e.addClass=we,e.contains=V,e.rmClass=Oe,e.keyNames=ro}Xl(ai),$l(ai);var ou="iter insert remove copy getEditor constructor".split(" ");for(var Ha in er.prototype)er.prototype.hasOwnProperty(Ha)&&_e(ou,Ha)<0&&(ai.prototype[Ha]=function(e){return function(){return e.apply(this.doc,arguments)}}(er.prototype[Ha]));return oe(er),ai.inputStyles={textarea:xi,contenteditable:Yn},ai.defineMode=function(e){!ai.defaults.mode&&e!="null"&&(ai.defaults.mode=e),si.apply(this,arguments)},ai.defineMIME=li,ai.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ai.defineMIME("text/plain","null"),ai.defineExtension=function(e,t){ai.prototype[e]=t},ai.defineDocExtension=function(e,t){er.prototype[e]=t},ai.fromTextArea=iu,ru(ai),ai.version="5.58.2",ai})},W6BS:function(Be,Q){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUg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ypadW1a9dKqRgODg7Y399nMhmTZZm5ecIxUTpgkR4yiQ+IFhPiLCeOZpSFB3GTXDdwdIv17hmarR4//MGT3PGL+1z/bo/em6/S/84pmg89zwPrj/COd55mMDkirNWwkx3G0QsUB2/Ba57jjq0OZTxGOS46ryYJ82jApetPcTDYJ6yt4tshtVoIuUMz7NI/HqJ1SthscMfOHZy9+y62trbwPO/WbuHf3z7TmvlcLDVmMBgwHIwYjSbMJ3Nm0ZxI5p3JjHk6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+2eiA65OYdrjOPace5NzOw/hO10zW5ZDm27VDUxdLnMtwOctSk+NqtYDNzU3W1tfpdbvm2pc6bgE0u7IvsRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},Xsq0:function(Be,Q,l){Be.exports=l.p+"static/mainbanner.0a951716.jpg"},Y1PL:function(Be,Q,l){"use strict";l.r(Q),l.d(Q,"ResizableTextArea",function(){return _e});var U=l("wx14"),ve=l("1OyB"),de=l("vuIU"),J=l("Ji7U"),k=l("LK+K"),me=l("q1tI"),j=l("VTBJ"),Y=l("rePB"),W=l("Zm9Q"),_=l("Kwbf"),y=l("c+Xe"),C=l("m+aA"),R=l("bdgK"),A=new Map;function O(tt){tt.forEach(function(nt){var Je,Ye=nt.target;(Je=A.get(Ye))===null||Je===void 0||Je.forEach(function(Ee){return Ee(Ye)})})}var T=new R.default(O),m=null,f=null;function S(tt,nt){A.has(tt)||(A.set(tt,new Set),T.observe(tt)),A.get(tt).add(nt)}function L(tt,nt){A.has(tt)&&(A.get(tt).delete(nt),A.get(tt).size||(T.unobserve(tt),A.delete(tt)))}var le=function(tt){Object(J.a)(Je,tt);var nt=Object(k.a)(Je);function Je(){return Object(ve.a)(this,Je),nt.apply(this,arguments)}return Object(de.a)(Je,[{key:"render",value:function(){return this.props.children}}]),Je}(me.Component),he=me.createContext(null);function ge(tt){var nt=tt.children,Je=tt.onBatchResize,Ye=me.useRef(0),Ee=me.useRef([]),F=me.useContext(he),it=me.useCallback(function(Mt,Tt,Ct){Ye.current+=1;var q=Ye.current;Ee.current.push({size:Mt,element:Tt,data:Ct}),Promise.resolve().then(function(){q===Ye.current&&(Je==null||Je(Ee.current),Ee.current=[])}),F==null||F(Mt,Tt,Ct)},[Je,F]);return me.createElement(he.Provider,{value:it},nt)}function Ie(tt){var nt=tt.children,Je=tt.disabled,Ye=me.useRef(null),Ee=me.useRef(null),F=me.useContext(he),it=me.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Mt=me.isValidElement(nt)&&Object(y.c)(nt),Tt=Mt?nt.ref:null,Ct=me.useMemo(function(){return Object(y.a)(Tt,Ye)},[Tt,Ye]),q=me.useRef(tt);q.current=tt;var $=me.useCallback(function(Ae){var Pe=q.current,He=Pe.onResize,Ue=Pe.data,Qe=Ae.getBoundingClientRect(),et=Qe.width,Dt=Qe.height,ct=Ae.offsetWidth,ot=Ae.offsetHeight,$e=Math.floor(et),Lt=Math.floor(Dt);if(it.current.width!==$e||it.current.height!==Lt||it.current.offsetWidth!==ct||it.current.offsetHeight!==ot){var mt={width:$e,height:Lt,offsetWidth:ct,offsetHeight:ot};it.current=mt;var Ot=ct===Math.round(et)?et:ct,Le=ot===Math.round(Dt)?Dt:ot,ht=Object(j.a)(Object(j.a)({},mt),{},{offsetWidth:Ot,offsetHeight:Le});F==null||F(ht,Ae,Ue),He&&Promise.resolve().then(function(){He(ht,Ae)})}},[]);return me.useEffect(function(){var Ae=Object(C.a)(Ye.current)||Object(C.a)(Ee.current);return Ae&&!Je&&S(Ae,$),function(){return L(Ae,$)}},[Ye.current,Je]),me.createElement(le,{ref:Ee},Mt?me.cloneElement(nt,{ref:Ct}):nt)}var xe="rc-observer-key";function Oe(tt){var nt=tt.children,Je=Object(W.a)(nt);return Je.map(function(Ye,Ee){var F=(Ye==null?void 0:Ye.key)||"".concat(xe,"-").concat(Ee);return me.createElement(Ie,Object(U.a)({},tt,{key:F}),Ye)})}Oe.Collection=ge;var Ge=Oe,ue=l("bT9E"),P=l("TSYQ"),Re=l.n(P),fe=`
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
`,V=["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"],ce={},we;function ie(tt){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Je=tt.getAttribute("id")||tt.getAttribute("data-reactid")||tt.getAttribute("name");if(nt&&ce[Je])return ce[Je];var Ye=window.getComputedStyle(tt),Ee=Ye.getPropertyValue("box-sizing")||Ye.getPropertyValue("-moz-box-sizing")||Ye.getPropertyValue("-webkit-box-sizing"),F=parseFloat(Ye.getPropertyValue("padding-bottom"))+parseFloat(Ye.getPropertyValue("padding-top")),it=parseFloat(Ye.getPropertyValue("border-bottom-width"))+parseFloat(Ye.getPropertyValue("border-top-width")),Mt=V.map(function(Ct){return"".concat(Ct,":").concat(Ye.getPropertyValue(Ct))}).join(";"),Tt={sizingStyle:Mt,paddingSize:F,borderSize:it,boxSizing:Ee};return nt&&Je&&(ce[Je]=Tt),Tt}function De(tt){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;we||(we=document.createElement("textarea"),we.setAttribute("tab-index","-1"),we.setAttribute("aria-hidden","true"),document.body.appendChild(we)),tt.getAttribute("wrap")?we.setAttribute("wrap",tt.getAttribute("wrap")):we.removeAttribute("wrap");var Ee=ie(tt,nt),F=Ee.paddingSize,it=Ee.borderSize,Mt=Ee.boxSizing,Tt=Ee.sizingStyle;we.setAttribute("style","".concat(Tt,";").concat(fe)),we.value=tt.value||tt.placeholder||"";var Ct=Number.MIN_SAFE_INTEGER,q=Number.MAX_SAFE_INTEGER,$=we.scrollHeight,Ae;if(Mt==="border-box"?$+=it:Mt==="content-box"&&($-=F),Je!==null||Ye!==null){we.value=" ";var Pe=we.scrollHeight-F;Je!==null&&(Ct=Pe*Je,Mt==="border-box"&&(Ct=Ct+F+it),$=Math.max(Ct,$)),Ye!==null&&(q=Pe*Ye,Mt==="border-box"&&(q=q+F+it),Ae=$>q?"":"hidden",$=Math.min(q,$))}return{height:$,minHeight:Ct,maxHeight:q,overflowY:Ae,resize:"none"}}var I=l("Gytx"),b=l.n(I),ye;(function(tt){tt[tt.NONE=0]="NONE",tt[tt.RESIZING=1]="RESIZING",tt[tt.RESIZED=2]="RESIZED"})(ye||(ye={}));var je=function(tt){Object(J.a)(Je,tt);var nt=Object(k.a)(Je);function Je(Ye){var Ee;return Object(ve.a)(this,Je),Ee=nt.call(this,Ye),Ee.nextFrameActionId=void 0,Ee.resizeFrameId=void 0,Ee.textArea=void 0,Ee.saveTextArea=function(F){Ee.textArea=F},Ee.handleResize=function(F){var it=Ee.state.resizeStatus,Mt=Ee.props,Tt=Mt.autoSize,Ct=Mt.onResize;if(it!==ye.NONE)return;typeof Ct=="function"&&Ct(F),Tt&&Ee.resizeOnNextFrame()},Ee.resizeOnNextFrame=function(){cancelAnimationFrame(Ee.nextFrameActionId),Ee.nextFrameActionId=requestAnimationFrame(Ee.resizeTextarea)},Ee.resizeTextarea=function(){var F=Ee.props.autoSize;if(!F||!Ee.textArea)return;var it=F.minRows,Mt=F.maxRows,Tt=De(Ee.textArea,!1,it,Mt);Ee.setState({textareaStyles:Tt,resizeStatus:ye.RESIZING},function(){cancelAnimationFrame(Ee.resizeFrameId),Ee.resizeFrameId=requestAnimationFrame(function(){Ee.setState({resizeStatus:ye.RESIZED},function(){Ee.resizeFrameId=requestAnimationFrame(function(){Ee.setState({resizeStatus:ye.NONE}),Ee.fixFirefoxAutoScroll()})})})})},Ee.renderTextArea=function(){var F=Ee.props,it=F.prefixCls,Mt=it===void 0?"rc-textarea":it,Tt=F.autoSize,Ct=F.onResize,q=F.className,$=F.disabled,Ae=Ee.state,Pe=Ae.textareaStyles,He=Ae.resizeStatus,Ue=Object(ue.a)(Ee.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Qe=Re()(Mt,q,Object(Y.a)({},"".concat(Mt,"-disabled"),$));"value"in Ue&&(Ue.value=Ue.value||"");var et=Object(j.a)(Object(j.a)(Object(j.a)({},Ee.props.style),Pe),He===ye.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return me.createElement(Ge,{onResize:Ee.handleResize,disabled:!(Tt||Ct)},me.createElement("textarea",Object(U.a)({},Ue,{className:Qe,style:et,ref:Ee.saveTextArea})))},Ee.state={textareaStyles:{},resizeStatus:ye.NONE},Ee}return Object(de.a)(Je,[{key:"componentDidUpdate",value:function(Ee){(Ee.value!==this.props.value||!b()(Ee.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var Ee=this.textArea.selectionStart,F=this.textArea.selectionEnd;this.textArea.setSelectionRange(Ee,F)}}catch(it){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Je}(me.Component),_e=je,st=function(tt){Object(J.a)(Je,tt);var nt=Object(k.a)(Je);function Je(Ye){var Ee;Object(ve.a)(this,Je),Ee=nt.call(this,Ye),Ee.resizableTextArea=void 0,Ee.focus=function(){Ee.resizableTextArea.textArea.focus()},Ee.saveTextArea=function(it){Ee.resizableTextArea=it},Ee.handleChange=function(it){var Mt=Ee.props.onChange;Ee.setValue(it.target.value,function(){Ee.resizableTextArea.resizeTextarea()}),Mt&&Mt(it)},Ee.handleKeyDown=function(it){var Mt=Ee.props,Tt=Mt.onPressEnter,Ct=Mt.onKeyDown;it.keyCode===13&&Tt&&Tt(it),Ct&&Ct(it)};var F=typeof Ye.value=="undefined"||Ye.value===null?Ye.defaultValue:Ye.value;return Ee.state={value:F},Ee}return Object(de.a)(Je,[{key:"setValue",value:function(Ee,F){"value"in this.props||this.setState({value:Ee},F)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return me.createElement(_e,Object(U.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(Ee){return"value"in Ee?{value:Ee.value}:null}}]),Je}(me.Component),St=Q.default=st},ZW9T:function(Be,Q,l){"use strict";l.d(Q,"a",function(){return Ge});var U=l("k1fw"),ve=l("oBTY"),de=l("9og8"),J=l("miYZ"),k=l("tsqr"),me=l("rAM+"),j=l("tJVT"),Y=l("PpiC"),W=l("WmNS"),_=l.n(W),y=l("q1tI"),C=l.n(y),R=l("bdgK");function A(ue,P,Re,fe,V){var ce=P.getWordUntilPosition(Re),we={startLineNumber:Re.lineNumber,endLineNumber:Re.lineNumber,startColumn:ce.startColumn,endColumn:ce.endColumn},ie=fe.map(function(De){return{label:De,kind:ue.languages.CompletionItemKind.Keyword,insertText:De,insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:we}});return V.map(function(De){ie.push(Object(U.a)(Object(U.a)({},De),{},{range:we}))}),ie}var O=function(ue){var P={label:"ifelse",kind:ue.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},Re=["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"];ue.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(we,ie){var De=A(ue,we,ie,Re,[P]);return{suggestions:De}}});var fe=["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"];ue.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(we,ie){var De=[{label:"print",kind:ue.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(`
`),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet}],I=A(ue,we,ie,fe,De);return{suggestions:I}}});var V=["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"];ue.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(we,ie){var De=[P,{label:"main",kind:ue.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(`
`),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:ue.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(`
`),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet}],I=A(ue,we,ie,V,De);return{suggestions:I}}})},T="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",m=l("fjLI"),f=l("LvDl"),S=l("+ua5");function L(ue){return/^\d+$/.test(ue)?"".concat(ue,"px"):ue}function le(){}var he=!1,ge={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale"};function Ie(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=ue;if(Array.isArray(ue)){for(var Re=0;Re<ue.length;Re++){var fe=ge[ue[Re]];if(fe)return fe}return P[0]}return ge[P]||P}var xe=null,Oe=Q.b=function(ue){var P=ue.width,Re=P===void 0?"100%":P,fe=ue.height,V=fe===void 0?"100%":fe,ce=ue.value,we=ue.language,ie=we===void 0?"javascript":we,De=ue.style,I=De===void 0?{}:De,b=ue.options,ye=b===void 0?{}:b,je=ue.overrideServices,_e=je===void 0?{}:je,st=ue.theme,St=st===void 0?"vs-dark":st,tt=ue.onEditBlur,nt=ue.onSave,Je=ue.autoHeight,Ye=Je===void 0?!1:Je,Ee=ue.forbidCopy,F=Ee===void 0?!1:Ee,it=ue.onChange,Mt=it===void 0?le:it,Tt=ue.editorDidMount,Ct=Tt===void 0?le:Tt,q=ue.onFocus,$=q===void 0?le:q,Ae=ue.onBreakPoint,Pe=Ae===void 0?le:Ae,He=ue.breakPointValue,Ue=He===void 0?[]:He,Qe=ue.filename,et=Qe===void 0?"educoder.txt":Qe,Dt=ue.errorLine,ct=ue.errorContent,ot=ct===void 0?"":ct,$e=ue.highlightLine,Lt=ue.openBreakPoint,mt=Lt===void 0?!1:Lt,Ot=Object(Y.a)(ue,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint"]),Le=Object(y.useRef)(),ht=Object(y.useRef)({}),yt=Object(y.useRef)(),Fe=Object(y.useRef)(),Ze=Object(y.useRef)([]),se=Object(y.useRef)(!1),ne=Object(y.useRef)(),oe=Object(y.useState)(!1),M=Object(j.a)(oe,2),D=M[0],z=M[1];function Z(){var Wt;return Le.current&&(Wt=new R.default(function(At){var Ft=Object(me.a)(At),Sn;try{for(Ft.s();!(Sn=Ft.n()).done;){var Bn=Sn.value;(Bn.target.offsetHeight>0||Bn.target.offsetWidth>0)&&ht.current.instance.layout()}}catch(zn){Ft.e(zn)}finally{Ft.f()}}),Wt.observe(Le.current)),Wt}function Te(){k.b.warn({content:decodeURIComponent(T),key:"monaco-editor-tip"})}var Ce=function(){var At=ht.current.instance;if(ce!=null&&At&&D){var Ft=At.getModel();Ft&&ce!==Ft.getValue()&&(he=!0,Ft.setValue(ce),At.layout(),he=!1)}};Object(y.useEffect)(function(){try{var Wt,At=ht.current.instance;Fe.current&&clearTimeout(Fe.current),Fe.current=setTimeout(function(){Ce()},500),At==null||((Wt=At.updateOptions)===null||Wt===void 0)||Wt.call(At,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ce.split(/\r\n|\r|\n/g).length))+3,5)})}catch(Ft){debugger}},[ce,D,ht.current]),Object(y.useEffect)(function(){try{if(Dt&&ht.current&&ht.current.instance){var Wt=ht.current.instance;Wt.changeViewZones(function(Ft){var Sn=document.createElement("div");Sn.style.padding="10px 20px",Sn.style.width="calc(100% - 20px)",Sn.className="my-error-line-wrp",Sn.innerHTML=ot,Ft.addZone({afterLineNumber:Dt||11,heightInLines:3,domNode:Sn})});var At={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Wt.addOverlayWidget(At),Wt.revealPositionInCenter({lineNumber:20,column:1})}}catch(Ft){debugger}},[Dt,ht.current,D]),Object(y.useEffect)(function(){var Wt;if((Wt=ht.current)!==null&&Wt!==void 0&&Wt.instance&&D&&mt){var At=ht.current.instance,Ft=At.getModel();if(!Ft)return;var Sn=function(){var pt=[],Yt=[],an=Ft.getAllDecorations(),Pn=Object(me.a)(an),Un;try{for(Pn.s();!(Un=Pn.n()).done;){var d=Un.value;if(d.options.className==="highlighted-line"){var o;pt.push(d==null||((o=d.range)===null||o===void 0)?void 0:o.startLineNumber),Yt.push(d==null?void 0:d.id)}}}catch(c){Pn.e(c)}finally{Pn.f()}Ft.deltaDecorations(Yt,[]);var a=Ft.getLineCount();!!$e&&$e<=a&&(At.deltaDecorations([],[{range:new xe.Range($e,1,$e,Ft.getLineMaxColumn($e)),options:{isWholeLine:!0,className:"highlighted-line"}}]),At.revealLineInCenter($e))};Sn();var Bn=function(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Yt=[],an=[],Pn=Ft.getAllDecorations(),Un=Object(me.a)(Pn),d;try{for(Un.s();!(d=Un.n()).done;){var o=d.value;if(o.options.linesDecorationsClassName==="breakpoints"){var a;Yt.push(o==null||((a=o.range)===null||a===void 0)?void 0:a.startLineNumber),an.push(o==null?void 0:o.id)}}}catch(c){Un.e(c)}finally{Un.f()}if(pt)return{lines:Yt,ids:an};Pe(Yt)},zn=function(){var Ne=Object(de.a)(_.a.mark(function pt(Yt){var an;return _.a.wrap(function(Un){for(;;)switch(Un.prev=Un.next){case 0:return an={range:new xe.Range(Yt,1,Yt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}},Un.next=3,Ft.deltaDecorations([],[an]);case 3:Bn();case 4:case"end":return Un.stop()}},pt)}));return function(Yt){return Ne.apply(this,arguments)}}(),nn=function(){var Ne=Object(de.a)(_.a.mark(function pt(Yt){var an,Pn,Un,d,o;return _.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:an=[],Pn=At.getLineDecorations(Yt),Un=Object(me.a)(Pn);try{for(Un.s();!(d=Un.n()).done;)o=d.value,o.options.linesDecorationsClassName==="breakpoints"&&an.push(o.id)}catch(p){Un.e(p)}finally{Un.f()}return c.next=6,Ft.deltaDecorations(an,[]);case 6:Bn();case 7:case"end":return c.stop()}},pt)}));return function(Yt){return Ne.apply(this,arguments)}}(),It=function(pt){var Yt=At.getLineDecorations(pt),an=Object(me.a)(Yt),Pn;try{for(an.s();!(Pn=an.n()).done;){var Un=Pn.value;if(Un.options.linesDecorationsClassName==="breakpoints")return!0}}catch(d){an.e(d)}finally{an.f()}return!1};if(!Object(f.isEqual)(Ue,Bn(!0).lines)){Ft.deltaDecorations(Bn(!0).ids,[]);var Mi=Ue.map(function(Ne){return{range:new xe.Range(Ne,1,Ne,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints"}}});Ft.deltaDecorations([],Mi)}var wi=At.onDidChangeModelContent(function(Ne){var pt=At.getPosition();if(pt){var Yt=pt.lineNumber;Ft.getLineContent(Yt).trim()===""?nn(Yt):It(Yt)&&(nn(Yt),zn(Yt))}}),_n=At.onMouseDown(function(Ne){var pt,Yt,an;if(Ne.target.detail&&(pt=Ne.target)!==null&&pt!==void 0&&(Yt=pt.element)!==null&&Yt!==void 0&&(an=Yt.className)!==null&&an!==void 0&&an.includes("line-numbers")){var Pn=Ne.target.position.lineNumber;if(Ft.getLineContent(Pn).trim()==="")return;It(Pn)?nn(Pn):zn(Pn)}}),Vt=function(pt){var Yt={range:new xe.Range(pt,1,pt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ze.current=At.deltaDecorations(Ze.current,[Yt])},bn=function(){Ze.current=At.deltaDecorations(Ze.current,[])},rn=At.onMouseMove(function(Ne){var pt,Yt,an;if(bn(),Ne.target.detail&&(pt=Ne.target)!==null&&pt!==void 0&&(Yt=pt.element)!==null&&Yt!==void 0&&(an=Yt.className)!==null&&an!==void 0&&an.includes("line-numbers")){var Pn=Ne.target.position.lineNumber;if(Ft.getLineContent(Pn).trim()==="")return;Vt(Pn)}}),gn=At.onMouseLeave(function(){bn()});return function(){wi.dispose(),_n.dispose(),rn.dispose(),gn.dispose()}}},[ht.current,D,Ue,$e,mt]);function Ve(){var Wt=ht.current.instance;if(Wt){var At=Wt.getSelection(),Ft=ht.current.pastePos||{},Sn=new xe.Range(Ft.startLineNumber||At.endLineNumber,Ft.startColumn||At.endColumn,Ft.endLineNumber||At.endLineNumber,Ft.endColumn||At.endColumn);setTimeout(function(){Wt.executeEdits("",[{range:Sn,text:""}])},300)}}function vt(Wt){(window.navigator.platform.match("Mac")?Wt.metaKey:Wt.ctrlKey)&&Wt.keyCode==83&&(Wt.preventDefault(),nt())}var bt=function(){if(Ye&&ht.current.instance){var At=ht.current.instance.getContentHeight();li(At<V?V:At)}else li(V)};function ft(Wt){var At=document.createEvent("MouseEvents");At.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Wt.dispatchEvent(At)}var _t=function(At){var Ft=At.keyCode,Sn=At.ctrlKey,Bn=At.metaKey,zn=At.target,nn=At.type;return(nn==="paste"||(Ft===67||Ft===86)&&(Bn||Sn))&&zn.nodeName==="TEXTAREA"&&(Te(),At.preventDefault()),!1};function Bt(Wt,At){var Ft=window.URL||window.webkitURL||window,Sn=new Blob([At]),Bn=document.createElementNS("http://www.w3.org/1999/xhtml","a");Bn.href=Ft.createObjectURL(Sn),Bn.download=Wt,ft(Bn)}Object(y.useEffect)(function(){bt()},[bt]),Object(y.useEffect)(function(){Le.current&&!D&&l.e(27).then(l.t.bind(null,"M/lh",7)).then(function(Wt){try{xe=Wt,ht.current.instance=xe.editor.create(Le.current,{value:ce,language:Ie(ie),theme:St,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},_e);var At=ht.current.instance,Ft=m.c._menuItems,Sn=Object(ve.a)(Ft).find(function(zn){return zn[0]._debugName=="EditorContext"});if(Ct(At,xe),setTimeout(function(){bt(),ht.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){Bt(et||"educoder.txt",At.getValue())}}),At.getDomNode().addEventListener("input",function(){yt.current.autoFormat&&At.getAction("editor.action.formatDocument").run()})},500),ht.current.subscription=At.onDidChangeModelContent(function(zn){debugger;se.current?clearTimeout(ne.current):(bt(),Mt(At.getValue(),zn)),ne.current=setTimeout(function(){se.current=!1},500)}),window.Monaco||O(xe,Ie(ie)),F&&(Le.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",_t),window.removeEventListener("paste",_t),window.addEventListener("keydown",_t),window.addEventListener("paste",_t)),window.Monaco=xe,tt&&At.onDidBlurEditorWidget(function(){tt(At.getValue())}),$&&At.onDidFocusEditorText(function(){$(At.getValue())}),F)try{window.addEventListener("paste",Ve)}catch(zn){}var Bn=Z();return z(!0),function(){var zn=ht.current.instance;zn.dispose();var nn=zn.getModel();nn&&nn.dispose(),ht.current.subscription&&ht.current.subscription.dispose(),F&&window.removeEventListener("paste",Ve),Bn.unobserve(Le.current)}}catch(zn){debugger}})},[]),Object(y.useEffect)(function(){var Wt=ht.current.instance;if(Wt&&D)return document.addEventListener("keydown",vt,!1),function(){document.removeEventListener("keydown",vt)}},[nt,D]),Object(y.useEffect)(function(){var Wt=ht.current.instance;if(Wt&&D){var At=Ie(ie);xe.editor.setModelLanguage(Wt.getModel(),At)}},[ie,D]),Object(y.useEffect)(function(){var Wt=ht.current.instance;Wt&&D&&xe.editor.setTheme(St)},[St,D]),Object(y.useEffect)(function(){var Wt=ht.current.instance;yt.current=ye,Wt&&D&&(Wt.updateOptions(Object(U.a)({},ye)),setTimeout(function(){Wt.getModel().updateOptions(Object(U.a)({},ye))},200))},[JSON.stringify(ye),D]),Object(y.useEffect)(function(){var Wt=ht.current.instance;Wt&&D&&Wt.layout()},[Re,V,D]);var ut=Object(y.useState)(L(Re)),ln=Object(j.a)(ut,2),qt=ln[0],lt=ln[1],mn=Object(y.useState)(L(V)),Kt=Object(j.a)(mn,2),si=Kt[0],li=Kt[1],Ht=Object(U.a)(Object(U.a)({},I),{},{width:qt,height:si});return C.a.createElement("div",{className:"my-monaco-editor",ref:Le,style:Ht})};function Ge(ue){var P=ue.width,Re=P===void 0?"100%":P,fe=ue.height,V=fe===void 0?"100%":fe,ce=ue.original,we=ue.modified,ie=ue.language,De=ue.options,I=De===void 0?{}:De,b=Object(y.useRef)(),ye=Object(y.useState)(null),je=Object(j.a)(ye,2),_e=je[0],st=je[1];function St(Ye){var Ee;return b.current&&(Ee=new R.default(function(F){var it=Object(me.a)(F),Mt;try{for(it.s();!(Mt=it.n()).done;){var Tt=Mt.value;(Tt.target.offsetHeight>0||Tt.target.offsetWidth>0)&&Ye.layout()}}catch(Ct){it.e(Ct)}finally{it.f()}}),Ee.observe(b.current)),Ee}Object(y.useEffect)(function(){return b.current&&l.e(27).then(l.t.bind(null,"M/lh",7)).then(function(Ye){xe=Ye;var Ee=xe.editor.createDiffEditor(b.current,Object(U.a)(Object(U.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},I),{},{wordWrap:!0}));st(Ee);var F=St(Ee);return function(){Ee.dispose();var it=Ee.getModel();it&&it.dispose(),F.unobserve(b.current)}}),function(){window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}},[]),Object(y.useEffect)(function(){_e&&_e.setModel({original:xe.editor.createModel(ce,ie),modified:xe.editor.createModel(we,ie)})},[ce,we,ie,_e]);var tt=L(Re),nt=L(V),Je={width:tt,height:nt};return C.a.createElement("div",{className:"my-diff-editor",ref:b,style:Je})}},ZpRC:function(Be,Q,l){"use strict";function U(y){return typeof y=="object"&&y!=null&&y.nodeType===1}function ve(y,C){return(!C||y!=="hidden")&&y!=="visible"&&y!=="clip"}function de(y,C){if(y.clientHeight<y.scrollHeight||y.clientWidth<y.scrollWidth){var R=getComputedStyle(y,null);return ve(R.overflowY,C)||ve(R.overflowX,C)||function(A){var O=function(T){if(!T.ownerDocument||!T.ownerDocument.defaultView)return null;try{return T.ownerDocument.defaultView.frameElement}catch(m){return null}}(A);return!!O&&(O.clientHeight<A.scrollHeight||O.clientWidth<A.scrollWidth)}(y)}return!1}function J(y,C,R,A,O,T,m,f){return T<y&&m>C||T>y&&m<C?0:T<=y&&f<=R||m>=C&&f>=R?T-y-A:m>C&&f<R||T<y&&f>R?m-C+O:0}var k=function(y,C){var R=window,A=C.scrollMode,O=C.block,T=C.inline,m=C.boundary,f=C.skipOverflowHiddenElements,S=typeof m=="function"?m:function(Pe){return Pe!==m};if(!U(y))throw new TypeError("Invalid target");for(var L=document.scrollingElement||document.documentElement,le=[],he=y;U(he)&&S(he);){if((he=he.parentElement)===L){le.push(he);break}he!=null&&he===document.body&&de(he)&&!de(document.documentElement)||he!=null&&de(he,f)&&le.push(he)}for(var ge=R.visualViewport?R.visualViewport.width:innerWidth,Ie=R.visualViewport?R.visualViewport.height:innerHeight,xe=window.scrollX||pageXOffset,Oe=window.scrollY||pageYOffset,Ge=y.getBoundingClientRect(),ue=Ge.height,P=Ge.width,Re=Ge.top,fe=Ge.right,V=Ge.bottom,ce=Ge.left,we=O==="start"||O==="nearest"?Re:O==="end"?V:Re+ue/2,ie=T==="center"?ce+P/2:T==="end"?fe:ce,De=[],I=0;I<le.length;I++){var b=le[I],ye=b.getBoundingClientRect(),je=ye.height,_e=ye.width,st=ye.top,St=ye.right,tt=ye.bottom,nt=ye.left;if(A==="if-needed"&&Re>=0&&ce>=0&&V<=Ie&&fe<=ge&&Re>=st&&V<=tt&&ce>=nt&&fe<=St)return De;var Je=getComputedStyle(b),Ye=parseInt(Je.borderLeftWidth,10),Ee=parseInt(Je.borderTopWidth,10),F=parseInt(Je.borderRightWidth,10),it=parseInt(Je.borderBottomWidth,10),Mt=0,Tt=0,Ct="offsetWidth"in b?b.offsetWidth-b.clientWidth-Ye-F:0,q="offsetHeight"in b?b.offsetHeight-b.clientHeight-Ee-it:0;if(L===b)Mt=O==="start"?we:O==="end"?we-Ie:O==="nearest"?J(Oe,Oe+Ie,Ie,Ee,it,Oe+we,Oe+we+ue,ue):we-Ie/2,Tt=T==="start"?ie:T==="center"?ie-ge/2:T==="end"?ie-ge:J(xe,xe+ge,ge,Ye,F,xe+ie,xe+ie+P,P),Mt=Math.max(0,Mt+Oe),Tt=Math.max(0,Tt+xe);else{Mt=O==="start"?we-st-Ee:O==="end"?we-tt+it+q:O==="nearest"?J(st,tt,je,Ee,it+q,we,we+ue,ue):we-(st+je/2)+q/2,Tt=T==="start"?ie-nt-Ye:T==="center"?ie-(nt+_e/2)+Ct/2:T==="end"?ie-St+F+Ct:J(nt,St,_e,Ye,F+Ct,ie,ie+P,P);var $=b.scrollLeft,Ae=b.scrollTop;we+=Ae-(Mt=Math.max(0,Math.min(Ae+Mt,b.scrollHeight-je+q))),ie+=$-(Tt=Math.max(0,Math.min($+Tt,b.scrollWidth-_e+Ct)))}De.push({el:b,top:Mt,left:Tt})}return De};function me(y){return y===Object(y)&&Object.keys(y).length!==0}function j(y,C){C===void 0&&(C="auto");var R="scrollBehavior"in document.body.style;y.forEach(function(A){var O=A.el,T=A.top,m=A.left;O.scroll&&R?O.scroll({top:T,left:m,behavior:C}):(O.scrollTop=T,O.scrollLeft=m)})}function Y(y){return y===!1?{block:"end",inline:"nearest"}:me(y)?y:{block:"start",inline:"nearest"}}function W(y,C){var R=!y.ownerDocument.documentElement.contains(y);if(me(C)&&typeof C.behavior=="function")return C.behavior(R?[]:k(y,C));if(R)return;var A=Y(C);return j(k(y,A),A.behavior)}var _=Q.a=W},bT9E:function(Be,Q,l){"use strict";l.d(Q,"a",function(){return ve});var U=l("VTBJ");function ve(de,J){var k=Object(U.a)({},de);return Array.isArray(J)&&J.forEach(function(me){delete k[me]}),k}},c5Ni:function(Be,Q,l){},cRFk:function(Be,Q,l){Be.exports=l.p+"static/RepositoryNoneData.828085a8.png"},csWT:function(Be,Q,l){Be.exports=l.p+"static/choose.4ad1045f.svg"},dejd:function(Be,Q,l){},djh8:function(Be,Q,l){Be.exports=l.p+"static/qrCode.42927872.png"},dmUQ:function(Be,Q,l){"use strict";var U=l("Ff2n"),ve=l("rePB"),de=l("1OyB"),J=l("vuIU"),k=l("Ji7U"),me=l("md7G"),j=l("foSv"),Y=l("q1tI"),W=l.n(Y),_=l("TSYQ"),y=l.n(_),C=l("4IlW");function R(ue,P){var Re=Object.keys(ue);if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(ue);P&&(fe=fe.filter(function(V){return Object.getOwnPropertyDescriptor(ue,V).enumerable})),Re.push.apply(Re,fe)}return Re}function A(ue){for(var P=1;P<arguments.length;P++){var Re=arguments[P]!=null?arguments[P]:{};P%2?R(Object(Re),!0).forEach(function(fe){Object(ve.a)(ue,fe,Re[fe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ue,Object.getOwnPropertyDescriptors(Re)):R(Object(Re)).forEach(function(fe){Object.defineProperty(ue,fe,Object.getOwnPropertyDescriptor(Re,fe))})}return ue}function O(ue){var P=T();return function(){var fe=Object(j.a)(ue),V;if(P){var ce=Object(j.a)(this).constructor;V=Reflect.construct(fe,arguments,ce)}else V=fe.apply(this,arguments);return Object(me.a)(this,V)}}function T(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ue){return!1}}function m(){}function f(ue){ue.preventDefault()}var S=function(P){return P.replace(/[^\w.-]+/g,"")},L=200,le=600,he=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,ge=function(P){return P!=null},Ie=function(P,Re){return Re===P||typeof Re=="number"&&typeof P=="number"&&isNaN(Re)&&isNaN(P)},xe=function(ue){Object(k.a)(Re,ue);var P=O(Re);function Re(fe){var V;Object(de.a)(this,Re),V=P.call(this,fe),V.onKeyDown=function(ie){var De=V.props,I=De.onKeyDown,b=De.onPressEnter;if(ie.keyCode===C.a.UP){var ye=V.getRatio(ie);V.up(ie,ye,null),V.stop()}else if(ie.keyCode===C.a.DOWN){var je=V.getRatio(ie);V.down(ie,je,null),V.stop()}else ie.keyCode===C.a.ENTER&&b&&b(ie);if(V.recordCursorPosition(),V.lastKeyCode=ie.keyCode,I){for(var _e=arguments.length,st=new Array(_e>1?_e-1:0),St=1;St<_e;St++)st[St-1]=arguments[St];I.apply(void 0,[ie].concat(st))}},V.onKeyUp=function(ie){var De=V.props.onKeyUp;if(V.stop(),V.recordCursorPosition(),De){for(var I=arguments.length,b=new Array(I>1?I-1:0),ye=1;ye<I;ye++)b[ye-1]=arguments[ye];De.apply(void 0,[ie].concat(b))}},V.onChange=function(ie){var De=V.props.onChange;V.state.focused&&(V.inputting=!0),V.rawInput=V.props.parser(V.getValueFromEvent(ie)),V.setState({inputValue:V.rawInput}),De(V.toNumber(V.rawInput))},V.onMouseUp=function(){var ie=V.props.onMouseUp;V.recordCursorPosition(),ie&&ie.apply(void 0,arguments)},V.onFocus=function(){var ie;V.setState({focused:!0}),(ie=V.props).onFocus.apply(ie,arguments)},V.onBlur=function(){var ie=V.props.onBlur;V.inputting=!1,V.setState({focused:!1});var De=V.getCurrentValidValue(V.state.inputValue),I=V.setValue(De,m);if(ie){var b=V.input.value,ye=V.getInputDisplayValue({focus:!1,value:I});V.input.value=ye&&Number(ye),ie.apply(void 0,arguments),V.input.value=b}},V.getRatio=function(ie){var De=1;return ie.metaKey||ie.ctrlKey?De=.1:ie.shiftKey&&(De=10),De},V.getFullNum=function(ie){return isNaN(ie)?ie:/e/i.test(String(ie))?Number(ie).toFixed(18).replace(/\.?0+$/,""):ie},V.getPrecision=function(ie){if(ge(V.props.precision))return V.props.precision;var De=String(ie);if(De.indexOf("e-")>=0)return parseInt(De.slice(De.indexOf("e-")+2),10);var I=0;return De.indexOf(".")>=0&&(I=De.length-De.indexOf(".")-1),I},V.getInputDisplayValue=function(ie){var De=ie||V.state,I=De.focused,b=De.inputValue,ye=De.value,je;I?je=b:je=V.toPrecisionAsStep(ye),je==null&&(je="");var _e=V.formatWrapper(je);return ge(V.props.decimalSeparator)&&(_e=_e.toString().replace(".",V.props.decimalSeparator)),_e},V.recordCursorPosition=function(){try{V.cursorStart=V.input.selectionStart,V.cursorEnd=V.input.selectionEnd,V.currentValue=V.input.value,V.cursorBefore=V.input.value.substring(0,V.cursorStart),V.cursorAfter=V.input.value.substring(V.cursorEnd)}catch(ie){}},V.restoreByAfter=function(ie){if(ie===void 0)return!1;var De=V.input.value,I=De.lastIndexOf(ie);if(I===-1)return!1;var b=V.cursorBefore.length;return V.lastKeyCode===C.a.DELETE&&V.cursorBefore.charAt(b-1)===ie[0]?(V.fixCaret(b,b),!0):I+ie.length===De.length?(V.fixCaret(I,I),!0):!1},V.partRestoreByAfter=function(ie){return ie===void 0?!1:Array.prototype.some.call(ie,function(De,I){var b=ie.substring(I);return V.restoreByAfter(b)})},V.isNotCompleteNumber=function(ie){return isNaN(ie)||ie===""||ie===null||ie&&ie.toString().indexOf(".")===ie.toString().length-1},V.stop=function(){V.autoStepTimer&&clearTimeout(V.autoStepTimer)},V.down=function(ie,De,I){V.pressingUpOrDown=!0,V.step("down",ie,De,I)},V.up=function(ie,De,I){V.pressingUpOrDown=!0,V.step("up",ie,De,I)},V.saveInput=function(ie){V.input=ie};var ce=fe.value;ce===void 0&&(ce=fe.defaultValue),V.state={focused:fe.autoFocus};var we=V.getValidValue(V.toNumber(ce));return V.state=A(A({},V.state),{},{inputValue:V.toPrecisionAsStep(we),value:we}),V}return Object(J.a)(Re,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(V){var ce=this.props,we=ce.value,ie=ce.onChange,De=ce.max,I=ce.min,b=this.state.focused;if(V){if(!Ie(V.value,we)||!Ie(V.max,De)||!Ie(V.min,I)){var ye=b?we:this.getValidValue(we),je;this.pressingUpOrDown?je=ye:this.inputting?je=this.rawInput:je=this.toPrecisionAsStep(ye),this.setState({value:ye,inputValue:je})}var _e="value"in this.props?we:this.state.value;"max"in this.props&&V.max!==De&&typeof _e=="number"&&_e>De&&ie&&ie(De),"min"in this.props&&V.min!==I&&typeof _e=="number"&&_e<I&&ie&&ie(I)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var st=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===C.a.BACKSPACE?st=this.cursorStart-1:this.lastKeyCode===C.a.DELETE&&(st=this.cursorStart):st=this.input.value.length,this.fixCaret(st,st)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case C.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case C.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(St){}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(V){var ce=V;return ce===""?ce="":this.isNotCompleteNumber(parseFloat(ce))?ce=this.state.value:ce=this.getValidValue(ce),this.toNumber(ce)}},{key:"getValueFromEvent",value:function(V){var ce=V.target.value.trim().replace(/。/g,".");return ge(this.props.decimalSeparator)&&(ce=ce.replace(this.props.decimalSeparator,".")),ce}},{key:"getValidValue",value:function(V){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,ie=parseFloat(V);return isNaN(ie)?V:(ie<ce&&(ie=ce),ie>we&&(ie=we),ie)}},{key:"setValue",value:function(V,ce){var we=this.props.precision,ie=this.isNotCompleteNumber(parseFloat(V))?null:parseFloat(V),De=this.state.value,I=De===void 0?null:De,b=this.state.inputValue,ye=b===void 0?null:b,je=typeof ie=="number"?ie.toFixed(we):"".concat(ie),_e=ie!==I||je!=="".concat(ye);return"value"in this.props?(ye=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:ye},ce)):this.setState({value:ie,inputValue:this.toPrecisionAsStep(V)},ce),_e&&this.props.onChange(ie),ie}},{key:"getMaxPrecision",value:function(V){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,we=this.props,ie=we.precision,De=we.step;if(ge(ie))return ie;var I=this.getPrecision(ce),b=this.getPrecision(De),ye=this.getPrecision(V);return V?Math.max(ye,I+b):I+b}},{key:"getPrecisionFactor",value:function(V){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,we=this.getMaxPrecision(V,ce);return Math.pow(10,we)}},{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(V){return this.props.formatter?this.props.formatter(V):V}},{key:"toPrecisionAsStep",value:function(V){if(this.isNotCompleteNumber(V)||V==="")return V;var ce=Math.abs(this.getMaxPrecision(V));return isNaN(ce)?V.toString():Number(V).toFixed(ce)}},{key:"toNumber",value:function(V){var ce=this.props.precision,we=this.state.focused,ie=V&&V.length>16&&we;return this.isNotCompleteNumber(V)||ie?V:ge(ce)?Math.round(V*Math.pow(10,ce))/Math.pow(10,ce):Number(V)}},{key:"upStep",value:function(V,ce){var we=this.props.step,ie=this.getPrecisionFactor(V,ce),De=Math.abs(this.getMaxPrecision(V,ce)),I=((ie*V+ie*we*ce)/ie).toFixed(De);return this.toNumber(I)}},{key:"downStep",value:function(V,ce){var we=this.props.step,ie=this.getPrecisionFactor(V,ce),De=Math.abs(this.getMaxPrecision(V,ce)),I=((ie*V-ie*we*ce)/ie).toFixed(De);return this.toNumber(I)}},{key:"step",value:function(V,ce){var we=this,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,De=arguments.length>3?arguments[3]:void 0;this.stop(),ce&&(ce.persist(),ce.preventDefault());var I=this.props;if(I.disabled)return;var b=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(b))return;var ye=this["".concat(V,"Step")](b,ie),je=ye>I.max||ye<I.min;if(ye>I.max?ye=I.max:ye<I.min&&(ye=I.min),this.setValue(ye,null),this.setState({focused:!0},function(){we.pressingUpOrDown=!1}),je)return;this.autoStepTimer=setTimeout(function(){we[V](ce,ie,!0)},De?L:le)}},{key:"fixCaret",value:function(V,ce){if(V===void 0||ce===void 0||!this.input||!this.input.value)return;try{var we=this.input.selectionStart,ie=this.input.selectionEnd;(V!==we||ce!==ie)&&this.input.setSelectionRange(V,ce)}catch(De){}}},{key:"render",value:function(){var V,ce=this.props,we=ce.prefixCls,ie=ce.disabled,De=ce.readOnly,I=ce.useTouch,b=ce.autoComplete,ye=ce.upHandler,je=ce.downHandler,_e=ce.className,st=ce.max,St=ce.min,tt=ce.style,nt=ce.title,Je=ce.onMouseEnter,Ye=ce.onMouseLeave,Ee=ce.onMouseOver,F=ce.onMouseOut,it=ce.required,Mt=ce.onClick,Tt=ce.tabIndex,Ct=ce.type,q=ce.placeholder,$=ce.id,Ae=ce.inputMode,Pe=ce.pattern,He=ce.step,Ue=ce.maxLength,Qe=ce.autoFocus,et=ce.name,Dt=ce.onPaste,ct=ce.onInput,ot=Object(U.a)(ce,["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"]),$e=this.state,Lt=$e.value,mt=$e.focused,Ot=y()(we,(V={},Object(ve.a)(V,_e,!!_e),Object(ve.a)(V,"".concat(we,"-disabled"),ie),Object(ve.a)(V,"".concat(we,"-focused"),mt),V)),Le={};Object.keys(ot).forEach(function(Z){(Z.substr(0,5)==="data-"||Z.substr(0,5)==="aria-"||Z==="role")&&(Le[Z]=ot[Z])});var ht=!De&&!ie,yt=this.getInputDisplayValue(null),Fe=(Lt||Lt===0)&&(isNaN(Lt)||Number(Lt)>=st),Ze=(Lt||Lt===0)&&(isNaN(Lt)||Number(Lt)<=St),se=Fe||ie||De,ne=Ze||ie||De,oe=y()("".concat(we,"-handler"),"".concat(we,"-handler-up"),Object(ve.a)({},"".concat(we,"-handler-up-disabled"),se)),M=y()("".concat(we,"-handler"),"".concat(we,"-handler-down"),Object(ve.a)({},"".concat(we,"-handler-down-disabled"),ne)),D=I?{onTouchStart:se?m:this.up,onTouchEnd:this.stop}:{onMouseDown:se?m:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},z=I?{onTouchStart:ne?m:this.down,onTouchEnd:this.stop}:{onMouseDown:ne?m:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return W.a.createElement("div",{className:Ot,style:tt,title:nt,onMouseEnter:Je,onMouseLeave:Ye,onMouseOver:Ee,onMouseOut:F,onFocus:function(){return null},onBlur:function(){return null}},W.a.createElement("div",{className:"".concat(we,"-handler-wrap")},W.a.createElement("span",Object.assign({unselectable:"on"},D,{role:"button","aria-label":"Increase Value","aria-disabled":se,className:oe}),ye||W.a.createElement("span",{unselectable:"on",className:"".concat(we,"-handler-up-inner"),onClick:f})),W.a.createElement("span",Object.assign({unselectable:"on"},z,{role:"button","aria-label":"Decrease Value","aria-disabled":ne,className:M}),je||W.a.createElement("span",{unselectable:"on",className:"".concat(we,"-handler-down-inner"),onClick:f}))),W.a.createElement("div",{className:"".concat(we,"-input-wrap")},W.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":St,"aria-valuemax":st,"aria-valuenow":Lt,required:it,type:Ct,placeholder:q,onPaste:Dt,onClick:Mt,onMouseUp:this.onMouseUp,className:"".concat(we,"-input"),tabIndex:Tt,autoComplete:b,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:ht?this.onKeyDown:m,onKeyUp:ht?this.onKeyUp:m,autoFocus:Qe,maxLength:Ue,readOnly:De,disabled:ie,max:st,min:St,step:He,name:et,title:nt,id:$,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(yt),pattern:Pe,inputMode:Ae,onInput:ct},Le))))}}]),Re}(W.a.Component);xe.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:he,min:-he,step:1,style:{},onChange:m,onKeyDown:m,onPressEnter:m,onFocus:m,onBlur:m,parser:S,required:!1,autoComplete:"off"};var Oe=xe,Ge=Q.a=Oe},fjLI:function(Be,Q,l){"use strict";l.d(Q,"e",function(){return _}),l.d(Q,"a",function(){return y}),l.d(Q,"c",function(){return C}),l.d(Q,"d",function(){return A}),l.d(Q,"b",function(){return O});var U=l("8HAY"),ve=l("Cg/j"),de=l("T8No"),J=l("nnTU"),k=l("MI8n"),me=function(){var T=function(m,f){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,L){S.__proto__=L}||function(S,L){for(var le in L)L.hasOwnProperty(le)&&(S[le]=L[le])},T(m,f)};return function(m,f){T(m,f);function S(){this.constructor=m}m.prototype=f===null?Object.create(f):(S.prototype=f.prototype,new S)}}(),j=function(T,m,f,S){var L=arguments.length,le=L<3?m:S===null?S=Object.getOwnPropertyDescriptor(m,f):S,he;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")le=Reflect.decorate(T,m,f,S);else for(var ge=T.length-1;ge>=0;ge--)(he=T[ge])&&(le=(L<3?he(le):L>3?he(m,f,le):he(m,f))||le);return L>3&&le&&Object.defineProperty(m,f,le),le},Y=function(T,m){return function(f,S){m(f,S,T)}},W=function(){for(var T=0,m=0,f=arguments.length;m<f;m++)T+=arguments[m].length;for(var S=Array(T),L=0,m=0;m<f;m++)for(var le=arguments[m],he=0,ge=le.length;he<ge;he++,L++)S[L]=le[he];return S};function _(T){return T.command!==void 0}var y=Object(ve.c)("menuService"),C=new(function(){function T(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new k.a,this.onDidChangeMenu=this._onDidChangeMenu.event}return T.prototype.addCommand=function(m){var f=this;return this._commands.set(m.id,m),this._onDidChangeMenu.fire(0),{dispose:function(){f._commands.delete(m.id)&&f._onDidChangeMenu.fire(0)}}},T.prototype.getCommand=function(m){return this._commands.get(m)},T.prototype.getCommands=function(){var m=new Map;return this._commands.forEach(function(f,S){return m.set(S,f)}),m},T.prototype.appendMenuItem=function(m,f){var S=this,L=this._menuItems.get(m);return L?L.push(f):(L=[f],this._menuItems.set(m,L)),this._onDidChangeMenu.fire(m),{dispose:function(){var le=L.indexOf(f);le>=0&&(L.splice(le,1),S._onDidChangeMenu.fire(m))}}},T.prototype.getMenuItems=function(m){var f=(this._menuItems.get(m)||[]).slice(0);return m===0&&this._appendImplicitItems(f),f},T.prototype._appendImplicitItems=function(m){for(var f=new Set,S=m.filter(function(xe){return _(xe)}),L=0,le=S;L<le.length;L++){var he=le[L],ge=he.command,Ie=he.alt;f.add(ge.id),Ie&&f.add(Ie.id)}this._commands.forEach(function(xe,Oe){f.has(Oe)||m.push({command:xe})})},T}()),R=function(T){me(m,T);function m(f,S,L){var le=T.call(this,f,S)||this;return le._commandService=L,le}return m.prototype.run=function(){for(var f,S=[],L=0;L<arguments.length;L++)S[L]=arguments[L];return(f=this._commandService).executeCommand.apply(f,W([this.id],S))},m=j([Y(2,J.b)],m),m}(U.a),A=function(T){me(m,T);function m(f){var S=this;return typeof f.title=="string"?S=T.call(this,"",f.title,"submenu")||this:S=T.call(this,"",f.title.value,"submenu")||this,S.item=f,S}return m}(U.a),O=function(T){me(m,T);function m(f,S,L,le,he){var ge=this;return typeof f.title=="string"?ge=T.call(this,f.id,f.title,he)||this:ge=T.call(this,f.id,f.title.value,he)||this,ge._cssClass=void 0,ge._enabled=!f.precondition||le.contextMatchesRules(f.precondition),ge._checked=Boolean(f.toggled&&le.contextMatchesRules(f.toggled)),ge._options=L||{},ge.item=f,ge.alt=S?new m(S,void 0,ge._options,le,he):void 0,ge}return m.prototype.dispose=function(){this.alt&&this.alt.dispose(),T.prototype.dispose.call(this)},m.prototype.run=function(){for(var f=[],S=0;S<arguments.length;S++)f[S]=arguments[S];var L=[];return this._options.arg&&(L=W(L,[this._options.arg])),this._options.shouldForwardArgs&&(L=W(L,f)),T.prototype.run.apply(this,L)},m=j([Y(3,de.c),Y(4,J.b)],m),m}(R)},ji0R:function(Be,Q,l){Be.exports=l.p+"static/douyu.3e6df9ee.jpg"},k3GJ:function(Be,Q,l){"use strict";l.d(Q,"a",function(){return Ca});var U=l("rePB"),ve=l("ODXe"),de=l("Ff2n"),J=l("VTBJ"),k=l("q1tI"),me=l("TSYQ"),j=l.n(me),Y=l("Zm9Q"),W=l("6cGi"),_=l("KQm4"),y=l("xEkU"),C=l.n(y),R=l("t23M");function A(B){var re=Object(k.useRef)(),pe=Object(k.useRef)(!1);function H(){for(var E=arguments.length,N=new Array(E),w=0;w<E;w++)N[w]=arguments[w];pe.current||(C.a.cancel(re.current),re.current=C()(function(){B.apply(void 0,N)}))}return Object(k.useEffect)(function(){return function(){pe.current=!0,C.a.cancel(re.current)}},[]),H}function O(B){var re=Object(k.useRef)([]),pe=Object(k.useState)({}),H=Object(ve.a)(pe,2),E=H[1],N=Object(k.useRef)(typeof B=="function"?B():B),w=A(function(){var X=N.current;re.current.forEach(function(be){X=be(X)}),re.current=[],N.current=X,E({})});function K(X){re.current.push(X),w()}return[N.current,K]}var T=l("4IlW");function m(B,re){var pe,H=B.prefixCls,E=B.id,N=B.active,w=B.rtl,K=B.tab,X=K.key,be=K.tab,ae=K.disabled,ke=K.closeIcon,We=B.tabBarGutter,at=B.tabPosition,rt=B.closable,Et=B.renderWrapper,$t=B.removeAriaLabel,fn=B.editable,sn=B.onClick,cn=B.onRemove,pn=B.onFocus,hn="".concat(H,"-tab");k.useEffect(function(){return cn},[]);var dn={};at==="top"||at==="bottom"?dn[w?"marginLeft":"marginRight"]=We:dn.marginBottom=We;var Rn=fn&&rt!==!1&&!ae;function En(Zt){if(ae)return;sn(Zt)}function ti(Zt){Zt.preventDefault(),Zt.stopPropagation(),fn.onEdit("remove",{key:X,event:Zt})}var xn=k.createElement("div",{key:X,ref:re,className:j()(hn,(pe={},Object(U.a)(pe,"".concat(hn,"-with-remove"),Rn),Object(U.a)(pe,"".concat(hn,"-active"),N),Object(U.a)(pe,"".concat(hn,"-disabled"),ae),pe)),style:dn,onClick:En},k.createElement("div",{role:"tab","aria-selected":N,id:E&&"".concat(E,"-tab-").concat(X),className:"".concat(hn,"-btn"),"aria-controls":E&&"".concat(E,"-panel-").concat(X),"aria-disabled":ae,tabIndex:ae?null:0,onClick:function(Jt){Jt.stopPropagation(),En(Jt)},onKeyDown:function(Jt){[T.a.SPACE,T.a.ENTER].includes(Jt.which)&&(Jt.preventDefault(),En(Jt))},onFocus:pn},be),Rn&&k.createElement("button",{type:"button","aria-label":$t||"remove",tabIndex:0,className:"".concat(hn,"-remove"),onClick:function(Jt){Jt.stopPropagation(),ti(Jt)}},ke||fn.removeIcon||"\xD7"));return Et&&(xn=Et(xn)),xn}var f=k.forwardRef(m),S={width:0,height:0,left:0,top:0};function L(B,re,pe){return Object(k.useMemo)(function(){for(var H,E=new Map,N=re.get((H=B[0])===null||H===void 0?void 0:H.key)||S,w=N.left+N.width,K=0;K<B.length;K+=1){var X=B[K].key,be=re.get(X);if(!be){var ae;be=re.get((ae=B[K-1])===null||ae===void 0?void 0:ae.key)||S}var ke=E.get(X)||Object(J.a)({},be);ke.right=w-ke.left-ke.width,E.set(X,ke)}return E},[B.map(function(H){return H.key}).join("_"),re,pe])}var le={width:0,height:0,left:0,top:0,right:0};function he(B,re,pe,H,E){var N=E.tabs,w=E.tabPosition,K=E.rtl,X,be,ae;["top","bottom"].includes(w)?(X="width",be=K?"right":"left",ae=Math.abs(re.left)):(X="height",be="top",ae=-re.top);var ke=re[X],We=pe[X],at=H[X],rt=ke;return We+at>ke&&(rt=ke-at),Object(k.useMemo)(function(){if(!N.length)return[0,0];for(var Et=N.length,$t=Et,fn=0;fn<Et;fn+=1){var sn=B.get(N[fn].key)||le;if(sn[be]+sn[X]>ae+rt){$t=fn-1;break}}for(var cn=0,pn=Et-1;pn>=0;pn-=1){var hn=B.get(N[pn].key)||le;if(hn[be]<ae){cn=pn+1;break}}return[cn,$t]},[B,ae,rt,w,N.map(function(Et){return Et.key}).join("_"),K])}var ge=l("wx14"),Ie=l("1OyB"),xe=l("vuIU"),Oe=l("JX7q"),Ge=l("Ji7U"),ue=l("LK+K"),P=l("I8Z2"),Re=l("bT9E"),fe=l("2GS6"),V=l("Gytx"),ce=l.n(V),we=l("U8pU"),ie=/iPhone/i,De=/iPod/i,I=/iPad/i,b=/\bAndroid(?:.+)Mobile\b/i,ye=/Android/i,je=/\bAndroid(?:.+)SD4930UR\b/i,_e=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,st=/Windows Phone/i,St=/\bWindows(?:.+)ARM\b/i,tt=/BlackBerry/i,nt=/BB10/i,Je=/Opera Mini/i,Ye=/\b(CriOS|Chrome)(?:.+)Mobile/i,Ee=/Mobile(?:.+)Firefox\b/i;function F(B,re){return B.test(re)}function it(B){var re=B||(typeof navigator!="undefined"?navigator.userAgent:""),pe=(re||"").split("[FBAN");if(typeof pe[1]!="undefined"){var H=pe,E=Object(ve.a)(H,1);re=E[0]}if(pe=re.split("Twitter"),typeof pe[1]!="undefined"){var N=pe,w=Object(ve.a)(N,1);re=w[0]}var K={apple:{phone:F(ie,re)&&!F(st,re),ipod:F(De,re),tablet:!F(ie,re)&&F(I,re)&&!F(st,re),device:(F(ie,re)||F(De,re)||F(I,re))&&!F(st,re)},amazon:{phone:F(je,re),tablet:!F(je,re)&&F(_e,re),device:F(je,re)||F(_e,re)},android:{phone:!F(st,re)&&F(je,re)||!F(st,re)&&F(b,re),tablet:!F(st,re)&&!F(je,re)&&!F(b,re)&&(F(_e,re)||F(ye,re)),device:!F(st,re)&&(F(je,re)||F(_e,re)||F(b,re)||F(ye,re))||F(/\bokhttp\b/i,re)},windows:{phone:F(st,re),tablet:F(St,re),device:F(st,re)||F(St,re)},other:{blackberry:F(tt,re),blackberry10:F(nt,re),opera:F(Je,re),firefox:F(Ee,re),chrome:F(Ye,re),device:F(tt,re)||F(nt,re)||F(Je,re)||F(Ee,re)||F(Ye,re)},any:null,phone:null,tablet:null};return K.any=K.apple.device||K.android.device||K.windows.device||K.other.device,K.phone=K.apple.phone||K.android.phone||K.windows.phone,K.tablet=K.apple.tablet||K.android.tablet||K.windows.tablet,K}var Mt=Object(J.a)(Object(J.a)({},it()),{},{isMobile:it}),Tt=Mt;function Ct(){}function q(B,re,pe){var H=re||"";return B.key||"".concat(H,"item_").concat(pe)}function $(B){return"".concat(B,"-menu-")}function Ae(B,re){var pe=-1;k.Children.forEach(B,function(H){pe+=1,H&&H.type&&H.type.isMenuItemGroup?k.Children.forEach(H.props.children,function(E){pe+=1,re(E,pe)}):re(H,pe)})}function Pe(B,re,pe){if(!B||pe.find)return;k.Children.forEach(B,function(H){if(H){var E=H.type;if(!E||!(E.isSubMenu||E.isMenuItem||E.isMenuItemGroup))return;re.indexOf(H.key)!==-1?pe.find=!0:H.props.children&&Pe(H.props.children,re,pe)}})}var He=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],Ue=function(re){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,H=re&&typeof re.getBoundingClientRect=="function"&&re.getBoundingClientRect().width;if(H){if(pe){var E=getComputedStyle(re),N=E.marginLeft,w=E.marginRight;H+=+N.replace("px","")+ +w.replace("px","")}H=+H.toFixed(6)}return H||0},Qe=function(re,pe,H){re&&Object(we.a)(re.style)==="object"&&(re.style[pe]=H)},et=function(){return Tt.any},Dt=l("bdgK"),ct=l("i8i4"),ot=l.n(ct),$e=l("wgJM"),Lt=l("l4aY"),mt=l("m+aA"),Ot=l("c+Xe"),Le=l("zT1h"),ht=l("QC+M");function yt(B,re,pe){return pe?B[0]===re[0]:B[0]===re[0]&&B[1]===re[1]}function Fe(B,re,pe){var H=B[re]||{};return Object(J.a)(Object(J.a)({},H),pe)}function Ze(B,re,pe,H){for(var E=pe.points,N=Object.keys(B),w=0;w<N.length;w+=1){var K=N[w];if(yt(B[K].points,E,H))return"".concat(re,"-placement-").concat(K)}return""}var se=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var B=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(B)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(B==null?void 0:B.substr(0,4)))},ne=l("MNnm");function oe(B,re){var pe={};return pe[B.toLowerCase()]=re.toLowerCase(),pe["Webkit".concat(B)]="webkit".concat(re),pe["Moz".concat(B)]="moz".concat(re),pe["ms".concat(B)]="MS".concat(re),pe["O".concat(B)]="o".concat(re.toLowerCase()),pe}function M(B,re){var pe={animationend:oe("Animation","AnimationEnd"),transitionend:oe("Transition","TransitionEnd")};return B&&("AnimationEvent"in re||delete pe.animationend.animation,"TransitionEvent"in re||delete pe.transitionend.transition),pe}var D=M(Object(ne.a)(),typeof window!="undefined"?window:{}),z={};if(Object(ne.a)()){var Z=document.createElement("div");z=Z.style}var Te={};function Ce(B){if(Te[B])return Te[B];var re=D[B];if(re)for(var pe=Object.keys(re),H=pe.length,E=0;E<H;E+=1){var N=pe[E];if(Object.prototype.hasOwnProperty.call(re,N)&&N in z)return Te[B]=re[N],Te[B]}return""}var Ve=Ce("animationend"),vt=Ce("transitionend"),bt=!!(Ve&&vt),ft=Ve||"animationend",_t=vt||"transitionend";function Bt(B,re){if(!B)return null;if(Object(we.a)(B)==="object"){var pe=re.replace(/-\w/g,function(H){return H[1].toUpperCase()});return B[pe]}return"".concat(B,"-").concat(re)}var ut="none",ln="appear",qt="enter",lt="leave",mn="none",Kt="prepare",si="start",li="active",Ht="end";function Wt(B){var re=Object(k.useRef)(!1),pe=Object(k.useState)(B),H=Object(ve.a)(pe,2),E=H[0],N=H[1];function w(K){re.current||N(K)}return Object(k.useEffect)(function(){return function(){re.current=!0}},[]),[E,w]}var At=Object(ne.a)()?k.useLayoutEffect:k.useEffect,Ft=At,Sn=function(){var B=k.useRef(null);function re(){$e.a.cancel(B.current)}function pe(H){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;re();var N=Object($e.a)(function(){E<=1?H({isCanceled:function(){return N!==B.current}}):pe(H,E-1)});B.current=N}return k.useEffect(function(){return function(){re()}},[]),[pe,re]},Bn=[Kt,si,li,Ht],zn=!1,nn=!0;function It(B){return B===li||B===Ht}var Mi=function(B,re){var pe=k.useState(mn),H=Object(ve.a)(pe,2),E=H[0],N=H[1],w=Sn(),K=Object(ve.a)(w,2),X=K[0],be=K[1];function ae(){N(Kt)}return Ft(function(){if(E!==mn&&E!==Ht){var ke=Bn.indexOf(E),We=Bn[ke+1],at=re(E);at===zn?N(We):X(function(rt){function Et(){if(rt.isCanceled())return;N(We)}at===!0?Et():Promise.resolve(at).then(Et)})}},[B,E]),k.useEffect(function(){return function(){be()}},[]),[ae,E]},wi=function(B){var re=Object(k.useRef)(),pe=Object(k.useRef)(B);pe.current=B;var H=k.useCallback(function(w){pe.current(w)},[]);function E(w){w&&(w.removeEventListener(_t,H),w.removeEventListener(ft,H))}function N(w){re.current&&re.current!==w&&E(re.current),w&&w!==re.current&&(w.addEventListener(_t,H),w.addEventListener(ft,H),re.current=w)}return k.useEffect(function(){return function(){E(re.current)}},[]),[N,E]};function _n(B,re,pe,H){var E=H.motionEnter,N=E===void 0?!0:E,w=H.motionAppear,K=w===void 0?!0:w,X=H.motionLeave,be=X===void 0?!0:X,ae=H.motionDeadline,ke=H.motionLeaveImmediately,We=H.onAppearPrepare,at=H.onEnterPrepare,rt=H.onLeavePrepare,Et=H.onAppearStart,$t=H.onEnterStart,fn=H.onLeaveStart,sn=H.onAppearActive,cn=H.onEnterActive,pn=H.onLeaveActive,hn=H.onAppearEnd,dn=H.onEnterEnd,Rn=H.onLeaveEnd,En=H.onVisibleChanged,ti=Wt(),xn=Object(ve.a)(ti,2),Zt=xn[0],Jt=xn[1],An=Wt(ut),Dn=Object(ve.a)(An,2),zt=Dn[0],Ln=Dn[1],ni=Wt(null),jn=Object(ve.a)(ni,2),Jn=jn[0],Kn=jn[1],mi=Object(k.useRef)(!1),Ti=Object(k.useRef)(null),ri=Object(k.useRef)(!1),Gi=Object(k.useRef)(null);function dr(){var Zn=pe();return Zn||Gi.current}var Ji=Object(k.useRef)(!1);function Ri(Zn){var Vn=dr();if(Zn&&!Zn.deadline&&Zn.target!==Vn)return;var Di;zt===ln&&Ji.current?Di=hn==null?void 0:hn(Vn,Zn):zt===qt&&Ji.current?Di=dn==null?void 0:dn(Vn,Zn):zt===lt&&Ji.current&&(Di=Rn==null?void 0:Rn(Vn,Zn)),Di!==!1&&!ri.current&&(Ln(ut),Kn(null))}var qn=wi(Ri),Xn=Object(ve.a)(qn,1),oi=Xn[0],ii=k.useMemo(function(){var Zn,Vn,Di;switch(zt){case"appear":return Zn={},Object(U.a)(Zn,Kt,We),Object(U.a)(Zn,si,Et),Object(U.a)(Zn,li,sn),Zn;case"enter":return Vn={},Object(U.a)(Vn,Kt,at),Object(U.a)(Vn,si,$t),Object(U.a)(Vn,li,cn),Vn;case"leave":return Di={},Object(U.a)(Di,Kt,rt),Object(U.a)(Di,si,fn),Object(U.a)(Di,li,pn),Di;default:return{}}},[zt]),hr=Mi(zt,function(Zn){if(Zn===Kt){var Vn=ii[Kt];return Vn?Vn(dr()):zn}if(Qn in ii){var Di;Kn(((Di=ii[Qn])===null||Di===void 0?void 0:Di.call(ii,dr(),null))||null)}return Qn===li&&(oi(dr()),ae>0&&(clearTimeout(Ti.current),Ti.current=setTimeout(function(){Ri({deadline:!0})},ae))),nn}),Mr=Object(ve.a)(hr,2),Or=Mr[0],Qn=Mr[1],vr=It(Qn);Ji.current=vr,Ft(function(){Jt(re);var Zn=mi.current;if(mi.current=!0,!B)return;var Vn;!Zn&&re&&K&&(Vn=ln),Zn&&re&&N&&(Vn=qt),(Zn&&!re&&be||!Zn&&ke&&!re&&be)&&(Vn=lt),Vn&&(Ln(Vn),Or())},[re]),Object(k.useEffect)(function(){(zt===ln&&!K||zt===qt&&!N||zt===lt&&!be)&&Ln(ut)},[K,N,be]),Object(k.useEffect)(function(){return function(){clearTimeout(Ti.current),ri.current=!0}},[]),Object(k.useEffect)(function(){Zt!==void 0&&zt===ut&&(En==null||En(Zt))},[Zt,zt]);var Tr=Jn;return ii[Kt]&&Qn===si&&(Tr=Object(J.a)({transition:"none"},Tr)),[zt,Qn,Tr,Zt!=null?Zt:re]}var Vt=function(B){Object(Ge.a)(pe,B);var re=Object(ue.a)(pe);function pe(){return Object(Ie.a)(this,pe),re.apply(this,arguments)}return Object(xe.a)(pe,[{key:"render",value:function(){return this.props.children}}]),pe}(k.Component),bn=Vt;function rn(B){var re=B;Object(we.a)(B)==="object"&&(re=B.transitionSupport);function pe(E){return!!(E.motionName&&re)}var H=k.forwardRef(function(E,N){var w=E.visible,K=w===void 0?!0:w,X=E.removeOnLeave,be=X===void 0?!0:X,ae=E.forceRender,ke=E.children,We=E.motionName,at=E.leavedClassName,rt=E.eventProps,Et=pe(E),$t=Object(k.useRef)(),fn=Object(k.useRef)();function sn(){try{return Object(mt.a)($t.current||fn.current)}catch(Ln){return null}}var cn=_n(Et,K,sn,E),pn=Object(ve.a)(cn,4),hn=pn[0],dn=pn[1],Rn=pn[2],En=pn[3],ti=k.useRef(En);En&&(ti.current=!0);var xn=Object(k.useRef)(N);xn.current=N;var Zt=k.useCallback(function(Ln){$t.current=Ln,Object(Ot.b)(xn.current,Ln)},[]),Jt,An=Object(J.a)(Object(J.a)({},rt),{},{visible:K});if(!ke)Jt=null;else if(hn===ut||!pe(E))En?Jt=ke(Object(J.a)({},An),Zt):!be&&ti.current?Jt=ke(Object(J.a)(Object(J.a)({},An),{},{className:at}),Zt):ae?Jt=ke(Object(J.a)(Object(J.a)({},An),{},{style:{display:"none"}}),Zt):Jt=null;else{var Dn,zt;dn===Kt?zt="prepare":It(dn)?zt="active":dn===si&&(zt="start"),Jt=ke(Object(J.a)(Object(J.a)({},An),{},{className:j()(Bt(We,hn),(Dn={},Object(U.a)(Dn,Bt(We,"".concat(hn,"-").concat(zt)),zt),Object(U.a)(Dn,We,typeof We=="string"),Dn)),style:Rn}),Zt)}return k.createElement(bn,{ref:fn},Jt)});return H.displayName="CSSMotion",H}var gn=rn(bt),Ne="add",pt="keep",Yt="remove",an="removed";function Pn(B){var re;return B&&Object(we.a)(B)==="object"&&"key"in B?re=B:re={key:B},Object(J.a)(Object(J.a)({},re),{},{key:String(re.key)})}function Un(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return B.map(Pn)}function d(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],pe=[],H=0,E=re.length,N=Un(B),w=Un(re);N.forEach(function(be){for(var ae=!1,ke=H;ke<E;ke+=1){var We=w[ke];if(We.key===be.key){H<ke&&(pe=pe.concat(w.slice(H,ke).map(function(at){return Object(J.a)(Object(J.a)({},at),{},{status:Ne})})),H=ke),pe.push(Object(J.a)(Object(J.a)({},We),{},{status:pt})),H+=1,ae=!0;break}}ae||pe.push(Object(J.a)(Object(J.a)({},be),{},{status:Yt}))}),H<E&&(pe=pe.concat(w.slice(H).map(function(be){return Object(J.a)(Object(J.a)({},be),{},{status:Ne})})));var K={};pe.forEach(function(be){var ae=be.key;K[ae]=(K[ae]||0)+1});var X=Object.keys(K).filter(function(be){return K[be]>1});return X.forEach(function(be){pe=pe.filter(function(ae){var ke=ae.key,We=ae.status;return ke!==be||We!==Yt}),pe.forEach(function(ae){ae.key===be&&(ae.status=pt)})}),pe}var o=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function a(B){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gn,pe=function(H){Object(Ge.a)(N,H);var E=Object(ue.a)(N);function N(){var w;return Object(Ie.a)(this,N),w=E.apply(this,arguments),w.state={keyEntities:[]},w.removeKey=function(K){w.setState(function(X){var be=X.keyEntities;return{keyEntities:be.map(function(ae){return ae.key!==K?ae:Object(J.a)(Object(J.a)({},ae),{},{status:an})})}})},w}return Object(xe.a)(N,[{key:"render",value:function(){var K=this,X=this.state.keyEntities,be=this.props,ae=be.component,ke=be.children,We=be.onVisibleChanged,at=Object(de.a)(be,["component","children","onVisibleChanged"]),rt=ae||k.Fragment,Et={};return o.forEach(function($t){Et[$t]=at[$t],delete at[$t]}),delete at.keys,k.createElement(rt,at,X.map(function($t){var fn=$t.status,sn=Object(de.a)($t,["status"]),cn=fn===Ne||fn===pt;return k.createElement(re,Object(ge.a)({},Et,{key:sn.key,visible:cn,eventProps:sn,onVisibleChanged:function(hn){We==null||We(hn,{key:sn.key}),hn||K.removeKey(sn.key)}}),ke)}))}}],[{key:"getDerivedStateFromProps",value:function(K,X){var be=K.keys,ae=X.keyEntities,ke=Un(be),We=d(ae,ke);return{keyEntities:We.filter(function(at){var rt=ae.find(function(Et){var $t=Et.key;return at.key===$t});return!(rt&&rt.status===an&&at.status===Yt)})}}}]),N}(k.Component);return pe.defaultProps={component:"div"},pe}var c=a(bt),p=gn;function h(B){var re=B.prefixCls,pe=B.motion,H=B.animation,E=B.transitionName;return pe||(H?{motionName:"".concat(re,"-").concat(H)}:E?{motionName:E}:null)}function te(B){var re=B.prefixCls,pe=B.visible,H=B.zIndex,E=B.mask,N=B.maskMotion,w=B.maskAnimation,K=B.maskTransitionName;if(!E)return null;var X={};return(N||K||w)&&(X=Object(J.a)({motionAppear:!0},h({motion:N,prefixCls:re,transitionName:K,animation:w}))),k.createElement(p,Object(ge.a)({},X,{visible:pe,removeOnLeave:!0}),function(be){var ae=be.className;return k.createElement("div",{style:{zIndex:H},className:j()("".concat(re,"-mask"),ae)})})}var Ke=l("9mu1"),gt=l("o0o1"),Nt=l.n(gt),Xe=l("HaE+"),kt=["measure","align",null,"motion"],Rt=function(B,re){var pe=Object(k.useState)(null),H=Object(ve.a)(pe,2),E=H[0],N=H[1],w=Object(k.useRef)(),K=Object(k.useRef)(!1);function X(ke){K.current||N(ke)}function be(){$e.a.cancel(w.current)}function ae(ke){be(),w.current=Object($e.a)(function(){X(function(We){switch(E){case"align":return"motion";case"motion":return"stable";default:}return We}),ke==null||ke()})}return Object(k.useEffect)(function(){X("measure")},[B]),Object(k.useEffect)(function(){switch(E){case"measure":re();break;default:}E&&(w.current=Object($e.a)(Object(Xe.a)(Nt.a.mark(function ke(){var We,at;return Nt.a.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:We=kt.indexOf(E),at=kt[We+1],at&&We!==-1&&X(at);case 3:case"end":return Et.stop()}},ke)}))))},[E]),Object(k.useEffect)(function(){return function(){K.current=!0,be()}},[]),[E,ae]},jt=function(B){var re=k.useState({width:0,height:0}),pe=Object(ve.a)(re,2),H=pe[0],E=pe[1];function N(K){E({width:K.offsetWidth,height:K.offsetHeight})}var w=k.useMemo(function(){var K={};if(B){var X=H.width,be=H.height;B.indexOf("height")!==-1&&be?K.height=be:B.indexOf("minHeight")!==-1&&be&&(K.minHeight=be),B.indexOf("width")!==-1&&X?K.width=X:B.indexOf("minWidth")!==-1&&X&&(K.minWidth=X)}return K},[B,H]);return[w,N]},un=k.forwardRef(function(B,re){var pe=B.visible,H=B.prefixCls,E=B.className,N=B.style,w=B.children,K=B.zIndex,X=B.stretch,be=B.destroyPopupOnHide,ae=B.forceRender,ke=B.align,We=B.point,at=B.getRootDomNode,rt=B.getClassNameFromAlign,Et=B.onAlign,$t=B.onMouseEnter,fn=B.onMouseLeave,sn=B.onMouseDown,cn=B.onTouchStart,pn=Object(k.useRef)(),hn=Object(k.useRef)(),dn=Object(k.useState)(),Rn=Object(ve.a)(dn,2),En=Rn[0],ti=Rn[1],xn=jt(X),Zt=Object(ve.a)(xn,2),Jt=Zt[0],An=Zt[1];function Dn(){X&&An(at())}var zt=Rt(pe,Dn),Ln=Object(ve.a)(zt,2),ni=Ln[0],jn=Ln[1],Jn=Object(k.useRef)();function Kn(){return We||at}function mi(){var qn;(qn=pn.current)===null||qn===void 0||qn.forceAlign()}function Ti(qn,Xn){var oi=rt(Xn);En!==oi&&ti(oi),ni==="align"&&(En!==oi?Promise.resolve().then(function(){mi()}):jn(function(){var ii;(ii=Jn.current)===null||ii===void 0||ii.call(Jn)}),Et==null||Et(qn,Xn))}var ri=Object(J.a)({},h(B));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(qn){var Xn=ri[qn];ri[qn]=function(oi,ii){return jn(),Xn==null?void 0:Xn(oi,ii)}});function Gi(){return new Promise(function(qn){Jn.current=qn})}k.useEffect(function(){!ri.motionName&&ni==="motion"&&jn()},[ri.motionName,ni]),k.useImperativeHandle(re,function(){return{forceAlign:mi,getElement:function(){return hn.current}}});var dr=Object(J.a)(Object(J.a)({},Jt),{},{zIndex:K,opacity:ni==="motion"||ni==="stable"||!pe?void 0:0,pointerEvents:ni==="stable"?void 0:"none"},N),Ji=!0;(ke==null?void 0:ke.points)&&(ni==="align"||ni==="stable")&&(Ji=!1);var Ri=w;return k.Children.count(w)>1&&(Ri=k.createElement("div",{className:"".concat(H,"-content")},w)),k.createElement(p,Object(ge.a)({visible:pe,ref:hn,leavedClassName:"".concat(H,"-hidden")},ri,{onAppearPrepare:Gi,onEnterPrepare:Gi,removeOnLeave:be,forceRender:ae}),function(qn,Xn){var oi=qn.className,ii=qn.style,hr=j()(H,E,En,oi);return k.createElement(Ke.a,{target:Kn(),key:"popup",ref:pn,monitorWindowResize:!0,disabled:Ji,align:ke,onAlign:Ti},k.createElement("div",{ref:Xn,className:hr,onMouseEnter:$t,onMouseLeave:fn,onMouseDownCapture:sn,onTouchStartCapture:cn,style:Object(J.a)(Object(J.a)({},ii),dr)},Ri))})});un.displayName="PopupInner";var wn=un,on=k.forwardRef(function(B,re){var pe=B.prefixCls,H=B.visible,E=B.zIndex,N=B.children,w=B.mobile;w=w===void 0?{}:w;var K=w.popupClassName,X=w.popupStyle,be=w.popupMotion,ae=be===void 0?{}:be,ke=w.popupRender,We=k.useRef();k.useImperativeHandle(re,function(){return{forceAlign:function(){},getElement:function(){return We.current}}});var at=Object(J.a)({zIndex:E},X),rt=N;return k.Children.count(N)>1&&(rt=k.createElement("div",{className:"".concat(pe,"-content")},N)),ke&&(rt=ke(rt)),k.createElement(p,Object(ge.a)({visible:H,ref:We,removeOnLeave:!0},ae),function(Et,$t){var fn=Et.className,sn=Et.style,cn=j()(pe,K,fn);return k.createElement("div",{ref:$t,className:cn,style:Object(J.a)(Object(J.a)({},sn),at)},rt)})});on.displayName="MobilePopupInner";var _i=on,vi=["visible","mobile"],Oi=k.forwardRef(function(B,re){var pe=B.visible,H=B.mobile,E=Object(de.a)(B,vi),N=Object(k.useState)(pe),w=Object(ve.a)(N,2),K=w[0],X=w[1],be=Object(k.useState)(!1),ae=Object(ve.a)(be,2),ke=ae[0],We=ae[1],at=Object(J.a)(Object(J.a)({},E),{},{visible:K});Object(k.useEffect)(function(){X(pe),pe&&H&&We(se())},[pe,H]);var rt=ke?k.createElement(_i,Object(ge.a)({},at,{mobile:H,ref:re})):k.createElement(wn,Object(ge.a)({},at,{ref:re}));return k.createElement("div",null,k.createElement(te,at),rt)});Oi.displayName="Popup";var zi=Oi,ui=k.createContext(null),sr=ui;function $i(){}function yr(){return""}function gr(B){return B?B.ownerDocument:window.document}var ao=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Gr(B){var re=function(pe){Object(Ge.a)(E,pe);var H=Object(ue.a)(E);function E(N){var w;Object(Ie.a)(this,E),w=H.call(this,N),w.popupRef=k.createRef(),w.triggerRef=k.createRef(),w.attachId=void 0,w.clickOutsideHandler=void 0,w.touchOutsideHandler=void 0,w.contextMenuOutsideHandler1=void 0,w.contextMenuOutsideHandler2=void 0,w.mouseDownTimeout=void 0,w.focusTime=void 0,w.preClickTime=void 0,w.preTouchTime=void 0,w.delayTimer=void 0,w.hasPopupMouseDown=void 0,w.onMouseEnter=function(X){var be=w.props.mouseEnterDelay;w.fireEvents("onMouseEnter",X),w.delaySetPopupVisible(!0,be,be?null:X)},w.onMouseMove=function(X){w.fireEvents("onMouseMove",X),w.setPoint(X)},w.onMouseLeave=function(X){w.fireEvents("onMouseLeave",X),w.delaySetPopupVisible(!1,w.props.mouseLeaveDelay)},w.onPopupMouseEnter=function(){w.clearDelayTimer()},w.onPopupMouseLeave=function(X){var be;if(X.relatedTarget&&!X.relatedTarget.setTimeout&&Object(Lt.a)((be=w.popupRef.current)===null||be===void 0?void 0:be.getElement(),X.relatedTarget))return;w.delaySetPopupVisible(!1,w.props.mouseLeaveDelay)},w.onFocus=function(X){w.fireEvents("onFocus",X),w.clearDelayTimer(),w.isFocusToShow()&&(w.focusTime=Date.now(),w.delaySetPopupVisible(!0,w.props.focusDelay))},w.onMouseDown=function(X){w.fireEvents("onMouseDown",X),w.preClickTime=Date.now()},w.onTouchStart=function(X){w.fireEvents("onTouchStart",X),w.preTouchTime=Date.now()},w.onBlur=function(X){w.fireEvents("onBlur",X),w.clearDelayTimer(),w.isBlurToHide()&&w.delaySetPopupVisible(!1,w.props.blurDelay)},w.onContextMenu=function(X){X.preventDefault(),w.fireEvents("onContextMenu",X),w.setPopupVisible(!0,X)},w.onContextMenuClose=function(){w.isContextMenuToShow()&&w.close()},w.onClick=function(X){if(w.fireEvents("onClick",X),w.focusTime){var be;if(w.preClickTime&&w.preTouchTime?be=Math.min(w.preClickTime,w.preTouchTime):w.preClickTime?be=w.preClickTime:w.preTouchTime&&(be=w.preTouchTime),Math.abs(be-w.focusTime)<20)return;w.focusTime=0}w.preClickTime=0,w.preTouchTime=0,w.isClickToShow()&&(w.isClickToHide()||w.isBlurToHide())&&X&&X.preventDefault&&X.preventDefault();var ae=!w.state.popupVisible;(w.isClickToHide()&&!ae||ae&&w.isClickToShow())&&w.setPopupVisible(!w.state.popupVisible,X)},w.onPopupMouseDown=function(){if(w.hasPopupMouseDown=!0,clearTimeout(w.mouseDownTimeout),w.mouseDownTimeout=window.setTimeout(function(){w.hasPopupMouseDown=!1},0),w.context){var X;(X=w.context).onPopupMouseDown.apply(X,arguments)}},w.onDocumentClick=function(X){if(w.props.mask&&!w.props.maskClosable)return;var be=X.target,ae=w.getRootDomNode(),ke=w.getPopupDomNode();(!Object(Lt.a)(ae,be)||w.isContextMenuOnly())&&!Object(Lt.a)(ke,be)&&!w.hasPopupMouseDown&&w.close()},w.getRootDomNode=function(){var X=w.props.getTriggerDOMNode;if(X)return X(w.triggerRef.current);try{var be=Object(mt.a)(w.triggerRef.current);if(be)return be}catch(ae){}return ot.a.findDOMNode(Object(Oe.a)(w))},w.getPopupClassNameFromAlign=function(X){var be=[],ae=w.props,ke=ae.popupPlacement,We=ae.builtinPlacements,at=ae.prefixCls,rt=ae.alignPoint,Et=ae.getPopupClassNameFromAlign;return ke&&We&&be.push(Ze(We,at,X,rt)),Et&&be.push(Et(X)),be.join(" ")},w.getComponent=function(){var X=w.props,be=X.prefixCls,ae=X.destroyPopupOnHide,ke=X.popupClassName,We=X.onPopupAlign,at=X.popupMotion,rt=X.popupAnimation,Et=X.popupTransitionName,$t=X.popupStyle,fn=X.mask,sn=X.maskAnimation,cn=X.maskTransitionName,pn=X.maskMotion,hn=X.zIndex,dn=X.popup,Rn=X.stretch,En=X.alignPoint,ti=X.mobile,xn=X.forceRender,Zt=w.state,Jt=Zt.popupVisible,An=Zt.point,Dn=w.getPopupAlign(),zt={};return w.isMouseEnterToShow()&&(zt.onMouseEnter=w.onPopupMouseEnter),w.isMouseLeaveToHide()&&(zt.onMouseLeave=w.onPopupMouseLeave),zt.onMouseDown=w.onPopupMouseDown,zt.onTouchStart=w.onPopupMouseDown,k.createElement(zi,Object(ge.a)({prefixCls:be,destroyPopupOnHide:ae,visible:Jt,point:En&&An,className:ke,align:Dn,onAlign:We,animation:rt,getClassNameFromAlign:w.getPopupClassNameFromAlign},zt,{stretch:Rn,getRootDomNode:w.getRootDomNode,style:$t,mask:fn,zIndex:hn,transitionName:Et,maskAnimation:sn,maskTransitionName:cn,maskMotion:pn,ref:w.popupRef,motion:at,mobile:ti,forceRender:xn}),typeof dn=="function"?dn():dn)},w.attachParent=function(X){$e.a.cancel(w.attachId);var be=w.props,ae=be.getPopupContainer,ke=be.getDocument,We=w.getRootDomNode(),at;ae?(We||ae.length===0)&&(at=ae(We)):at=ke(w.getRootDomNode()).body,at?at.appendChild(X):w.attachId=Object($e.a)(function(){w.attachParent(X)})},w.getContainer=function(){var X=w.props.getDocument,be=X(w.getRootDomNode()).createElement("div");return be.style.position="absolute",be.style.top="0",be.style.left="0",be.style.width="100%",w.attachParent(be),be},w.setPoint=function(X){var be=w.props.alignPoint;if(!be||!X)return;w.setState({point:{pageX:X.pageX,pageY:X.pageY}})},w.handlePortalUpdate=function(){w.state.prevPopupVisible!==w.state.popupVisible&&w.props.afterPopupVisibleChange(w.state.popupVisible)},w.triggerContextValue={onPopupMouseDown:w.onPopupMouseDown};var K;return"popupVisible"in N?K=!!N.popupVisible:K=!!N.defaultPopupVisible,w.state={prevPopupVisible:K,popupVisible:K},ao.forEach(function(X){w["fire".concat(X)]=function(be){w.fireEvents(X,be)}}),w}return Object(xe.a)(E,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var w=this.props,K=this.state;if(K.popupVisible){var X;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(X=w.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Le.a)(X,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(X=X||w.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Le.a)(X,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(X=X||w.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Le.a)(X,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Le.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),$e.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var w;return((w=this.popupRef.current)===null||w===void 0?void 0:w.getElement())||null}},{key:"getPopupAlign",value:function(){var w=this.props,K=w.popupPlacement,X=w.popupAlign,be=w.builtinPlacements;return K&&be?Fe(be,K,X):X}},{key:"setPopupVisible",value:function(w,K){var X=this.props.alignPoint,be=this.state.popupVisible;this.clearDelayTimer(),be!==w&&("popupVisible"in this.props||this.setState({popupVisible:w,prevPopupVisible:be}),this.props.onPopupVisibleChange(w)),X&&K&&w&&this.setPoint(K)}},{key:"delaySetPopupVisible",value:function(w,K,X){var be=this,ae=K*1e3;if(this.clearDelayTimer(),ae){var ke=X?{pageX:X.pageX,pageY:X.pageY}:null;this.delayTimer=window.setTimeout(function(){be.setPopupVisible(w,ke),be.clearDelayTimer()},ae)}else this.setPopupVisible(w,X)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(w){var K=this.props.children.props,X=this.props;return K[w]&&X[w]?this["fire".concat(w)]:K[w]||X[w]}},{key:"isClickToShow",value:function(){var w=this.props,K=w.action,X=w.showAction;return K.indexOf("click")!==-1||X.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var w=this.props.action;return w==="contextMenu"||w.length===1&&w[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var w=this.props,K=w.action,X=w.showAction;return K.indexOf("contextMenu")!==-1||X.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var w=this.props,K=w.action,X=w.hideAction;return K.indexOf("click")!==-1||X.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var w=this.props,K=w.action,X=w.showAction;return K.indexOf("hover")!==-1||X.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var w=this.props,K=w.action,X=w.hideAction;return K.indexOf("hover")!==-1||X.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var w=this.props,K=w.action,X=w.showAction;return K.indexOf("focus")!==-1||X.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var w=this.props,K=w.action,X=w.hideAction;return K.indexOf("focus")!==-1||X.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var w;(w=this.popupRef.current)===null||w===void 0||w.forceAlign()}}},{key:"fireEvents",value:function(w,K){var X=this.props.children.props[w];X&&X(K);var be=this.props[w];be&&be(K)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var w=this.state.popupVisible,K=this.props,X=K.children,be=K.forceRender,ae=K.alignPoint,ke=K.className,We=K.autoDestroy,at=k.Children.only(X),rt={key:"trigger"};this.isContextMenuToShow()?rt.onContextMenu=this.onContextMenu:rt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(rt.onClick=this.onClick,rt.onMouseDown=this.onMouseDown,rt.onTouchStart=this.onTouchStart):(rt.onClick=this.createTwoChains("onClick"),rt.onMouseDown=this.createTwoChains("onMouseDown"),rt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(rt.onMouseEnter=this.onMouseEnter,ae&&(rt.onMouseMove=this.onMouseMove)):rt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?rt.onMouseLeave=this.onMouseLeave:rt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(rt.onFocus=this.onFocus,rt.onBlur=this.onBlur):(rt.onFocus=this.createTwoChains("onFocus"),rt.onBlur=this.createTwoChains("onBlur"));var Et=j()(at&&at.props&&at.props.className,ke);Et&&(rt.className=Et);var $t=Object(J.a)({},rt);Object(Ot.c)(at)&&($t.ref=Object(Ot.a)(this.triggerRef,at.ref));var fn=k.cloneElement(at,$t),sn;return(w||this.popupRef.current||be)&&(sn=k.createElement(B,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!w&&We&&(sn=null),k.createElement(sr.Provider,{value:this.triggerContextValue},fn,sn)}}],[{key:"getDerivedStateFromProps",value:function(w,K){var X=w.popupVisible,be={};return X!==void 0&&K.popupVisible!==X&&(be.popupVisible=X,be.prevPopupVisible=K.popupVisible),be}}]),E}(k.Component);return re.contextType=sr,re.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:yr,getDocument:gr,onPopupVisibleChange:$i,afterPopupVisibleChange:$i,onPopupAlign:$i,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},re}var lr=Gr(ht.a),yi={adjustX:1,adjustY:1},Sr={topLeft:{points:["bl","tl"],overflow:yi,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:yi,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:yi,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:yi,offset:[4,0]}},Pr={topLeft:{points:["bl","tl"],overflow:yi,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:yi,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:yi,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:yi,offset:[4,0]}},yo=Sr,ei=0,In={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ci=function(re,pe,H){var E=$(pe),N=re.getState();re.setState({defaultActiveFirst:Object(J.a)(Object(J.a)({},N.defaultActiveFirst),{},Object(U.a)({},E,H))})},On=function(B){Object(Ge.a)(pe,B);var re=Object(ue.a)(pe);function pe(H){var E;Object(Ie.a)(this,pe),E=re.call(this,H),E.onDestroy=function(ae){E.props.onDestroy(ae)},E.onKeyDown=function(ae){var ke=ae.keyCode,We=E.menuInstance,at=E.props.store,rt=E.getVisible();if(ke===T.a.ENTER)return E.onTitleClick(ae),ci(at,E.props.eventKey,!0),!0;if(ke===T.a.RIGHT)return rt?We.onKeyDown(ae):(E.triggerOpenChange(!0),ci(at,E.props.eventKey,!0)),!0;if(ke===T.a.LEFT){var Et;if(rt)Et=We.onKeyDown(ae);else return;return Et||(E.triggerOpenChange(!1),Et=!0),Et}return rt&&(ke===T.a.UP||ke===T.a.DOWN)?We.onKeyDown(ae):void 0},E.onOpenChange=function(ae){E.props.onOpenChange(ae)},E.onPopupVisibleChange=function(ae){E.triggerOpenChange(ae,ae?"mouseenter":"mouseleave")},E.onMouseEnter=function(ae){var ke=E.props,We=ke.eventKey,at=ke.onMouseEnter,rt=ke.store;ci(rt,E.props.eventKey,!1),at({key:We,domEvent:ae})},E.onMouseLeave=function(ae){var ke=E.props,We=ke.parentMenu,at=ke.eventKey,rt=ke.onMouseLeave;We.subMenuInstance=Object(Oe.a)(E),rt({key:at,domEvent:ae})},E.onTitleMouseEnter=function(ae){var ke=E.props,We=ke.eventKey,at=ke.onItemHover,rt=ke.onTitleMouseEnter;at({key:We,hover:!0}),rt({key:We,domEvent:ae})},E.onTitleMouseLeave=function(ae){var ke=E.props,We=ke.parentMenu,at=ke.eventKey,rt=ke.onItemHover,Et=ke.onTitleMouseLeave;We.subMenuInstance=Object(Oe.a)(E),rt({key:at,hover:!1}),Et({key:at,domEvent:ae})},E.onTitleClick=function(ae){var ke=Object(Oe.a)(E),We=ke.props;if(We.onTitleClick({key:We.eventKey,domEvent:ae}),We.triggerSubMenuAction==="hover")return;E.triggerOpenChange(!E.getVisible(),"click"),ci(We.store,E.props.eventKey,!1)},E.onSubMenuClick=function(ae){typeof E.props.onClick=="function"&&E.props.onClick(E.addKeyPath(ae))},E.onSelect=function(ae){E.props.onSelect(ae)},E.onDeselect=function(ae){E.props.onDeselect(ae)},E.getPrefixCls=function(){return"".concat(E.props.rootPrefixCls,"-submenu")},E.getActiveClassName=function(){return"".concat(E.getPrefixCls(),"-active")},E.getDisabledClassName=function(){return"".concat(E.getPrefixCls(),"-disabled")},E.getSelectedClassName=function(){return"".concat(E.getPrefixCls(),"-selected")},E.getOpenClassName=function(){return"".concat(E.props.rootPrefixCls,"-submenu-open")},E.getVisible=function(){return E.state.isOpen},E.getMode=function(){return E.state.mode},E.saveMenuInstance=function(ae){E.menuInstance=ae},E.addKeyPath=function(ae){return Object(J.a)(Object(J.a)({},ae),{},{keyPath:(ae.keyPath||[]).concat(E.props.eventKey)})},E.triggerOpenChange=function(ae,ke){var We=E.props.eventKey,at=function(){E.onOpenChange({key:We,item:Object(Oe.a)(E),trigger:ke,open:ae})};ke==="mouseenter"?E.mouseenterTimeout=setTimeout(function(){at()},0):at()},E.isChildrenSelected=function(){var ae={find:!1};return Pe(E.props.children,E.props.selectedKeys,ae),ae.find},E.isInlineMode=function(){return E.getMode()==="inline"},E.adjustWidth=function(){if(!E.subMenuTitle||!E.menuInstance)return;var ae=ct.findDOMNode(E.menuInstance);if(ae.offsetWidth>=E.subMenuTitle.offsetWidth)return;ae.style.minWidth="".concat(E.subMenuTitle.offsetWidth,"px")},E.saveSubMenuTitle=function(ae){E.subMenuTitle=ae},E.getBaseProps=function(){var ae=Object(Oe.a)(E),ke=ae.props,We=E.getMode();return{mode:We==="horizontal"?"vertical":We,visible:E.getVisible(),level:ke.level+1,inlineIndent:ke.inlineIndent,focusable:!1,onClick:E.onSubMenuClick,onSelect:E.onSelect,onDeselect:E.onDeselect,onDestroy:E.onDestroy,selectedKeys:ke.selectedKeys,eventKey:"".concat(ke.eventKey,"-menu-"),openKeys:ke.openKeys,motion:ke.motion,onOpenChange:E.onOpenChange,subMenuOpenDelay:ke.subMenuOpenDelay,parentMenu:Object(Oe.a)(E),subMenuCloseDelay:ke.subMenuCloseDelay,forceSubMenuRender:ke.forceSubMenuRender,triggerSubMenuAction:ke.triggerSubMenuAction,builtinPlacements:ke.builtinPlacements,defaultActiveFirst:ke.store.getState().defaultActiveFirst[$(ke.eventKey)],multiple:ke.multiple,prefixCls:ke.rootPrefixCls,id:E.internalMenuId,manualRef:E.saveMenuInstance,itemIcon:ke.itemIcon,expandIcon:ke.expandIcon,direction:ke.direction}},E.getMotion=function(ae,ke){var We=Object(Oe.a)(E),at=We.haveRendered,rt=E.props,Et=rt.motion,$t=rt.rootPrefixCls,fn=Object(J.a)(Object(J.a)({},Et),{},{leavedClassName:"".concat($t,"-hidden"),removeOnLeave:!1,motionAppear:at||!ke||ae!=="inline"});return fn};var N=H.store,w=H.eventKey,K=N.getState(),X=K.defaultActiveFirst;E.isRootMenu=!1;var be=!1;return X&&(be=X[w]),ci(N,w,be),E.state={mode:H.mode,isOpen:H.isOpen},E}return Object(xe.a)(pe,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var E=this,N=this.props,w=N.mode,K=N.parentMenu,X=N.manualRef,be=N.isOpen,ae=function(){E.setState({mode:w,isOpen:be})},ke=be!==this.state.isOpen,We=w!==this.state.mode;if((We||ke)&&($e.a.cancel(this.updateStateRaf),We?this.updateStateRaf=Object($e.a)(ae):ae()),X&&X(this),w!=="horizontal"||!(K==null?void 0:K.isRootMenu)||!be)return;this.minWidthTimeout=setTimeout(function(){return E.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var E=this.props,N=E.onDestroy,w=E.eventKey;N&&N(w),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),$e.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(E,N){var w=this.getBaseProps();return k.createElement(lo,Object(ge.a)({},w,{id:this.internalMenuId,className:E,style:N}),this.props.children)}},{key:"renderChildren",value:function(){var E=this,N=this.getBaseProps(),w=N.mode,K=N.visible,X=N.forceSubMenuRender,be=N.direction,ae=this.getMotion(w,K);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||K||X,!this.haveOpened)return k.createElement("div",null);var ke=j()("".concat(N.prefixCls,"-sub"),Object(U.a)({},"".concat(N.prefixCls,"-rtl"),be==="rtl"));return this.isInlineMode()?k.createElement(p,Object(ge.a)({visible:N.visible,forceRender:X},ae),function(We){var at=We.className,rt=We.style,Et=j()(ke,at);return E.renderPopupMenu(Et,rt)}):this.renderPopupMenu(ke)}},{key:"render",value:function(){var E,N,w,K=Object(J.a)({},this.props),X=this.getVisible(),be=this.getPrefixCls(),ae=this.isInlineMode(),ke=this.getMode(),We=j()(be,"".concat(be,"-").concat(ke),(E={},Object(U.a)(E,K.className,!!K.className),Object(U.a)(E,this.getOpenClassName(),X),Object(U.a)(E,this.getActiveClassName(),K.active||X&&!ae),Object(U.a)(E,this.getDisabledClassName(),K.disabled),Object(U.a)(E,this.getSelectedClassName(),this.isChildrenSelected()),E));this.internalMenuId||(K.eventKey?this.internalMenuId="".concat(K.eventKey,"$Menu"):(ei+=1,this.internalMenuId="$__$".concat(ei,"$Menu")));var at={},rt={},Et={};K.disabled||(at={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},rt={onClick:this.onTitleClick},Et={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var $t={},fn=K.direction,sn=fn==="rtl";ae&&(sn?$t.paddingRight=K.inlineIndent*K.level:$t.paddingLeft=K.inlineIndent*K.level);var cn={};this.getVisible()&&(cn={"aria-owns":this.internalMenuId});var pn=null;ke!=="horizontal"&&(pn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(pn=k.createElement(this.props.expandIcon,Object(J.a)({},this.props))));var hn=k.createElement("div",Object(ge.a)({ref:this.saveSubMenuTitle,style:$t,className:"".concat(be,"-title"),role:"button"},Et,rt,{"aria-expanded":X},cn,{"aria-haspopup":"true",title:typeof K.title=="string"?K.title:void 0}),K.title,pn||k.createElement("i",{className:"".concat(be,"-arrow")})),dn=this.renderChildren(),Rn=((N=K.parentMenu)===null||N===void 0?void 0:N.isRootMenu)?K.parentMenu.props.getPopupContainer:function(Kn){return Kn.parentNode},En=In[ke],ti=K.popupOffset?{offset:K.popupOffset}:{},xn=j()((w={},Object(U.a)(w,K.popupClassName,K.popupClassName&&!ae),Object(U.a)(w,"".concat(be,"-rtl"),sn),w)),Zt=K.disabled,Jt=K.triggerSubMenuAction,An=K.subMenuOpenDelay,Dn=K.forceSubMenuRender,zt=K.subMenuCloseDelay,Ln=K.builtinPlacements;He.forEach(function(Kn){return delete K[Kn]}),delete K.onClick;var ni=sn?Object(J.a)(Object(J.a)({},Pr),Ln):Object(J.a)(Object(J.a)({},Sr),Ln);delete K.direction;var jn=this.getBaseProps(),Jn=ae?null:this.getMotion(jn.mode,jn.visible);return k.createElement("li",Object(ge.a)({},K,at,{className:We,role:"menuitem"}),k.createElement(lr,{prefixCls:be,popupClassName:j()("".concat(be,"-popup"),xn),getPopupContainer:Rn,builtinPlacements:ni,popupPlacement:En,popupVisible:ae?!1:X,popupAlign:ti,popup:ae?null:dn,action:Zt||ae?[]:[Jt],mouseEnterDelay:An,mouseLeaveDelay:zt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Dn,popupMotion:Jn},hn),ae?dn:null)}}]),pe}(k.Component);On.defaultProps={onMouseEnter:Ct,onMouseLeave:Ct,onTitleMouseEnter:Ct,onTitleMouseLeave:Ct,onTitleClick:Ct,manualRef:Ct,mode:"vertical",title:""};var di=Object(P.b)(function(B,re){var pe=B.openKeys,H=B.activeKey,E=B.selectedKeys,N=re.eventKey,w=re.subMenuKey;return{isOpen:pe.indexOf(N)>-1,active:H[w]===N,selectedKeys:E}})(On);di.isSubMenu=!0;var Fn=di,ur="menuitem-overflowed",hi=.5,Ui=function(B){Object(Ge.a)(pe,B);var re=Object(ue.a)(pe);function pe(){var H;return Object(Ie.a)(this,pe),H=re.apply(this,arguments),H.resizeObserver=null,H.mutationObserver=null,H.originalTotalWidth=0,H.overflowedItems=[],H.menuItemSizes=[],H.cancelFrameId=null,H.state={lastVisibleIndex:void 0},H.childRef=k.createRef(),H.getMenuItemNodes=function(){var E=H.props.prefixCls,N=H.childRef.current;return N?[].slice.call(N.children).filter(function(w){return w.className.split(" ").indexOf("".concat(E,"-overflowed-submenu"))<0}):[]},H.getOverflowedSubMenuItem=function(E,N,w){var K=H.props,X=K.overflowedIndicator,be=K.level,ae=K.mode,ke=K.prefixCls,We=K.theme;if(be!==1||ae!=="horizontal")return null;var at=H.props.children[0],rt=at.props,Et=rt.children,$t=rt.title,fn=rt.style,sn=Object(de.a)(rt,["children","title","style"]),cn=Object(J.a)({},fn),pn="".concat(E,"-overflowed-indicator"),hn="".concat(E,"-overflowed-indicator");N.length===0&&w!==!0?cn=Object(J.a)(Object(J.a)({},cn),{},{display:"none"}):w&&(cn=Object(J.a)(Object(J.a)({},cn),{},{visibility:"hidden",position:"absolute"}),pn="".concat(pn,"-placeholder"),hn="".concat(hn,"-placeholder"));var dn=We?"".concat(ke,"-").concat(We):"",Rn={};return He.forEach(function(En){sn[En]!==void 0&&(Rn[En]=sn[En])}),k.createElement(Fn,Object(ge.a)({title:X,className:"".concat(ke,"-overflowed-submenu"),popupClassName:dn},Rn,{key:pn,eventKey:hn,disabled:!1,style:cn}),N)},H.setChildrenWidthAndResize=function(){if(H.props.mode!=="horizontal")return;var E=H.childRef.current;if(!E)return;var N=E.children;if(!N||N.length===0)return;var w=E.children[N.length-1];Qe(w,"display","inline-block");var K=H.getMenuItemNodes(),X=K.filter(function(be){return be.className.split(" ").indexOf(ur)>=0});X.forEach(function(be){Qe(be,"display","inline-block")}),H.menuItemSizes=K.map(function(be){return Ue(be,!0)}),X.forEach(function(be){Qe(be,"display","none")}),H.overflowedIndicatorWidth=Ue(E.children[E.children.length-1],!0),H.originalTotalWidth=H.menuItemSizes.reduce(function(be,ae){return be+ae},0),H.handleResize(),Qe(w,"display","none")},H.handleResize=function(){if(H.props.mode!=="horizontal")return;var E=H.childRef.current;if(!E)return;var N=Ue(E);H.overflowedItems=[];var w=0,K;H.originalTotalWidth>N+hi&&(K=-1,H.menuItemSizes.forEach(function(X){w+=X,w+H.overflowedIndicatorWidth<=N&&(K+=1)})),H.setState({lastVisibleIndex:K})},H}return Object(xe.a)(pe,[{key:"componentDidMount",value:function(){var E=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var N=this.childRef.current;if(!N)return;this.resizeObserver=new Dt.default(function(w){w.forEach(function(){var K=E.cancelFrameId;cancelAnimationFrame(K),E.cancelFrameId=requestAnimationFrame(E.setChildrenWidthAndResize)})}),[].slice.call(N.children).concat(N).forEach(function(w){E.resizeObserver.observe(w)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){E.resizeObserver.disconnect(),[].slice.call(N.children).concat(N).forEach(function(w){E.resizeObserver.observe(w)}),E.setChildrenWidthAndResize()}),this.mutationObserver.observe(N,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(E){var N=this,w=this.state.lastVisibleIndex;return(E||[]).reduce(function(K,X,be){var ae=X;if(N.props.mode==="horizontal"){var ke=N.getOverflowedSubMenuItem(X.props.eventKey,[]);w!==void 0&&N.props.className.indexOf("".concat(N.props.prefixCls,"-root"))!==-1&&(be>w&&(ae=k.cloneElement(X,{style:{display:"none"},eventKey:"".concat(X.props.eventKey,"-hidden"),className:"".concat(ur)})),be===w+1&&(N.overflowedItems=E.slice(w+1).map(function(at){return k.cloneElement(at,{key:at.props.eventKey,mode:"vertical-left"})}),ke=N.getOverflowedSubMenuItem(X.props.eventKey,N.overflowedItems)));var We=[].concat(Object(_.a)(K),[ke,ae]);return be===E.length-1&&We.push(N.getOverflowedSubMenuItem(X.props.eventKey,[],!0)),We}return[].concat(Object(_.a)(K),[ae])},[])}},{key:"render",value:function(){var E=this.props,N=E.visible,w=E.prefixCls,K=E.overflowedIndicator,X=E.mode,be=E.level,ae=E.tag,ke=E.children,We=E.theme,at=Object(de.a)(E,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),rt=ae;return k.createElement(rt,Object(ge.a)({ref:this.childRef},at),this.renderChildren(ke))}}]),pe}(k.Component);Ui.defaultProps={tag:"div",className:""};var Vr=Ui;function Kr(B){return B.length?B.every(function(re){return!!re.props.disabled}):!0}function cr(B,re,pe){var H=B.getState();B.setState({activeKey:Object(J.a)(Object(J.a)({},H.activeKey),{},Object(U.a)({},re,pe))})}function br(B){return B.eventKey||"0-menu-"}function Pi(B,re){var pe=re,H=B.children,E=B.eventKey;if(pe){var N;if(Ae(H,function(w,K){w&&w.props&&!w.props.disabled&&pe===q(w,E,K)&&(N=!0)}),N)return pe}return pe=null,B.defaultActiveFirst&&Ae(H,function(w,K){!pe&&w&&!w.props.disabled&&(pe=q(w,E,K))}),pe}function so(B){if(!B)return;var re=this.instanceArray.indexOf(B);re!==-1?this.instanceArray[re]=B:this.instanceArray.push(B)}var rr=function(B){Object(Ge.a)(pe,B);var re=Object(ue.a)(pe);function pe(H){var E;return Object(Ie.a)(this,pe),E=re.call(this,H),E.onKeyDown=function(N,w){var K=N.keyCode,X;if(E.getFlatInstanceArray().forEach(function(ae){ae&&ae.props.active&&ae.onKeyDown&&(X=ae.onKeyDown(N))}),X)return 1;var be=null;return(K===T.a.UP||K===T.a.DOWN)&&(be=E.step(K===T.a.UP?-1:1)),be?(N.preventDefault(),cr(E.props.store,br(E.props),be.props.eventKey),typeof w=="function"&&w(be),1):void 0},E.onItemHover=function(N){var w=N.key,K=N.hover;cr(E.props.store,br(E.props),K?w:null)},E.onDeselect=function(N){E.props.onDeselect(N)},E.onSelect=function(N){E.props.onSelect(N)},E.onClick=function(N){E.props.onClick(N)},E.onOpenChange=function(N){E.props.onOpenChange(N)},E.onDestroy=function(N){E.props.onDestroy(N)},E.getFlatInstanceArray=function(){return E.instanceArray},E.step=function(N){var w=E.getFlatInstanceArray(),K=E.props.store.getState().activeKey[br(E.props)],X=w.length;if(!X)return null;N<0&&(w=w.concat().reverse());var be=-1;if(w.every(function(at,rt){return at&&at.props.eventKey===K?(be=rt,!1):!0}),!E.props.defaultActiveFirst&&be!==-1&&Kr(w.slice(be,X-1)))return;var ae=(be+1)%X,ke=ae;do{var We=w[ke];if(!We||We.props.disabled)ke=(ke+1)%X;else return We}while(ke!==ae);return null},E.renderCommonMenuItem=function(N,w,K){var X=E.props.store.getState(),be=Object(Oe.a)(E),ae=be.props,ke=q(N,ae.eventKey,w),We=N.props;if(!We||typeof N.type=="string")return N;var at=ke===X.activeKey,rt=Object(J.a)(Object(J.a)({mode:We.mode||ae.mode,level:ae.level,inlineIndent:ae.inlineIndent,renderMenuItem:E.renderMenuItem,rootPrefixCls:ae.prefixCls,index:w,parentMenu:ae.parentMenu,manualRef:We.disabled?void 0:Object(fe.a)(N.ref,so.bind(Object(Oe.a)(E))),eventKey:ke,active:!We.disabled&&at,multiple:ae.multiple,onClick:function($t){(We.onClick||Ct)($t),E.onClick($t)},onItemHover:E.onItemHover,motion:ae.motion,subMenuOpenDelay:ae.subMenuOpenDelay,subMenuCloseDelay:ae.subMenuCloseDelay,forceSubMenuRender:ae.forceSubMenuRender,onOpenChange:E.onOpenChange,onDeselect:E.onDeselect,onSelect:E.onSelect,builtinPlacements:ae.builtinPlacements,itemIcon:We.itemIcon||E.props.itemIcon,expandIcon:We.expandIcon||E.props.expandIcon},K),{},{direction:ae.direction});return(ae.mode==="inline"||et())&&(rt.triggerSubMenuAction="click"),k.cloneElement(N,Object(J.a)(Object(J.a)({},rt),{},{key:ke||w}))},E.renderMenuItem=function(N,w,K){if(!N)return null;var X=E.props.store.getState(),be={openKeys:X.openKeys,selectedKeys:X.selectedKeys,triggerSubMenuAction:E.props.triggerSubMenuAction,subMenuKey:K};return E.renderCommonMenuItem(N,w,be)},H.store.setState({activeKey:Object(J.a)(Object(J.a)({},H.store.getState().activeKey),{},Object(U.a)({},H.eventKey,Pi(H,H.activeKey)))}),E.instanceArray=[],E}return Object(xe.a)(pe,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(E){return this.props.visible||E.visible||this.props.className!==E.className||!ce()(this.props.style,E.style)}},{key:"componentDidUpdate",value:function(E){var N=this.props,w="activeKey"in N?N.activeKey:N.store.getState().activeKey[br(N)],K=Pi(N,w);if(K!==w)cr(N.store,br(N),K);else if("activeKey"in E){var X=Pi(E,E.activeKey);K!==X&&cr(N.store,br(N),K)}}},{key:"render",value:function(){var E=this,N=Object(ge.a)({},this.props);this.instanceArray=[];var w=j()(N.prefixCls,N.className,"".concat(N.prefixCls,"-").concat(N.mode)),K={className:w,role:N.role||"menu"};N.id&&(K.id=N.id),N.focusable&&(K.tabIndex=0,K.onKeyDown=this.onKeyDown);var X=N.prefixCls,be=N.eventKey,ae=N.visible,ke=N.level,We=N.mode,at=N.overflowedIndicator,rt=N.theme;return He.forEach(function(Et){return delete N[Et]}),delete N.onClick,k.createElement(Vr,Object(ge.a)({},N,{prefixCls:X,mode:We,tag:"ul",level:ke,theme:rt,visible:ae,overflowedIndicator:at},K),Object(Y.a)(N.children).map(function(Et,$t){return E.renderMenuItem(Et,$t,be||"0-menu-")}))}}]),pe}(k.Component);rr.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ct};var Qr=Object(P.b)()(rr),lo=Qr,jr=l("Kwbf");function ga(B,re,pe){var H=B.prefixCls,E=B.motion,N=B.defaultMotions,w=N===void 0?{}:N,K=B.openAnimation,X=B.openTransitionName,be=re.switchingModeFromInline;if(E)return E;if(Object(we.a)(K)==="object"&&K)Object(jr.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof K=="string")return{motionName:"".concat(H,"-open-").concat(K)};if(X)return{motionName:X};var ae=w[pe];return ae||(be?null:w.other)}var bo=function(B){Object(Ge.a)(pe,B);var re=Object(ue.a)(pe);function pe(H){var E;Object(Ie.a)(this,pe),E=re.call(this,H),E.onSelect=function(K){var X=Object(Oe.a)(E),be=X.props;if(be.selectable){var ae=E.store.getState(),ke=ae.selectedKeys,We=K.key;be.multiple?ke=ke.concat([We]):ke=[We],"selectedKeys"in be||E.store.setState({selectedKeys:ke}),be.onSelect(Object(J.a)(Object(J.a)({},K),{},{selectedKeys:ke}))}},E.onClick=function(K){var X=E.getRealMenuMode(),be=Object(Oe.a)(E),ae=be.store,ke=be.props.onOpenChange;X!=="inline"&&!("openKeys"in E.props)&&(ae.setState({openKeys:[]}),ke([])),E.props.onClick(K)},E.onKeyDown=function(K,X){E.innerMenu.getWrappedInstance().onKeyDown(K,X)},E.onOpenChange=function(K){var X=Object(Oe.a)(E),be=X.props,ae=E.store.getState().openKeys.concat(),ke=!1,We=function(rt){var Et=!1;if(rt.open)Et=ae.indexOf(rt.key)===-1,Et&&ae.push(rt.key);else{var $t=ae.indexOf(rt.key);Et=$t!==-1,Et&&ae.splice($t,1)}ke=ke||Et};Array.isArray(K)?K.forEach(We):We(K),ke&&("openKeys"in E.props||E.store.setState({openKeys:ae}),be.onOpenChange(ae))},E.onDeselect=function(K){var X=Object(Oe.a)(E),be=X.props;if(be.selectable){var ae=E.store.getState().selectedKeys.concat(),ke=K.key,We=ae.indexOf(ke);We!==-1&&ae.splice(We,1),"selectedKeys"in be||E.store.setState({selectedKeys:ae}),be.onDeselect(Object(J.a)(Object(J.a)({},K),{},{selectedKeys:ae}))}},E.onMouseEnter=function(K){E.restoreModeVerticalFromInline();var X=E.props.onMouseEnter;X&&X(K)},E.onTransitionEnd=function(K){var X=K.propertyName==="width"&&K.target===K.currentTarget,be=K.target.className,ae=Object.prototype.toString.call(be)==="[object SVGAnimatedString]"?be.animVal:be,ke=K.propertyName==="font-size"&&ae.indexOf("anticon")>=0;(X||ke)&&E.restoreModeVerticalFromInline()},E.setInnerMenu=function(K){E.innerMenu=K},E.isRootMenu=!0;var N=H.defaultSelectedKeys,w=H.defaultOpenKeys;return"selectedKeys"in H&&(N=H.selectedKeys||[]),"openKeys"in H&&(w=H.openKeys||[]),E.store=Object(P.c)({selectedKeys:N,openKeys:w,activeKey:{"0-menu-":Pi(H,H.activeKey)}}),E.state={switchingModeFromInline:!1,prevProps:H,inlineOpenKeys:[],store:E.store},E}return Object(xe.a)(pe,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(E){var N=this.props,w=N.siderCollapsed,K=N.inlineCollapsed,X=N.onOpenChange;(!E.inlineCollapsed&&K||!E.siderCollapsed&&w)&&X([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var E=this.props.collapsedWidth,N=this.store,w=this.prevOpenKeys,K=this.getInlineCollapsed()&&(E===0||E==="0"||E==="0px");K?(this.prevOpenKeys=N.getState().openKeys.concat(),this.store.setState({openKeys:[]})):w&&(this.store.setState({openKeys:w}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var E=this.props.mode,N=this.state.switchingModeFromInline,w=this.getInlineCollapsed();return N&&w?"inline":w?"vertical":E}},{key:"getInlineCollapsed",value:function(){var E=this.props,N=E.inlineCollapsed,w=E.siderCollapsed;return w!==void 0?w:N}},{key:"restoreModeVerticalFromInline",value:function(){var E=this.state.switchingModeFromInline;E&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var E=Object(J.a)({},Object(Re.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),N=this.getRealMenuMode();return E.className+=" ".concat(E.prefixCls,"-root"),E.direction==="rtl"&&(E.className+=" ".concat(E.prefixCls,"-rtl")),E=Object(J.a)(Object(J.a)({},E),{},{mode:N,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:ga(this.props,this.state,N)}),delete E.openAnimation,delete E.openTransitionName,k.createElement(P.a,{store:this.store},k.createElement(lo,Object(ge.a)({},E,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(E,N){var w=N.prevProps,K=N.store,X=K.getState(),be={},ae={prevProps:E};return w.mode==="inline"&&E.mode!=="inline"&&(ae.switchingModeFromInline=!0),"openKeys"in E?be.openKeys=E.openKeys||[]:((E.inlineCollapsed&&!w.inlineCollapsed||E.siderCollapsed&&!w.siderCollapsed)&&(ae.switchingModeFromInline=!0,ae.inlineOpenKeys=X.openKeys,be.openKeys=[]),(!E.inlineCollapsed&&w.inlineCollapsed||!E.siderCollapsed&&w.siderCollapsed)&&(be.openKeys=N.inlineOpenKeys,ae.inlineOpenKeys=[])),Object.keys(be).length&&K.setState(be),ae}}]),pe}(k.Component);bo.defaultProps={selectable:!0,onClick:Ct,onSelect:Ct,onOpenChange:Ct,onDeselect:Ct,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:k.createElement("span",null,"\xB7\xB7\xB7")};var Gt=bo,tn=function(B){Object(Ge.a)(pe,B);var re=Object(ue.a)(pe);function pe(){var H;return Object(Ie.a)(this,pe),H=re.apply(this,arguments),H.onKeyDown=function(E){var N=E.keyCode;return N===T.a.ENTER?(H.onClick(E),!0):void 0},H.onMouseLeave=function(E){var N=H.props,w=N.eventKey,K=N.onItemHover,X=N.onMouseLeave;K({key:w,hover:!1}),X({key:w,domEvent:E})},H.onMouseEnter=function(E){var N=H.props,w=N.eventKey,K=N.onItemHover,X=N.onMouseEnter;K({key:w,hover:!0}),X({key:w,domEvent:E})},H.onClick=function(E){var N=H.props,w=N.eventKey,K=N.multiple,X=N.onClick,be=N.onSelect,ae=N.onDeselect,ke=N.isSelected,We={key:w,keyPath:[w],item:Object(Oe.a)(H),domEvent:E};X(We),K?ke?ae(We):be(We):ke||be(We)},H.saveNode=function(E){H.node=E},H}return Object(xe.a)(pe,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var E=this.props;E.onDestroy&&E.onDestroy(E.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var E,N=Object(J.a)({},this.props),w=j()(this.getPrefixCls(),N.className,(E={},Object(U.a)(E,this.getActiveClassName(),!N.disabled&&N.active),Object(U.a)(E,this.getSelectedClassName(),N.isSelected),Object(U.a)(E,this.getDisabledClassName(),N.disabled),E)),K=Object(J.a)(Object(J.a)({},N.attribute),{},{title:typeof N.title=="string"?N.title:void 0,className:w,role:N.role||"menuitem","aria-disabled":N.disabled});N.role==="option"?K=Object(J.a)(Object(J.a)({},K),{},{role:"option","aria-selected":N.isSelected}):(N.role===null||N.role==="none")&&(K.role="none");var X={onClick:N.disabled?null:this.onClick,onMouseLeave:N.disabled?null:this.onMouseLeave,onMouseEnter:N.disabled?null:this.onMouseEnter},be=Object(J.a)({},N.style);N.mode==="inline"&&(N.direction==="rtl"?be.paddingRight=N.inlineIndent*N.level:be.paddingLeft=N.inlineIndent*N.level),He.forEach(function(ke){return delete N[ke]}),delete N.direction;var ae=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(ae=k.createElement(this.props.itemIcon,this.props)),k.createElement("li",Object(ge.a)({},Object(Re.a)(N,["onClick","onMouseEnter","onMouseLeave","onSelect"]),K,X,{style:be,ref:this.saveNode}),N.children,ae)}}]),pe}(k.Component);tn.isMenuItem=!0,tn.defaultProps={onSelect:Ct,onMouseEnter:Ct,onMouseLeave:Ct,manualRef:Ct};var Qt=Object(P.b)(function(B,re){var pe=B.activeKey,H=B.selectedKeys,E=re.eventKey,N=re.subMenuKey;return{active:pe[N]===E,isSelected:Array.isArray(H)?H.indexOf(E)!==-1:H===E}})(tn),vn=Qt,Tn=function(B){Object(Ge.a)(pe,B);var re=Object(ue.a)(pe);function pe(){var H;return Object(Ie.a)(this,pe),H=re.apply(this,arguments),H.renderInnerMenuItem=function(E){var N=H.props,w=N.renderMenuItem,K=N.index;return w(E,K,H.props.subMenuKey)},H}return Object(xe.a)(pe,[{key:"render",value:function(){var E=Object(ge.a)({},this.props),N=E.className,w=N===void 0?"":N,K=E.rootPrefixCls,X="".concat(K,"-item-group-title"),be="".concat(K,"-item-group-list"),ae=E.title,ke=E.children;return He.forEach(function(We){return delete E[We]}),delete E.direction,k.createElement("li",Object(ge.a)({},E,{onClick:function(at){return at.stopPropagation()},className:"".concat(w," ").concat(K,"-item-group")}),k.createElement("div",{className:X,title:typeof ae=="string"?ae:void 0},ae),k.createElement("ul",{className:be},k.Children.map(ke,this.renderInnerMenuItem)))}}]),pe}(k.Component);Tn.isMenuItemGroup=!0,Tn.defaultProps={disabled:!0};var Gn=Tn,kn=function(re){var pe=re.className,H=re.rootPrefixCls,E=re.style;return k.createElement("li",{className:"".concat(pe," ").concat(H,"-item-divider"),style:E})};kn.defaultProps={disabled:!0,className:"",style:{}};var bi=kn,Hi=Gt,Cn=l("eDIo");function kr(B,re){var pe=B.prefixCls,H=B.editable,E=B.locale,N=B.style;return!H||H.showAdd===!1?null:k.createElement("button",{ref:re,type:"button",className:"".concat(pe,"-nav-add"),style:N,"aria-label":(E==null?void 0:E.addAriaLabel)||"Add tab",onClick:function(K){H.onEdit("add",{event:K})}},H.addIcon||"+")}var Nn=k.forwardRef(kr);function Ai(B,re){var pe=B.prefixCls,H=B.id,E=B.tabs,N=B.locale,w=B.mobile,K=B.moreIcon,X=K===void 0?"More":K,be=B.moreTransitionName,ae=B.style,ke=B.className,We=B.editable,at=B.tabBarGutter,rt=B.rtl,Et=B.onTabClick,$t=Object(k.useState)(!1),fn=Object(ve.a)($t,2),sn=fn[0],cn=fn[1],pn=Object(k.useState)(null),hn=Object(ve.a)(pn,2),dn=hn[0],Rn=hn[1],En="".concat(H,"-more-popup"),ti="".concat(pe,"-dropdown"),xn=dn!==null?"".concat(En,"-").concat(dn):null,Zt=N==null?void 0:N.dropdownAriaLabel,Jt=k.createElement(Hi,{onClick:function(Jn){var Kn=Jn.key,mi=Jn.domEvent;Et(Kn,mi),cn(!1)},id:En,tabIndex:-1,role:"listbox","aria-activedescendant":xn,selectedKeys:[dn],"aria-label":Zt!==void 0?Zt:"expanded dropdown"},E.map(function(jn){return k.createElement(vn,{key:jn.key,id:"".concat(En,"-").concat(jn.key),role:"option","aria-controls":H&&"".concat(H,"-panel-").concat(jn.key),disabled:jn.disabled},jn.tab)}));function An(jn){for(var Jn=E.filter(function(Gi){return!Gi.disabled}),Kn=Jn.findIndex(function(Gi){return Gi.key===dn})||0,mi=Jn.length,Ti=0;Ti<mi;Ti+=1){Kn=(Kn+jn+mi)%mi;var ri=Jn[Kn];if(!ri.disabled){Rn(ri.key);return}}}function Dn(jn){var Jn=jn.which;if(!sn){[T.a.DOWN,T.a.SPACE,T.a.ENTER].includes(Jn)&&(cn(!0),jn.preventDefault());return}switch(Jn){case T.a.UP:An(-1),jn.preventDefault();break;case T.a.DOWN:An(1),jn.preventDefault();break;case T.a.ESC:cn(!1);break;case T.a.SPACE:case T.a.ENTER:dn!==null&&Et(dn,jn);break}}Object(k.useEffect)(function(){var jn=document.getElementById(xn);jn&&jn.scrollIntoView&&jn.scrollIntoView(!1)},[dn]),Object(k.useEffect)(function(){sn||Rn(null)},[sn]);var zt=Object(U.a)({},rt?"marginLeft":"marginRight",at);E.length||(zt.visibility="hidden",zt.order=1);var Ln=j()(Object(U.a)({},"".concat(ti,"-rtl"),rt)),ni=w?null:k.createElement(Cn.a,{prefixCls:ti,overlay:Jt,trigger:["hover"],visible:sn,transitionName:be,onVisibleChange:cn,overlayClassName:Ln,mouseEnterDelay:.1,mouseLeaveDelay:.1},k.createElement("button",{type:"button",className:"".concat(pe,"-nav-more"),style:zt,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":En,id:"".concat(H,"-more"),"aria-expanded":sn,onKeyDown:Dn},X));return k.createElement("div",{className:j()("".concat(pe,"-nav-operations"),ke),style:ae,ref:re},ni,k.createElement(Nn,{prefixCls:pe,locale:N,editable:We}))}var or=k.forwardRef(Ai),Qi=Object(k.createContext)(null),Co=.1,Jr=.01,pi=20,va=Math.pow(.995,pi);function ya(){var B=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(B)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(B.substr(0,4)))}function uo(B,re){var pe=Object(k.useState)(),H=Object(ve.a)(pe,2),E=H[0],N=H[1],w=Object(k.useState)(0),K=Object(ve.a)(w,2),X=K[0],be=K[1],ae=Object(k.useState)(0),ke=Object(ve.a)(ae,2),We=ke[0],at=ke[1],rt=Object(k.useState)(),Et=Object(ve.a)(rt,2),$t=Et[0],fn=Et[1],sn=Object(k.useRef)();function cn(Zt){var Jt=Zt.touches[0],An=Jt.screenX,Dn=Jt.screenY;N({x:An,y:Dn}),window.clearInterval(sn.current)}function pn(Zt){if(!E)return;Zt.preventDefault();var Jt=Zt.touches[0],An=Jt.screenX,Dn=Jt.screenY;N({x:An,y:Dn});var zt=An-E.x,Ln=Dn-E.y;re(zt,Ln);var ni=Date.now();be(ni),at(ni-X),fn({x:zt,y:Ln})}function hn(){if(!E)return;if(N(null),fn(null),$t){var Zt=$t.x/We,Jt=$t.y/We,An=Math.abs(Zt),Dn=Math.abs(Jt);if(Math.max(An,Dn)<Co)return;var zt=Zt,Ln=Jt;sn.current=window.setInterval(function(){if(Math.abs(zt)<Jr&&Math.abs(Ln)<Jr){window.clearInterval(sn.current);return}zt*=va,Ln*=va,re(zt*pi,Ln*pi)},pi)}}var dn=Object(k.useRef)(0),Rn=Object(k.useRef)(!1),En=Object(k.useRef)();function ti(Zt){var Jt=Zt.deltaX,An=Zt.deltaY,Dn=0,zt=Math.abs(Jt),Ln=Math.abs(An);zt===Ln?Dn=En.current==="x"?Jt:An:zt>Ln?(Dn=Jt,En.current="x"):(Dn=An,En.current="y");var ni=Date.now();ni-dn.current>100&&(Rn.current=!1),(re(-Dn,-Dn)||Rn.current)&&(Zt.preventDefault(),Rn.current=!0),dn.current=ni}var xn=Object(k.useRef)(null);xn.current={onTouchStart:cn,onTouchMove:pn,onTouchEnd:hn,onWheel:ti},k.useEffect(function(){function Zt(zt){xn.current.onTouchStart(zt)}function Jt(zt){xn.current.onTouchMove(zt)}function An(zt){xn.current.onTouchEnd(zt)}function Dn(zt){xn.current.onWheel(zt)}return document.addEventListener("touchmove",Jt,{passive:!1}),document.addEventListener("touchend",An,{passive:!1}),B.current.addEventListener("touchstart",Zt,{passive:!1}),B.current.addEventListener("wheel",Dn),function(){document.removeEventListener("touchmove",Jt),document.removeEventListener("touchend",An)}},[])}function Ga(){var B=Object(k.useRef)(new Map);function re(H){return B.current.has(H)||B.current.set(H,k.createRef()),B.current.get(H)}function pe(H){B.current.delete(H)}return[re,pe]}function Wo(B,re){var pe=k.useRef(B),H=k.useState({}),E=Object(ve.a)(H,2),N=E[1];function w(K){var X=typeof K=="function"?K(pe.current):K;X!==pe.current&&re(X,pe.current),pe.current=X,N({})}return[pe.current,w]}var ba=function(re){var pe=re.position,H=re.prefixCls,E=re.extra;if(!E)return null;var N,w=E;return pe==="right"&&(N=w.right||!w.left&&w||null),pe==="left"&&(N=w.left||null),N?k.createElement("div",{className:"".concat(H,"-extra-content")},N):null};function zo(B,re){var pe,H=k.useContext(Qi),E=H.prefixCls,N=H.tabs,w=B.className,K=B.style,X=B.id,be=B.animated,ae=B.activeKey,ke=B.rtl,We=B.extra,at=B.editable,rt=B.locale,Et=B.tabPosition,$t=B.tabBarGutter,fn=B.children,sn=B.onTabClick,cn=B.onTabScroll,pn=Object(k.useRef)(),hn=Object(k.useRef)(),dn=Object(k.useRef)(),Rn=Object(k.useRef)(),En=Ga(),ti=Object(ve.a)(En,2),xn=ti[0],Zt=ti[1],Jt=Et==="top"||Et==="bottom",An=Wo(0,function(Hn,Mn){Jt&&cn&&cn({direction:Hn>Mn?"left":"right"})}),Dn=Object(ve.a)(An,2),zt=Dn[0],Ln=Dn[1],ni=Wo(0,function(Hn,Mn){!Jt&&cn&&cn({direction:Hn>Mn?"top":"bottom"})}),jn=Object(ve.a)(ni,2),Jn=jn[0],Kn=jn[1],mi=Object(k.useState)(0),Ti=Object(ve.a)(mi,2),ri=Ti[0],Gi=Ti[1],dr=Object(k.useState)(0),Ji=Object(ve.a)(dr,2),Ri=Ji[0],qn=Ji[1],Xn=Object(k.useState)(0),oi=Object(ve.a)(Xn,2),ii=oi[0],hr=oi[1],Mr=Object(k.useState)(0),Or=Object(ve.a)(Mr,2),Qn=Or[0],vr=Or[1],Tr=Object(k.useState)(null),Zn=Object(ve.a)(Tr,2),Vn=Zn[0],Di=Zn[1],xa=Object(k.useState)(null),Ko=Object(ve.a)(xa,2),Rr=Ko[0],Yr=Ko[1],Eo=Object(k.useState)(0),Qo=Object(ve.a)(Eo,2),xo=Qo[0],Qa=Qo[1],Ja=Object(k.useState)(0),wa=Object(ve.a)(Ja,2),Jo=wa[0],Xo=wa[1],Zr=O(new Map),qr=Object(ve.a)(Zr,2),Xa=qr[0],wo=qr[1],co=L(N,Xa,ri),$r="".concat(E,"-nav-operations-hidden"),eo=0,fr=0;Jt?ke?(eo=0,fr=Math.max(0,ri-Vn)):(eo=Math.min(0,Vn-ri),fr=0):(eo=Math.min(0,Rr-Ri),fr=0);function Br(Hn){return Hn<eo?[eo,!1]:Hn>fr?[fr,!1]:[Hn,!0]}var Dr=Object(k.useRef)(),ho=Object(k.useState)(),_r=Object(ve.a)(ho,2),Ao=_r[0],Yo=_r[1];function So(){Yo(Date.now())}function Zo(){window.clearTimeout(Dr.current)}uo(pn,function(Hn,Mn){var Li=!1;function Yi(to,Er){to(function(mo){var Ir=Br(mo+Er),Ii=Object(ve.a)(Ir,2),Oo=Ii[0],$o=Ii[1];return Li=$o,Oo})}if(Jt){if(Vn>=ri)return Li;Yi(Ln,Hn)}else{if(Rr>=Ri)return Li;Yi(Kn,Mn)}return Zo(),So(),Li}),Object(k.useEffect)(function(){return Zo(),Ao&&(Dr.current=window.setTimeout(function(){Yo(0)},100)),Zo},[Ao]);function Lr(){var Hn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ae,Mn=co.get(Hn);if(!Mn)return;if(Jt){var Li=zt;ke?Mn.right<zt?Li=Mn.right:Mn.right+Mn.width>zt+Vn&&(Li=Mn.right+Mn.width-Vn):Mn.left<-zt?Li=-Mn.left:Mn.left+Mn.width>-zt+Vn&&(Li=-(Mn.left+Mn.width-Vn)),Kn(0),Ln(Br(Li)[0])}else{var Yi=Jn;Mn.top<-Jn?Yi=-Mn.top:Mn.top+Mn.height>-Jn+Rr&&(Yi=-(Mn.top+Mn.height-Rr)),Ln(0),Kn(Br(Yi)[0])}}var Ur=he(co,{width:Vn,height:Rr,left:zt,top:Jn},{width:ii,height:Qn},{width:xo,height:Jo},Object(J.a)(Object(J.a)({},B),{},{tabs:N})),Aa=Object(ve.a)(Ur,2),Ya=Aa[0],Za=Aa[1],qa=N.map(function(Hn){var Mn=Hn.key;return k.createElement(f,{id:X,prefixCls:E,key:Mn,rtl:ke,tab:Hn,closable:Hn.closable,editable:at,active:Mn===ae,tabPosition:Et,tabBarGutter:$t,renderWrapper:fn,removeAriaLabel:rt==null?void 0:rt.removeAriaLabel,ref:xn(Mn),onClick:function(Yi){sn(Mn,Yi)},onRemove:function(){Zt(Mn)},onFocus:function(){Lr(Mn),So(),ke||(pn.current.scrollLeft=0),pn.current.scrollTop=0}})}),qo=A(function(){var Hn,Mn,Li,Yi,to,Er,mo,Ir,Ii,Oo=((Hn=pn.current)===null||Hn===void 0?void 0:Hn.offsetWidth)||0,$o=((Mn=pn.current)===null||Mn===void 0?void 0:Mn.offsetHeight)||0,ea=((Li=Rn.current)===null||Li===void 0?void 0:Li.offsetWidth)||0,Zi=((Yi=Rn.current)===null||Yi===void 0?void 0:Yi.offsetHeight)||0,Wn=((to=dn.current)===null||to===void 0?void 0:to.offsetWidth)||0,mr=((Er=dn.current)===null||Er===void 0?void 0:Er.offsetHeight)||0;Di(Oo),Yr($o),Qa(ea),Xo(Zi);var xr=(((mo=hn.current)===null||mo===void 0?void 0:mo.offsetWidth)||0)-ea,wr=(((Ir=hn.current)===null||Ir===void 0?void 0:Ir.offsetHeight)||0)-Zi;Gi(xr),qn(wr);var ta=(Ii=dn.current)===null||Ii===void 0?void 0:Ii.className.includes($r);hr(xr-(ta?0:Wn)),vr(wr-(ta?0:mr)),wo(function(){var To=new Map;return N.forEach(function(Ta){var Ra=Ta.key,Wr=xn(Ra).current;Wr&&To.set(Ra,{width:Wr.offsetWidth,height:Wr.offsetHeight,left:Wr.offsetLeft,top:Wr.offsetTop})}),To})}),$a=N.slice(0,Ya),Xi=N.slice(Za+1),Ci=[].concat(Object(_.a)($a),Object(_.a)(Xi)),Fi=Object(k.useState)(),Ei=Object(ve.a)(Fi,2),fo=Ei[0],es=Ei[1],pr=co.get(ae),Sa=Object(k.useRef)();function ka(){C.a.cancel(Sa.current)}Object(k.useEffect)(function(){var Hn={};return pr&&(Jt?(ke?Hn.right=pr.right:Hn.left=pr.left,Hn.width=pr.width):(Hn.top=pr.top,Hn.height=pr.height)),ka(),Sa.current=C()(function(){es(Hn)}),ka},[pr,Jt,ke]),Object(k.useEffect)(function(){Lr()},[ae,pr,co,Jt]),Object(k.useEffect)(function(){qo()},[ke,$t,ae,N.map(function(Hn){return Hn.key}).join("_")]);var Ma=!!Ci.length,Fr="".concat(E,"-nav-wrap"),ko,po,Oa,Mo;return Jt?ke?(po=zt>0,ko=zt+Vn<ri):(ko=zt<0,po=-zt+Vn<ri):(Oa=Jn<0,Mo=-Jn+Rr<Ri),k.createElement("div",{ref:re,role:"tablist",className:j()("".concat(E,"-nav"),w),style:K,onKeyDown:function(){So()}},k.createElement(ba,{position:"left",extra:We,prefixCls:E}),k.createElement(R.a,{onResize:qo},k.createElement("div",{className:j()(Fr,(pe={},Object(U.a)(pe,"".concat(Fr,"-ping-left"),ko),Object(U.a)(pe,"".concat(Fr,"-ping-right"),po),Object(U.a)(pe,"".concat(Fr,"-ping-top"),Oa),Object(U.a)(pe,"".concat(Fr,"-ping-bottom"),Mo),pe)),ref:pn},k.createElement(R.a,{onResize:qo},k.createElement("div",{ref:hn,className:"".concat(E,"-nav-list"),style:{transform:"translate(".concat(zt,"px, ").concat(Jn,"px)"),transition:Ao?"none":void 0}},qa,k.createElement(Nn,{ref:Rn,prefixCls:E,locale:rt,editable:at,style:{visibility:Ma?"hidden":null}}),k.createElement("div",{className:j()("".concat(E,"-ink-bar"),Object(U.a)({},"".concat(E,"-ink-bar-animated"),be.inkBar)),style:fo}))))),k.createElement(or,Object.assign({},B,{ref:dn,prefixCls:E,tabs:Ci,className:!Ma&&$r})),k.createElement(ba,{position:"right",extra:We,prefixCls:E}))}var Ho=k.forwardRef(zo);function Va(B){var re=B.id,pe=B.activeKey,H=B.animated,E=B.tabPosition,N=B.rtl,w=B.destroyInactiveTabPane,K=k.useContext(Qi),X=K.prefixCls,be=K.tabs,ae=H.tabPane,ke=be.findIndex(function(We){return We.key===pe});return k.createElement("div",{className:j()("".concat(X,"-content-holder"))},k.createElement("div",{className:j()("".concat(X,"-content"),"".concat(X,"-content-").concat(E),Object(U.a)({},"".concat(X,"-content-animated"),ae)),style:ke&&ae?Object(U.a)({},N?"marginRight":"marginLeft","-".concat(ke,"00%")):null},be.map(function(We){return k.cloneElement(We.node,{key:We.key,prefixCls:X,tabKey:We.key,id:re,animated:ae,active:We.key===pe,destroyInactiveTabPane:w})})))}function Ca(B){var re=B.prefixCls,pe=B.forceRender,H=B.className,E=B.style,N=B.id,w=B.active,K=B.animated,X=B.destroyInactiveTabPane,be=B.tabKey,ae=B.children,ke=k.useState(pe),We=Object(ve.a)(ke,2),at=We[0],rt=We[1];k.useEffect(function(){w?rt(!0):X&&rt(!1)},[w,X]);var Et={};return w||(K?(Et.visibility="hidden",Et.height=0,Et.overflowY="hidden"):Et.display="none"),k.createElement("div",{id:N&&"".concat(N,"-panel-").concat(be),role:"tabpanel",tabIndex:w?0:-1,"aria-labelledby":N&&"".concat(N,"-tab-").concat(be),"aria-hidden":!w,style:Object(J.a)(Object(J.a)({},Et),E),className:j()("".concat(re,"-tabpane"),w&&"".concat(re,"-tabpane-active"),H)},(w||at||pe)&&ae)}var Go=0;function Ea(B){return Object(Y.a)(B).map(function(re){if(k.isValidElement(re)){var pe=re.key!==void 0?String(re.key):void 0;return Object(J.a)(Object(J.a)({key:pe},re.props),{},{node:re})}return null}).filter(function(re){return re})}function Ka(B,re){var pe,H=B.id,E=B.prefixCls,N=E===void 0?"rc-tabs":E,w=B.className,K=B.children,X=B.direction,be=B.activeKey,ae=B.defaultActiveKey,ke=B.editable,We=B.animated,at=B.tabPosition,rt=at===void 0?"top":at,Et=B.tabBarGutter,$t=B.tabBarStyle,fn=B.tabBarExtraContent,sn=B.locale,cn=B.moreIcon,pn=B.moreTransitionName,hn=B.destroyInactiveTabPane,dn=B.renderTabBar,Rn=B.onChange,En=B.onTabClick,ti=B.onTabScroll,xn=Object(de.a)(B,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),Zt=Ea(K),Jt=X==="rtl",An;We===!1?An={inkBar:!1,tabPane:!1}:An=Object(J.a)({inkBar:!0,tabPane:!1},We!==!0?We:null);var Dn=Object(k.useState)(!1),zt=Object(ve.a)(Dn,2),Ln=zt[0],ni=zt[1];Object(k.useEffect)(function(){ni(ya())},[]);var jn=Object(W.a)(function(){var Qn;return(Qn=Zt[0])===null||Qn===void 0?void 0:Qn.key},{value:be,defaultValue:ae}),Jn=Object(ve.a)(jn,2),Kn=Jn[0],mi=Jn[1],Ti=Object(k.useState)(function(){return Zt.findIndex(function(Qn){return Qn.key===Kn})}),ri=Object(ve.a)(Ti,2),Gi=ri[0],dr=ri[1];Object(k.useEffect)(function(){var Qn=Zt.findIndex(function(Tr){return Tr.key===Kn});if(Qn===-1){var vr;Qn=Math.max(0,Math.min(Gi,Zt.length-1)),mi((vr=Zt[Qn])===null||vr===void 0?void 0:vr.key)}dr(Qn)},[Zt.map(function(Qn){return Qn.key}).join("_"),Kn,Gi]);var Ji=Object(W.a)(null,{value:H}),Ri=Object(ve.a)(Ji,2),qn=Ri[0],Xn=Ri[1],oi=rt;Ln&&!["left","right"].includes(rt)&&(oi="top"),Object(k.useEffect)(function(){H||(Xn("rc-tabs-".concat(Go)),Go+=1)},[]);function ii(Qn,vr){En==null||En(Qn,vr),mi(Qn),Rn==null||Rn(Qn)}var hr={id:qn,activeKey:Kn,animated:An,tabPosition:oi,rtl:Jt,mobile:Ln},Mr,Or=Object(J.a)(Object(J.a)({},hr),{},{editable:ke,locale:sn,moreIcon:cn,moreTransitionName:pn,tabBarGutter:Et,onTabClick:ii,onTabScroll:ti,extra:fn,style:$t,panes:K});return dn?Mr=dn(Or,Ho):Mr=k.createElement(Ho,Object.assign({},Or)),k.createElement(Qi.Provider,{value:{tabs:Zt,prefixCls:N}},k.createElement("div",Object.assign({ref:re,id:H,className:j()(N,"".concat(N,"-").concat(oi),(pe={},Object(U.a)(pe,"".concat(N,"-mobile"),Ln),Object(U.a)(pe,"".concat(N,"-editable"),ke),Object(U.a)(pe,"".concat(N,"-rtl"),Jt),pe),w)},xn),Mr,k.createElement(Va,Object.assign({destroyInactiveTabPane:hn},hr,{animated:An}))))}var Xr=k.forwardRef(Ka);Xr.TabPane=Ca;var Cr=Xr,Vo=Q.b=Cr},kPWJ:function(Be,Q,l){Be.exports=l.p+"static/question.cb52bef9.gif"},kPYp:function(Be,Q){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUg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Q2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},kSUc:function(Be,Q,l){},l2Kq:function(Be,Q,l){Be.exports=l.p+"static/match_ad.24dc22fd.jpg"},lZu9:function(Be,Q,l){(function(U){U(l("VrN/"),l("1eCo"),l("8EBN"))})(function(U){"use strict";U.defineMode("markdown",function(ve,de){var J=U.getMode(ve,"text/html"),k=J.name=="null";function me(I){if(U.findModeByName){var b=U.findModeByName(I);b&&(I=b.mime||b.mimes[0])}var ye=U.getMode(ve,I);return ye.name=="null"?null:ye}de.highlightFormatting===void 0&&(de.highlightFormatting=!1),de.maxBlockquoteDepth===void 0&&(de.maxBlockquoteDepth=0),de.taskLists===void 0&&(de.taskLists=!1),de.strikethrough===void 0&&(de.strikethrough=!1),de.emoji===void 0&&(de.emoji=!1),de.fencedCodeBlockHighlighting===void 0&&(de.fencedCodeBlockHighlighting=!0),de.fencedCodeBlockDefaultMode===void 0&&(de.fencedCodeBlockDefaultMode="text/plain"),de.xml===void 0&&(de.xml=!0),de.tokenTypeOverrides===void 0&&(de.tokenTypeOverrides={});var j={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 Y in j)j.hasOwnProperty(Y)&&de.tokenTypeOverrides[Y]&&(j[Y]=de.tokenTypeOverrides[Y]);var W=/^([*\-_])(?:\s*\1){2,}\s*$/,_=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,y=/^\[(x| )\](?=\s)/i,C=de.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,R=/^ {0,3}(?:\={1,}|-{2,})\s*$/,A=/^[^#!\[\]*_\\<>` "'(~:]+/,O=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,T=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,f=" ";function S(I,b,ye){return b.f=b.inline=ye,ye(I,b)}function L(I,b,ye){return b.f=b.block=ye,ye(I,b)}function le(I){return!I||!/\S/.test(I.string)}function he(I){if(I.linkTitle=!1,I.linkHref=!1,I.linkText=!1,I.em=!1,I.strong=!1,I.strikethrough=!1,I.quote=0,I.indentedCode=!1,I.f==Ie){var b=k;if(!b){var ye=U.innerMode(J,I.htmlState);b=ye.mode.name=="xml"&&ye.state.tagStart===null&&!ye.state.context&&ye.state.tokenize.isInText}b&&(I.f=ue,I.block=ge,I.htmlState=null)}return I.trailingSpace=0,I.trailingSpaceNewLine=!1,I.prevLine=I.thisLine,I.thisLine={stream:null},null}function ge(I,b){var ye=I.column()===b.indentation,je=le(b.prevLine.stream),_e=b.indentedCode,st=b.prevLine.hr,St=b.list!==!1,tt=(b.listStack[b.listStack.length-1]||0)+3;b.indentedCode=!1;var nt=b.indentation;if(b.indentationDiff===null&&(b.indentationDiff=b.indentation,St)){for(b.list=null;nt<b.listStack[b.listStack.length-1];)b.listStack.pop(),b.listStack.length?b.indentation=b.listStack[b.listStack.length-1]:b.list=!1;b.list!==!1&&(b.indentationDiff=nt-b.listStack[b.listStack.length-1])}var Je=!je&&!st&&!b.prevLine.header&&(!St||!_e)&&!b.prevLine.fencedCodeEnd,Ye=(b.list===!1||st||je)&&b.indentation<=tt&&I.match(W),Ee=null;if(b.indentationDiff>=4&&(_e||b.prevLine.fencedCodeEnd||b.prevLine.header||je))return I.skipToEnd(),b.indentedCode=!0,j.code;if(I.eatSpace())return null;if(ye&&b.indentation<=tt&&(Ee=I.match(C))&&Ee[1].length<=6)return b.quote=0,b.header=Ee[1].length,b.thisLine.header=!0,de.highlightFormatting&&(b.formatting="header"),b.f=b.inline,Oe(b);if(b.indentation<=tt&&I.eat(">"))return b.quote=ye?1:b.quote+1,de.highlightFormatting&&(b.formatting="quote"),I.eatSpace(),Oe(b);if(!Ye&&!b.setext&&ye&&b.indentation<=tt&&(Ee=I.match(_))){var F=Ee[1]?"ol":"ul";return b.indentation=nt+I.current().length,b.list=!0,b.quote=0,b.listStack.push(b.indentation),b.em=!1,b.strong=!1,b.code=!1,b.strikethrough=!1,de.taskLists&&I.match(y,!1)&&(b.taskList=!0),b.f=b.inline,de.highlightFormatting&&(b.formatting=["list","list-"+F]),Oe(b)}else{if(ye&&b.indentation<=tt&&(Ee=I.match(O,!0)))return b.quote=0,b.fencedEndRE=new RegExp(Ee[1]+"+ *$"),b.localMode=de.fencedCodeBlockHighlighting&&me(Ee[2]||de.fencedCodeBlockDefaultMode),b.localMode&&(b.localState=U.startState(b.localMode)),b.f=b.block=xe,de.highlightFormatting&&(b.formatting="code-block"),b.code=-1,Oe(b);if(b.setext||(!Je||!St)&&!b.quote&&b.list===!1&&!b.code&&!Ye&&!T.test(I.string)&&(Ee=I.lookAhead(1))&&(Ee=Ee.match(R)))return b.setext?(b.header=b.setext,b.setext=0,I.skipToEnd(),de.highlightFormatting&&(b.formatting="header")):(b.header=Ee[0].charAt(0)=="="?1:2,b.setext=b.header),b.thisLine.header=!0,b.f=b.inline,Oe(b);if(Ye)return I.skipToEnd(),b.hr=!0,b.thisLine.hr=!0,j.hr;if(I.peek()==="[")return S(I,b,ce)}return S(I,b,b.inline)}function Ie(I,b){var ye=J.token(I,b.htmlState);if(!k){var je=U.innerMode(J,b.htmlState);(je.mode.name=="xml"&&je.state.tagStart===null&&!je.state.context&&je.state.tokenize.isInText||b.md_inside&&I.current().indexOf(">")>-1)&&(b.f=ue,b.block=ge,b.htmlState=null)}return ye}function xe(I,b){var ye=b.listStack[b.listStack.length-1]||0,je=b.indentation<ye,_e=ye+3;if(b.fencedEndRE&&b.indentation<=_e&&(je||I.match(b.fencedEndRE))){de.highlightFormatting&&(b.formatting="code-block");var st;return je||(st=Oe(b)),b.localMode=b.localState=null,b.block=ge,b.f=ue,b.fencedEndRE=null,b.code=0,b.thisLine.fencedCodeEnd=!0,je?L(I,b,b.block):st}else return b.localMode?b.localMode.token(I,b.localState):(I.skipToEnd(),j.code)}function Oe(I){var b=[];if(I.formatting){b.push(j.formatting),typeof I.formatting=="string"&&(I.formatting=[I.formatting]);for(var ye=0;ye<I.formatting.length;ye++)b.push(j.formatting+"-"+I.formatting[ye]),I.formatting[ye]==="header"&&b.push(j.formatting+"-"+I.formatting[ye]+"-"+I.header),I.formatting[ye]==="quote"&&(!de.maxBlockquoteDepth||de.maxBlockquoteDepth>=I.quote?b.push(j.formatting+"-"+I.formatting[ye]+"-"+I.quote):b.push("error"))}if(I.taskOpen)return b.push("meta"),b.length?b.join(" "):null;if(I.taskClosed)return b.push("property"),b.length?b.join(" "):null;if(I.linkHref?b.push(j.linkHref,"url"):(I.strong&&b.push(j.strong),I.em&&b.push(j.em),I.strikethrough&&b.push(j.strikethrough),I.emoji&&b.push(j.emoji),I.linkText&&b.push(j.linkText),I.code&&b.push(j.code),I.image&&b.push(j.image),I.imageAltText&&b.push(j.imageAltText,"link"),I.imageMarker&&b.push(j.imageMarker)),I.header&&b.push(j.header,j.header+"-"+I.header),I.quote&&(b.push(j.quote),!de.maxBlockquoteDepth||de.maxBlockquoteDepth>=I.quote?b.push(j.quote+"-"+I.quote):b.push(j.quote+"-"+de.maxBlockquoteDepth)),I.list!==!1){var je=(I.listStack.length-1)%3;je?je===1?b.push(j.list2):b.push(j.list3):b.push(j.list1)}return I.trailingSpaceNewLine?b.push("trailing-space-new-line"):I.trailingSpace&&b.push("trailing-space-"+(I.trailingSpace%2?"a":"b")),b.length?b.join(" "):null}function Ge(I,b){return I.match(A,!0)?Oe(b):void 0}function ue(I,b){var ye=b.text(I,b);if(typeof ye!="undefined")return ye;if(b.list)return b.list=null,Oe(b);if(b.taskList){var je=I.match(y,!0)[1]===" ";return je?b.taskOpen=!0:b.taskClosed=!0,de.highlightFormatting&&(b.formatting="task"),b.taskList=!1,Oe(b)}if(b.taskOpen=!1,b.taskClosed=!1,b.header&&I.match(/^#+$/,!0))return de.highlightFormatting&&(b.formatting="header"),Oe(b);var _e=I.next();if(b.linkTitle){b.linkTitle=!1;var st=_e;_e==="("&&(st=")"),st=(st+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var St="^\\s*(?:[^"+st+"\\\\]+|\\\\\\\\|\\\\.)"+st;if(I.match(new RegExp(St),!0))return j.linkHref}if(_e==="`"){var tt=b.formatting;de.highlightFormatting&&(b.formatting="code"),I.eatWhile("`");var nt=I.current().length;if(b.code==0&&(!b.quote||nt==1))return b.code=nt,Oe(b);if(nt==b.code){var Je=Oe(b);return b.code=0,Je}else return b.formatting=tt,Oe(b)}else if(b.code)return Oe(b);if(_e==="\\"&&(I.next(),de.highlightFormatting)){var Ye=Oe(b),Ee=j.formatting+"-escape";return Ye?Ye+" "+Ee:Ee}if(_e==="!"&&I.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return b.imageMarker=!0,b.image=!0,de.highlightFormatting&&(b.formatting="image"),Oe(b);if(_e==="["&&b.imageMarker&&I.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return b.imageMarker=!1,b.imageAltText=!0,de.highlightFormatting&&(b.formatting="image"),Oe(b);if(_e==="]"&&b.imageAltText){de.highlightFormatting&&(b.formatting="image");var Ye=Oe(b);return b.imageAltText=!1,b.image=!1,b.inline=b.f=Re,Ye}if(_e==="["&&!b.image)return b.linkText&&I.match(/^.*?\]/)||(b.linkText=!0,de.highlightFormatting&&(b.formatting="link")),Oe(b);if(_e==="]"&&b.linkText){de.highlightFormatting&&(b.formatting="link");var Ye=Oe(b);return b.linkText=!1,b.inline=b.f=I.match(/\(.*?\)| ?\[.*?\]/,!1)?Re:ue,Ye}if(_e==="<"&&I.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){b.f=b.inline=P,de.highlightFormatting&&(b.formatting="link");var Ye=Oe(b);return Ye?Ye+=" ":Ye="",Ye+j.linkInline}if(_e==="<"&&I.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){b.f=b.inline=P,de.highlightFormatting&&(b.formatting="link");var Ye=Oe(b);return Ye?Ye+=" ":Ye="",Ye+j.linkEmail}if(de.xml&&_e==="<"&&I.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var F=I.string.indexOf(">",I.pos);if(F!=-1){var it=I.string.substring(I.start,F);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(it)&&(b.md_inside=!0)}return I.backUp(1),b.htmlState=U.startState(J),L(I,b,Ie)}if(de.xml&&_e==="<"&&I.match(/^\/\w*?>/))return b.md_inside=!1,"tag";if(_e==="*"||_e==="_"){for(var Mt=1,Tt=I.pos==1?" ":I.string.charAt(I.pos-2);Mt<3&&I.eat(_e);)Mt++;var Ct=I.peek()||" ",q=!/\s/.test(Ct)&&(!m.test(Ct)||/\s/.test(Tt)||m.test(Tt)),$=!/\s/.test(Tt)&&(!m.test(Tt)||/\s/.test(Ct)||m.test(Ct)),Ae=null,Pe=null;if(Mt%2&&(!b.em&&q&&(_e==="*"||!$||m.test(Tt))?Ae=!0:b.em==_e&&$&&(_e==="*"||!q||m.test(Ct))&&(Ae=!1)),Mt>1&&(!b.strong&&q&&(_e==="*"||!$||m.test(Tt))?Pe=!0:b.strong==_e&&$&&(_e==="*"||!q||m.test(Ct))&&(Pe=!1)),Pe!=null||Ae!=null){de.highlightFormatting&&(b.formatting=Ae==null?"strong":Pe==null?"em":"strong em"),Ae===!0&&(b.em=_e),Pe===!0&&(b.strong=_e);var Je=Oe(b);return Ae===!1&&(b.em=!1),Pe===!1&&(b.strong=!1),Je}}else if(_e===" "&&(I.eat("*")||I.eat("_"))){if(I.peek()===" ")return Oe(b);I.backUp(1)}if(de.strikethrough){if(_e==="~"&&I.eatWhile(_e)){if(b.strikethrough){de.highlightFormatting&&(b.formatting="strikethrough");var Je=Oe(b);return b.strikethrough=!1,Je}else if(I.match(/^[^\s]/,!1))return b.strikethrough=!0,de.highlightFormatting&&(b.formatting="strikethrough"),Oe(b)}else if(_e===" "&&I.match(/^~~/,!0)){if(I.peek()===" ")return Oe(b);I.backUp(2)}}if(de.emoji&&_e===":"&&I.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){b.emoji=!0,de.highlightFormatting&&(b.formatting="emoji");var He=Oe(b);return b.emoji=!1,He}return _e===" "&&(I.match(/^ +$/,!1)?b.trailingSpace++:b.trailingSpace&&(b.trailingSpaceNewLine=!0)),Oe(b)}function P(I,b){var ye=I.next();if(ye===">"){b.f=b.inline=ue,de.highlightFormatting&&(b.formatting="link");var je=Oe(b);return je?je+=" ":je="",je+j.linkInline}return I.match(/^[^>]+/,!0),j.linkInline}function Re(I,b){if(I.eatSpace())return null;var ye=I.next();return ye==="("||ye==="["?(b.f=b.inline=V(ye==="("?")":"]"),de.highlightFormatting&&(b.formatting="link-string"),b.linkHref=!0,Oe(b)):"error"}var fe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function V(I){return function(b,ye){var je=b.next();if(je===I){ye.f=ye.inline=ue,de.highlightFormatting&&(ye.formatting="link-string");var _e=Oe(ye);return ye.linkHref=!1,_e}return b.match(fe[I]),ye.linkHref=!0,Oe(ye)}}function ce(I,b){return I.match(/^([^\]\\]|\\.)*\]:/,!1)?(b.f=we,I.next(),de.highlightFormatting&&(b.formatting="link"),b.linkText=!0,Oe(b)):S(I,b,ue)}function we(I,b){if(I.match(/^\]:/,!0)){b.f=b.inline=ie,de.highlightFormatting&&(b.formatting="link");var ye=Oe(b);return b.linkText=!1,ye}return I.match(/^([^\]\\]|\\.)+/,!0),j.linkText}function ie(I,b){return I.eatSpace()?null:(I.match(/^[^\s]+/,!0),I.peek()===void 0?b.linkTitle=!0:I.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),b.f=b.inline=ue,j.linkHref+" url")}var De={startState:function(){return{f:ge,prevLine:{stream:null},thisLine:{stream:null},block:ge,htmlState:null,indentation:0,inline:ue,text:Ge,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(I){return{f:I.f,prevLine:I.prevLine,thisLine:I.thisLine,block:I.block,htmlState:I.htmlState&&U.copyState(J,I.htmlState),indentation:I.indentation,localMode:I.localMode,localState:I.localMode?U.copyState(I.localMode,I.localState):null,inline:I.inline,text:I.text,formatting:!1,linkText:I.linkText,linkTitle:I.linkTitle,linkHref:I.linkHref,code:I.code,em:I.em,strong:I.strong,strikethrough:I.strikethrough,emoji:I.emoji,header:I.header,setext:I.setext,hr:I.hr,taskList:I.taskList,list:I.list,listStack:I.listStack.slice(0),quote:I.quote,indentedCode:I.indentedCode,trailingSpace:I.trailingSpace,trailingSpaceNewLine:I.trailingSpaceNewLine,md_inside:I.md_inside,fencedEndRE:I.fencedEndRE}},token:function(I,b){if(b.formatting=!1,I!=b.thisLine.stream){if(b.header=0,b.hr=!1,I.match(/^\s*$/,!0))return he(b),null;if(b.prevLine=b.thisLine,b.thisLine={stream:I},b.taskList=!1,b.trailingSpace=0,b.trailingSpaceNewLine=!1,!b.localState&&(b.f=b.block,b.f!=Ie)){var ye=I.match(/^\s*/,!0)[0].replace(/\t/g,f).length;if(b.indentation=ye,b.indentationDiff=null,ye>0)return null}}return b.f(I,b)},innerMode:function(I){return I.block==Ie?{state:I.htmlState,mode:J}:I.localState?{state:I.localState,mode:I.localMode}:{state:I,mode:De}},indent:function(I,b,ye){return I.block==Ie&&J.indent?J.indent(I.htmlState,b,ye):I.localState&&I.localMode.indent?I.localMode.indent(I.localState,b,ye):U.Pass},blankLine:he,getType:Oe,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return De},"xml"),U.defineMIME("text/markdown","markdown"),U.defineMIME("text/x-markdown","markdown")})},lzim:function(Be,Q,l){"use strict";var U=l("E7E6"),ve=l.n(U);l.d(Q,"A",function(){return ve.a});var de=l("/GNS"),J=l.n(de);l.d(Q,"z",function(){return J.a});var k=l("FOrL"),me=l.n(k);l.d(Q,"t",function(){return me.a});var j=l("HpTS"),Y=l.n(j);l.d(Q,"B",function(){return Y.a});var W=l("tWlo"),_=l.n(W);l.d(Q,"b",function(){return _.a});var y=l("7ZXX"),C=l.n(y);l.d(Q,"n",function(){return C.a});var R=l("GABl"),A=l.n(R);l.d(Q,"g",function(){return A.a});var O=l("onxn"),T=l.n(O);l.d(Q,"p",function(){return T.a});var m=l("nKGa"),f=l.n(m);l.d(Q,"o",function(){return f.a});var S=l("4qgm"),L=l.n(S);l.d(Q,"D",function(){return L.a});var le=l("JeFH"),he=l.n(le);l.d(Q,"c",function(){return he.a});var ge=l("ji0R"),Ie=l.n(ge);l.d(Q,"k",function(){return Ie.a});var xe=l("W6BS"),Oe=l.n(xe);l.d(Q,"E",function(){return Oe.a});var Ge=l("kPYp"),ue=l.n(Ge);l.d(Q,"F",function(){return ue.a});var P=l("nukY"),Re=l.n(P),fe=l("4u4S"),V=l.n(fe),ce=l("yslc"),we=l.n(ce),ie=l("l2Kq"),De=l.n(ie),I=l("RMFE"),b=l.n(I);l.d(Q,"q",function(){return b.a});var ye=l("TGq3"),je=l.n(ye);l.d(Q,"r",function(){return je.a});var _e=l("SMhR"),st=l.n(_e);l.d(Q,"C",function(){return st.a});var St=l("8/bI"),tt=l.n(St);l.d(Q,"l",function(){return tt.a});var nt=l("JWDV"),Je=l.n(nt);l.d(Q,"e",function(){return Je.a});var Ye=l("Xsq0"),Ee=l.n(Ye);l.d(Q,"s",function(){return Ee.a});var F=l("Ohmc"),it=l.n(F);l.d(Q,"d",function(){return it.a});var Mt=l("csWT"),Tt=l.n(Mt);l.d(Q,"f",function(){return Tt.a});var Ct=l("7v3h"),q=l.n(Ct);l.d(Q,"m",function(){return q.a});var $=l("cRFk"),Ae=l.n($);l.d(Q,"y",function(){return Ae.a});var Pe=l("kPWJ"),He=l.n(Pe);l.d(Q,"x",function(){return He.a});var Ue=l("qgvg"),Qe=l.n(Ue);l.d(Q,"u",function(){return Qe.a});var et=l("FPkq"),Dt=l.n(et);l.d(Q,"w",function(){return Dt.a});var ct=l("A/g1"),ot=l.n(ct);l.d(Q,"h",function(){return ot.a});var $e=l("Nmxd"),Lt=l.n($e);l.d(Q,"i",function(){return Lt.a});var mt=l("5D2P"),Ot=l.n(mt);l.d(Q,"j",function(){return Ot.a});var Le=l("djh8"),ht=l.n(Le);l.d(Q,"v",function(){return ht.a});var yt=l("Jq4h"),Fe=l.n(yt);l.d(Q,"a",function(){return Fe.a})},mepR:function(Be,Q,l){Be.exports={flex_box_center:"flex_box_center___3PiSf",flex_space_between:"flex_space_between___3wd5O",flex_box_vertical_center:"flex_box_vertical_center___3qKIW",flex_box_center_end:"flex_box_center_end___2PBRG",flex_box_column:"flex_box_column___39GGe",bg:"bg___3lEyf",formWrap:"formWrap___1e8Z1",empty:"empty___2jgvs",list:"list___3m2Ed",fs:"fs___2PURZ",top:"top___2EfKX",left:"left___3Bk5W",title:"title___1hcE1",qs:"qs___KHjhf",qsActive:"qsActive___2FXkO",right:"right___2XWtX",bt:"bt___2mIBt",answer:"answer___1TBgK",addBtn:"addBtn___NMPyJ"}},muJo:function(Be,Q,l){Be.exports={flex_box_center:"flex_box_center___1GzcK",flex_space_between:"flex_space_between___4Rl0j",flex_box_vertical_center:"flex_box_vertical_center___1-qMw",flex_box_center_end:"flex_box_center_end___pqqwK",flex_box_column:"flex_box_column___zVFuu",wrap:"wrap___YGogw",modal:"modal___1QSEy",titleWrap:"titleWrap___3EOlz",required:"required___1x65S",title:"title___3ujkw",colorGray:"colorGray___jarKl",choiceWrap:"choiceWrap___38GG9",answer:"answer___1L3jg",activeAnswer:"activeAnswer___2rQWC",deleteIcon:"deleteIcon___QdOVW",addIcon:"addIcon___3FfXv",editorWrap:"editorWrap___QTfGw",htmlWrap:"htmlWrap___1jgO0",radio:"radio___3VIqN",error:"error___ojNkY",color333:"color333___2XFbv",color999:"color999___1xmOg",questionType:"questionType___ttkA1",questionChoices:"questionChoices___I-cIa"}},nKGa:function(Be,Q,l){Be.exports=l.p+"static/export_exercise-template.f7655c19.png"},nnTU:function(Be,Q,l){"use strict";l.d(Q,"b",function(){return Y}),l.d(Q,"a",function(){return W});var U=l("pmY6"),ve=l("746U"),de=l("Cg/j"),J=l("MI8n"),k=l("24hK"),me=l("QDVR"),j=function(){for(var _=0,y=0,C=arguments.length;y<C;y++)_+=arguments[y].length;for(var R=Array(_),A=0,y=0;y<C;y++)for(var O=arguments[y],T=0,m=O.length;T<m;T++,A++)R[A]=O[T];return R},Y=Object(de.c)("commandService"),W=new(function(){function _(){this._commands=new Map,this._onDidRegisterCommand=new J.a,this.onDidRegisterCommand=this._onDidRegisterCommand.event}return _.prototype.registerCommand=function(y,C){var R=this;if(!y)throw new Error("invalid command");if(typeof y=="string"){if(!C)throw new Error("invalid command");return this.registerCommand({id:y,handler:C})}if(y.description){for(var A=[],O=0,T=y.description.args;O<T.length;O++){var m=T[O];A.push(m.constraint)}var f=y.handler;y.handler=function(ge){for(var Ie=[],xe=1;xe<arguments.length;xe++)Ie[xe-1]=arguments[xe];return Object(ve.m)(Ie,A),f.apply(void 0,j([ge],Ie))}}var S=y.id,L=this._commands.get(S);L||(L=new k.a,this._commands.set(S,L));var le=L.unshift(y),he=Object(U.h)(function(){le();var ge=R._commands.get(S);(ge==null?void 0:ge.isEmpty())&&R._commands.delete(S)});return this._onDidRegisterCommand.fire(S),he},_.prototype.registerCommandAlias=function(y,C){return W.registerCommand(y,function(R){for(var A,O=[],T=1;T<arguments.length;T++)O[T-1]=arguments[T];return(A=R.get(Y)).executeCommand.apply(A,j([C],O))})},_.prototype.getCommand=function(y){var C=this._commands.get(y);return!C||C.isEmpty()?void 0:C.iterator().next().value},_.prototype.getCommands=function(){for(var y=new Map,C=0,R=Object(me.d)(this._commands);C<R.length;C++){var A=R[C],O=this.getCommand(A);O&&y.set(A,O)}return y},_}())},nuEh:function(Be,Q,l){"use strict";var U=l("T2oS"),ve=l("W9HT"),de=l("q1tI"),J=l.n(de),k=l("F8wB"),me=l.n(k),j=function(W){var _=W.loading;return _?J.a.createElement("div",{className:me.a.loading},J.a.createElement(ve.a,null)):J.a.createElement(J.a.Fragment,null)};Q.a=j},nukY:function(Be,Q){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAMkklEQVR4Xu2dWWwcSRnHv7Yd577v+74vkgWEQCAEy6IVWuCB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COerYt+E4tuOIbviR3suK+cBp1Zdpp0GRVRfZl4/XHD7AzTpnYSFWB0vHlzS2TDiz/cPn4vx2YAML/AxiD3K8wfl5pAAAAAElFTkSuQmCC"},osHv:function(Be,Q,l){(function(U){U(l("VrN/"))})(function(U){"use strict";var ve=U.Pos;function de(m,f){return m.line-f.line||m.ch-f.ch}var J="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",k=J+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",me=new RegExp("<(/?)(["+J+"]["+k+"]*)","g");function j(m,f,S,L){this.line=f,this.ch=S,this.cm=m,this.text=m.getLine(f),this.min=L?Math.max(L.from,m.firstLine()):m.firstLine(),this.max=L?Math.min(L.to-1,m.lastLine()):m.lastLine()}function Y(m,f){var S=m.cm.getTokenTypeAt(ve(m.line,f));return S&&/\btag\b/.test(S)}function W(m){return m.line>=m.max?void 0:(m.ch=0,m.text=m.cm.getLine(++m.line),!0)}function _(m){return m.line<=m.min?void 0:(m.text=m.cm.getLine(--m.line),m.ch=m.text.length,!0)}function y(m){for(;;){var f=m.text.indexOf(">",m.ch);if(f==-1){if(W(m))continue;return}if(!Y(m,f+1)){m.ch=f+1;continue}var S=m.text.lastIndexOf("/",f),L=S>-1&&!/\S/.test(m.text.slice(S+1,f));return m.ch=f+1,L?"selfClose":"regular"}}function C(m){for(;;){var f=m.ch?m.text.lastIndexOf("<",m.ch-1):-1;if(f==-1){if(_(m))continue;return}if(!Y(m,f+1)){m.ch=f;continue}me.lastIndex=f,m.ch=f;var S=me.exec(m.text);if(S&&S.index==f)return S}}function R(m){for(;;){me.lastIndex=m.ch;var f=me.exec(m.text);if(!f){if(W(m))continue;return}if(!Y(m,f.index+1)){m.ch=f.index+1;continue}return m.ch=f.index+f[0].length,f}}function A(m){for(;;){var f=m.ch?m.text.lastIndexOf(">",m.ch-1):-1;if(f==-1){if(_(m))continue;return}if(!Y(m,f+1)){m.ch=f;continue}var S=m.text.lastIndexOf("/",f),L=S>-1&&!/\S/.test(m.text.slice(S+1,f));return m.ch=f+1,L?"selfClose":"regular"}}function O(m,f){for(var S=[];;){var L=R(m),le,he=m.line,ge=m.ch-(L?L[0].length:0);if(!L||!(le=y(m)))return;if(le=="selfClose")continue;if(L[1]){for(var Ie=S.length-1;Ie>=0;--Ie)if(S[Ie]==L[2]){S.length=Ie;break}if(Ie<0&&(!f||f==L[2]))return{tag:L[2],from:ve(he,ge),to:ve(m.line,m.ch)}}else S.push(L[2])}}function T(m,f){for(var S=[];;){var L=A(m);if(!L)return;if(L=="selfClose"){C(m);continue}var le=m.line,he=m.ch,ge=C(m);if(!ge)return;if(ge[1])S.push(ge[2]);else{for(var Ie=S.length-1;Ie>=0;--Ie)if(S[Ie]==ge[2]){S.length=Ie;break}if(Ie<0&&(!f||f==ge[2]))return{tag:ge[2],from:ve(m.line,m.ch),to:ve(le,he)}}}}U.registerHelper("fold","xml",function(m,f){for(var S=new j(m,f.line,0);;){var L=R(S);if(!L||S.line!=f.line)return;var le=y(S);if(!le)return;if(!L[1]&&le!="selfClose"){var he=ve(S.line,S.ch),ge=O(S,L[2]);return ge&&de(ge.from,he)>0?{from:he,to:ge.from}:null}}}),U.findMatchingTag=function(m,f,S){var L=new j(m,f.line,f.ch,S);if(L.text.indexOf(">")==-1&&L.text.indexOf("<")==-1)return;var le=y(L),he=le&&ve(L.line,L.ch),ge=le&&C(L);if(!le||!ge||de(L,f)>0)return;var Ie={from:ve(L.line,L.ch),to:he,tag:ge[2]};return le=="selfClose"?{open:Ie,close:null,at:"open"}:ge[1]?{open:T(L,ge[2]),close:Ie,at:"close"}:(L=new j(m,he.line,he.ch,S),{open:Ie,close:O(L,ge[2]),at:"open"})},U.findEnclosingTag=function(m,f,S,L){for(var le=new j(m,f.line,f.ch,S);;){var he=T(le,L);if(!he)break;var ge=new j(m,f.line,f.ch,S),Ie=O(ge,he.tag);if(Ie)return{open:he,close:Ie}}},U.scanForClosingTag=function(m,f,S,L){var le=new j(m,f.line,f.ch,L?{from:0,to:L}:null);return O(le,S)}})},p5ED:function(Be,Q,l){"use strict";var U=l("+L6B"),ve=l("2/Rp"),de=l("5Dmo"),J=l("3S7+"),k=l("k1fw"),me=l("9og8"),j=l("tJVT"),Y=l("WmNS"),W=l.n(Y),_=l("q1tI"),y=l.n(_),C=l("vHTk"),R=l.n(C),A=l("yEEn"),O=l("ZW9T"),T=l("1vsH"),m=l("V0Rq"),f=l("m3rI");Q.a=function(S){var L,le,he,ge,Ie,xe,Oe=S.editOffice,Ge=Oe===void 0?"view":Oe,ue=S.name,P=S.data,Re=S.theme,fe=S.type,V=S.filename,ce=S.monacoEditor,we=S.className,ie=S.style,De=S.close,I=S.onClose,b=S.hasMask,ye=S.disabledDownload,je=S.onImgDimensions,_e=S.otherData,st=Object(_.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),St=Object(j.a)(st,2),tt=St[0],nt=St[1],Je=Object(_.useState)(""),Ye=Object(j.a)(Je,2),Ee=Ye[0],F=Ye[1],it=Object(_.useState)(),Mt=Object(j.a)(it,2),Tt=Mt[0],Ct=Mt[1],q=window.ENV==="build"?"/react/build":"",$=location.host.startsWith("localhost")?f.a.PROXY_SERVER:f.a.API_SERVER,Ae,Pe=1024*1024,He=10*Pe,Ue=Object(_.useRef)();(L=P)!==null&&L!==void 0&&L.startsWith("/api")&&fe!=="txt"&&(P=f.a.API_SERVER+P),fe==="office"&&(Ae=Object(T.P)(P).filesize,Ae>He&&(fe="other")),V&&(ce.filename=V),Object(_.useEffect)(function(){var ct,ot,$e=(ct=document.cookie)===null||ct===void 0||((ot=ct.replace(/\s/g,""))===null||ot===void 0)?void 0:ot.split(";");$e==null||$e.map(function(Lt){var mt=Lt.split("=");mt[0]==="_educoder_session"&&F(mt[1])})},[]),Object(_.useEffect)(function(){fe==="office"&&Qe()},[fe,P]);var Qe=function(){var ct=Object(me.a)(W.a.mark(function ot(){var $e,Lt,mt;return W.a.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return console.log("data:",P),$e=P,P.startsWith("http")||($e=location.origin+$e),Lt=new URL($e).pathname.split("/").pop(),Le.next=6,Object(m.U)({attachment_id:Lt});case 6:mt=Le.sent,Ct(mt);case 8:case"end":return Le.stop()}},ot)}));return function(){return ct.apply(this,arguments)}}(),et=function(){if(P.startsWith("http")||P.startsWith("blob:")){Dt();return}Object(T.x)(V||"educoder",P,V)},Dt=function(){Object(T.v)(V||"educoder",decodeURIComponent(P))};return y.a.createElement("div",{style:Object(k.a)({},ie||{}),className:"".concat(b&&R.a.bgBlack," ").concat(fe?R.a.wrp:"hide")},De&&y.a.createElement("div",{className:R.a.close,ref:Ue},!!je&&y.a.createElement(J.a,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:function(){return Ue.current}},y.a.createElement("span",{onClick:function(){I(),je()}},y.a.createElement("i",{className:"icon-yulanpizhu"}))),!ye&&y.a.createElement(J.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Ue.current}},y.a.createElement("span",{onClick:Dt},y.a.createElement("i",{className:"icon-quxiaozhiding"}))),y.a.createElement(J.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Ue.current}},y.a.createElement("span",{className:"",onClick:I},y.a.createElement("i",{className:"icon-guanbi1"})))),y.a.createElement("div",{className:"".concat(R.a[we]," ").concat(we," ").concat(R.a.monaco," ").concat(fe==="txt"?"show":"hide")},fe==="txt"&&y.a.createElement(O.b,ce)),fe==="audio"&&y.a.createElement("audio",{src:"".concat(((le=P)===null||le===void 0?void 0:le.indexOf("http://"))>-1||((he=P)===null||he===void 0?void 0:he.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(P),autoPlay:!0}),fe==="video"&&y.a.createElement(y.a.Fragment,null,((ge=P)===null||ge===void 0?void 0:ge.indexOf("http"))>-1?y.a.createElement("video",{controls:!0,src:"".concat(P),autoPlay:!0}):y.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(P),autoPlay:!0})),fe==="office"&&Tt&&y.a.createElement("iframe",{src:"".concat(q,"/office.html?key=").concat(Tt.key,"&url=").concat($+Tt.url,"&callbackUrl=").concat($+Tt.callbackUrl,"&fileType=").concat(Tt.fileType,"&title=").concat(Tt.title,"&model=").concat(Ge,"&officeServer=").concat(f.a.OFFICE_SERVER,"&disabledDownload=").concat(!!ye)}),(fe==="xlsx"||fe==="doc"||fe==="pptx"||fe==="docx")&&y.a.createElement("iframe",{src:"/react/build/office.html?key=".concat(_e.key,"&url=").concat(f.a.API_SERVER+_e.url,"&callbackUrl=").concat(f.a.API_SERVER+_e.callbackUrl,"&fileType=").concat(_e.fileType,"&title=").concat(_e.title,"&model=").concat(_e.model)}),fe==="html"&&y.a.createElement("iframe",{src:P+"&disposition=inline"}),fe==="pdf"&&y.a.createElement("embed",{className:R.a.embed,src:P}),fe==="image"&&y.a.createElement("img",{src:"".concat(((Ie=P)===null||Ie===void 0?void 0:Ie.indexOf("http://"))>-1||((xe=P)===null||xe===void 0?void 0:xe.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(P)}),fe==="other"&&y.a.createElement("div",null,y.a.createElement(ve.a,{type:"primary",size:"large",onClick:et},y.a.createElement(A.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),fe==="download"&&y.a.createElement(ve.a,{type:"primary",size:"large",onClick:et},y.a.createElement(A.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(Be,Q,l){},pmY6:function(Be,Q,l){"use strict";l.d(Q,"g",function(){return k}),l.d(Q,"f",function(){return me}),l.d(Q,"e",function(){return j}),l.d(Q,"h",function(){return Y}),l.d(Q,"b",function(){return W}),l.d(Q,"a",function(){return _}),l.d(Q,"d",function(){return y}),l.d(Q,"c",function(){return C});var U=!1,ve="__is_disposable_tracked__";function de(R){if(!U)return;if(R&&R!==_.None)try{R[ve]=!0}catch(A){}}function J(R){if(!U)return R;var A=new Error("Potentially leaked disposable").stack;return setTimeout(function(){R[ve]||console.log(A)},3e3),R}function k(R){return typeof R.dispose=="function"&&R.dispose.length===0}function me(R){return Array.isArray(R)?(R.forEach(function(A){A&&(de(A),A.dispose())}),[]):R?(de(R),R.dispose(),R):void 0}function j(){for(var R=[],A=0;A<arguments.length;A++)R[A]=arguments[A];return R.forEach(de),J({dispose:function(){return me(R)}})}function Y(R){var A=J({dispose:function(){de(A),R()}});return A}var W=function(){function R(){this._toDispose=new Set,this._isDisposed=!1}return R.prototype.dispose=function(){if(this._isDisposed)return;de(this),this._isDisposed=!0,this.clear()},R.prototype.clear=function(){this._toDispose.forEach(function(A){return A.dispose()}),this._toDispose.clear()},R.prototype.add=function(A){if(!A)return A;if(A===this)throw new Error("Cannot register a disposable on itself!");return de(A),this._isDisposed?console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(A),A},R}(),_=function(){function R(){this._store=new W,J(this)}return R.prototype.dispose=function(){de(this),this._store.dispose()},R.prototype._register=function(A){if(A===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(A)},R.None=Object.freeze({dispose:function(){}}),R}(),y=function(){function R(){this._isDisposed=!1,J(this)}return Object.defineProperty(R.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(A){if(this._isDisposed||A===this._value)return;this._value&&this._value.dispose(),A&&de(A),this._value=A},enumerable:!0,configurable:!0}),R.prototype.clear=function(){this.value=void 0},R.prototype.dispose=function(){this._isDisposed=!0,de(this),this._value&&this._value.dispose(),this._value=void 0},R}(),C=function(){function R(A){this.object=A}return R.prototype.dispose=function(){},R}()},qgvg:function(Be,Q){Be.exports="data:image/gif;base64,R0lGODlhFAAQAOZVAD6Q33p6ezZto2VnaW5vcDuCxiYvNysvM1tdXzNij5eXlyg0QTA0OExOUWZnaS8zN19hYzFYf0Oi/Sg1QoeHh2JjZWZoaTdzrTRmljl5tzFZgDBWez6P3Tl4tjl8uzdxqWBiYys/VCUqL39/gHV2dy4yNScyPDJeiEpNTzk8P0CX6jc7PiYuNWlqaywwNDZtojAzNytDWScrLitAVUGb8Xl6eoWFhTp+wDNgjWRmZ4+QkFdZWzo9QIODgyo/Uzh3syg0QCczPmprbTRllW9wcSotMVJUVjZupDuEylBSVUGb8kxPUZGRkTd0rUGc82JkZUKe9j2M1zg7P4iIiEOj/yUpLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp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pVCAMMgykgFRUtFKSlilVCsreZtAS4sqaJu7yzisDBvhAKyBDEvL6Iy7jNhA7BwoklKA0NRiO30bRFOzakpqiqtItPsTWbA0wWoOcrOUuEMA6TgQAh+QQFMgBVACwAAAAAFAAQAAAHeIBVgoOEISaEiIlVExlUSIQLAgmKIidOVFQAggYCNAIGiTFRmJiaVQkCC4MzHxcXHhKkpYpVN7K3mbQFuLKmibu8s4rAwb4YpBjEvL6IyrjMhB3BwolBGxEROCq30LQsQ1CkpqiqtItNsRybAkpHoOY+PxqEQC+TgQA7"},"rAM+":function(Be,Q,l){"use strict";l.d(Q,"a",function(){return ve});var U=l("Qw5x");function ve(de,J){var k;if(typeof Symbol=="undefined"||de[Symbol.iterator]==null){if(Array.isArray(de)||(k=Object(U.a)(de))||J&&de&&typeof de.length=="number"){k&&(de=k);var me=0,j=function(){};return{s:j,n:function(){return me>=de.length?{done:!0}:{done:!1,value:de[me++]}},e:function(C){throw C},f:j}}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 Y=!0,W=!1,_;return{s:function(){k=de[Symbol.iterator]()},n:function(){var C=k.next();return Y=C.done,C},e:function(C){W=!0,_=C},f:function(){try{!Y&&k.return!=null&&k.return()}finally{if(W)throw _}}}}},rUJ1:function(Be,Q){const l=/[&<>"']/,U=/[&<>"']/g,ve=/[<>"']|&(?!#?\w+;)/,de=/[<>"']|&(?!#?\w+;)/g,J={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},k=xe=>J[xe];function me(xe,Oe){if(Oe){if(l.test(xe))return xe.replace(U,k)}else if(ve.test(xe))return xe.replace(de,k);return xe}const j=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Y(xe){return xe.replace(j,(Oe,Ge)=>(Ge=Ge.toLowerCase(),Ge==="colon"?":":Ge.charAt(0)==="#"?Ge.charAt(1)==="x"?String.fromCharCode(parseInt(Ge.substring(2),16)):String.fromCharCode(+Ge.substring(1)):""))}const W=/(^|[^\[])\^/g;function _(xe,Oe){xe=xe.source||xe,Oe=Oe||"";const Ge={replace:(ue,P)=>(P=P.source||P,P=P.replace(W,"$1"),xe=xe.replace(ue,P),Ge),getRegex:()=>new RegExp(xe,Oe)};return Ge}const y=/[^\w:]/g,C=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function R(xe,Oe,Ge){if(xe){let ue;try{ue=decodeURIComponent(Y(Ge)).replace(y,"").toLowerCase()}catch(P){return null}if(ue.indexOf("javascript:")===0||ue.indexOf("vbscript:")===0||ue.indexOf("data:")===0)return null}Oe&&!C.test(Ge)&&(Ge=f(Oe,Ge));try{Ge=encodeURI(Ge).replace(/%25/g,"%")}catch(ue){return null}return Ge}const A={},O=/^[^:]+:\/*[^/]*$/,T=/^([^:]+:)[\s\S]*$/,m=/^([^:]+:\/*[^/]*)[\s\S]*$/;function f(xe,Oe){A[" "+xe]||(O.test(xe)?A[" "+xe]=xe+"/":A[" "+xe]=he(xe,"/",!0)),xe=A[" "+xe];const Ge=xe.indexOf(":")===-1;return Oe.substring(0,2)==="//"?Ge?Oe:xe.replace(T,"$1")+Oe:Oe.charAt(0)==="/"?Ge?Oe:xe.replace(m,"$1")+Oe:xe+Oe}const S={exec:function(){}};function L(xe){let Oe=1,Ge,ue;for(;Oe<arguments.length;Oe++){Ge=arguments[Oe];for(ue in Ge)Object.prototype.hasOwnProperty.call(Ge,ue)&&(xe[ue]=Ge[ue])}return xe}function le(xe,Oe){const Ge=xe.replace(/\|/g,(Re,fe,V)=>{let ce=!1,we=fe;for(;--we>=0&&V[we]==="\\";)ce=!ce;return ce?"|":" |"}),ue=Ge.split(/ \|/);let P=0;if(ue.length>Oe)ue.splice(Oe);else for(;ue.length<Oe;)ue.push("");for(;P<ue.length;P++)ue[P]=ue[P].trim().replace(/\\\|/g,"|");return ue}function he(xe,Oe,Ge){const ue=xe.length;if(ue===0)return"";let P=0;for(;P<ue;){const Re=xe.charAt(ue-P-1);if(Re===Oe&&!Ge)P++;else if(Re!==Oe&&Ge)P++;else break}return xe.substr(0,ue-P)}function ge(xe,Oe){if(xe.indexOf(Oe[1])===-1)return-1;const Ge=xe.length;let ue=0,P=0;for(;P<Ge;P++)if(xe[P]==="\\")P++;else if(xe[P]===Oe[0])ue++;else if(xe[P]===Oe[1]&&(ue--,ue<0))return P;return-1}function Ie(xe){xe&&xe.sanitize&&!xe.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")}Be.exports={escape:me,unescape:Y,edit:_,cleanUrl:R,resolveUrl:f,noopTest:S,merge:L,splitCells:le,rtrim:he,findClosingBracket:ge,checkSanitizeDeprecation:Ie}},t23M:function(Be,Q,l){"use strict";var U=l("VTBJ"),ve=l("1OyB"),de=l("vuIU"),J=l("Ji7U"),k=l("LK+K"),me=l("q1tI"),j=l.n(me),Y=l("m+aA"),W=l("Zm9Q"),_=l("Kwbf"),y=l("c+Xe"),C=l("bdgK"),R="rc-observer-key",A=function(O){Object(J.a)(m,O);var T=Object(k.a)(m);function m(){var f;return Object(ve.a)(this,m),f=T.apply(this,arguments),f.resizeObserver=null,f.childNode=null,f.currentElement=null,f.state={width:0,height:0,offsetHeight:0,offsetWidth:0},f.onResize=function(S){var L=f.props.onResize,le=S[0].target,he=le.getBoundingClientRect(),ge=he.width,Ie=he.height,xe=le.offsetWidth,Oe=le.offsetHeight,Ge=Math.floor(ge),ue=Math.floor(Ie);if(f.state.width!==Ge||f.state.height!==ue||f.state.offsetWidth!==xe||f.state.offsetHeight!==Oe){var P={width:Ge,height:ue,offsetWidth:xe,offsetHeight:Oe};f.setState(P),L&&Promise.resolve().then(function(){L(Object(U.a)(Object(U.a)({},P),{},{offsetWidth:xe,offsetHeight:Oe}))})}},f.setChildNode=function(S){f.childNode=S},f}return Object(de.a)(m,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var S=this.props.disabled;if(S){this.destroyObserver();return}var L=Object(Y.a)(this.childNode||this),le=L!==this.currentElement;le&&(this.destroyObserver(),this.currentElement=L),!this.resizeObserver&&L&&(this.resizeObserver=new C.default(this.onResize),this.resizeObserver.observe(L))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var S=this.props.children,L=Object(W.a)(S);if(L.length>1)Object(_.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(L.length===0)return Object(_.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var le=L[0];if(me.isValidElement(le)&&Object(y.c)(le)){var he=le.ref;L[0]=me.cloneElement(le,{ref:Object(y.a)(he,this.setChildNode)})}return L.length===1?L[0]:L.map(function(ge,Ie){return!me.isValidElement(ge)||"key"in ge&&ge.key!==null?ge:me.cloneElement(ge,{key:"".concat(R,"-").concat(Ie)})})}}]),m}(me.Component);A.displayName="ResizeObserver",Q.a=A},tWlo:function(Be,Q){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLz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ts3UNgY0REXGQZpmpqtCmrjV1/ZWcrEzIzEhnTtwQhwQb/5vNDc1dkinak4gDsMUFSEhwMJQ9vhueqihnWhYBMhnokYRGowGLZRwcW9fWLsGxTV6HqA8F6sMfR5z0qiDUKsjQpoEuPQ1SsSILVPDd1FJTrDA/Fwry9NDX1w9dxh7MSs2+ytTjcI+7gc0IkHwpMD+JnpbnZGdCXk4WPJSUKFlHzj0bGTrtGqhZNjJqgQHzIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},uIXO:function(Be,Q,l){Be.exports={flex_box_center:"flex_box_center___1HoSW",flex_space_between:"flex_space_between___1NTlm",flex_box_vertical_center:"flex_box_vertical_center___1RREG",flex_box_center_end:"flex_box_center_end___-OJaq",flex_box_column:"flex_box_column___11ry4",modal:"modal___32KcS",main:"main___3HP_p",title:"title___1Kjif",name:"name___3ysu_",body:"body___33mTT",form:"form___2fckF",btns:"btns___3SmLH"}},vHTk:function(Be,Q,l){Be.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},yslc:function(Be,Q){Be.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4X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