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.
345 lines
721 KiB
345 lines
721 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[205,7,9,17],{"+NIl":function(me,ce,f){(function(N){N(f("VrN/"))})(function(N){"use strict";N.defineMode("stex",function(de,q){"use strict";function le(z,P){z.cmdState.push(P)}function ae(z){return z.cmdState.length>0?z.cmdState[z.cmdState.length-1]:null}function K(z){var P=z.cmdState.pop();P&&P.closeBracket()}function S(z){for(var P=z.cmdState,U=P.length-1;U>=0;U--){var H=P[U];if(H.name=="DEFAULT")continue;return H}return{styleIdentifier:function(){return null}}}function k(z,P,U){return function(){this.name=z,this.bracketNo=0,this.style=P,this.styles=U,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var R={};R.importmodule=k("importmodule","tag",["string","builtin"]),R.documentclass=k("documentclass","tag",["","atom"]),R.usepackage=k("usepackage","tag",["atom"]),R.begin=k("begin","tag",["atom"]),R.end=k("end","tag",["atom"]),R.label=k("label","tag",["atom"]),R.ref=k("ref","tag",["atom"]),R.eqref=k("eqref","tag",["atom"]),R.cite=k("cite","tag",["atom"]),R.bibitem=k("bibitem","tag",["atom"]),R.Bibitem=k("Bibitem","tag",["atom"]),R.RBibitem=k("RBibitem","tag",["atom"]),R.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function W(z,P){z.f=P}function M(z,P){var U;if(z.match(/^\\[a-zA-Z@]+/)){var H=z.current().slice(1);return U=R.hasOwnProperty(H)?R[H]:R.DEFAULT,U=new U,le(P,U),W(P,Y),U.style}if(z.match(/^\\[$&%#{}_]/))return"tag";if(z.match(/^\\[,;!\/\\]/))return"tag";if(z.match("\\["))return W(P,function(ee,ke){return A(ee,ke,"\\]")}),"keyword";if(z.match("\\("))return W(P,function(ee,ke){return A(ee,ke,"\\)")}),"keyword";if(z.match("$$"))return W(P,function(ee,ke){return A(ee,ke,"$$")}),"keyword";if(z.match("$"))return W(P,function(ee,ke){return A(ee,ke,"$")}),"keyword";var Z=z.next();if(Z=="%")return z.skipToEnd(),"comment";if(Z=="}"||Z=="]"){if(U=ae(P),U)U.closeBracket(Z),W(P,Y);else return"error";return"bracket"}else return Z=="{"||Z=="["?(U=R.DEFAULT,U=new U,le(P,U),"bracket"):/\d/.test(Z)?(z.eatWhile(/[\w.%]/),"atom"):(z.eatWhile(/[\w\-_]/),U=S(P),U.name=="begin"&&(U.argument=z.current()),U.styleIdentifier())}function A(z,P,U){if(z.eatSpace())return null;if(U&&z.match(U))return W(P,M),"keyword";if(z.match(/^\\[a-zA-Z@]+/))return"tag";if(z.match(/^[a-zA-Z]+/))return"variable-2";if(z.match(/^\\[$&%#{}_]/))return"tag";if(z.match(/^\\[,;!\/]/))return"tag";if(z.match(/^[\^_&]/))return"tag";if(z.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(z.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var H=z.next();return H=="{"||H=="}"||H=="["||H=="]"||H=="("||H==")"?"bracket":H=="%"?(z.skipToEnd(),"comment"):"error"}function Y(z,P){var U=z.peek(),H;return U=="{"||U=="["?(H=ae(P),H.openBracket(U),z.eat(U),W(P,M),"bracket"):/[ \t\r]/.test(U)?(z.eat(U),null):(W(P,M),K(P),M(z,P))}return{startState:function(){var z=q.inMathMode?function(P,U){return A(P,U)}:M;return{cmdState:[],f:z}},copyState:function(z){return{cmdState:z.cmdState.slice(),f:z.f}},token:function(z,P){return P.f(z,P)},blankLine:function(z){z.f=M,z.cmdState.length=0},lineComment:"%"}}),N.defineMIME("text/x-stex","stex"),N.defineMIME("text/x-latex","stex")})},"/GNS":function(me,ce,f){me.exports=f.p+"static/search1.c4136dd4.png"},"19Vz":function(me,ce,f){(function(N){N(f("VrN/"))})(function(N){N.defineOption("placeholder","",function(k,R,W){var M=W&&W!=N.Init;if(R&&!M)k.on("blur",ae),k.on("change",K),k.on("swapDoc",K),N.on(k.getInputField(),"compositionupdate",k.state.placeholderCompose=function(){le(k)}),K(k);else if(!R&&M){k.off("blur",ae),k.off("change",K),k.off("swapDoc",K),N.off(k.getInputField(),"compositionupdate",k.state.placeholderCompose),de(k);var A=k.getWrapperElement();A.className=A.className.replace(" CodeMirror-empty","")}R&&!k.hasFocus()&&ae(k)});function de(k){k.state.placeholder&&(k.state.placeholder.parentNode.removeChild(k.state.placeholder),k.state.placeholder=null)}function q(k){de(k);var R=k.state.placeholder=document.createElement("pre");R.style.cssText="height: 0; overflow: visible",R.style.direction=k.getOption("direction"),R.className="CodeMirror-placeholder CodeMirror-line-like";var W=k.getOption("placeholder");typeof W=="string"&&(W=document.createTextNode(W)),R.appendChild(W),k.display.lineSpace.insertBefore(R,k.display.lineSpace.firstChild)}function le(k){setTimeout(function(){var R=!1,W=k.getInputField();W.nodeName=="TEXTAREA"?R=!W.value:k.lineCount()==1&&(R=!/[^\u200b]/.test(W.querySelector(".CodeMirror-line").textContent)),R?q(k):de(k)},20)}function ae(k){S(k)&&q(k)}function K(k){var R=k.getWrapperElement(),W=S(k);R.className=R.className.replace(" CodeMirror-empty","")+(W?" CodeMirror-empty":""),W?q(k):de(k)}function S(k){return k.lineCount()===1&&k.getLine(0)===""}})},"1eCo":function(me,ce,f){(function(N){N(f("VrN/"))})(function(N){"use strict";var de={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},q={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};N.defineMode("xml",function(le,ae){var K=le.indentUnit,S={},k=ae.htmlMode?de:q;for(var R in k)S[R]=k[R];for(var R in ae)S[R]=ae[R];var W,M;function A(x,ne){function X(J){return ne.tokenize=J,J(x,ne)}var b=x.next();if(b=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?X(P("atom","]]>")):null:x.match("--")?X(P("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),X(U(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),ne.tokenize=P("meta","?>"),"meta"):(W=x.eat("/")?"closeTag":"openTag",ne.tokenize=Y,"tag bracket");if(b=="&"){var L;return x.eat("#")?x.eat("x")?L=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):L=x.eatWhile(/[\d]/)&&x.eat(";"):L=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),L?"atom":"error"}else return x.eatWhile(/[^&<]/),null}A.isInText=!0;function Y(x,ne){var X=x.next();if(X==">"||X=="/"&&x.eat(">"))return ne.tokenize=A,W=X==">"?"endTag":"selfcloseTag","tag bracket";if(X=="=")return W="equals",null;if(X=="<"){ne.tokenize=A,ne.state=ke,ne.tagName=ne.tagStart=null;var b=ne.tokenize(x,ne);return b?b+" tag error":"tag error"}else return/[\'\"]/.test(X)?(ne.tokenize=z(X),ne.stringStartCol=x.column(),ne.tokenize(x,ne)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function z(x){var ne=function(X,b){for(;!X.eol();)if(X.next()==x){b.tokenize=Y;break}return"string"};return ne.isInAttribute=!0,ne}function P(x,ne){return function(X,b){for(;!X.eol();){if(X.match(ne)){b.tokenize=A;break}X.next()}return x}}function U(x){return function(ne,X){for(var b;(b=ne.next())!=null;){if(b=="<")return X.tokenize=U(x+1),X.tokenize(ne,X);if(b==">")if(x==1){X.tokenize=A;break}else return X.tokenize=U(x-1),X.tokenize(ne,X)}return"meta"}}function H(x,ne,X){this.prev=x.context,this.tagName=ne,this.indent=x.indented,this.startOfLine=X,(S.doNotIndent.hasOwnProperty(ne)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function Z(x){x.context&&(x.context=x.context.prev)}function ee(x,ne){for(var X;;){if(!x.context)return;if(X=x.context.tagName,!S.contextGrabbers.hasOwnProperty(X)||!S.contextGrabbers[X].hasOwnProperty(ne))return;Z(x)}}function ke(x,ne,X){return x=="openTag"?(X.tagStart=ne.column(),He):x=="closeTag"?ue:ke}function He(x,ne,X){return x=="word"?(X.tagName=ne.current(),M="tag",ve):S.allowMissingTagName&&x=="endTag"?(M="tag bracket",ve(x,ne,X)):(M="error",He)}function ue(x,ne,X){if(x=="word"){var b=ne.current();return X.context&&X.context.tagName!=b&&S.implicitlyClosed.hasOwnProperty(X.context.tagName)&&Z(X),X.context&&X.context.tagName==b||S.matchClosing===!1?(M="tag",ge):(M="tag error",Ne)}else return S.allowMissingTagName&&x=="endTag"?(M="tag bracket",ge(x,ne,X)):(M="error",Ne)}function ge(x,ne,X){return x!="endTag"?(M="error",ge):(Z(X),ke)}function Ne(x,ne,X){return M="error",ge(x,ne,X)}function ve(x,ne,X){if(x=="word")return M="attribute",pe;if(x=="endTag"||x=="selfcloseTag"){var b=X.tagName,L=X.tagStart;return X.tagName=X.tagStart=null,x=="selfcloseTag"||S.autoSelfClosers.hasOwnProperty(b)?ee(X,b):(ee(X,b),X.context=new H(X,b,L==X.indented)),ke}return M="error",ve}function pe(x,ne,X){return x=="equals"?re:(S.allowMissing||(M="error"),ve(x,ne,X))}function re(x,ne,X){return x=="string"?I:x=="word"&&S.allowUnquoted?(M="string",ve):(M="error",ve(x,ne,X))}function I(x,ne,X){return x=="string"?I:ve(x,ne,X)}return{startState:function(x){var ne={tokenize:A,state:ke,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(ne.baseIndent=x),ne},token:function(x,ne){if(!ne.tagName&&x.sol()&&(ne.indented=x.indentation()),x.eatSpace())return null;W=null;var X=ne.tokenize(x,ne);return(X||W)&&X!="comment"&&(M=null,ne.state=ne.state(W||X,x,ne),M&&(X=M=="error"?X+" error":M)),X},indent:function(x,ne,X){var b=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+K;if(b&&b.noIndent)return N.Pass;if(x.tokenize!=Y&&x.tokenize!=A)return X?X.match(/^(\s*)/)[0].length:0;if(x.tagName)return S.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+K*(S.multilineTagIndentFactor||1);if(S.alignCDATA&&/<!\[CDATA\[/.test(ne))return 0;var L=ne&&/^<(\/)?([\w_:\.-]*)/.exec(ne);if(L&&L[1])for(;b;)if(b.tagName==L[2]){b=b.prev;break}else if(S.implicitlyClosed.hasOwnProperty(b.tagName))b=b.prev;else break;else if(L)for(;b;){var J=S.contextGrabbers[b.tagName];if(J&&J.hasOwnProperty(L[2]))b=b.prev;else break}for(;b&&b.prev&&!b.startOfLine;)b=b.prev;return b?b.indent+K:x.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:S.htmlMode?"html":"xml",helperType:S.htmlMode?"html":"xml",skipAttribute:function(x){x.state==re&&(x.state=ve)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var ne=[],X=x.context;X;X=X.prev)X.tagName&&ne.push(X.tagName);return ne.reverse()}}}),N.defineMIME("text/xml","xml"),N.defineMIME("application/xml","xml"),N.mimeModes.hasOwnProperty("text/html")||N.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"2RCv":function(me,ce,f){"use strict";var N=f("Awhp"),de=f("KrTs"),q=f("+L6B"),le=f("2/Rp"),ae=f("5NDa"),K=f("5rEg"),S=f("0Owb"),k=f("oBTY"),R=f("tJVT"),W=f("PpiC"),M=f("q1tI"),A=f.n(M),Y=function(P){var U=P.InputRight,H=P.value,Z=H===void 0?[]:H,ee=P.onChange,ke=ee===void 0?function(){}:ee,He=Object(W.a)(P,["InputRight","value","onChange"]),ue=Object(M.useState)(),ge=Object(R.a)(ue,2),Ne=ge[0],ve=ge[1],pe=function(x){var ne=Z.filter(function(X,b){return b!==x});ke(ne)},re=function(x){if(x.preventDefault(),!Ne)return;ke([].concat(Object(k.a)(Z),[Ne])),ve(null)};return A.a.createElement("div",null,A.a.createElement(K.a,Object(S.a)({},He,{value:Ne,onChange:function(x){return ve(x.target.value)},onPressEnter:re,onBlur:re})),U,A.a.createElement("div",{className:"mt20"},Z==null?void 0:Z.map(function(I,x){return A.a.createElement(de.a,{className:"ml10 mr10",count:"x",onClick:function(){return pe(x)}},A.a.createElement(le.a,{type:"primary",ghost:!0},I))})))};ce.a=Y},"4qgm":function(me,ce){me.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCL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KdF/WW0n2nf0f20ow0F1xY4+AIdG1PpT2+ZZXi/2U3BFdBJxHIAvRNfX150/QaOn8cG6PLgI5g0BWoicj3+D2fSM7Zybljuoi4DQCmYiupdKNDEw+GeH00G5/LgKxQ+A80bVUmpLhzcVSMHbDuyO5CMQGAS/Rtf6U55Q3sNnZj2jFRgZ3FBcBSwQ83pTOG7z5EQMy11i2cyu4COQqBDxaMq8BvXPVrN3JugiEiYClC0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"55Ip":function(me,ce,f){"use strict";f.d(ce,"a",function(){return ee}),f.d(ce,"b",function(){return ve});var N=f("Ty5D"),de=f("dI71"),q=f("q1tI"),le=f.n(q),ae=f("YS25"),K=f("17x9"),S=f.n(K),k=f("wx14"),R=f("zLVn"),W=f("9R94"),M=function(re){Object(de.a)(I,re);function I(){for(var ne,X=arguments.length,b=new Array(X),L=0;L<X;L++)b[L]=arguments[L];return ne=re.call.apply(re,[this].concat(b))||this,ne.history=Object(ae.a)(ne.props),ne}var x=I.prototype;return x.render=function(){return le.a.createElement(N.c,{history:this.history,children:this.props.children})},I}(le.a.Component),A=function(re){Object(de.a)(I,re);function I(){for(var ne,X=arguments.length,b=new Array(X),L=0;L<X;L++)b[L]=arguments[L];return ne=re.call.apply(re,[this].concat(b))||this,ne.history=Object(ae.b)(ne.props),ne}var x=I.prototype;return x.render=function(){return le.a.createElement(N.c,{history:this.history,children:this.props.children})},I}(le.a.Component),Y=function(I,x){return typeof I=="function"?I(x):I},z=function(I,x){return typeof I=="string"?Object(ae.c)(I,null,null,x):I},P=function(I){return I},U=le.a.forwardRef;typeof U=="undefined"&&(U=P);function H(re){return!!(re.metaKey||re.altKey||re.ctrlKey||re.shiftKey)}var Z=U(function(re,I){var x=re.innerRef,ne=re.navigate,X=re.onClick,b=Object(R.a)(re,["innerRef","navigate","onClick"]),L=b.target,J=Object(k.a)({},b,{onClick:function(he){try{X&&X(he)}catch(E){throw he.preventDefault(),E}!he.defaultPrevented&&he.button===0&&(!L||L==="_self")&&!H(he)&&(he.preventDefault(),ne())}});return P!==U?J.ref=I||x:J.ref=x,le.a.createElement("a",J)}),ee=U(function(re,I){var x=re.component,ne=x===void 0?Z:x,X=re.replace,b=re.to,L=re.innerRef,J=Object(R.a)(re,["component","replace","to","innerRef"]);return le.a.createElement(N.e.Consumer,null,function(O){O||Object(W.a)(!1);var he=O.history,E=z(Y(b,O.location),O.location),g=E?he.createHref(E):"",Q=Object(k.a)({},J,{href:g,navigate:function(){var ye=Y(b,O.location),Ge=X?he.replace:he.push;Ge(ye)}});return P!==U?Q.ref=I||L:Q.innerRef=L,le.a.createElement(ne,Q)})});if(!1)var ke,He;var ue=function(I){return I},ge=le.a.forwardRef;typeof ge=="undefined"&&(ge=ue);function Ne(){for(var re=arguments.length,I=new Array(re),x=0;x<re;x++)I[x]=arguments[x];return I.filter(function(ne){return ne}).join(" ")}var ve=ge(function(re,I){var x=re["aria-current"],ne=x===void 0?"page":x,X=re.activeClassName,b=X===void 0?"active":X,L=re.activeStyle,J=re.className,O=re.exact,he=re.isActive,E=re.location,g=re.sensitive,Q=re.strict,we=re.style,ye=re.to,Ge=re.innerRef,Ve=Object(R.a)(re,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return le.a.createElement(N.e.Consumer,null,function(Me){Me||Object(W.a)(!1);var Ce=E||Me.location,xe=z(Y(ye,Ce),Ce),Se=xe.pathname,$=Se&&Se.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),F=$?Object(N.f)(Ce.pathname,{path:$,exact:O,sensitive:g,strict:Q}):null,_e=!!(he?he(F,Ce):F),nt=_e?Ne(J,b):J,qe=_e?Object(k.a)({},we,{},L):we,it=Object(k.a)({"aria-current":_e&&ne||null,className:nt,style:qe,to:xe},Ve);return ue!==ge?it.ref=I||Ge:it.innerRef=Ge,le.a.createElement(ee,it)})});if(!1)var pe},"5D2P":function(me,ce){me.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAFTklEQVRoQ91aS4xURRQ993UzUUZcqFEc4meh0cQFSlwgrvAHSgQWhOhCk4GZqmdw+ERUWDkrBMUBnIzzqqYjcTaaGBLFxA8MjIk/3PhZCCa6UAyKC11ARnDo6Wvu+HrS0/R7r96nWVBJpxfv3nPPrbp169aHUEAzxsxl5gcB3AdgAREtkH8AXSH87wBOMfMp+QfwFREd0Vr/k9c8ZQUwxixi5mWe5y1l5qUAyimxqkQ0XqvVxonoE631Nyn1p8VTO7B///75Fy5c2MzMWwB0ZDHaQmeSiPbMmTNnb3d39+k0mKkcMMZsBiC/W9IYSSH7K4C9Wuu9rjpODoyMjNxQq9VGADzuCpxT7gPP83p7e3v/TMJJdCAIgoVEdBDAzUlgBX8/ycwrfd//Pg431gFr7RPM/HbBxFLBEdGTSql3opQiHQiCoI+IXk9lrU3CzLzR9/3BVvAtHbDWPsrMH7aJTyZYInpMKfVRs/JFDlQqlduq1eoxIro2k6U2KTHzX+VyeXFPT8/PjSYucsBae4iZH24Tj1ywRHRYKfVIpANhnt+Ty0r7lbc0rhMzI2CMuRHAlwBubT+HXBZ+AbBEa/3HrFLCWruTmV/MBZ1N+TiAdyNUX2qZeYh2KaW2zThQqVTumZqaOlZgbePqynEiWquU+qFZwRjzBoBnIoAmS6WSTOhvp0PIGPMcgN2uVguSiyQfBIFPRMMJdrZqrV+bdsBa+x4zryqImAtMJHlr7RJmPgxgbhwQEb2vl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strict";var N=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),de=new Uint8Array(16);function q(){if(!N)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return N(de)}var le=/^(?:[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 ae(Y){return typeof Y=="string"&&le.test(Y)}for(var K=ae,S=[],k=0;k<256;++k)S.push((k+256).toString(16).substr(1));function R(Y){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=(S[Y[z+0]]+S[Y[z+1]]+S[Y[z+2]]+S[Y[z+3]]+"-"+S[Y[z+4]]+S[Y[z+5]]+"-"+S[Y[z+6]]+S[Y[z+7]]+"-"+S[Y[z+8]]+S[Y[z+9]]+"-"+S[Y[z+10]]+S[Y[z+11]]+S[Y[z+12]]+S[Y[z+13]]+S[Y[z+14]]+S[Y[z+15]]).toLowerCase();if(!K(P))throw TypeError("Stringified UUID is invalid");return P}var W=R;function M(Y,z,P){Y=Y||{};var U=Y.random||(Y.rng||q)();if(U[6]=U[6]&15|64,U[8]=U[8]&63|128,z){P=P||0;for(var H=0;H<16;++H)z[P+H]=U[H];return z}return W(U)}var A=ce.a=M},"7ZXX":function(me,ce,f){me.exports=f.p+"static/err.6e7c5817.png"},"7ahc":function(me,ce,f){"use strict";f.d(ce,"a",function(){return He});var N=f("k1fw"),de=f("0Owb"),q=f("+L6B"),le=f("2/Rp"),ae=f("y8nQ"),K=f("Vl3Y"),S=f("tJVT"),k=f("OaEy"),R=f("2fM7"),W=f("q1tI"),M=f.n(W),A=f("VrN/"),Y=f.n(A),z=f("p77/"),P=f.n(z),U=f("c5Ni"),H=f.n(U),Z=R.a.Option,ee={labelCol:{span:4},wrapperCol:{span:20}},ke={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"]};ce.b=function(ue){var ge=ue.callback,Ne=ue.onCancel,ve=Object(W.useState)("python"),pe=Object(S.a)(ve,2),re=pe[0],I=pe[1];function x(X){I(ke[X][1])}function ne(X){ge(X)}return M.a.createElement(K.a,Object(de.a)({},ee,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ne}),M.a.createElement(K.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},M.a.createElement(R.a,{onChange:x},Object.keys(ke).map(function(X){return M.a.createElement(Z,{key:X,value:X},ke[X][0])}))),M.a.createElement(K.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},M.a.createElement(He,{mode:re})),M.a.createElement("div",{className:"flex-container flex-end"},M.a.createElement(le.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),M.a.createElement(le.a,{type:"ghost",onClick:Ne},"\u53D6\u6D88")))};function He(ue){var ge=ue.value,Ne=ue.onChange,ve=ue.mode,pe=ue.options,re=pe===void 0?{}:pe,I=Object(W.useRef)(),x=Object(W.useState)(),ne=Object(S.a)(x,2),X=ne[0],b=ne[1];return Object(W.useEffect)(function(){if(X){function L(J){var O=J.getValue();Ne&&Ne(O)}return X.on("change",L),function(){X.off("change",L)}}},[X,Ne]),Object(W.useEffect)(function(){X&&X.setOption("mode",ve)},[X,ve]),Object(W.useEffect)(function(){X&&((ge!==X.getValue()||ge==="")&&setTimeout(function(){X.setValue(ge||" ")},300))},[X,ge]),Object(W.useEffect)(function(){if(I.current&&!X){var L=Y.a.fromTextArea(I.current,Object(N.a)({mode:ve,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},re));b(L)}},[I.current,X]),M.a.createElement("div",{className:"my-codemirror-container"},M.a.createElement("textarea",{ref:I}))}},"7ixt":function(me,ce,f){"use strict";f.d(ce,"a",function(){return q});var N={adjustX:1,adjustY:1},de=[0,0],q={left:{points:["cr","cl"],overflow:N,offset:[-4,0],targetOffset:de},right:{points:["cl","cr"],overflow:N,offset:[4,0],targetOffset:de},top:{points:["bc","tc"],overflow:N,offset:[0,-4],targetOffset:de},bottom:{points:["tc","bc"],overflow:N,offset:[0,4],targetOffset:de},topLeft:{points:["bl","tl"],overflow:N,offset:[0,-4],targetOffset:de},leftTop:{points:["tr","tl"],overflow:N,offset:[-4,0],targetOffset:de},topRight:{points:["br","tr"],overflow:N,offset:[0,-4],targetOffset:de},rightTop:{points:["tl","tr"],overflow:N,offset:[4,0],targetOffset:de},bottomRight:{points:["tr","br"],overflow:N,offset:[0,4],targetOffset:de},rightBottom:{points:["bl","br"],overflow:N,offset:[4,0],targetOffset:de},bottomLeft:{points:["tl","bl"],overflow:N,offset:[0,4],targetOffset:de},leftBottom:{points:["br","bl"],overflow:N,offset:[-4,0],targetOffset:de}},le=q},"7v3h":function(me,ce,f){me.exports=f.p+"static/empty2.dd73f390.png"},"8/bI":function(me,ce,f){me.exports=f.p+"static/empty.8918e228.png"},"8EBN":function(me,ce,f){(function(N){N(f("VrN/"))})(function(N){"use strict";N.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 de=0;de<N.modeInfo.length;de++){var q=N.modeInfo[de];q.mimes&&(q.mime=q.mimes[0])}N.findModeByMIME=function(le){le=le.toLowerCase();for(var ae=0;ae<N.modeInfo.length;ae++){var K=N.modeInfo[ae];if(K.mime==le)return K;if(K.mimes){for(var S=0;S<K.mimes.length;S++)if(K.mimes[S]==le)return K}}if(/\+xml$/.test(le))return N.findModeByMIME("application/xml");if(/\+json$/.test(le))return N.findModeByMIME("application/json")},N.findModeByExtension=function(le){le=le.toLowerCase();for(var ae=0;ae<N.modeInfo.length;ae++){var K=N.modeInfo[ae];if(K.ext){for(var S=0;S<K.ext.length;S++)if(K.ext[S]==le)return K}}},N.findModeByFileName=function(le){for(var ae=0;ae<N.modeInfo.length;ae++){var K=N.modeInfo[ae];if(K.file&&K.file.test(le))return K}var S=le.lastIndexOf("."),k=S>-1&&le.substring(S+1,le.length);if(k)return N.findModeByExtension(k)},N.findModeByName=function(le){le=le.toLowerCase();for(var ae=0;ae<N.modeInfo.length;ae++){var K=N.modeInfo[ae];if(K.name.toLowerCase()==le)return K;if(K.alias){for(var S=0;S<K.alias.length;S++)if(K.alias[S].toLowerCase()==le)return K}}}})},"8hTe":function(me,ce,f){me.exports={button:"button___1wy9m"}},"9Bee":function(me,ce,f){"use strict";var N=f("DYRE"),de=f("zeV3"),q=f("+L6B"),le=f("2/Rp"),ae=f("k1fw"),K=f("9og8"),S=f("tJVT"),k=f("WmNS"),R=f.n(k),W=f("q1tI"),M=f.n(W),A=f("vg9a"),Y=f("DlQD"),z=f.n(Y),P=f("rUJ1");function U(c,o){var a=c.match(/^(\s+)(?:```)/);if(a===null)return o;var u=a[1];return o.split(`
|
|
`).map(function(m){var h=m.match(/^\s+/);if(h===null)return m;var j=Object(S.a)(h,1),Le=j[0];return Le.length>=u.length?m.slice(u.length):m}).join(`
|
|
`)}var H=[],Z=["<ul>"],ee=new z.a.Renderer,ke=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function He(){H.length=0,Z=["<ul>"]}var ue={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ge(c,o,a,u){if(o>=c.length||c[o].level<=a)return o;var m=c[o];u.push("<li><a href='#"+m.anchor+"'>"+m.text+"</a>"),o++;var h=[];return o=ge(c,o,m.level,h),h.length>0&&(u.push("<ul>"),h.forEach(function(j){u.push(j)}),u.push("</ul>")),u.push("</li>"),o=ge(c,o,a,u),o}function Ne(){return ge(H,0,0,Z),Z.push("</ul>"),Z.join("")}var ve={heading:function(o){var a=ke.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 u=a[0],m=U(u,a[3]||""),h=a[2]?a[2].trim():a[2];if(["latex","katex","math"].indexOf(h)>=0){var j=I(),Le=m;m=j,x[j]={type:"block",expression:Le}}return{type:"code",raw:u,lang:h,text:m}}}},pe=/(?:\${2})([^\n`]+?)(?:\${2})/gi,re=0,I=function(){return"__special_katext_id_".concat(re++,"__")},x={};function ne(){return x}function X(){re=0,x={}}function b(c){return c=c.replace(pe,function(o,a){var u=I();return x[u]={type:"inline",expression:a},u}),c}var L=ee.listitem;ee.listitem=function(c){return L(b(c))};var J=ee.paragraph;ee.paragraph=function(c){return J(b(c))};var O=ee.tablecell;ee.tablecell=function(c,o){return O(b(c),o)},ee.code=function(c,o,a){var u=(o||"").match(/\S*/)[0];return u?["latex","katex","math"].indexOf(u)>=0?"<p class='editormd-tex'>".concat(c,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(o,'">').concat(a?c:Object(P.escape)(c,!0),`</code></pre>
|
|
`):'<pre class="prettyprint linenums"><code>'+(a?c:Object(P.escape)(c,!0))+"</code></pre>"},ee.heading=function(c,o,a){var u=this.options.headerPrefix+a.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return H.push({anchor:u,level:o,text:c}),"<h"+o+' id="'+u+'">'+c+"</h"+o+">"},z.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),z.a.use({tokenizer:ve,renderer:ee});var he=z.a,E=f("SJMd"),g=f("ulZh"),Q=f.n(g),we=f("m3rI"),ye=f("Oy/b"),Ge=f("p5ED"),Ve=f("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 Me=function(c,o){return(Me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,u){a.__proto__=u}||function(a,u){for(var m in u)Object.prototype.hasOwnProperty.call(u,m)&&(a[m]=u[m])})(c,o)};function Ce(c,o){function a(){this.constructor=c}Me(c,o),c.prototype=o===null?Object.create(o):(a.prototype=o.prototype,new a)}function xe(c,o,a,u){return new(a||(a=Promise))(function(m,h){function j(pt){try{se(u.next(pt))}catch(Oe){h(Oe)}}function Le(pt){try{se(u.throw(pt))}catch(Oe){h(Oe)}}function se(pt){var Oe;pt.done?m(pt.value):(Oe=pt.value,Oe instanceof a?Oe:new a(function(kt){kt(Oe)})).then(j,Le)}se((u=u.apply(c,o||[])).next())})}function Se(c,o){var a,u,m,h,j={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return h={next:Le(0),throw:Le(1),return:Le(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function Le(se){return function(pt){return function(Oe){if(a)throw new TypeError("Generator is already executing.");for(;j;)try{if(a=1,u&&(m=2&Oe[0]?u.return:Oe[0]?u.throw||((m=u.return)&&m.call(u),0):u.next)&&!(m=m.call(u,Oe[1])).done)return m;switch(u=0,m&&(Oe=[2&Oe[0],m.value]),Oe[0]){case 0:case 1:m=Oe;break;case 4:return j.label++,{value:Oe[1],done:!1};case 5:j.label++,u=Oe[1],Oe=[0];continue;case 7:Oe=j.ops.pop(),j.trys.pop();continue;default:if(!(m=j.trys,(m=m.length>0&&m[m.length-1])||Oe[0]!==6&&Oe[0]!==2)){j=0;continue}if(Oe[0]===3&&(!m||Oe[1]>m[0]&&Oe[1]<m[3])){j.label=Oe[1];break}if(Oe[0]===6&&j.label<m[1]){j.label=m[1],m=Oe;break}if(m&&j.label<m[2]){j.label=m[2],j.ops.push(Oe);break}m[2]&&j.ops.pop(),j.trys.pop();continue}Oe=o.call(c,j)}catch(kt){Oe=[6,kt],u=0}finally{a=m=0}if(5&Oe[0])throw Oe[1];return{value:Oe[0]?Oe[1]:void 0,done:!0}}([se,pt])}}}function $(){for(var c=0,o=0,a=arguments.length;o<a;o++)c+=arguments[o].length;var u=Array(c),m=0;for(o=0;o<a;o++)for(var h=arguments[o],j=0,Le=h.length;j<Le;j++,m++)u[m]=h[j];return u}var F=function(){function c(){}return c.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},c.setAttributes=function(o,a){for(var u=0,m=a;u<m.length;u++){var h=m[u],j=h[0],Le=h[1];o.setAttribute(j,Le)}},c.createRect=function(o,a,u){var m=document.createElementNS("http://www.w3.org/2000/svg","rect");return m.setAttribute("width",o.toString()),m.setAttribute("height",a.toString()),u&&c.setAttributes(m,u),m},c.createLine=function(o,a,u,m,h){var j=document.createElementNS("http://www.w3.org/2000/svg","line");return j.setAttribute("x1",o.toString()),j.setAttribute("y1",a.toString()),j.setAttribute("x2",u.toString()),j.setAttribute("y2",m.toString()),h&&c.setAttributes(j,h),j},c.createPolygon=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","polygon");return u.setAttribute("points",o),a&&c.setAttributes(u,a),u},c.createCircle=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","circle");return u.setAttribute("cx",(o/2).toString()),u.setAttribute("cy",(o/2).toString()),u.setAttribute("r",o.toString()),a&&c.setAttributes(u,a),u},c.createEllipse=function(o,a,u){var m=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return m.setAttribute("cx",(o/2).toString()),m.setAttribute("cy",(a/2).toString()),m.setAttribute("rx",(o/2).toString()),m.setAttribute("ry",(a/2).toString()),u&&c.setAttributes(m,u),m},c.createGroup=function(o){var a=document.createElementNS("http://www.w3.org/2000/svg","g");return o&&c.setAttributes(a,o),a},c.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},c.createMarker=function(o,a,u,m,h,j,Le){var se=document.createElementNS("http://www.w3.org/2000/svg","marker");return c.setAttributes(se,[["id",o],["orient",a],["markerWidth",u.toString()],["markerHeight",m.toString()],["refX",h.toString()],["refY",j.toString()]]),se.appendChild(Le),se},c.createText=function(o){var a=document.createElementNS("http://www.w3.org/2000/svg","text");return a.setAttribute("x","0"),a.setAttribute("y","0"),o&&c.setAttributes(a,o),a},c.createTSpan=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","tspan");return u.textContent=o,a&&c.setAttributes(u,a),u},c.createImage=function(o){var a=document.createElementNS("http://www.w3.org/2000/svg","image");return o&&c.setAttributes(a,o),a},c.createPoint=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return u.x=o,u.y=a,u},c.createPath=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","path");return u.setAttribute("d",o),a&&c.setAttributes(u,a),u},c}(),_e=function(){function c(){}return c.addKey=function(o){c.key=o},Object.defineProperty(c,"isLicensed",{get:function(){return!!c.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(c.key)},enumerable:!1,configurable:!0}),c}(),nt=function(){function c(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return c.prototype.rasterize=function(o,a,u){var m=this;return new Promise(function(h){var j=u!==void 0?u:document.createElement("canvas");o===null&&(m.markersOnly=!0,m.naturalSize=!1);var Le=document.createElementNS("http://www.w3.org/2000/svg","svg");Le.setAttribute("xmlns","http://www.w3.org/2000/svg"),Le.setAttribute("width",a.width.baseVal.valueAsString),Le.setAttribute("height",a.height.baseVal.valueAsString),Le.setAttribute("viewBox","0 0 "+a.viewBox.baseVal.width.toString()+" "+a.viewBox.baseVal.height.toString()),Le.innerHTML=a.innerHTML,m.naturalSize===!0?(Le.width.baseVal.value=o.naturalWidth,Le.height.baseVal.value=o.naturalHeight):m.width!==void 0&&m.height!==void 0&&(Le.width.baseVal.value=m.width,Le.height.baseVal.value=m.height),j.width=Le.width.baseVal.value,j.height=Le.height.baseVal.value;var se=Le.outerHTML,pt=j.getContext("2d");m.markersOnly!==!0&&pt.drawImage(o,0,0,j.width,j.height);var Oe=window.URL,kt=new Image(j.width,j.height);kt.setAttribute("crossOrigin","anonymous");var Wt=new Blob([se],{type:"image/svg+xml"}),Kt=Oe.createObjectURL(Wt);kt.onload=function(){pt.drawImage(kt,0,0),Oe.revokeObjectURL(Kt);var Qn=j.toDataURL(m.imageType,m.imageQuality);h(Qn)},kt.src=Kt})},c}(),qe=function(){},it=function(){function c(o){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+o+"_"}return Object.defineProperty(c.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(c.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(c.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),c.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},c.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)},c.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 $e("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new $e("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new $e("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new Re("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new Re("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},c.prototype.removeStyleSheet=function(){var o;this.styleSheet&&(((o=this.styleSheetRoot)!==null&&o!==void 0?o:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},c}(),$e=function(c,o){this.selector=c,this.style=o},Re=function(c,o){this.localName=c,this.style=o},We=function(){function c(o,a,u,m,h){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=o,this.displayMode=a,this.markerItems=u,this.uiStyleSettings=m,this.styles=h,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return c.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 u=document.createElement("div");u.className=this.toolbarBlockStyleClass.name,u.style.whiteSpace="nowrap",this.uiContainer.appendChild(u),this.addActionButton(u,'<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(u,'<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(u,'<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(u,'<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(u,'<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(u,'<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(u,'<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(u,'<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 j=document.createElement("div");j.className=""+a.toolbarButtonStyleClass.name,j.setAttribute("data-type-name",h.typeName),j.innerHTML=h.icon,j.addEventListener("click",function(){a.markerToolbarButtonClicked(j,h)}),a.buttons.push(j),a.markerButtons.push(j)}),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 m=document.createElement("div");m.className=this.toolbarBlockStyleClass.name,m.style.whiteSpace="nowrap",m.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(m),this.addActionButton(m,'<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(m,'<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()},c.prototype.addButtonClickListener=function(o){this.buttonClickListeners.push(o)},c.prototype.removeButtonClickListener=function(o){this.buttonClickListeners.indexOf(o)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(o),1)},c.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},c.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]))}},c.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")},c.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)})},c.prototype.addActionButton=function(o,a,u){var m=this,h=document.createElement("div");switch(h.className=""+this.toolbarButtonStyleClass.name,h.innerHTML=a,h.setAttribute("data-action",u),h.addEventListener("click",function(){m.actionToolbarButtonClicked(h,u)}),u){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)},c.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Re("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 Re("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Re("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Re("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 Re("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var o=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Re("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 Re("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Re("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new $e("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new $e("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},c.prototype.markerToolbarButtonClicked=function(o,a){this.setActiveButton(o),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(u){return u("marker",a)}),this.markerButtonOverflowBlock.style.display="none"},c.prototype.actionToolbarButtonClicked=function(o,a){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(u){return u("action",a)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},c.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)},c.prototype.setActiveMarkerButton=function(o){var a=this.markerButtons.find(function(u){return u.getAttribute("data-type-name")===o});a&&this.setActiveButton(a)},c.prototype.setCurrentMarker=function(o){var a=this;this.currentMarker=o,this.buttons.filter(function(u){return/delete|notes/.test(u.getAttribute("data-action"))}).forEach(function(u){a.currentMarker===void 0?(u.style.fillOpacity="0.4",u.style.pointerEvents="none"):(u.style.fillOpacity="1",u.style.pointerEvents="all")})},c}(),je=function(){function c(o,a,u,m){this.panels=[],this.panelButtons=[],this.markerjsContainer=o,this.displayMode=a,this.uiStyleSettings=u,this.styles=m,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return c.prototype.addStyles=function(){var o;this.toolboxStyleClass=this.styles.addClass(new Re("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 Re("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var a=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Re("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Re("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Re("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 Re("toolbox-panel-row_colors",`
|
|
background-color: `+((o=this.uiStyleSettings.toolboxBackgroundColor)!==null&&o!==void 0?o:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Re("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 Re("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Re("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new $e("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new $e("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},c.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)},c.prototype.setPanelButtons=function(o){var a,u,m=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+" "+((u=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&u!==void 0?u:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(h){var j;h.uiStyleSettings=m.uiStyleSettings;var Le=document.createElement("div");Le.className=m.toolboxButtonStyleClass.name+" "+((j=m.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&j!==void 0?j:m.toolboxButtonStyleColorsClass.name),Le.innerHTML=h.icon,Le.title=h.title,Le.addEventListener("click",function(){m.panelButtonClick(h)}),m.panelButtons.push(Le),m.buttonRow.appendChild(Le)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},c.prototype.panelButtonClick=function(o){var a=this,u=-1;if(o!==this.activePanel){u=this.panels.indexOf(o),this.panelRow.innerHTML="";var m=o.getUi();m.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(m),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,j){var Le,se;h.className=a.toolboxButtonStyleClass.name+" "+(j===u?""+((Le=a.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Le!==void 0?Le:a.toolboxActiveButtonStyleColorsClass.name):""+((se=a.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&se!==void 0?se:a.toolboxButtonStyleColorsClass.name))})},c}(),lt=function(c,o){this.title=c,this.icon=o},Ke=function(c){function o(a,u,m,h){var j=c.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 j.colors=[],j.addTransparent=!1,j.colorBoxes=[],j.colors=u,j.currentColor=m,j.setCurrentColor=j.setCurrentColor.bind(j),j.getColorBox=j.getColorBox.bind(j),j}return Ce(o,c),o.prototype.getUi=function(){var a=this,u=document.createElement("div");return u.style.overflow="hidden",u.style.whiteSpace="nowrap",this.colors.forEach(function(m){var h=a.getColorBox(m);u.appendChild(h),a.colorBoxes.push(h)}),u},o.prototype.getColorBox=function(a){var u=this,m=this.uiStyleSettings.toolbarHeight/4,h=this.uiStyleSettings.toolbarHeight-m,j=document.createElement("div");j.style.display="inline-block",j.style.boxSizing="content-box",j.style.width=h-2+"px",j.style.height=h-2+"px",j.style.padding="1px",j.style.marginRight="2px",j.style.marginBottom="2px",j.style.borderWidth="2px",j.style.borderStyle="solid",j.style.borderRadius=(h+2)/2+"px",j.style.borderColor=a===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",j.addEventListener("click",function(){u.setCurrentColor(a,j)});var Le=document.createElement("div");return Le.style.display="inline-block",Le.style.width=h-2+"px",Le.style.height=h-2+"px",Le.style.backgroundColor=a,Le.style.borderRadius=h/2+"px",a==="transparent"&&(Le.style.fill=this.uiStyleSettings.toolboxAccentColor,Le.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>`),j.appendChild(Le),j},o.prototype.setCurrentColor=function(a,u){var m=this;this.currentColor=a,this.colorBoxes.forEach(function(h){h.style.borderColor=h===u?m.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(a)},o}(lt),Te=function(){function c(o,a,u){this._state="new",this._isSelected=!1,this._container=o,this._overlayContainer=a,this.globalSettings=u,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(c.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),c.prototype.ownsTarget=function(o){return!1},Object.defineProperty(c.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),c.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},c.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},c.prototype.pointerDown=function(o,a){},c.prototype.dblClick=function(o,a){},c.prototype.manipulate=function(o){},c.prototype.pointerUp=function(o){this.stateChanged()},c.prototype.dispose=function(){},c.prototype.addMarkerVisualToContainer=function(o){this.container.childNodes.length>0?this.container.insertBefore(o,this.container.childNodes[0]):this.container.appendChild(o)},c.prototype.getState=function(){return{typeName:c.typeName,state:this.state,notes:this.notes}},c.prototype.restoreState=function(o){this._state=o.state,this.notes=o.notes},c.prototype.scale=function(o,a){},c.prototype.colorChanged=function(o){this.onColorChanged&&this.onColorChanged(o),this.stateChanged()},c.prototype.fillColorChanged=function(o){this.onFillColorChanged&&this.onFillColorChanged(o),this.stateChanged()},c.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)}},c.typeName="MarkerBase",c}(),Qe=function(){function c(){this.findGripByVisual=this.findGripByVisual.bind(this)}return c.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},c}(),dt=function(){function c(){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 c.prototype.ownsTarget=function(o){return o===this.visual||o===this.visual.childNodes[0]||o===this.visual.childNodes[1]},c}(),ut=function(){function c(){}return c.toITransformMatrix=function(o){return{a:o.a,b:o.b,c:o.c,d:o.d,e:o.e,f:o.f}},c.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},c}(),et=function(c){function o(a,u,m){var h=c.call(this,a,u,m)||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 Ce(o,c),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 u=F.createTransform();this._visual.transform.baseVal.appendItem(u)},enumerable:!1,configurable:!0}),o.prototype.ownsTarget=function(a){return!!c.prototype.ownsTarget.call(this,a)||!!(this.controlGrips.findGripByVisual(a)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(a))},o.prototype.pointerDown=function(a,u){c.prototype.pointerDown.call(this,a,u),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 m=this.unrotatePoint(a);if(this.manipulationStartX=m.x,this.manipulationStartY=m.y,this.offsetX=m.x-this.left,this.offsetY=m.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(u),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(u)){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 j=this.container.transform.baseVal.getItem(0);j.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(j,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},o.prototype.pointerUp=function(a){var u=this.state;c.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",u==="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 u=this.unrotatePoint(a);this.state==="creating"?this.resize(a):this.state==="move"?(this.left=this.manipulationStartLeft+(u.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(u.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(u):this.state==="rotate"&&this.rotate(a)},o.prototype.resize=function(a){var u=this.manipulationStartLeft,m=this.manipulationStartWidth,h=this.manipulationStartTop,j=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:u=this.manipulationStartLeft+a.x-this.manipulationStartX,m=this.manipulationStartWidth+this.manipulationStartLeft-u;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:m=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,j=this.manipulationStartHeight+this.manipulationStartTop-h;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:j=this.manipulationStartHeight+a.y-this.manipulationStartY}m>=0?(this.left=u,this.width=m):(this.left=u+m,this.width=-m),j>=0?(this.top=h,this.height=j):(this.top=h+j,this.height=-j),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 u=Math.sign(a.x-this.centerX);this.rotationAngle=180*Math.atan((a.y-this.centerY)/(a.x-this.centerX))/Math.PI+90*u,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 u=this.container.getCTM(),m=F.createPoint(a.x,a.y);return{x:(m=m.matrixTransform(u)).x,y:m.y}},o.prototype.unrotatePoint=function(a){if(this.rotationAngle===0)return a;var u=this.container.getCTM();u=u.inverse();var m=F.createPoint(a.x,a.y);return{x:(m=m.matrixTransform(u)).x,y:m.y}},o.prototype.select=function(){c.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},o.prototype.deselect=function(){c.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 Qe,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,u=-a/2,m=u,h=(this.width+this.CB_DISTANCE)/2-a/2,j=(this.height+this.CB_DISTANCE)/2-a/2,Le=this.height+this.CB_DISTANCE-a/2,se=this.width+this.CB_DISTANCE-a/2;this.positionGrip(this.controlGrips.topLeft.visual,u,m),this.positionGrip(this.controlGrips.topCenter.visual,h,m),this.positionGrip(this.controlGrips.topRight.visual,se,m),this.positionGrip(this.controlGrips.centerLeft.visual,u,j),this.positionGrip(this.controlGrips.centerRight.visual,se,j),this.positionGrip(this.controlGrips.bottomLeft.visual,u,Le),this.positionGrip(this.controlGrips.bottomCenter.visual,h,Le),this.positionGrip(this.controlGrips.bottomRight.visual,se,Le),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,h,m-3*this.CB_DISTANCE)},o.prototype.positionGrip=function(a,u,m){var h=a.transform.baseVal.getItem(0);h.setTranslate(u,m),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:ut.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ut.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},c.prototype.getState.call(this))},o.prototype.restoreState=function(a){c.prototype.restoreState.call(this,a);var u=a;this.left=u.left,this.top=u.top,this.width=u.width,this.height=u.height,this.rotationAngle=u.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ut.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,u.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ut.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,u.containerTransformMatrix))},o.prototype.scale=function(a,u){c.prototype.scale.call(this,a,u);var m=this.rotatePoint({x:this.left,y:this.top}),h=this.unrotatePoint({x:m.x*a,y:m.y*u});this.left=h.x,this.top=h.y,this.width=this.width*a,this.height=this.height*u,this.adjustControlBox()},o}(Te),Je=function(c){function o(a,u,m){var h=c.call(this,a,u,m)||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 Ce(o,c),o.prototype.ownsTarget=function(a){return!(!c.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,u){c.prototype.pointerDown.call(this,a,u),this.state==="new"&&(this.createVisual(),this.moveVisual(a),this._state="creating")},o.prototype.manipulate=function(a){c.prototype.manipulate.call(this,a)},o.prototype.resize=function(a){c.prototype.resize.call(this,a),this.setSize()},o.prototype.setSize=function(){c.prototype.setSize.call(this),F.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},o.prototype.pointerUp=function(a){c.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},c.prototype.getState.call(this))},o.prototype.restoreState=function(a){var u=a;this.fillColor=u.fillColor,this.strokeColor=u.strokeColor,this.strokeWidth=u.strokeWidth,this.strokeDasharray=u.strokeDasharray,this.opacity=u.opacity,this.createVisual(),c.prototype.restoreState.call(this,a),this.setSize()},o.prototype.scale=function(a,u){c.prototype.scale.call(this,a,u),this.setSize()},o.title="Rectangle marker",o}(et),ft=function(c){function o(a,u,m,h){var j=c.call(this,a,h||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return j.widths=[],j.widthBoxes=[],j.widths=u,j.currentWidth=m,j.setCurrentWidth=j.setCurrentWidth.bind(j),j}return Ce(o,c),o.prototype.getUi=function(){var a=this,u=document.createElement("div");return u.style.display="flex",u.style.overflow="hidden",u.style.flexGrow="2",this.widths.forEach(function(m){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=m===a.currentWidth?a.uiStyleSettings.toolboxAccentColor:"transparent",h.addEventListener("click",function(){a.setCurrentWidth(m,h)}),u.appendChild(h);var j=document.createElement("div");j.innerText=m.toString(),j.style.marginRight="5px",h.appendChild(j);var Le=document.createElement("div");Le.style.minHeight="20px",Le.style.flexGrow="2",Le.style.display="flex",Le.style.alignItems="center";var se=document.createElement("hr");se.style.minWidth="20px",se.style.border="0px",se.style.borderTop=m+"px solid "+a.uiStyleSettings.toolboxColor,se.style.flexGrow="2",Le.appendChild(se),h.appendChild(Le),a.widthBoxes.push(h)}),u},o.prototype.setCurrentWidth=function(a,u){var m=this;this.currentWidth=a,this.widthBoxes.forEach(function(h){h.style.borderColor=h===u?m.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},o}(lt),st=function(c){function o(a,u,m,h){var j=c.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 j.styles=[],j.styleBoxes=[],j.styles=u,j.currentStyle=m,j.setCurrentStyle=j.setCurrentStyle.bind(j),j}return Ce(o,c),o.prototype.getUi=function(){var a=this,u=document.createElement("div");return u.style.display="flex",u.style.overflow="hidden",u.style.flexGrow="2",this.styles.forEach(function(m){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=m===a.currentStyle?a.uiStyleSettings.toolboxAccentColor:"transparent",h.addEventListener("click",function(){a.setCurrentStyle(m,h)}),u.appendChild(h);var j=document.createElement("div");j.style.minHeight="20px",j.style.flexGrow="2",j.style.overflow="hidden";var Le=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+a.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(m!==""?'stroke-dasharray="'+m+'"':"")+` />
|
|
</svg>`;j.innerHTML=Le,h.appendChild(j),a.styleBoxes.push(h)}),u},o.prototype.setCurrentStyle=function(a,u){var m=this;this.currentStyle=a,this.styleBoxes.forEach(function(h){h.style.borderColor=h===u?m.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},o}(lt),ot=function(c){function o(a,u,m){var h=c.call(this,a,u,m)||this;return h.strokeColor=m.defaultColor,h.strokeWidth=m.defaultStrokeWidth,h.strokeDasharray=m.defaultStrokeDasharray,h.strokePanel=new Ke("Line color",m.defaultColorSet,m.defaultColor),h.strokePanel.onColorChanged=h.setStrokeColor,h.strokeWidthPanel=new ft("Line width",m.defaultStrokeWidths,m.defaultStrokeWidth),h.strokeWidthPanel.onWidthChanged=h.setStrokeWidth,h.strokeStylePanel=new st("Line style",m.defaultStrokeDasharrays,m.defaultStrokeDasharray),h.strokeStylePanel.onStyleChanged=h.setStrokeDasharray,h}return Ce(o,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=c.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}(Je),Ee=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},gt=function(c){function o(a,u,m){var h=c.call(this,a,u,m)||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 Ce(o,c),o.prototype.ownsTarget=function(a){return!!c.prototype.ownsTarget.call(this,a)||!(!this.grip1.ownsTarget(a)&&!this.grip2.ownsTarget(a))},o.prototype.pointerDown=function(a,u){c.prototype.pointerDown.call(this,a,u),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(u)?this.activeGrip=this.grip1:this.grip2.ownsTarget(u)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},o.prototype.pointerUp=function(a){var u=this.state;c.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",u==="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(){c.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},o.prototype.deselect=function(){c.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,u,m){var h=a.transform.baseVal.getItem(0);h.setTranslate(u,m),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},c.prototype.getState.call(this))},o.prototype.restoreState=function(a){c.prototype.restoreState.call(this,a);var u=a;this.x1=u.x1,this.y1=u.y1,this.x2=u.x2,this.y2=u.y2},o.prototype.scale=function(a,u){c.prototype.scale.call(this,a,u),this.x1=this.x1*a,this.y1=this.y1*u,this.x2=this.x2*a,this.y2=this.y2*u,this.adjustVisual(),this.adjustControlBox()},o}(Te),rt=function(c){function o(a,u,m){var h=c.call(this,a,u,m)||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=m.defaultColor,h.strokeWidth=m.defaultStrokeWidth,h.strokeDasharray=m.defaultStrokeDasharray,h.strokePanel=new Ke("Line color",m.defaultColorSet,m.defaultColor),h.strokePanel.onColorChanged=h.setStrokeColor,h.strokeWidthPanel=new ft("Line width",m.defaultStrokeWidths,m.defaultStrokeWidth),h.strokeWidthPanel.onWidthChanged=h.setStrokeWidth,h.strokeStylePanel=new st("Line style",m.defaultStrokeDasharrays,m.defaultStrokeDasharray),h.strokeStylePanel.onStyleChanged=h.setStrokeDasharray,h}return Ce(o,c),o.prototype.ownsTarget=function(a){return!(!c.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,u){c.prototype.pointerDown.call(this,a,u),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},c.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){c.prototype.restoreState.call(this,a);var u=a;this.strokeColor=u.strokeColor,this.strokeWidth=u.strokeWidth,this.strokeDasharray=u.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}(gt),be=function(c){function o(a,u,m,h){var j=c.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 j.fonts=[],j.fontBoxes=[],j.fonts=u,j.currentFont=m,j.setCurrentFont=j.setCurrentFont.bind(j),j}return Ce(o,c),o.prototype.getUi=function(){var a=this,u=document.createElement("div");return u.style.overflow="hidden",u.style.flexGrow="2",this.fonts.forEach(function(m){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=m===a.currentFont?a.uiStyleSettings.toolboxAccentColor:"transparent",h.addEventListener("click",function(){a.setCurrentFont(m,h)}),u.appendChild(h);var j=document.createElement("div");j.style.display="flex",j.style.minHeight="20px",j.style.flexGrow="2",j.style.fontFamily=m,j.style.overflow="hidden";var Le=document.createElement("div");Le.style.whiteSpace="nowrap",Le.style.overflow="hidden",Le.style.textOverflow="ellipsis",Le.innerHTML="The quick brown fox jumps over the lazy dog",j.appendChild(Le),h.appendChild(j),a.fontBoxes.push(h)}),u},o.prototype.setCurrentFont=function(a,u){var m=this;this.currentFont=a,this.fontBoxes.forEach(function(h){h.style.borderColor=h===u?m.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},o}(lt),Ie=function(c){function o(a,u,m){var h=c.call(this,a,u,m)||this;return h.color="transparent",h.padding=5,h.DEFAULT_TEXT="your text here",h.text=h.DEFAULT_TEXT,h.isMoved=!1,h.color=m.defaultColor,h.fontFamily=m.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 Ke("Color",m.defaultColorSet,m.defaultColor),h.colorPanel.onColorChanged=h.setColor,h.fontFamilyPanel=new be("Font",m.defaultFontFamilies,m.defaultFontFamily),h.fontFamilyPanel.onFontChanged=h.setFont,h}return Ce(o,c),o.prototype.ownsTarget=function(a){if(c.prototype.ownsTarget.call(this,a)||a===this.visual||a===this.textElement||a===this.bgRectangle)return!0;var u=!1;return this.textElement.childNodes.forEach(function(m){m===a&&(u=!0)}),u},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,u){c.prototype.pointerDown.call(this,a,u),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(u){a.textElement.appendChild(F.createTSpan(u.trim()===""?" ":u.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},o.prototype.getTextScale=function(){var a=this.textElement.getBBox(),u=1;if(a.width>0&&a.height>0){var m=(1*this.width-this.width*this.padding*2/100)/a.width,h=(1*this.height-this.height*this.padding*2/100)/a.height;u=Math.min(m,h)}return u},o.prototype.getTextPosition=function(a){var u=this.textElement.getBBox(),m=0,h=0;return u.width>0&&u.height>0&&(m=(this.width-u.width*a)/2,h=this.height/2-u.height*a/2),{x:m,y:h}},o.prototype.sizeText=function(){var a=this.textElement.getBBox(),u=this.getTextScale(),m=this.getTextPosition(u);m.y-=a.y*u,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+m.x+"px, "+m.y+"px) scale("+u+", "+u+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(m.x,m.y),this.textElement.transform.baseVal.getItem(1).setScale(u,u))},o.prototype.manipulate=function(a){c.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){c.prototype.resize.call(this,a),this.isMoved=!0,this.setSize(),this.sizeText()},o.prototype.setSize=function(){c.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 u=this.state;u==="creating"&&(this._suppressMarkerCreateEvent=!0),c.prototype.pointerUp.call(this,a),this.setSize(),(u==="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(u){u.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var u=Number.parseFloat(a.textEditor.style.fontSize);a.textEditor.clientWidth>=Number.parseInt(a.textEditor.style.maxWidth)&&u>.9;)u-=.1,a.textEditor.style.fontSize=Math.max(u,.9)+"em"}),this.textEditor.addEventListener("keyup",function(u){u.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(u){if(u.clipboardData){var m=u.clipboardData.getData("text"),h=window.getSelection();if(!h.rangeCount)return!1;h.deleteFromDocument(),h.getRangeAt(0).insertNode(document.createTextNode(m)),u.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(),u=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),m=this.textElement.getBBox(),h={x:m.width*a,y:m.height*a};u.x-=h.x/2,u.y-=h.y/2,this.textEditor.style.top=u.y+"px",this.textEditor.style.left=u.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-u.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(){c.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},o.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),c.prototype.deselect.call(this)},o.prototype.dblClick=function(a,u){c.prototype.dblClick.call(this,a,u),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},c.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){var u=a;this.color=u.color,this.fontFamily=u.fontFamily,this.padding=u.padding,this.text=u.text,this.createVisual(),c.prototype.restoreState.call(this,a),this.setSize()},o.prototype.scale=function(a,u){c.prototype.scale.call(this,a,u),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}(et),V=function(c){function o(a,u,m){var h=c.call(this,a,u,m)||this;return h.color="transparent",h.lineWidth=3,h.drawing=!1,h.pixelRatio=1,h.color=m.defaultColor,h.lineWidth=m.defaultStrokeWidth,h.pixelRatio=m.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 Ke("Color",m.defaultColorSet,m.defaultColor),h.colorPanel.onColorChanged=h.setColor,h.lineWidthPanel=new ft("Line width",m.defaultStrokeWidths,m.defaultStrokeWidth),h.lineWidthPanel.onWidthChanged=h.setLineWidth,h}return Ce(o,c),o.prototype.ownsTarget=function(a){return!(!c.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,u){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):c.prototype.pointerDown.call(this,a,u)},o.prototype.manipulate=function(a){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(a.x,a.y),this.canvasContext.stroke()):c.prototype.manipulate.call(this,a)},o.prototype.resize=function(a){c.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()):c.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(),c.prototype.select.call(this)},o.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),c.prototype.deselect.call(this)},o.prototype.finishCreation=function(){for(var a=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),u=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],m=u[0],h=u[1],j=u[2],Le=u[3],se=!1,pt=0;pt<this.canvasElement.height;pt++)for(var Oe=0;Oe<this.canvasElement.width;Oe++)a.data[pt*this.canvasElement.width*4+4*Oe+3]>0&&(se=!0,pt<h&&(h=pt),Oe<m&&(m=Oe),pt>Le&&(Le=pt),Oe>j&&(j=Oe));if(se){this.left=m/this.pixelRatio,this.top=h/this.pixelRatio,this.width=(j-m)/this.pixelRatio,this.height=(Le-h)/this.pixelRatio;var kt=document.createElement("canvas");kt.width=j-m,kt.height=Le-h,kt.getContext("2d").putImageData(this.canvasContext.getImageData(m,h,j-m,Le-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},c.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){this.createVisual(),c.prototype.restoreState.call(this,a),this.drawingImgUrl=a.drawingImgUrl,this.setDrawingImage()},o.prototype.scale=function(a,u){c.prototype.scale.call(this,a,u),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}(et),_=function(c){function o(a,u,m){var h=c.call(this,a,m||'<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=u,h.setCurrentType=h.setCurrentType.bind(h),h}return Ce(o,c),o.prototype.getUi=function(){var a=this,u=document.createElement("div");u.style.display="flex",u.style.overflow="hidden",u.style.flexGrow="2";for(var m=function(Le){var se="both";switch(Le){case 0:se="both";break;case 1:se="start";break;case 2:se="end";break;case 3:se="none"}var pt=document.createElement("div");if(pt.style.display="flex",pt.style.flexGrow="2",pt.style.alignItems="center",pt.style.justifyContent="space-between",pt.style.padding="5px",pt.style.borderWidth="2px",pt.style.borderStyle="solid",pt.style.borderColor=se===h.currentType?h.uiStyleSettings.toolboxAccentColor:"transparent",pt.addEventListener("click",function(){a.setCurrentType(se,pt)}),u.appendChild(pt),se==="both"||se==="start"){var Oe=document.createElement("div");Oe.style.display="flex",Oe.style.alignItems="center",Oe.style.minHeight="20px",Oe.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>`,Oe.style.marginLeft="5px",pt.appendChild(Oe)}var kt=document.createElement("div");kt.style.display="flex",kt.style.alignItems="center",kt.style.minHeight="20px",kt.style.flexGrow="2";var Wt=document.createElement("hr");if(Wt.style.minWidth="20px",Wt.style.border="0px",Wt.style.borderTop="3px solid "+(h.uiStyleSettings!==void 0?h.uiStyleSettings.toolboxColor:"#eeeeee"),Wt.style.flexGrow="2",kt.appendChild(Wt),pt.appendChild(kt),se==="both"||se==="end"){var Kt=document.createElement("div");Kt.style.display="flex",Kt.style.alignItems="center",Kt.style.minHeight="20px",Kt.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>`,Kt.style.marginRight="5px",pt.appendChild(Kt)}h.typeBoxes.push(pt)},h=this,j=0;j<4;j++)m(j);return u},o.prototype.setCurrentType=function(a,u){var m=this;this.currentType=a,this.typeBoxes.forEach(function(h){h.style.borderColor=h===u?m.uiStyleSettings!==void 0?m.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},o}(lt),G=function(c){function o(a,u,m){var h=c.call(this,a,u,m)||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 _("Arrow type","end"),h.arrowTypePanel.onArrowTypeChanged=h.setArrowType,h}return Ce(o,c),o.prototype.ownsTarget=function(a){return!(!c.prototype.ownsTarget.call(this,a)&&a!==this.arrow1&&a!==this.arrow2)},o.prototype.getArrowPoints=function(a,u){var m=this.arrowBaseWidth+2*this.strokeWidth,h=this.arrowBaseHeight+2*this.strokeWidth;return a-m/2+","+(u+h/2)+" "+a+","+(u-h/2)+" "+(a+m/2)+","+(u+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,u){c.prototype.pointerDown.call(this,a,u),this.state==="creating"&&this.createTips()},o.prototype.adjustVisual=function(){if(c.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),u=this.arrow1.transform.baseVal.getItem(0);u.setRotate(a,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(u,0);var m=this.arrow2.transform.baseVal.getItem(0);m.setRotate(a+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(m,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},c.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){c.prototype.restoreState.call(this,a);var u=a;this.arrowType=u.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}(rt),y=function(c){function o(a,u,m){var h=c.call(this,a,u,m)||this;return h.fillColor=m.defaultFillColor,h.strokeWidth=0,h.fillPanel=new Ke("Color",m.defaultColorSet,m.defaultFillColor),h.fillPanel.onColorChanged=h.setFillColor,h}return Ce(o,c),Object.defineProperty(o.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),o.prototype.getState=function(){var a=c.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}(Je),C=function(c){function o(a,u,m,h){var j=c.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 j.opacities=[],j.opacityBoxes=[],j.opacities=u,j.currentOpacity=m,j.setCurrentOpacity=j.setCurrentOpacity.bind(j),j}return Ce(o,c),o.prototype.getUi=function(){var a=this,u=document.createElement("div");return u.style.display="flex",u.style.overflow="hidden",u.style.flexGrow="2",u.style.justifyContent="space-between",this.opacities.forEach(function(m){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=m===a.currentOpacity?a.uiStyleSettings.toolboxAccentColor:"transparent",h.addEventListener("click",function(){a.setCurrentOpacity(m,h)}),u.appendChild(h);var j=document.createElement("div");j.innerText=100*m+"%",h.appendChild(j),a.opacityBoxes.push(h)}),u},o.prototype.setCurrentOpacity=function(a,u){var m=this;this.currentOpacity=a,this.opacityBoxes.forEach(function(h){h.style.borderColor=h===u?m.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},o}(lt),w=function(c){function o(a,u,m){var h=c.call(this,a,u,m)||this;return h.setOpacity=h.setOpacity.bind(h),h.fillColor=m.defaultHighlightColor,h.strokeWidth=0,h.opacity=m.defaultHighlightOpacity,h.fillPanel=new Ke("Color",m.defaultColorSet,h.fillColor),h.fillPanel.onColorChanged=h.setFillColor,h.opacityPanel=new C("Opacity",m.defaultOpacitySteps,h.opacity),h.opacityPanel.onOpacityChanged=h.setOpacity,h}return Ce(o,c),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=c.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}(y),T='<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>',ie=function(c){function o(a,u,m){var h=c.call(this,a,u,m)||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=m.defaultStrokeColor,h.bgColor=m.defaultFillColor,h.fontFamily=m.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 Ke("Text color",m.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 Ke("Fill color",m.defaultColorSet,h.bgColor,T),h.bgColorPanel.onColorChanged=h.setBgColor,h.fontFamilyPanel=new be("Font",m.defaultFontFamilies,m.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 Ce(o,c),o.prototype.ownsTarget=function(a){return c.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,u){this.state==="new"&&c.prototype.pointerDown.call(this,a,u),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(u)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):c.prototype.pointerDown.call(this,a,u)},o.prototype.pointerUp=function(a){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,c.prototype.pointerUp.call(this,a);else{var u=this.state==="creating";c.prototype.pointerUp.call(this,a),this.setTipPoints(u),this.positionTip()}},o.prototype.manipulate=function(a){if(this.tipMoving){var u=this.unrotatePoint(a);this.tipPosition={x:u.x-this.manipulationStartLeft,y:u.y-this.manipulationStartTop},this.positionTip()}else c.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 u=Math.min(this.height/2,15),m=this.height/5;a&&(this.tipPosition={x:u+m/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))?(m=this.width/5,u=Math.min(this.width/2,15),this.tipBase1Position={x:u,y:0},this.tipBase2Position={x:u+m,y:0}):(this.tipBase1Position={x:0,y:u},this.tipBase2Position={x:0,y:u+m}):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))?(m=this.width/5,u=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-u-m,y:0},this.tipBase2Position={x:this.width-u,y:0}):(this.tipBase1Position={x:this.width,y:u},this.tipBase2Position={x:this.width,y:u+m}):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))?(m=this.width/5,u=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-u-m,y:this.height},this.tipBase2Position={x:this.width-u,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-u-m},this.tipBase2Position={x:this.width,y:this.height-u}):h<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(m=this.width/5,u=Math.min(this.width/2,15),this.tipBase1Position={x:u,y:this.height},this.tipBase2Position={x:u+m,y:this.height}):(this.tipBase1Position={x:0,y:this.height-u},this.tipBase2Position={x:0,y:this.height-u-m})},o.prototype.resize=function(a){c.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(),c.prototype.select.call(this)},o.prototype.getState=function(){var a=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},c.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){var u=a;this.bgColor=u.bgColor,this.tipPosition=u.tipPosition,c.prototype.restoreState.call(this,a),this.createTip(),this.setTipPoints()},o.prototype.scale=function(a,u){c.prototype.scale.call(this,a,u),this.tipPosition={x:this.tipPosition.x*a,y:this.tipPosition.y*u},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}(Ie),fe=function(c){function o(a,u,m){var h=c.call(this,a,u,m)||this;return h.fillColor="transparent",h.strokeColor="transparent",h.strokeWidth=0,h.strokeDasharray="",h.opacity=1,h.strokeColor=m.defaultColor,h.strokeWidth=m.defaultStrokeWidth,h.strokeDasharray=m.defaultStrokeDasharray,h.fillColor=m.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 Ke("Line color",$(m.defaultColorSet,["transparent"]),m.defaultColor),h.strokePanel.onColorChanged=h.setStrokeColor,h.fillPanel=new Ke("Fill color",$(m.defaultColorSet,["transparent"]),h.fillColor,T),h.fillPanel.onColorChanged=h.setFillColor,h.strokeWidthPanel=new ft("Line width",m.defaultStrokeWidths,m.defaultStrokeWidth),h.strokeWidthPanel.onWidthChanged=h.setStrokeWidth,h.strokeStylePanel=new st("Line style",m.defaultStrokeDasharrays,m.defaultStrokeDasharray),h.strokeStylePanel.onStyleChanged=h.setStrokeDasharray,h.opacityPanel=new C("Opacity",m.defaultOpacitySteps,h.opacity),h.opacityPanel.onOpacityChanged=h.setOpacity,h}return Ce(o,c),o.prototype.ownsTarget=function(a){return!(!c.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,u){c.prototype.pointerDown.call(this,a,u),this.state==="new"&&(this.createVisual(),this.moveVisual(a),this._state="creating")},o.prototype.manipulate=function(a){c.prototype.manipulate.call(this,a)},o.prototype.resize=function(a){c.prototype.resize.call(this,a),this.setSize()},o.prototype.setSize=function(){c.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){c.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},c.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){var u=a;this.fillColor=u.fillColor,this.strokeColor=u.strokeColor,this.strokeWidth=u.strokeWidth,this.strokeDasharray=u.strokeDasharray,this.opacity=u.opacity,this.createVisual(),c.prototype.restoreState.call(this,a),this.setSize()},o.prototype.scale=function(a,u){c.prototype.scale.call(this,a,u),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}(et),Be=function(c){function o(a,u,m){return c.call(this,a,u,m)||this}return Ce(o,c),Object.defineProperty(o.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),o.prototype.ownsTarget=function(a){return!(!c.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,u){c.prototype.pointerDown.call(this,a,u),this.state==="creating"&&this.createTips()},o.prototype.adjustVisual=function(){if(c.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),u=this.tip1.transform.baseVal.getItem(0);u.setRotate(a,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(u,0);var m=this.tip2.transform.baseVal.getItem(0);m.setRotate(a+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(m,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=c.prototype.getState.call(this);return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){c.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}(rt),bt=function(c){function o(a,u,m){var h=c.call(this,a,u,m)||this;return h.strokePanel.colors=m.defaultColorSet,h.fillColor="transparent",h}return Ce(o,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=c.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}(fe),Lt=function(){function c(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(c.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),c.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))},c.prototype.replaceLastUndoStep=function(o){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=o)},c.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},c.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}},c.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},c}(),De=function(c){function o(a,u,m){var h=c.call(this,a,u,m)||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=m.defaultColor,h.strokeWidth=m.defaultStrokeWidth,h.strokeDasharray=m.defaultStrokeDasharray,h.strokePanel=new Ke("Line color",m.defaultColorSet,m.defaultColor),h.strokePanel.onColorChanged=h.setStrokeColor,h.strokeWidthPanel=new ft("Line width",m.defaultStrokeWidths,m.defaultStrokeWidth),h.strokeWidthPanel.onWidthChanged=h.setStrokeWidth,h.strokeStylePanel=new st("Line style",m.defaultStrokeDasharrays,m.defaultStrokeDasharray),h.strokeStylePanel.onStyleChanged=h.setStrokeDasharray,h}return Ce(o,c),o.prototype.ownsTarget=function(a){return!(!c.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,u){c.prototype.pointerDown.call(this,a,u),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(u)&&(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(){c.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,c.prototype.addControlGrips.call(this)},o.prototype.positionGrips=function(){c.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),c.prototype.manipulate.call(this,a)},o.prototype.resize=function(a){this.activeGrip===this.curveGrip&&(this.curveX=a.x,this.curveY=a.y),c.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,u){this.curveX=this.curveX*a,this.curveY=this.curveY*u,c.prototype.scale.call(this,a,u)},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},c.prototype.getState.call(this));return a.typeName=o.typeName,a},o.prototype.restoreState=function(a){c.prototype.restoreState.call(this,a);var u=a;this.strokeColor=u.strokeColor,this.strokeWidth=u.strokeWidth,this.strokeDasharray=u.strokeDasharray,this.curveX=u.curveX,this.curveY=u.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}(gt),At=function(){function c(o,a){a===void 0&&(a=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=o,this.cancelable=a}return Object.defineProperty(c.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),c.prototype.preventDefault=function(){this._defaultPrevented=!0},c}(),mt=function(c){function o(a,u,m){var h=c.call(this,a,!1)||this;return h.dataUrl=u,h.state=m,h}return Ce(o,c),o}(At),tt=function(c){function o(a,u,m){m===void 0&&(m=!1);var h=c.call(this,a,m)||this;return h.marker=u,h}return Ce(o,c),o}(At),Ut=function(){function c(){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 c.prototype.addEventListener=function(o,a){this[o].push(a)},c.prototype.removeEventListener=function(o,a){var u=this[o].indexOf(a);u>-1&&this[o].splice(u,1)},c}(),Dt=function(){function c(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 Ee,this._isOpen=!1,this.undoRedoManager=new Lt,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Ut,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=c.instanceCounter++,this.styles=new it(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(c.prototype,"ALL_MARKER_TYPES",{get:function(){return[ot,V,G,Ie,bt,fe,w,ie,Be,y,rt,De]},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ot,V,G,Ie,fe,w,ie]},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ot,V,G,Ie,w]},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(o){var a=this;this._availableMarkerTypes.splice(0),o.forEach(function(u){if(typeof u=="string"){var m=a.ALL_MARKER_TYPES.find(function(h){return h.typeName===u});m!==void 0&&a._availableMarkerTypes.push(m)}else a._availableMarkerTypes.push(u)})},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(c.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(c.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),c.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),_e.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},c.prototype.show=function(){var o=this;this.styles.styleSheetRoot===void 0&&qe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=qe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(a){return a(new At(o))})},c.prototype.render=function(){return xe(this,void 0,void 0,function(){var o;return Se(this,function(a){switch(a.label){case 0:return this.setCurrentMarker(),(o=new nt).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()]}})})},c.prototype.close=function(o){var a=this;if(o===void 0&&(o=!1),this.isOpen){var u=!1;o||this.eventListeners.beforeclose.forEach(function(m){var h=new At(a,!0);m(h),h.defaultPrevented&&(u=!0)}),u||(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(m){return m(new At(a))}),this.detachEvents(),this._isOpen=!1)}},c.prototype.addMarkersToToolbar=function(){for(var o,a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];(o=this._availableMarkerTypes).push.apply(o,a)},c.prototype.addRenderEventListener=function(o){this.addEventListener("render",function(a){o(a.dataUrl,a.state)})},c.prototype.removeRenderEventListener=function(o){},c.prototype.addCloseEventListener=function(o){this.addEventListener("close",function(){o()})},c.prototype.removeCloseEventListener=function(o){},c.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))},c.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,u=a<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/o;this.resize(a,u)},c.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},c.prototype.resize=function(o,a){this._isResizing=!0;var u=o/this.imageWidth,m=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(u,m),this._isResizing=!1},c.prototype.scaleMarkers=function(o,a){var u,m=this;this._currentMarker&&this._currentMarker instanceof Ie?this._currentMarker.scale(o,a):(u=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(h){h!==m._currentMarker&&h.scale(o,a)}),u!==void 0&&this.setCurrentMarker(u)},c.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"},c.prototype.setTopLeft=function(){var o=this.editingTarget.getBoundingClientRect(),a=this.editorCanvas.getBoundingClientRect();this.left=o.left-a.left,this.top=o.top-a.top},c.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)},c.prototype.addDefs=function(){for(var o,a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];this.defs=F.createDefs(),this.addDefsToImage(),(o=this.defs).append.apply(o,a)},c.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},c.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)},c.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},c.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},c.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)},c.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},c.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)},c.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()},c.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")},c.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"},c.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},c.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 We(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 je(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},c.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},c.prototype.removeMarker=function(o){this.markerImage.removeChild(o.container),this.markers.indexOf(o)>-1&&this.markers.splice(this.markers.indexOf(o),1),o.dispose()},c.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())},c.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()}},c.prototype.deleteSelectedMarker=function(){var o=this;if(this._currentMarker!==void 0){var a=!1;if(this.eventListeners.markerbeforedelete.forEach(function(m){var h=new tt(o,o._currentMarker,!0);m(h),h.defaultPrevented&&(a=!0)}),!a){var u=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(m){return m(new tt(o,u))})}}},c.prototype.clear=function(){var o=this,a=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(j){var Le=new tt(o,void 0,!0);j(Le),Le.defaultPrevented&&(a=!0)}),!a)){this.setCurrentMarker();for(var u=function(j){var Le=m.markers[j];m.setCurrentMarker(m.markers[j]),m._currentMarker.dispose(),m.markerImage.removeChild(m._currentMarker.container),m.markers.splice(m.markers.indexOf(m._currentMarker),1),m.eventListeners.markerdelete.forEach(function(se){return se(new tt(o,Le))})},m=this,h=this.markers.length-1;h>=0;h--)u(h);this.addUndoStep()}},Object.defineProperty(c.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),c.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))},c.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)},c.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},c.prototype.addUndoStep=function(){var o=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var a=this.getState(),u=this.undoRedoManager.getLastUndoStep();if(!u||u.width===a.width&&u.height===a.height){var m=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(a),m<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(h){return h(new At(o))})}else this.undoRedoManager.replaceLastUndoStep(a),this.eventListeners.statechange.forEach(function(h){return h(new At(o))})}},c.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},c.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(u){return u(new At(o))}))},c.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},c.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(u){return u(new At(o))}))},c.prototype.stepZoom=function(){var o=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=o<this.zoomSteps.length-1?this.zoomSteps[o+1]:this.zoomSteps[0]},c.prototype.panTo=function(o){this.contentDiv.scrollBy({left:this.prevPanPoint.x-o.x,top:this.prevPanPoint.y-o.y}),this.prevPanPoint=o},c.prototype.startRenderAndClose=function(){return xe(this,void 0,void 0,function(){var o,a,u=this;return Se(this,function(m){switch(m.label){case 0:return[4,this.render()];case 1:return o=m.sent(),a=this.getState(),this.eventListeners.render.forEach(function(h){return h(new mt(u,o,a))}),this.close(!0),[2]}})})},c.prototype.getState=function(o){o===!0&&this.setCurrentMarker();var a={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(u){return a.markers.push(u.getState())}),a},c.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(u){var m=a._availableMarkerTypes.find(function(j){return j.typeName===u.typeName});if(m!==void 0){var h=a.addNewMarker(m);h.restoreState(u),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(u){return u(new At(a))})},c.prototype.addNewMarker=function(o){var a=F.createGroup();return this.markerImage.appendChild(a),new o(a,this.overlayContainer,this.settings)},c.prototype.createNewMarker=function(o){var a,u=this;(a=typeof o=="string"?this._availableMarkerTypes.find(function(m){return m.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(m){return m(new tt(u,u._currentMarker))}))},c.prototype.markerCreated=function(o){var a=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(o),this.setCurrentMarker(o),o instanceof V&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(V):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(u){return u(new tt(a,a._currentMarker))})},c.prototype.colorChanged=function(o){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=o,this.settings.defaultStrokeColor=o)},c.prototype.fillColorChanged=function(o){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=o)},c.prototype.markerStateChanged=function(o){var a=this;this.eventListeners.markerchange.forEach(function(u){return u(new tt(a,o))})},c.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(u){return u(new tt(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(u){return u(new tt(a,a._currentMarker))}))},c.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(u){return u.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))},c.prototype.onDblClick=function(o){if(this._isFocused||this.focus(),this.mode==="select"){var a=this.markers.find(function(u){return u.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()}},c.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}))},c.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()},c.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},c.prototype.onKeyUp=function(o){this._currentMarker===void 0||this.notesArea!==void 0||o.key!=="Delete"&&o.key!=="Backspace"||this.deleteSelectedMarker()},c.prototype.clientToLocalCoordinates=function(o,a){var u=this.markerImage.getBoundingClientRect();return{x:(o-u.left)/this.zoomLevel,y:(a-u.top)/this.zoomLevel}},c.prototype.onWindowResize=function(){this.positionUI()},c.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()},c.prototype.addLicenseKey=function(o){_e.addKey(o)},c.prototype.addEventListener=function(o,a){this.eventListeners.addEventListener(o,a)},c.prototype.removeEventListener=function(o,a){this.eventListeners.removeEventListener(o,a)},c.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(c.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),c.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 At(o))}))},c.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 At(o))}))},c.instanceCounter=0,c}();/* **********************************
|
|
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 Nt=function(c,o){return(Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,u){a.__proto__=u}||function(a,u){for(var m in u)Object.prototype.hasOwnProperty.call(u,m)&&(a[m]=u[m])})(c,o)};function Mt(c,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=c}Nt(c,o),c.prototype=o===null?Object.create(o):(a.prototype=o.prototype,new a)}function ct(c,o,a,u){return new(a||(a=Promise))(function(m,h){function j(pt){try{se(u.next(pt))}catch(Oe){h(Oe)}}function Le(pt){try{se(u.throw(pt))}catch(Oe){h(Oe)}}function se(pt){var Oe;pt.done?m(pt.value):(Oe=pt.value,Oe instanceof a?Oe:new a(function(kt){kt(Oe)})).then(j,Le)}se((u=u.apply(c,o||[])).next())})}function It(c,o){var a,u,m,h,j={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return h={next:Le(0),throw:Le(1),return:Le(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function Le(se){return function(pt){return function(Oe){if(a)throw new TypeError("Generator is already executing.");for(;j;)try{if(a=1,u&&(m=2&Oe[0]?u.return:Oe[0]?u.throw||((m=u.return)&&m.call(u),0):u.next)&&!(m=m.call(u,Oe[1])).done)return m;switch(u=0,m&&(Oe=[2&Oe[0],m.value]),Oe[0]){case 0:case 1:m=Oe;break;case 4:return j.label++,{value:Oe[1],done:!1};case 5:j.label++,u=Oe[1],Oe=[0];continue;case 7:Oe=j.ops.pop(),j.trys.pop();continue;default:if(!(m=j.trys,(m=m.length>0&&m[m.length-1])||Oe[0]!==6&&Oe[0]!==2)){j=0;continue}if(Oe[0]===3&&(!m||Oe[1]>m[0]&&Oe[1]<m[3])){j.label=Oe[1];break}if(Oe[0]===6&&j.label<m[1]){j.label=m[1],m=Oe;break}if(m&&j.label<m[2]){j.label=m[2],j.ops.push(Oe);break}m[2]&&j.ops.pop(),j.trys.pop();continue}Oe=o.call(c,j)}catch(kt){Oe=[6,kt],u=0}finally{a=m=0}if(5&Oe[0])throw Oe[1];return{value:Oe[0]?Oe[1]:void 0,done:!0}}([se,pt])}}}var Ot=function(){function c(){}return c.addKey=function(o){c.key=o},Object.defineProperty(c,"isLicensed",{get:function(){return!!c.key&&new RegExp(/^CRPR-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(c.key)},enumerable:!1,configurable:!0}),c}(),Ze=function(){function c(){}return c.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},c.setAttributes=function(o,a){for(var u=0,m=a;u<m.length;u++){var h=m[u],j=h[0],Le=h[1];o.setAttribute(j,Le)}},c.createRect=function(o,a,u){var m=document.createElementNS("http://www.w3.org/2000/svg","rect");return m.setAttribute("width",o.toString()),m.setAttribute("height",a.toString()),u&&c.setAttributes(m,u),m},c.createLine=function(o,a,u,m,h){var j=document.createElementNS("http://www.w3.org/2000/svg","line");return j.setAttribute("x1",o.toString()),j.setAttribute("y1",a.toString()),j.setAttribute("x2",u.toString()),j.setAttribute("y2",m.toString()),h&&c.setAttributes(j,h),j},c.createPolygon=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","polygon");return u.setAttribute("points",o),a&&c.setAttributes(u,a),u},c.createCircle=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","circle");return u.setAttribute("cx",(o/2).toString()),u.setAttribute("cy",(o/2).toString()),u.setAttribute("r",o.toString()),a&&c.setAttributes(u,a),u},c.createEllipse=function(o,a,u){var m=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return m.setAttribute("cx",(o/2).toString()),m.setAttribute("cy",(a/2).toString()),m.setAttribute("rx",(o/2).toString()),m.setAttribute("ry",(a/2).toString()),u&&c.setAttributes(m,u),m},c.createGroup=function(o){var a=document.createElementNS("http://www.w3.org/2000/svg","g");return o&&c.setAttributes(a,o),a},c.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},c.createMarker=function(o,a,u,m,h,j,Le){var se=document.createElementNS("http://www.w3.org/2000/svg","marker");return c.setAttributes(se,[["id",o],["orient",a],["markerWidth",u.toString()],["markerHeight",m.toString()],["refX",h.toString()],["refY",j.toString()]]),se.appendChild(Le),se},c.createText=function(o){var a=document.createElementNS("http://www.w3.org/2000/svg","text");return a.setAttribute("x","0"),a.setAttribute("y","0"),o&&c.setAttributes(a,o),a},c.createTSpan=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","tspan");return u.textContent=o,a&&c.setAttributes(u,a),u},c.createImage=function(o){var a=document.createElementNS("http://www.w3.org/2000/svg","image");return o&&c.setAttributes(a,o),a},c.createPoint=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return u.x=o,u.y=a,u},c.createPath=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg","path");return u.setAttribute("d",o),a&&c.setAttributes(u,a),u},c.createElement=function(o,a){var u=document.createElementNS("http://www.w3.org/2000/svg",o);return a&&c.setAttributes(u,a),u},c.getHollowRectanglePath=function(o,a,u,m,h,j,Le,se){return"M"+o+","+a+"V"+(a+m)+"H"+(o+u)+"V"+a+"H"+h+"V"+j+"H"+(h+Le)+"V"+(j+se)+"H"+h+"V"+a+"Z"},c}(),tn=function(){function c(o){this._classNamePrefixBase="__cropro_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+o+"_"}return Object.defineProperty(c.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(c.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(c.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"_fade_out"},enumerable:!1,configurable:!0}),c.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},c.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)},c.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 un("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new un("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new un("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new nn("_fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new nn("_fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},c.prototype.removeStyleSheet=function(){var o;this.styleSheet&&(((o=this.styleSheetRoot)!==null&&o!==void 0?o:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},c}(),un=function(c,o){this.selector=c,this.style=o},nn=function(c,o){this.localName=c,this.style=o},Rn=function(){function c(){this.blocks=[],this.display=""}return c.prototype.addButtonBlock=function(o){o.className=this.blockClassName,o.buttonClassName=this.buttonClassName,o.buttonColorsClassName=this.buttonColorsClassName,o.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(o)},c.prototype.addElementBlock=function(o){o.className===void 0&&(o.className=this.blockClassName),this.blocks.push(o)},c.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},c}(),qn=function(){function c(){}return c.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},c}(),Ht=function(c){function o(){var a=c!==null&&c.apply(this,arguments)||this;return a.buttons=[],a}return Mt(o,c),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=c.prototype.getUI.call(this);return this.buttons.forEach(function(u){return a.appendChild(u.getUI())}),a},o}(qn),yt=function(){function c(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(c.prototype,"icon",{get:function(){return this._icon},set:function(o){this._icon=o,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isActive",{get:function(){return this._isActive},set:function(o){this._isActive=o,this.adjustClassName()},enumerable:!1,configurable:!0}),c.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},c.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,"")))},c.prototype.hide=function(){this._isHidden=!0},c}(),Fe=function(c){function o(){var a=c!==null&&c.apply(this,arguments)||this;return a.elements=[],a}return Mt(o,c),o.prototype.addElement=function(a){this.elements.push(a)},o.prototype.getUI=function(){var a=c.prototype.getUI.call(this);return this.elements.forEach(function(u){return a.appendChild(u)}),a},o}(qn),Gt=function(){function c(o,a){this.horizontal=o,this.vertical=a}return Object.defineProperty(c.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),c.prototype.getVerticalLength=function(o){return o/this.ratio},c.prototype.getHorizontalLength=function(o){return o*this.ratio},c}(),Rt=function(){function c(){}return c.getIcon=function(o,a){if(o>0&&a>0){var u=new Gt(o,a),m=u.ratio>=1?20:u.getHorizontalLength(20),h=u.ratio<1?20:u.getVerticalLength(20),j=document.createElementNS("http://www.w3.org/2000/svg","svg");j.setAttribute("xmlns","http://www.w3.org/2000/svg"),j.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(j);var Le=Ze.createDefs();j.appendChild(Le);var se=Ze.createElement("clipPath",[["id","text-bg-clip"]]);Le.appendChild(se);var pt=Ze.createPath(Ze.getHollowRectanglePath((24-m)/2,(24-h)/2,m,h,(24-m)/2+2,(24-h)/2+2,m-4,h-4));j.appendChild(pt);var Oe=Ze.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Oe.appendChild(Ze.createTSpan(o+":"+a)),j.appendChild(Oe);var kt=Oe.getBBox();Ze.setAttributes(Oe,[["x",((24-kt.width)/2).toString()],["y",((24-kt.height)/2-kt.y).toString()]]);var Wt=Ze.createPath(Ze.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 se.appendChild(Wt),Ze.setAttributes(pt,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(j),j.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>'},c}(),on=function(c){function o(a,u,m){var h=c.call(this,a,u)||this;return h.isDropdownOpen=!1,h.onClick=h.dropdownButtonClicked,h.dropdownButtons=m,h}return Mt(o,c),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(u){u.className=a.className,u.colorsClassName=a.colorsClassName,a.dropdownBlock.appendChild(u.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}(yt),Bt=function(){function c(o,a){this.GRIP_SIZE=10,this.color=o,this.fillColor=a,this.visual=Ze.createGroup(),this.visual.appendChild(Ze.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ze.createCircle(this.GRIP_SIZE,[["fill",this.fillColor],["fill-opacity","0.9"],["stroke",this.color],["stroke-width","2"],["stroke-opacity","0.7"]]))}return c.prototype.ownsTarget=function(o){return o===this.visual||o===this.visual.childNodes[0]||o===this.visual.childNodes[1]},c.prototype.setCenter=function(o,a){this.visual.childNodes.forEach(function(u){return Ze.setAttributes(u,[["cx",o.toString()],["cy",a.toString()]])})},c}(),pn=function(){function c(o,a,u,m){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=u,this.container=m,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(c.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(c.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(o){this._isGridVisible=o,this.gridContainer&&Ze.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(o){this._zoomFactor=o,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),c.prototype.open=function(){var o=this;this.cropShadeElement=Ze.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=Ze.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var a=0;a<this.numberOfGridLines;a++)this.horizontalGridLines.push(Ze.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]])),this.verticalGridLines.push(Ze.createLine(0,0,0,0,[["stroke",this.cropFrameColor],["stroke-width","1"],["stroke-dasharray","3 1"],["opacity","0.7"]]));this.horizontalGridLines.forEach(function(u){return o.gridContainer.appendChild(u)}),this.verticalGridLines.forEach(function(u){return o.gridContainer.appendChild(u)}),this.cropRectElement=Ze.createRect(0,0,[["stroke",this.cropFrameColor],["stroke-width","3"],["fill","transparent"]]),this.container.appendChild(this.cropRectElement),this.topLeftGrip=new Bt(this.gripColor,this.gripFillColor),this.container.appendChild(this.topLeftGrip.visual),this.topRightGrip=new Bt(this.gripColor,this.gripFillColor),this.container.appendChild(this.topRightGrip.visual),this.bottomLeftGrip=new Bt(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomLeftGrip.visual),this.bottomRightGrip=new Bt(this.gripColor,this.gripFillColor),this.container.appendChild(this.bottomRightGrip.visual),this.attachEvents()},c.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),Ze.setAttributes(this.cropRectElement,[["x",a.x.toString()],["y",a.y.toString()],["width",a.width.toString()],["height",a.height.toString()]]);var u=a.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function(h,j){var Le=a.y+u*(j+1);Ze.setAttributes(h,[["x1",""+a.x],["y1",""+Le],["x2",""+(a.x+a.width)],["y2",""+Le]])});var m=a.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function(h,j){var Le=a.x+m*(j+1);Ze.setAttributes(h,[["x1",""+Le],["y1",""+a.y],["x2",""+Le],["y2",""+(a.y+a.height)]])}),Ze.setAttributes(this.cropShadeElement,[["d",Ze.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},c.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)},c.prototype.clientToLocalCoordinates=function(o,a){var u=this.container.getBoundingClientRect();return{x:o-u.left+this.margin,y:a-u.top+this.margin}},c.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)},c.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()},c.prototype.onPointerUp=function(o){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(o.pointerId)},c.prototype.move=function(o){var a=o.x-this.previousPoint.x,u=o.y-this.previousPoint.y;this.zoomFactor!==1&&(a=-a/this.zoomFactor,u=-u/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+u),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=o},c.prototype.resize=function(o){var a=Object.assign({},this.cropRect),u=o.x-this.previousPoint.x,m=o.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:a.x+u<this.margin&&(u=this.margin-a.x),a.x+=u,a.width=this.cropRect.x+this.cropRect.width-a.x;break;case this.bottomRightGrip:case this.topRightGrip:a.width+u>this.canvasWidth*this.zoomFactor&&(u=this.canvasWidth*this.zoomFactor-a.width),a.width+=u}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(u),a.height=this.aspectRatio.getVerticalLength(a.width)):(a.y+=m,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+=m}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))},c.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,u=this.aspectRatio.getHorizontalLength(this.cropRect.height),m=this.aspectRatio.getVerticalLength(this.cropRect.width);u/this.canvasWidth<m/this.canvasHeight?this.cropRect.width=u:this.cropRect.height=m,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)}},c.prototype.getRescaledRect=function(o,a,u,m,h,j){var Le=u/o,se=m/a;return{x:(h.x-j)*Le+j,y:(h.y-j)*se+j,width:h.width*Le,height:h.height*se}},c.prototype.scaleCanvas=function(o,a){var u=this.getRescaledRect(this.canvasWidth,this.canvasHeight,o,a,this.cropRect,this.margin);this.canvasWidth=o,this.canvasHeight=a,this.onCropChange&&this.onCropChange(u),this.setCropRectangle(u)},c}(),Ct=function(){function c(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(c.prototype,"angle",{get:function(){return this._angle},set:function(o){this._angle=o,this.setAngleLabel(),this.positionScaleShape()},enumerable:!1,configurable:!0}),c.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},c.prototype.onPointerDown=function(o){this.controlContainer.setPointerCapture(o.pointerId),this.isDragging=!0,this.previousPoint={x:o.clientX,y:o.clientY}},c.prototype.onPointerMove=function(o){this.isDragging&&(this.onAngleChange&&this.onAngleChange((o.clientX-this.previousPoint.x)/5),this.previousPoint.x=o.clientX)},c.prototype.onPointerUp=function(o){this.isDragging&&this.onAngleChange&&this.onAngleChange((o.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(o.pointerId)},c.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var o=this.angleLabelText.getBBox();Ze.setAttributes(this.angleLabelElement,[["x",((this.width-o.width)/2).toString()],["y",(this.height/2).toString()]])}},c.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)}},c.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,u=1;u<=this.width/5+10;u++){var m=u%5==0?this.height/3:this.height/6;a+="h4v"+-m+"h1v"+m}a+="v1H0Z",this.scaleShape=Ze.createPath(a);var h=Ze.createTransform();this.scaleShape.transform.baseVal.appendItem(h),o.appendChild(this.scaleShape),this.angleLabelElement=Ze.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=Ze.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var j=Ze.createTSpan("");return j.innerHTML="°",this.angleLabelElement.appendChild(j),o.appendChild(this.angleLabelElement),document.body.removeChild(o),o},c}(),ri=function(){function c(){this.naturalSize=!1,this.imageType="image/png"}return c.prototype.rasterize=function(o,a,u,m,h,j,Le){var se=this;return new Promise(function(pt){var Oe=document.createElement("canvas");Oe.width=o.width.baseVal.value-2*m,Oe.height=o.height.baseVal.value-2*m;var kt=1,Wt=1;se.naturalSize===!0?(kt=a.naturalWidth/(o.width.baseVal.value-2*m)/j,Wt=a.naturalHeight/(o.height.baseVal.value-2*m)/Le,Oe.width=a.naturalWidth/j,Oe.height=a.naturalHeight/Le):se.width!==void 0&&se.height!==void 0&&(kt=se.width/u.width,Wt=se.height/u.height,Oe.width*=kt,Oe.height*=Wt);var Kt=Oe.getContext("2d");Kt.translate(Oe.width/2,Oe.height/2),Kt.rotate(h*Math.PI/180),Kt.scale(j,Le),Kt.translate(-Oe.width/2,-Oe.height/2),Kt.drawImage(a,0,0,Oe.width,Oe.height);var Qn=document.createElement("canvas");Qn.width=u.width*kt,Qn.height=u.height*Wt,Qn.getContext("2d").putImageData(Kt.getImageData((u.x-m)*kt,(u.y-m)*Wt,u.width*kt,u.height*Wt),0,0),pt(Qn.toDataURL(se.imageType,se.imageQuality))})},c}(),Ue=function(){function c(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=c.instanceCounter++,this.styles=new tn(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(c.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"zoomToCropEnabled",{get:function(){return this._zoomToCropEnabled},set:function(o){this._zoomToCropEnabled=o,o?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(c.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(c.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(c.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(c.prototype,"paddedImageWidth",{get:function(){return this.imageWidth+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"paddedImageHeight",{get:function(){return this.imageHeight+2*this.CANVAS_MARGIN},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(c.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}),c.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},c.prototype.show=function(){this.showUI(),this.open()},c.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)},c.prototype.addRenderEventListener=function(o){this.renderEventListeners.push(o)},c.prototype.removeRenderEventListener=function(o){this.renderEventListeners.indexOf(o)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(o),1)},c.prototype.addCloseEventListener=function(o){this.closeEventListeners.push(o)},c.prototype.removeCloseEventListener=function(o){this.closeEventListeners.indexOf(o)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(o),1)},c.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))},c.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,u=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,u)}},c.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},c.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",Ze.setAttributes(this.editingTarget,[["width",""+this.imageWidth],["height",""+this.imageHeight]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px"},c.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()},c.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();Ze.setAttributes(this.editingTarget,[["href",a]]),this.setEditingTargetSize()},c.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},c.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=Ze.createDefs(),this.cropImage.appendChild(this.defs),this.editingTarget=Ze.createImage([["href",""]]),this.editingTarget.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationContainer=Ze.createGroup(),this.editingTargetRotationScaleContainer=Ze.createGroup(),this.editingTargetRotationScaleContainer.appendChild(this.editingTarget),this.editingTargetRotationContainer.appendChild(this.editingTargetRotationScaleContainer);var o=Ze.createTransform();this.editingTargetRotationContainer.transform.baseVal.appendItem(o);var a=Ze.createTransform();this.editingTargetRotationScaleContainer.transform.baseVal.appendItem(a),this.editingTargetContainer=Ze.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)},c.prototype.positionCropImage=function(){this.cropImageHolder.style.top=this.top+"px",this.cropImageHolder.style.left=this.left+"px"},c.prototype.initCropLayer=function(){this.cropRect={x:this.CANVAS_MARGIN,y:this.CANVAS_MARGIN,width:this.imageWidth,height:this.imageHeight},this.cropLayerContainer=Ze.createGroup(),this.cropImage.appendChild(this.cropLayerContainer),this.cropLayer=new pn(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()},c.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)}},c.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)},c.prototype.cropRectChanged=function(o){this.cropRect=o,this.zoomToCropEnabled?this.zoomToCrop():this.cropLayer.zoomFactor=1},c.prototype.attachEvents=function(){window.addEventListener("resize",this.onWindowResize)},c.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"},c.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},c.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},c.prototype.addToolbars=function(){this.addTopToolbar(),this.addBottomToolbar()},c.prototype.addTopToolbar=function(){var o=this;this.topToolbar=new Rn,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 Ht;a.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(a);var u=[];this.aspectRatios.forEach(function(Wt){var Kt=new yt(Rt.getIcon(Wt.horizontal,Wt.vertical),Wt.horizontal===0&&Wt.vertical===0?"FREE":Wt.horizontal+":"+Wt.vertical);Kt.onClick=function(){return o.ratioButtonClicked(Wt)},u.push(Kt)}),this.aspectRatioButton=new on(Rt.getIcon(0,0),"Aspect ratio",u),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 m=new yt('<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");m.isActive=this.isGridVisible,m.onClick=function(){o.isGridVisible=!o.isGridVisible,m.isActive=o.isGridVisible},a.addButton(m);var h=new yt('<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),!Ot.isLicensed){var j=new Fe;this.topToolbar.addElementBlock(j);var Le=document.createElement("div");Le.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var se=document.createElement("a");se.style.color="currentColor",se.href="https://markerjs.com/products/cropro",se.target="_blank",se.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>',Le.appendChild(se),j.addElement(Le)}var pt=new Ht;pt.minWidth=3*this.toolbarHeight+"px",pt.contentAlign="end",this.topToolbar.addButtonBlock(pt);var Oe=new yt('<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");Oe.onClick=this.startRenderAndClose,pt.addButton(Oe),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Oe.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var kt=new yt('<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,pt.addButton(kt),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(kt.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},c.prototype.addBottomToolbar=function(){var o=this;this.bottomToolbar=new Rn,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 Ht;a.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(a);var u=new yt('<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");u.onClick=this.rotateLeftButtonClicked,a.addButton(u);var m=new yt('<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");m.onClick=this.rotateRightButtonClicked,a.addButton(m);var h=new Fe;h.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock(h),this.straightener=new Ct("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(pt){o.rotateBy(pt),o.straightener.angle=o.rotationAngle},h.addElement(this.straightener.getUI());var j=new Ht;j.minWidth=2*this.toolbarHeight+"px",j.contentAlign="end",this.bottomToolbar.addButtonBlock(j);var Le=new yt('<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");Le.onClick=this.flipHorizontallyButtonClicked,j.addButton(Le);var se=new yt('<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");se.onClick=this.flipVerticallyButtonClicked,j.addButton(se)},c.prototype.ratioButtonClicked=function(o){this.aspectRatio=o,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},c.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=Rt.getIcon(this.aspectRatio.horizontal,this.aspectRatio.vertical)},c.prototype.setCropLayerAspectRatio=function(){this.cropLayer&&(this.aspectRatio&&this.aspectRatio.horizontal!==0&&this.aspectRatio.vertical!==0?this.cropLayer.aspectRatio=new Gt(this.aspectRatio.horizontal,this.aspectRatio.vertical):this.cropLayer.aspectRatio=void 0)},c.prototype.closeUI=function(){this.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},c.prototype.getState=function(){return{width:this.imageWidth,height:this.imageHeight,rotationAngle:this.rotationAngle,flippedHorizontally:this.flippedHorizontally,flippedVertically:this.flippedVertically,cropRect:Object.assign({},this.cropRect)}},c.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()}},c.prototype.clientToLocalCoordinates=function(o,a){var u=this.cropImage.getBoundingClientRect();return{x:o-u.left,y:a-u.top}},c.prototype.onWindowResize=function(){this.positionUI()},c.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()},c.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)},c.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)},c.prototype.rotateTo=function(o){o=(o=o>180?o-360:o)<=-180?o+360:o,this.rotationAngle=o,this.applyRotation()},c.prototype.rotateBy=function(o){this.rotateTo((this.rotationAngle+o)%360)},c.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 u=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/u.width,this.imageHeight/u.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=o},c.prototype.flipHorizontallyButtonClicked=function(){this.flippedHorizontally=!this.flippedHorizontally,this.applyFlip()},c.prototype.flipVerticallyButtonClicked=function(){this.flippedVertically=!this.flippedVertically,this.applyFlip()},c.prototype.applyFlip=function(){this.editingTarget.style.transform="scale("+(this.flippedHorizontally?-1:1)+","+(this.flippedVertically?-1:1)+")"},c.prototype.startRenderAndClose=function(){return ct(this,void 0,void 0,function(){var o,a;return It(this,function(u){switch(u.label){case 0:return[4,this.render()];case 1:return o=u.sent(),a=this.getState(),this.renderEventListeners.forEach(function(m){return m(o,a)}),this.close(!0),[2]}})})},c.prototype.render=function(){return ct(this,void 0,void 0,function(){var o;return It(this,function(a){switch(a.label){case 0:return(o=new ri).naturalSize=this.renderAtNaturalSize,o.imageType=this.renderImageType,o.imageQuality=this.renderImageQuality,o.width=this.renderWidth,o.height=this.renderHeight,this.unzoomFromCrop(),Ze.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()]}})})},c.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new nn("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 nn("toolbar_colors",`
|
|
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new nn("toolbar-block",`
|
|
display: flex;
|
|
align-items: center;
|
|
box-sizing: content-box;
|
|
`));var o=this.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new nn("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 nn("toolbar_button_colors",`
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
fill: currentColor;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new nn("toolbar_active_button",`
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
fill: currentColor;
|
|
background-color: `+this.styles.settings.toolbarBackgroundActiveColor+`
|
|
`)),this.styles.addRule(new un("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new un("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.styles.settings.toolbarBackgroundHoverColor+`
|
|
`)),this.toolbarDropdownStyleClass=this.styles.addClass(new nn("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 nn("toolbar_dropdown_colors",`
|
|
background-color: `+this.styles.settings.toolbarBackgroundColor+`;
|
|
`)),this.toolbarStraightenerBlockStyleClass=this.styles.addClass(new nn("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 nn("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 nn("toolbar_straightener_colors",`
|
|
color: `+this.styles.settings.toolbarColor+`;
|
|
fill: currentColor;
|
|
`))},c.instanceCounter=0,c}(),St=f("8hTe"),oi=f.n(St),di=/<pre[^>]*>/g;function fi(c){var o=document.createElement("div");return o.innerHTML=c,o.childNodes.length===0?"":o.childNodes[0].nodeValue}var Di=ce.a=function(c){var o=c.value,a=o===void 0?"":o,u=c.edit,m=u===void 0?!1:u,h=c.className,j=c.showTextOnly,Le=c.showLines,se=c.replaces,pt=c.zoomImg,Oe=c.hasMask,kt=c.style,Wt=kt===void 0?{}:kt,Kt=c.stylesPrev,Qn=Kt===void 0?{}:Kt,Vn=String(a),yn=Object(W.useRef)(),Yn=Object(W.useRef)(),Vi=Object(W.useState)(""),On=Object(S.a)(Vi,2),Pn=On[0],ai=On[1],yi=Object(W.useState)("office"),$n=Object(S.a)(yi,2),si=$n[0],Jn=$n[1],fr=function(){var Qt=new Ue(Yn.current);Qt.displayMode="popup",Qt.addRenderEventListener(function(){var wn=Object(K.a)(R.a.mark(function Vt(Sn){var $t;return R.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return yn.current.style.display="none",mn.next=3,Object(Ve.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Sn}});case 3:$t=mn.sent,$t!=null&&$t.id&&se(Yn.current.getAttribute("src").replace(we.a.API_SERVER,""),"/api/attachments/".concat($t==null?void 0:$t.id,"?type=").concat($t.content_type));case 5:case"end":return mn.stop()}},Vt)}));return function(Vt){return wn.apply(this,arguments)}}()),Qt.show()},Ji=function(){var Qt=new Dt(Yn.current);Qt.settings.displayMode="popup",Qt.addEventListener("render",function(){var wn=Object(K.a)(R.a.mark(function Vt(Sn){var $t;return R.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:if(yn.current.style.display="none",!Yn.current){mn.next=6;break}return mn.next=4,Object(Ve.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:Sn.dataUrl}});case 4:$t=mn.sent,$t!=null&&$t.id&&se(Yn.current.getAttribute("src").replace(we.a.API_SERVER,""),"/api/attachments/".concat($t==null?void 0:$t.id,"?type=").concat($t.content_type));case 6:case"end":return mn.stop()}},Vt)}));return function(Vt){return wn.apply(this,arguments)}}()),Qt.show(),window.markerArea=Qt},Fn=Object(W.useMemo)(function(){try{var hn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Qt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,wn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;Vn=Vn.replace(hn,"("+we.a.API_SERVER+"/api/attachments/").replace(Qt,'"'+we.a.API_SERVER+"/api/attachments/").replace(wn,'"'+we.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,`
|
|
`),Vn=Vn.replace(new RegExp("(?<!\\n)\\n(?!\\n)","g"),`
|
|
`)}catch(bi){}var Vt=he(Vn),Sn=ne();if(Vn.match(/\[TOC\]/)&&(Vt=Vt.replace("<p>[TOC]</p>",Ne()),He()),Vt=Vt.replace(/(__special_katext_id_\d+__)/g,function(bi,mn){var gn=Sn[mn],li=gn.type,Ci=gn.expression;return Object(ye.renderToString)(fi(Ci)||"",{displayMode:li==="block",throwOnError:!1,output:"html"})}),Vt=Vt.replace(/▁/g,"\u2581\u2581\u2581"),X(),j){var $t=document.createElement("div");return $t.innerHTML=Vt,$t.innerText}return setTimeout(function(){return Oi()},500),Vt},[Vn]),Wn=Object(W.useRef)();ue.WebkitLineClamp=Le,Le&&(Wt=Object(ae.a)(Object(ae.a)({},Wt),ue));function Ii(hn){var Qt=hn.target;if(Qt.tagName.toUpperCase()==="IMG"){if(pt){var wn=Qt.getAttribute("src");ai(wn),Jn("image")}}else if(Qt.tagName.toUpperCase()==="A"){var Vt=Qt.getAttribute("href");if(Vt.indexOf("office")>-1)hn.preventDefault(),ai(Vt),Jn("office");else if(Vt.indexOf("application/pdf")>-1)hn.preventDefault(),ai(Vt),Jn("pdf");else if(Vt.indexOf("type=text")>-1)hn.preventDefault(),ai(Vt),Jn("html");else if(Vt.startsWith("#")){hn.preventDefault();var Sn=document.getElementById(Vt.replace("#",""));Sn&&Sn.scrollIntoView(!0)}}}var Oi=function(){var Qt,wn=(Qt=Wn.current)===null||Qt===void 0?void 0:Qt.querySelectorAll("video");wn==null||wn.forEach(function(Vt){if(Vt.oncontextmenu=function(){return!1},Vt.src.indexOf(".m3u8")>-1&&!Vt.canPlayType("application/vnd.apple.mpegurl")){if(Q.a.isSupported()){var Sn=new Q.a;Sn.loadSource(Vt.src),Sn.attachMedia(Vt)}}})};Object(W.useEffect)(function(){if(Wn.current&&Fn&&(Fn.match(di)&&window.PR.prettyPrint()),Wn.current)return Wn.current.addEventListener("click",Ii),function(){Wn.current.removeEventListener("click",Ii),X(),He()}},[Fn,Wn.current,Ii]);var Pi=function(Qt){if(!m)return;Qt.target.nodeName==="IMG"?(yn.current.style.display="flex",yn.current.style.width=Qt.target.clientWidth+"px",yn.current.style.height=Qt.target.clientHeight+"px",yn.current.style.top=Qt.target.offsetTop+"px",yn.current.style.left=Qt.target.offsetLeft+"px",Yn.current.src=Qt.target.getAttribute("src")):yn.current.style.display="none"};return M.a.createElement("div",{style:{position:"relative"}},M.a.createElement("div",{ref:Wn,style:Object(ae.a)({},Wt),className:"".concat(h||""," markdown-body ").concat(oi.a.mdBody),onMouseOver:Pi,dangerouslySetInnerHTML:{__html:Fn}}),M.a.createElement("div",{ref:yn,className:oi.a.button},M.a.createElement(de.a,null,M.a.createElement(le.a,{onClick:function(){return fr()}},"\u88C1\u526A"),M.a.createElement(le.a,{onClick:function(){return Ji()}},"\u7F16\u8F91"))),M.a.createElement("img",{ref:Yn,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),M.a.createElement(Ge.a,{close:!0,data:Pn,hasMask:Oe,type:Pn!=null&&Pn.length?si:"",style:Object(ae.a)({},Qn),onClose:function(){return ai("")}}))}},"9VGf":function(me,ce,f){"use strict";f.d(ce,"a",function(){return q});var N=f("q1tI"),de=f.n(N);function q(le,ae){var K=Object(N.useRef)();Object(N.useEffect)(function(){K.current=le}),Object(N.useEffect)(function(){function S(){K.current()}if(ae!==null){var k=setInterval(S,ae);return function(){return clearInterval(k)}}},[ae])}},"A/g1":function(me,ce){me.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgW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&R.removeKeyMap("autoCloseTags"),!W)return;var A={name:"autoCloseTags"};(typeof W!="object"||W.whenClosing!==!1)&&(A["'/'"]=function(Y){return K(Y)}),(typeof W!="object"||W.whenOpening!==!1)&&(A["'>'"]=function(Y){return le(Y)}),R.addKeyMap(A)});var de=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],q=["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 le(R){if(R.getOption("disableInput"))return N.Pass;for(var W=R.listSelections(),M=[],A=R.getOption("autoCloseTags"),Y=0;Y<W.length;Y++){if(!W[Y].empty())return N.Pass;var z=W[Y].head,P=R.getTokenAt(z),U=N.innerMode(R.getMode(),P.state),H=U.state,Z=U.mode.xmlCurrentTag&&U.mode.xmlCurrentTag(H),ee=Z&&Z.name;if(!ee)return N.Pass;var ke=U.mode.configuration=="html",He=typeof A=="object"&&A.dontCloseTags||ke&&de,ue=typeof A=="object"&&A.indentTags||ke&&q;P.end>z.ch&&(ee=ee.slice(0,ee.length-P.end+z.ch));var ge=ee.toLowerCase();if(!ee||P.type=="string"&&(P.end!=z.ch||!/[\"\']/.test(P.string.charAt(P.string.length-1))||P.string.length==1)||P.type=="tag"&&Z.close||P.string.indexOf("/")==z.ch-P.start-1||He&&S(He,ge)>-1||k(R,U.mode.xmlCurrentContext&&U.mode.xmlCurrentContext(H)||[],ee,z,!0))return N.Pass;var Ne=typeof A=="object"&&A.emptyTags;if(Ne&&S(Ne,ee)>-1){M[Y]={text:"/>",newPos:N.Pos(z.line,z.ch+2)};continue}var ve=ue&&S(ue,ge)>-1;M[Y]={indent:ve,text:">"+(ve?`
|
|
|
|
`:"")+"</"+ee+">",newPos:ve?N.Pos(z.line+1,0):N.Pos(z.line,z.ch+1)}}for(var pe=typeof A=="object"&&A.dontIndentOnAutoClose,Y=W.length-1;Y>=0;Y--){var re=M[Y];R.replaceRange(re.text,W[Y].head,W[Y].anchor,"+insert");var I=R.listSelections().slice(0);I[Y]={head:re.newPos,anchor:re.newPos},R.setSelections(I),!pe&&re.indent&&(R.indentLine(re.newPos.line,null,!0),R.indentLine(re.newPos.line+1,null,!0))}}function ae(R,W){for(var M=R.listSelections(),A=[],Y=W?"/":"</",z=R.getOption("autoCloseTags"),P=typeof z=="object"&&z.dontIndentOnSlash,U=0;U<M.length;U++){if(!M[U].empty())return N.Pass;var H=M[U].head,Z=R.getTokenAt(H),ee=N.innerMode(R.getMode(),Z.state),ke=ee.state;if(W&&(Z.type=="string"||Z.string.charAt(0)!="<"||Z.start!=H.ch-1))return N.Pass;var He,ue=ee.mode.name!="xml"&&R.getMode().name=="htmlmixed";if(ue&&ee.mode.name=="javascript")He=Y+"script";else if(ue&&ee.mode.name=="css")He=Y+"style";else{var ge=ee.mode.xmlCurrentContext&&ee.mode.xmlCurrentContext(ke);if(!ge||ge.length&&k(R,ge,ge[ge.length-1],H))return N.Pass;He=Y+ge[ge.length-1]}R.getLine(H.line).charAt(Z.end)!=">"&&(He+=">"),A[U]=He}if(R.replaceSelections(A),M=R.listSelections(),!P)for(var U=0;U<M.length;U++)(U==M.length-1||M[U].head.line<M[U+1].head.line)&&R.indentLine(M[U].head.line)}function K(R){return R.getOption("disableInput")?N.Pass:ae(R,!0)}N.commands.closeTag=function(R){return ae(R)};function S(R,W){if(R.indexOf)return R.indexOf(W);for(var M=0,A=R.length;M<A;++M)if(R[M]==W)return M;return-1}function k(R,W,M,A,Y){if(!N.scanForClosingTag)return!1;var z=Math.min(R.lastLine()+1,A.line+500),P=N.scanForClosingTag(R,A,null,z);if(!P||P.tag!=M)return!1;for(var U=Y?1:0,H=W.length-1;H>=0&&W[H]==M;H--)++U;A=P.to;for(var H=1;H<U;H++){var Z=N.scanForClosingTag(R,A,null,z);if(!Z||Z.tag!=M)return!1;A=Z.to}return!0}})},BjJ7:function(me,ce,f){"use strict";f.d(ce,"d",function(){return de}),f.d(ce,"c",function(){return q}),f.d(ce,"e",function(){return le}),f.d(ce,"b",function(){return ae}),f.d(ce,"a",function(){return S});var N=f("m3rI");function de(k){var R=!0;if(k.length>0){for(var W=0;W<k.length;W++)if(k[W].compile_success==0||!k[W].compile_success){R=!1;break}}else R=!1;return R}function q(k){for(var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",W=[],M=0;M<k.length;M++){var A=k[M],Y=R?"".concat(R,"/").concat(A.name):"".concat(A.name);W.push({title:A.name,isLeaf:!(A.type==="tree"),key:Y})}return W}function le(k,R,W){for(var M=0;M<k.length;M++){var A=k[M];if(A.key===R){A.children=W;break}A.children&&le(A.children,R,W)}return k}function ae(k,R,W){var M;return function(){var A=this,Y=arguments,z=function(){M=null,W||k.apply(A,Y)},P=W&&!M;clearTimeout(M),M=setTimeout(z,R),P&&k.apply(A,Y)}}var K=!0,S=N.a.API_SERVER},"C+DQ":function(me,ce,f){},C6hP:function(me,ce){me.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAS4AAAA+CAYAAACV4fZsAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4lMUWPVuzISwETUKPNEFCF+lI710EpHekSO+d0HvvKIKIiCCCRvEBAgGpSpGSIFLEAIoJhMASsmy2vO9c3q4JBIIoCY/M/T6+Dcn+/86cf+bMvefemdUgGXO5XJrk3qP+rhBQCCgE/k0ENBqN63H3S5KUkiKr8ePHJ/nesLAwRWz/5hNT91IIpAEEChUqlCQxjRs37qHfJ0ViD5FOQtIiWbmJKSoqSt5rsVjk1Wq1KsJKAwNMdVEh8CwRMJlMQlRms1le/f395ZXElpDEHiSvROTjJi03YZGsSFQkqcDAQE1cXJzm3r17co3NZlPE9SyfqLq3QiANIGA0GoWovLy8XN7e3q6IiAgXyYxERhJLSGAJyctDPg+S1sWLF7UkLH9/f63FYuHPWl9fX43dbpd/aQBT1UWFgEIgBRDQ6/Uu/ouJiSFpOc1mszMqKspJAsuTJ48zKfISAkqKtAICArSRkZE6s9lM4tJZrVadj4+PxuFwaJ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8kK74mJCx3eJiwKUmSj9vzSvhGhpBJ9YGa2DPum7q9QkAh8IIhQGJKqktuHSsRSWk0D703WdJJisReMAxVdxQCCoHnDAFmDh/XpP8CGmr69Rx3DAoAAAAASUVORK5CYII="},CJF0:function(me,ce,f){"use strict";var N=f("14J3"),de=f("BMrR"),q=f("+L6B"),le=f("2/Rp"),ae=f("jCWc"),K=f("kPKH"),S=f("PpiC"),k=f("q1tI"),R=f.n(k),W=f("Ty5D"),M=f("9kvl"),A=f("55Ip"),Y=f("lzim"),z=f("nZ20"),P=f.n(z),U=function(Z){var ee,ke,He,ue,ge=Z.shixunsDetail,Ne=Z.dispatch,ve=Z.loading,pe=Z.match,re=Z.data,I=re===void 0?{}:re,x=Z.title,ne=Object(S.a)(Z,["shixunsDetail","dispatch","loading","match","data","title"]),X=Object(W.i)(),b=!(((ee=ge.detail)===null||ee===void 0?void 0:ee.identity)>4||((ke=ge.detail)===null||ke===void 0?void 0:ke.identity)===void 0||((He=ge.detail)===null||He===void 0?void 0:He.shixun_status)===2||((ue=ge.detail)===null||ue===void 0?void 0:ue.shixun_status)===1);return R.a.createElement("aside",{className:"bg-white mb10 pl20 pr20 ".concat(P.a.wrap)},R.a.createElement(de.a,{gutter:[20,20],align:"middle"},R.a.createElement(K.a,{flex:1},R.a.createElement("span",{className:P.a.icons},R.a.createElement("img",{src:Y.f,width:"14"})),R.a.createElement("span",{className:"font16"},"\u7B2C ",I==null?void 0:I.position," \u5173\uFF1A",x)),R.a.createElement(K.a,null,(I==null?void 0:I.prev_challenge)&&R.a.createElement(le.a,{type:"primary",ghost:!0,className:"mt10 mr5",onClick:function(){var J,O=I.prev_challenge.st===0?"/editcheckpoint":"/editquestion",he="/shixuns/".concat(X.id,"/challenges/").concat(I==null||((J=I.prev_challenge)===null||J===void 0)?void 0:J.id).concat(O);M.d.replace(he)}},"\u4E0A\u4E00\u5173"),I.next_challenge&&R.a.createElement(le.a,{type:"primary",ghost:!0,className:"mt10 mr5",onClick:function(){var J,O=I.next_challenge.st===0?"/editcheckpoint":"/editquestion",he="/shixuns/".concat(X.id,"/challenges/").concat(I==null||((J=I.next_challenge)===null||J===void 0)?void 0:J.id).concat(O);M.d.replace(he)}},"\u4E0B\u4E00\u5173"),b&&R.a.createElement(le.a,{type:"primary"},R.a.createElement(A.a,{to:"/shixuns/".concat(X.id,"/challenges/newquestion")},"\u65B0\u589E\u9009\u62E9\u9898\u4EFB\u52A1")),b&&R.a.createElement(le.a,{type:"primary",className:"ml5"},R.a.createElement(A.a,{to:"/shixuns/".concat(X.id,"/challenges/new")},"\u65B0\u589E\u5B9E\u8DF5\u4EFB\u52A1")),R.a.createElement(le.a,{type:"primary",className:"ml5"},R.a.createElement(A.a,{to:"/shixuns/".concat(X.id,"/challenges")},"\u8FD4\u56DE")))))};ce.a=Object(M.a)(function(H){var Z=H.shixunsDetail,ee=H.newCourse,ke=H.loading,He=H.globalSetting;return{shixunsDetail:Z,newCourse:ee,globalSetting:He,loading:ke.effects}})(U)},D1Df:function(me,ce,f){"use strict";function N(b){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?N=function(J){return typeof J}:N=function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},N(b)}function de(){return de=Object.assign||function(b){for(var L=1;L<arguments.length;L++){var J=arguments[L];for(var O in J)Object.prototype.hasOwnProperty.call(J,O)&&(b[O]=J[O])}return b},de.apply(this,arguments)}function q(b,L){var J=Object.keys(b);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(b);L&&(O=O.filter(function(he){return Object.getOwnPropertyDescriptor(b,he).enumerable})),J.push.apply(J,O)}return J}function le(b){for(var L=1;L<arguments.length;L++){var J=arguments[L]!=null?arguments[L]:{};L%2?q(J,!0).forEach(function(O){P(b,O,J[O])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(J)):q(J).forEach(function(O){Object.defineProperty(b,O,Object.getOwnPropertyDescriptor(J,O))})}return b}function ae(b,L){if(b==null)return{};var J=K(b,L),O,he;if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(b);for(he=0;he<E.length;he++){if(O=E[he],L.indexOf(O)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(b,O))continue;J[O]=b[O]}}return J}function K(b,L){if(b==null)return{};var J={},O=Object.keys(b),he,E;for(E=0;E<O.length;E++){if(he=O[E],L.indexOf(he)>=0)continue;J[he]=b[he]}return J}function S(b,L){if(!(b instanceof L))throw new TypeError("Cannot call a class as a function")}function k(b,L){for(var J=0;J<L.length;J++){var O=L[J];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(b,O.key,O)}}function R(b,L,J){return L&&k(b.prototype,L),J&&k(b,J),b}function W(b,L){return L&&(N(L)==="object"||typeof L=="function")?L:A(b)}function M(b){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(J){return J.__proto__||Object.getPrototypeOf(J)},M(b)}function A(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function Y(b,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(L&&L.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),L&&z(b,L)}function z(b,L){return z=Object.setPrototypeOf||function(O,he){return O.__proto__=he,O},z(b,L)}function P(b,L,J){return L in b?Object.defineProperty(b,L,{value:J,enumerable:!0,configurable:!0,writable:!0}):b[L]=J,b}var U=f("q1tI"),H=f("17x9"),Z=f("H38U"),ee=f("aRTE");function ke(b){for(var L="",J=0;J<b.length;J++){var O=b.charCodeAt(J);O<128?L+=String.fromCharCode(O):O<2048?(L+=String.fromCharCode(192|O>>6),L+=String.fromCharCode(128|O&63)):O<55296||O>=57344?(L+=String.fromCharCode(224|O>>12),L+=String.fromCharCode(128|O>>6&63),L+=String.fromCharCode(128|O&63)):(J++,O=65536+((O&1023)<<10|b.charCodeAt(J)&1023),L+=String.fromCharCode(240|O>>18),L+=String.fromCharCode(128|O>>12&63),L+=String.fromCharCode(128|O>>6&63),L+=String.fromCharCode(128|O&63))}return L}var He={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},ue={},ge=4,Ne=.1;function ve(b){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,J=[];return b.forEach(function(O,he){var E=null;O.forEach(function(g,Q){if(!g&&E!==null){J.push("M".concat(E+L," ").concat(he+L,"h").concat(Q-E,"v1H").concat(E+L,"z")),E=null;return}if(Q===O.length-1){if(!g)return;E===null?J.push("M".concat(Q+L,",").concat(he+L," h1v1H").concat(Q+L,"z")):J.push("M".concat(E+L,",").concat(he+L," h").concat(Q+1-E,"v1H").concat(E+L,"z"));return}g&&E===null&&(E=Q)})}),J.join("")}function pe(b,L){return b.slice().map(function(J,O){return O<L.y||O>=L.y+L.h?J:J.map(function(he,E){return E<L.x||E>=L.x+L.w?he:!1})})}function re(b,L){var J=b.imageSettings,O=b.size,he=b.includeMargin;if(J==null)return null;var E=he?ge:0,g=L.length+E*2,Q=Math.floor(O*Ne),we=g/O,ye=(J.width||Q)*we,Ge=(J.height||Q)*we,Ve=J.x==null?L.length/2-ye/2:J.x*we,Me=J.y==null?L.length/2-Ge/2:J.y*we,Ce=null;if(J.excavate){var xe=Math.floor(Ve),Se=Math.floor(Me),$=Math.ceil(ye+Ve-xe),F=Math.ceil(Ge+Me-Se);Ce={x:xe,y:Se,w:$,h:F}}return{x:Ve,y:Me,h:Ge,w:ye,excavation:Ce}}var I=function(){try{new Path2D().addPath(new Path2D)}catch(b){return!1}return!0}(),x=function(b){Y(L,b);function L(){var J,O;S(this,L);for(var he=arguments.length,E=new Array(he),g=0;g<he;g++)E[g]=arguments[g];return O=W(this,(J=M(L)).call.apply(J,[this].concat(E))),P(A(O),"_canvas",void 0),P(A(O),"_image",void 0),P(A(O),"state",{imgLoaded:!1}),P(A(O),"handleImageLoad",function(){O.setState({imgLoaded:!0})}),O}return R(L,[{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var O=this.props,he=O.value,E=O.size,g=O.level,Q=O.bgColor,we=O.fgColor,ye=O.includeMargin,Ge=O.imageSettings,Ve=new Z(-1,ee[g]);if(Ve.addData(ke(he)),Ve.make(),this._canvas!=null){var Me=this._canvas,Ce=Me.getContext("2d");if(!Ce)return;var xe=Ve.modules;if(xe===null)return;var Se=ye?ge:0,$=xe.length+Se*2,F=re(this.props,xe);Ge!=null&&F!=null&&(F.excavation!=null&&(xe=pe(xe,F.excavation)));var _e=window.devicePixelRatio||1;Me.height=Me.width=E*_e;var nt=E/$*_e;Ce.scale(nt,nt),Ce.fillStyle=Q,Ce.fillRect(0,0,$,$),Ce.fillStyle=we,I?Ce.fill(new Path2D(ve(xe,Se))):xe.forEach(function(qe,it){qe.forEach(function($e,Re){$e&&Ce.fillRect(Re+Se,it+Se,1,1)})}),this.state.imgLoaded&&this._image&&F!=null&&Ce.drawImage(this._image,F.x+Se,F.y+Se,F.w,F.h)}}},{key:"render",value:function(){var O=this,he=this.props,E=he.value,g=he.size,Q=he.level,we=he.bgColor,ye=he.fgColor,Ge=he.style,Ve=he.includeMargin,Me=he.imageSettings,Ce=ae(he,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),xe=le({height:g,width:g},Ge),Se=null,$=Me&&Me.src;return Me!=null&&$!=null&&(Se=U.createElement("img",{src:$,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(_e){return O._image=_e}})),U.createElement(U.Fragment,null,U.createElement("canvas",de({style:xe,height:g,width:g,ref:function(_e){return O._canvas=_e}},Ce)),Se)}}]),L}(U.PureComponent);P(x,"defaultProps",He);var ne=function(b){Y(L,b);function L(){return S(this,L),W(this,M(L).apply(this,arguments))}return R(L,[{key:"render",value:function(){var O=this.props,he=O.value,E=O.size,g=O.level,Q=O.bgColor,we=O.fgColor,ye=O.includeMargin,Ge=O.imageSettings,Ve=ae(O,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),Me=new Z(-1,ee[g]);Me.addData(ke(he)),Me.make();var Ce=Me.modules;if(Ce===null)return null;var xe=ye?ge:0,Se=Ce.length+xe*2,$=re(this.props,Ce),F=null;Ge!=null&&$!=null&&($.excavation!=null&&(Ce=pe(Ce,$.excavation)),F=U.createElement("image",{xlinkHref:Ge.src,height:$.h,width:$.w,x:$.x+xe,y:$.y+xe,preserveAspectRatio:"none"}));var _e=ve(Ce,xe);return U.createElement("svg",de({shapeRendering:"crispEdges",height:E,width:E,viewBox:"0 0 ".concat(Se," ").concat(Se)},Ve),U.createElement("path",{fill:Q,d:"M0,0 h".concat(Se,"v").concat(Se,"H0z")}),U.createElement("path",{fill:we,d:_e}),F)}}]),L}(U.PureComponent);P(ne,"defaultProps",He);var X=function(L){var J=L.renderAs,O=ae(L,["renderAs"]),he=J==="svg"?ne:x;return U.createElement(he,O)};X.defaultProps=le({renderAs:"canvas"},He),me.exports=X},DlQD:function(me,ce,f){(function(N,de){me.exports=de()})(this,function(){"use strict";function N(V,_){for(var G=0;G<_.length;G++){var y=_[G];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(V,y.key,y)}}function de(V,_,G){return _&&N(V.prototype,_),G&&N(V,G),V}function q(V,_){if(!V)return;if(typeof V=="string")return le(V,_);var G=Object.prototype.toString.call(V).slice(8,-1);if(G==="Object"&&V.constructor&&(G=V.constructor.name),G==="Map"||G==="Set")return Array.from(V);if(G==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return le(V,_)}function le(V,_){(_==null||_>V.length)&&(_=V.length);for(var G=0,y=new Array(_);G<_;G++)y[G]=V[G];return y}function ae(V,_){var G;if(typeof Symbol=="undefined"||V[Symbol.iterator]==null){if(Array.isArray(V)||(G=q(V))||_&&V&&typeof V.length=="number"){G&&(V=G);var y=0;return function(){return y>=V.length?{done:!0}:{done:!1,value:V[y++]}}}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 G=V[Symbol.iterator](),G.next.bind(G)}function K(V,_){return _={exports:{}},V(_,_.exports),_.exports}var S=K(function(V){function _(){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 G(y){V.exports.defaults=y}V.exports={defaults:_(),getDefaults:_,changeDefaults:G}}),k=S.defaults,R=S.getDefaults,W=S.changeDefaults,M=/[&<>"']/,A=/[&<>"']/g,Y=/[<>"']|&(?!#?\w+;)/,z=/[<>"']|&(?!#?\w+;)/g,P={"&":"&","<":"<",">":">",'"':""","'":"'"},U=function(_){return P[_]};function H(V,_){if(_){if(M.test(V))return V.replace(A,U)}else if(Y.test(V))return V.replace(z,U);return V}var Z=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ee(V){return V.replace(Z,function(_,G){return G=G.toLowerCase(),G==="colon"?":":G.charAt(0)==="#"?G.charAt(1)==="x"?String.fromCharCode(parseInt(G.substring(2),16)):String.fromCharCode(+G.substring(1)):""})}var ke=/(^|[^\[])\^/g;function He(V,_){V=V.source||V,_=_||"";var G={replace:function(C,w){return w=w.source||w,w=w.replace(ke,"$1"),V=V.replace(C,w),G},getRegex:function(){return new RegExp(V,_)}};return G}var ue=/[^\w:]/g,ge=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ne(V,_,G){if(V){var y;try{y=decodeURIComponent(ee(G)).replace(ue,"").toLowerCase()}catch(C){return null}if(y.indexOf("javascript:")===0||y.indexOf("vbscript:")===0||y.indexOf("data:")===0)return null}_&&!ge.test(G)&&(G=x(_,G));try{G=encodeURI(G).replace(/%25/g,"%")}catch(C){return null}return G}var ve={},pe=/^[^:]+:\/*[^/]*$/,re=/^([^:]+:)[\s\S]*$/,I=/^([^:]+:\/*[^/]*)[\s\S]*$/;function x(V,_){ve[" "+V]||(pe.test(V)?ve[" "+V]=V+"/":ve[" "+V]=L(V,"/",!0)),V=ve[" "+V];var G=V.indexOf(":")===-1;return _.substring(0,2)==="//"?G?_:V.replace(re,"$1")+_:_.charAt(0)==="/"?G?_:V.replace(I,"$1")+_:V+_}var ne={exec:function(){}};function X(V){for(var _=1,G,y;_<arguments.length;_++){G=arguments[_];for(y in G)Object.prototype.hasOwnProperty.call(G,y)&&(V[y]=G[y])}return V}function b(V,_){var G=V.replace(/\|/g,function(w,T,ie){for(var fe=!1,Be=T;--Be>=0&&ie[Be]==="\\";)fe=!fe;return fe?"|":" |"}),y=G.split(/ \|/),C=0;if(y.length>_)y.splice(_);else for(;y.length<_;)y.push("");for(;C<y.length;C++)y[C]=y[C].trim().replace(/\\\|/g,"|");return y}function L(V,_,G){var y=V.length;if(y===0)return"";for(var C=0;C<y;){var w=V.charAt(y-C-1);if(w===_&&!G)C++;else if(w!==_&&G)C++;else break}return V.substr(0,y-C)}function J(V,_){if(V.indexOf(_[1])===-1)return-1;for(var G=V.length,y=0,C=0;C<G;C++)if(V[C]==="\\")C++;else if(V[C]===_[0])y++;else if(V[C]===_[1]&&(y--,y<0))return C;return-1}function O(V){V&&V.sanitize&&!V.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 he={escape:H,unescape:ee,edit:He,cleanUrl:Ne,resolveUrl:x,noopTest:ne,merge:X,splitCells:b,rtrim:L,findClosingBracket:J,checkSanitizeDeprecation:O},E=S.defaults,g=he.rtrim,Q=he.splitCells,we=he.escape,ye=he.findClosingBracket;function Ge(V,_,G){var y=_.href,C=_.title?we(_.title):null,w=V[1].replace(/\\([\[\]])/g,"$1");return V[0].charAt(0)!=="!"?{type:"link",raw:G,href:y,title:C,text:w}:{type:"image",raw:G,href:y,title:C,text:we(w)}}function Ve(V,_){var G=V.match(/^(\s+)(?:```)/);if(G===null)return _;var y=G[1];return _.split(`
|
|
`).map(function(C){var w=C.match(/^\s+/);if(w===null)return C;var T=w[0];return T.length>=y.length?C.slice(y.length):C}).join(`
|
|
`)}var Me=function(){function V(G){this.options=G||E}var _=V.prototype;return _.space=function(y){var C=this.rules.block.newline.exec(y);if(C)return C[0].length>1?{type:"space",raw:C[0]}:{raw:`
|
|
`}},_.code=function(y,C){var w=this.rules.block.code.exec(y);if(w){var T=C[C.length-1];if(T&&T.type==="paragraph")return{raw:w[0],text:w[0].trimRight()};var ie=w[0].replace(/^ {4}/gm,"");return{type:"code",raw:w[0],codeBlockStyle:"indented",text:this.options.pedantic?ie:g(ie,`
|
|
`)}}},_.fences=function(y){var C=this.rules.block.fences.exec(y);if(C){var w=C[0],T=Ve(w,C[3]||"");return{type:"code",raw:w,lang:C[2]?C[2].trim():C[2],text:T}}},_.heading=function(y){var C=this.rules.block.heading.exec(y);if(C)return{type:"heading",raw:C[0],depth:C[1].length,text:C[2]}},_.nptable=function(y){var C=this.rules.block.nptable.exec(y);if(C){var w={type:"table",header:Q(C[1].replace(/^ *| *\| *$/g,"")),align:C[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:C[3]?C[3].replace(/\n$/,"").split(`
|
|
`):[],raw:C[0]};if(w.header.length===w.align.length){var T=w.align.length,ie;for(ie=0;ie<T;ie++)/^ *-+: *$/.test(w.align[ie])?w.align[ie]="right":/^ *:-+: *$/.test(w.align[ie])?w.align[ie]="center":/^ *:-+ *$/.test(w.align[ie])?w.align[ie]="left":w.align[ie]=null;for(T=w.cells.length,ie=0;ie<T;ie++)w.cells[ie]=Q(w.cells[ie],w.header.length);return w}}},_.hr=function(y){var C=this.rules.block.hr.exec(y);if(C)return{type:"hr",raw:C[0]}},_.blockquote=function(y){var C=this.rules.block.blockquote.exec(y);if(C){var w=C[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:C[0],text:w}}},_.list=function(y){var C=this.rules.block.list.exec(y);if(C){for(var w=C[0],T=C[2],ie=T.length>1,fe=T[T.length-1]===")",Be={type:"list",raw:w,ordered:ie,start:ie?+T.slice(0,-1):"",loose:!1,items:[]},bt=C[0].match(this.rules.block.item),Lt=!1,De,At,mt,tt,Ut,Dt,Nt,Mt=bt.length,ct=0;ct<Mt;ct++)De=bt[ct],w=De,At=De.length,De=De.replace(/^ *([*+-]|\d+[.)]) */,""),~De.indexOf(`
|
|
`)&&(At-=De.length,De=this.options.pedantic?De.replace(/^ {1,4}/gm,""):De.replace(new RegExp("^ {1,"+At+"}","gm"),"")),ct!==Mt-1&&(mt=this.rules.block.bullet.exec(bt[ct+1])[0],(ie?mt.length===1||!fe&&mt[mt.length-1]===")":mt.length>1||this.options.smartLists&&mt!==T)&&(tt=bt.slice(ct+1).join(`
|
|
`),Be.raw=Be.raw.substring(0,Be.raw.length-tt.length),ct=Mt-1)),Ut=Lt||/\n\n(?!\s*$)/.test(De),ct!==Mt-1&&(Lt=De.charAt(De.length-1)===`
|
|
`,Ut||(Ut=Lt)),Ut&&(Be.loose=!0),Dt=/^\[[ xX]\] /.test(De),Nt=void 0,Dt&&(Nt=De[1]!==" ",De=De.replace(/^\[[ xX]\] +/,"")),Be.items.push({type:"list_item",raw:w,task:Dt,checked:Nt,loose:Ut,text:De});return Be}},_.html=function(y){var C=this.rules.block.html.exec(y);if(C)return{type:this.options.sanitize?"paragraph":"html",raw:C[0],pre:!this.options.sanitizer&&(C[1]==="pre"||C[1]==="script"||C[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(C[0]):we(C[0]):C[0]}},_.def=function(y){var C=this.rules.block.def.exec(y);if(C){C[3]&&(C[3]=C[3].substring(1,C[3].length-1));var w=C[1].toLowerCase().replace(/\s+/g," ");return{tag:w,raw:C[0],href:C[2],title:C[3]}}},_.table=function(y){var C=this.rules.block.table.exec(y);if(C){var w={type:"table",header:Q(C[1].replace(/^ *| *\| *$/g,"")),align:C[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:C[3]?C[3].replace(/\n$/,"").split(`
|
|
`):[]};if(w.header.length===w.align.length){w.raw=C[0];var T=w.align.length,ie;for(ie=0;ie<T;ie++)/^ *-+: *$/.test(w.align[ie])?w.align[ie]="right":/^ *:-+: *$/.test(w.align[ie])?w.align[ie]="center":/^ *:-+ *$/.test(w.align[ie])?w.align[ie]="left":w.align[ie]=null;for(T=w.cells.length,ie=0;ie<T;ie++)w.cells[ie]=Q(w.cells[ie].replace(/^ *\| *| *\| *$/g,""),w.header.length);return w}}},_.lheading=function(y){var C=this.rules.block.lheading.exec(y);if(C)return{type:"heading",raw:C[0],depth:C[2].charAt(0)==="="?1:2,text:C[1]}},_.paragraph=function(y){var C=this.rules.block.paragraph.exec(y);if(C)return{type:"paragraph",raw:C[0],text:C[1].charAt(C[1].length-1)===`
|
|
`?C[1].slice(0,-1):C[1]}},_.text=function(y,C){var w=this.rules.block.text.exec(y);if(w){var T=C[C.length-1];return T&&T.type==="text"?{raw:w[0],text:w[0]}:{type:"text",raw:w[0],text:w[0]}}},_.escape=function(y){var C=this.rules.inline.escape.exec(y);if(C)return{type:"escape",raw:C[0],text:we(C[1])}},_.tag=function(y,C,w){var T=this.rules.inline.tag.exec(y);if(T)return!C&&/^<a /i.test(T[0])?C=!0:C&&/^<\/a>/i.test(T[0])&&(C=!1),!w&&/^<(pre|code|kbd|script)(\s|>)/i.test(T[0])?w=!0:w&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(T[0])&&(w=!1),{type:this.options.sanitize?"text":"html",raw:T[0],inLink:C,inRawBlock:w,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(T[0]):we(T[0]):T[0]}},_.link=function(y){var C=this.rules.inline.link.exec(y);if(C){var w=ye(C[2],"()");if(w>-1){var T=C[0].indexOf("!")===0?5:4,ie=T+C[1].length+w;C[2]=C[2].substring(0,w),C[0]=C[0].substring(0,ie).trim(),C[3]=""}var fe=C[2],Be="";if(this.options.pedantic){var bt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(fe);bt?(fe=bt[1],Be=bt[3]):Be=""}else Be=C[3]?C[3].slice(1,-1):"";fe=fe.trim().replace(/^<([\s\S]*)>$/,"$1");var Lt=Ge(C,{href:fe&&fe.replace(this.rules.inline._escapes,"$1"),title:Be&&Be.replace(this.rules.inline._escapes,"$1")},C[0]);return Lt}},_.reflink=function(y,C){var w;if((w=this.rules.inline.reflink.exec(y))||(w=this.rules.inline.nolink.exec(y))){var T=(w[2]||w[1]).replace(/\s+/g," ");if(T=C[T.toLowerCase()],!T||!T.href){var ie=w[0].charAt(0);return{type:"text",raw:ie,text:ie}}var fe=Ge(w,T,w[0]);return fe}},_.strong=function(y,C,w){w===void 0&&(w="");var T=this.rules.inline.strong.start.exec(y);if(T&&(!T[1]||T[1]&&(w===""||this.rules.inline.punctuation.exec(w)))){C=C.slice(-1*y.length);var ie=T[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;ie.lastIndex=0;for(var fe;(T=ie.exec(C))!=null;)if(fe=this.rules.inline.strong.middle.exec(C.slice(0,T.index+3)),fe)return{type:"strong",raw:y.slice(0,fe[0].length),text:y.slice(2,fe[0].length-2)}}},_.em=function(y,C,w){w===void 0&&(w="");var T=this.rules.inline.em.start.exec(y);if(T&&(!T[1]||T[1]&&(w===""||this.rules.inline.punctuation.exec(w)))){C=C.slice(-1*y.length);var ie=T[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;ie.lastIndex=0;for(var fe;(T=ie.exec(C))!=null;)if(fe=this.rules.inline.em.middle.exec(C.slice(0,T.index+2)),fe)return{type:"em",raw:y.slice(0,fe[0].length),text:y.slice(1,fe[0].length-1)}}},_.codespan=function(y){var C=this.rules.inline.code.exec(y);if(C){var w=C[2].replace(/\n/g," "),T=/[^ ]/.test(w),ie=w.startsWith(" ")&&w.endsWith(" ");return T&&ie&&(w=w.substring(1,w.length-1)),w=we(w,!0),{type:"codespan",raw:C[0],text:w}}},_.br=function(y){var C=this.rules.inline.br.exec(y);if(C)return{type:"br",raw:C[0]}},_.del=function(y){var C=this.rules.inline.del.exec(y);if(C)return{type:"del",raw:C[0],text:C[1]}},_.autolink=function(y,C){var w=this.rules.inline.autolink.exec(y);if(w){var T,ie;return w[2]==="@"?(T=we(this.options.mangle?C(w[1]):w[1]),ie="mailto:"+T):(T=we(w[1]),ie=T),{type:"link",raw:w[0],text:T,href:ie,tokens:[{type:"text",raw:T,text:T}]}}},_.url=function(y,C){var w;if(w=this.rules.inline.url.exec(y)){var T,ie;if(w[2]==="@")T=we(this.options.mangle?C(w[0]):w[0]),ie="mailto:"+T;else{var fe;do fe=w[0],w[0]=this.rules.inline._backpedal.exec(w[0])[0];while(fe!==w[0]);T=we(w[0]),w[1]==="www."?ie="http://"+T:ie=T}return{type:"link",raw:w[0],text:T,href:ie,tokens:[{type:"text",raw:T,text:T}]}}},_.inlineText=function(y,C,w){var T=this.rules.inline.text.exec(y);if(T){var ie;return C?ie=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(T[0]):we(T[0]):T[0]:ie=we(this.options.smartypants?w(T[0]):T[0]),{type:"text",raw:T[0],text:ie}}},V}(),Ce=he.noopTest,xe=he.edit,Se=he.merge,$={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:Ce,table:Ce,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};$._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,$._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,$.def=xe($.def).replace("label",$._label).replace("title",$._title).getRegex(),$.bullet=/(?:[*+-]|\d{1,9}[.)])/,$.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,$.item=xe($.item,"gm").replace(/bull/g,$.bullet).getRegex(),$.list=xe($.list).replace(/bull/g,$.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+$.def.source+")").getRegex(),$._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",$._comment=/<!--(?!-?>)[\s\S]*?-->/,$.html=xe($.html,"i").replace("comment",$._comment).replace("tag",$._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$.paragraph=xe($._paragraph).replace("hr",$.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",$._tag).getRegex(),$.blockquote=xe($.blockquote).replace("paragraph",$.paragraph).getRegex(),$.normal=Se({},$),$.gfm=Se({},$.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*|$)"}),$.gfm.nptable=xe($.gfm.nptable).replace("hr",$.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",$._tag).getRegex(),$.gfm.table=xe($.gfm.table).replace("hr",$.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",$._tag).getRegex(),$.pedantic=Se({},$.normal,{html:xe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",$._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:Ce,paragraph:xe($.normal._paragraph).replace("hr",$.hr).replace("heading",` *#{1,6} *[^
|
|
]`).replace("lheading",$.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var F={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ce,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:Ce,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};F._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",F.punctuation=xe(F.punctuation).replace(/punctuation/g,F._punctuation).getRegex(),F._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",F._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",F.em.start=xe(F.em.start).replace(/punctuation/g,F._punctuation).getRegex(),F.em.middle=xe(F.em.middle).replace(/punctuation/g,F._punctuation).replace(/overlapSkip/g,F._overlapSkip).getRegex(),F.em.endAst=xe(F.em.endAst,"g").replace(/punctuation/g,F._punctuation).getRegex(),F.em.endUnd=xe(F.em.endUnd,"g").replace(/punctuation/g,F._punctuation).getRegex(),F.strong.start=xe(F.strong.start).replace(/punctuation/g,F._punctuation).getRegex(),F.strong.middle=xe(F.strong.middle).replace(/punctuation/g,F._punctuation).replace(/blockSkip/g,F._blockSkip).getRegex(),F.strong.endAst=xe(F.strong.endAst,"g").replace(/punctuation/g,F._punctuation).getRegex(),F.strong.endUnd=xe(F.strong.endUnd,"g").replace(/punctuation/g,F._punctuation).getRegex(),F.blockSkip=xe(F._blockSkip,"g").getRegex(),F.overlapSkip=xe(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=xe(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=xe(F.tag).replace("comment",$._comment).replace("attribute",F._attribute).getRegex(),F._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,F._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,F._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,F.link=xe(F.link).replace("label",F._label).replace("href",F._href).replace("title",F._title).getRegex(),F.reflink=xe(F.reflink).replace("label",F._label).getRegex(),F.reflinkSearch=xe(F.reflinkSearch,"g").replace("reflink",F.reflink).replace("nolink",F.nolink).getRegex(),F.normal=Se({},F),F.pedantic=Se({},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:xe(/^!?\[(label)\]\((.*?)\)/).replace("label",F._label).getRegex(),reflink:xe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",F._label).getRegex()}),F.gfm=Se({},F.normal,{escape:xe(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=xe(F.gfm.url,"i").replace("email",F.gfm._extended_email).getRegex(),F.breaks=Se({},F.gfm,{br:xe(F.br).replace("{2,}","*").getRegex(),text:xe(F.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var _e={block:$,inline:F},nt=S.defaults,qe=_e.block,it=_e.inline;function $e(V){return V.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function Re(V){var _="",G,y,C=V.length;for(G=0;G<C;G++)y=V.charCodeAt(G),Math.random()>.5&&(y="x"+y.toString(16)),_+="&#"+y+";";return _}var We=function(){function V(G){this.tokens=[],this.tokens.links=Object.create(null),this.options=G||nt,this.options.tokenizer=this.options.tokenizer||new Me,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var y={block:qe.normal,inline:it.normal};this.options.pedantic?(y.block=qe.pedantic,y.inline=it.pedantic):this.options.gfm&&(y.block=qe.gfm,this.options.breaks?y.inline=it.breaks:y.inline=it.gfm),this.tokenizer.rules=y}V.lex=function(y,C){var w=new V(C);return w.lex(y)};var _=V.prototype;return _.lex=function(y){return y=y.replace(/\r\n|\r/g,`
|
|
`).replace(/\t/g," "),this.blockTokens(y,this.tokens,!0),this.inline(this.tokens),this.tokens},_.blockTokens=function(y,C,w){C===void 0&&(C=[]),w===void 0&&(w=!0),y=y.replace(/^ +$/gm,"");for(var T,ie,fe,Be;y;){if(T=this.tokenizer.space(y)){y=y.substring(T.raw.length),T.type&&C.push(T);continue}if(T=this.tokenizer.code(y,C)){y=y.substring(T.raw.length),T.type?C.push(T):(Be=C[C.length-1],Be.raw+=`
|
|
`+T.raw,Be.text+=`
|
|
`+T.text);continue}if(T=this.tokenizer.fences(y)){y=y.substring(T.raw.length),C.push(T);continue}if(T=this.tokenizer.heading(y)){y=y.substring(T.raw.length),C.push(T);continue}if(T=this.tokenizer.nptable(y)){y=y.substring(T.raw.length),C.push(T);continue}if(T=this.tokenizer.hr(y)){y=y.substring(T.raw.length),C.push(T);continue}if(T=this.tokenizer.blockquote(y)){y=y.substring(T.raw.length),T.tokens=this.blockTokens(T.text,[],w),C.push(T);continue}if(T=this.tokenizer.list(y)){for(y=y.substring(T.raw.length),fe=T.items.length,ie=0;ie<fe;ie++)T.items[ie].tokens=this.blockTokens(T.items[ie].text,[],!1);C.push(T);continue}if(T=this.tokenizer.html(y)){y=y.substring(T.raw.length),C.push(T);continue}if(w&&(T=this.tokenizer.def(y))){y=y.substring(T.raw.length),this.tokens.links[T.tag]||(this.tokens.links[T.tag]={href:T.href,title:T.title});continue}if(T=this.tokenizer.table(y)){y=y.substring(T.raw.length),C.push(T);continue}if(T=this.tokenizer.lheading(y)){y=y.substring(T.raw.length),C.push(T);continue}if(w&&(T=this.tokenizer.paragraph(y))){y=y.substring(T.raw.length),C.push(T);continue}if(T=this.tokenizer.text(y,C)){y=y.substring(T.raw.length),T.type?C.push(T):(Be=C[C.length-1],Be.raw+=`
|
|
`+T.raw,Be.text+=`
|
|
`+T.text);continue}if(y){var bt="Infinite loop on byte: "+y.charCodeAt(0);if(this.options.silent){console.error(bt);break}else throw new Error(bt)}}return C},_.inline=function(y){var C,w,T,ie,fe,Be,bt=y.length;for(C=0;C<bt;C++){Be=y[C];switch(Be.type){case"paragraph":case"text":case"heading":{Be.tokens=[],this.inlineTokens(Be.text,Be.tokens);break}case"table":{for(Be.tokens={header:[],cells:[]},ie=Be.header.length,w=0;w<ie;w++)Be.tokens.header[w]=[],this.inlineTokens(Be.header[w],Be.tokens.header[w]);for(ie=Be.cells.length,w=0;w<ie;w++)for(fe=Be.cells[w],Be.tokens.cells[w]=[],T=0;T<fe.length;T++)Be.tokens.cells[w][T]=[],this.inlineTokens(fe[T],Be.tokens.cells[w][T]);break}case"blockquote":{this.inline(Be.tokens);break}case"list":{for(ie=Be.items.length,w=0;w<ie;w++)this.inline(Be.items[w].tokens);break}}}return y},_.inlineTokens=function(y,C,w,T,ie){C===void 0&&(C=[]),w===void 0&&(w=!1),T===void 0&&(T=!1),ie===void 0&&(ie="");var fe,Be=y,bt;if(this.tokens.links){var Lt=Object.keys(this.tokens.links);if(Lt.length>0)for(;(bt=this.tokenizer.rules.inline.reflinkSearch.exec(Be))!=null;)Lt.includes(bt[0].slice(bt[0].lastIndexOf("[")+1,-1))&&(Be=Be.slice(0,bt.index)+"["+"a".repeat(bt[0].length-2)+"]"+Be.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(bt=this.tokenizer.rules.inline.blockSkip.exec(Be))!=null;)Be=Be.slice(0,bt.index)+"["+"a".repeat(bt[0].length-2)+"]"+Be.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;y;){if(fe=this.tokenizer.escape(y)){y=y.substring(fe.raw.length),C.push(fe);continue}if(fe=this.tokenizer.tag(y,w,T)){y=y.substring(fe.raw.length),w=fe.inLink,T=fe.inRawBlock,C.push(fe);continue}if(fe=this.tokenizer.link(y)){y=y.substring(fe.raw.length),fe.type==="link"&&(fe.tokens=this.inlineTokens(fe.text,[],!0,T)),C.push(fe);continue}if(fe=this.tokenizer.reflink(y,this.tokens.links)){y=y.substring(fe.raw.length),fe.type==="link"&&(fe.tokens=this.inlineTokens(fe.text,[],!0,T)),C.push(fe);continue}if(fe=this.tokenizer.strong(y,Be,ie)){y=y.substring(fe.raw.length),fe.tokens=this.inlineTokens(fe.text,[],w,T),C.push(fe);continue}if(fe=this.tokenizer.em(y,Be,ie)){y=y.substring(fe.raw.length),fe.tokens=this.inlineTokens(fe.text,[],w,T),C.push(fe);continue}if(fe=this.tokenizer.codespan(y)){y=y.substring(fe.raw.length),C.push(fe);continue}if(fe=this.tokenizer.br(y)){y=y.substring(fe.raw.length),C.push(fe);continue}if(fe=this.tokenizer.del(y)){y=y.substring(fe.raw.length),fe.tokens=this.inlineTokens(fe.text,[],w,T),C.push(fe);continue}if(fe=this.tokenizer.autolink(y,Re)){y=y.substring(fe.raw.length),C.push(fe);continue}if(!w&&(fe=this.tokenizer.url(y,Re))){y=y.substring(fe.raw.length),C.push(fe);continue}if(fe=this.tokenizer.inlineText(y,T,$e)){y=y.substring(fe.raw.length),ie=fe.raw.slice(-1),C.push(fe);continue}if(y){var De="Infinite loop on byte: "+y.charCodeAt(0);if(this.options.silent){console.error(De);break}else throw new Error(De)}}return C},de(V,null,[{key:"rules",get:function(){return{block:qe,inline:it}}}]),V}(),je=S.defaults,lt=he.cleanUrl,Ke=he.escape,Te=function(){function V(G){this.options=G||je}var _=V.prototype;return _.code=function(y,C,w){var T=(C||"").match(/\S*/)[0];if(this.options.highlight){var ie=this.options.highlight(y,T);ie!=null&&ie!==y&&(w=!0,y=ie)}return T?'<pre><code class="'+this.options.langPrefix+Ke(T,!0)+'">'+(w?y:Ke(y,!0))+`</code></pre>
|
|
`:"<pre><code>"+(w?y:Ke(y,!0))+`</code></pre>
|
|
`},_.blockquote=function(y){return`<blockquote>
|
|
`+y+`</blockquote>
|
|
`},_.html=function(y){return y},_.heading=function(y,C,w,T){return this.options.headerIds?"<h"+C+' id="'+this.options.headerPrefix+T.slug(w)+'">'+y+"</h"+C+`>
|
|
`:"<h"+C+">"+y+"</h"+C+`>
|
|
`},_.hr=function(){return this.options.xhtml?`<hr/>
|
|
`:`<hr>
|
|
`},_.list=function(y,C,w){var T=C?"ol":"ul",ie=C&&w!==1?' start="'+w+'"':"";return"<"+T+ie+`>
|
|
`+y+"</"+T+`>
|
|
`},_.listitem=function(y){return"<li>"+y+`</li>
|
|
`},_.checkbox=function(y){return"<input "+(y?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},_.paragraph=function(y){return"<p>"+y+`</p>
|
|
`},_.table=function(y,C){return C&&(C="<tbody>"+C+"</tbody>"),`<table>
|
|
<thead>
|
|
`+y+`</thead>
|
|
`+C+`</table>
|
|
`},_.tablerow=function(y){return`<tr>
|
|
`+y+`</tr>
|
|
`},_.tablecell=function(y,C){var w=C.header?"th":"td",T=C.align?"<"+w+' align="'+C.align+'">':"<"+w+">";return T+y+"</"+w+`>
|
|
`},_.strong=function(y){return"<strong>"+y+"</strong>"},_.em=function(y){return"<em>"+y+"</em>"},_.codespan=function(y){return"<code>"+y+"</code>"},_.br=function(){return this.options.xhtml?"<br/>":"<br>"},_.del=function(y){return"<del>"+y+"</del>"},_.link=function(y,C,w){if(y=lt(this.options.sanitize,this.options.baseUrl,y),y===null)return w;var T='<a href="'+Ke(y)+'"';return C&&(T+=' title="'+C+'"'),T+=">"+w+"</a>",T},_.image=function(y,C,w){if(y=lt(this.options.sanitize,this.options.baseUrl,y),y===null)return w;var T='<img src="'+y+'" alt="'+w+'"';return C&&(T+=' title="'+C+'"'),T+=this.options.xhtml?"/>":">",T},_.text=function(y){return y},V}(),Qe=function(){function V(){}var _=V.prototype;return _.strong=function(y){return y},_.em=function(y){return y},_.codespan=function(y){return y},_.del=function(y){return y},_.html=function(y){return y},_.text=function(y){return y},_.link=function(y,C,w){return""+w},_.image=function(y,C,w){return""+w},_.br=function(){return""},V}(),dt=function(){function V(){this.seen={}}var _=V.prototype;return _.slug=function(y){var C=y.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(C)){var w=C;do this.seen[w]++,C=w+"-"+this.seen[w];while(this.seen.hasOwnProperty(C))}return this.seen[C]=0,C},V}(),ut=S.defaults,et=he.unescape,Je=function(){function V(G){this.options=G||ut,this.options.renderer=this.options.renderer||new Te,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Qe,this.slugger=new dt}V.parse=function(y,C){var w=new V(C);return w.parse(y)};var _=V.prototype;return _.parse=function(y,C){C===void 0&&(C=!0);var w="",T,ie,fe,Be,bt,Lt,De,At,mt,tt,Ut,Dt,Nt,Mt,ct,It,Ot,Ze,tn=y.length;for(T=0;T<tn;T++){tt=y[T];switch(tt.type){case"space":continue;case"hr":{w+=this.renderer.hr();continue}case"heading":{w+=this.renderer.heading(this.parseInline(tt.tokens),tt.depth,et(this.parseInline(tt.tokens,this.textRenderer)),this.slugger);continue}case"code":{w+=this.renderer.code(tt.text,tt.lang,tt.escaped);continue}case"table":{for(At="",De="",Be=tt.header.length,ie=0;ie<Be;ie++)De+=this.renderer.tablecell(this.parseInline(tt.tokens.header[ie]),{header:!0,align:tt.align[ie]});for(At+=this.renderer.tablerow(De),mt="",Be=tt.cells.length,ie=0;ie<Be;ie++){for(Lt=tt.tokens.cells[ie],De="",bt=Lt.length,fe=0;fe<bt;fe++)De+=this.renderer.tablecell(this.parseInline(Lt[fe]),{header:!1,align:tt.align[fe]});mt+=this.renderer.tablerow(De)}w+=this.renderer.table(At,mt);continue}case"blockquote":{mt=this.parse(tt.tokens),w+=this.renderer.blockquote(mt);continue}case"list":{for(Ut=tt.ordered,Dt=tt.start,Nt=tt.loose,Be=tt.items.length,mt="",ie=0;ie<Be;ie++)ct=tt.items[ie],It=ct.checked,Ot=ct.task,Mt="",ct.task&&(Ze=this.renderer.checkbox(It),Nt?ct.tokens.length>0&&ct.tokens[0].type==="text"?(ct.tokens[0].text=Ze+" "+ct.tokens[0].text,ct.tokens[0].tokens&&ct.tokens[0].tokens.length>0&&ct.tokens[0].tokens[0].type==="text"&&(ct.tokens[0].tokens[0].text=Ze+" "+ct.tokens[0].tokens[0].text)):ct.tokens.unshift({type:"text",text:Ze}):Mt+=Ze),Mt+=this.parse(ct.tokens,Nt),mt+=this.renderer.listitem(Mt,Ot,It);w+=this.renderer.list(mt,Ut,Dt);continue}case"html":{w+=this.renderer.html(tt.text);continue}case"paragraph":{w+=this.renderer.paragraph(this.parseInline(tt.tokens));continue}case"text":{for(mt=tt.tokens?this.parseInline(tt.tokens):tt.text;T+1<tn&&y[T+1].type==="text";)tt=y[++T],mt+=`
|
|
`+(tt.tokens?this.parseInline(tt.tokens):tt.text);w+=C?this.renderer.paragraph(mt):mt;continue}default:{var un='Token with "'+tt.type+'" type was not found.';if(this.options.silent){console.error(un);return}else throw new Error(un)}}}return w},_.parseInline=function(y,C){C=C||this.renderer;var w="",T,ie,fe=y.length;for(T=0;T<fe;T++){ie=y[T];switch(ie.type){case"escape":{w+=C.text(ie.text);break}case"html":{w+=C.html(ie.text);break}case"link":{w+=C.link(ie.href,ie.title,this.parseInline(ie.tokens,C));break}case"image":{w+=C.image(ie.href,ie.title,ie.text);break}case"strong":{w+=C.strong(this.parseInline(ie.tokens,C));break}case"em":{w+=C.em(this.parseInline(ie.tokens,C));break}case"codespan":{w+=C.codespan(ie.text);break}case"br":{w+=C.br();break}case"del":{w+=C.del(this.parseInline(ie.tokens,C));break}case"text":{w+=C.text(ie.text);break}default:{var Be='Token with "'+ie.type+'" type was not found.';if(this.options.silent){console.error(Be);return}else throw new Error(Be)}}}return w},V}(),ft=he.merge,st=he.checkSanitizeDeprecation,ot=he.escape,Ee=S.getDefaults,gt=S.changeDefaults,rt=S.defaults;function be(V,_,G){if(typeof V=="undefined"||V===null)throw new Error("marked(): input parameter is undefined or null");if(typeof V!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(V)+", string expected");if(typeof _=="function"&&(G=_,_=null),_=ft({},be.defaults,_||{}),st(_),G){var y=_.highlight,C;try{C=We.lex(V,_)}catch(fe){return G(fe)}var w=function(Be){var bt;if(!Be)try{bt=Je.parse(C,_)}catch(Lt){Be=Lt}return _.highlight=y,Be?G(Be):G(null,bt)};if(!y||y.length<3)return w();if(delete _.highlight,!C.length)return w();var T=0;be.walkTokens(C,function(fe){fe.type==="code"&&(T++,setTimeout(function(){y(fe.text,fe.lang,function(Be,bt){if(Be)return w(Be);bt!=null&&bt!==fe.text&&(fe.text=bt,fe.escaped=!0),T--,T===0&&w()})},0))}),T===0&&w();return}try{var ie=We.lex(V,_);return _.walkTokens&&be.walkTokens(ie,_.walkTokens),Je.parse(ie,_)}catch(fe){if(fe.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,_.silent)return"<p>An error occurred:</p><pre>"+ot(fe.message+"",!0)+"</pre>";throw fe}}be.options=be.setOptions=function(V){return ft(be.defaults,V),gt(be.defaults),be},be.getDefaults=Ee,be.defaults=rt,be.use=function(V){var _=ft({},V);if(V.renderer&&function(){var y=be.defaults.renderer||new Te,C=function(ie){var fe=y[ie];y[ie]=function(){for(var Be=arguments.length,bt=new Array(Be),Lt=0;Lt<Be;Lt++)bt[Lt]=arguments[Lt];var De=V.renderer[ie].apply(y,bt);return De===!1&&(De=fe.apply(y,bt)),De}};for(var w in V.renderer)C(w);_.renderer=y}(),V.tokenizer&&function(){var y=be.defaults.tokenizer||new Me,C=function(ie){var fe=y[ie];y[ie]=function(){for(var Be=arguments.length,bt=new Array(Be),Lt=0;Lt<Be;Lt++)bt[Lt]=arguments[Lt];var De=V.tokenizer[ie].apply(y,bt);return De===!1&&(De=fe.apply(y,bt)),De}};for(var w in V.tokenizer)C(w);_.tokenizer=y}(),V.walkTokens){var G=be.defaults.walkTokens;_.walkTokens=function(y){V.walkTokens(y),G&&G(y)}}be.setOptions(_)},be.walkTokens=function(V,_){for(var G=ae(V),y;!(y=G()).done;){var C=y.value;_(C);switch(C.type){case"table":{for(var w=ae(C.tokens.header),T;!(T=w()).done;){var ie=T.value;be.walkTokens(ie,_)}for(var fe=ae(C.tokens.cells),Be;!(Be=fe()).done;)for(var bt=Be.value,Lt=ae(bt),De;!(De=Lt()).done;){var At=De.value;be.walkTokens(At,_)}break}case"list":{be.walkTokens(C.items,_);break}default:C.tokens&&be.walkTokens(C.tokens,_)}}},be.Parser=Je,be.parser=Je.parse,be.Renderer=Te,be.TextRenderer=Qe,be.Lexer=We,be.lexer=We.lex,be.Tokenizer=Me,be.Slugger=dt,be.parse=be;var Ie=be;return Ie})},E7E6:function(me,ce){me.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5z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cR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},ELLl:function(me,ce,f){(function(N){N(f("VrN/"))})(function(N){var de={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},q=N.Pos;N.defineOption("autoCloseBrackets",!1,function(P,U,H){H&&H!=N.Init&&(P.removeKeyMap(ae),P.state.closeBrackets=null),U&&(K(le(U,"pairs")),P.state.closeBrackets=U,P.addKeyMap(ae))});function le(P,U){return U=="pairs"&&typeof P=="string"?P:typeof P=="object"&&P[U]!=null?P[U]:de[U]}var ae={Backspace:R,Enter:W};function K(P){for(var U=0;U<P.length;U++){var H=P.charAt(U),Z="'"+H+"'";ae[Z]||(ae[Z]=S(H))}}K(de.pairs+"`");function S(P){return function(U){return A(U,P)}}function k(P){var U=P.state.closeBrackets;if(!U||U.override)return U;var H=P.getModeAt(P.getCursor());return H.closeBrackets||U}function R(P){var U=k(P);if(!U||P.getOption("disableInput"))return N.Pass;for(var H=le(U,"pairs"),Z=P.listSelections(),ee=0;ee<Z.length;ee++){if(!Z[ee].empty())return N.Pass;var ke=Y(P,Z[ee].head);if(!ke||H.indexOf(ke)%2!=0)return N.Pass}for(var ee=Z.length-1;ee>=0;ee--){var He=Z[ee].head;P.replaceRange("",q(He.line,He.ch-1),q(He.line,He.ch+1),"+delete")}}function W(P){var U=k(P),H=U&&le(U,"explode");if(!H||P.getOption("disableInput"))return N.Pass;for(var Z=P.listSelections(),ee=0;ee<Z.length;ee++){if(!Z[ee].empty())return N.Pass;var ke=Y(P,Z[ee].head);if(!ke||H.indexOf(ke)%2!=0)return N.Pass}P.operation(function(){var He=P.lineSeparator()||`
|
|
`;P.replaceSelection(He+He,null),P.execCommand("goCharLeft"),Z=P.listSelections();for(var ue=0;ue<Z.length;ue++){var ge=Z[ue].head.line;P.indentLine(ge,null,!0),P.indentLine(ge+1,null,!0)}})}function M(P){var U=N.cmpPos(P.anchor,P.head)>0;return{anchor:new q(P.anchor.line,P.anchor.ch+(U?-1:1)),head:new q(P.head.line,P.head.ch+(U?1:-1))}}function A(P,U){var H=k(P);if(!H||P.getOption("disableInput"))return N.Pass;var Z=le(H,"pairs"),ee=Z.indexOf(U);if(ee==-1)return N.Pass;for(var ke=le(H,"closeBefore"),He=le(H,"triples"),ue=Z.charAt(ee+1)==U,ge=P.listSelections(),Ne=ee%2==0,ve,pe=0;pe<ge.length;pe++){var re=ge[pe],I=re.head,x,ne=P.getRange(I,q(I.line,I.ch+1));if(Ne&&!re.empty())x="surround";else if((ue||!Ne)&&ne==U)ue&&z(P,I)?x="both":He.indexOf(U)>=0&&P.getRange(I,q(I.line,I.ch+3))==U+U+U?x="skipThree":x="skip";else if(ue&&I.ch>1&&He.indexOf(U)>=0&&P.getRange(q(I.line,I.ch-2),I)==U+U){if(I.ch>2&&/\bstring/.test(P.getTokenTypeAt(q(I.line,I.ch-2))))return N.Pass;x="addFour"}else if(ue){var X=I.ch==0?" ":P.getRange(q(I.line,I.ch-1),I);if(!N.isWordChar(ne)&&X!=U&&!N.isWordChar(X))x="both";else return N.Pass}else if(Ne&&(ne.length===0||/\s/.test(ne)||ke.indexOf(ne)>-1))x="both";else return N.Pass;if(!ve)ve=x;else if(ve!=x)return N.Pass}var b=ee%2?Z.charAt(ee-1):U,L=ee%2?U:Z.charAt(ee+1);P.operation(function(){if(ve=="skip")P.execCommand("goCharRight");else if(ve=="skipThree")for(var J=0;J<3;J++)P.execCommand("goCharRight");else if(ve=="surround"){for(var O=P.getSelections(),J=0;J<O.length;J++)O[J]=b+O[J]+L;P.replaceSelections(O,"around"),O=P.listSelections().slice();for(var J=0;J<O.length;J++)O[J]=M(O[J]);P.setSelections(O)}else ve=="both"?(P.replaceSelection(b+L,null),P.triggerElectric(b+L),P.execCommand("goCharLeft")):ve=="addFour"&&(P.replaceSelection(b+b+b+b,"before"),P.execCommand("goCharRight"))})}function Y(P,U){var H=P.getRange(q(U.line,U.ch-1),q(U.line,U.ch+1));return H.length==2?H:null}function z(P,U){var H=P.getTokenAt(q(U.line,U.ch+1));return/\bstring/.test(H.type)&&H.start==U.ch&&(U.ch==0||!/\bstring/.test(P.getTokenTypeAt(U)))}})},FOrL:function(me,ce,f){me.exports=f.p+"static/nodata.a6b3f948.png"},FPkq:function(me,ce,f){me.exports=f.p+"static/qrCode.dd0fe9b2.png"},GABl:function(me,ce){me.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo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yaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},Gytx:function(me,ce){me.exports=function(N,de,q,le){var ae=q?q.call(le,N,de):void 0;if(ae!==void 0)return!!ae;if(N===de)return!0;if(typeof N!="object"||!N||typeof de!="object"||!de)return!1;var K=Object.keys(N),S=Object.keys(de);if(K.length!==S.length)return!1;for(var k=Object.prototype.hasOwnProperty.bind(de),R=0;R<K.length;R++){var W=K[R];if(!k(W))return!1;var M=N[W],A=de[W];if(ae=q?q.call(le,M,A,W):void 0,ae===!1||ae===void 0&&M!==A)return!1}return!0}},H38U:function(me,ce,f){var N=f("f4xo"),de=f("rcnY"),q=f("wU8J"),le=f("Iq15"),ae=f("dWSS");function K(k,R){this.typeNumber=k,this.errorCorrectLevel=R,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var S=K.prototype;S.addData=function(k){var R=new N(k);this.dataList.push(R),this.dataCache=null},S.isDark=function(k,R){if(k<0||this.moduleCount<=k||R<0||this.moduleCount<=R)throw new Error(k+","+R);return this.modules[k][R]},S.getModuleCount=function(){return this.moduleCount},S.make=function(){if(this.typeNumber<1){var k=1;for(k=1;k<40;k++){for(var R=de.getRSBlocks(k,this.errorCorrectLevel),W=new q,M=0,A=0;A<R.length;A++)M+=R[A].dataCount;for(var A=0;A<this.dataList.length;A++){var Y=this.dataList[A];W.put(Y.mode,4),W.put(Y.getLength(),le.getLengthInBits(Y.mode,k)),Y.write(W)}if(W.getLengthInBits()<=M*8)break}this.typeNumber=k}this.makeImpl(!1,this.getBestMaskPattern())},S.makeImpl=function(k,R){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var W=0;W<this.moduleCount;W++){this.modules[W]=new Array(this.moduleCount);for(var M=0;M<this.moduleCount;M++)this.modules[W][M]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(k,R),this.typeNumber>=7&&this.setupTypeNumber(k),this.dataCache==null&&(this.dataCache=K.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,R)},S.setupPositionProbePattern=function(k,R){for(var W=-1;W<=7;W++){if(k+W<=-1||this.moduleCount<=k+W)continue;for(var M=-1;M<=7;M++){if(R+M<=-1||this.moduleCount<=R+M)continue;0<=W&&W<=6&&(M==0||M==6)||0<=M&&M<=6&&(W==0||W==6)||2<=W&&W<=4&&2<=M&&M<=4?this.modules[k+W][R+M]=!0:this.modules[k+W][R+M]=!1}}},S.getBestMaskPattern=function(){for(var k=0,R=0,W=0;W<8;W++){this.makeImpl(!0,W);var M=le.getLostPoint(this);(W==0||k>M)&&(k=M,R=W)}return R},S.createMovieClip=function(k,R,W){var M=k.createEmptyMovieClip(R,W),A=1;this.make();for(var Y=0;Y<this.modules.length;Y++)for(var z=Y*A,P=0;P<this.modules[Y].length;P++){var U=P*A,H=this.modules[Y][P];H&&(M.beginFill(0,100),M.moveTo(U,z),M.lineTo(U+A,z),M.lineTo(U+A,z+A),M.lineTo(U,z+A),M.endFill())}return M},S.setupTimingPattern=function(){for(var k=8;k<this.moduleCount-8;k++){if(this.modules[k][6]!=null)continue;this.modules[k][6]=k%2==0}for(var R=8;R<this.moduleCount-8;R++){if(this.modules[6][R]!=null)continue;this.modules[6][R]=R%2==0}},S.setupPositionAdjustPattern=function(){for(var k=le.getPatternPosition(this.typeNumber),R=0;R<k.length;R++)for(var W=0;W<k.length;W++){var M=k[R],A=k[W];if(this.modules[M][A]!=null)continue;for(var Y=-2;Y<=2;Y++)for(var z=-2;z<=2;z++)Y==-2||Y==2||z==-2||z==2||Y==0&&z==0?this.modules[M+Y][A+z]=!0:this.modules[M+Y][A+z]=!1}},S.setupTypeNumber=function(k){for(var R=le.getBCHTypeNumber(this.typeNumber),W=0;W<18;W++){var M=!k&&(R>>W&1)==1;this.modules[Math.floor(W/3)][W%3+this.moduleCount-8-3]=M}for(var W=0;W<18;W++){var M=!k&&(R>>W&1)==1;this.modules[W%3+this.moduleCount-8-3][Math.floor(W/3)]=M}},S.setupTypeInfo=function(k,R){for(var W=this.errorCorrectLevel<<3|R,M=le.getBCHTypeInfo(W),A=0;A<15;A++){var Y=!k&&(M>>A&1)==1;A<6?this.modules[A][8]=Y:A<8?this.modules[A+1][8]=Y:this.modules[this.moduleCount-15+A][8]=Y}for(var A=0;A<15;A++){var Y=!k&&(M>>A&1)==1;A<8?this.modules[8][this.moduleCount-A-1]=Y:A<9?this.modules[8][15-A-1+1]=Y:this.modules[8][15-A-1]=Y}this.modules[this.moduleCount-8][8]=!k},S.mapData=function(k,R){for(var W=-1,M=this.moduleCount-1,A=7,Y=0,z=this.moduleCount-1;z>0;z-=2)for(z==6&&z--;;){for(var P=0;P<2;P++)if(this.modules[M][z-P]==null){var U=!1;Y<k.length&&(U=(k[Y]>>>A&1)==1);var H=le.getMask(R,M,z-P);H&&(U=!U),this.modules[M][z-P]=U,A--,A==-1&&(Y++,A=7)}if(M+=W,M<0||this.moduleCount<=M){M-=W,W=-W;break}}},K.PAD0=236,K.PAD1=17,K.createData=function(k,R,W){for(var M=de.getRSBlocks(k,R),A=new q,Y=0;Y<W.length;Y++){var z=W[Y];A.put(z.mode,4),A.put(z.getLength(),le.getLengthInBits(z.mode,k)),z.write(A)}for(var P=0,Y=0;Y<M.length;Y++)P+=M[Y].dataCount;if(A.getLengthInBits()>P*8)throw new Error("code length overflow. ("+A.getLengthInBits()+">"+P*8+")");for(A.getLengthInBits()+4<=P*8&&A.put(0,4);A.getLengthInBits()%8!=0;)A.putBit(!1);for(;!(A.getLengthInBits()>=P*8);){if(A.put(K.PAD0,8),A.getLengthInBits()>=P*8)break;A.put(K.PAD1,8)}return K.createBytes(A,M)},K.createBytes=function(k,R){for(var W=0,M=0,A=0,Y=new Array(R.length),z=new Array(R.length),P=0;P<R.length;P++){var U=R[P].dataCount,H=R[P].totalCount-U;M=Math.max(M,U),A=Math.max(A,H),Y[P]=new Array(U);for(var Z=0;Z<Y[P].length;Z++)Y[P][Z]=255&k.buffer[Z+W];W+=U;var ee=le.getErrorCorrectPolynomial(H),ke=new ae(Y[P],ee.getLength()-1),He=ke.mod(ee);z[P]=new Array(ee.getLength()-1);for(var Z=0;Z<z[P].length;Z++){var ue=Z+He.getLength()-z[P].length;z[P][Z]=ue>=0?He.get(ue):0}}for(var ge=0,Z=0;Z<R.length;Z++)ge+=R[Z].totalCount;for(var Ne=new Array(ge),ve=0,Z=0;Z<M;Z++)for(var P=0;P<R.length;P++)Z<Y[P].length&&(Ne[ve++]=Y[P][Z]);for(var Z=0;Z<A;Z++)for(var P=0;P<R.length;P++)Z<z[P].length&&(Ne[ve++]=z[P][Z]);return Ne},me.exports=K},HmJG:function(me,ce,f){},HpTS:function(me,ce,f){me.exports=f.p+"static/small_program.f74069ec.png"},Iq15:function(me,ce,f){var N=f("nVVt"),de=f("dWSS"),q=f("dQei"),le={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},ae={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,G18:1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,G15_MASK:1<<14|1<<12|1<<10|1<<4|1<<1,getBCHTypeInfo:function(K){for(var S=K<<10;ae.getBCHDigit(S)-ae.getBCHDigit(ae.G15)>=0;)S^=ae.G15<<ae.getBCHDigit(S)-ae.getBCHDigit(ae.G15);return(K<<10|S)^ae.G15_MASK},getBCHTypeNumber:function(K){for(var S=K<<12;ae.getBCHDigit(S)-ae.getBCHDigit(ae.G18)>=0;)S^=ae.G18<<ae.getBCHDigit(S)-ae.getBCHDigit(ae.G18);return K<<12|S},getBCHDigit:function(K){for(var S=0;K!=0;)S++,K>>>=1;return S},getPatternPosition:function(K){return ae.PATTERN_POSITION_TABLE[K-1]},getMask:function(K,S,k){switch(K){case le.PATTERN000:return(S+k)%2==0;case le.PATTERN001:return S%2==0;case le.PATTERN010:return k%3==0;case le.PATTERN011:return(S+k)%3==0;case le.PATTERN100:return(Math.floor(S/2)+Math.floor(k/3))%2==0;case le.PATTERN101:return S*k%2+S*k%3==0;case le.PATTERN110:return(S*k%2+S*k%3)%2==0;case le.PATTERN111:return(S*k%3+(S+k)%2)%2==0;default:throw new Error("bad maskPattern:"+K)}},getErrorCorrectPolynomial:function(K){for(var S=new de([1],0),k=0;k<K;k++)S=S.multiply(new de([1,q.gexp(k)],0));return S},getLengthInBits:function(K,S){if(1<=S&&S<10)switch(K){case N.MODE_NUMBER:return 10;case N.MODE_ALPHA_NUM:return 9;case N.MODE_8BIT_BYTE:return 8;case N.MODE_KANJI:return 8;default:throw new Error("mode:"+K)}else if(S<27)switch(K){case N.MODE_NUMBER:return 12;case N.MODE_ALPHA_NUM:return 11;case N.MODE_8BIT_BYTE:return 16;case N.MODE_KANJI:return 10;default:throw new Error("mode:"+K)}else if(S<41)switch(K){case N.MODE_NUMBER:return 14;case N.MODE_ALPHA_NUM:return 13;case N.MODE_8BIT_BYTE:return 16;case N.MODE_KANJI:return 12;default:throw new Error("mode:"+K)}else throw new Error("type:"+S)},getLostPoint:function(K){for(var S=K.getModuleCount(),k=0,R=0;R<S;R++)for(var W=0;W<S;W++){for(var M=0,A=K.isDark(R,W),Y=-1;Y<=1;Y++){if(R+Y<0||S<=R+Y)continue;for(var z=-1;z<=1;z++){if(W+z<0||S<=W+z)continue;if(Y==0&&z==0)continue;A==K.isDark(R+Y,W+z)&&M++}}M>5&&(k+=3+M-5)}for(var R=0;R<S-1;R++)for(var W=0;W<S-1;W++){var P=0;K.isDark(R,W)&&P++,K.isDark(R+1,W)&&P++,K.isDark(R,W+1)&&P++,K.isDark(R+1,W+1)&&P++,(P==0||P==4)&&(k+=3)}for(var R=0;R<S;R++)for(var W=0;W<S-6;W++)K.isDark(R,W)&&!K.isDark(R,W+1)&&K.isDark(R,W+2)&&K.isDark(R,W+3)&&K.isDark(R,W+4)&&!K.isDark(R,W+5)&&K.isDark(R,W+6)&&(k+=40);for(var W=0;W<S;W++)for(var R=0;R<S-6;R++)K.isDark(R,W)&&!K.isDark(R+1,W)&&K.isDark(R+2,W)&&K.isDark(R+3,W)&&K.isDark(R+4,W)&&!K.isDark(R+5,W)&&K.isDark(R+6,W)&&(k+=40);for(var U=0,W=0;W<S;W++)for(var R=0;R<S;R++)K.isDark(R,W)&&U++;var H=Math.abs(100*U/S/S-50)/5;return k+=H*10,k}};me.exports=ae},JWDV:function(me,ce,f){me.exports=f.p+"static/charpter-white.5fa14f93.svg"},JeFH:function(me,ce){me.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VX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0bgCYrXg/Hi2dETrHyXVa+HS2l5Ft21+6usMBuhMtidE/UECdlDYSggk6oV1psa893Qb3rlCW54ZepouXg37l3d0aAfzL/cNSYZcT0LvEYnuqyvnIrIChHo/dbZYjDbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(me,ce,f){me.exports=f.p+"static/qrcode.54870d9b.png"},LdHM:function(me,ce,f){"use strict";f.d(ce,"b",function(){return ke}),f.d(ce,"a",function(){return ue});var N=f("1OyB"),de=f("vuIU"),q=f("Ji7U"),le=f("LK+K"),ae=f("q1tI"),K=f("rePB"),S=f("Ff2n"),k=f("ODXe"),R=f("4IlW"),W=f("bX4T"),M=f("YrtM"),A=f("TSYQ"),Y=f.n(A),z=f("+nKL"),P=f("8OUc"),U=function(Q,we){var ye=Q.prefixCls,Ge=Q.id,Ve=Q.flattenOptions,Me=Q.childrenAsData,Ce=Q.values,xe=Q.searchValue,Se=Q.multiple,$=Q.defaultActiveFirstOption,F=Q.height,_e=Q.itemHeight,nt=Q.notFoundContent,qe=Q.open,it=Q.menuItemSelectedIcon,$e=Q.virtual,Re=Q.onSelect,We=Q.onToggleOpen,je=Q.onActiveValue,lt=Q.onScroll,Ke=Q.onMouseEnter,Te="".concat(ye,"-item"),Qe=Object(M.a)(function(){return Ve},[qe,Ve],function(Ie,V){return V[0]&&Ie[1]!==V[1]}),dt=ae.useRef(null),ut=function(V){V.preventDefault()},et=function(V){dt.current&&dt.current.scrollTo({index:V})},Je=function(V){for(var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,G=Qe.length,y=0;y<G;y+=1){var C=(V+y*_+G)%G,w=Qe[C],T=w.group,ie=w.data;if(!T&&!ie.disabled)return C}return-1},ft=ae.useState(function(){return Je(0)}),st=Object(k.a)(ft,2),ot=st[0],Ee=st[1],gt=function(V){Ee(V);var _=Qe[V];if(!_){je(null,-1);return}je(_.data.value,V)};ae.useEffect(function(){gt($!==!1?Je(0):-1)},[Qe.length,xe]),ae.useEffect(function(){var Ie=setTimeout(function(){if(!Se&&qe&&Ce.size===1){var V=Array.from(Ce)[0],_=Qe.findIndex(function(G){var y=G.data;return y.value===V});gt(_),et(_)}});return function(){return clearTimeout(Ie)}},[qe]);var rt=function(V){V!==void 0&&Re(V,{selected:!Ce.has(V)}),Se||We(!1)};if(ae.useImperativeHandle(we,function(){return{onKeyDown:function(V){var _=V.which;switch(_){case R.a.UP:case R.a.DOWN:{var G=0;if(_===R.a.UP?G=-1:_===R.a.DOWN&&(G=1),G!==0){var y=Je(ot+G,G);et(y),gt(y)}break}case R.a.ENTER:{var C=Qe[ot];C&&!C.data.disabled?rt(C.data.value):rt(void 0),qe&&V.preventDefault();break}case R.a.ESC:We(!1)}},onKeyUp:function(){},scrollTo:function(V){et(V)}}}),Qe.length===0)return ae.createElement("div",{role:"listbox",id:"".concat(Ge,"_list"),className:"".concat(Te,"-empty"),onMouseDown:ut},nt);function be(Ie){var V=Qe[Ie];if(!V)return null;var _=V.data||{},G=_.value,y=_.label,C=_.children,w=Object(W.a)(_,!0),T=Me?C:y;return V?ae.createElement("div",Object.assign({"aria-label":typeof T=="string"?T:null},w,{key:Ie,role:"option",id:"".concat(Ge,"_list_").concat(Ie),"aria-selected":Ce.has(G)}),G):null}return ae.createElement(ae.Fragment,null,ae.createElement("div",{role:"listbox",id:"".concat(Ge,"_list"),style:{height:0,width:0,overflow:"hidden"}},be(ot-1),be(ot),be(ot+1)),ae.createElement(z.a,{itemKey:"key",ref:dt,data:Qe,height:F,itemHeight:_e,fullHeight:!1,onMouseDown:ut,onScroll:lt,virtual:$e,onMouseEnter:Ke},function(Ie,V){var _,G=Ie.group,y=Ie.groupOption,C=Ie.data,w=C.label,T=C.key;if(G)return ae.createElement("div",{className:Y()(Te,"".concat(Te,"-group"))},w!==void 0?w:T);var ie=C.disabled,fe=C.value,Be=C.title,bt=C.children,Lt=C.style,De=C.className,At=Object(S.a)(C,["disabled","value","title","children","style","className"]),mt=Ce.has(fe),tt="".concat(Te,"-option"),Ut=Y()(Te,tt,De,(_={},Object(K.a)(_,"".concat(tt,"-grouped"),y),Object(K.a)(_,"".concat(tt,"-active"),ot===V&&!ie),Object(K.a)(_,"".concat(tt,"-disabled"),ie),Object(K.a)(_,"".concat(tt,"-selected"),mt),_)),Dt=Me?bt:w,Nt=!it||typeof it=="function"||mt;return ae.createElement("div",Object.assign({},At,{"aria-selected":mt,className:Ut,title:Be,onMouseMove:function(){if(ot===V||ie)return;gt(V)},onClick:function(){ie||rt(fe)},style:Lt}),ae.createElement("div",{className:"".concat(tt,"-content")},Dt||fe),ae.isValidElement(it)||mt,Nt&&ae.createElement(P.a,{className:"".concat(Te,"-option-state"),customizeIcon:it,customizeIconProps:{isSelected:mt}},mt?"\u2713":null))}))},H=ae.forwardRef(U);H.displayName="OptionList";var Z=H,ee=function(){return null};ee.isSelectOption=!0;var ke=ee,He=function(){return null};He.isSelectOptGroup=!0;var ue=He,ge=f("VTBJ"),Ne=f("Zm9Q");function ve(g){var Q=g.key,we=g.props,ye=we.children,Ge=we.value,Ve=Object(S.a)(we,["children","value"]);return Object(ge.a)({key:Q,value:Ge!==void 0?Ge:Q,children:ye},Ve)}function pe(g){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(Ne.a)(g).map(function(we,ye){if(!ae.isValidElement(we)||!we.type)return null;var Ge=we.type.isSelectOptGroup,Ve=we.key,Me=we.props,Ce=Me.children,xe=Object(S.a)(Me,["children"]);return Q||!Ge?ve(we):Object(ge.a)(Object(ge.a)({key:"__RC_SELECT_GRP__".concat(Ve===null?ye:Ve,"__"),label:Ve},xe),{},{options:pe(Ce)})}).filter(function(we){return we})}var re=f("2Qr1"),I=f("qNPg"),x=f("U8pU"),ne=f("Kwbf"),X=f("WKfj");function b(g){var Q=g.mode,we=g.options,ye=g.children,Ge=g.backfill,Ve=g.allowClear,Me=g.placeholder,Ce=g.getInputElement,xe=g.showSearch,Se=g.onSearch,$=g.defaultOpen,F=g.autoFocus,_e=g.labelInValue,nt=g.value,qe=g.inputValue,it=g.optionLabelProp,$e=Q==="multiple"||Q==="tags",Re=xe!==void 0?xe:$e||Q==="combobox",We=we||pe(ye);if(Object(ne.a)(Q!=="tags"||We.every(function(Te){return!Te.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Q==="tags"||Q==="combobox"){var je=We.some(function(Te){return Te.options?Te.options.some(function(Qe){return typeof("value"in Qe?Qe.value:Qe.key)=="number"}):typeof("value"in Te?Te.value:Te.key)=="number"});Object(ne.a)(!je,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(ne.a)(Q!=="combobox"||!it,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(ne.a)(Q==="combobox"||!Ge,"`backfill` only works with `combobox` mode."),Object(ne.a)(Q==="combobox"||!Ce,"`getInputElement` only work with `combobox` mode."),Object(ne.b)(Q!=="combobox"||!Ce||!Ve||!Me,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Se&&!Re&&Q!=="combobox"&&Q!=="tags"&&Object(ne.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(ne.b)(!$||F,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),nt!=null){var lt=Object(X.d)(nt);Object(ne.a)(!_e||lt.every(function(Te){return Object(x.a)(Te)==="object"&&("key"in Te||"value"in Te)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(ne.a)(!$e||Array.isArray(nt),"`value` should be array when `mode` is `multiple` or `tags`")}if(ye){var Ke=null;Object(Ne.a)(ye).some(function(Te){if(!ae.isValidElement(Te)||!Te.type)return!1;var Qe=Te.type;if(Qe.isSelectOption)return!1;if(Qe.isSelectOptGroup){var dt=Object(Ne.a)(Te.props.children).every(function(ut){return!ae.isValidElement(ut)||!Te.type||ut.type.isSelectOption?!0:(Ke=ut.type,!1)});return!dt}return Ke=Qe,!0}),Ke&&Object(ne.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ke.displayName||Ke.name||Ke,"`.")),Object(ne.a)(qe===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var L=b,J=Object(I.a)({prefixCls:"rc-select",components:{optionList:Z},convertChildrenToData:pe,flattenOptions:re.d,getLabeledValue:re.e,filterOptions:re.b,isValueDisabled:re.g,findValueOption:re.c,warningProps:L,fillOptionsWithMissingValue:re.a}),O=function(g){Object(q.a)(we,g);var Q=Object(le.a)(we);function we(){var ye;return Object(N.a)(this,we),ye=Q.apply(this,arguments),ye.selectRef=ae.createRef(),ye.focus=function(){ye.selectRef.current.focus()},ye.blur=function(){ye.selectRef.current.blur()},ye}return Object(de.a)(we,[{key:"render",value:function(){return ae.createElement(J,Object.assign({ref:this.selectRef},this.props))}}]),we}(ae.Component);O.Option=ke,O.OptGroup=ue;var he=O,E=ce.c=he},M8RZ:function(me,ce,f){"use strict";f.d(ce,"a",function(){return R});var N=f("fWQN"),de=f("mtLc"),q=f("yKVA"),le=f("879j"),ae=f("q1tI"),K=f.n(ae),S=f("i8i4"),k=f.n(S),R=function(W){Object(q.a)(A,W);var M=Object(le.a)(A);function A(Y){var z;Object(N.a)(this,A),z=M.call(this,Y);var P=window.document;return z.node=P.createElement("div"),P.body.appendChild(z.node),z}return Object(de.a)(A,[{key:"render",value:function(){var z=this.props.children;return Object(S.createPortal)(z,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),A}(K.a.Component)},NhNJ:function(me,ce){me.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAS4AAAA+CAYAAACV4fZsAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQlYlOXavmeFAYZ9UHbEHcR918o09WipZWlZWXbaT1lWp5NlJ/P0V7ZYnXbbVytN0yxLzdxzyxXBHRFBlgEFhmWY9b/uBwcBUTymiPK91+U1yHzzzffe3/vd7/3cz/O+qFBPc7vdqvqOUd5XEFAQUBA4lwioVCr36c5XJynVRVbTpk2r89iUlBSF2M7lHVPOpSDQBBBITEysk5imTp160u/rIrGTSKc6aZGsPMRkNpvlWIvFIq9Wq1UhrCYwwJQuKgicTwS8vb2FqIxGo7yaTCZ5JbFVJ7Ha5FWDfDyk5SEskhWJiiQVExOjKi8vV1VUVMhnbDabQlzn844q51YQaAII6PV6ISovLy+3wWBwZ2RkuElmJDKSWHUCq05eVeRTm7TS0tLUJCyTyaS2WCz8WR0YGKhyOBzyrwlgqnRRQUBBoAEQ0Gq1bv4rLCwkabmMRqPLbDa7SGDx8fGuushLCKgu0goLC1Pn5eVpjEYjiUtjtVo1vr6+KqfTqXK5XPLaAH1SvkJBQEHgEkZAo9G41Wq1m6+lpaUkLqfRaHRaLBZXWFiYMy8vz1UXedUg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uBK7zRTb3pUGwfCGznTdk3MMm2tG/vIvL7tpJE1G3vlCeMMcYCvTye2TfSvP2qHeFTMY4NTI9Sek8AJFewlCGi7IEPc/JycmWYOUVCJMHitNmYOQF7NjAzmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},OLES:function(me,ce,f){"use strict";var N=f("U8pU"),de=f("VTBJ"),q=f("Ff2n"),le=f("q1tI"),ae=f("uciX"),K=f("7ixt"),S=function(Y){var z=Y.overlay,P=Y.prefixCls,U=Y.id,H=Y.overlayInnerStyle;return le.createElement("div",{className:"".concat(P,"-inner"),id:U,role:"tooltip",style:H},typeof z=="function"?z():z)},k=S,R=function(Y,z){var P=Y.overlayClassName,U=Y.trigger,H=U===void 0?["hover"]:U,Z=Y.mouseEnterDelay,ee=Z===void 0?0:Z,ke=Y.mouseLeaveDelay,He=ke===void 0?.1:ke,ue=Y.overlayStyle,ge=Y.prefixCls,Ne=ge===void 0?"rc-tooltip":ge,ve=Y.children,pe=Y.onVisibleChange,re=Y.afterVisibleChange,I=Y.transitionName,x=Y.animation,ne=Y.placement,X=ne===void 0?"right":ne,b=Y.align,L=b===void 0?{}:b,J=Y.destroyTooltipOnHide,O=J===void 0?!1:J,he=Y.defaultVisible,E=Y.getTooltipContainer,g=Y.overlayInnerStyle,Q=Object(q.a)(Y,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),we=Object(le.useRef)(null);Object(le.useImperativeHandle)(z,function(){return we.current});var ye=Object(de.a)({},Q);"visible"in Y&&(ye.popupVisible=Y.visible);var Ge=function(){var Se=Y.arrowContent,$=Se===void 0?null:Se,F=Y.overlay,_e=Y.id;return[le.createElement("div",{className:"".concat(Ne,"-arrow"),key:"arrow"},$),le.createElement(k,{key:"content",prefixCls:Ne,id:_e,overlay:F,overlayInnerStyle:g})]},Ve=!1,Me=!1;if(typeof O=="boolean")Ve=O;else if(O&&Object(N.a)(O)==="object"){var Ce=O.keepParent;Ve=Ce===!0,Me=Ce===!1}return le.createElement(ae.a,Object.assign({popupClassName:P,prefixCls:Ne,popup:Ge,action:H,builtinPlacements:K.a,popupPlacement:X,ref:we,popupAlign:L,getPopupContainer:E,onPopupVisibleChange:pe,afterPopupVisibleChange:re,popupTransitionName:I,popupAnimation:x,defaultPopupVisible:he,destroyPopupOnHide:Ve,autoDestroy:Me,mouseLeaveDelay:He,popupStyle:ue,mouseEnterDelay:ee},ye),ve)},W=Object(le.forwardRef)(R),M=ce.a=W},Ohmc:function(me,ce,f){me.exports=f.p+"static/certificate.fc32dc1b.jpg"},Ot1p:function(me,ce,f){"use strict";var N=f("2qtc"),de=f("kLXV"),q=f("rAM+"),le=f("miYZ"),ae=f("tsqr"),K=f("9og8"),S=f("tJVT"),k=f("jrin"),R=f("WmNS"),W=f.n(R),M=f("q1tI"),A=f.n(M),Y=f("VrN/"),z=f.n(Y),P=f("bdgK"),U=f("p77/"),H=f("Bd2K"),Z=f("ELLl"),ee=f("19Vz"),ke=f("lZu9"),He=f("+NIl"),ue=f("kSUc"),ge=f("9Bee"),Ne=function(De){var At=De.value,mt=At===void 0?"":At,tt=De.className,Ut=De.showTextOnly,Dt=De.showLines,Nt=De.style,Mt=Nt===void 0?{}:Nt,ct=Object(M.useMemo)(function(){return""},[mt]);return A.a.createElement(A.a.Fragment,null,A.a.createElement("div",{dangerouslySetInnerHTML:{__html:ct}}))},ve=f("Q9mQ"),pe=f("diRs"),re=f("0Owb"),I=f("dejd"),x=f("C+DQ"),ne=f("D1Df"),X=f.n(ne),b=f("1vsH"),L=f("m3rI"),J=[{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 O(De){var At=De.onActionCallback,mt=De.title,tt=De.icon,Ut=De.actionName,Dt=De.className,Nt=Dt===void 0?"":Dt,Mt=De.children;function ct(){At(Ut)}return A.a.createElement("a",{title:mt,className:Nt,onClick:ct},A.a.createElement("i",{className:"md-iconfont ".concat(tt)}),Mt)}var he=function(De){var At=De.watch,mt=De.showNullButton,tt=De.onActionCallback,Ut=De.fullScreen,Dt=De.insertTemp,Nt=De.hidetoolBar,Mt=De.uuid,ct=De.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(b.E)("_educoder_session_login"),"&_educoder_session=").concat(Object(b.E)("_educoder_session"),"&key=").concat(Mt,"&api=").concat(encodeURIComponent(L.a.PROXY_SERVER)));var It=[].concat(J,[{title:"".concat(At?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(At?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return A.a.createElement("ul",{className:"markdown-toolbar-container"},!Nt&&It.map(function(Ot,Ze){return A.a.createElement("li",{key:Ze},Ot.actionName?A.a.createElement(O,Object(re.a)({},Ot,{onActionCallback:tt})):A.a.createElement("span",{className:"v-line"}))}),mt?A.a.createElement("li",null,A.a.createElement(O,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:tt},A.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Dt&&A.a.createElement("li",null,A.a.createElement(O,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Dt),onActionCallback:tt},A.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),A.a.createElement("li",null,A.a.createElement(pe.a,{title:"\u6253\u5F00\u624B\u673A\u626B\u4E00\u626B",content:A.a.createElement("div",null,A.a.createElement(X.a,{size:150,fgColor:"#000",value:"https://test2.educoder.net/upload.html?_educoder_session_login=".concat(Object(b.E)("_educoder_session_login"),"&_educoder_session=").concat(Object(b.E)("_educoder_session"),"&key=").concat(Mt,"&api=").concat(encodeURIComponent(L.a.PROXY_SERVER))}))},A.a.createElement("span",{className:"fill-tip",onMouseOver:function(){return ct(!0)}},"\u624B\u673A\u4E0A\u4F20\u6587\u4EF6"))),A.a.createElement("li",{className:"btn-full-screen"},A.a.createElement(O,{icon:"".concat(Ut?"icon-shrink":"icon-enlarge"),title:Ut?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:tt})))},E=f("M8RZ"),g=f("+L6B"),Q=f("2/Rp"),we=f("y8nQ"),ye=f("Vl3Y"),Ge=f("5NDa"),Ve=f("5rEg"),Me={labelCol:{span:4},wrapperCol:{span:20}},Ce=function(De){var At=De.callback,mt=De.onCancel;function tt(Ut){At(Ut)}return A.a.createElement(ye.a,Object(re.a)({},Me,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:tt}),A.a.createElement(ye.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},A.a.createElement(Ve.a,null)),A.a.createElement(ye.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},A.a.createElement(Ve.a,null)),A.a.createElement("div",{className:"flex-container flex-end"},A.a.createElement(Q.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),A.a.createElement(Q.a,{type:"ghost",onClick:mt},"\u53D6\u6D88")))},xe=f("7ahc"),Se=f("k1fw"),$=f("HmJG"),F=f("BjJ7"),_e=ye.a.useForm,nt={width:280,marginRight:10},qe={labelCol:{span:5},wrapperCol:{span:19}},it=function(De){var At=De.callback,mt=De.onCancel,tt=_e(),Ut=Object(S.a)(tt,1),Dt=Ut[0],Nt=Object(M.useRef)();function Mt(Ot){At(Object(Se.a)(Object(Se.a)({},Ot),{},{name:Nt.current}))}function ct(Ot,Ze){Dt.setFieldsValue({src:"/api/attachments/".concat(Ot.id,"?type=").concat(Ot.content_type),type:Ze.type})}function It(Ot){var Ze=Ot.target.files[0];Nt.current=Ze.name,Re(Ze,ct)}return A.a.createElement(ye.a,Object(re.a)({form:Dt},qe,{className:"upload-image-panel",onFinish:Mt}),A.a.createElement(ye.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},A.a.createElement("div",{className:"flex-container"},A.a.createElement(ye.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},A.a.createElement(Ve.a,{style:nt})),A.a.createElement($e,{onFileChange:It}))),A.a.createElement(ye.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},A.a.createElement(Ve.a,{style:{width:264}})),A.a.createElement(ye.a.Item,{style:{textAlign:"right"}},A.a.createElement(Q.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),A.a.createElement(Q.a,{type:"ghost",onClick:mt},"\u53D6\u6D88")))};function $e(De){var At=De.onFileChange;return A.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",A.a.createElement("input",{type:"file",onChange:At}))}function Re(De,At){if(!De)throw new String("\u6CA1\u6709\u6587\u4EF6");var mt=new FormData;mt.append("editormd-image-file",De),mt.append("file_param_name","editormd-image-file"),mt.append("byxhr","true");var tt=new window.XMLHttpRequest;tt.withCredentials=!0,tt.addEventListener("load",function(Ut){At(JSON.parse(Ut.target.responseText),De)},!1),tt.addEventListener("error",function(Ut){console.error(Ut)},!1),tt.open("POST","".concat(F.a,"/api/attachments.json")),tt.send(mt)}var We=f("giR+"),je=f("fyUT"),lt=f("7Kak"),Ke=f("9yH6"),Te=Ke.a.Group,Qe={margin:"0 8px"},dt=function(De){var At=De.callback,mt=De.onCancel;function tt(Ut){At(Ut)}return A.a.createElement(ye.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:tt},A.a.createElement("div",{className:"flex-container"},A.a.createElement("span",{style:Qe},"\u5355\u5143\u683C\u6570\uFF1A"),A.a.createElement("span",{style:Qe},"\u884C\u6570"),A.a.createElement(ye.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},A.a.createElement(je.a,null)),A.a.createElement("span",{style:Qe},"\u5217\u6570"),A.a.createElement(ye.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},A.a.createElement(je.a,null))),A.a.createElement("div",{className:"flex-container",style:{marginTop:12}},A.a.createElement("span",{style:Qe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),A.a.createElement(ye.a.Item,{name:"align"},A.a.createElement(Te,null,A.a.createElement(Ke.a,{value:"default"},A.a.createElement("i",{className:"fa fa-align-justify"})),A.a.createElement(Ke.a,{value:"left"},A.a.createElement("i",{className:"fa fa-align-left"})),A.a.createElement(Ke.a,{value:"center"},A.a.createElement("i",{className:"fa fa-align-center"})),A.a.createElement(Ke.a,{value:"right"},A.a.createElement("i",{className:"fa fa-align-right"}))))),A.a.createElement("div",{className:"flex-container flex-end"},A.a.createElement(Q.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),A.a.createElement(Q.a,{type:"ghost",onClick:mt},"\u53D6\u6D88")))},ut=f("ErOA"),et=f("7Cbv"),Je="link",ft="upload-image",st="code-block",ot="add-table",Ee="------------",gt={default:Ee,left:":".concat(Ee),center:":".concat(Ee,":"),right:"".concat(Ee,":")},rt=f("9VGf"),be,Ie;function V(){}var _=0,G=1e4,y="\u2581",C=`
|
|
**\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 w(De){return/^\d+$/.test(De)?"".concat(De,"px"):De}var T=navigator.platform.toUpperCase().indexOf("MAC")>=0,ie=T?"Cmd":"Ctrl",fe=["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"],Be=(be={},Object(k.a)(be,ie+"-B","bold"),Object(k.a)(be,ie+"-I","italic"),be),bt=(Ie={},Object(k.a)(Ie,Je,"\u6DFB\u52A0\u94FE\u63A5"),Object(k.a)(Ie,st,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(k.a)(Ie,ft,"\u6DFB\u52A0\u6587\u4EF6"),Object(k.a)(Ie,ot,"\u6DFB\u52A0\u8868\u683C"),Ie),Lt=ce.a=function(De){var At=De.defaultValue,mt=At===void 0?"":At,tt=De.onChange,Ut=De.width,Dt=Ut===void 0?"100%":Ut,Nt=De.height,Mt=Nt===void 0?400:Nt,ct=De.miniToolbar,It=ct===void 0?!1:ct,Ot=De.isFocus,Ze=Ot===void 0?!1:Ot,tn=De.watch,un=De.insertTemp,nn=De.mode,Rn=nn===void 0?"markdown":nn,qn=De.id,Ht=qn===void 0?"markdown-editor-id":qn,yt=De.showResizeBar,Fe=yt===void 0?!1:yt,Gt=De.noStorage,Rt=Gt===void 0?!1:Gt,on=De.showNullButton,Bt=on===void 0?!1:on,pn=De.hidetoolBar,Ct=pn===void 0?!1:pn,ri=De.fullScreen,Ue=ri===void 0?!1:ri,St=De.onBlur,oi=De.onCMBeforeChange,di=De.onFullScreen,fi=De.className,Di=fi===void 0?"":fi,c=De.disablePaste,o=c===void 0?!1:c,a=De.placeholder,u=a===void 0?"":a,m=De.values,h=m===void 0?"":m,j=Object(M.useState)(null),Le=Object(S.a)(j,2),se=Le[0],pt=Le[1],Oe=Object(M.useState)(mt),kt=Object(S.a)(Oe,2),Wt=kt[0],Kt=kt[1],Qn=Object(M.useState)(tn),Vn=Object(S.a)(Qn,2),yn=Vn[0],Yn=Vn[1],Vi=Object(M.useState)(Ue),On=Object(S.a)(Vi,2),Pn=On[0],ai=On[1],yi=Object(M.useState)(""),$n=Object(S.a)(yi,2),si=$n[0],Jn=$n[1],fr=Object(M.useState)(0),Ji=Object(S.a)(fr,2),Fn=Ji[0],Wn=Ji[1],Ii=Object(M.useState)(Mt),Oi=Object(S.a)(Ii,2),Pi=Oi[0],hn=Oi[1],Qt=Object(M.useState)(!1),wn=Object(S.a)(Qt,2),Vt=wn[0],Sn=wn[1],$t=Object(M.useRef)(Object(et.a)()),bi=Object(M.useRef)(!1),mn=Object(M.useRef)(),gn=Object(M.useRef)(),li=Object(M.useRef)(),Ci=Object(M.useRef)(),Ei=Object(M.useRef)(),_r=function(){var vt=Object(K.a)(W.a.mark(function Tt(){var xt,jt;return W.a.wrap(function(Xt){for(;;)switch(Xt.prev=Xt.next){case 0:return Xt.next=2,Object(ut.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:$t.current}});case 2:jt=Xt.sent,jt!=null&&(xt=jt.attachments)!==null&&xt!==void 0&&xt.length&&(console.log("cm:",se,gn),jt.attachments.map(function(Ft){Ft.content_type.indexOf("image")>-1?se.replaceSelection(".concat(Ft.content_type,")")):Ft.content_type.indexOf("video")>-1?se.replaceSelection('<video width="100%" controls src="'.concat(L.a.API_SERVER,"/api/attachments/").concat(data.id,'"></video>')):Ft.content_type.indexOf("pdf")>-1?se.replaceSelection('<a href="'.concat(L.a.API_SERVER,"/api/attachments/").concat(Ft.id,"?type=").concat(Ft.content_type,'&disposition=inline" target="_blank">').concat(Ft.name,"</a>")):se.replaceSelection("[".concat(Ft.name,"](").concat(L.a.API_SERVER,"/api/attachments/").concat(Ft.id,"?type=").concat(Ft.content_type,")"))}));case 4:case"end":return Xt.stop()}},Tt)}));return function(){return vt.apply(this,arguments)}}();Object(M.useEffect)(function(){Kt(h),se==null||se.setValue(h)},[h]),Object(M.useEffect)(function(){di==null||di(Pn)},[Pn]),Object(M.useEffect)(function(){if(gn.current){var vt=z.a.fromTextArea(gn.current,{mode:Rn,lineNumbers:!It,lineWrapping:!0,value:mt,autoCloseTags:!0,autoCloseBrackets:!0});Ze&&vt.focus();function Tt(xt,jt){if(o){jt.preventDefault();return}var zt=jt.clipboardData;if(zt){var Xt=zt.types.toString(),Ft=zt.items;if(Xt==="Files"||zt.types.indexOf("Files")>-1){if(jt.preventDefault(),Rn=="stex")return;try{var an,bn=Ft[1];((an=Ft[0])===null||an===void 0?void 0:an.kind)==="file"&&(bn=Ft[0]);var _t=bn.getAsFile(),Ni=_t.name.split(".").pop();Re(_t,function(Yt){if(Yt.id){var kn,qt,Zn;(_t==null||((kn=_t.type)===null||kn===void 0)?void 0:kn.indexOf("image"))>-1?vt.replaceSelection(".concat(Yt.content_type,")")):(_t==null||((qt=_t.type)===null||qt===void 0)?void 0:qt.indexOf("video"))>-1?vt.replaceSelection('<video width="100%" controls src="'.concat(L.a.API_SERVER,"/api/attachments/").concat(Yt.id,'"></video>')):(_t==null||((Zn=_t.type)===null||Zn===void 0)?void 0:Zn.indexOf("pdf"))>-1?vt.replaceSelection('<a href="'.concat(L.a.API_SERVER,"/api/attachments/").concat(Yt.id,"?type=").concat(_t.type,'&disposition=inline" target="_blank">').concat(_t.name,"</a>")):fe.includes(Ni)?vt.replaceSelection('<a href="'.concat(L.a.API_SERVER,"/api/attachments/").concat(Yt.id,'?type=office&disposition=inline" target="_blank">').concat(_t.name,"</a>")):vt.replaceSelection("[".concat(_t.name,"](").concat(L.a.API_SERVER,"/api/attachments/").concat(Yt.id,"?type=").concat(Yt.content_type,")"))}else(Yt==null?void 0:Yt.status)===401&&(document.location.href="/user/login")})}catch(Yt){ae.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return vt.on("paste",Tt),vt.on("dragleave",function(xt,jt){li.current.classList.remove("mouse-hover-md")}),vt.on("dragover",function(xt,jt){li.current.classList.add("mouse-hover-md")}),vt.on("drop",function(xt,jt){li.current.classList.add("mouse-hover-md");var zt;if(zt=jt.dataTransfer.files,zt.length>0){jt.preventDefault(),jt.stopPropagation();for(var Xt=function(bn){var _t=zt[bn],Ni=_t.name.split(".").pop();Re(_t,function(Yt){if(Yt.id){var kn,qt,Zn;(_t==null||((kn=_t.type)===null||kn===void 0)?void 0:kn.indexOf("image"))>-1?vt.replaceSelection(".concat(Yt.content_type,")")):(_t==null||((qt=_t.type)===null||qt===void 0)?void 0:qt.indexOf("video"))>-1?vt.replaceSelection('<video width="100%" controls src="'.concat(L.a.API_SERVER,"/api/attachments/").concat(Yt.id,'"></video>')):(_t==null||((Zn=_t.type)===null||Zn===void 0)?void 0:Zn.indexOf("pdf"))>-1?vt.replaceSelection('<a href="'.concat(L.a.API_SERVER,"/api/attachments/").concat(Yt.id,"?type=").concat(_t.type,'&disposition=inline" target="_blank">').concat(_t.name,"</a>")):fe.includes(Ni)?vt.replaceSelection('<a href="'.concat(L.a.API_SERVER,"/api/attachments/").concat(Yt.id,'?type=office&disposition=inline" target="_blank">').concat(_t.name,"</a>")):vt.replaceSelection("[".concat(_t.name,"](").concat(L.a.API_SERVER,"/api/attachments/").concat(Yt.id,"?type=").concat(Yt.content_type,")"))}else(Yt==null?void 0:Yt.status)===401&&(document.location.href="/user/login")})},Ft=0;Ft<zt.length;Ft++)Xt(Ft)}}),pt(vt),function(){vt.off("paste",Tt)}}},[]);var ei=Object(M.useCallback)(function(){if(li.current)try{}catch(vt){console.log(vt,"---- to set md editor body height")}},[Pi,li,Pn]);Object(M.useEffect)(function(){function vt(){var xt=new P.default(function(jt){var zt=Object(q.a)(jt),Xt;try{for(zt.s();!(Xt=zt.n()).done;){var Ft=Xt.value;(Ft.target.offsetHeight>0||Ft.target.offsetWidth>0)&&(ei(),se.setSize("100%","100%"),se.refresh())}}catch(an){zt.e(an)}finally{zt.f()}});return xt.observe(gn.current.parentElement),xt}if(se){var Tt=vt();return function(){Tt.unobserve(gn.current.parentElement)}}},[se,ei]),Object(M.useEffect)(function(){if(se){for(var vt=[],Tt=function(){var Ft=jt[xt];zt=Object(S.a)(Ft,2);var an=zt[0],bn=zt[1],_t=Object(k.a)({},an,function(){Ki(bn)});vt.push(_t),se.addKeyMap(_t)},xt=0,jt=Object.entries(Be);xt<jt.length;xt++){var zt;Tt()}return mn.current=setInterval(function(){bi.current&&_r()},4e3),function(){clearInterval(mn.current);var Xt=Object(q.a)(vt),Ft;try{for(Xt.s();!(Ft=Xt.n()).done;){var an=Ft.value;se.removeKeyMap(an)}}catch(bn){Xt.e(bn)}finally{Xt.f()}}}},[se]),Object(M.useEffect)(function(){Ue!==Pn&&ai(Ue)},[Ue]),Object(rt.a)(function(){if(!Rt&&Fn>0){var vt=new Date().getTime(),Tt=window.sessionStorage.getItem(Ht);vt>=Fn+G&&(!Tt||Tt!==Wt)&&(window.sessionStorage.setItem(Ht,Wt),Sn(!0))}},G),Object(M.useEffect)(function(){Yn(tn)},[se,tn]),Object(M.useEffect)(function(){se&&(Ze&&se.focus())},[se,Ze]),Object(M.useEffect)(function(){if(yn&&se){var vt=se.getScrollerElement();function Tt(xt){var jt=xt.target;if(Ei.current){var zt=jt.scrollTop/jt.scrollHeight;Ei.current.scrollTop=Ei.current.scrollHeight*zt}}return vt.addEventListener("scroll",Tt),function(){vt.removeEventListener("scroll",Tt)}}},[se,yn]),Object(M.useEffect)(function(){if(se&&oi){function vt(Tt,xt){oi(Tt,xt)}return se.on("beforeChange",vt),function(){se.off("beforeChange",vt)}}},[se,oi]),Object(M.useEffect)(function(){if(se&&St){function vt(){St(se.getValue())}return se.on("blur",vt),function(){se.off("blur",vt)}}},[se,St]),Object(M.useEffect)(function(){if(se){function vt(Tt){var xt=Tt.getValue();Kt(xt),Wn(new Date().getTime()),Tt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),tt&&tt(xt)}return se.on("change",vt),function(){se.off("change",vt)}}},[se,tt]),Object(M.useEffect)(function(){se&&(mt==null?(se.setValue(""),Kt("")):mt!==se.getValue()&&(se.setValue(mt),Kt(mt),se.setCursor(se.lineCount(),0)))},[se,mt]);var Ki=Object(M.useCallback)(function(vt){var Tt=se.getCursor(),xt=se.getSelection(),jt=xt.split(`
|
|
`);switch(vt){case"bold":return se.replaceSelection("**"+xt+"**"),xt===""&&se.setCursor(Tt.line,Tt.ch+2),se.focus();case"italic":return se.replaceSelection("*"+xt+"*"),xt===""&&se.setCursor(Tt.line,Tt.ch+1),se.focus();case"code":return se.replaceSelection("`"+xt+"`"),xt===""&&se.setCursor(Tt.line,Tt.ch+1),se.focus();case"inline-latex":return se.replaceSelection("`$$"+xt+"$$`"),xt===""&&se.setCursor(Tt.line,Tt.ch+3),se.focus();case"latex":return se.replaceSelection("```latex\n"+xt+"\n```"),se.setCursor(Tt.line+1,xt.length+1),se.focus();case"line-break":return se.replaceSelection(`<br/>
|
|
`),se.focus();case"list-ul":return xt===""?se.replaceSelection("- "+xt):se.replaceSelection(jt.map(function(zt){return zt===""?"":"- ".concat(zt)}).join(`
|
|
`)),se.focus();case"list-ol":return xt===""?se.replaceSelection("1. "+xt):se.replaceSelection(jt.map(function(zt,Xt){return zt===""?"":"".concat(Xt+1,". ").concat(zt)}).join(`
|
|
`)),se.focus();case"add-null-ch":return xt===""&&se.setCursor(Tt.line,Tt.ch+1),se.replaceSelection(y),se.focus();case"inster-template-1":return xt===""&&se.setCursor(Tt.line,Tt.ch),se.replaceSelection(C),se.focus();case"eraser":return se.setValue(""),se.focus();case"trigger-watch":return Yn(!yn),se.focus();case"trigger-full-screen":return ai(!Pn),se.focus();case Je:Jn(Je);return;case st:Jn(st);return;case ft:Jn(ft);return;case ot:Jn(ot);return;default:throw new Error}},[se,yn,Pn]),zn=Object(M.useCallback)(function(vt){Jn("");switch(si){case Je:var Tt=vt.title,xt=vt.link;return se.replaceSelection("[".concat(Tt,"](").concat(xt,")")),se.focus();case st:var jt=vt.language,zt=vt.content;return se.replaceSelection(["```"+jt,zt,"```"].join(`
|
|
`)),se.focus();case ft:var Xt=vt.src,Ft=vt.alt,an=vt.name;return Xt.indexOf("type=image")>-1?se.replaceSelection(".concat(Xt,' "').concat(Ft||"",'" )')):Xt.indexOf("type=application/pdf")>-1?se.replaceSelection('<a href="'.concat(Xt,'&disposition=inline" target="_blank">').concat(an,"</a>")):se.replaceSelection('<a href="'.concat(Xt,'" target="_blank">').concat(an,"</a>")),se.focus();case ot:for(var bn=vt.row,_t=vt.col,Ni=vt.align,Yt=`
|
|
`,kn=0;kn<bn;kn++){for(var qt=[],Zn=[],pr=0;pr<_t;pr++)kn===1&&Zn.push(gt[Ni]),qt.push(" ");kn===1&&(Yt+="| ".concat(Zn.join(" | "),` |
|
|
`)),Yt+="| ".concat(qt.join(_t===1?"":" | "),` |
|
|
`)}return se.replaceSelection(Yt+`
|
|
`),se.focus();default:throw new Error}},[se,si]),Xi=Object(M.useMemo)(function(){switch(si){case Je:return A.a.createElement(Ce,{callback:zn,onCancel:pi});case st:return A.a.createElement(xe.b,{callback:zn,onCancel:pi});case ft:return A.a.createElement(it,{callback:zn,onCancel:pi});case ot:return A.a.createElement(dt,{callback:zn,onCancel:pi});default:return null}},[si]);function pi(){Jn("")}Object(M.useEffect)(function(){if(Ci.current){var vt=Ci.current,Tt=!1,xt=0;function jt(Ft){Tt=!0,xt=Ft.pageY}function zt(){Tt=!1}function Xt(Ft){if(Tt){var an=Ft.pageY-xt;an<0&&(an=0),an>300&&(an=300);var bn=Mt+an+"px";hn(bn)}}return vt.addEventListener("mousedown",jt),document.addEventListener("mousemove",Xt),document.addEventListener("mouseup",zt),function(){vt.removeEventListener("mousedown",jt),document.removeEventListener("mousemove",Xt),document.removeEventListener("mouseup",zt)}}},[se,Ci]),Object(M.useEffect)(function(){hn(Mt)},[Mt]);var xi=w(Dt),uo=w(Pi),ho={width:xi,height:uo},Zo=Object(M.useMemo)(function(){if(Fn){var vt=new Date(Fn),Tt=vt.getHours(),xt=vt.getMinutes(),jt=vt.getSeconds();return Tt=Tt<10?"0"+Tt:Tt,xt=xt<10?"0"+xt:xt,jt=jt<10?"0"+jt:jt,"".concat(Tt,":").concat(xt,":").concat(jt)}return 0},[Fn]);function qo(){window.sessionStorage.removeItem(Ht),Sn(!1),Wn(0)}function co(){Sn(!1),Wn(0),se.setValue(window.sessionStorage.getItem(Ht))}function Fr(vt,Tt){var xt=se.getValue();xt=xt.replace(vt,Tt),Kt(xt),se==null||se.setValue(xt)}return A.a.createElement(M.Fragment,null,A.a.createElement("div",{className:"markdown-editor-wrapper",ref:li},A.a.createElement("div",{className:"markdown-editor-container ".concat(Di," ").concat(yn?"on-preview":""," ").concat(It?"mini":""," ").concat(Pn?"full-screen":""),style:ho},A.a.createElement(he,{insertTemp:un,watch:yn,fullScreen:Pn,showNullButton:Bt,onActionCallback:Ki,hidetoolBar:Ct,uuid:$t.current,setOpenPhones:function(){bi.current=!0}}),A.a.createElement("div",{className:"markdown-editor-body"},A.a.createElement("div",{className:"codemirror-container"},A.a.createElement("textarea",{ref:gn,placeholder:u})),yn?A.a.createElement("div",{ref:Ei,className:"preview-container"},Rn==="stex"&&A.a.createElement(Ne,{value:Wt}),Rn!=="stex"&&A.a.createElement(ge.a,{edit:!0,value:Wt,replaces:Fr})):null))),Fe?A.a.createElement("a",{ref:Ci,className:"editor-resize"}):null,A.a.createElement(E.a,null,bt[si]?A.a.createElement(de.a,{centered:!0,title:bt[si],visible:!0,onCancel:pi,footer:null},Xi):null))}},RMFE:function(me,ce){me.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAgJSDQqXNYhgABAh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AQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},SJMd:function(me,ce){/**
|
|
* @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 f,N,de,q=!1,le,ae;window.PR_SHOULD_USE_CONTINUATION=!0;var K,S;(function(){var k=window,R=["break,continue,do,else,for,if,return,while"],W=[R,"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"],M=[W,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],A=[M,"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"],Y=[M,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],z=[M,"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"],P="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",U=[M,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],H="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",Z=[R,"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"],ee=[R,"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"],ke=[R,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],He=[A,z,Y,U,H,Z,ee,ke],ue=/^(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",Ne="kwd",ve="com",pe="typ",re="lit",I="pun",x="pln",ne="tag",X="dec",b="src",L="atn",J="atv",O="nocode",he="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function E(Re){for(var We=0,je=!1,lt=!1,Ke=0,Te=Re.length;Ke<Te;++Ke){var Qe=Re[Ke];if(Qe.ignoreCase)lt=!0;else if(/[a-z]/i.test(Qe.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){je=!0,lt=!1;break}}var dt={b:8,t:9,n:10,v:11,f:12,r:13};function ut(ot){var Ee=ot.charCodeAt(0);if(Ee!==92)return Ee;var gt=ot.charAt(1);return Ee=dt[gt],Ee||("0"<=gt&><="7"?parseInt(ot.substring(1),8):gt==="u"||gt==="x"?parseInt(ot.substring(2),16):ot.charCodeAt(1))}function et(ot){if(ot<32)return(ot<16?"\\x0":"\\x")+ot.toString(16);var Ee=String.fromCharCode(ot);return Ee==="\\"||Ee==="-"||Ee==="]"||Ee==="^"?"\\"+Ee:Ee}function Je(ot){var Ee=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")),gt=[],rt=Ee[0]==="^",be=["["];rt&&be.push("^");for(var Ie=rt?1:0,V=Ee.length;Ie<V;++Ie){var _=Ee[Ie];if(/\\[bdsw]/i.test(_))be.push(_);else{var G=ut(_),y;Ie+2<V&&Ee[Ie+1]==="-"?(y=ut(Ee[Ie+2]),Ie+=2):y=G,gt.push([G,y]),y<65||G>122||(y<65||G>90||gt.push([Math.max(65,G)|32,Math.min(y,90)|32]),y<97||G>122||gt.push([Math.max(97,G)&~32,Math.min(y,122)&~32]))}}gt.sort(function(ie,fe){return ie[0]-fe[0]||fe[1]-ie[1]});for(var C=[],w=[],Ie=0;Ie<gt.length;++Ie){var T=gt[Ie];T[0]<=w[1]+1?w[1]=Math.max(w[1],T[1]):C.push(w=T)}for(var Ie=0;Ie<C.length;++Ie){var T=C[Ie];be.push(et(T[0])),T[1]>T[0]&&(T[1]+1>T[0]&&be.push("-"),be.push(et(T[1])))}return be.push("]"),be.join("")}function ft(ot){for(var Ee=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")),gt=Ee.length,rt=[],be=0,Ie=0;be<gt;++be){var V=Ee[be];if(V==="(")++Ie;else if(V.charAt(0)==="\\"){var _=+V.substring(1);_&&(_<=Ie?rt[_]=-1:Ee[be]=et(_))}}for(var be=1;be<rt.length;++be)rt[be]===-1&&(rt[be]=++We);for(var be=0,Ie=0;be<gt;++be){var V=Ee[be];if(V==="(")++Ie,rt[Ie]||(Ee[be]="(?:");else if(V.charAt(0)==="\\"){var _=+V.substring(1);_&&_<=Ie&&(Ee[be]="\\"+rt[_])}}for(var be=0;be<gt;++be)Ee[be]==="^"&&Ee[be+1]!=="^"&&(Ee[be]="");if(ot.ignoreCase&&je)for(var be=0;be<gt;++be){var V=Ee[be],G=V.charAt(0);V.length>=2&&G==="["?Ee[be]=Je(V):G!=="\\"&&(Ee[be]=V.replace(/[a-zA-Z]/g,function(w){var T=w.charCodeAt(0);return"["+String.fromCharCode(T&~32,T|32)+"]"}))}return Ee.join("")}for(var st=[],Ke=0,Te=Re.length;Ke<Te;++Ke){var Qe=Re[Ke];if(Qe.global||Qe.multiline)throw new Error(""+Qe);st.push("(?:"+ft(Qe)+")")}return new RegExp(st.join("|"),lt?"gi":"g")}function g(Re,We){var je=/(?:^|\s)nocode(?:\s|$)/,lt=[],Ke=0,Te=[],Qe=0;function dt(ut){var et=ut.nodeType;if(et==1){if(je.test(ut.className))return;for(var Je=ut.firstChild;Je;Je=Je.nextSibling)dt(Je);var ft=ut.nodeName.toLowerCase();(ft==="br"||ft==="li")&&(lt[Qe]=`
|
|
`,Te[Qe<<1]=Ke++,Te[Qe++<<1|1]=ut)}else if(et==3||et==4){var st=ut.nodeValue;st.length&&(We?st=st.replace(/\r\n?/g,`
|
|
`):st=st.replace(/[ \t\r\n]+/g," "),lt[Qe]=st,Te[Qe<<1]=Ke,Ke+=st.length,Te[Qe++<<1|1]=ut)}}return dt(Re),{sourceCode:lt.join("").replace(/\n$/,""),spans:Te}}function Q(Re,We,je,lt,Ke){if(!je)return;var Te={sourceNode:Re,pre:1,langExtension:null,numberLines:null,sourceCode:je,spans:null,basePos:We,decorations:null};lt(Te),Ke.push.apply(Ke,Te.decorations)}var we=/\S/;function ye(Re){for(var We=void 0,je=Re.firstChild;je;je=je.nextSibling){var lt=je.nodeType;We=lt===1?We?Re:je:lt===3&&we.test(je.nodeValue)?Re:We}return We===Re?void 0:We}function Ge(Re,We){var je={},lt;(function(){for(var Qe=Re.concat(We),dt=[],ut={},et=0,Je=Qe.length;et<Je;++et){var ft=Qe[et],st=ft[3];if(st)for(var ot=st.length;--ot>=0;)je[st.charAt(ot)]=ft;var Ee=ft[1],gt=""+Ee;ut.hasOwnProperty(gt)||(dt.push(Ee),ut[gt]=null)}dt.push(/[\0-\uffff]/),lt=E(dt)})();var Ke=We.length,Te=function(Qe){for(var dt=Qe.sourceCode,ut=Qe.basePos,et=Qe.sourceNode,Je=[ut,x],ft=0,st=dt.match(lt)||[],ot={},Ee=0,gt=st.length;Ee<gt;++Ee){var rt=st[Ee],be=ot[rt],Ie=void 0,V;if(typeof be=="string")V=!1;else{var _=je[rt.charAt(0)];if(_)Ie=rt.match(_[1]),be=_[0];else{for(var G=0;G<Ke;++G)if(_=We[G],Ie=rt.match(_[1]),Ie){be=_[0];break}Ie||(be=x)}V=be.length>=5&&be.substring(0,5)==="lang-",V&&!(Ie&&typeof Ie[1]=="string")&&(V=!1,be=b),V||(ot[rt]=be)}var y=ft;if(ft+=rt.length,!V)Je.push(ut+y,be);else{var C=Ie[1],w=rt.indexOf(C),T=w+C.length;Ie[2]&&(T=rt.length-Ie[2].length,w=T-C.length);var ie=be.substring(5);Q(et,ut+y,rt.substring(0,w),Te,Je),Q(et,ut+y+w,C,F(ie,C),Je),Q(et,ut+y+T,rt.substring(T),Te,Je)}}Qe.decorations=Je};return Te}function Ve(Re){var We=[],je=[];Re.tripleQuotedStrings?We.push([ge,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Re.multiLineStrings?We.push([ge,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):We.push([ge,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Re.verbatimStrings&&je.push([ge,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var lt=Re.hashComments;lt&&(Re.cStyleComments?(lt>1?We.push([ve,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):We.push([ve,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),je.push([ge,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):We.push([ve,/^#[^\r\n]*/,null,"#"])),Re.cStyleComments&&(je.push([ve,/^\/\/[^\r\n]*/,null]),je.push([ve,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Ke=Re.regexLiterals;if(Ke){var Te=Ke>1?"":`
|
|
\r`,Qe=Te?".":"[\\S\\s]",dt="/(?=[^/*"+Te+"])(?:[^/\\x5B\\x5C"+Te+"]|\\x5C"+Qe+"|\\x5B(?:[^\\x5C\\x5D"+Te+"]|\\x5C"+Qe+")*(?:\\x5D|$))+/";je.push(["lang-regex",RegExp("^"+he+"("+dt+")")])}var ut=Re.types;ut&&je.push([pe,ut]);var et=(""+Re.keywords).replace(/^ | $/g,"");et.length&&je.push([Ne,new RegExp("^(?:"+et.replace(/[\s,]+/g,"|")+")\\b"),null]),We.push([x,/^\s+/,null,` \r
|
|
\xA0`]);var Je="^.[^\\s\\w.$@'\"`/\\\\]*";return Re.regexLiterals&&(Je+="(?!s*/)"),je.push([re,/^@[a-z_$][a-z_$@0-9]*/i,null],[pe,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[x,/^[a-z_$][a-z_$@0-9]*/i,null],[re,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[x,/^\\[\s\S]?/,null],[I,new RegExp(Je),null]),Ge(We,je)}var Me=Ve({keywords:He,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Ce(Re,We,je){for(var lt=/(?:^|\s)nocode(?:\s|$)/,Ke=/\r\n?|\n/,Te=Re.ownerDocument,Qe=Te.createElement("li");Re.firstChild;)Qe.appendChild(Re.firstChild);var dt=[Qe];function ut(Ee){var gt=Ee.nodeType;if(gt==1&&!lt.test(Ee.className))if(Ee.nodeName==="br")et(Ee),Ee.parentNode&&Ee.parentNode.removeChild(Ee);else for(var rt=Ee.firstChild;rt;rt=rt.nextSibling)ut(rt);else if((gt==3||gt==4)&&je){var be=Ee.nodeValue,Ie=be.match(Ke);if(Ie){var V=be.substring(0,Ie.index);Ee.nodeValue=V;var _=be.substring(Ie.index+Ie[0].length);if(_){var G=Ee.parentNode;G.insertBefore(Te.createTextNode(_),Ee.nextSibling)}et(Ee),V||Ee.parentNode.removeChild(Ee)}}}function et(Ee){for(;!Ee.nextSibling;)if(Ee=Ee.parentNode,!Ee)return;function gt(Ie,V){var _=V?Ie.cloneNode(!1):Ie,G=Ie.parentNode;if(G){var y=gt(G,1),C=Ie.nextSibling;y.appendChild(_);for(var w=C;w;w=C)C=w.nextSibling,y.appendChild(w)}return _}for(var rt=gt(Ee.nextSibling,0),be;(be=rt.parentNode)&&be.nodeType===1;)rt=be;dt.push(rt)}for(var Je=0;Je<dt.length;++Je)ut(dt[Je]);We===(We|0)&&dt[0].setAttribute("value",We);var ft=Te.createElement("ol");ft.className="linenums";for(var st=Math.max(0,We-1|0)||0,Je=0,ot=dt.length;Je<ot;++Je)Qe=dt[Je],Qe.className="L"+(Je+st)%10,Qe.firstChild||Qe.appendChild(Te.createTextNode("\xA0")),ft.appendChild(Qe);Re.appendChild(ft)}function xe(Re){var We=/\bMSIE\s(\d+)/.exec(navigator.userAgent);We=We&&+We[1]<=8;var je=/\n/g,lt=Re.sourceCode,Ke=lt.length,Te=0,Qe=Re.spans,dt=Qe.length,ut=0,et=Re.decorations,Je=et.length,ft=0;et[Je]=Ke;var st,ot;for(ot=st=0;ot<Je;)et[ot]!==et[ot+2]?(et[st++]=et[ot++],et[st++]=et[ot++]):ot+=2;for(Je=st,ot=st=0;ot<Je;){for(var Ee=et[ot],gt=et[ot+1],rt=ot+2;rt+2<=Je&&et[rt+1]===gt;)rt+=2;et[st++]=Ee,et[st++]=gt,ot=rt}Je=et.length=st;var be=Re.sourceNode,Ie="";be&&(Ie=be.style.display,be.style.display="none");try{for(var V=null;ut<dt;){var _=Qe[ut],G=Qe[ut+2]||Ke,y=et[ft+2]||Ke,rt=Math.min(G,y),C=Qe[ut+1],w;if(C.nodeType!==1&&(w=lt.substring(Te,rt))){We&&(w=w.replace(je,"\r")),C.nodeValue=w;var T=C.ownerDocument,ie=T.createElement("span");ie.className=et[ft+1];var fe=C.parentNode;fe.replaceChild(ie,C),ie.appendChild(C),Te<G&&(Qe[ut+1]=C=T.createTextNode(lt.substring(rt,G)),fe.insertBefore(C,ie.nextSibling))}Te=rt,Te>=G&&(ut+=2),Te>=y&&(ft+=2)}}finally{be&&(be.style.display=Ie)}}var Se={};function $(Re,We){for(var je=We.length;--je>=0;){var lt=We[je];Se.hasOwnProperty(lt)?k.console&&console.warn("cannot override language handler %s",lt):Se[lt]=Re}}function F(Re,We){return Re&&Se.hasOwnProperty(Re)||(Re=/^\s*</.test(We)?"default-markup":"default-code"),Se[Re]}$(Me,["default-code"]),$(Ge([],[[x,/^[^<?]+/],[X,/^<!\w[^>]*(?:>|$)/],[ve,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[I,/^(?:<[%?]|[%?]>)/],["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"]),$(Ge([[x,/^[\s]+/,null,` \r
|
|
`],[J,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[ne,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[L,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[I,/^[=<>\/]+/],["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"]),$(Ge([],[[J,/^[\s\S]+/]]),["uq.val"]),$(Ve({keywords:A,hashComments:!0,cStyleComments:!0,types:ue}),["c","cc","cpp","cxx","cyc","m"]),$(Ve({keywords:"null,true,false"}),["json"]),$(Ve({keywords:z,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:ue}),["cs"]),$(Ve({keywords:Y,cStyleComments:!0}),["java"]),$(Ve({keywords:ke,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),$(Ve({keywords:Z,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),$(Ve({keywords:H,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),$(Ve({keywords:ee,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),$(Ve({keywords:U,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),$(Ve({keywords:P,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),$(Ge([],[[ge,/^[\s\S]+/]]),["regex"]);function _e(Re){var We=Re.langExtension;try{var je=g(Re.sourceNode,Re.pre),lt=je.sourceCode;Re.sourceCode=lt,Re.spans=je.spans,Re.basePos=0,F(We,lt)(Re),xe(Re)}catch(Ke){k.console&&console.log(Ke&&Ke.stack||Ke)}}function nt(Re,We,je){var lt=je||!1,Ke=We||null,Te=document.createElement("div");Te.innerHTML="<pre>"+Re+"</pre>",Te=Te.firstChild,lt&&Ce(Te,lt,!0);var Qe={langExtension:Ke,numberLines:lt,sourceNode:Te,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return _e(Qe),Te.innerHTML}function qe(Re,We){var je=We||document.body,lt=je.ownerDocument||document;function Ke(_){return je.getElementsByTagName(_)}for(var Te=[Ke("pre"),Ke("code"),Ke("xmp")],Qe=[],dt=0;dt<Te.length;++dt)for(var ut=0,et=Te[dt].length;ut<et;++ut)Qe.push(Te[dt][ut]);Te=null;var Je=Date;Je.now||(Je={now:function(){return+new Date}});var ft=0,st=/\blang(?:uage)?-([\w.]+)(?!\S)/,ot=/\bprettyprint\b/,Ee=/\bprettyprinted\b/,gt=/pre|xmp/i,rt=/^code$/i,be=/^(?:pre|code|xmp)$/i,Ie={};function V(){for(var _=k.PR_SHOULD_USE_CONTINUATION?Je.now()+250:Infinity;ft<Qe.length&&Je.now()<_;ft++){for(var G=Qe[ft],y=Ie,C=G;C=C.previousSibling;){var w=C.nodeType,T=(w===7||w===8)&&C.nodeValue;if(T?!/^\??prettify\b/.test(T):w!==3||/\S/.test(C.nodeValue))break;if(T){y={},T.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Mt,ct,It){y[ct]=It});break}}var ie=G.className;if((y!==Ie||ot.test(ie))&&!Ee.test(ie)){for(var fe=!1,Be=G.parentNode;Be;Be=Be.parentNode){var bt=Be.tagName;if(be.test(bt)&&Be.className&&ot.test(Be.className)){fe=!0;break}}if(!fe){G.className+=" prettyprinted";var Lt=y.lang;if(!Lt){Lt=ie.match(st);var De;!Lt&&(De=ye(G))&&rt.test(De.tagName)&&(Lt=De.className.match(st)),Lt&&(Lt=Lt[1])}var At;if(gt.test(G.tagName))At=1;else{var mt=G.currentStyle,tt=lt.defaultView,Ut=mt?mt.whiteSpace:tt&&tt.getComputedStyle?tt.getComputedStyle(G,null).getPropertyValue("white-space"):0;At=Ut&&Ut.substring(0,3)==="pre"}var Dt=y.linenums;(Dt=Dt==="true"||+Dt)||(Dt=ie.match(/\blinenums\b(?::(\d+))?/),Dt=Dt?Dt[1]&&Dt[1].length?+Dt[1]:!0:!1),Dt&&Ce(G,Dt,At);var Nt={langExtension:Lt,sourceNode:G,numberLines:Dt,pre:At,sourceCode:null,basePos:null,spans:null,decorations:null};_e(Nt)}}}ft<Qe.length?k.setTimeout(V,250):typeof Re=="function"&&Re()}V()}var it=k.PR={createSimpleLexer:Ge,registerLangHandler:$,sourceDecorator:Ve,PR_ATTRIB_NAME:L,PR_ATTRIB_VALUE:J,PR_COMMENT:ve,PR_DECLARATION:X,PR_KEYWORD:Ne,PR_LITERAL:re,PR_NOCODE:O,PR_PLAIN:x,PR_PUNCTUATION:I,PR_SOURCE:b,PR_STRING:ge,PR_TAG:ne,PR_TYPE:pe,prettyPrintOne:q?k.prettyPrintOne=nt:K=nt,prettyPrint:S=q?k.prettyPrint=qe:S=qe},$e=k.define;typeof $e=="function"&&$e.amd&&$e("google-code-prettify",[],function(){return it})})()},SMhR:function(me,ce){me.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiB/s7a5AWTTNhsgN9pmA2TTNp8MyI22uQHkv7TNDSCbttkAudE2bwJyo22eBGTTNhsgf7O2ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTD9c2nwzIk9pmA2TTNjeAPAnIpm1uANm0zQbIDSBPAXIDyKZtPhmQG22zAfLN2uaTAflUJ5IkaZxIkqRxIk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cSJJksaJJEkaJ5IkaZxIkqRxIkmSBv2VFwH5m7XNk4Bs2uZJQJ7UNjeA3GibTwXkRttsgNxomw2QG22zAXKjbW4AeVLbbIDcaJsNkCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},TGq3:function(me,ce,f){me.exports=f.p+"static/lockclose.365036e8.svg"},"VrN/":function(me,ce,f){(function(N,de){me.exports=de()})(this,function(){"use strict";var N=navigator.userAgent,de=navigator.platform,q=/gecko\/\d/i.test(N),le=/MSIE \d/.test(N),ae=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(N),K=/Edge\/(\d+)/.exec(N),S=le||ae||K,k=S&&(le?document.documentMode||6:+(K||ae)[1]),R=!K&&/WebKit\//.test(N),W=R&&/Qt\/\d+\.\d+/.test(N),M=!K&&/Chrome\//.test(N),A=/Opera\//.test(N),Y=/Apple Computer/.test(navigator.vendor),z=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(N),P=/PhantomJS/.test(N),U=!K&&/AppleWebKit/.test(N)&&/Mobile\/\w+/.test(N),H=/Android/.test(N),Z=U||H||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(N),ee=U||/Mac/.test(de),ke=/\bCrOS\b/.test(N),He=/win/i.test(de),ue=A&&N.match(/Version\/(\d*\.\d*)/);ue&&(ue=Number(ue[1])),ue&&ue>=15&&(A=!1,R=!0);var ge=ee&&(W||A&&(ue==null||ue<12.11)),Ne=q||S&&k>=9;function ve(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var pe=function(e,t){var i=e.className,n=ve(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 re(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function I(e,t){return re(e).appendChild(t)}function x(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 ne(e,t,i,n){var r=x(e,t,i,n);return r.setAttribute("role","presentation"),r}var X;document.createRange?X=function(e,t,i,n){var r=document.createRange();return r.setEnd(n||e,i),r.setStart(e,t),r}:X=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 b(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 L(){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 J(e,t){var i=e.className;ve(t).test(i)||(e.className+=(i?" ":"")+t)}function O(e,t){for(var i=e.split(" "),n=0;n<i.length;n++)i[n]&&!ve(i[n]).test(t)&&(t+=" "+i[n]);return t}var he=function(e){e.select()};U?he=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:S&&(he=function(e){try{e.select()}catch(t){}});function E(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function g(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 Q(e,t,i,n,r){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var s=n||0,l=r||0;;){var d=e.indexOf(" ",s);if(d<0||d>=t)return l+(t-s);l+=d-s,l+=i-l%i,s=d+1}}var we=function(){this.id=null,this.f=null,this.time=0,this.handler=E(this.onTimeout,this)};we.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},we.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 ye(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var Ge=50,Ve={toString:function(){return"CodeMirror.Pass"}},Me={scroll:!1},Ce={origin:"*mouse"},xe={origin:"+move"};function Se(e,t,i){for(var n=0,r=0;;){var s=e.indexOf(" ",n);s==-1&&(s=e.length);var l=s-n;if(s==e.length||r+l>=t)return n+Math.min(l,t-r);if(r+=s-n,r+=i-r%i,n=s+1,r>=t)return n}}var $=[""];function F(e){for(;$.length<=e;)$.push(_e($)+" ");return $[e]}function _e(e){return e[e.length-1]}function nt(e,t){for(var i=[],n=0;n<e.length;n++)i[n]=t(e[n],n);return i}function qe(e,t,i){for(var n=0,r=i(t);n<e.length&&i(e[n])<=r;)n++;e.splice(n,0,t)}function it(){}function $e(e,t){var i;return Object.create?i=Object.create(e):(it.prototype=e,i=new it),t&&g(t,i),i}var Re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function We(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Re.test(e))}function je(e,t){return t?t.source.indexOf("\\w")>-1&&We(e)?!0:t.test(e):We(e)}function lt(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Ke=/[\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 Te(e){return e.charCodeAt(0)>=768&&Ke.test(e)}function Qe(e,t,i){for(;(i<0?t>0:t<e.length)&&Te(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 ut(e,t,i,n){if(!e)return n(t,i,"ltr",0);for(var r=!1,s=0;s<e.length;++s){var l=e[s];(l.from<i&&l.to>t||t==i&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,i),l.level==1?"rtl":"ltr",s),r=!0)}r||n(t,i,"ltr")}var et=null;function Je(e,t,i){var n;et=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:et=r),s.from==t&&(s.from!=s.to&&i!="before"?n=r:et=r)}return n!=null?n:et}var ft=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(v){return v<=247?e.charAt(v):1424<=v&&v<=1524?"R":1536<=v&&v<=1785?t.charAt(v-1536):1774<=v&&v<=2220?"r":8192<=v&&v<=8203?"w":v==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,s=/[LRr]/,l=/[Lb1n]/,d=/[1n]/;function p(v,D,B){this.level=v,this.from=D,this.to=B}return function(v,D){var B=D=="ltr"?"L":"R";if(v.length==0||D=="ltr"&&!n.test(v))return!1;for(var oe=v.length,te=[],Ae=0;Ae<oe;++Ae)te.push(i(v.charCodeAt(Ae)));for(var Pe=0,ze=B;Pe<oe;++Pe){var Xe=te[Pe];Xe=="m"?te[Pe]=ze:ze=Xe}for(var at=0,Ye=B;at<oe;++at){var ht=te[at];ht=="1"&&Ye=="r"?te[at]="n":s.test(ht)&&(Ye=ht,ht=="r"&&(te[at]="R"))}for(var wt=1,Et=te[0];wt<oe-1;++wt){var Pt=te[wt];Pt=="+"&&Et=="1"&&te[wt+1]=="1"?te[wt]="1":Pt==","&&Et==te[wt+1]&&(Et=="1"||Et=="n")&&(te[wt]=Et),Et=Pt}for(var en=0;en<oe;++en){var xn=te[en];if(xn==",")te[en]="N";else if(xn=="%"){var sn=void 0;for(sn=en+1;sn<oe&&te[sn]=="%";++sn);for(var Gn=en&&te[en-1]=="!"||sn<oe&&te[sn]=="1"?"1":"N",Un=en;Un<sn;++Un)te[Un]=Gn;en=sn-1}}for(var dn=0,jn=B;dn<oe;++dn){var Mn=te[dn];jn=="L"&&Mn=="1"?te[dn]="L":s.test(Mn)&&(jn=Mn)}for(var vn=0;vn<oe;++vn)if(r.test(te[vn])){var fn=void 0;for(fn=vn+1;fn<oe&&r.test(te[fn]);++fn);for(var ln=(vn?te[vn-1]:B)=="L",_n=(fn<oe?te[fn]:B)=="L",cr=ln==_n?ln?"L":"R":B,Li=vn;Li<fn;++Li)te[Li]=cr;vn=fn-1}for(var Ln=[],ci,An=0;An<oe;)if(l.test(te[An])){var Xo=An;for(++An;An<oe&&l.test(te[An]);++An);Ln.push(new p(0,Xo,An))}else{var vi=An,Gi=Ln.length,Qi=D=="rtl"?1:0;for(++An;An<oe&&te[An]!="L";++An);for(var In=vi;In<An;)if(d.test(te[In])){vi<In&&(Ln.splice(Gi,0,new p(1,vi,In)),Gi+=Qi);var dr=In;for(++In;In<An&&d.test(te[In]);++In);Ln.splice(Gi,0,new p(2,dr,In)),Gi+=Qi,vi=In}else++In;vi<An&&Ln.splice(Gi,0,new p(1,vi,An))}return D=="ltr"&&(Ln[0].level==1&&(ci=v.match(/^\s+/))&&(Ln[0].from=ci[0].length,Ln.unshift(new p(0,0,ci[0].length))),_e(Ln).level==1&&(ci=v.match(/\s+$/))&&(_e(Ln).to-=ci[0].length,Ln.push(new p(0,oe-ci[0].length,oe)))),D=="rtl"?Ln.reverse():Ln}}();function st(e,t){var i=e.order;return i==null&&(i=e.order=ft(e.text,t)),i}var ot=[],Ee=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 gt(e,t){return e._handlers&&e._handlers[t]||ot}function rt(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=ye(r,i);s>-1&&(n[t]=r.slice(0,s).concat(r.slice(s+1)))}}}function be(e,t){var i=gt(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 Ie(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),be(e,i||t.type,e,t),w(t)||t.codemirrorIgnore}function V(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)ye(i,t[n])==-1&&i.push(t[n])}function _(e,t){return gt(e,t).length>0}function G(e){e.prototype.on=function(t,i){Ee(this,t,i)},e.prototype.off=function(t,i){rt(this,t,i)}}function y(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function C(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function w(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function T(e){y(e),C(e)}function ie(e){return e.target||e.srcElement}function fe(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),ee&&e.ctrlKey&&t==1&&(t=3),t}var Be=function(){if(S&&k<9)return!1;var e=x("div");return"draggable"in e||"dragDrop"in e}(),bt;function Lt(e){if(bt==null){var t=x("span","\u200B");I(e,x("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(bt=t.offsetWidth<=1&&t.offsetHeight>2&&!(S&&k<8))}var i=bt?x("span","\u200B"):x("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var De;function At(e){if(De!=null)return De;var t=I(e,document.createTextNode("A\u062EA")),i=X(t,0,1).getBoundingClientRect(),n=X(t,1,2).getBoundingClientRect();return re(e),!i||i.left==i.right?!1:De=n.right-i.right<3}var mt=`
|
|
|
|
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),l=s.indexOf("\r");l!=-1?(i.push(s.slice(0,l)),t+=l+1):(i.push(s),t=r+1)}return i}:function(e){return e.split(/\r\n?|\n/)},tt=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},Ut=function(){var e=x("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Dt=null;function Nt(e){if(Dt!=null)return Dt;var t=I(e,x("span","x")),i=t.getBoundingClientRect(),n=X(t,0,1).getBoundingClientRect();return Dt=Math.abs(i.left-n.left)>1}var Mt={},ct={};function It(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Mt[e]=t}function Ot(e,t){ct[e]=t}function Ze(e){if(typeof e=="string"&&ct.hasOwnProperty(e))e=ct[e];else if(e&&typeof e.name=="string"&&ct.hasOwnProperty(e.name)){var t=ct[e.name];typeof t=="string"&&(t={name:t}),e=$e(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ze("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ze("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function tn(e,t){t=Ze(t);var i=Mt[t.name];if(!i)return tn(e,"text/plain");var n=i(e,t);if(un.hasOwnProperty(t.name)){var r=un[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 l in t.modeProps)n[l]=t.modeProps[l];return n}var un={};function nn(e,t){var i=un.hasOwnProperty(e)?un[e]:un[e]={};g(t,i)}function Rn(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 qn(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 Ht(e,t,i){return e.startState?e.startState(t,i):!0}var yt=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};yt.prototype.eol=function(){return this.pos>=this.string.length},yt.prototype.sol=function(){return this.pos==this.lineStart},yt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},yt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},yt.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},yt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},yt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},yt.prototype.skipToEnd=function(){this.pos=this.string.length},yt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},yt.prototype.backUp=function(e){this.pos-=e},yt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Q(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Q(this.string,this.lineStart,this.tabSize):0)},yt.prototype.indentation=function(){return Q(this.string,null,this.tabSize)-(this.lineStart?Q(this.string,this.lineStart,this.tabSize):0)},yt.prototype.match=function(e,t,i){if(typeof e=="string"){var n=function(l){return i?l.toLowerCase():l},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)}},yt.prototype.current=function(){return this.string.slice(this.start,this.pos)},yt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},yt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},yt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Fe(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 Gt(e,t,i){var n=[],r=t.line;return e.iter(t.line,i.line+1,function(s){var l=s.text;r==i.line&&(l=l.slice(0,i.ch)),r==t.line&&(l=l.slice(t.ch)),n.push(l),++r}),n}function Rt(e,t,i){var n=[];return e.iter(t,i,function(r){n.push(r.text)}),n}function on(e,t){var i=t-e.height;if(i)for(var n=e;n;n=n.parent)n.height+=i}function Bt(e){if(e.parent==null)return null;for(var t=e.parent,i=ye(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 pn(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 l=0;l<e.lines.length;++l){var d=e.lines[l],p=d.height;if(t<p)break;t-=p}return i+l}function Ct(e,t){return t>=e.first&&t<e.first+e.size}function ri(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function Ue(e,t,i){if(i===void 0&&(i=null),!(this instanceof Ue))return new Ue(e,t,i);this.line=e,this.ch=t,this.sticky=i}function St(e,t){return e.line-t.line||e.ch-t.ch}function oi(e,t){return e.sticky==t.sticky&&St(e,t)==0}function di(e){return Ue(e.line,e.ch)}function fi(e,t){return St(e,t)<0?t:e}function Di(e,t){return St(e,t)<0?e:t}function c(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 Ue(e.first,0);var i=e.first+e.size-1;return t.line>i?Ue(i,Fe(e,i).text.length):a(t,Fe(e,t.line).text.length)}function a(e,t){var i=e.ch;return i==null||i>t?Ue(e.line,t):i<0?Ue(e.line,0):e}function u(e,t){for(var i=[],n=0;n<t.length;n++)i[n]=o(e,t[n]);return i}var m=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 m?new h(e,Rn(e.mode,t.state),i,t.lookAhead):new h(e,Rn(e.mode,t),i)},h.prototype.save=function(e){var t=e!==!1?Rn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new m(t,this.maxLookAhead):t};function j(e,t,i,n){var r=[e.state.modeGen],s={};Vn(e,t.text,e.doc.mode,i,function(v,D){return r.push(v,D)},s,n);for(var l=i.state,d=function(v){i.baseTokens=r;var D=e.state.overlays[v],B=1,oe=0;i.state=!0,Vn(e,t.text,D.mode,i,function(te,Ae){for(var Pe=B;oe<te;){var ze=r[B];ze>te&&r.splice(B,1,te,r[B+1],ze),B+=2,oe=Math.min(te,ze)}if(!Ae)return;if(D.opaque)r.splice(Pe,B-Pe,te,"overlay "+Ae),B=Pe+2;else for(;Pe<B;Pe+=2){var Xe=r[Pe+1];r[Pe+1]=(Xe?Xe+" ":"")+"overlay "+Ae}},s),i.state=l,i.baseTokens=null,i.baseTokenPos=1},p=0;p<e.state.overlays.length;++p)d(p);return{styles:r,classes:s.bgClass||s.textClass?s:null}}function Le(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=se(e,Bt(t)),r=t.text.length>e.options.maxHighlightLength&&Rn(e.doc.mode,n.state),s=j(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 se(e,t,i){var n=e.doc,r=e.display;if(!n.mode.startState)return new h(n,!0,t);var s=yn(e,t,i),l=s>n.first&&Fe(n,s-1).stateAfter,d=l?h.fromSaved(n,l,s):new h(n,Ht(n.mode),s);return n.iter(s,t,function(p){pt(e,p.text,d);var v=d.line;p.stateAfter=v==t-1||v%5==0||v>=r.viewFrom&&v<r.viewTo?d.save():null,d.nextLine()}),i&&(n.modeFrontier=d.line),d}function pt(e,t,i,n){var r=e.doc.mode,s=new yt(t,e.options.tabSize,i);for(s.start=s.pos=n||0,t==""&&Oe(r,i.state);!s.eol();)kt(r,s,i.state),s.start=s.pos}function Oe(e,t){if(e.blankLine)return e.blankLine(t);if(!e.innerMode)return;var i=qn(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]=qn(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 Wt=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function Kt(e,t,i,n){var r=e.doc,s=r.mode,l;t=o(r,t);var d=Fe(r,t.line),p=se(e,t.line,i),v=new yt(d.text,e.options.tabSize,p),D;for(n&&(D=[]);(n||v.pos<t.ch)&&!v.eol();)v.start=v.pos,l=kt(s,v,p.state),n&&D.push(new Wt(v,l,Rn(r.mode,p.state)));return n?D:new Wt(v,l,p.state)}function Qn(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 Vn(e,t,i,n,r,s,l){var d=i.flattenSpans;d==null&&(d=e.options.flattenSpans);var p=0,v=null,D=new yt(t,e.options.tabSize,n),B,oe=e.options.addModeClass&&[null];for(t==""&&Qn(Oe(i,n.state),s);!D.eol();){if(D.pos>e.options.maxHighlightLength?(d=!1,l&&pt(e,t,n,D.pos),D.pos=t.length,B=null):B=Qn(kt(i,D,n.state,oe),s),oe){var te=oe[0].name;te&&(B="m-"+(B?te+" "+B:te))}if(!d||v!=B){for(;p<D.start;)p=Math.min(D.start,p+5e3),r(p,v);v=B}D.start=D.pos}for(;p<D.pos;){var Ae=Math.min(D.pos,p+5e3);r(Ae,v),p=Ae}}function yn(e,t,i){for(var n,r,s=e.doc,l=i?-1:t-(e.doc.mode.innerMode?1e3:100),d=t;d>l;--d){if(d<=s.first)return s.first;var p=Fe(s,d-1),v=p.stateAfter;if(v&&(!i||d+(v instanceof m?v.lookAhead:0)<=s.modeFrontier))return d;var D=Q(p.text,null,e.options.tabSize);(r==null||n>D)&&(r=d-1,n=D)}return r}function Yn(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=Fe(e,n).stateAfter;if(r&&(!(r instanceof m)||n+r.lookAhead<t)){i=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}var Vi=!1,On=!1;function Pn(){Vi=!0}function ai(){On=!0}function yi(e,t,i){this.marker=e,this.from=t,this.to=i}function $n(e,t){if(e)for(var i=0;i<e.length;++i){var n=e[i];if(n.marker==t)return n}}function si(e,t){for(var i,n=0;n<e.length;++n)e[n]!=t&&(i||(i=[])).push(e[n]);return i}function Jn(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function fr(e,t,i){var n;if(e)for(var r=0;r<e.length;++r){var s=e[r],l=s.marker,d=s.from==null||(l.inclusiveLeft?s.from<=t:s.from<t);if(d||s.from==t&&l.type=="bookmark"&&(!i||!s.marker.insertLeft)){var p=s.to==null||(l.inclusiveRight?s.to>=t:s.to>t);(n||(n=[])).push(new yi(l,s.from,p?null:s.to))}}return n}function Ji(e,t,i){var n;if(e)for(var r=0;r<e.length;++r){var s=e[r],l=s.marker,d=s.to==null||(l.inclusiveRight?s.to>=t:s.to>t);if(d||s.from==t&&l.type=="bookmark"&&(!i||s.marker.insertLeft)){var p=s.from==null||(l.inclusiveLeft?s.from<=t:s.from<t);(n||(n=[])).push(new yi(l,p?null:s.from-t,s.to==null?null:s.to-t))}}return n}function Fn(e,t){if(t.full)return null;var i=Ct(e,t.from.line)&&Fe(e,t.from.line).markedSpans,n=Ct(e,t.to.line)&&Fe(e,t.to.line).markedSpans;if(!i&&!n)return null;var r=t.from.ch,s=t.to.ch,l=St(t.from,t.to)==0,d=fr(i,r,l),p=Ji(n,s,l),v=t.text.length==1,D=_e(t.text).length+(v?r:0);if(d)for(var B=0;B<d.length;++B){var oe=d[B];if(oe.to==null){var te=$n(p,oe.marker);te?v&&(oe.to=te.to==null?null:te.to+D):oe.to=r}}if(p)for(var Ae=0;Ae<p.length;++Ae){var Pe=p[Ae];if(Pe.to!=null&&(Pe.to+=D),Pe.from==null){var ze=$n(d,Pe.marker);ze||(Pe.from=D,v&&(d||(d=[])).push(Pe))}else Pe.from+=D,v&&(d||(d=[])).push(Pe)}d&&(d=Wn(d)),p&&p!=d&&(p=Wn(p));var Xe=[d];if(!v){var at=t.text.length-2,Ye;if(at>0&&d)for(var ht=0;ht<d.length;++ht)d[ht].to==null&&(Ye||(Ye=[])).push(new yi(d[ht].marker,null,null));for(var wt=0;wt<at;++wt)Xe.push(Ye);Xe.push(p)}return Xe}function Wn(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 Ii(e,t,i){var n=null;if(e.iter(t.line,i.line+1,function(te){if(te.markedSpans)for(var Ae=0;Ae<te.markedSpans.length;++Ae){var Pe=te.markedSpans[Ae].marker;Pe.readOnly&&(!n||ye(n,Pe)==-1)&&(n||(n=[])).push(Pe)}}),!n)return null;for(var r=[{from:t,to:i}],s=0;s<n.length;++s)for(var l=n[s],d=l.find(0),p=0;p<r.length;++p){var v=r[p];if(St(v.to,d.from)<0||St(v.from,d.to)>0)continue;var D=[p,1],B=St(v.from,d.from),oe=St(v.to,d.to);(B<0||!l.inclusiveLeft&&!B)&&D.push({from:v.from,to:d.from}),(oe>0||!l.inclusiveRight&&!oe)&&D.push({from:d.to,to:v.to}),r.splice.apply(r,D),p+=D.length-3}return r}function Oi(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 Pi(e,t){if(!t)return;for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}function hn(e){return e.inclusiveLeft?-1:0}function Qt(e){return e.inclusiveRight?1:0}function wn(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var n=e.find(),r=t.find(),s=St(n.from,r.from)||hn(e)-hn(t);if(s)return-s;var l=St(n.to,r.to)||Qt(e)-Qt(t);return l||t.id-e.id}function Vt(e,t){var i=On&&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||wn(n,r.marker)<0)&&(n=r.marker);return n}function Sn(e){return Vt(e,!0)}function $t(e){return Vt(e,!1)}function bi(e,t){var i=On&&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||wn(n,s.marker)<0)&&(n=s.marker)}return n}function mn(e,t,i,n,r){var s=Fe(e,t),l=On&&s.markedSpans;if(l)for(var d=0;d<l.length;++d){var p=l[d];if(!p.marker.collapsed)continue;var v=p.marker.find(0),D=St(v.from,i)||hn(p.marker)-hn(r),B=St(v.to,n)||Qt(p.marker)-Qt(r);if(D>=0&&B<=0||D<=0&&B>=0)continue;if(D<=0&&(p.marker.inclusiveRight&&r.inclusiveLeft?St(v.to,i)>=0:St(v.to,i)>0)||D>=0&&(p.marker.inclusiveRight&&r.inclusiveLeft?St(v.from,n)<=0:St(v.from,n)<0))return!0}}function gn(e){for(var t;t=Sn(e);)e=t.find(-1,!0).line;return e}function li(e){for(var t;t=$t(e);)e=t.find(1,!0).line;return e}function Ci(e){for(var t,i;t=$t(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Ei(e,t){var i=Fe(e,t),n=gn(i);return i==n?t:Bt(n)}function _r(e,t){if(t>e.lastLine())return t;var i=Fe(e,t),n;if(!ei(e,i))return t;for(;n=$t(i);)i=n.find(1,!0).line;return Bt(i)+1}function ei(e,t){var i=On&&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&&Ki(e,t,n))return!0}}function Ki(e,t,i){if(i.to==null){var n=i.marker.find(1,!0);return Ki(e,n.line,$n(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)&&Ki(e,t,r))return!0}function zn(e){e=gn(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 l=0;l<s.children.length;++l){var d=s.children[l];if(d==i)break;t+=d.height}return t}function Xi(e){if(e.height==0)return 0;for(var t=e.text.length,i,n=e;i=Sn(n);){var r=i.find(0,!0);n=r.from.line,t+=r.from.ch-r.to.ch}for(n=e;i=$t(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 pi(e){var t=e.display,i=e.doc;t.maxLine=Fe(i,i.first),t.maxLineLength=Xi(t.maxLine),t.maxLineChanged=!0,i.iter(function(n){var r=Xi(n);r>t.maxLineLength&&(t.maxLineLength=r,t.maxLine=n)})}var xi=function(e,t,i){this.text=e,Pi(this,t),this.height=i?i(this):1};xi.prototype.lineNo=function(){return Bt(this)},G(xi);function uo(e,t,i,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Oi(e),Pi(e,i);var r=n?n(e):1;r!=e.height&&on(e,r)}function ho(e){e.parent=null,Oi(e)}var Zo={},qo={};function co(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?qo:Zo;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Fr(e,t){var i=ne("span",null,null,R?"padding-right: .1px":null),n={pre:ne("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,l=void 0;n.pos=0,n.addToken=Tt,At(e.display.measure)&&(l=st(s,e.doc.direction))&&(n.addToken=jt(n.addToken,l)),n.map=[];var d=t!=e.display.externalMeasured&&Bt(s);Xt(s,n,Le(e,s,d)),s.styleClasses&&(s.styleClasses.bgClass&&(n.bgClass=O(s.styleClasses.bgClass,n.bgClass||"")),s.styleClasses.textClass&&(n.textClass=O(s.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(Lt(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(R){var p=n.content.lastChild;(/\bcm-tab\b/.test(p.className)||p.querySelector&&p.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return be(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=O(n.pre.className,n.textClass||"")),n}function vt(e){var t=x("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Tt(e,t,i,n,r,s,l){if(!t)return;var d=e.splitSpaces?xt(t,e.trailingSpace):t,p=e.cm.state.specialChars,v=!1,D;if(!p.test(t))e.col+=t.length,D=document.createTextNode(d),e.map.push(e.pos,e.pos+t.length,D),S&&k<9&&(v=!0),e.pos+=t.length;else{D=document.createDocumentFragment();for(var B=0;;){p.lastIndex=B;var oe=p.exec(t),te=oe?oe.index-B:t.length-B;if(te){var Ae=document.createTextNode(d.slice(B,B+te));S&&k<9?D.appendChild(x("span",[Ae])):D.appendChild(Ae),e.map.push(e.pos,e.pos+te,Ae),e.col+=te,e.pos+=te}if(!oe)break;B+=te+1;var Pe=void 0;if(oe[0]==" "){var ze=e.cm.options.tabSize,Xe=ze-e.col%ze;Pe=D.appendChild(x("span",F(Xe),"cm-tab")),Pe.setAttribute("role","presentation"),Pe.setAttribute("cm-text"," "),e.col+=Xe}else oe[0]=="\r"||oe[0]==`
|
|
`?(Pe=D.appendChild(x("span",oe[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Pe.setAttribute("cm-text",oe[0]),e.col+=1):(Pe=e.cm.options.specialCharPlaceholder(oe[0]),Pe.setAttribute("cm-text",oe[0]),S&&k<9?D.appendChild(x("span",[Pe])):D.appendChild(Pe),e.col+=1);e.map.push(e.pos,e.pos+1,Pe),e.pos++}}if(e.trailingSpace=d.charCodeAt(t.length-1)==32,i||n||r||v||s||l){var at=i||"";n&&(at+=n),r&&(at+=r);var Ye=x("span",[D],at,s);if(l)for(var ht in l)l.hasOwnProperty(ht)&&ht!="style"&&ht!="class"&&Ye.setAttribute(ht,l[ht]);return e.content.appendChild(Ye)}e.content.appendChild(D)}function xt(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 jt(e,t){return function(i,n,r,s,l,d,p){r=r?r+" cm-force-border":"cm-force-border";for(var v=i.pos,D=v+n.length;;){for(var B=void 0,oe=0;oe<t.length&&!(B=t[oe],B.to>v&&B.from<=v);oe++);if(B.to>=D)return e(i,n,r,s,l,d,p);e(i,n.slice(0,B.to-v),r,s,null,d,p),s=null,n=n.slice(B.to-v),v=B.to}}}function zt(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 Xt(e,t,i){var n=e.markedSpans,r=e.text,s=0;if(!n){for(var l=1;l<i.length;l+=2)t.addToken(t,r.slice(s,s=i[l]),co(i[l+1],t.cm.options));return}for(var d=r.length,p=0,v=1,D="",B,oe,te=0,Ae,Pe,ze,Xe,at;;){if(te==p){Ae=Pe=ze=oe="",at=null,Xe=null,te=Infinity;for(var Ye=[],ht=void 0,wt=0;wt<n.length;++wt){var Et=n[wt],Pt=Et.marker;if(Pt.type=="bookmark"&&Et.from==p&&Pt.widgetNode)Ye.push(Pt);else if(Et.from<=p&&(Et.to==null||Et.to>p||Pt.collapsed&&Et.to==p&&Et.from==p)){if(Et.to!=null&&Et.to!=p&&te>Et.to&&(te=Et.to,Pe=""),Pt.className&&(Ae+=" "+Pt.className),Pt.css&&(oe=(oe?oe+";":"")+Pt.css),Pt.startStyle&&Et.from==p&&(ze+=" "+Pt.startStyle),Pt.endStyle&&Et.to==te&&(ht||(ht=[])).push(Pt.endStyle,Et.to),Pt.title&&((at||(at={})).title=Pt.title),Pt.attributes)for(var en in Pt.attributes)(at||(at={}))[en]=Pt.attributes[en];Pt.collapsed&&(!Xe||wn(Xe.marker,Pt)<0)&&(Xe=Et)}else Et.from>p&&te>Et.from&&(te=Et.from)}if(ht)for(var xn=0;xn<ht.length;xn+=2)ht[xn+1]==te&&(Pe+=" "+ht[xn]);if(!Xe||Xe.from==p)for(var sn=0;sn<Ye.length;++sn)zt(t,0,Ye[sn]);if(Xe&&(Xe.from||0)==p){if(zt(t,(Xe.to==null?d+1:Xe.to)-p,Xe.marker,Xe.from==null),Xe.to==null)return;Xe.to==p&&(Xe=!1)}}if(p>=d)break;for(var Gn=Math.min(d,te);;){if(D){var Un=p+D.length;if(!Xe){var dn=Un>Gn?D.slice(0,Gn-p):D;t.addToken(t,dn,B?B+Ae:Ae,ze,p+dn.length==te?Pe:"",oe,at)}if(Un>=Gn){D=D.slice(Gn-p),p=Gn;break}p=Un,ze=""}D=r.slice(s,s=i[v++]),B=co(i[v++],t.cm.options)}}}function Ft(e,t,i){this.line=t,this.rest=Ci(t),this.size=this.rest?Bt(_e(this.rest))-i+1:1,this.node=this.text=null,this.hidden=ei(e,t)}function an(e,t,i){for(var n=[],r,s=t;s<i;s=r){var l=new Ft(e.doc,Fe(e.doc,s),s);r=s+l.size,n.push(l)}return n}var bn=null;function _t(e){bn?bn.ops.push(e):e.ownsGroup=bn={ops:[e],delayedCallbacks:[]}}function Ni(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 Yt(e,t){var i=e.ownsGroup;if(!i)return;try{Ni(i)}finally{bn=null,t(i)}}var kn=null;function qt(e,t){var i=gt(e,t);if(!i.length)return;var n=Array.prototype.slice.call(arguments,2),r;bn?r=bn.delayedCallbacks:kn?r=kn:(r=kn=[],setTimeout(Zn,0));for(var s=function(d){r.push(function(){return i[d].apply(null,n)})},l=0;l<i.length;++l)s(l)}function Zn(){var e=kn;kn=null;for(var t=0;t<e.length;++t)e[t]()}function pr(e,t,i,n){for(var r=0;r<t.changes.length;r++){var s=t.changes[r];s=="text"?Ps(e,t):s=="gutter"?ea(e,t,i,n):s=="class"?fo(e,t):s=="widget"&&Ns(e,t,n)}t.changes=null}function mr(e){return e.node==e.text&&(e.node=x("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),S&&k<8&&(e.node.style.zIndex=2)),e.node}function Os(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=mr(t);t.background=n.insertBefore(x("div",null,i),n.firstChild),e.display.input.setUneditable(t.background)}}function $o(e,t){var i=e.display.externalMeasured;return i&&i.line==t.line?(e.display.externalMeasured=null,t.measure=i.measure,i.built):Fr(e,t)}function Ps(e,t){var i=t.text.className,n=$o(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,fo(e,t)):i&&(t.text.className=i)}function fo(e,t){Os(e,t),t.line.wrapClass?mr(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 ea(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=mr(t);t.gutterBackground=x("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 l=mr(t),d=t.gutter=x("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(e.display.input.setUneditable(d),l.insertBefore(d,t.text),t.line.gutterClass&&(d.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!s||!s["CodeMirror-linenumbers"])&&(t.lineNumber=d.appendChild(x("div",ri(e.options,i),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),s)for(var p=0;p<e.display.gutterSpecs.length;++p){var v=e.display.gutterSpecs[p].className,D=s.hasOwnProperty(v)&&s[v];D&&d.appendChild(x("div",[D],"CodeMirror-gutter-elt","left: "+n.gutterLeft[v]+"px; width: "+n.gutterWidth[v]+"px"))}}}function Ns(e,t,i){t.alignable&&(t.alignable=null);for(var n=ve("CodeMirror-linewidget"),r=t.node.firstChild,s=void 0;r;r=s)s=r.nextSibling,n.test(r.className)&&t.node.removeChild(r);ta(e,t,i)}function Bs(e,t,i,n){var r=$o(e,t);return t.text=t.node=r.pre,r.bgClass&&(t.bgClass=r.bgClass),r.textClass&&(t.textClass=r.textClass),fo(e,t),ea(e,t,i,n),ta(e,t,n),t.node}function ta(e,t,i){if(na(e,t.line,t,i,!0),t.rest)for(var n=0;n<t.rest.length;n++)na(e,t.rest[n],t,i,!1)}function na(e,t,i,n,r){if(!t.widgets)return;for(var s=mr(i),l=0,d=t.widgets;l<d.length;++l){var p=d[l],v=x("div",[p.node],"CodeMirror-linewidget"+(p.className?" "+p.className:""));p.handleMouseEvents||v.setAttribute("cm-ignore-events","true"),Us(p,v,i,n),e.display.input.setUneditable(v),r&&p.above?s.insertBefore(v,i.gutter||i.text):s.appendChild(v),qt(p,"redraw")}}function Us(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 gr(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!b(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;"),I(t.display.measure,x("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function mi(e,t){for(var i=ie(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 Wr(e){return e.lineSpace.offsetTop}function po(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function ia(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=I(e.measure,x("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 ui(e){return Ge-e.display.nativeBarWidth}function Bi(e){return e.display.scroller.clientWidth-ui(e)-e.display.barWidth}function mo(e){return e.display.scroller.clientHeight-ui(e)-e.display.barHeight}function js(e,t,i){var n=e.options.lineWrapping,r=n&&Bi(e);if(!t.measure.heights||n&&t.measure.width!=r){var s=t.measure.heights=[];if(n){t.measure.width=r;for(var l=t.text.firstChild.getClientRects(),d=0;d<l.length-1;d++){var p=l[d],v=l[d+1];Math.abs(p.bottom-v.bottom)>2&&s.push((p.bottom+v.top)/2-i.top)}}s.push(i.bottom-i.top)}}function ra(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(Bt(e.rest[r])>i)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function _s(e,t){t=gn(t);var i=Bt(t),n=e.display.externalMeasured=new Ft(e.doc,t,i);n.lineN=i;var r=n.built=Fr(e,n);return n.text=r.pre,I(e.display.lineMeasure,r.pre),n}function oa(e,t,i,n){return hi(e,Yi(e,t),i,n)}function go(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[_i(e,t)];var i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size)return i}function Yi(e,t){var i=Bt(t),n=go(e,i);n&&!n.text?n=null:n&&n.changes&&(pr(e,n,i,xo(e)),e.curOp.forceUpdate=!0),n||(n=_s(e,t));var r=ra(n,t,i);return{line:t,view:n,rect:null,map:r.map,cache:r.cache,before:r.before,hasHeights:!1}}function hi(e,t,i,n,r){t.before&&(i=-1);var s=i+(n||""),l;return t.cache.hasOwnProperty(s)?l=t.cache[s]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(js(e,t.view,t.rect),t.hasHeights=!0),l=Ws(e,t,i,n),l.bogus||(t.cache[s]=l)),{left:l.left,right:l.right,top:r?l.rtop:l.top,bottom:r?l.rbottom:l.bottom}}var aa={left:0,right:0,top:0,bottom:0};function sa(e,t,i){for(var n,r,s,l,d,p,v=0;v<e.length;v+=3)if(d=e[v],p=e[v+1],t<d?(r=0,s=1,l="left"):t<p?(r=t-d,s=r+1):(v==e.length-3||t==p&&e[v+3]>t)&&(s=p-d,r=s-1,t>=p&&(l="right")),r!=null){if(n=e[v+2],d==p&&i==(n.insertLeft?"left":"right")&&(l=i),i=="left"&&r==0)for(;v&&e[v-2]==e[v-3]&&e[v-1].insertLeft;)n=e[(v-=3)+2],l="left";if(i=="right"&&r==p-d)for(;v<e.length-3&&e[v+3]==e[v+4]&&!e[v+5].insertLeft;)n=e[(v+=3)+2],l="right";break}return{node:n,start:r,end:s,collapse:l,coverStart:d,coverEnd:p}}function Fs(e,t){var i=aa;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 Ws(e,t,i,n){var r=sa(t.map,i,n),s=r.node,l=r.start,d=r.end,p=r.collapse,v;if(s.nodeType==3){for(var D=0;D<4;D++){for(;l&&Te(t.line.text.charAt(r.coverStart+l));)--l;for(;r.coverStart+d<r.coverEnd&&Te(t.line.text.charAt(r.coverStart+d));)++d;if(S&&k<9&&l==0&&d==r.coverEnd-r.coverStart?v=s.parentNode.getBoundingClientRect():v=Fs(X(s,l,d).getClientRects(),n),v.left||v.right||l==0)break;d=l,l=l-1,p="right"}S&&k<11&&(v=zs(e.display.measure,v))}else{l>0&&(p=n="right");var B;e.options.lineWrapping&&(B=s.getClientRects()).length>1?v=B[n=="right"?B.length-1:0]:v=s.getBoundingClientRect()}if(S&&k<9&&!l&&(!v||!v.left&&!v.right)){var oe=s.parentNode.getClientRects()[0];oe?v={left:oe.left,right:oe.left+qi(e.display),top:oe.top,bottom:oe.bottom}:v=aa}for(var te=v.top-t.rect.top,Ae=v.bottom-t.rect.top,Pe=(te+Ae)/2,ze=t.view.measure.heights,Xe=0;Xe<ze.length-1&&!(Pe<ze[Xe]);Xe++);var at=Xe?ze[Xe-1]:0,Ye=ze[Xe],ht={left:(p=="right"?v.right:v.left)-t.rect.left,right:(p=="left"?v.left:v.right)-t.rect.left,top:at,bottom:Ye};return!v.left&&!v.right&&(ht.bogus=!0),e.options.singleCursorHeightPerLine||(ht.rtop=te,ht.rbottom=Ae),ht}function zs(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Nt(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 la(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 ua(e){e.display.externalMeasure=null,re(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)la(e.display.view[t])}function vr(e){ua(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function ha(){return M&&H?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ca(){return M&&H?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function vo(e){var t=0;if(e.widgets)for(var i=0;i<e.widgets.length;++i)e.widgets[i].above&&(t+=gr(e.widgets[i]));return t}function zr(e,t,i,n,r){if(!r){var s=vo(t);i.top+=s,i.bottom+=s}if(n=="line")return i;n||(n="local");var l=zn(t);if(n=="local"?l+=Wr(e.display):l-=e.display.viewOffset,n=="page"||n=="window"){var d=e.display.lineSpace.getBoundingClientRect();l+=d.top+(n=="window"?0:ca());var p=d.left+(n=="window"?0:ha());i.left+=p,i.right+=p}return i.top+=l,i.bottom+=l,i}function da(e,t,i){if(i=="div")return t;var n=t.left,r=t.top;if(i=="page")n-=ha(),r-=ca();else if(i=="local"||!i){var s=e.display.sizer.getBoundingClientRect();n+=s.left,r+=s.top}var l=e.display.lineSpace.getBoundingClientRect();return{left:n-l.left,top:r-l.top}}function yo(e,t,i,n,r){return n||(n=Fe(e.doc,t.line)),zr(e,n,oa(e,n,t.ch,r),i)}function ti(e,t,i,n,r,s){n=n||Fe(e.doc,t.line),r||(r=Yi(e,n));function l(Ae,Pe){var ze=hi(e,r,Ae,Pe?"right":"left",s);return Pe?ze.left=ze.right:ze.right=ze.left,zr(e,n,ze,i)}var d=st(n,e.doc.direction),p=t.ch,v=t.sticky;if(p>=n.text.length?(p=n.text.length,v="before"):p<=0&&(p=0,v="after"),!d)return l(v=="before"?p-1:p,v=="before");function D(Ae,Pe,ze){var Xe=d[Pe],at=Xe.level==1;return l(ze?Ae-1:Ae,at!=ze)}var B=Je(d,p,v),oe=et,te=D(p,B,v=="before");return oe!=null&&(te.other=D(p,oe,v!="before")),te}function fa(e,t){var i=0;t=o(e.doc,t),e.options.lineWrapping||(i=qi(e.display)*t.ch);var n=Fe(e.doc,t.line),r=zn(n)+Wr(e.display);return{left:i,right:i,top:r,bottom:r+n.height}}function bo(e,t,i,n,r){var s=Ue(e,t,i);return s.xRel=r,n&&(s.outside=n),s}function Co(e,t,i){var n=e.doc;if(i+=e.display.viewOffset,i<0)return bo(n.first,0,null,-1,-1);var r=pn(n,i),s=n.first+n.size-1;if(r>s)return bo(n.first+n.size-1,Fe(n,s).text.length,null,1,1);t<0&&(t=0);for(var l=Fe(n,r);;){var d=Hs(e,l,r,t,i),p=bi(l,d.ch+(d.xRel>0||d.outside>0?1:0));if(!p)return d;var v=p.find(1);if(v.line==r)return v;l=Fe(n,r=v.line)}}function pa(e,t,i,n){n-=vo(t);var r=t.text.length,s=dt(function(l){return hi(e,i,l-1).bottom<=n},r,0);return r=dt(function(l){return hi(e,i,l).top>n},s,r),{begin:s,end:r}}function ma(e,t,i,n){i||(i=Yi(e,t));var r=zr(e,t,hi(e,i,n),"line").top;return pa(e,t,i,r)}function Eo(e,t,i,n){return e.bottom<=i?!1:e.top>i?!0:(n?e.left:e.right)>t}function Hs(e,t,i,n,r){r-=zn(t);var s=Yi(e,t),l=vo(t),d=0,p=t.text.length,v=!0,D=st(t,e.doc.direction);if(D){var B=(e.options.lineWrapping?Qs:Gs)(e,t,i,s,D,n,r);v=B.level!=1,d=v?B.from:B.to-1,p=v?B.to:B.from-1}var oe=null,te=null,Ae=dt(function(wt){var Et=hi(e,s,wt);return Et.top+=l,Et.bottom+=l,Eo(Et,n,r,!1)?(Et.top<=r&&Et.left<=n&&(oe=wt,te=Et),!0):!1},d,p),Pe,ze,Xe=!1;if(te){var at=n-te.left<te.right-n,Ye=at==v;Ae=oe+(Ye?0:1),ze=Ye?"after":"before",Pe=at?te.left:te.right}else{!v&&(Ae==p||Ae==d)&&Ae++,ze=Ae==0?"after":Ae==t.text.length?"before":hi(e,s,Ae-(v?1:0)).bottom+l<=r==v?"after":"before";var ht=ti(e,Ue(i,Ae,ze),"line",t,s);Pe=ht.left,Xe=r<ht.top?-1:r>=ht.bottom?1:0}return Ae=Qe(t.text,Ae,1),bo(i,Ae,ze,Xe,n-Pe)}function Gs(e,t,i,n,r,s,l){var d=dt(function(B){var oe=r[B],te=oe.level!=1;return Eo(ti(e,Ue(i,te?oe.to:oe.from,te?"before":"after"),"line",t,n),s,l,!0)},0,r.length-1),p=r[d];if(d>0){var v=p.level!=1,D=ti(e,Ue(i,v?p.from:p.to,v?"after":"before"),"line",t,n);Eo(D,s,l,!0)&&D.top>l&&(p=r[d-1])}return p}function Qs(e,t,i,n,r,s,l){var d=pa(e,t,n,l),p=d.begin,v=d.end;/\s/.test(t.text.charAt(v-1))&&v--;for(var D=null,B=null,oe=0;oe<r.length;oe++){var te=r[oe];if(te.from>=v||te.to<=p)continue;var Ae=te.level!=1,Pe=hi(e,n,Ae?Math.min(v,te.to)-1:Math.max(p,te.from)).right,ze=Pe<s?s-Pe+1e9:Pe-s;(!D||B>ze)&&(D=te,B=ze)}return D||(D=r[r.length-1]),D.from<p&&(D={from:p,to:D.to,level:D.level}),D.to>v&&(D={from:D.from,to:v,level:D.level}),D}var Ui;function Zi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ui==null){Ui=x("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Ui.appendChild(document.createTextNode("x")),Ui.appendChild(x("br"));Ui.appendChild(document.createTextNode("x"))}I(e.measure,Ui);var i=Ui.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),re(e.measure),i||1}function qi(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=x("span","xxxxxxxxxx"),i=x("pre",[t],"CodeMirror-line-like");I(e.measure,i);var n=t.getBoundingClientRect(),r=(n.right-n.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function xo(e){for(var t=e.display,i={},n={},r=t.gutters.clientLeft,s=t.gutters.firstChild,l=0;s;s=s.nextSibling,++l){var d=e.display.gutterSpecs[l].className;i[d]=s.offsetLeft+s.clientLeft+r,n[d]=s.clientWidth}return{fixedPos:Ao(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Ao(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ga(e){var t=Zi(e.display),i=e.options.lineWrapping,n=i&&Math.max(5,e.display.scroller.clientWidth/qi(e.display)-3);return function(r){if(ei(e.doc,r))return 0;var s=0;if(r.widgets)for(var l=0;l<r.widgets.length;l++)r.widgets[l].height&&(s+=r.widgets[l].height);return i?s+(Math.ceil(r.text.length/n)||1)*t:s+t}}function wo(e){var t=e.doc,i=ga(e);t.iter(function(n){var r=i(n);r!=n.height&&on(n,r)})}function ji(e,t,i,n){var r=e.display;if(!i&&ie(t).getAttribute("cm-not-content")=="true")return null;var s,l,d=r.lineSpace.getBoundingClientRect();try{s=t.clientX-d.left,l=t.clientY-d.top}catch(B){return null}var p=Co(e,s,l),v;if(n&&p.xRel>0&&(v=Fe(e.doc,p.line).text).length==p.ch){var D=Q(v,v.length,e.options.tabSize)-v.length;p=Ue(p.line,Math.max(0,Math.round((s-ia(e.display).left)/qi(e.display))-D))}return p}function _i(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 Nn(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)On&&Ei(e.doc,t)<r.viewTo&&wi(e);else if(i<=r.viewFrom)On&&_r(e.doc,i+n)>r.viewFrom?wi(e):(r.viewFrom+=n,r.viewTo+=n);else if(t<=r.viewFrom&&i>=r.viewTo)wi(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):wi(e)}else if(i>=r.viewTo){var l=Hr(e,t,t,-1);l?(r.view=r.view.slice(0,l.index),r.viewTo=l.lineN):wi(e)}else{var d=Hr(e,t,t,-1),p=Hr(e,i,i+n,1);d&&p?(r.view=r.view.slice(0,d.index).concat(an(e,d.lineN,p.lineN)).concat(r.view.slice(p.index)),r.viewTo+=n):wi(e)}var v=r.externalMeasured;v&&(i<v.lineN?v.lineN+=n:t<v.lineN+v.size&&(r.externalMeasured=null))}function Ai(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[_i(e,t)];if(s.node==null)return;var l=s.changes||(s.changes=[]);ye(l,i)==-1&&l.push(i)}function wi(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=_i(e,t),s,l=e.display.view;if(!On||i==e.doc.first+e.doc.size)return{index:r,lineN:i};for(var d=e.display.viewFrom,p=0;p<r;p++)d+=l[p].size;if(d!=t){if(n>0){if(r==l.length-1)return null;s=d+l[r].size-t,r++}else s=d-t;t+=s,i+=s}for(;Ei(e.doc,i)!=i;){if(r==(n<0?0:l.length-1))return null;i+=n*l[r-(n<0?1:0)].size,r+=n}return{index:r,lineN:i}}function Vs(e,t,i){var n=e.display,r=n.view;r.length==0||t>=n.viewTo||i<=n.viewFrom?(n.view=an(e,t,i),n.viewFrom=t):(n.viewFrom>t?n.view=an(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(_i(e,t))),n.viewFrom=t,n.viewTo<i?n.view=n.view.concat(an(e,n.viewTo,i)):n.viewTo>i&&(n.view=n.view.slice(0,_i(e,i)))),n.viewTo=i}function va(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 yr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function ya(e,t){t===void 0&&(t=!0);for(var i=e.doc,n={},r=n.cursors=document.createDocumentFragment(),s=n.selection=document.createDocumentFragment(),l=0;l<i.sel.ranges.length;l++){if(!t&&l==i.sel.primIndex)continue;var d=i.sel.ranges[l];if(d.from().line>=e.display.viewTo||d.to().line<e.display.viewFrom)continue;var p=d.empty();(p||e.options.showCursorWhenSelecting)&&ba(e,d.head,r),p||Js(e,d,s)}return n}function ba(e,t,i){var n=ti(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),r=i.appendChild(x("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(x("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 Gr(e,t){return e.top-t.top||e.left-t.left}function Js(e,t,i){var n=e.display,r=e.doc,s=document.createDocumentFragment(),l=ia(e.display),d=l.left,p=Math.max(n.sizerWidth,Bi(e)-n.sizer.offsetLeft)-l.right,v=r.direction=="ltr";function D(Ye,ht,wt,Et){ht<0&&(ht=0),ht=Math.round(ht),Et=Math.round(Et),s.appendChild(x("div",null,"CodeMirror-selected","position: absolute; left: "+Ye+`px;
|
|
top: `+ht+"px; width: "+(wt==null?p-Ye:wt)+`px;
|
|
height: `+(Et-ht)+"px"))}function B(Ye,ht,wt){var Et=Fe(r,Ye),Pt=Et.text.length,en,xn;function sn(dn,jn){return yo(e,Ue(Ye,dn),"div",Et,jn)}function Gn(dn,jn,Mn){var vn=ma(e,Et,null,dn),fn=jn=="ltr"==(Mn=="after")?"left":"right",ln=Mn=="after"?vn.begin:vn.end-(/\s/.test(Et.text.charAt(vn.end-1))?2:1);return sn(ln,fn)[fn]}var Un=st(Et,r.direction);return ut(Un,ht||0,wt==null?Pt:wt,function(dn,jn,Mn,vn){var fn=Mn=="ltr",ln=sn(dn,fn?"left":"right"),_n=sn(jn-1,fn?"right":"left"),cr=ht==null&&dn==0,Li=wt==null&&jn==Pt,Ln=vn==0,ci=!Un||vn==Un.length-1;if(_n.top-ln.top<=3){var An=(v?cr:Li)&&Ln,Xo=(v?Li:cr)&&ci,vi=An?d:(fn?ln:_n).left,Gi=Xo?p:(fn?_n:ln).right;D(vi,ln.top,Gi-vi,ln.bottom)}else{var Qi,In,dr,Yo;fn?(Qi=v&&cr&&Ln?d:ln.left,In=v?p:Gn(dn,Mn,"before"),dr=v?d:Gn(jn,Mn,"after"),Yo=v&&Li&&ci?p:_n.right):(Qi=v?Gn(dn,Mn,"before"):d,In=!v&&cr&&Ln?p:ln.right,dr=!v&&Li&&ci?d:_n.left,Yo=v?Gn(jn,Mn,"after"):p),D(Qi,ln.top,In-Qi,ln.bottom),ln.bottom<_n.top&&D(d,ln.bottom,null,_n.top),D(dr,_n.top,Yo-dr,_n.bottom)}(!en||Gr(ln,en)<0)&&(en=ln),Gr(_n,en)<0&&(en=_n),(!xn||Gr(ln,xn)<0)&&(xn=ln),Gr(_n,xn)<0&&(xn=_n)}),{start:en,end:xn}}var oe=t.from(),te=t.to();if(oe.line==te.line)B(oe.line,oe.ch,te.ch);else{var Ae=Fe(r,oe.line),Pe=Fe(r,te.line),ze=gn(Ae)==gn(Pe),Xe=B(oe.line,oe.ch,ze?Ae.text.length+1:null).end,at=B(te.line,ze?0:null,te.ch).start;ze&&(Xe.top<at.top-2?(D(Xe.right,Xe.top,null,Xe.bottom),D(d,at.top,at.left,at.bottom)):D(Xe.right,Xe.top,at.left-Xe.right,Xe.bottom)),Xe.bottom<at.top&&D(d,Xe.bottom,null,at.top)}i.appendChild(s)}function So(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()||$i(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function Ca(e){e.state.focused||(e.display.input.focus(),ko(e))}function Ea(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,$i(e))},100)}function ko(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(be(e,"focus",e,t),e.state.focused=!0,J(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),R&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),So(e)}function $i(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(be(e,"blur",e,t),e.state.focused=!1,pe(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Qr(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,l=void 0,d=0;if(r.hidden)continue;if(S&&k<8){var p=r.node.offsetTop+r.node.offsetHeight;l=p-i,i=p}else{var v=r.node.getBoundingClientRect();l=v.bottom-v.top,!s&&r.text.firstChild&&(d=r.text.firstChild.getBoundingClientRect().right-v.left-1)}var D=r.line.height-l;if((D>.005||D<-.005)&&(on(r.line,l),xa(r.line),r.rest))for(var B=0;B<r.rest.length;B++)xa(r.rest[B]);if(d>e.display.sizerWidth){var oe=Math.ceil(d/qi(e.display));oe>e.display.maxLineLength&&(e.display.maxLineLength=oe,e.display.maxLine=r.line,e.display.maxLineChanged=!0)}}}function xa(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 Vr(e,t,i){var n=i&&i.top!=null?Math.max(0,i.top):e.scroller.scrollTop;n=Math.floor(n-Wr(e));var r=i&&i.bottom!=null?i.bottom:n+e.wrapper.clientHeight,s=pn(t,n),l=pn(t,r);if(i&&i.ensure){var d=i.ensure.from.line,p=i.ensure.to.line;d<s?(s=d,l=pn(t,zn(Fe(t,d))+e.wrapper.clientHeight)):Math.min(p,t.lastLine())>=l&&(s=pn(t,zn(Fe(t,p))-e.wrapper.clientHeight),l=p)}return{from:s,to:Math.max(l,s+1)}}function Ks(e,t){if(Ie(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&&!P){var s=x("div","\u200B",null,`position: absolute;
|
|
top: `+(t.top-i.viewOffset-Wr(e.display))+`px;
|
|
height: `+(t.bottom-t.top+ui(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 Xs(e,t,i,n){n==null&&(n=0);var r;!e.options.lineWrapping&&t==i&&(t=t.ch?Ue(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?Ue(t.line,t.ch+1,"before"):t);for(var s=0;s<5;s++){var l=!1,d=ti(e,t),p=!i||i==t?d:ti(e,i);r={left:Math.min(d.left,p.left),top:Math.min(d.top,p.top)-n,right:Math.max(d.left,p.left),bottom:Math.max(d.bottom,p.bottom)+n};var v=Mo(e,r),D=e.doc.scrollTop,B=e.doc.scrollLeft;if(v.scrollTop!=null&&(Cr(e,v.scrollTop),Math.abs(e.doc.scrollTop-D)>1&&(l=!0)),v.scrollLeft!=null&&(Fi(e,v.scrollLeft),Math.abs(e.doc.scrollLeft-B)>1&&(l=!0)),!l)break}return r}function Ys(e,t){var i=Mo(e,t);i.scrollTop!=null&&Cr(e,i.scrollTop),i.scrollLeft!=null&&Fi(e,i.scrollLeft)}function Mo(e,t){var i=e.display,n=Zi(e.display);t.top<0&&(t.top=0);var r=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,s=mo(e),l={};t.bottom-t.top>s&&(t.bottom=t.top+s);var d=e.doc.height+po(i),p=t.top<n,v=t.bottom>d-n;if(t.top<r)l.scrollTop=p?0:t.top;else if(t.bottom>r+s){var D=Math.min(t.top,(v?d:t.bottom)-s);D!=r&&(l.scrollTop=D)}var B=e.options.fixedGutter?0:i.gutters.offsetWidth,oe=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-B,te=Bi(e)-i.gutters.offsetWidth,Ae=t.right-t.left>te;return Ae&&(t.right=t.left+te),t.left<10?l.scrollLeft=0:t.left<oe?l.scrollLeft=Math.max(0,t.left+B-(Ae?0:10)):t.right>te+oe-3&&(l.scrollLeft=t.right+(Ae?0:10)-te),l}function Ro(e,t){if(t==null)return;Jr(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function er(e){Jr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function br(e,t,i){(t!=null||i!=null)&&Jr(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function Zs(e,t){Jr(e),e.curOp.scrollToPos=t}function Jr(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=fa(e,t.from),n=fa(e,t.to);Aa(e,i,n,t.margin)}}function Aa(e,t,i,n){var r=Mo(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});br(e,r.scrollLeft,r.scrollTop)}function Cr(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;q||Lo(e,{top:t}),wa(e,t,!0),q&&Lo(e),Ar(e,100)}function wa(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 Fi(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,Ta(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function Er(e){var t=e.display,i=t.gutters.offsetWidth,n=Math.round(e.doc.height+po(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+ui(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var Wi=function(e,t,i){this.cm=i;var n=this.vert=x("div",[x("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=x("div",[x("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=r.tabIndex=-1,e(n),e(r),Ee(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),Ee(r,"scroll",function(){r.clientWidth&&t(r.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,S&&k<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wi.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}},Wi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Wi.prototype.zeroWidthHack=function(){var e=ee&&!z?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new we,this.disableVert=new we},Wi.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)},Wi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var xr=function(){};xr.prototype.update=function(){return{bottom:0,right:0}},xr.prototype.setScrollLeft=function(){},xr.prototype.setScrollTop=function(){},xr.prototype.clear=function(){};function tr(e,t){t||(t=Er(e));var i=e.display.barWidth,n=e.display.barHeight;Sa(e,t);for(var r=0;r<4&&i!=e.display.barWidth||n!=e.display.barHeight;r++)i!=e.display.barWidth&&e.options.lineWrapping&&Qr(e),Sa(e,Er(e)),i=e.display.barWidth,n=e.display.barHeight}function Sa(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 ka={native:Wi,null:xr};function Ma(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&pe(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ka[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ee(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"?Fi(e,t):Cr(e,t)},e),e.display.scrollbars.addClass&&J(e.display.wrapper,e.display.scrollbars.addClass)}var qs=0;function zi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++qs},_t(e.curOp)}function Hi(e){var t=e.curOp;t&&Yt(t,function(i){for(var n=0;n<i.ops.length;n++)i.ops[n].cm.curOp=null;$s(i)})}function $s(e){for(var t=e.ops,i=0;i<t.length;i++)el(t[i]);for(var n=0;n<t.length;n++)tl(t[n]);for(var r=0;r<t.length;r++)nl(t[r]);for(var s=0;s<t.length;s++)il(t[s]);for(var l=0;l<t.length;l++)rl(t[l])}function el(e){var t=e.cm,i=t.display;al(t),e.updateMaxLine&&pi(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 Kr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function tl(e){e.updatedDisplay=e.mustUpdate&&To(e.cm,e.update)}function nl(e){var t=e.cm,i=t.display;e.updatedDisplay&&Qr(t),e.barMeasure=Er(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=oa(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+ui(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-Bi(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function il(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Fi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var i=e.focus&&e.focus==L();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,i),(e.updatedDisplay||e.startHeight!=t.doc.height)&&tr(t,e.barMeasure),e.updatedDisplay&&Io(t,e.barMeasure),e.selectionChanged&&So(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),i&&Ca(e.cm)}function rl(e){var t=e.cm,i=t.display,n=t.doc;if(e.updatedDisplay&&Ra(t,e.update),i.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(i.wheelStartX=i.wheelStartY=null),e.scrollTop!=null&&wa(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Fi(t,e.scrollLeft,!0,!0),e.scrollToPos){var r=Xs(t,o(n,e.scrollToPos.from),o(n,e.scrollToPos.to),e.scrollToPos.margin);Ks(t,r)}var s=e.maybeHiddenMarkers,l=e.maybeUnhiddenMarkers;if(s)for(var d=0;d<s.length;++d)s[d].lines.length||be(s[d],"hide");if(l)for(var p=0;p<l.length;++p)l[p].lines.length&&be(l[p],"unhide");i.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&be(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Hn(e,t){if(e.curOp)return t();zi(e);try{return t()}finally{Hi(e)}}function Cn(e,t){return function(){if(e.curOp)return t.apply(e,arguments);zi(e);try{return t.apply(e,arguments)}finally{Hi(e)}}}function Dn(e){return function(){if(this.curOp)return e.apply(this,arguments);zi(this);try{return e.apply(this,arguments)}finally{Hi(this)}}}function En(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);zi(t);try{return e.apply(this,arguments)}finally{Hi(t)}}}function Ar(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,E(ol,e))}function ol(e){var t=e.doc;if(t.highlightFrontier>=e.display.viewTo)return;var i=+new Date+e.options.workTime,n=se(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 l=s.styles,d=s.text.length>e.options.maxHighlightLength?Rn(t.mode,n.state):null,p=j(e,s,n,!0);d&&(n.state=d),s.styles=p.styles;var v=s.styleClasses,D=p.classes;D?s.styleClasses=D:v&&(s.styleClasses=null);for(var B=!l||l.length!=s.styles.length||v!=D&&(!v||!D||v.bgClass!=D.bgClass||v.textClass!=D.textClass),oe=0;!B&&oe<l.length;++oe)B=l[oe]!=s.styles[oe];B&&r.push(n.line),s.stateAfter=n.save(),n.nextLine()}else s.text.length<=e.options.maxHighlightLength&&pt(e,s.text,n),s.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>i)return Ar(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),r.length&&Hn(e,function(){for(var s=0;s<r.length;s++)Ai(e,r[s],"text")})}var Kr=function(e,t,i){var n=e.display;this.viewport=t,this.visible=Vr(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Bi(e),this.force=i,this.dims=xo(e),this.events=[]};Kr.prototype.signal=function(e,t){_(e,t)&&this.events.push(arguments)},Kr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)be.apply(null,this.events[e])};function al(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=ui(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=ui(e)+"px",t.scrollbarsClipped=!0)}function sl(e){if(e.hasFocus())return null;var t=L();if(!t||!b(e.display.lineDiv,t))return null;var i={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&b(e.display.lineDiv,n.anchorNode)&&(i.anchorNode=n.anchorNode,i.anchorOffset=n.anchorOffset,i.focusNode=n.focusNode,i.focusOffset=n.focusOffset)}return i}function ll(e){if(!e||!e.activeElt||e.activeElt==L())return;if(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&b(document.body,e.anchorNode)&&b(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 To(e,t){var i=e.display,n=e.doc;if(t.editorIsHidden)return wi(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&&va(e)==0)return!1;La(e)&&(wi(e),t.dims=xo(e));var r=n.first+n.size,s=Math.max(t.visible.from-e.options.viewportMargin,n.first),l=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>l&&i.viewTo-l<20&&(l=Math.min(r,i.viewTo)),On&&(s=Ei(e.doc,s),l=_r(e.doc,l));var d=s!=i.viewFrom||l!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Vs(e,s,l),i.viewOffset=zn(Fe(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var p=va(e);if(!d&&p==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var v=sl(e);return p>4&&(i.lineDiv.style.display="none"),ul(e,i.updateLineNumbers,t.dims),p>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,ll(v),re(i.cursorDiv),re(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,d&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,Ar(e,400)),i.updateLineNumbers=null,!0}function Ra(e,t){for(var i=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Bi(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+po(e.display)-mo(e),i.top)}),t.visible=Vr(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Vr(e.display,e.doc,i));if(!To(e,t))break;Qr(e);var r=Er(e);yr(e),tr(e,r),Io(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 Lo(e,t){var i=new Kr(e,t);if(To(e,i)){Qr(e),Ra(e,i);var n=Er(e);yr(e),tr(e,n),Io(e,n),i.finish()}}function ul(e,t,i){var n=e.display,r=e.options.lineNumbers,s=n.lineDiv,l=s.firstChild;function d(Ae){var Pe=Ae.nextSibling;return R&&ee&&e.display.currentWheelTarget==Ae?Ae.style.display="none":Ae.parentNode.removeChild(Ae),Pe}for(var p=n.view,v=n.viewFrom,D=0;D<p.length;D++){var B=p[D];if(!B.hidden)if(!B.node||B.node.parentNode!=s){var oe=Bs(e,B,v,i);s.insertBefore(oe,l)}else{for(;l!=B.node;)l=d(l);var te=r&&t!=null&&t<=v&&B.lineNumber;B.changes&&(ye(B.changes,"gutter")>-1&&(te=!1),pr(e,B,v,i)),te&&(re(B.lineNumber),B.lineNumber.appendChild(document.createTextNode(ri(e.options,v)))),l=B.node.nextSibling}v+=B.size}for(;l;)l=d(l)}function Do(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Io(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+ui(e)+"px"}function Ta(e){var t=e.display,i=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var n=Ao(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,s=n+"px",l=0;l<i.length;l++)if(!i[l].hidden){e.options.fixedGutter&&(i[l].gutter&&(i[l].gutter.style.left=s),i[l].gutterBackground&&(i[l].gutterBackground.style.left=s));var d=i[l].alignable;if(d)for(var p=0;p<d.length;p++)d[p].style.left=s}e.options.fixedGutter&&(t.gutters.style.left=n+r+"px")}function La(e){if(!e.options.lineNumbers)return!1;var t=e.doc,i=ri(e.options,t.first+t.size-1),n=e.display;if(i.length!=n.lineNumChars){var r=n.measure.appendChild(x("div",[x("div",i)],"CodeMirror-linenumber CodeMirror-gutter-elt")),s=r.firstChild.offsetWidth,l=r.offsetWidth-s;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(s,n.lineGutter.offsetWidth-l)+1,n.lineNumWidth=n.lineNumInnerWidth+l,n.lineNumChars=n.lineNumInnerWidth?i.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",Do(e.display),!0}return!1}function Oo(e,t){for(var i=[],n=!1,r=0;r<e.length;r++){var s=e[r],l=null;if(typeof s!="string"&&(l=s.style,s=s.className),s=="CodeMirror-linenumbers")if(t)n=!0;else continue;i.push({className:s,style:l})}return t&&!n&&i.push({className:"CodeMirror-linenumbers",style:null}),i}function Da(e){var t=e.gutters,i=e.gutterSpecs;re(t),e.lineGutter=null;for(var n=0;n<i.length;++n){var r=i[n],s=r.className,l=r.style,d=t.appendChild(x("div",null,"CodeMirror-gutter "+s));l&&(d.style.cssText=l),s=="CodeMirror-linenumbers"&&(e.lineGutter=d,d.style.width=(e.lineNumWidth||1)+"px")}t.style.display=i.length?"":"none",Do(e)}function wr(e){Da(e.display),Nn(e),Ta(e)}function hl(e,t,i,n){var r=this;this.input=i,r.scrollbarFiller=x("div",null,"CodeMirror-scrollbar-filler"),r.scrollbarFiller.setAttribute("cm-not-content","true"),r.gutterFiller=x("div",null,"CodeMirror-gutter-filler"),r.gutterFiller.setAttribute("cm-not-content","true"),r.lineDiv=ne("div",null,"CodeMirror-code"),r.selectionDiv=x("div",null,null,"position: relative; z-index: 1"),r.cursorDiv=x("div",null,"CodeMirror-cursors"),r.measure=x("div",null,"CodeMirror-measure"),r.lineMeasure=x("div",null,"CodeMirror-measure"),r.lineSpace=ne("div",[r.measure,r.lineMeasure,r.selectionDiv,r.cursorDiv,r.lineDiv],null,"position: relative; outline: none");var s=ne("div",[r.lineSpace],"CodeMirror-lines");r.mover=x("div",[s],null,"position: relative"),r.sizer=x("div",[r.mover],"CodeMirror-sizer"),r.sizerWidth=null,r.heightForcer=x("div",null,null,"position: absolute; height: "+Ge+"px; width: 1px;"),r.gutters=x("div",null,"CodeMirror-gutters"),r.lineGutter=null,r.scroller=x("div",[r.sizer,r.heightForcer,r.gutters],"CodeMirror-scroll"),r.scroller.setAttribute("tabIndex","-1"),r.wrapper=x("div",[r.scrollbarFiller,r.gutterFiller,r.scroller],"CodeMirror"),S&&k<8&&(r.gutters.style.zIndex=-1,r.scroller.style.paddingRight=0),!R&&!(q&&Z)&&(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=Oo(n.gutters,n.lineNumbers),Da(r),i.init(r)}var Xr=0,Kn=null;S?Kn=-.53:q?Kn=15:M?Kn=-.7:Y&&(Kn=-1/3);function Ia(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 cl(e){var t=Ia(e);return t.x*=Kn,t.y*=Kn,t}function Oa(e,t){var i=Ia(t),n=i.x,r=i.y,s=e.display,l=s.scroller,d=l.scrollWidth>l.clientWidth,p=l.scrollHeight>l.clientHeight;if(!(n&&d||r&&p))return;if(r&&ee&&R){e:for(var v=t.target,D=s.view;v!=l;v=v.parentNode)for(var B=0;B<D.length;B++)if(D[B].node==v){e.display.currentWheelTarget=v;break e}}if(n&&!q&&!A&&Kn!=null){r&&p&&Cr(e,Math.max(0,l.scrollTop+r*Kn)),Fi(e,Math.max(0,l.scrollLeft+n*Kn)),(!r||r&&p)&&y(t),s.wheelStartX=null;return}if(r&&Kn!=null){var oe=r*Kn,te=e.doc.scrollTop,Ae=te+s.wrapper.clientHeight;oe<0?te=Math.max(0,te+oe-50):Ae=Math.min(e.doc.height,Ae+oe+50),Lo(e,{top:te,bottom:Ae})}Xr<20&&(s.wheelStartX==null?(s.wheelStartX=l.scrollLeft,s.wheelStartY=l.scrollTop,s.wheelDX=n,s.wheelDY=r,setTimeout(function(){if(s.wheelStartX==null)return;var Pe=l.scrollLeft-s.wheelStartX,ze=l.scrollTop-s.wheelStartY,Xe=ze&&s.wheelDY&&ze/s.wheelDY||Pe&&s.wheelDX&&Pe/s.wheelDX;if(s.wheelStartX=s.wheelStartY=null,!Xe)return;Kn=(Kn*Xr+Xe)/(Xr+1),++Xr},200)):(s.wheelDX+=n,s.wheelDY+=r))}var Xn=function(e,t){this.ranges=e,this.primIndex=t};Xn.prototype.primary=function(){return this.ranges[this.primIndex]},Xn.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(!oi(i.anchor,n.anchor)||!oi(i.head,n.head))return!1}return!0},Xn.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Jt(di(this.ranges[t].anchor),di(this.ranges[t].head));return new Xn(e,this.primIndex)},Xn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Xn.prototype.contains=function(e,t){t||(t=e);for(var i=0;i<this.ranges.length;i++){var n=this.ranges[i];if(St(t,n.from())>=0&&St(e,n.to())<=0)return i}return-1};var Jt=function(e,t){this.anchor=e,this.head=t};Jt.prototype.from=function(){return Di(this.anchor,this.head)},Jt.prototype.to=function(){return fi(this.anchor,this.head)},Jt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ni(e,t,i){var n=e&&e.options.selectionsMayTouch,r=t[i];t.sort(function(oe,te){return St(oe.from(),te.from())}),i=ye(t,r);for(var s=1;s<t.length;s++){var l=t[s],d=t[s-1],p=St(d.to(),l.from());if(n&&!l.empty()?p>0:p>=0){var v=Di(d.from(),l.from()),D=fi(d.to(),l.to()),B=d.empty()?l.from()==l.head:d.from()==d.head;s<=i&&--i,t.splice(--s,2,new Jt(B?D:v,B?v:D))}}return new Xn(t,i)}function Si(e,t){return new Xn([new Jt(e,t||e)],0)}function ki(e){return e.text?Ue(e.from.line+e.text.length-1,_e(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Pa(e,t){if(St(e,t.from)<0)return e;if(St(e,t.to)<=0)return ki(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+=ki(t).ch-t.to.ch),Ue(i,n)}function Po(e,t){for(var i=[],n=0;n<e.sel.ranges.length;n++){var r=e.sel.ranges[n];i.push(new Jt(Pa(r.anchor,t),Pa(r.head,t)))}return ni(e.cm,i,e.sel.primIndex)}function Na(e,t,i){return e.line==t.line?Ue(i.line,e.ch-t.ch+i.ch):Ue(i.line+(e.line-t.line),e.ch)}function dl(e,t,i){for(var n=[],r=Ue(e.first,0),s=r,l=0;l<t.length;l++){var d=t[l],p=Na(d.from,r,s),v=Na(ki(d),r,s);if(r=d.to,s=v,i=="around"){var D=e.sel.ranges[l],B=St(D.head,D.anchor)<0;n[l]=new Jt(B?v:p,B?p:v)}else n[l]=new Jt(p,p)}return new Xn(n,e.sel.primIndex)}function No(e){e.doc.mode=tn(e.options,e.doc.modeOption),Sr(e)}function Sr(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,Ar(e,100),e.state.modeGen++,e.curOp&&Nn(e)}function Ba(e,t){return t.from.ch==0&&t.to.ch==0&&_e(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Bo(e,t,i,n){function r(at){return i?i[at]:null}function s(at,Ye,ht){uo(at,Ye,ht,n),qt(at,"change",at,t)}function l(at,Ye){for(var ht=[],wt=at;wt<Ye;++wt)ht.push(new xi(v[wt],r(wt),n));return ht}var d=t.from,p=t.to,v=t.text,D=Fe(e,d.line),B=Fe(e,p.line),oe=_e(v),te=r(v.length-1),Ae=p.line-d.line;if(t.full)e.insert(0,l(0,v.length)),e.remove(v.length,e.size-v.length);else if(Ba(e,t)){var Pe=l(0,v.length-1);s(B,B.text,te),Ae&&e.remove(d.line,Ae),Pe.length&&e.insert(d.line,Pe)}else if(D==B)if(v.length==1)s(D,D.text.slice(0,d.ch)+oe+D.text.slice(p.ch),te);else{var ze=l(1,v.length-1);ze.push(new xi(oe+D.text.slice(p.ch),te,n)),s(D,D.text.slice(0,d.ch)+v[0],r(0)),e.insert(d.line+1,ze)}else if(v.length==1)s(D,D.text.slice(0,d.ch)+v[0]+B.text.slice(p.ch),r(0)),e.remove(d.line+1,Ae);else{s(D,D.text.slice(0,d.ch)+v[0],r(0)),s(B,oe+B.text.slice(p.ch),te);var Xe=l(1,v.length-1);Ae>1&&e.remove(d.line+1,Ae-1),e.insert(d.line+1,Xe)}qt(e,"change",e,t)}function Mi(e,t,i){function n(r,s,l){if(r.linked)for(var d=0;d<r.linked.length;++d){var p=r.linked[d];if(p.doc==s)continue;var v=l&&p.sharedHist;if(i&&!v)continue;t(p.doc,v),n(p.doc,r,v)}}n(e,null,!0)}function Ua(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,wo(e),No(e),ja(e),e.options.lineWrapping||pi(e),e.options.mode=t.modeOption,Nn(e)}function ja(e){(e.doc.direction=="rtl"?J:pe)(e.display.lineDiv,"CodeMirror-rtl")}function fl(e){Hn(e,function(){ja(e),Nn(e)})}function Yr(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 Uo(e,t){var i={from:di(t.from),to:ki(t),text:Gt(e,t.from,t.to)};return Wa(e,i,t.from.line,t.to.line+1),Mi(e,function(n){return Wa(n,i,t.from.line,t.to.line+1)},!0),i}function _a(e){for(;e.length;){var t=_e(e);if(t.ranges)e.pop();else break}}function pl(e,t){if(t)return _a(e.done),_e(e.done);if(e.done.length&&!_e(e.done).ranges)return _e(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),_e(e.done)}function Fa(e,t,i,n){var r=e.history;r.undone.length=0;var s=+new Date,l,d;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)=="*"))&&(l=pl(r,r.lastOp==n)))d=_e(l.changes),St(t.from,t.to)==0&&St(t.from,d.to)==0?d.to=ki(t):l.changes.push(Uo(e,t));else{var p=_e(r.done);for((!p||!p.ranges)&&Zr(e.sel,r.done),l={changes:[Uo(e,t)],generation:r.generation},r.done.push(l);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,d||be(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,_e(r.done),t))?r.done[r.done.length-1]=t:Zr(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=s,r.lastSelOp=i,n&&n.clearRedo!==!1&&_a(r.undone)}function Zr(e,t){var i=_e(t);i&&i.ranges&&i.equals(e)||t.push(e)}function Wa(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(l){l.markedSpans&&((r||(r=t["spans_"+e.id]={}))[s]=l.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 za(e,t){var i=yl(e,t),n=Fn(e,t);if(!i)return n;if(!n)return i;for(var r=0;r<i.length;++r){var s=i[r],l=n[r];if(s&&l){e:for(var d=0;d<l.length;++d){for(var p=l[d],v=0;v<s.length;++v)if(s[v].marker==p.marker)continue e;s.push(p)}}else l&&(i[r]=l)}return i}function nr(e,t,i){for(var n=[],r=0;r<e.length;++r){var s=e[r];if(s.ranges){n.push(i?Xn.prototype.deepCopy.call(s):s);continue}var l=s.changes,d=[];n.push({changes:d});for(var p=0;p<l.length;++p){var v=l[p],D=void 0;if(d.push({from:v.from,to:v.to,text:v.text}),t)for(var B in v)(D=B.match(/^spans_(\d+)$/))&&(ye(t,Number(D[1]))>-1&&(_e(d)[B]=v[B],delete v[B]))}}return n}function jo(e,t,i,n){if(n){var r=e.anchor;if(i){var s=St(t,r)<0;s!=St(i,r)<0?(r=t,t=i):s!=St(t,i)<0&&(t=i)}return new Jt(r,t)}else return new Jt(i||t,t)}function qr(e,t,i,n,r){r==null&&(r=e.cm&&(e.cm.display.shift||e.extend)),Tn(e,new Xn([jo(e.sel.primary(),t,i,r)],0),n)}function Ha(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]=jo(e.sel.ranges[s],t[s],null,r);var l=ni(e.cm,n,e.sel.primIndex);Tn(e,l,i)}function _o(e,t,i,n){var r=e.sel.ranges.slice(0);r[t]=i,Tn(e,ni(e.cm,r,e.sel.primIndex),n)}function Ga(e,t,i,n){Tn(e,Si(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 Jt(o(e,r[s].anchor),o(e,r[s].head))},origin:i&&i.origin};return be(e,"beforeSelectionChange",e,n),e.cm&&be(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?ni(e.cm,n.ranges,n.ranges.length-1):t}function Qa(e,t,i){var n=e.history.done,r=_e(n);r&&r.ranges?(n[n.length-1]=t,$r(e,t,i)):Tn(e,t,i)}function Tn(e,t,i){$r(e,t,i),gl(e,e.sel,e.cm?e.cm.curOp.id:NaN,i)}function $r(e,t,i){(_(e,"beforeSelectionChange")||e.cm&&_(e.cm,"beforeSelectionChange"))&&(t=bl(e,t,i));var n=i&&i.bias||(St(t.primary().head,e.sel.primary().head)<0?-1:1);Va(e,Ka(e,t,n,!0)),!(i&&i.scroll===!1)&&e.cm&&er(e.cm)}function Va(e,t){if(t.equals(e.sel))return;e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,V(e.cm)),qt(e,"cursorActivity",e)}function Ja(e){Va(e,Ka(e,e.sel,null,!1))}function Ka(e,t,i,n){for(var r,s=0;s<t.ranges.length;s++){var l=t.ranges[s],d=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[s],p=eo(e,l.anchor,d&&d.anchor,i,n),v=eo(e,l.head,d&&d.head,i,n);(r||p!=l.anchor||v!=l.head)&&(r||(r=t.ranges.slice(0,s)),r[s]=new Jt(p,v))}return r?ni(e.cm,r,t.primIndex):t}function ir(e,t,i,n,r){var s=Fe(e,t.line);if(s.markedSpans)for(var l=0;l<s.markedSpans.length;++l){var d=s.markedSpans[l],p=d.marker,v="selectLeft"in p?!p.selectLeft:p.inclusiveLeft,D="selectRight"in p?!p.selectRight:p.inclusiveRight;if((d.from==null||(v?d.from<=t.ch:d.from<t.ch))&&(d.to==null||(D?d.to>=t.ch:d.to>t.ch))){if(r&&(be(p,"beforeCursorEnter"),p.explicitlyCleared))if(s.markedSpans){--l;continue}else break;if(!p.atomic)continue;if(i){var B=p.find(n<0?1:-1),oe=void 0;if((n<0?D:v)&&(B=Xa(e,B,-n,B&&B.line==t.line?s:null)),B&&B.line==t.line&&(oe=St(B,i))&&(n<0?oe<0:oe>0))return ir(e,B,t,n,r)}var te=p.find(n<0?-1:1);return(n<0?v:D)&&(te=Xa(e,te,n,te.line==t.line?s:null)),te?ir(e,te,t,n,r):null}}return t}function eo(e,t,i,n,r){var s=n||1,l=ir(e,t,i,s,r)||!r&&ir(e,t,i,s,!0)||ir(e,t,i,-s,r)||!r&&ir(e,t,i,-s,!0);return l||(e.cantEdit=!0,Ue(e.first,0))}function Xa(e,t,i,n){return i<0&&t.ch==0?t.line>e.first?o(e,Ue(t.line-1)):null:i>0&&t.ch==(n||Fe(e,t.line)).text.length?t.line<e.first+e.size-1?Ue(t.line+1,0):null:new Ue(t.line,t.ch+i)}function Ya(e){e.setSelection(Ue(e.firstLine(),0),Ue(e.lastLine()),Me)}function Za(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,l,d){r&&(n.from=o(e,r)),s&&(n.to=o(e,s)),l&&(n.text=l),d!==void 0&&(n.origin=d)}),be(e,"beforeChange",e,n),e.cm&&be(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 rr(e,t,i){if(e.cm){if(!e.cm.curOp)return Cn(e.cm,rr)(e,t,i);if(e.cm.state.suppressEdits)return}if((_(e,"beforeChange")||e.cm&&_(e.cm,"beforeChange"))&&(t=Za(e,t,!0),!t))return;var n=Vi&&!i&&Ii(e,t.from,t.to);if(n)for(var r=n.length-1;r>=0;--r)qa(e,{from:n[r].from,to:n[r].to,text:r?[""]:t.text,origin:t.origin});else qa(e,t)}function qa(e,t){if(t.text.length==1&&t.text[0]==""&&St(t.from,t.to)==0)return;var i=Po(e,t);Fa(e,t,i,e.cm?e.cm.curOp.id:NaN),kr(e,t,i,Fn(e,t));var n=[];Mi(e,function(r,s){!s&&ye(n,r.history)==-1&&(ns(r.history,t),n.push(r.history)),kr(r,t,null,Fn(r,t))})}function to(e,t,i){var n=e.cm&&e.cm.state.suppressEdits;if(n&&!i)return;for(var r=e.history,s,l=e.sel,d=t=="undo"?r.done:r.undone,p=t=="undo"?r.undone:r.done,v=0;v<d.length&&!(s=d[v],i?s.ranges&&!s.equals(e.sel):!s.ranges);v++);if(v==d.length)return;for(r.lastOrigin=r.lastSelOrigin=null;;)if(s=d.pop(),s.ranges){if(Zr(s,p),i&&!s.equals(e.sel)){Tn(e,s,{clearRedo:!1});return}l=s}else if(n){d.push(s);return}else break;var D=[];Zr(l,p),p.push({changes:D,generation:r.generation}),r.generation=s.generation||++r.maxGeneration;for(var B=_(e,"beforeChange")||e.cm&&_(e.cm,"beforeChange"),oe=function(Pe){var ze=s.changes[Pe];if(ze.origin=t,B&&!Za(e,ze,!1))return d.length=0,{};D.push(Uo(e,ze));var Xe=Pe?Po(e,ze):_e(d);kr(e,ze,Xe,za(e,ze)),!Pe&&e.cm&&e.cm.scrollIntoView({from:ze.from,to:ki(ze)});var at=[];Mi(e,function(Ye,ht){!ht&&ye(at,Ye.history)==-1&&(ns(Ye.history,ze),at.push(Ye.history)),kr(Ye,ze,null,za(Ye,ze))})},te=s.changes.length-1;te>=0;--te){var Ae=oe(te);if(Ae)return Ae.v}}function $a(e,t){if(t==0)return;if(e.first+=t,e.sel=new Xn(nt(e.sel.ranges,function(r){return new Jt(Ue(r.anchor.line+t,r.anchor.ch),Ue(r.head.line+t,r.head.ch))}),e.sel.primIndex),e.cm){Nn(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,n=i.viewFrom;n<i.viewTo;n++)Ai(e.cm,n,"gutter")}}function kr(e,t,i,n){if(e.cm&&!e.cm.curOp)return Cn(e.cm,kr)(e,t,i,n);if(t.to.line<e.first){$a(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);$a(e,r),t={from:Ue(e.first,0),to:Ue(t.to.line+r,t.to.ch),text:[_e(t.text)],origin:t.origin}}var s=e.lastLine();t.to.line>s&&(t={from:t.from,to:Ue(s,Fe(e,s).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Gt(e,t.from,t.to),i||(i=Po(e,t)),e.cm?Cl(e.cm,t,n):Bo(e,t,n),$r(e,i,Me),e.cantEdit&&eo(e,Ue(e.firstLine(),0))&&(e.cantEdit=!1)}function Cl(e,t,i){var n=e.doc,r=e.display,s=t.from,l=t.to,d=!1,p=s.line;e.options.lineWrapping||(p=Bt(gn(Fe(n,s.line))),n.iter(p,l.line+1,function(te){if(te==r.maxLine)return d=!0,!0})),n.sel.contains(t.from,t.to)>-1&&V(e),Bo(n,t,i,ga(e)),e.options.lineWrapping||(n.iter(p,s.line+t.text.length,function(te){var Ae=Xi(te);Ae>r.maxLineLength&&(r.maxLine=te,r.maxLineLength=Ae,r.maxLineChanged=!0,d=!1)}),d&&(e.curOp.updateMaxLine=!0)),Yn(n,s.line),Ar(e,400);var v=t.text.length-(l.line-s.line)-1;t.full?Nn(e):s.line==l.line&&t.text.length==1&&!Ba(e.doc,t)?Ai(e,s.line,"text"):Nn(e,s.line,l.line+1,v);var D=_(e,"changes"),B=_(e,"change");if(B||D){var oe={from:s,to:l,text:t.text,removed:t.removed,origin:t.origin};B&&qt(e,"change",e,oe),D&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(oe)}e.display.selForContextMenu=null}function or(e,t,i,n,r){var s;n||(n=i),St(n,i)<0&&(s=[n,i],i=s[0],n=s[1]),typeof t=="string"&&(t=e.splitLines(t)),rr(e,{from:i,to:n,text:t,origin:r})}function es(e,t,i,n){i<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function ts(e,t,i,n){for(var r=0;r<e.length;++r){var s=e[r],l=!0;if(s.ranges){s.copied||(s=e[r]=s.deepCopy(),s.copied=!0);for(var d=0;d<s.ranges.length;d++)es(s.ranges[d].anchor,t,i,n),es(s.ranges[d].head,t,i,n);continue}for(var p=0;p<s.changes.length;++p){var v=s.changes[p];if(i<v.from.line)v.from=Ue(v.from.line+n,v.from.ch),v.to=Ue(v.to.line+n,v.to.ch);else if(t<=v.to.line){l=!1;break}}l||(e.splice(0,r+1),r=0)}}function ns(e,t){var i=t.from.line,n=t.to.line,r=t.text.length-(n-i)-1;ts(e.done,i,n,r),ts(e.undone,i,n,r)}function Mr(e,t,i,n){var r=t,s=t;return typeof t=="number"?s=Fe(e,c(e,t)):r=Bt(t),r==null?null:(n(s,r)&&e.cm&&Ai(e.cm,r,i),s)}function Rr(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}Rr.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,ho(r),qt(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 Tr(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}Tr.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),l=n.height;if(n.removeInner(e,s),this.height-=l-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 Rr))){var d=[];this.collapse(d),this.children=[new Rr(d)],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 l=r.lines.length%25+25,d=l;d<r.lines.length;){var p=new Rr(r.lines.slice(d,d+=25));r.height-=p.height,this.children.splice(++n,0,p),p.parent=this}r.lines=r.lines.slice(0,l),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 Tr(t);if(e.parent){e.size-=i.size,e.height-=i.height;var r=ye(e.parent.children,e);e.parent.children.splice(r+1,0,i)}else{var n=new Tr(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 l=Math.min(t,s-e);if(r.iterN(e,l,i))return!0;if((t-=l)==0)break;e=0}else e-=s}}};var Lr=function(e,t,i){if(i)for(var n in i)i.hasOwnProperty(n)&&(this[n]=i[n]);this.doc=e,this.node=t};Lr.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,i=this.line,n=Bt(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=gr(this);on(i,Math.max(0,i.height-s)),e&&(Hn(e,function(){is(e,i,-s),Ai(e,n,"widget")}),qt(e,"lineWidgetCleared",e,this,n))},Lr.prototype.changed=function(){var e=this,t=this.height,i=this.doc.cm,n=this.line;this.height=null;var r=gr(this)-t;if(!r)return;ei(this.doc,n)||on(n,n.height+r),i&&Hn(i,function(){i.curOp.forceUpdate=!0,is(i,n,r),qt(i,"lineWidgetChanged",i,e,Bt(n))})},G(Lr);function is(e,t,i){zn(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Ro(e,i)}function El(e,t,i,n){var r=new Lr(e,i,n),s=e.cm;return s&&r.noHScroll&&(s.display.alignWidgets=!0),Mr(e,t,"widget",function(l){var d=l.widgets||(l.widgets=[]);if(r.insertAt==null?d.push(r):d.splice(Math.min(d.length-1,Math.max(0,r.insertAt)),0,r),r.line=l,s&&!ei(e,l)){var p=zn(l)<e.scrollTop;on(l,l.height+gr(r)),p&&Ro(s,r.height),s.curOp.forceUpdate=!0}return!0}),s&&qt(s,"lineWidgetAdded",s,r,typeof t=="number"?t:Bt(t)),r}var rs=0,Ri=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++rs};Ri.prototype.clear=function(){if(this.explicitlyCleared)return;var e=this.doc.cm,t=e&&!e.curOp;if(t&&zi(e),_(this,"clear")){var i=this.find();i&&qt(this,"clear",i.from,i.to)}for(var n=null,r=null,s=0;s<this.lines.length;++s){var l=this.lines[s],d=$n(l.markedSpans,this);e&&!this.collapsed?Ai(e,Bt(l),"text"):e&&(d.to!=null&&(r=Bt(l)),d.from!=null&&(n=Bt(l))),l.markedSpans=si(l.markedSpans,d),d.from==null&&this.collapsed&&!ei(this.doc,l)&&e&&on(l,Zi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var p=0;p<this.lines.length;++p){var v=gn(this.lines[p]),D=Xi(v);D>e.display.maxLineLength&&(e.display.maxLine=v,e.display.maxLineLength=D,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&Nn(e,n,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ja(e.doc)),e&&qt(e,"markerCleared",e,this,n,r),t&&Hi(e),this.parent&&this.parent.clear()},Ri.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],l=$n(s.markedSpans,this);if(l.from!=null&&(i=Ue(t?s:Bt(s),l.from),e==-1))return i;if(l.to!=null&&(n=Ue(t?s:Bt(s),l.to),e==1))return n}return i&&{from:i,to:n}},Ri.prototype.changed=function(){var e=this,t=this.find(-1,!0),i=this,n=this.doc.cm;if(!t||!n)return;Hn(n,function(){var r=t.line,s=Bt(t.line),l=go(n,s);if(l&&(la(l),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!ei(i.doc,r)&&i.height!=null){var d=i.height;i.height=null;var p=gr(i)-d;p&&on(r,r.height+p)}qt(n,"markerChanged",n,e)})},Ri.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||ye(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Ri.prototype.detachLine=function(e){if(this.lines.splice(ye(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},G(Ri);function ar(e,t,i,n,r){if(n&&n.shared)return xl(e,t,i,n,r);if(e.cm&&!e.cm.curOp)return Cn(e.cm,ar)(e,t,i,n,r);var s=new Ri(e,r),l=St(t,i);if(n&&g(n,s,!1),l>0||l==0&&s.clearWhenEmpty!==!1)return s;if(s.replacedWith&&(s.collapsed=!0,s.widgetNode=ne("span",[s.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||s.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(s.widgetNode.insertLeft=!0)),s.collapsed){if(mn(e,t.line,t,i,s)||t.line!=i.line&&mn(e,i.line,t,i,s))throw new Error("Inserting collapsed marker partially overlapping an existing one");ai()}s.addToHistory&&Fa(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var d=t.line,p=e.cm,v;if(e.iter(d,i.line+1,function(B){p&&s.collapsed&&!p.options.lineWrapping&&gn(B)==p.display.maxLine&&(v=!0),s.collapsed&&d!=t.line&&on(B,0),Jn(B,new yi(s,d==t.line?t.ch:null,d==i.line?i.ch:null)),++d}),s.collapsed&&e.iter(t.line,i.line+1,function(B){ei(e,B)&&on(B,0)}),s.clearOnEnter&&Ee(s,"beforeCursorEnter",function(){return s.clear()}),s.readOnly&&(Pn(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),s.collapsed&&(s.id=++rs,s.atomic=!0),p){if(v&&(p.curOp.updateMaxLine=!0),s.collapsed)Nn(p,t.line,i.line+1);else if(s.className||s.startStyle||s.endStyle||s.css||s.attributes||s.title)for(var D=t.line;D<=i.line;D++)Ai(p,D,"text");s.atomic&&Ja(p.doc),qt(p,"markerAdded",p,s)}return s}var Dr=function(e,t){this.markers=e,this.primary=t;for(var i=0;i<e.length;++i)e[i].parent=this};Dr.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();qt(this,"clear")},Dr.prototype.find=function(e,t){return this.primary.find(e,t)},G(Dr);function xl(e,t,i,n,r){n=g(n),n.shared=!1;var s=[ar(e,t,i,n,r)],l=s[0],d=n.widgetNode;return Mi(e,function(p){d&&(n.widgetNode=d.cloneNode(!0)),s.push(ar(p,o(p,t),o(p,i),n,r));for(var v=0;v<p.linked.length;++v)if(p.linked[v].isParent)return;l=_e(s)}),new Dr(s,l)}function os(e){return e.findMarks(Ue(e.first,0),e.clipPos(Ue(e.lastLine())),function(t){return t.parent})}function Al(e,t){for(var i=0;i<t.length;i++){var n=t[i],r=n.find(),s=e.clipPos(r.from),l=e.clipPos(r.to);if(St(s,l)){var d=ar(e,s,l,n.primary,n.primary.type);n.markers.push(d),d.parent=n}}}function wl(e){for(var t=function(n){var r=e[n],s=[r.primary.doc];Mi(r.primary.doc,function(p){return s.push(p)});for(var l=0;l<r.markers.length;l++){var d=r.markers[l];ye(s,d.doc)==-1&&(d.parent=null,r.markers.splice(l--,1))}},i=0;i<e.length;i++)t(i)}var Sl=0,Bn=function(e,t,i,n,r){if(!(this instanceof Bn))return new Bn(e,t,i,n,r);i==null&&(i=0),Tr.call(this,[new Rr([new xi("",null)])]),this.first=i,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=i;var s=Ue(i,0);this.sel=Si(s),this.history=new Yr(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)),Bo(this,{from:s,to:s,text:e}),Tn(this,Si(s),Me)};Bn.prototype=$e(Tr.prototype,{constructor:Bn,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=Rt(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:En(function(e){var t=Ue(this.first,0),i=this.first+this.size-1;rr(this,{from:t,to:Ue(i,Fe(this,i).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&br(this.cm,0,0),Tn(this,Si(t),Me)}),replaceRange:function(e,t,i,n){t=o(this,t),i=i?o(this,i):t,or(this,e,t,i,n)},getRange:function(e,t,i){var n=Gt(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(Ct(this,e))return Fe(this,e)},getLineNumber:function(e){return Bt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Fe(this,e)),gn(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:En(function(e,t,i){Ga(this,o(this,typeof e=="number"?Ue(e,t||0):e),null,i)}),setSelection:En(function(e,t,i){Ga(this,o(this,e),o(this,t||e),i)}),extendSelection:En(function(e,t,i){qr(this,o(this,e),t&&o(this,t),i)}),extendSelections:En(function(e,t){Ha(this,u(this,e),t)}),extendSelectionsBy:En(function(e,t){var i=nt(this.sel.ranges,e);Ha(this,u(this,i),t)}),setSelections:En(function(e,t,i){if(!e.length)return;for(var n=[],r=0;r<e.length;r++)n[r]=new Jt(o(this,e[r].anchor),o(this,e[r].head));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Tn(this,ni(this.cm,n,t),i)}),addSelection:En(function(e,t,i){var n=this.sel.ranges.slice(0);n.push(new Jt(o(this,e),o(this,t||e))),Tn(this,ni(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=Gt(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=Gt(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:En(function(e,t,i){for(var n=[],r=this.sel,s=0;s<r.ranges.length;s++){var l=r.ranges[s];n[s]={from:l.from(),to:l.to(),text:this.splitLines(e[s]),origin:i}}for(var d=t&&t!="end"&&dl(this,n,t),p=n.length-1;p>=0;p--)rr(this,n[p]);d?Qa(this,d):this.cm&&er(this.cm)}),undo:En(function(){to(this,"undo")}),redo:En(function(){to(this,"redo")}),undoSelection:En(function(){to(this,"undo",!0)}),redoSelection:En(function(){to(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 Yr(this.history.maxGeneration),Mi(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:nr(this.history.done),undone:nr(this.history.undone)}},setHistory:function(e){var t=this.history=new Yr(this.history.maxGeneration);t.done=nr(e.done.slice(0),null,!0),t.undone=nr(e.undone.slice(0),null,!0)},setGutterMarker:En(function(e,t,i){return Mr(this,e,"gutter",function(n){var r=n.gutterMarkers||(n.gutterMarkers={});return r[t]=i,!i&<(r)&&(n.gutterMarkers=null),!0})}),clearGutter:En(function(e){var t=this;this.iter(function(i){i.gutterMarkers&&i.gutterMarkers[e]&&Mr(t,i,"gutter",function(){return i.gutterMarkers[e]=null,lt(i.gutterMarkers)&&(i.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Ct(this,e))return null;if(t=e,e=Fe(this,e),!e)return null}else if(t=Bt(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:En(function(e,t,i){return Mr(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(ve(i).test(n[r]))return!1;n[r]+=" "+i}return!0})}),removeLineClass:En(function(e,t,i){return Mr(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 l=s.match(ve(i));if(!l)return!1;var d=l.index+l[0].length;n[r]=s.slice(0,l.index)+(!l.index||d==s.length?"":" ")+s.slice(d)||null}else return!1;return!0})}),addLineWidget:En(function(e,t,i){return El(this,e,t,i)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,i){return ar(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),ar(this,e,e,i,"bookmark")},findMarksAt:function(e){e=o(this,e);var t=[],i=Fe(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 l=s.markedSpans;if(l)for(var d=0;d<l.length;d++){var p=l[d];!(p.to!=null&&r==e.line&&e.ch>=p.to||p.from==null&&r!=e.line||p.from!=null&&r==t.line&&p.from>=t.ch)&&(!i||i(p.marker))&&n.push(p.marker.parent||p.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,Ue(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 Bn(Rt(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 Bn(Rt(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}],Al(n,os(this)),n},unlinkDoc:function(e){if(e instanceof rn&&(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),wl(os(this));break}if(e.history==this.history){var n=[e.id];Mi(e,function(r){return n.push(r.id)},!0),e.history=new Yr(null),e.history.done=nr(this.history.done,n),e.history.undone=nr(this.history.undone,n)}},iterLinkedDocs:function(e){Mi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):mt(e)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:En(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)})}),Bn.prototype.eachLine=Bn.prototype.iter;var as=0;function kl(e){var t=this;if(ss(t),Ie(t,e)||mi(t.display,e))return;y(e),S&&(as=+new Date);var i=ji(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),l=0,d=function(){++l==r&&Cn(t,function(){i=o(t.doc,i);var te={from:i,to:i,text:t.doc.splitLines(s.filter(function(Ae){return Ae!=null}).join(t.doc.lineSeparator())),origin:"paste"};rr(t.doc,te),Qa(t.doc,Si(o(t.doc,i),o(t.doc,ki(te))))})()},p=function(te,Ae){if(t.options.allowDropFileTypes&&ye(t.options.allowDropFileTypes,te.type)==-1){d();return}var Pe=new FileReader;Pe.onerror=function(){return d()},Pe.onload=function(){var ze=Pe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ze)){d();return}s[Ae]=ze,d()},Pe.readAsText(te)},v=0;v<n.length;v++)p(n[v],v);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 D=e.dataTransfer.getData("Text");if(D){var B;if(t.state.draggingText&&!t.state.draggingText.copy&&(B=t.listSelections()),$r(t.doc,Si(i,i)),B)for(var oe=0;oe<B.length;++oe)or(t.doc,"",B[oe].anchor,B[oe].head,"drag");t.replaceSelection(D,"around","paste"),t.display.input.focus()}}catch(te){}}}function Ml(e,t){if(S&&(!e.state.draggingText||+new Date-as<100)){T(t);return}if(Ie(e,t)||mi(e.display,t))return;if(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!Y){var i=x("img",null,null,"position: fixed; left: 0; top: 0;");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",A&&(i.width=i.height=1,e.display.wrapper.appendChild(i),i._top=i.offsetTop),t.dataTransfer.setDragImage(i,0,0),A&&i.parentNode.removeChild(i)}}function Rl(e,t){var i=ji(e,t);if(!i)return;var n=document.createDocumentFragment();ba(e,i,n),e.display.dragCursor||(e.display.dragCursor=x("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),I(e.display.dragCursor,n)}function ss(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function ls(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 us=!1;function Tl(){if(us)return;Ll(),us=!0}function Ll(){var e;Ee(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,ls(Dl)},100))}),Ee(window,"blur",function(){return ls($i)})}function Dl(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ti={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"},Ir=0;Ir<10;Ir++)Ti[Ir+48]=Ti[Ir+96]=String(Ir);for(var no=65;no<=90;no++)Ti[no]=String.fromCharCode(no);for(var Or=1;Or<=12;Or++)Ti[Or+111]=Ti[Or+63235]="F"+Or;var gi={};gi.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"},gi.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"},gi.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"},gi.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"]},gi.default=ee?gi.macDefault:gi.pcDefault;function Il(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var i,n,r,s,l=0;l<t.length-1;l++){var d=t[l];if(/^(cmd|meta|m)$/i.test(d))s=!0;else if(/^a(lt)?$/i.test(d))i=!0;else if(/^(c|ctrl|control)$/i.test(d))n=!0;else if(/^s(hift)?$/i.test(d))r=!0;else throw new Error("Unrecognized modifier name: "+d)}return i&&(e="Alt-"+e),n&&(e="Ctrl-"+e),s&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Ol(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=nt(i.split(" "),Il),s=0;s<r.length;s++){var l=void 0,d=void 0;s==r.length-1?(d=r.join(" "),l=n):(d=r.slice(0,s+1).join(" "),l="...");var p=t[d];if(!p)t[d]=l;else if(p!=l)throw new Error("Inconsistent bindings for "+d)}delete e[i]}for(var v in t)e[v]=t[v];return e}function sr(e,t,i,n){t=io(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 sr(e,t.fallthrough,i,n);for(var s=0;s<t.fallthrough.length;s++){var l=sr(e,t.fallthrough[s],i,n);if(l)return l}}}function hs(e){var t=typeof e=="string"?e:Ti[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function cs(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 ds(e,t){if(A&&e.keyCode==34&&e.char)return!1;var i=Ti[e.keyCode];return i==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(i=e.code),cs(i,e,t))}function io(e){return typeof e=="string"?gi[e]:e}function lr(e,t){for(var i=e.doc.sel.ranges,n=[],r=0;r<i.length;r++){for(var s=t(i[r]);n.length&&St(s.from,_e(n).to)<=0;){var l=n.pop();if(St(l.from,s.from)<0){s.from=l.from;break}}n.push(s)}Hn(e,function(){for(var d=n.length-1;d>=0;d--)or(e.doc,"",n[d].from,n[d].to,"+delete");er(e)})}function Fo(e,t,i){var n=Qe(e.text,t+i,i);return n<0||n>e.text.length?null:n}function Wo(e,t,i){var n=Fo(e,t.ch,i);return n==null?null:new Ue(t.line,n,i<0?"after":"before")}function zo(e,t,i,n,r){if(e){t.doc.direction=="rtl"&&(r=-r);var s=st(i,t.doc.direction);if(s){var l=r<0?_e(s):s[0],d=r<0==(l.level==1),p=d?"after":"before",v;if(l.level>0||t.doc.direction=="rtl"){var D=Yi(t,i);v=r<0?i.text.length-1:0;var B=hi(t,D,v).top;v=dt(function(oe){return hi(t,D,oe).top==B},r<0==(l.level==1)?l.from:l.to-1,v),p=="before"&&(v=Fo(i,v,1))}else v=r<0?l.to:l.from;return new Ue(n,v,p)}}return new Ue(n,r<0?i.text.length:0,r<0?"before":"after")}function Pl(e,t,i,n){var r=st(t,e.doc.direction);if(!r)return Wo(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=Je(r,i.ch,i.sticky),l=r[s];if(e.doc.direction=="ltr"&&l.level%2==0&&(n>0?l.to>i.ch:l.from<i.ch))return Wo(t,i,n);var d=function(Xe,at){return Fo(t,Xe instanceof Ue?Xe.ch:Xe,at)},p,v=function(Xe){return e.options.lineWrapping?(p=p||Yi(e,t),ma(e,t,p,Xe)):{begin:0,end:t.text.length}},D=v(i.sticky=="before"?d(i,-1):i.ch);if(e.doc.direction=="rtl"||l.level==1){var B=l.level==1==n<0,oe=d(i,B?1:-1);if(oe!=null&&(B?oe<=l.to&&oe<=D.end:oe>=l.from&&oe>=D.begin)){var te=B?"before":"after";return new Ue(i.line,oe,te)}}var Ae=function(Xe,at,Ye){for(var ht=function(en,xn){return xn?new Ue(i.line,d(en,1),"before"):new Ue(i.line,en,"after")};Xe>=0&&Xe<r.length;Xe+=at){var wt=r[Xe],Et=at>0==(wt.level!=1),Pt=Et?Ye.begin:d(Ye.end,-1);if(wt.from<=Pt&&Pt<wt.to)return ht(Pt,Et);if(Pt=Et?wt.from:d(wt.to,-1),Ye.begin<=Pt&&Pt<Ye.end)return ht(Pt,Et)}},Pe=Ae(s+n,n,D);if(Pe)return Pe;var ze=n>0?D.end:d(D.begin,-1);return ze!=null&&!(n>0&&ze==t.text.length)&&(Pe=Ae(n>0?0:r.length-1,n,v(ze)),Pe)?Pe:null}var Pr={selectAll:Ya,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Me)},killLine:function(e){return lr(e,function(t){if(t.empty()){var i=Fe(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line<e.lastLine()?{from:t.head,to:Ue(t.head.line+1,0)}:{from:t.head,to:Ue(t.head.line,i)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return lr(e,function(t){return{from:Ue(t.from().line,0),to:o(e.doc,Ue(t.to().line+1,0))}})},delLineLeft:function(e){return lr(e,function(t){return{from:Ue(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return lr(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 lr(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(Ue(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(Ue(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return fs(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return ps(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return Nl(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")},xe)},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")},xe)},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/)?ps(e,t.head):n},xe)},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(),l=Q(e.getLine(s.line),s.ch,n);t.push(F(n-l%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Hn(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=Fe(e.doc,r.line).text;if(s){if(r.ch==s.length&&(r=new Ue(r.line,r.ch-1)),r.ch>0)r=new Ue(r.line,r.ch+1),e.replaceRange(s.charAt(r.ch-1)+s.charAt(r.ch-2),Ue(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var l=Fe(e.doc,r.line-1).text;l&&(r=new Ue(r.line,1),e.replaceRange(s.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),Ue(r.line-1,l.length-1),r,"+transpose"))}}i.push(new Jt(r,r))}e.setSelections(i)})},newlineAndIndent:function(e){return Hn(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);er(e)})},openLine:function(e){return e.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function fs(e,t){var i=Fe(e.doc,t),n=gn(i);return n!=i&&(t=Bt(n)),zo(!0,e,n,t,1)}function Nl(e,t){var i=Fe(e.doc,t),n=li(i);return n!=i&&(t=Bt(n)),zo(!0,e,i,t,-1)}function ps(e,t){var i=fs(e,t.line),n=Fe(e.doc,i.line),r=st(n,e.doc.direction);if(!r||r[0].level==0){var s=Math.max(i.ch,n.text.search(/\S/)),l=t.line==i.line&&t.ch<=s&&t.ch;return Ue(i.line,l?0:s,i.sticky)}return i}function ro(e,t,i){if(typeof t=="string"&&(t=Pr[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)!=Ve}finally{e.display.shift=n,e.state.suppressEdits=!1}return r}function Bl(e,t,i){for(var n=0;n<e.state.keyMaps.length;n++){var r=sr(t,e.state.keyMaps[n],i,e);if(r)return r}return e.options.extraKeys&&sr(t,e.options.extraKeys,i,e)||sr(t,e.options.keyMap,i,e)}var Ul=new we;function Nr(e,t,i,n){var r=e.state.keySeq;if(r){if(hs(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Ul.set(50,function(){e.state.keySeq==r&&(e.state.keySeq=null,e.display.input.reset())}),ms(e,r+" "+t,i,n))return!0}return ms(e,t,i,n)}function ms(e,t,i,n){var r=Bl(e,t,n);return r=="multi"&&(e.state.keySeq=t),r=="handled"&&qt(e,"keyHandled",e,t,i),(r=="handled"||r=="multi")&&(y(i),So(e)),!!r}function gs(e,t){var i=ds(t,!0);return i?t.shiftKey&&!e.state.keySeq?Nr(e,"Shift-"+i,t,function(n){return ro(e,n,!0)})||Nr(e,i,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return ro(e,n)}):Nr(e,i,t,function(n){return ro(e,n)}):!1}function jl(e,t,i){return Nr(e,"'"+i+"'",t,function(n){return ro(e,n,!0)})}var Ho=null;function vs(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(t.curOp.focus=L(),Ie(t,e))return;S&&k<11&&e.keyCode==27&&(e.returnValue=!1);var i=e.keyCode;t.display.shift=i==16||e.shiftKey;var n=gs(t,e);A&&(Ho=n?i:null,!n&&i==88&&!Ut&&(ee?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),q&&!ee&&!n&&i==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),i==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&_l(t)}function _l(e){var t=e.display.lineDiv;J(t,"CodeMirror-crosshair");function i(n){(n.keyCode==18||!n.altKey)&&(pe(t,"CodeMirror-crosshair"),rt(document,"keyup",i),rt(document,"mouseover",i))}Ee(document,"keyup",i),Ee(document,"mouseover",i)}function ys(e){e.keyCode==16&&(this.doc.sel.shift=!1),Ie(this,e)}function bs(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(mi(t.display,e)||Ie(t,e)||e.ctrlKey&&!e.altKey||ee&&e.metaKey)return;var i=e.keyCode,n=e.charCode;if(A&&i==Ho){Ho=null,y(e);return}if(A&&(!e.which||e.which<10)&&gs(t,e))return;var r=String.fromCharCode(n==null?i:n);if(r=="\b")return;if(jl(t,e,r))return;t.display.input.onKeyPress(e)}var Fl=400,Go=function(e,t,i){this.time=e,this.pos=t,this.button=i};Go.prototype.compare=function(e,t,i){return this.time+Fl>e&&St(t,this.pos)==0&&i==this.button};var Br,Ur;function Wl(e,t){var i=+new Date;return Ur&&Ur.compare(i,e,t)?(Br=Ur=null,"triple"):Br&&Br.compare(i,e,t)?(Ur=new Go(i,e,t),Br=null,"double"):(Br=new Go(i,e,t),Ur=null,"single")}function Cs(e){var t=this,i=t.display;if(Ie(t,e)||i.activeTouch&&i.input.supportsTouch())return;if(i.input.ensurePolled(),i.shift=e.shiftKey,mi(i,e)){R||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(Qo(t,e))return;var n=ji(t,e),r=fe(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):ie(e)==i.scroller&&y(e):r==2?(n&&qr(t.doc,n),setTimeout(function(){return i.input.focus()},20)):r==3&&(Ne?t.display.input.onContextMenu(e):Ea(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,Nr(e,cs(s,r),r,function(l){if(typeof l=="string"&&(l=Pr[l]),!l)return!1;var d=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),d=l(e,i)!=Ve}finally{e.state.suppressEdits=!1}return d})}function Hl(e,t,i){var n=e.getOption("configureMouse"),r=n?n(e,t,i):{};if(r.unit==null){var s=ke?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=ee?i.metaKey:i.ctrlKey),r.moveOnDrag==null&&(r.moveOnDrag=!(ee?i.altKey:i.ctrlKey)),r}function Gl(e,t,i,n){S?setTimeout(E(Ca,e),0):e.curOp.focus=L();var r=Hl(e,i,n),s=e.doc.sel,l;e.options.dragDrop&&Be&&!e.isReadOnly()&&i=="single"&&(l=s.contains(t))>-1&&(St((l=s.ranges[l]).from(),t)<0||t.xRel>0)&&(St(l.to(),t)>0||t.xRel<0)?Ql(e,n,t,r):Vl(e,n,t,r)}function Ql(e,t,i,n){var r=e.display,s=!1,l=Cn(e,function(v){R&&(r.scroller.draggable=!1),e.state.draggingText=!1,rt(r.wrapper.ownerDocument,"mouseup",l),rt(r.wrapper.ownerDocument,"mousemove",d),rt(r.scroller,"dragstart",p),rt(r.scroller,"drop",l),s||(y(v),n.addNew||qr(e.doc,i,null,null,n.extend),R&&!Y||S&&k==9?setTimeout(function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()},20):r.input.focus())}),d=function(v){s=s||Math.abs(t.clientX-v.clientX)+Math.abs(t.clientY-v.clientY)>=10},p=function(){return s=!0};R&&(r.scroller.draggable=!0),e.state.draggingText=l,l.copy=!n.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop(),Ee(r.wrapper.ownerDocument,"mouseup",l),Ee(r.wrapper.ownerDocument,"mousemove",d),Ee(r.scroller,"dragstart",p),Ee(r.scroller,"drop",l),Ea(e),setTimeout(function(){return r.input.focus()},20)}function Es(e,t,i){if(i=="char")return new Jt(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Jt(Ue(t.line,0),o(e.doc,Ue(t.line+1,0)));var n=i(e,t);return new Jt(n.from,n.to)}function Vl(e,t,i,n){var r=e.display,s=e.doc;y(t);var l,d,p=s.sel,v=p.ranges;if(n.addNew&&!n.extend?(d=s.sel.contains(i),d>-1?l=v[d]:l=new Jt(i,i)):(l=s.sel.primary(),d=s.sel.primIndex),n.unit=="rectangle")n.addNew||(l=new Jt(i,i)),i=ji(e,t,!0,!0),d=-1;else{var D=Es(e,i,n.unit);n.extend?l=jo(l,D.anchor,D.head,n.extend):l=D}n.addNew?d==-1?(d=v.length,Tn(s,ni(e,v.concat([l]),d),{scroll:!1,origin:"*mouse"})):v.length>1&&v[d].empty()&&n.unit=="char"&&!n.extend?(Tn(s,ni(e,v.slice(0,d).concat(v.slice(d+1)),0),{scroll:!1,origin:"*mouse"}),p=s.sel):_o(s,d,l,Ce):(d=0,Tn(s,new Xn([l],0),Ce),p=s.sel);var B=i;function oe(Ye){if(St(B,Ye)==0)return;if(B=Ye,n.unit=="rectangle"){for(var ht=[],wt=e.options.tabSize,Et=Q(Fe(s,i.line).text,i.ch,wt),Pt=Q(Fe(s,Ye.line).text,Ye.ch,wt),en=Math.min(Et,Pt),xn=Math.max(Et,Pt),sn=Math.min(i.line,Ye.line),Gn=Math.min(e.lastLine(),Math.max(i.line,Ye.line));sn<=Gn;sn++){var Un=Fe(s,sn).text,dn=Se(Un,en,wt);en==xn?ht.push(new Jt(Ue(sn,dn),Ue(sn,dn))):Un.length>dn&&ht.push(new Jt(Ue(sn,dn),Ue(sn,Se(Un,xn,wt))))}ht.length||ht.push(new Jt(i,i)),Tn(s,ni(e,p.ranges.slice(0,d).concat(ht),d),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Ye)}else{var jn=l,Mn=Es(e,Ye,n.unit),vn=jn.anchor,fn;St(Mn.anchor,vn)>0?(fn=Mn.head,vn=Di(jn.from(),Mn.anchor)):(fn=Mn.anchor,vn=fi(jn.to(),Mn.head));var ln=p.ranges.slice(0);ln[d]=Jl(e,new Jt(o(s,vn),fn)),Tn(s,ni(e,ln,d),Ce)}}var te=r.wrapper.getBoundingClientRect(),Ae=0;function Pe(Ye){var ht=++Ae,wt=ji(e,Ye,!0,n.unit=="rectangle");if(!wt)return;if(St(wt,B)!=0){e.curOp.focus=L(),oe(wt);var Et=Vr(r,s);(wt.line>=Et.to||wt.line<Et.from)&&setTimeout(Cn(e,function(){Ae==ht&&Pe(Ye)}),150)}else{var Pt=Ye.clientY<te.top?-20:Ye.clientY>te.bottom?20:0;Pt&&setTimeout(Cn(e,function(){if(Ae!=ht)return;r.scroller.scrollTop+=Pt,Pe(Ye)}),50)}}function ze(Ye){e.state.selectingText=!1,Ae=Infinity,Ye&&(y(Ye),r.input.focus()),rt(r.wrapper.ownerDocument,"mousemove",Xe),rt(r.wrapper.ownerDocument,"mouseup",at),s.history.lastSelOrigin=null}var Xe=Cn(e,function(Ye){Ye.buttons===0||!fe(Ye)?ze(Ye):Pe(Ye)}),at=Cn(e,ze);e.state.selectingText=at,Ee(r.wrapper.ownerDocument,"mousemove",Xe),Ee(r.wrapper.ownerDocument,"mouseup",at)}function Jl(e,t){var i=t.anchor,n=t.head,r=Fe(e.doc,i.line);if(St(i,n)==0&&i.sticky==n.sticky)return t;var s=st(r);if(!s)return t;var l=Je(s,i.ch,i.sticky),d=s[l];if(d.from!=i.ch&&d.to!=i.ch)return t;var p=l+(d.from==i.ch==(d.level!=1)?0:1);if(p==0||p==s.length)return t;var v;if(n.line!=i.line)v=(n.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var D=Je(s,n.ch,n.sticky),B=D-l||(n.ch-i.ch)*(d.level==1?-1:1);D==p-1||D==p?v=B<0:v=B>0}var oe=s[p+(v?-1:0)],te=v==(oe.level==1),Ae=te?oe.from:oe.to,Pe=te?"after":"before";return i.ch==Ae&&i.sticky==Pe?t:new Jt(new Ue(i.line,Ae,Pe),n)}function xs(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(oe){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&y(t);var l=e.display,d=l.lineDiv.getBoundingClientRect();if(s>d.bottom||!_(e,i))return w(t);s-=d.top-l.viewOffset;for(var p=0;p<e.display.gutterSpecs.length;++p){var v=l.gutters.childNodes[p];if(v&&v.getBoundingClientRect().right>=r){var D=pn(e.doc,s),B=e.display.gutterSpecs[p];return be(e,i,e,D,B.className,t),w(t)}}}function Qo(e,t){return xs(e,t,"gutterClick",!0)}function As(e,t){if(mi(e.display,t)||Kl(e,t))return;if(Ie(e,t,"contextmenu"))return;Ne||e.display.input.onContextMenu(t)}function Kl(e,t){return _(e,"gutterContextMenu")?xs(e,t,"gutterContextMenu",!1):!1}function ws(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),vr(e)}var ur={toString:function(){return"CodeMirror.Init"}},Ss={},oo={};function Xl(e){var t=e.optionHandlers;function i(n,r,s,l){e.defaults[n]=r,s&&(t[n]=l?function(d,p,v){v!=ur&&s(d,p,v)}:s)}e.defineOption=i,e.Init=ur,i("value","",function(n,r){return n.setValue(r)},!0),i("mode",null,function(n,r){n.doc.modeOption=r,No(n)},!0),i("indentUnit",2,No,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(n){Sr(n),vr(n),Nn(n)},!0),i("lineSeparator",null,function(n,r){if(n.doc.lineSep=r,!r)return;var s=[],l=n.doc.first;n.doc.iter(function(p){for(var v=0;;){var D=p.text.indexOf(r,v);if(D==-1)break;v=D+r.length,s.push(Ue(l,D))}l++});for(var d=s.length-1;d>=0;d--)or(n.doc,r,s[d],Ue(s[d].line,s[d].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!=ur&&n.refresh()}),i("specialCharPlaceholder",vt,function(n){return n.refresh()},!0),i("electricChars",!0),i("inputStyle",Z?"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",!He),i("wholeLineUpdateBefore",!0),i("theme","default",function(n){ws(n),wr(n)},!0),i("keyMap","default",function(n,r,s){var l=io(r),d=s!=ur&&io(s);d&&d.detach&&d.detach(n,l),l.attach&&l.attach(n,d||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Zl,!0),i("gutters",[],function(n,r){n.display.gutterSpecs=Oo(r,n.options.lineNumbers),wr(n)},!0),i("fixedGutter",!0,function(n,r){n.display.gutters.style.left=r?Ao(n.display)+"px":"0",n.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(n){return tr(n)},!0),i("scrollbarStyle","native",function(n){Ma(n),tr(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=Oo(n.options.gutters,r),wr(n)},!0),i("firstLineNumber",1,wr,!0),i("lineNumberFormatter",function(n){return n},wr,!0),i("showCursorWhenSelecting",!1,yr,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(n,r){r=="nocursor"&&($i(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,yr,!0),i("singleCursorHeightPerLine",!0,yr,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Sr,!0),i("addModeClass",!1,Sr,!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,Sr,!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!=ur;if(!t!=!n){var r=e.display.dragFunctions,s=t?Ee:rt;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?(J(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(pe(e.display.wrapper,"CodeMirror-wrap"),pi(e)),wo(e),Nn(e),vr(e),setTimeout(function(){return tr(e)},100)}function rn(e,t){var i=this;if(!(this instanceof rn))return new rn(e,t);this.options=t=t?g(t):{},g(Ss,t,!1);var n=t.value;typeof n=="string"?n=new Bn(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var r=new rn.inputStyles[t.inputStyle](this),s=this.display=new hl(e,n,r,t);s.wrapper.CodeMirror=this,ws(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ma(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new we,keySeq:null,specialChars:null},t.autofocus&&!Z&&s.input.focus(),S&&k<11&&setTimeout(function(){return i.display.input.reset(!0)},20),ql(this),Tl(),zi(this),this.curOp.forceUpdate=!0,Ua(this,n),t.autofocus&&!Z||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&ko(i)},20):$i(this);for(var l in oo)oo.hasOwnProperty(l)&&oo[l](this,t[l],ur);La(this),t.finishInit&&t.finishInit(this);for(var d=0;d<Vo.length;++d)Vo[d](this);Hi(this),R&&t.lineWrapping&&getComputedStyle(s.lineDiv).textRendering=="optimizelegibility"&&(s.lineDiv.style.textRendering="auto")}rn.defaults=Ss,rn.optionHandlers=oo;function ql(e){var t=e.display;Ee(t.scroller,"mousedown",Cn(e,Cs)),S&&k<11?Ee(t.scroller,"dblclick",Cn(e,function(p){if(Ie(e,p))return;var v=ji(e,p);if(!v||Qo(e,p)||mi(e.display,p))return;y(p);var D=e.findWordAt(v);qr(e.doc,D.anchor,D.head)})):Ee(t.scroller,"dblclick",function(p){return Ie(e,p)||y(p)}),Ee(t.scroller,"contextmenu",function(p){return As(e,p)}),Ee(t.input.getField(),"contextmenu",function(p){t.scroller.contains(p.target)||As(e,p)});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(p){if(p.touches.length!=1)return!1;var v=p.touches[0];return v.radiusX<=1&&v.radiusY<=1}function l(p,v){if(v.left==null)return!0;var D=v.left-p.left,B=v.top-p.top;return D*D+B*B>20*20}Ee(t.scroller,"touchstart",function(p){if(!Ie(e,p)&&!s(p)&&!Qo(e,p)){t.input.ensurePolled(),clearTimeout(i);var v=+new Date;t.activeTouch={start:v,moved:!1,prev:v-n.end<=300?n:null},p.touches.length==1&&(t.activeTouch.left=p.touches[0].pageX,t.activeTouch.top=p.touches[0].pageY)}}),Ee(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Ee(t.scroller,"touchend",function(p){var v=t.activeTouch;if(v&&!mi(t,p)&&v.left!=null&&!v.moved&&new Date-v.start<300){var D=e.coordsChar(t.activeTouch,"page"),B;!v.prev||l(v,v.prev)?B=new Jt(D,D):!v.prev.prev||l(v,v.prev.prev)?B=e.findWordAt(D):B=new Jt(Ue(D.line,0),o(e.doc,Ue(D.line+1,0))),e.setSelection(B.anchor,B.head),e.focus(),y(p)}r()}),Ee(t.scroller,"touchcancel",r),Ee(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Cr(e,t.scroller.scrollTop),Fi(e,t.scroller.scrollLeft,!0),be(e,"scroll",e))}),Ee(t.scroller,"mousewheel",function(p){return Oa(e,p)}),Ee(t.scroller,"DOMMouseScroll",function(p){return Oa(e,p)}),Ee(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(p){Ie(e,p)||T(p)},over:function(p){Ie(e,p)||(Rl(e,p),T(p))},start:function(p){return Ml(e,p)},drop:Cn(e,kl),leave:function(p){Ie(e,p)||ss(e)}};var d=t.input.getField();Ee(d,"keyup",function(p){return ys.call(e,p)}),Ee(d,"keydown",Cn(e,vs)),Ee(d,"keypress",Cn(e,bs)),Ee(d,"focus",function(p){return ko(e,p)}),Ee(d,"blur",function(p){return $i(e,p)})}var Vo=[];rn.defineInitHook=function(e){return Vo.push(e)};function jr(e,t,i,n){var r=e.doc,s;i==null&&(i="add"),i=="smart"&&(r.mode.indent?s=se(e,t).state:i="prev");var l=e.options.tabSize,d=Fe(r,t),p=Q(d.text,null,l);d.stateAfter&&(d.stateAfter=null);var v=d.text.match(/^\s*/)[0],D;if(!n&&!/\S/.test(d.text))D=0,i="not";else if(i=="smart"&&(D=r.mode.indent(s,d.text.slice(v.length),d.text),D==Ve||D>150)){if(!n)return;i="prev"}i=="prev"?t>r.first?D=Q(Fe(r,t-1).text,null,l):D=0:i=="add"?D=p+e.options.indentUnit:i=="subtract"?D=p-e.options.indentUnit:typeof i=="number"&&(D=p+i),D=Math.max(0,D);var B="",oe=0;if(e.options.indentWithTabs)for(var te=Math.floor(D/l);te;--te)oe+=l,B+=" ";if(oe<D&&(B+=F(D-oe)),B!=v)return or(r,B,Ue(t,0),Ue(t,v.length),"+input"),d.stateAfter=null,!0;for(var Ae=0;Ae<r.sel.ranges.length;Ae++){var Pe=r.sel.ranges[Ae];if(Pe.head.line==t&&Pe.head.ch<v.length){var ze=Ue(t,v.length);_o(r,Ae,new Jt(ze,ze));break}}}var ii=null;function ao(e){ii=e}function Jo(e,t,i,n,r){var s=e.doc;e.display.shift=!1,n||(n=s.sel);var l=+new Date-200,d=r=="paste"||e.state.pasteIncoming>l,p=mt(t),v=null;if(d&&n.ranges.length>1)if(ii&&ii.text.join(`
|
|
`)==t){if(n.ranges.length%ii.text.length==0){v=[];for(var D=0;D<ii.text.length;D++)v.push(s.splitLines(ii.text[D]))}}else p.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(v=nt(p,function(Xe){return[Xe]}));for(var B=e.curOp.updateInput,oe=n.ranges.length-1;oe>=0;oe--){var te=n.ranges[oe],Ae=te.from(),Pe=te.to();te.empty()&&(i&&i>0?Ae=Ue(Ae.line,Ae.ch-i):e.state.overwrite&&!d?Pe=Ue(Pe.line,Math.min(Fe(s,Pe.line).text.length,Pe.ch+_e(p).length)):d&&ii&&ii.lineWise&&ii.text.join(`
|
|
`)==p.join(`
|
|
`)&&(Ae=Pe=Ue(Ae.line,0)));var ze={from:Ae,to:Pe,text:v?v[oe%v.length]:p,origin:r||(d?"paste":e.state.cutIncoming>l?"cut":"+input")};rr(e.doc,ze),qt(e,"inputRead",e,ze)}t&&!d&&Ms(e,t),er(e),e.curOp.updateInput<2&&(e.curOp.updateInput=B),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ks(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Hn(t,function(){return Jo(t,i,0,null,"paste")}),!0}function Ms(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var i=e.doc.sel,n=i.ranges.length-1;n>=0;n--){var 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),l=!1;if(s.electricChars){for(var d=0;d<s.electricChars.length;d++)if(t.indexOf(s.electricChars.charAt(d))>-1){l=jr(e,r.head.line,"smart");break}}else s.electricInput&&(s.electricInput.test(Fe(e.doc,r.head.line).text.slice(0,r.head.ch))&&(l=jr(e,r.head.line,"smart")));l&&qt(e,"electricInput",e,r.head.line)}}function Rs(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:Ue(r,0),head:Ue(r+1,0)};i.push(s),t.push(e.getRange(s.anchor,s.head))}return{text:t,ranges:i}}function Ts(e,t,i,n){e.setAttribute("autocorrect",i?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function Ls(){var e=x("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=x("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return R?e.style.width="1000px":e.setAttribute("wrap","off"),U&&(e.style.border="1px solid black"),Ts(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,l=s[n];if(s[n]==r&&n!="mode")return;s[n]=r,t.hasOwnProperty(n)&&Cn(this,t[n])(this,r,l),be(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"](io(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:Dn(function(n,r){var s=n.token?n:e.getMode(this.options,n);if(s.startState)throw new Error("Overlays may not be stateful.");qe(this.state.overlays,{mode:s,modeSpec:n,opaque:r&&r.opaque,priority:r&&r.priority||0},function(l){return l.priority}),this.state.modeGen++,Nn(this)}),removeOverlay:Dn(function(n){for(var r=this.state.overlays,s=0;s<r.length;++s){var l=r[s].modeSpec;if(l==n||typeof n=="string"&&l.name==n){r.splice(s,1),this.state.modeGen++,Nn(this);return}}}),indentLine:Dn(function(n,r,s){typeof r!="string"&&typeof r!="number"&&(r==null?r=this.options.smartIndent?"smart":"prev":r=r?"add":"subtract"),Ct(this.doc,n)&&jr(this,n,r,s)}),indentSelection:Dn(function(n){for(var r=this.doc.sel.ranges,s=-1,l=0;l<r.length;l++){var d=r[l];if(d.empty())d.head.line>s&&(jr(this,d.head.line,n,!0),s=d.head.line,l==this.doc.sel.primIndex&&er(this));else{var p=d.from(),v=d.to(),D=Math.max(s,p.line);s=Math.min(this.lastLine(),v.line-(v.ch?0:1))+1;for(var B=D;B<s;++B)jr(this,B,n);var oe=this.doc.sel.ranges;p.ch==0&&r.length==oe.length&&oe[l].from().ch>0&&_o(this.doc,l,new Jt(p,oe[l].to()),Me)}}}),getTokenAt:function(n,r){return Kt(this,n,r)},getLineTokens:function(n,r){return Kt(this,Ue(n),r,!0)},getTokenTypeAt:function(n){n=o(this.doc,n);var r=Le(this,Fe(this.doc,n.line)),s=0,l=(r.length-1)/2,d=n.ch,p;if(d==0)p=r[2];else for(;;){var v=s+l>>1;if((v?r[v*2-1]:0)>=d)l=v;else if(r[v*2+1]<d)s=v+1;else{p=r[v*2+2];break}}var D=p?p.indexOf("overlay "):-1;return D<0?p:D==0?null:p.slice(0,D-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 l=i[r],d=this.getModeAt(n);if(typeof d[r]=="string")l[d[r]]&&s.push(l[d[r]]);else if(d[r])for(var p=0;p<d[r].length;p++){var v=l[d[r][p]];v&&s.push(v)}else d.helperType&&l[d.helperType]?s.push(l[d.helperType]):l[d.name]&&s.push(l[d.name]);for(var D=0;D<l._global.length;D++){var B=l._global[D];B.pred(d,this)&&ye(s,B.val)==-1&&s.push(B.val)}return s},getStateAfter:function(n,r){var s=this.doc;return n=c(s,n==null?s.first+s.size-1:n),se(this,n+1,r).state},cursorCoords:function(n,r){var s,l=this.doc.sel.primary();return n==null?s=l.head:typeof n=="object"?s=o(this.doc,n):s=n?l.from():l.to(),ti(this,s,r||"page")},charCoords:function(n,r){return yo(this,o(this.doc,n),r||"page")},coordsChar:function(n,r){return n=da(this,n,r||"page"),Co(this,n.left,n.top)},lineAtHeight:function(n,r){return n=da(this,{top:n,left:0},r||"page").top,pn(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,r,s){var l=!1,d;if(typeof n=="number"){var p=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>p&&(n=p,l=!0),d=Fe(this.doc,n)}else d=n;return zr(this,d,{top:0,left:0},r||"page",s||l).top+(l?this.doc.height-zn(d):0)},defaultTextHeight:function(){return Zi(this.display)},defaultCharWidth:function(){return qi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,r,s,l,d){var p=this.display;n=ti(this,o(this.doc,n));var v=n.bottom,D=n.left;if(r.style.position="absolute",r.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(r),p.sizer.appendChild(r),l=="over")v=n.top;else if(l=="above"||l=="near"){var B=Math.max(p.wrapper.clientHeight,this.doc.height),oe=Math.max(p.sizer.clientWidth,p.lineSpace.clientWidth);(l=="above"||n.bottom+r.offsetHeight>B)&&n.top>r.offsetHeight?v=n.top-r.offsetHeight:n.bottom+r.offsetHeight<=B&&(v=n.bottom),D+r.offsetWidth>oe&&(D=oe-r.offsetWidth)}r.style.top=v+"px",r.style.left=r.style.right="",d=="right"?(D=p.sizer.clientWidth-r.offsetWidth,r.style.right="0px"):(d=="left"?D=0:d=="middle"&&(D=(p.sizer.clientWidth-r.offsetWidth)/2),r.style.left=D+"px"),s&&Ys(this,{left:D,top:v,right:D+r.offsetWidth,bottom:v+r.offsetHeight})},triggerOnKeyDown:Dn(vs),triggerOnKeyPress:Dn(bs),triggerOnKeyUp:ys,triggerOnMouseDown:Dn(Cs),execCommand:function(n){if(Pr.hasOwnProperty(n))return Pr[n].call(null,this)},triggerElectric:Dn(function(n){Ms(this,n)}),findPosH:function(n,r,s,l){var d=1;r<0&&(d=-1,r=-r);for(var p=o(this.doc,n),v=0;v<r&&!(p=Ko(this.doc,p,d,s,l),p.hitSide);++v);return p},moveH:Dn(function(n,r){var s=this;this.extendSelectionsBy(function(l){return s.display.shift||s.doc.extend||l.empty()?Ko(s.doc,l.head,n,r,s.options.rtlMoveVisually):n<0?l.from():l.to()},xe)}),deleteH:Dn(function(n,r){var s=this.doc.sel,l=this.doc;s.somethingSelected()?l.replaceSelection("",null,"+delete"):lr(this,function(d){var p=Ko(l,d.head,n,r,!1);return n<0?{from:p,to:d.head}:{from:d.head,to:p}})}),findPosV:function(n,r,s,l){var d=1,p=l;r<0&&(d=-1,r=-r);for(var v=o(this.doc,n),D=0;D<r;++D){var B=ti(this,v,"div");if(p==null?p=B.left:B.left=p,v=Ds(this,B,d,s),v.hitSide)break}return v},moveV:Dn(function(n,r){var s=this,l=this.doc,d=[],p=!this.display.shift&&!l.extend&&l.sel.somethingSelected();if(l.extendSelectionsBy(function(D){if(p)return n<0?D.from():D.to();var B=ti(s,D.head,"div");D.goalColumn!=null&&(B.left=D.goalColumn),d.push(B.left);var oe=Ds(s,B,n,r);return r=="page"&&D==l.sel.primary()&&Ro(s,yo(s,oe,"div").top-B.top),oe},xe),d.length)for(var v=0;v<l.sel.ranges.length;v++)l.sel.ranges[v].goalColumn=d[v]}),findWordAt:function(n){var r=this.doc,s=Fe(r,n.line).text,l=n.ch,d=n.ch;if(s){var p=this.getHelper(n,"wordChars");(n.sticky=="before"||d==s.length)&&l?--l:++d;for(var v=s.charAt(l),D=je(v,p)?function(B){return je(B,p)}:/\s/.test(v)?function(B){return/\s/.test(B)}:function(B){return!/\s/.test(B)&&!je(B)};l>0&&D(s.charAt(l-1));)--l;for(;d<s.length&&D(s.charAt(d));)++d}return new Jt(Ue(n.line,l),Ue(n.line,d))},toggleOverwrite:function(n){if(n!=null&&n==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?J(this.display.cursorDiv,"CodeMirror-overwrite"):pe(this.display.cursorDiv,"CodeMirror-overwrite"),be(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==L()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Dn(function(n,r){br(this,n,r)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-ui(this)-this.display.barHeight,width:n.scrollWidth-ui(this)-this.display.barWidth,clientHeight:mo(this),clientWidth:Bi(this)}},scrollIntoView:Dn(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:Ue(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?Zs(this,n):Aa(this,n.from,n.to,n.margin)}),setSize:Dn(function(n,r){var s=this,l=function(p){return typeof p=="number"||/^\d+$/.test(String(p))?p+"px":p};n!=null&&(this.display.wrapper.style.width=l(n)),r!=null&&(this.display.wrapper.style.height=l(r)),this.options.lineWrapping&&ua(this);var d=this.display.viewFrom;this.doc.iter(d,this.display.viewTo,function(p){if(p.widgets){for(var v=0;v<p.widgets.length;v++)if(p.widgets[v].noHScroll){Ai(s,d,"widget");break}}++d}),this.curOp.forceUpdate=!0,be(this,"refresh",this)}),operation:function(n){return Hn(this,n)},startOperation:function(){return zi(this)},endOperation:function(){return Hi(this)},refresh:Dn(function(){var n=this.display.cachedTextHeight;Nn(this),this.curOp.forceUpdate=!0,vr(this),br(this,this.doc.scrollLeft,this.doc.scrollTop),Do(this.display),(n==null||Math.abs(n-Zi(this.display))>.5||this.options.lineWrapping)&&wo(this),be(this,"refresh",this)}),swapDoc:Dn(function(n){var r=this.doc;return r.cm=null,this.state.selectingText&&this.state.selectingText(),Ua(this,n),vr(this),this.display.input.reset(),br(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,qt(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}},G(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,l){e.registerHelper(n,r,l),i[n]._global.push({pred:s,val:l})}}function Ko(e,t,i,n,r){var s=t,l=i,d=Fe(e,t.line),p=r&&e.direction=="rtl"?-i:i;function v(){var at=t.line+p;return at<e.first||at>=e.first+e.size?!1:(t=new Ue(at,t.ch,t.sticky),d=Fe(e,at))}function D(at){var Ye;if(n=="codepoint"){var ht=d.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(ht)?Ye=null:Ye=new Ue(t.line,Math.max(0,Math.min(d.text.length,t.ch+i*(ht>=55296&&ht<56320?2:1))),-i)}else r?Ye=Pl(e.cm,d,t,i):Ye=Wo(d,t,i);if(Ye==null)if(!at&&v())t=zo(r,e.cm,d,t.line,p);else return!1;else t=Ye;return!0}if(n=="char"||n=="codepoint")D();else if(n=="column")D(!0);else if(n=="word"||n=="group")for(var B=null,oe=n=="group",te=e.cm&&e.cm.getHelper(t,"wordChars"),Ae=!0;!(i<0&&!D(!Ae));Ae=!1){var Pe=d.text.charAt(t.ch)||`
|
|
`,ze=je(Pe,te)?"w":oe&&Pe==`
|
|
`?"n":!oe||/\s/.test(Pe)?null:"p";if(oe&&!Ae&&!ze&&(ze="s"),B&&B!=ze){i<0&&(i=1,D(),t.sticky="after");break}if(ze&&(B=ze),i>0&&!D(!Ae))break}var Xe=eo(e,t,s,l,!0);return oi(s,Xe)&&(Xe.hitSide=!0),Xe}function Ds(e,t,i,n){var r=e.doc,s=t.left,l;if(n=="page"){var d=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),p=Math.max(d-.5*Zi(e.display),3);l=(i>0?t.bottom:t.top)+i*p}else n=="line"&&(l=i>0?t.bottom+3:t.top-3);for(var v;!(v=Co(e,s,l),!v.outside);){if(i<0?l<=0:l>=r.height){v.hitSide=!0;break}l+=i*5}return v}var Zt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new we,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Zt.prototype.init=function(e){var t=this,i=this,n=i.cm,r=i.div=e.lineDiv;Ts(r,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function s(d){for(var p=d.target;p;p=p.parentNode){if(p==r)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(p.className))break}return!1}Ee(r,"paste",function(d){if(!s(d)||Ie(n,d)||ks(d,n))return;k<=11&&setTimeout(Cn(n,function(){return t.updateFromDOM()}),20)}),Ee(r,"compositionstart",function(d){t.composing={data:d.data,done:!1}}),Ee(r,"compositionupdate",function(d){t.composing||(t.composing={data:d.data,done:!1})}),Ee(r,"compositionend",function(d){t.composing&&(d.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Ee(r,"touchstart",function(){return i.forceCompositionEnd()}),Ee(r,"input",function(){t.composing||t.readFromDOMSoon()});function l(d){if(!s(d)||Ie(n,d))return;if(n.somethingSelected())ao({lineWise:!1,text:n.getSelections()}),d.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var p=Rs(n);ao({lineWise:!0,text:p.text}),d.type=="cut"&&n.operation(function(){n.setSelections(p.ranges,0,Me),n.replaceSelection("",null,"cut")})}else return;if(d.clipboardData){d.clipboardData.clearData();var v=ii.text.join(`
|
|
`);if(d.clipboardData.setData("Text",v),d.clipboardData.getData("Text")==v){d.preventDefault();return}}var D=Ls(),B=D.firstChild;n.display.lineSpace.insertBefore(D,n.display.lineSpace.firstChild),B.value=ii.text.join(`
|
|
`);var oe=document.activeElement;he(B),setTimeout(function(){n.display.lineSpace.removeChild(D),oe.focus(),oe==r&&i.showPrimarySelection()},50)}Ee(r,"copy",l),Ee(r,"cut",l)},Zt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Zt.prototype.prepareSelection=function(){var e=ya(this.cm,!1);return e.focus=document.activeElement==this.div,e},Zt.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Zt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Zt.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=so(t,e.anchorNode,e.anchorOffset),l=so(t,e.focusNode,e.focusOffset);if(s&&!s.bad&&l&&!l.bad&&St(Di(s,l),n)==0&&St(fi(s,l),r)==0)return;var d=t.display.view,p=n.line>=t.display.viewFrom&&Is(t,n)||{node:d[0].measure.map[2],offset:0},v=r.line<t.display.viewTo&&Is(t,r);if(!v){var D=d[d.length-1].measure,B=D.maps?D.maps[D.maps.length-1]:D.map;v={node:B[B.length-1],offset:B[B.length-2]-B[B.length-3]}}if(!p||!v){e.removeAllRanges();return}var oe=e.rangeCount&&e.getRangeAt(0),te;try{te=X(p.node,p.offset,v.offset,v.node)}catch(Ae){}te&&(!q&&t.state.focused?(e.collapse(p.node,p.offset),te.collapsed||(e.removeAllRanges(),e.addRange(te))):(e.removeAllRanges(),e.addRange(te)),oe&&e.anchorNode==null?e.addRange(oe):q&&this.startGracePeriod()),this.rememberSelection()},Zt.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)},Zt.prototype.showMultipleSelections=function(e){I(this.cm.display.cursorDiv,e.cursors),I(this.cm.display.selectionDiv,e.selection)},Zt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Zt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return b(this.div,t)},Zt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Zt.prototype.blur=function(){this.div.blur()},Zt.prototype.getField=function(){return this.div},Zt.prototype.supportsTouch=function(){return!0},Zt.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Hn(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)},Zt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Zt.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var e=this.getSelection(),t=this.cm;if(H&&M&&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=so(t,e.anchorNode,e.anchorOffset),n=so(t,e.focusNode,e.focusOffset);i&&n&&Hn(t,function(){Tn(t.doc,Si(i,n),Me),(i.bad||n.bad)&&(t.curOp.selectionChanged=!0)})},Zt.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=Ue(n.line-1,Fe(e.doc,n.line-1).length)),r.ch==Fe(e.doc,r.line).text.length&&r.line<e.lastLine()&&(r=Ue(r.line+1,0)),n.line<t.viewFrom||r.line>t.viewTo-1)return!1;var s,l,d;n.line==t.viewFrom||(s=_i(e,n.line))==0?(l=Bt(t.view[0].line),d=t.view[0].node):(l=Bt(t.view[s].line),d=t.view[s-1].node.nextSibling);var p=_i(e,r.line),v,D;if(p==t.view.length-1?(v=t.viewTo-1,D=t.lineDiv.lastChild):(v=Bt(t.view[p+1].line)-1,D=t.view[p+1].node.previousSibling),!d)return!1;for(var B=e.doc.splitLines(tu(e,d,D,l,v)),oe=Gt(e.doc,Ue(l,0),Ue(v,Fe(e.doc,v).text.length));B.length>1&&oe.length>1;)if(_e(B)==_e(oe))B.pop(),oe.pop(),v--;else if(B[0]==oe[0])B.shift(),oe.shift(),l++;else break;for(var te=0,Ae=0,Pe=B[0],ze=oe[0],Xe=Math.min(Pe.length,ze.length);te<Xe&&Pe.charCodeAt(te)==ze.charCodeAt(te);)++te;for(var at=_e(B),Ye=_e(oe),ht=Math.min(at.length-(B.length==1?te:0),Ye.length-(oe.length==1?te:0));Ae<ht&&at.charCodeAt(at.length-Ae-1)==Ye.charCodeAt(Ye.length-Ae-1);)++Ae;if(B.length==1&&oe.length==1&&l==n.line)for(;te&&te>n.ch&&at.charCodeAt(at.length-Ae-1)==Ye.charCodeAt(Ye.length-Ae-1);)te--,Ae++;B[B.length-1]=at.slice(0,at.length-Ae).replace(/^\u200b+/,""),B[0]=B[0].slice(te).replace(/\u200b+$/,"");var wt=Ue(l,te),Et=Ue(v,oe.length?_e(oe).length-Ae:0);if(B.length>1||B[0]||St(wt,Et))return or(e.doc,B,wt,Et,"+input"),!0},Zt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Zt.prototype.reset=function(){this.forceCompositionEnd()},Zt.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Zt.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)},Zt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Hn(this.cm,function(){return Nn(e.cm)})},Zt.prototype.setUneditable=function(e){e.contentEditable="false"},Zt.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||Cn(this.cm,Jo)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Zt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Zt.prototype.onContextMenu=function(){},Zt.prototype.resetPosition=function(){},Zt.prototype.needsContentAttribute=!0;function Is(e,t){var i=go(e,t.line);if(!i||i.hidden)return null;var n=Fe(e.doc,t.line),r=ra(i,n,t.line),s=st(n,e.doc.direction),l="left";if(s){var d=Je(s,t.ch);l=d%2?"right":"left"}var p=sa(r.map,t.ch,l);return p.offset=p.collapse=="right"?p.end:p.start,p}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function hr(e,t){return t&&(e.bad=!0),e}function tu(e,t,i,n,r){var s="",l=!1,d=e.doc.lineSeparator(),p=!1;function v(te){return function(Ae){return Ae.id==te}}function D(){l&&(s+=d,p&&(s+=d),l=p=!1)}function B(te){te&&(D(),s+=te)}function oe(te){if(te.nodeType==1){var Ae=te.getAttribute("cm-text");if(Ae){B(Ae);return}var Pe=te.getAttribute("cm-marker"),ze;if(Pe){var Xe=e.findMarks(Ue(n,0),Ue(r+1,0),v(+Pe));Xe.length&&(ze=Xe[0].find(0))&&B(Gt(e.doc,ze.from,ze.to).join(d));return}if(te.getAttribute("contenteditable")=="false")return;var at=/^(pre|div|p|li|table|br)$/i.test(te.nodeName);if(!/^br$/i.test(te.nodeName)&&te.textContent.length==0)return;at&&D();for(var Ye=0;Ye<te.childNodes.length;Ye++)oe(te.childNodes[Ye]);/^(pre|p)$/i.test(te.nodeName)&&(p=!0),at&&(l=!0)}else te.nodeType==3&&B(te.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(oe(t),t==i);)t=t.nextSibling,p=!1;return s}function so(e,t,i){var n;if(t==e.display.lineDiv){if(n=e.display.lineDiv.childNodes[i],!n)return hr(e.clipPos(Ue(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||!b(n,t))return hr(Ue(Bt(e.line),0),!0);if(t==n&&(r=!0,t=n.childNodes[i],i=0,!t)){var s=e.rest?_e(e.rest):e.line;return hr(Ue(Bt(s),s.text.length),r)}var l=t.nodeType==3?t:null,d=t;for(!l&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(l=t.firstChild,i&&(i=l.nodeValue.length));d.parentNode!=n;)d=d.parentNode;var p=e.measure,v=p.maps;function D(ze,Xe,at){for(var Ye=-1;Ye<(v?v.length:0);Ye++)for(var ht=Ye<0?p.map:v[Ye],wt=0;wt<ht.length;wt+=3){var Et=ht[wt+2];if(Et==ze||Et==Xe){var Pt=Bt(Ye<0?e.line:e.rest[Ye]),en=ht[wt]+at;return(at<0||Et!=ze)&&(en=ht[wt+(at?1:0)]),Ue(Pt,en)}}}var B=D(l,d,i);if(B)return hr(B,r);for(var oe=d.nextSibling,te=l?l.nodeValue.length-i:0;oe;oe=oe.nextSibling){if(B=D(oe,oe.firstChild,0),B)return hr(Ue(B.line,B.ch-te),r);te+=oe.textContent.length}for(var Ae=d.previousSibling,Pe=i;Ae;Ae=Ae.previousSibling){if(B=D(Ae,Ae.firstChild,-1),B)return hr(Ue(B.line,B.ch+Pe),r);Pe+=Ae.textContent.length}}var cn=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new we,this.hasSelection=!1,this.composing=null};cn.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),U&&(r.style.width="0px"),Ee(r,"input",function(){S&&k>=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),Ee(r,"paste",function(l){if(Ie(n,l)||ks(l,n))return;n.state.pasteIncoming=+new Date,i.fastPoll()});function s(l){if(Ie(n,l))return;if(n.somethingSelected())ao({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var d=Rs(n);ao({lineWise:!0,text:d.text}),l.type=="cut"?n.setSelections(d.ranges,null,Me):(i.prevInput="",r.value=d.text.join(`
|
|
`),he(r))}else return;l.type=="cut"&&(n.state.cutIncoming=+new Date)}Ee(r,"cut",s),Ee(r,"copy",s),Ee(e.scroller,"paste",function(l){if(mi(e,l)||Ie(n,l))return;if(!r.dispatchEvent){n.state.pasteIncoming=+new Date,i.focus();return}var d=new Event("paste");d.clipboardData=l.clipboardData,r.dispatchEvent(d)}),Ee(e.lineSpace,"selectstart",function(l){mi(e,l)||y(l)}),Ee(r,"compositionstart",function(){var l=n.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:l,range:n.markText(l,n.getCursor("to"),{className:"CodeMirror-composing"})}}),Ee(r,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},cn.prototype.createField=function(e){this.wrapper=Ls(),this.textarea=this.wrapper.firstChild},cn.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},cn.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,n=ya(e);if(e.options.moveInputWithCursor){var r=ti(e,i.sel.primary().head,"div"),s=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+l.top-s.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+l.left-s.left))}return n},cn.prototype.showSelection=function(e){var t=this.cm,i=t.display;I(i.cursorDiv,e.cursors),I(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},cn.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&&he(this.textarea),S&&k>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",S&&k>=9&&(this.hasSelection=null))},cn.prototype.getField=function(){return this.textarea},cn.prototype.supportsTouch=function(){return!1},cn.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Z||L()!=this.textarea))try{this.textarea.focus()}catch(e){}},cn.prototype.blur=function(){this.textarea.blur()},cn.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},cn.prototype.receivedFocus=function(){this.slowPoll()},cn.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()})},cn.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)},cn.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||tt(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(S&&k>=9&&this.hasSelection===r||ee&&/[\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 l=0,d=Math.min(n.length,r.length);l<d&&n.charCodeAt(l)==r.charCodeAt(l);)++l;return Hn(t,function(){Jo(t,r.slice(l),n.length-l,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},cn.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},cn.prototype.onKeyPress=function(){S&&k>=9&&(this.hasSelection=null),this.fastPoll()},cn.prototype.onContextMenu=function(e){var t=this,i=t.cm,n=i.display,r=t.textarea;t.contextMenuPending&&t.contextMenuPending();var s=ji(i,e),l=n.scroller.scrollTop;if(!s||A)return;var d=i.options.resetSelectionOnContextMenu;d&&i.doc.sel.contains(s)==-1&&Cn(i,Tn)(i.doc,Si(s),Me);var p=r.style.cssText,v=t.wrapper.style.cssText,D=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",r.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(e.clientY-D.top-5)+"px; left: "+(e.clientX-D.left-5)+`px;
|
|
z-index: 1000; background: `+(S?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var B;R&&(B=window.scrollY),n.input.focus(),R&&window.scrollTo(null,B),n.input.reset(),i.somethingSelected()||(r.value=t.prevInput=" "),t.contextMenuPending=te,n.selForContextMenu=i.doc.sel,clearTimeout(n.detectingSelectAll);function oe(){if(r.selectionStart!=null){var Pe=i.somethingSelected(),ze="\u200B"+(Pe?r.value:"");r.value="\u21DA",r.value=ze,t.prevInput=Pe?"":"\u200B",r.selectionStart=1,r.selectionEnd=ze.length,n.selForContextMenu=i.doc.sel}}function te(){if(t.contextMenuPending!=te)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=v,r.style.cssText=p,S&&k<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=l),r.selectionStart!=null){(!S||S&&k<9)&&oe();var Pe=0,ze=function(){n.selForContextMenu==i.doc.sel&&r.selectionStart==0&&r.selectionEnd>0&&t.prevInput=="\u200B"?Cn(i,Ya)(i):Pe++<10?n.detectingSelectAll=setTimeout(ze,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(ze,200)}}if(S&&k>=9&&oe(),Ne){T(e);var Ae=function(){rt(window,"mouseup",Ae),setTimeout(te,20)};Ee(window,"mouseup",Ae)}else setTimeout(te,50)},cn.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},cn.prototype.setUneditable=function(){},cn.prototype.needsContentAttribute=!1;function iu(e,t){if(t=t?g(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=L();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function n(){e.value=d.getValue()}var r;if(e.form&&(Ee(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var s=e.form;r=s.submit;try{var l=s.submit=function(){n(),s.submit=r,s.submit(),s.submit=l}}catch(p){}}t.finishInit=function(p){p.save=n,p.getTextArea=function(){return e},p.toTextArea=function(){p.toTextArea=isNaN,n(),e.parentNode.removeChild(p.getWrapperElement()),e.style.display="",e.form&&(rt(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=r))}},e.style.display="none";var d=rn(function(p){return e.parentNode.insertBefore(p,e.nextSibling)},t);return d}function ru(e){e.off=rt,e.on=Ee,e.wheelEventPixels=cl,e.Doc=Bn,e.splitLines=mt,e.countColumn=Q,e.findColumn=Se,e.isWordChar=We,e.Pass=Ve,e.signal=be,e.Line=xi,e.changeEnd=ki,e.scrollbarModel=ka,e.Pos=Ue,e.cmpPos=St,e.modes=Mt,e.mimeModes=ct,e.resolveMode=Ze,e.getMode=tn,e.modeExtensions=un,e.extendMode=nn,e.copyState=Rn,e.startState=Ht,e.innerMode=qn,e.commands=Pr,e.keyMap=gi,e.keyName=ds,e.isModifierKey=hs,e.lookupKey=sr,e.normalizeKeyMap=Ol,e.StringStream=yt,e.SharedTextMarker=Dr,e.TextMarker=Ri,e.LineWidget=Lr,e.e_preventDefault=y,e.e_stopPropagation=C,e.e_stop=T,e.addClass=J,e.contains=b,e.rmClass=pe,e.keyNames=Ti}Xl(rn),$l(rn);var ou="iter insert remove copy getEditor constructor".split(" ");for(var lo in Bn.prototype)Bn.prototype.hasOwnProperty(lo)&&ye(ou,lo)<0&&(rn.prototype[lo]=function(e){return function(){return e.apply(this.doc,arguments)}}(Bn.prototype[lo]));return G(Bn),rn.inputStyles={textarea:cn,contenteditable:Zt},rn.defineMode=function(e){!rn.defaults.mode&&e!="null"&&(rn.defaults.mode=e),It.apply(this,arguments)},rn.defineMIME=Ot,rn.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),rn.defineMIME("text/plain","null"),rn.defineExtension=function(e,t){rn.prototype[e]=t},rn.defineDocExtension=function(e,t){Bn.prototype[e]=t},rn.fromTextArea=iu,ru(rn),rn.version="5.58.2",rn})},W6B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ce,"ResizableTextArea",function(){return ye});var N=f("wx14"),de=f("1OyB"),q=f("vuIU"),le=f("Ji7U"),ae=f("LK+K"),K=f("q1tI"),S=f("VTBJ"),k=f("rePB"),R=f("Zm9Q"),W=f("Kwbf"),M=f("c+Xe"),A=f("m+aA"),Y=f("bdgK"),z=new Map;function P(Me){Me.forEach(function(Ce){var xe,Se=Ce.target;(xe=z.get(Se))===null||xe===void 0||xe.forEach(function($){return $(Se)})})}var U=new Y.default(P),H=null,Z=null;function ee(Me,Ce){z.has(Me)||(z.set(Me,new Set),U.observe(Me)),z.get(Me).add(Ce)}function ke(Me,Ce){z.has(Me)&&(z.get(Me).delete(Ce),z.get(Me).size||(U.unobserve(Me),z.delete(Me)))}var He=function(Me){Object(le.a)(xe,Me);var Ce=Object(ae.a)(xe);function xe(){return Object(de.a)(this,xe),Ce.apply(this,arguments)}return Object(q.a)(xe,[{key:"render",value:function(){return this.props.children}}]),xe}(K.Component),ue=K.createContext(null);function ge(Me){var Ce=Me.children,xe=Me.onBatchResize,Se=K.useRef(0),$=K.useRef([]),F=K.useContext(ue),_e=K.useCallback(function(nt,qe,it){Se.current+=1;var $e=Se.current;$.current.push({size:nt,element:qe,data:it}),Promise.resolve().then(function(){$e===Se.current&&(xe==null||xe($.current),$.current=[])}),F==null||F(nt,qe,it)},[xe,F]);return K.createElement(ue.Provider,{value:_e},Ce)}function Ne(Me){var Ce=Me.children,xe=Me.disabled,Se=K.useRef(null),$=K.useRef(null),F=K.useContext(ue),_e=K.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),nt=K.isValidElement(Ce)&&Object(M.c)(Ce),qe=nt?Ce.ref:null,it=K.useMemo(function(){return Object(M.a)(qe,Se)},[qe,Se]),$e=K.useRef(Me);$e.current=Me;var Re=K.useCallback(function(We){var je=$e.current,lt=je.onResize,Ke=je.data,Te=We.getBoundingClientRect(),Qe=Te.width,dt=Te.height,ut=We.offsetWidth,et=We.offsetHeight,Je=Math.floor(Qe),ft=Math.floor(dt);if(_e.current.width!==Je||_e.current.height!==ft||_e.current.offsetWidth!==ut||_e.current.offsetHeight!==et){var st={width:Je,height:ft,offsetWidth:ut,offsetHeight:et};_e.current=st;var ot=ut===Math.round(Qe)?Qe:ut,Ee=et===Math.round(dt)?dt:et,gt=Object(S.a)(Object(S.a)({},st),{},{offsetWidth:ot,offsetHeight:Ee});F==null||F(gt,We,Ke),lt&&Promise.resolve().then(function(){lt(gt,We)})}},[]);return K.useEffect(function(){var We=Object(A.a)(Se.current)||Object(A.a)($.current);return We&&!xe&&ee(We,Re),function(){return ke(We,Re)}},[Se.current,xe]),K.createElement(He,{ref:$},nt?K.cloneElement(Ce,{ref:it}):Ce)}var ve="rc-observer-key";function pe(Me){var Ce=Me.children,xe=Object(R.a)(Ce);return xe.map(function(Se,$){var F=(Se==null?void 0:Se.key)||"".concat(ve,"-").concat($);return K.createElement(Ne,Object(N.a)({},Me,{key:F}),Se)})}pe.Collection=ge;var re=pe,I=f("bT9E"),x=f("TSYQ"),ne=f.n(x),X=`
|
|
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
|
|
`,b=["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"],L={},J;function O(Me){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xe=Me.getAttribute("id")||Me.getAttribute("data-reactid")||Me.getAttribute("name");if(Ce&&L[xe])return L[xe];var Se=window.getComputedStyle(Me),$=Se.getPropertyValue("box-sizing")||Se.getPropertyValue("-moz-box-sizing")||Se.getPropertyValue("-webkit-box-sizing"),F=parseFloat(Se.getPropertyValue("padding-bottom"))+parseFloat(Se.getPropertyValue("padding-top")),_e=parseFloat(Se.getPropertyValue("border-bottom-width"))+parseFloat(Se.getPropertyValue("border-top-width")),nt=b.map(function(it){return"".concat(it,":").concat(Se.getPropertyValue(it))}).join(";"),qe={sizingStyle:nt,paddingSize:F,borderSize:_e,boxSizing:$};return Ce&&xe&&(L[xe]=qe),qe}function he(Me){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;J||(J=document.createElement("textarea"),J.setAttribute("tab-index","-1"),J.setAttribute("aria-hidden","true"),document.body.appendChild(J)),Me.getAttribute("wrap")?J.setAttribute("wrap",Me.getAttribute("wrap")):J.removeAttribute("wrap");var $=O(Me,Ce),F=$.paddingSize,_e=$.borderSize,nt=$.boxSizing,qe=$.sizingStyle;J.setAttribute("style","".concat(qe,";").concat(X)),J.value=Me.value||Me.placeholder||"";var it=Number.MIN_SAFE_INTEGER,$e=Number.MAX_SAFE_INTEGER,Re=J.scrollHeight,We;if(nt==="border-box"?Re+=_e:nt==="content-box"&&(Re-=F),xe!==null||Se!==null){J.value=" ";var je=J.scrollHeight-F;xe!==null&&(it=je*xe,nt==="border-box"&&(it=it+F+_e),Re=Math.max(it,Re)),Se!==null&&($e=je*Se,nt==="border-box"&&($e=$e+F+_e),We=Re>$e?"":"hidden",Re=Math.min($e,Re))}return{height:Re,minHeight:it,maxHeight:$e,overflowY:We,resize:"none"}}var E=f("Gytx"),g=f.n(E),Q;(function(Me){Me[Me.NONE=0]="NONE",Me[Me.RESIZING=1]="RESIZING",Me[Me.RESIZED=2]="RESIZED"})(Q||(Q={}));var we=function(Me){Object(le.a)(xe,Me);var Ce=Object(ae.a)(xe);function xe(Se){var $;return Object(de.a)(this,xe),$=Ce.call(this,Se),$.nextFrameActionId=void 0,$.resizeFrameId=void 0,$.textArea=void 0,$.saveTextArea=function(F){$.textArea=F},$.handleResize=function(F){var _e=$.state.resizeStatus,nt=$.props,qe=nt.autoSize,it=nt.onResize;if(_e!==Q.NONE)return;typeof it=="function"&&it(F),qe&&$.resizeOnNextFrame()},$.resizeOnNextFrame=function(){cancelAnimationFrame($.nextFrameActionId),$.nextFrameActionId=requestAnimationFrame($.resizeTextarea)},$.resizeTextarea=function(){var F=$.props.autoSize;if(!F||!$.textArea)return;var _e=F.minRows,nt=F.maxRows,qe=he($.textArea,!1,_e,nt);$.setState({textareaStyles:qe,resizeStatus:Q.RESIZING},function(){cancelAnimationFrame($.resizeFrameId),$.resizeFrameId=requestAnimationFrame(function(){$.setState({resizeStatus:Q.RESIZED},function(){$.resizeFrameId=requestAnimationFrame(function(){$.setState({resizeStatus:Q.NONE}),$.fixFirefoxAutoScroll()})})})})},$.renderTextArea=function(){var F=$.props,_e=F.prefixCls,nt=_e===void 0?"rc-textarea":_e,qe=F.autoSize,it=F.onResize,$e=F.className,Re=F.disabled,We=$.state,je=We.textareaStyles,lt=We.resizeStatus,Ke=Object(I.a)($.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Te=ne()(nt,$e,Object(k.a)({},"".concat(nt,"-disabled"),Re));"value"in Ke&&(Ke.value=Ke.value||"");var Qe=Object(S.a)(Object(S.a)(Object(S.a)({},$.props.style),je),lt===Q.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return K.createElement(re,{onResize:$.handleResize,disabled:!(qe||it)},K.createElement("textarea",Object(N.a)({},Ke,{className:Te,style:Qe,ref:$.saveTextArea})))},$.state={textareaStyles:{},resizeStatus:Q.NONE},$}return Object(q.a)(xe,[{key:"componentDidUpdate",value:function($){($.value!==this.props.value||!g()($.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 $=this.textArea.selectionStart,F=this.textArea.selectionEnd;this.textArea.setSelectionRange($,F)}}catch(_e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),xe}(K.Component),ye=we,Ge=function(Me){Object(le.a)(xe,Me);var Ce=Object(ae.a)(xe);function xe(Se){var $;Object(de.a)(this,xe),$=Ce.call(this,Se),$.resizableTextArea=void 0,$.focus=function(){$.resizableTextArea.textArea.focus()},$.saveTextArea=function(_e){$.resizableTextArea=_e},$.handleChange=function(_e){var nt=$.props.onChange;$.setValue(_e.target.value,function(){$.resizableTextArea.resizeTextarea()}),nt&&nt(_e)},$.handleKeyDown=function(_e){var nt=$.props,qe=nt.onPressEnter,it=nt.onKeyDown;_e.keyCode===13&&qe&&qe(_e),it&&it(_e)};var F=typeof Se.value=="undefined"||Se.value===null?Se.defaultValue:Se.value;return $.state={value:F},$}return Object(q.a)(xe,[{key:"setValue",value:function($,F){"value"in this.props||this.setState({value:$},F)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return K.createElement(ye,Object(N.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function($){return"value"in $?{value:$.value}:null}}]),xe}(K.Component),Ve=ce.default=Ge},ZW9T:function(me,ce,f){"use strict";f.d(ce,"a",function(){return He});var N=f("k1fw"),de=f("miYZ"),q=f("tsqr"),le=f("rAM+"),ae=f("tJVT"),K=f("PpiC"),S=f("q1tI"),k=f.n(S),R=f("bdgK");function W(ue,ge,Ne,ve,pe){var re=ge.getWordUntilPosition(Ne),I={startLineNumber:Ne.lineNumber,endLineNumber:Ne.lineNumber,startColumn:re.startColumn,endColumn:re.endColumn},x=ve.map(function(ne){return{label:ne,kind:ue.languages.CompletionItemKind.Keyword,insertText:ne,insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:I}});return pe.map(function(ne){x.push(Object(N.a)(Object(N.a)({},ne),{},{range:I}))}),x}var M=function(ue){var ge={label:"ifelse",kind:ue.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
`),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet},Ne=["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(I,x){var ne=W(ue,I,x,Ne,[ge]);return{suggestions:ne}}});var ve=["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(I,x){var ne=[{label:"print",kind:ue.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(`
|
|
`),insertTextRules:ue.languages.CompletionItemInsertTextRule.InsertAsSnippet}],X=W(ue,I,x,ve,ne);return{suggestions:X}}});var pe=["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(I,x){var ne=[ge,{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}],X=W(ue,I,x,pe,ne);return{suggestions:X}}})},A="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",Y=f("LvDl");function z(ue){return/^\d+$/.test(ue)?"".concat(ue,"px"):ue}function P(){}var U=!1,H={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function Z(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ge=ue;if(Array.isArray(ue)){for(var Ne=0;Ne<ue.length;Ne++){var ve=H[ue[Ne]];if(ve)return ve}return ge[0]}return H[ge]||ge}var ee=null,ke=ce.b=function(ue){var ge=ue.width,Ne=ge===void 0?"100%":ge,ve=ue.height,pe=ve===void 0?"100%":ve,re=ue.value,I=ue.language,x=I===void 0?"javascript":I,ne=ue.style,X=ne===void 0?{}:ne,b=ue.options,L=b===void 0?{}:b,J=ue.overrideServices,O=J===void 0?{}:J,he=ue.theme,E=he===void 0?"vs-dark":he,g=ue.onEditBlur,Q=ue.onSave,we=ue.autoHeight,ye=we===void 0?!1:we,Ge=ue.forbidCopy,Ve=Ge===void 0?!1:Ge,Me=ue.onChange,Ce=Me===void 0?P:Me,xe=ue.editorDidMount,Se=xe===void 0?P:xe,$=ue.onFocus,F=$===void 0?P:$,_e=ue.filename,nt=_e===void 0?"educoder.txt":_e,qe=Object(K.a)(ue,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename"]),it=Object(S.useRef)(),$e=Object(S.useRef)({}),Re=Object(S.useRef)(),We=Object(S.useRef)(!1),je=Object(S.useRef)(),lt=Object(S.useState)(!1),Ke=Object(ae.a)(lt,2),Te=Ke[0],Qe=Ke[1];function dt(){var w;return it.current&&(w=new R.default(function(T){var ie=Object(le.a)(T),fe;try{for(ie.s();!(fe=ie.n()).done;){var Be=fe.value;(Be.target.offsetHeight>0||Be.target.offsetWidth>0)&&$e.current.instance.layout()}}catch(bt){ie.e(bt)}finally{ie.f()}}),w.observe(it.current)),w}function ut(){q.b.warn(decodeURIComponent(A))}var et=function(){var T=$e.current.instance;if(re!=null&&T&&Te){var ie=T.getModel();ie&&re!==ie.getValue()&&(U=!0,ie.setValue(re),T.layout(),U=!1)}};Object(S.useEffect)(function(){Re.current&&clearTimeout(Re.current),Re.current=setTimeout(function(){et()},500)},[re,Te,$e.current]);function Je(){var w=$e.current.instance;if(w){var T=w.getSelection(),ie=$e.current.pastePos||{},fe=new ee.Range(ie.startLineNumber||T.endLineNumber,ie.startColumn||T.endColumn,ie.endLineNumber||T.endLineNumber,ie.endColumn||T.endColumn);setTimeout(function(){w.executeEdits("",[{range:fe,text:""}])},300)}}function ft(w){(window.navigator.platform.match("Mac")?w.metaKey:w.ctrlKey)&&w.keyCode==83&&(w.preventDefault(),Q())}var st=function(){if(ye&&$e.current.instance){var T=$e.current.instance.getContentHeight();y(T<pe?pe:T)}else y(pe)};function ot(w){var T=document.createEvent("MouseEvents");T.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),w.dispatchEvent(T)}function Ee(w,T){var ie=window.URL||window.webkitURL||window,fe=new Blob([T]),Be=document.createElementNS("http://www.w3.org/1999/xhtml","a");Be.href=ie.createObjectURL(fe),Be.download=w,ot(Be)}Object(S.useEffect)(function(){st()},[st]),Object(S.useEffect)(function(){it.current&&!Te&&f.e(27).then(f.t.bind(null,"M/lh",7)).then(function(w){try{ee=w,$e.current.instance=ee.editor.create(it.current,{value:re,language:Z(x),theme:E,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0},O);var T=$e.current.instance;if(Se(T,ee),setTimeout(function(){st(),$e.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){Ee(nt||"educoder.txt",T.getValue())}})},500),$e.current.subscription=T.onDidChangeModelContent(function(fe){We.current?clearTimeout(je.current):(st(),Ce(T.getValue(),fe)),je.current=setTimeout(function(){We.current=!1},500)}),window.Monaco||M(ee),Ve&&(T.addCommand(ee.KeyMod.CtrlCmd|ee.KeyMod.Shift|ee.KeyCode.KEY_V,function(){return ut(),null}),T.addCommand(ee.KeyMod.CtrlCmd|ee.KeyCode.KEY_C,function(){return ut(),null})),window.Monaco=ee,g&&T.onDidBlurEditorWidget(function(){g(T.getValue())}),F&&T.onDidFocusEditorText(function(){F(T.getValue())}),Ve){T.addCommand(ee.KeyMod.CtrlCmd|ee.KeyCode.KEY_V,function(){return ut(),null}),T.onDidPaste(function(fe){$e.current.pastePos=fe});try{window.addEventListener("paste",Je)}catch(fe){}}var ie=dt();return Qe(!0),function(){var fe=$e.current.instance;fe.dispose();var Be=fe.getModel();Be&&Be.dispose(),$e.current.subscription&&$e.current.subscription.dispose(),Ve&&window.removeEventListener("paste",Je),ie.unobserve(it.current)}}catch(fe){}})},[]),Object(S.useEffect)(function(){var w=$e.current.instance;if(w&&Te)return document.addEventListener("keydown",ft,!1),function(){document.removeEventListener("keydown",ft)}},[Q,Te]),Object(S.useEffect)(function(){var w=$e.current.instance;if(w&&Te){var T=Z(x);ee.editor.setModelLanguage(w.getModel(),T),console.log("language:",x,w.getModel(),T)}},[x,Te]),Object(S.useEffect)(function(){var w=$e.current.instance;w&&Te&&ee.editor.setTheme(E)},[E,Te]),Object(S.useEffect)(function(){var w=$e.current.instance;w&&Te&&(w.updateOptions(Object(N.a)({},L)),setTimeout(function(){w.getModel().updateOptions(Object(N.a)({},L))},200))},[JSON.stringify(L),Te]),Object(S.useEffect)(function(){var w=$e.current.instance;w&&Te&&w.layout()},[Ne,pe,Te]);var gt=Object(S.useState)(z(Ne)),rt=Object(ae.a)(gt,2),be=rt[0],Ie=rt[1],V=Object(S.useState)(z(pe)),_=Object(ae.a)(V,2),G=_[0],y=_[1],C=Object(N.a)(Object(N.a)({},X),{},{width:be,height:G});return k.a.createElement("div",{className:"my-monaco-editor",ref:it,style:C})};function He(ue){var ge=ue.width,Ne=ge===void 0?"100%":ge,ve=ue.height,pe=ve===void 0?"100%":ve,re=ue.original,I=ue.modified,x=ue.language,ne=ue.options,X=ne===void 0?{}:ne,b=Object(S.useRef)(),L=Object(S.useState)(null),J=Object(ae.a)(L,2),O=J[0],he=J[1];function E(ye){var Ge;return b.current&&(Ge=new R.default(function(Ve){var Me=Object(le.a)(Ve),Ce;try{for(Me.s();!(Ce=Me.n()).done;){var xe=Ce.value;(xe.target.offsetHeight>0||xe.target.offsetWidth>0)&&ye.layout()}}catch(Se){Me.e(Se)}finally{Me.f()}}),Ge.observe(b.current)),Ge}Object(S.useEffect)(function(){b.current&&f.e(27).then(f.t.bind(null,"M/lh",7)).then(function(ye){ee=ye;var Ge=ee.editor.createDiffEditor(b.current,Object(N.a)(Object(N.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},X),{},{wordWrap:!0}));he(Ge);var Ve=E(Ge);return function(){Ge.dispose();var Me=Ge.getModel();Me&&Me.dispose(),Ve.unobserve(b.current)}})},[]),Object(S.useEffect)(function(){O&&O.setModel({original:ee.editor.createModel(re,x),modified:ee.editor.createModel(I,x)})},[re,I,x,O]);var g=z(Ne),Q=z(pe),we={width:g,height:Q};return k.a.createElement("div",{className:"my-diff-editor",ref:b,style:we})}},ZpRC:function(me,ce,f){"use strict";function N(M){return typeof M=="object"&&M!=null&&M.nodeType===1}function de(M,A){return(!A||M!=="hidden")&&M!=="visible"&&M!=="clip"}function q(M,A){if(M.clientHeight<M.scrollHeight||M.clientWidth<M.scrollWidth){var Y=getComputedStyle(M,null);return de(Y.overflowY,A)||de(Y.overflowX,A)||function(z){var P=function(U){if(!U.ownerDocument||!U.ownerDocument.defaultView)return null;try{return U.ownerDocument.defaultView.frameElement}catch(H){return null}}(z);return!!P&&(P.clientHeight<z.scrollHeight||P.clientWidth<z.scrollWidth)}(M)}return!1}function le(M,A,Y,z,P,U,H,Z){return U<M&&H>A||U>M&&H<A?0:U<=M&&Z<=Y||H>=A&&Z>=Y?U-M-z:H>A&&Z<Y||U<M&&Z>Y?H-A+P:0}var ae=function(M,A){var Y=window,z=A.scrollMode,P=A.block,U=A.inline,H=A.boundary,Z=A.skipOverflowHiddenElements,ee=typeof H=="function"?H:function(je){return je!==H};if(!N(M))throw new TypeError("Invalid target");for(var ke=document.scrollingElement||document.documentElement,He=[],ue=M;N(ue)&&ee(ue);){if((ue=ue.parentElement)===ke){He.push(ue);break}ue!=null&&ue===document.body&&q(ue)&&!q(document.documentElement)||ue!=null&&q(ue,Z)&&He.push(ue)}for(var ge=Y.visualViewport?Y.visualViewport.width:innerWidth,Ne=Y.visualViewport?Y.visualViewport.height:innerHeight,ve=window.scrollX||pageXOffset,pe=window.scrollY||pageYOffset,re=M.getBoundingClientRect(),I=re.height,x=re.width,ne=re.top,X=re.right,b=re.bottom,L=re.left,J=P==="start"||P==="nearest"?ne:P==="end"?b:ne+I/2,O=U==="center"?L+x/2:U==="end"?X:L,he=[],E=0;E<He.length;E++){var g=He[E],Q=g.getBoundingClientRect(),we=Q.height,ye=Q.width,Ge=Q.top,Ve=Q.right,Me=Q.bottom,Ce=Q.left;if(z==="if-needed"&&ne>=0&&L>=0&&b<=Ne&&X<=ge&&ne>=Ge&&b<=Me&&L>=Ce&&X<=Ve)return he;var xe=getComputedStyle(g),Se=parseInt(xe.borderLeftWidth,10),$=parseInt(xe.borderTopWidth,10),F=parseInt(xe.borderRightWidth,10),_e=parseInt(xe.borderBottomWidth,10),nt=0,qe=0,it="offsetWidth"in g?g.offsetWidth-g.clientWidth-Se-F:0,$e="offsetHeight"in g?g.offsetHeight-g.clientHeight-$-_e:0;if(ke===g)nt=P==="start"?J:P==="end"?J-Ne:P==="nearest"?le(pe,pe+Ne,Ne,$,_e,pe+J,pe+J+I,I):J-Ne/2,qe=U==="start"?O:U==="center"?O-ge/2:U==="end"?O-ge:le(ve,ve+ge,ge,Se,F,ve+O,ve+O+x,x),nt=Math.max(0,nt+pe),qe=Math.max(0,qe+ve);else{nt=P==="start"?J-Ge-$:P==="end"?J-Me+_e+$e:P==="nearest"?le(Ge,Me,we,$,_e+$e,J,J+I,I):J-(Ge+we/2)+$e/2,qe=U==="start"?O-Ce-Se:U==="center"?O-(Ce+ye/2)+it/2:U==="end"?O-Ve+F+it:le(Ce,Ve,ye,Se,F+it,O,O+x,x);var Re=g.scrollLeft,We=g.scrollTop;J+=We-(nt=Math.max(0,Math.min(We+nt,g.scrollHeight-we+$e))),O+=Re-(qe=Math.max(0,Math.min(Re+qe,g.scrollWidth-ye+it)))}he.push({el:g,top:nt,left:qe})}return he};function K(M){return M===Object(M)&&Object.keys(M).length!==0}function S(M,A){A===void 0&&(A="auto");var Y="scrollBehavior"in document.body.style;M.forEach(function(z){var P=z.el,U=z.top,H=z.left;P.scroll&&Y?P.scroll({top:U,left:H,behavior:A}):(P.scrollTop=U,P.scrollLeft=H)})}function k(M){return M===!1?{block:"end",inline:"nearest"}:K(M)?M:{block:"start",inline:"nearest"}}function R(M,A){var Y=!M.ownerDocument.documentElement.contains(M);if(K(A)&&typeof A.behavior=="function")return A.behavior(Y?[]:ae(M,A));if(Y)return;var z=k(A);return S(ae(M,z),z.behavior)}var W=ce.a=R},aRTE:function(me,ce){me.exports={L:1,M:0,Q:3,H:2}},bT9E:function(me,ce,f){"use strict";f.d(ce,"a",function(){return de});var N=f("VTBJ");function de(q,le){var ae=Object(N.a)({},q);return Array.isArray(le)&&le.forEach(function(K){delete ae[K]}),ae}},c5Ni:function(me,ce,f){},cRFk:function(me,ce,f){me.exports=f.p+"static/RepositoryNoneData.828085a8.png"},csWT:function(me,ce,f){me.exports=f.p+"static/choose.4ad1045f.svg"},dQei:function(me,ce){for(var f={glog:function(de){if(de<1)throw new Error("glog("+de+")");return f.LOG_TABLE[de]},gexp:function(de){for(;de<0;)de+=255;for(;de>=256;)de-=255;return f.EXP_TABLE[de]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},N=0;N<8;N++)f.EXP_TABLE[N]=1<<N;for(var N=8;N<256;N++)f.EXP_TABLE[N]=f.EXP_TABLE[N-4]^f.EXP_TABLE[N-5]^f.EXP_TABLE[N-6]^f.EXP_TABLE[N-8];for(var N=0;N<255;N++)f.LOG_TABLE[f.EXP_TABLE[N]]=N;me.exports=f},dWSS:function(me,ce,f){var N=f("dQei");function de(q,le){if(q.length==null)throw new Error(q.length+"/"+le);for(var ae=0;ae<q.length&&q[ae]==0;)ae++;this.num=new Array(q.length-ae+le);for(var K=0;K<q.length-ae;K++)this.num[K]=q[K+ae]}de.prototype={get:function(q){return this.num[q]},getLength:function(){return this.num.length},multiply:function(q){for(var le=new Array(this.getLength()+q.getLength()-1),ae=0;ae<this.getLength();ae++)for(var K=0;K<q.getLength();K++)le[ae+K]^=N.gexp(N.glog(this.get(ae))+N.glog(q.get(K)));return new de(le,0)},mod:function(q){if(this.getLength()-q.getLength()<0)return this;for(var le=N.glog(this.get(0))-N.glog(q.get(0)),ae=new Array(this.getLength()),K=0;K<this.getLength();K++)ae[K]=this.get(K);for(var K=0;K<q.getLength();K++)ae[K]^=N.gexp(N.glog(q.get(K))+le);return new de(ae,0).mod(q)}},me.exports=de},dejd:function(me,ce,f){},djh8:function(me,ce,f){me.exports=f.p+"static/qrCode.42927872.png"},dmUQ:function(me,ce,f){"use strict";var N=f("Ff2n"),de=f("rePB"),q=f("1OyB"),le=f("vuIU"),ae=f("Ji7U"),K=f("md7G"),S=f("foSv"),k=f("q1tI"),R=f.n(k),W=f("TSYQ"),M=f.n(W),A=f("4IlW");function Y(I,x){var ne=Object.keys(I);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(I);x&&(X=X.filter(function(b){return Object.getOwnPropertyDescriptor(I,b).enumerable})),ne.push.apply(ne,X)}return ne}function z(I){for(var x=1;x<arguments.length;x++){var ne=arguments[x]!=null?arguments[x]:{};x%2?Y(Object(ne),!0).forEach(function(X){Object(de.a)(I,X,ne[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(ne)):Y(Object(ne)).forEach(function(X){Object.defineProperty(I,X,Object.getOwnPropertyDescriptor(ne,X))})}return I}function P(I){var x=U();return function(){var X=Object(S.a)(I),b;if(x){var L=Object(S.a)(this).constructor;b=Reflect.construct(X,arguments,L)}else b=X.apply(this,arguments);return Object(K.a)(this,b)}}function U(){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(I){return!1}}function H(){}function Z(I){I.preventDefault()}var ee=function(x){return x.replace(/[^\w.-]+/g,"")},ke=200,He=600,ue=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,ge=function(x){return x!=null},Ne=function(x,ne){return ne===x||typeof ne=="number"&&typeof x=="number"&&isNaN(ne)&&isNaN(x)},ve=function(I){Object(ae.a)(ne,I);var x=P(ne);function ne(X){var b;Object(q.a)(this,ne),b=x.call(this,X),b.onKeyDown=function(O){var he=b.props,E=he.onKeyDown,g=he.onPressEnter;if(O.keyCode===A.a.UP){var Q=b.getRatio(O);b.up(O,Q,null),b.stop()}else if(O.keyCode===A.a.DOWN){var we=b.getRatio(O);b.down(O,we,null),b.stop()}else O.keyCode===A.a.ENTER&&g&&g(O);if(b.recordCursorPosition(),b.lastKeyCode=O.keyCode,E){for(var ye=arguments.length,Ge=new Array(ye>1?ye-1:0),Ve=1;Ve<ye;Ve++)Ge[Ve-1]=arguments[Ve];E.apply(void 0,[O].concat(Ge))}},b.onKeyUp=function(O){var he=b.props.onKeyUp;if(b.stop(),b.recordCursorPosition(),he){for(var E=arguments.length,g=new Array(E>1?E-1:0),Q=1;Q<E;Q++)g[Q-1]=arguments[Q];he.apply(void 0,[O].concat(g))}},b.onChange=function(O){var he=b.props.onChange;b.state.focused&&(b.inputting=!0),b.rawInput=b.props.parser(b.getValueFromEvent(O)),b.setState({inputValue:b.rawInput}),he(b.toNumber(b.rawInput))},b.onMouseUp=function(){var O=b.props.onMouseUp;b.recordCursorPosition(),O&&O.apply(void 0,arguments)},b.onFocus=function(){var O;b.setState({focused:!0}),(O=b.props).onFocus.apply(O,arguments)},b.onBlur=function(){var O=b.props.onBlur;b.inputting=!1,b.setState({focused:!1});var he=b.getCurrentValidValue(b.state.inputValue),E=b.setValue(he,H);if(O){var g=b.input.value,Q=b.getInputDisplayValue({focus:!1,value:E});b.input.value=Q&&Number(Q),O.apply(void 0,arguments),b.input.value=g}},b.getRatio=function(O){var he=1;return O.metaKey||O.ctrlKey?he=.1:O.shiftKey&&(he=10),he},b.getFullNum=function(O){return isNaN(O)?O:/e/i.test(String(O))?Number(O).toFixed(18).replace(/\.?0+$/,""):O},b.getPrecision=function(O){if(ge(b.props.precision))return b.props.precision;var he=String(O);if(he.indexOf("e-")>=0)return parseInt(he.slice(he.indexOf("e-")+2),10);var E=0;return he.indexOf(".")>=0&&(E=he.length-he.indexOf(".")-1),E},b.getInputDisplayValue=function(O){var he=O||b.state,E=he.focused,g=he.inputValue,Q=he.value,we;E?we=g:we=b.toPrecisionAsStep(Q),we==null&&(we="");var ye=b.formatWrapper(we);return ge(b.props.decimalSeparator)&&(ye=ye.toString().replace(".",b.props.decimalSeparator)),ye},b.recordCursorPosition=function(){try{b.cursorStart=b.input.selectionStart,b.cursorEnd=b.input.selectionEnd,b.currentValue=b.input.value,b.cursorBefore=b.input.value.substring(0,b.cursorStart),b.cursorAfter=b.input.value.substring(b.cursorEnd)}catch(O){}},b.restoreByAfter=function(O){if(O===void 0)return!1;var he=b.input.value,E=he.lastIndexOf(O);if(E===-1)return!1;var g=b.cursorBefore.length;return b.lastKeyCode===A.a.DELETE&&b.cursorBefore.charAt(g-1)===O[0]?(b.fixCaret(g,g),!0):E+O.length===he.length?(b.fixCaret(E,E),!0):!1},b.partRestoreByAfter=function(O){return O===void 0?!1:Array.prototype.some.call(O,function(he,E){var g=O.substring(E);return b.restoreByAfter(g)})},b.isNotCompleteNumber=function(O){return isNaN(O)||O===""||O===null||O&&O.toString().indexOf(".")===O.toString().length-1},b.stop=function(){b.autoStepTimer&&clearTimeout(b.autoStepTimer)},b.down=function(O,he,E){b.pressingUpOrDown=!0,b.step("down",O,he,E)},b.up=function(O,he,E){b.pressingUpOrDown=!0,b.step("up",O,he,E)},b.saveInput=function(O){b.input=O};var L=X.value;L===void 0&&(L=X.defaultValue),b.state={focused:X.autoFocus};var J=b.getValidValue(b.toNumber(L));return b.state=z(z({},b.state),{},{inputValue:b.toPrecisionAsStep(J),value:J}),b}return Object(le.a)(ne,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(b){var L=this.props,J=L.value,O=L.onChange,he=L.max,E=L.min,g=this.state.focused;if(b){if(!Ne(b.value,J)||!Ne(b.max,he)||!Ne(b.min,E)){var Q=g?J:this.getValidValue(J),we;this.pressingUpOrDown?we=Q:this.inputting?we=this.rawInput:we=this.toPrecisionAsStep(Q),this.setState({value:Q,inputValue:we})}var ye="value"in this.props?J:this.state.value;"max"in this.props&&b.max!==he&&typeof ye=="number"&&ye>he&&O&&O(he),"min"in this.props&&b.min!==E&&typeof ye=="number"&&ye<E&&O&&O(E)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var Ge=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===A.a.BACKSPACE?Ge=this.cursorStart-1:this.lastKeyCode===A.a.DELETE&&(Ge=this.cursorStart):Ge=this.input.value.length,this.fixCaret(Ge,Ge)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case A.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case A.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(Ve){}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(b){var L=b;return L===""?L="":this.isNotCompleteNumber(parseFloat(L))?L=this.state.value:L=this.getValidValue(L),this.toNumber(L)}},{key:"getValueFromEvent",value:function(b){var L=b.target.value.trim().replace(/。/g,".");return ge(this.props.decimalSeparator)&&(L=L.replace(this.props.decimalSeparator,".")),L}},{key:"getValidValue",value:function(b){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,O=parseFloat(b);return isNaN(O)?b:(O<L&&(O=L),O>J&&(O=J),O)}},{key:"setValue",value:function(b,L){var J=this.props.precision,O=this.isNotCompleteNumber(parseFloat(b))?null:parseFloat(b),he=this.state.value,E=he===void 0?null:he,g=this.state.inputValue,Q=g===void 0?null:g,we=typeof O=="number"?O.toFixed(J):"".concat(O),ye=O!==E||we!=="".concat(Q);return"value"in this.props?(Q=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Q},L)):this.setState({value:O,inputValue:this.toPrecisionAsStep(b)},L),ye&&this.props.onChange(O),O}},{key:"getMaxPrecision",value:function(b){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,J=this.props,O=J.precision,he=J.step;if(ge(O))return O;var E=this.getPrecision(L),g=this.getPrecision(he),Q=this.getPrecision(b);return b?Math.max(Q,E+g):E+g}},{key:"getPrecisionFactor",value:function(b){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,J=this.getMaxPrecision(b,L);return Math.pow(10,J)}},{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(b){return this.props.formatter?this.props.formatter(b):b}},{key:"toPrecisionAsStep",value:function(b){if(this.isNotCompleteNumber(b)||b==="")return b;var L=Math.abs(this.getMaxPrecision(b));return isNaN(L)?b.toString():Number(b).toFixed(L)}},{key:"toNumber",value:function(b){var L=this.props.precision,J=this.state.focused,O=b&&b.length>16&&J;return this.isNotCompleteNumber(b)||O?b:ge(L)?Math.round(b*Math.pow(10,L))/Math.pow(10,L):Number(b)}},{key:"upStep",value:function(b,L){var J=this.props.step,O=this.getPrecisionFactor(b,L),he=Math.abs(this.getMaxPrecision(b,L)),E=((O*b+O*J*L)/O).toFixed(he);return this.toNumber(E)}},{key:"downStep",value:function(b,L){var J=this.props.step,O=this.getPrecisionFactor(b,L),he=Math.abs(this.getMaxPrecision(b,L)),E=((O*b-O*J*L)/O).toFixed(he);return this.toNumber(E)}},{key:"step",value:function(b,L){var J=this,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,he=arguments.length>3?arguments[3]:void 0;this.stop(),L&&(L.persist(),L.preventDefault());var E=this.props;if(E.disabled)return;var g=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(g))return;var Q=this["".concat(b,"Step")](g,O),we=Q>E.max||Q<E.min;if(Q>E.max?Q=E.max:Q<E.min&&(Q=E.min),this.setValue(Q,null),this.setState({focused:!0},function(){J.pressingUpOrDown=!1}),we)return;this.autoStepTimer=setTimeout(function(){J[b](L,O,!0)},he?ke:He)}},{key:"fixCaret",value:function(b,L){if(b===void 0||L===void 0||!this.input||!this.input.value)return;try{var J=this.input.selectionStart,O=this.input.selectionEnd;(b!==J||L!==O)&&this.input.setSelectionRange(b,L)}catch(he){}}},{key:"render",value:function(){var b,L=this.props,J=L.prefixCls,O=L.disabled,he=L.readOnly,E=L.useTouch,g=L.autoComplete,Q=L.upHandler,we=L.downHandler,ye=L.className,Ge=L.max,Ve=L.min,Me=L.style,Ce=L.title,xe=L.onMouseEnter,Se=L.onMouseLeave,$=L.onMouseOver,F=L.onMouseOut,_e=L.required,nt=L.onClick,qe=L.tabIndex,it=L.type,$e=L.placeholder,Re=L.id,We=L.inputMode,je=L.pattern,lt=L.step,Ke=L.maxLength,Te=L.autoFocus,Qe=L.name,dt=L.onPaste,ut=L.onInput,et=Object(N.a)(L,["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"]),Je=this.state,ft=Je.value,st=Je.focused,ot=M()(J,(b={},Object(de.a)(b,ye,!!ye),Object(de.a)(b,"".concat(J,"-disabled"),O),Object(de.a)(b,"".concat(J,"-focused"),st),b)),Ee={};Object.keys(et).forEach(function(T){(T.substr(0,5)==="data-"||T.substr(0,5)==="aria-"||T==="role")&&(Ee[T]=et[T])});var gt=!he&&!O,rt=this.getInputDisplayValue(null),be=(ft||ft===0)&&(isNaN(ft)||Number(ft)>=Ge),Ie=(ft||ft===0)&&(isNaN(ft)||Number(ft)<=Ve),V=be||O||he,_=Ie||O||he,G=M()("".concat(J,"-handler"),"".concat(J,"-handler-up"),Object(de.a)({},"".concat(J,"-handler-up-disabled"),V)),y=M()("".concat(J,"-handler"),"".concat(J,"-handler-down"),Object(de.a)({},"".concat(J,"-handler-down-disabled"),_)),C=E?{onTouchStart:V?H:this.up,onTouchEnd:this.stop}:{onMouseDown:V?H:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},w=E?{onTouchStart:_?H:this.down,onTouchEnd:this.stop}:{onMouseDown:_?H:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return R.a.createElement("div",{className:ot,style:Me,title:Ce,onMouseEnter:xe,onMouseLeave:Se,onMouseOver:$,onMouseOut:F,onFocus:function(){return null},onBlur:function(){return null}},R.a.createElement("div",{className:"".concat(J,"-handler-wrap")},R.a.createElement("span",Object.assign({unselectable:"on"},C,{role:"button","aria-label":"Increase Value","aria-disabled":V,className:G}),Q||R.a.createElement("span",{unselectable:"on",className:"".concat(J,"-handler-up-inner"),onClick:Z})),R.a.createElement("span",Object.assign({unselectable:"on"},w,{role:"button","aria-label":"Decrease Value","aria-disabled":_,className:y}),we||R.a.createElement("span",{unselectable:"on",className:"".concat(J,"-handler-down-inner"),onClick:Z}))),R.a.createElement("div",{className:"".concat(J,"-input-wrap")},R.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Ve,"aria-valuemax":Ge,"aria-valuenow":ft,required:_e,type:it,placeholder:$e,onPaste:dt,onClick:nt,onMouseUp:this.onMouseUp,className:"".concat(J,"-input"),tabIndex:qe,autoComplete:g,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:gt?this.onKeyDown:H,onKeyUp:gt?this.onKeyUp:H,autoFocus:Te,maxLength:Ke,readOnly:he,disabled:O,max:Ge,min:Ve,step:lt,name:Qe,title:Ce,id:Re,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(rt),pattern:je,inputMode:We,onInput:ut},Ee))))}}]),ne}(R.a.Component);ve.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:ue,min:-ue,step:1,style:{},onChange:H,onKeyDown:H,onPressEnter:H,onFocus:H,onBlur:H,parser:ee,required:!1,autoComplete:"off"};var pe=ve,re=ce.a=pe},f4xo:function(me,ce,f){var N=f("nVVt");function de(q){this.mode=N.MODE_8BIT_BYTE,this.data=q}de.prototype={getLength:function(q){return this.data.length},write:function(q){for(var le=0;le<this.data.length;le++)q.put(this.data.charCodeAt(le),8)}},me.exports=de},is8o:function(me,ce,f){me.exports={flex_box_center:"flex_box_center___45jij",flex_space_between:"flex_space_between___2rBtS",flex_box_vertical_center:"flex_box_vertical_center___B3dEI",flex_box_center_end:"flex_box_center_end___1hlbx",flex_box_column:"flex_box_column___n3oa5",wrap:"wrap___2Ebga",modal:"modal___37ZgF",titleWrap:"titleWrap___dEwT4",required:"required___4a1a5",title:"title___1MHB3",colorGray:"colorGray___1tQ38",choiceWrap:"choiceWrap___2Ik_w",answer:"answer___3N5FQ",activeAnswer:"activeAnswer___3zdHK",deleteIcon:"deleteIcon___U7nIS",addIcon:"addIcon___2tuSF",editorWrap:"editorWrap___ZOK2K",htmlWrap:"htmlWrap___3X_dl",radio:"radio___wS7N0",color333:"color333___S1zDX",color999:"color999___VJwGv",questionType:"questionType___BHDve",questionChoices:"questionChoices___3YAfc"}},ji0R:function(me,ce,f){me.exports=f.p+"static/douyu.3e6df9ee.jpg"},kPWJ:function(me,ce,f){me.exports=f.p+"static/question.cb52bef9.gif"},kPYp:function(me,ce){me.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJp7WyvdI0OtR4LEK7CstUIWyJLTSRcLfCnvlAiUKSgCEfV8o6NeMVE/G53itOUiXX3Sxcx2ov4qhG+qjBWoFChWYUqIt6VgFeblR0H5lEL0oGyjKvU1yHezPviyHdZ0Ro180basvD398n77svIFTokK5vrgW8LTELJRwgA6bTSHcaBckot/yWGX2YZtv5untT0dJ7SpOZr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y3Y18FGXrjipZmzAMLIoM4ZZQqwmdh7Oaltv3E0id1lMlR1hRJnk8PK+H0mqu7DmHBDB4vw6HtneQ8N06YNalIp4HmF6X8EfV6ljRfk5EmNxJvIdn09ksdYIs7oV2d7h7uGrhUOEzP14ibzoNgXmC3wjQx3dbwZdwM6YcbHpNJFDKjxr4dHOunv3rcY9rANNC7dbR4WFkbhIP7ddFxSxTK3Cr0nzgFMz2+05Su37saTsWJRVS5VnuHnnAnmtp8vPnKne+1NY4jlZwtDfWpob6ijzhQ098fyLVmn/bJ97PMPtQJ5r8Dxck5VUMyqXP0wEzEHjNFHQR438rPPZtuyiKpTtmsdjrji7SGmJmBJrGYZSlIsyfYD7oaJVlVqEAwbejSJeafR5t6dOsfOGTuXMTTHeBExHmCzCaDTurLPEFWOlXqFKlI+s8prfwG92lnXVXkoq9HwTcD/KdSp8mGrmyVSaf+pJJmjff/gKHZaTxR3G8E1rKWyoY4MvbOwJfIdIcSUX+8Ic1yg6yT6Eb7Q1Wc4BORRk+RQZQ2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},kSUc:function(me,ce,f){},kvPc:function(me,ce,f){"use strict";f.r(ce);var N=f("5Dmo"),de=f("3S7+"),q=f("P2fV"),le=f("NJEC"),ae=f("14J3"),K=f("BMrR"),S=f("jCWc"),k=f("kPKH"),R=f("OaEy"),W=f("2fM7"),M=f("7Kak"),A=f("9yH6"),Y=f("+L6B"),z=f("2/Rp"),P=f("5NDa"),U=f("5rEg"),H=f("miYZ"),Z=f("tsqr"),ee=f("k1fw"),ke=f("9og8"),He=f("y8nQ"),ue=f("Vl3Y"),ge=f("tJVT"),Ne=f("PpiC"),ve=f("WmNS"),pe=f.n(ve),re=f("q1tI"),I=f.n(re),x=f("9kvl"),ne=f("Ot1p"),X=f("HBuW"),b=f("oBTY"),L=f("2qtc"),J=f("kLXV"),O=f("Ty5D"),he=f("V0Rq"),E=f("9Bee"),g=f("is8o"),Q=f.n(g),we=["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"],ye=function(qe,it){var $e=qe.problemset,Re=qe.globalSetting,We=qe.loading,je=qe.dispatch,lt=qe.onRef,Ke=lt===void 0?function(){}:lt,Te=qe.editData,Qe=Object(Ne.a)(qe,["problemset","globalSetting","loading","dispatch","onRef","editData"]),dt=Object(re.useState)([]),ut=Object(ge.a)(dt,2),et=ut[0],Je=ut[1],ft=Object(re.useState)(),st=Object(ge.a)(ft,2),ot=st[0],Ee=st[1],gt=Object(re.useState)([]),rt=Object(ge.a)(gt,2),be=rt[0],Ie=rt[1],V=Object(re.useState)(""),_=Object(ge.a)(V,2),G=_[0],y=_[1],C=Object(re.useState)(5),w=Object(ge.a)(C,2),T=w[0],ie=w[1],fe=Object(re.useState)(!1),Be=Object(ge.a)(fe,2),bt=Be[0],Lt=Be[1],De=Object(O.i)();Object(re.useEffect)(function(){Je(["","","",""])},[]),Object(re.useEffect)(function(){var Nt,Mt;if(!(Te!=null&&Te.challenge_id)){Lt(!0);return}y(Te==null?void 0:Te.subject),ie(parseInt(Te==null?void 0:Te.question_score)),Je(Te==null||((Nt=Te.choose_contents)===null||Nt===void 0)?void 0:Nt.map(function(It){return It.option_name}));var ct=[];Te==null||((Mt=Te.standard_answer)===null||Mt===void 0)||Mt.split("").map(function(It,Ot){ct.push(we.indexOf(It))}),Ie(ct)},[Te]),Object(re.useImperativeHandle)(it,function(){return{onSave:mt,onReset:At,isEdit:bt}});var At=function(){Je(["","","",""]),y(""),Ie([])},mt=function(){var Nt=Object(ke.a)(pe.a.mark(function Mt(){var ct,It;return pe.a.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:if(G){Ze.next=3;break}return Z.b.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),Ze.abrupt("return",!1);case 3:if(ct=et.findIndex(function(tn){return!tn}),!(ct>-1)){Ze.next=7;break}return Z.b.info("\u8BF7\u5148\u8F93\u5165 ".concat(we[ct]," \u9009\u9879\u7684\u5185\u5BB9")),Ze.abrupt("return",!1);case 7:if(be.length){Ze.next=10;break}return Z.b.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),Ze.abrupt("return",!1);case 10:if(!(be.length<1)){Ze.next=13;break}return Z.b.info("\u8BF7\u9009\u62E9\u7B54\u6848"),Ze.abrupt("return",!1);case 13:return It=et.map(function(tn,un){return{choice_text:tn,is_answer:!!be.includes(un)}}),Ze.abrupt("return",{subject:G,question:{cnt:It.map(function(tn){return tn.choice_text})},choice:{answer:It.map(function(tn){return tn.is_answer})}});case 15:case"end":return Ze.stop()}},Mt)}));return function(){return Nt.apply(this,arguments)}}(),tt=[{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"}],Ut=function(){var Nt=Object(ke.a)(pe.a.mark(function Mt(ct){return pe.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:Ot.t0=ct.id,Ot.next=Ot.t0==="del"?3:Ot.t0==="up"||Ot.t0==="down"?5:Ot.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(ke.a)(pe.a.mark(function tn(){return pe.a.wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return nn.next=2,Object(he.m)({id:Te.question_id});case 2:je({type:"exercise/editExercise",payload:Object(ee.a)({},De)});case 3:case"end":return nn.stop()}},tn)}))()}}),Ot.abrupt("break",11);case 5:return Ot.next=7,je({type:"exercise/exeriseMoveUpDown",payload:{id:Te.question_id,opr:ct.id}});case 7:return je({type:"exercise/editExercise",payload:Object(ee.a)({},De)}),Ot.abrupt("break",11);case 9:return Lt(!0),Ot.abrupt("break",11);case 11:case"end":return Ot.stop()}},Mt)}));return function(ct){return Nt.apply(this,arguments)}}(),Dt=function(){var Mt;return I.a.createElement("aside",null,I.a.createElement("p",{className:Q.a.titleWrap},I.a.createElement("span",{className:Q.a.required},"*"),I.a.createElement("span",{className:Q.a.title},"\u9898\u5E72\uFF1A")),I.a.createElement(ne.a,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:G,onChange:function(It){return y(It)}}),I.a.createElement("p",{className:Q.a.titleWrap},I.a.createElement("span",{className:Q.a.required},"*"),I.a.createElement("span",{className:Q.a.title},"\u7B54\u6848\u9009\u9879\uFF1A",I.a.createElement("span",{className:Q.a.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),et.map(function(ct,It){return I.a.createElement("div",{className:Q.a.choiceWrap,key:It},I.a.createElement(de.a,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},I.a.createElement("div",{className:"".concat(Q.a.answer," ").concat(be.includes(It)?Q.a.activeAnswer:""),onClick:function(){be.includes(It)?Ie(be.filter(function(Ze){return Ze!==It})):Ie([].concat(Object(b.a)(be),[It]))}},we[It])),I.a.createElement("div",{className:Q.a.editorWrap},ot===It?I.a.createElement(ne.a,{id:"single-question-option-".concat(It),watch:!0,isFocus:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:ct,onChange:function(Ze){et[It]=Ze,Je(et)}}):I.a.createElement("div",{className:Q.a.htmlWrap,onClick:function(){return Ee(It)}},I.a.createElement(E.a,{value:ct}))),It>1&&I.a.createElement(de.a,{title:"\u5220\u9664"},I.a.createElement("i",{className:"".concat(Q.a.deleteIcon," iconfont icon-htmal5icon19"),onClick:function(){return Je(et.filter(function(Ze,tn){return tn!==It}))}})),It<7&&It===et.length-1&&I.a.createElement(de.a,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},I.a.createElement("i",{className:"".concat(Q.a.addIcon," iconfont icon-roundaddfill ml6"),onClick:function(){return Je([].concat(Object(b.a)(et),[""]))}})))}),I.a.createElement(K.a,{className:"mt10"},I.a.createElement(k.a,{flex:"1"},I.a.createElement("p",{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")),I.a.createElement(k.a,null,"\u6807\u51C6\u7B54\u6848\uFF1A",I.a.createElement("span",{className:"c-orange"},be==null||((Mt=be.sort(function(ct,It){return ct-It}))===null||Mt===void 0)?void 0:Mt.map(function(ct){return we[ct]})))))};return I.a.createElement("section",{className:Q.a.wrap},Dt())},Ge=Object(x.a)(function(nt){var qe=nt.problemset,it=nt.loading,$e=nt.globalSetting;return{problemset:qe,globalSetting:$e,loading:it.effects}},null,null,{forwardRef:!0})(Object(re.forwardRef)(ye)),Ve=f("1vsH"),Me=f("zEei"),Ce=f.n(Me),xe=f("CJF0"),Se=f("2RCv"),$={1:[10,20],2:[30,40,50,60],3:[70,80,90,100]},F=function(qe){var it,$e=qe.shixunsDetail,Re=qe.dispatch,We=qe.loading,je=qe.match,lt=qe.location,Ke=Object(Ne.a)(qe,["shixunsDetail","dispatch","loading","match","location"]),Te=ue.a.useForm(),Qe=Object(ge.a)(Te,1),dt=Qe[0],ut=Object(re.useState)({}),et=Object(ge.a)(ut,2),Je=et[0],ft=et[1],st=Object(re.useState)(!1),ot=Object(ge.a)(st,2),Ee=ot[0],gt=ot[1],rt=Object(re.useState)(!0),be=Object(ge.a)(rt,2),Ie=be[0],V=be[1],_=Object(re.useState)(),G=Object(ge.a)(_,2),y=G[0],C=G[1],w=Object(re.useState)([10,20]),T=Object(ge.a)(w,2),ie=T[0],fe=T[1],Be=Object(re.useState)(!1),bt=Object(ge.a)(Be,2),Lt=bt[0],De=bt[1],At=Object(re.useState)({}),mt=Object(ge.a)(At,2),tt=mt[0],Ut=mt[1],Dt=$e.challengesEdit,Nt=$e.editChallengesQuestion,Mt=Object(re.useRef)(),ct=function(){var Ht=Object(ke.a)(pe.a.mark(function yt(){var Fe;return pe.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:return Rt.next=2,Re({type:"shixunsDetail/getChallengesEdit",payload:Object(ee.a)({},je.params)});case 2:Fe=Rt.sent,dt.setFieldsValue(Object(ee.a)({},Fe));case 4:case"end":return Rt.stop()}},yt)}));return function(){return Ht.apply(this,arguments)}}(),It=function(){var Ht=Object(ke.a)(pe.a.mark(function yt(){var Fe;return pe.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:if(!je.params.questionId){Rt.next=7;break}return Rt.next=3,Re({type:"shixunsDetail/getEditChallengesQuestion",payload:Object(ee.a)({},je.params)});case 3:Fe=Rt.sent,dt.setFieldsValue({challenge_tag:Fe.tags,difficult:Fe.difficult,score:Fe.score,answer:Fe.answer}),fe($[Fe.difficult]),Ut(Fe);case 7:case"end":return Rt.stop()}},yt)}));return function(){return Ht.apply(this,arguments)}}();Object(re.useEffect)(function(){ct(),je.params.questionId&&(C(!0),It(),gt(!0))},[lt.pathname]);var Ot=function(){var Ht=Object(ke.a)(pe.a.mark(function yt(){var Fe,Gt,Rt,on;return pe.a.wrap(function(pn){for(;;)switch(pn.prev=pn.next){case 0:return Gt="",Rt=Object(ee.a)({},Je),pn.next=4,Mt.current.onSave();case 4:return on=pn.sent,(Fe=on.choice)===null||Fe===void 0||Fe.answer.map(function(Ct,ri){Ct&&(Gt+=Ve.m[ri])}),pn.abrupt("return",{challenge_choose:{subject:on.subject,answer:Je.task_pass,standard_answer:Gt,score:Je.score,difficult:Je.difficult},challenge_tag:Je.challenge_tag,question:on.question,choice:on.choice});case 7:case"end":return pn.stop()}},yt)}));return function(){return Ht.apply(this,arguments)}}(),Ze=function(yt){var Fe=$[yt],Gt=Fe==null?void 0:Fe[0];fe(Fe),dt.setFieldsValue({score:Gt}),ft(Object(ee.a)(Object(ee.a)({},dt.getFieldsValue()),{score:Gt}))},tn=function(yt,Fe){ft(Object(ee.a)({},dt.getFieldsValue())),"difficult"in yt&&Ze(yt.difficult)},un=function(){var Ht=Object(ke.a)(pe.a.mark(function yt(){var Fe;return pe.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:return Rt.t0=X.v,Rt.t1=ee.a,Rt.t2=ee.a,Rt.t3={},Rt.next=6,Ot();case 6:return Rt.t4=Rt.sent,Rt.t5=(0,Rt.t2)(Rt.t3,Rt.t4),Rt.t6=je.params,Rt.t7=(0,Rt.t1)(Rt.t5,Rt.t6),Rt.next=12,(0,Rt.t0)(Rt.t7);case 12:Fe=Rt.sent,(Fe==null?void 0:Fe.status)===1&&Z.b.success("\u5220\u9664\u6210\u529F"),Ke.history.replace("/shixuns/".concat(je.params.id,"/challenges/").concat(je.params.challengesId,"/editquestion"));case 15:case"end":return Rt.stop()}},yt)}));return function(){return Ht.apply(this,arguments)}}(),nn=function(){var Ht=Object(ke.a)(pe.a.mark(function yt(Fe){var Gt,Rt,on,Bt;return pe.a.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(Gt=Object(ee.a)({},Je),De(!0),Ie){Ct.next=20;break}return Ct.t0=X.c,Ct.t1=ee.a,Ct.t2=ee.a,Ct.t3={},Ct.next=9,Ot();case 9:return Ct.t4=Ct.sent,Ct.t5=(0,Ct.t2)(Ct.t3,Ct.t4),Ct.t6=je.params,Ct.t7=(0,Ct.t1)(Ct.t5,Ct.t6),Ct.next=15,(0,Ct.t0)(Ct.t7);case 15:Rt=Ct.sent,De(!1),Rt.challenge_choose_id&&(Z.b.success("\u64CD\u4F5C\u6210\u529F"),Ke.history.replace("/shixuns/".concat(je.params.id,"/challenges/").concat(je.params.challengesId,"/editquestion/").concat(Rt.challenge_choose_id))),Ct.next=45;break;case 20:if(!je.params.questionId){Ct.next=38;break}return Ct.t8=X.Mb,Ct.t9=ee.a,Ct.t10=ee.a,Ct.t11={},Ct.next=27,Ot();case 27:return Ct.t12=Ct.sent,Ct.t13=(0,Ct.t10)(Ct.t11,Ct.t12),Ct.t14=je.params,Ct.t15=(0,Ct.t9)(Ct.t13,Ct.t14),Ct.next=33,(0,Ct.t8)(Ct.t15);case 33:on=Ct.sent,De(!1),on.challenge_choose_id&&Z.b.success("\u64CD\u4F5C\u6210\u529F"),Ct.next=45;break;case 38:return Gt.identifier=je.params.id,Gt.st=1,Ct.next=42,Object(X.Lb)(Object(ee.a)(Object(ee.a)({},Gt),je.params));case 42:Bt=Ct.sent,De(!1),Bt.challenge_id&&Z.b.success("\u64CD\u4F5C\u6210\u529F");case 45:case"end":return Ct.stop()}},yt)}));return function(Fe){return Ht.apply(this,arguments)}}(),Rn=function(){var yt;return I.a.createElement("div",null,I.a.createElement("div",{className:Ce.a.fieldWrap},I.a.createElement(ue.a.Item,{name:"subject",label:"\u4EFB\u52A1\u540D\u79F0:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"}]},I.a.createElement(U.a,{maxLength:60,suffix:"".concat(((yt=Je.subject)===null||yt===void 0?void 0:yt.length)||0,"/60"),placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),I.a.createElement("div",{className:Ce.a.mdWrap},I.a.createElement(ue.a.Item,{name:"task_pass",label:"\u8FC7\u5173\u4EFB\u52A1:",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"}]},I.a.createElement(ne.a,{watch:!0,defaultValue:Dt.task_pass}))),I.a.createElement("div",{className:Ce.a.backgroundFa},I.a.createElement("div",{className:"pt40 mb30"},I.a.createElement(ue.a.Item,null,I.a.createElement(z.a,{size:"large",type:"primary",className:"".concat(Ce.a.button," mr20"),htmlType:"submit",loading:Lt},"\u63D0\u4EA4"),I.a.createElement(z.a,{size:"large",type:"primary",ghost:!0,className:Ce.a.button,onClick:function(){return x.d.push("/shixuns/".concat(je.params.id,"/challenges"))}},"\u53D6\u6D88")))))},qn=function(){var yt,Fe;return I.a.createElement("div",null,I.a.createElement("div",{className:"bg-white"},I.a.createElement(Ge,{ref:Mt,editData:tt})),I.a.createElement("div",{className:Ce.a.mdWrap},I.a.createElement(ue.a.Item,{name:"task_pass",label:"\u53C2\u8003\u7B54\u6848:",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"}]},I.a.createElement(ne.a,{watch:!0,defaultValue:Ie?Nt.answer:""})),I.a.createElement(ue.a.Item,{name:"difficult",label:"\u96BE\u5EA6\u7CFB\u6570:",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6\u7CFB\u6570"}]},I.a.createElement(A.a.Group,{disabled:((yt=$e.detail)===null||yt===void 0?void 0:yt.shixun_status)===2},I.a.createElement(A.a,{value:1},"\u7B80\u5355"),I.a.createElement(A.a,{value:2},"\u4E2D\u7B49"),I.a.createElement(A.a,{value:3},"\u56F0\u96BE"))),I.a.createElement(K.a,null,I.a.createElement(k.a,null,I.a.createElement(ue.a.Item,{name:"score",label:"\u5956\u52B1\u7ECF\u9A8C\u503C:",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5956\u52B1\u7ECF\u9A8C\u503C"}]},I.a.createElement(W.a,{disabled:((Fe=$e.detail)===null||Fe===void 0?void 0:Fe.shixun_status)===2},ie.map(function(Gt){return I.a.createElement(W.a.Option,{key:Gt,value:Gt},Gt)})))),I.a.createElement(k.a,{flex:1},I.a.createElement("div",{className:"font12 c-light-black ml10 mt20"},"\u5982\u679C\u5B66\u5458\u7B54\u9898\u9519\u8BEF\uFF0C\u5219\u4E0D\u80FD\u5F97\u5230\u76F8\u5E94\u7684\u7ECF\u9A8C\u503C",I.a.createElement("br",null),"\u5982\u679C\u5B66\u5458\u6210\u529F\u5F97\u5230\u7ECF\u9A8C\u503C\uFF0C\u90A3\u4E48\u5C06\u540C\u65F6\u83B7\u5F97\u7B49\u503C\u7684\u91D1\u5E01\u5956\u52B1\uFF0C\u5982\uFF1A+10\u7ECF\u9A8C\u503C\u3001+10\u91D1\u5E01"))),I.a.createElement(ue.a.Item,{name:"challenge_tag",label:I.a.createElement("div",null,"\u6280\u80FD\u6807\u7B7E ",I.a.createElement("span",{className:"pl20 font12 c-light-black"},"\u5B66\u5458\u7B54\u9898\u6B63\u786E\u5C06\u83B7\u5F97\u6280\u80FD\uFF0C\u5426\u5219\u4E0D\u80FD\u83B7\u5F97\u6280\u80FD\uFF08\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E\uFF09")),rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6280\u80FD\u6807\u7B7E"}]},I.a.createElement(Se.a,{placeholder:"\u6DFB\u52A0\u6807\u7B7E"}))),I.a.createElement("div",{className:Ce.a.backgroundFa},I.a.createElement(K.a,{className:"pt40 mb30"},I.a.createElement(k.a,{flex:1},I.a.createElement(ue.a.Item,null,I.a.createElement(z.a,{size:"large",type:"primary",className:"".concat(Ce.a.button," mr20"),htmlType:"submit",loading:Lt},"\u63D0\u4EA4"),I.a.createElement(z.a,{size:"large",type:"primary",ghost:!0,className:Ce.a.button,onClick:function(){return x.d.push("/shixuns/".concat(je.params.id,"/challenges"))}},"\u53D6\u6D88"))),I.a.createElement(k.a,null,y&&I.a.createElement(z.a,{size:"large",ghost:!0,className:"".concat(Ce.a.button," ").concat(Ce.a.deleteButton),onClick:un},"\u5220\u9664")))))};return I.a.createElement("section",{className:Ce.a.bg},I.a.createElement(xe.a,{data:Dt,title:"\u9009\u62E9\u9898"}),I.a.createElement(ue.a,{form:dt,className:Ce.a.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:tn,onFinish:nn,initialValues:{difficult:1,score:10}},I.a.createElement("aside",{className:["bg-white",Ce.a.navBar].join(" ")},I.a.createElement(le.a,{title:"\u5207\u6362\u524D\u8BF7\u786E\u8BA4\u5F53\u524D\u9009\u62E9\u9898\u5DF2\u63D0\u4EA4\uFF0C\u5426\u5219\u4E0D\u4F1A\u4FDD\u5B58\u4F60\u5F53\u524D\u6240\u6709\u8F93\u5165\uFF01",onConfirm:function(){x.d.replace("/shixuns/".concat(je.params.id,"/challenges/").concat(je.params.challengesId,"/editquestion"))}},I.a.createElement("strong",{className:"current"},"\u672C\u5173\u4EFB\u52A1")),Dt==null||((it=Dt.chooses)===null||it===void 0)?void 0:it.map(function(Ht,yt){return I.a.createElement(le.a,{title:"\u5207\u6362\u524D\u8BF7\u786E\u8BA4\u5F53\u524D\u9009\u62E9\u9898\u5DF2\u63D0\u4EA4\uFF0C\u5426\u5219\u4E0D\u4F1A\u4FDD\u5B58\u4F60\u5F53\u524D\u6240\u6709\u8F93\u5165\uFF01",onConfirm:function(){x.d.replace("/shixuns/".concat(je.params.id,"/challenges/").concat(je.params.challengesId,"/editquestion/").concat(Ht.choose_id))}},I.a.createElement("strong",{className:"current ".concat(je.params.questionId==Ht.choose_id&&Ie?Ce.a.actived:"")},Ht.type===1?"\u5355\u9009\u9898":"\u591A\u9009\u9898"))}),Ie&&I.a.createElement(le.a,{title:"\u5207\u6362\u524D\u8BF7\u786E\u8BA4\u5F53\u524D\u9009\u62E9\u9898\u5DF2\u63D0\u4EA4\uFF0C\u5426\u5219\u4E0D\u4F1A\u4FDD\u5B58\u4F60\u5F53\u524D\u6240\u6709\u8F93\u5165\uFF01",onConfirm:function(){gt(!0),V(!1),Ut({}),Mt.current&&Mt.current.onReset(),dt.resetFields()}},I.a.createElement(de.a,{title:"\u65B0\u589E\u9009\u62E9\u9898"},I.a.createElement("span",{className:Ce.a.addButton,onClick:function(){}},"+"))),!Ie&&I.a.createElement("strong",{className:Ce.a.actived},"\u9009\u62E9\u9898")),!Ee&&Rn(),Ee&&qn()))},_e=ce.default=Object(x.a)(function(nt){var qe=nt.shixunsDetail,it=nt.newCourse,$e=nt.loading,Re=nt.globalSetting;return{shixunsDetail:qe,newCourse:it,globalSetting:Re,loading:$e.effects}})(F)},l2Kq:function(me,ce,f){me.exports=f.p+"static/match_ad.24dc22fd.jpg"},lZu9:function(me,ce,f){(function(N){N(f("VrN/"),f("1eCo"),f("8EBN"))})(function(N){"use strict";N.defineMode("markdown",function(de,q){var le=N.getMode(de,"text/html"),ae=le.name=="null";function K(E){if(N.findModeByName){var g=N.findModeByName(E);g&&(E=g.mime||g.mimes[0])}var Q=N.getMode(de,E);return Q.name=="null"?null:Q}q.highlightFormatting===void 0&&(q.highlightFormatting=!1),q.maxBlockquoteDepth===void 0&&(q.maxBlockquoteDepth=0),q.taskLists===void 0&&(q.taskLists=!1),q.strikethrough===void 0&&(q.strikethrough=!1),q.emoji===void 0&&(q.emoji=!1),q.fencedCodeBlockHighlighting===void 0&&(q.fencedCodeBlockHighlighting=!0),q.fencedCodeBlockDefaultMode===void 0&&(q.fencedCodeBlockDefaultMode="text/plain"),q.xml===void 0&&(q.xml=!0),q.tokenTypeOverrides===void 0&&(q.tokenTypeOverrides={});var S={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 k in S)S.hasOwnProperty(k)&&q.tokenTypeOverrides[k]&&(S[k]=q.tokenTypeOverrides[k]);var R=/^([*\-_])(?:\s*\1){2,}\s*$/,W=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,M=/^\[(x| )\](?=\s)/i,A=q.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Y=/^ {0,3}(?:\={1,}|-{2,})\s*$/,z=/^[^#!\[\]*_\\<>` "'(~:]+/,P=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,U=/^\s*\[[^\]]+?\]:.*$/,H=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Z=" ";function ee(E,g,Q){return g.f=g.inline=Q,Q(E,g)}function ke(E,g,Q){return g.f=g.block=Q,Q(E,g)}function He(E){return!E||!/\S/.test(E.string)}function ue(E){if(E.linkTitle=!1,E.linkHref=!1,E.linkText=!1,E.em=!1,E.strong=!1,E.strikethrough=!1,E.quote=0,E.indentedCode=!1,E.f==Ne){var g=ae;if(!g){var Q=N.innerMode(le,E.htmlState);g=Q.mode.name=="xml"&&Q.state.tagStart===null&&!Q.state.context&&Q.state.tokenize.isInText}g&&(E.f=I,E.block=ge,E.htmlState=null)}return E.trailingSpace=0,E.trailingSpaceNewLine=!1,E.prevLine=E.thisLine,E.thisLine={stream:null},null}function ge(E,g){var Q=E.column()===g.indentation,we=He(g.prevLine.stream),ye=g.indentedCode,Ge=g.prevLine.hr,Ve=g.list!==!1,Me=(g.listStack[g.listStack.length-1]||0)+3;g.indentedCode=!1;var Ce=g.indentation;if(g.indentationDiff===null&&(g.indentationDiff=g.indentation,Ve)){for(g.list=null;Ce<g.listStack[g.listStack.length-1];)g.listStack.pop(),g.listStack.length?g.indentation=g.listStack[g.listStack.length-1]:g.list=!1;g.list!==!1&&(g.indentationDiff=Ce-g.listStack[g.listStack.length-1])}var xe=!we&&!Ge&&!g.prevLine.header&&(!Ve||!ye)&&!g.prevLine.fencedCodeEnd,Se=(g.list===!1||Ge||we)&&g.indentation<=Me&&E.match(R),$=null;if(g.indentationDiff>=4&&(ye||g.prevLine.fencedCodeEnd||g.prevLine.header||we))return E.skipToEnd(),g.indentedCode=!0,S.code;if(E.eatSpace())return null;if(Q&&g.indentation<=Me&&($=E.match(A))&&$[1].length<=6)return g.quote=0,g.header=$[1].length,g.thisLine.header=!0,q.highlightFormatting&&(g.formatting="header"),g.f=g.inline,pe(g);if(g.indentation<=Me&&E.eat(">"))return g.quote=Q?1:g.quote+1,q.highlightFormatting&&(g.formatting="quote"),E.eatSpace(),pe(g);if(!Se&&!g.setext&&Q&&g.indentation<=Me&&($=E.match(W))){var F=$[1]?"ol":"ul";return g.indentation=Ce+E.current().length,g.list=!0,g.quote=0,g.listStack.push(g.indentation),g.em=!1,g.strong=!1,g.code=!1,g.strikethrough=!1,q.taskLists&&E.match(M,!1)&&(g.taskList=!0),g.f=g.inline,q.highlightFormatting&&(g.formatting=["list","list-"+F]),pe(g)}else{if(Q&&g.indentation<=Me&&($=E.match(P,!0)))return g.quote=0,g.fencedEndRE=new RegExp($[1]+"+ *$"),g.localMode=q.fencedCodeBlockHighlighting&&K($[2]||q.fencedCodeBlockDefaultMode),g.localMode&&(g.localState=N.startState(g.localMode)),g.f=g.block=ve,q.highlightFormatting&&(g.formatting="code-block"),g.code=-1,pe(g);if(g.setext||(!xe||!Ve)&&!g.quote&&g.list===!1&&!g.code&&!Se&&!U.test(E.string)&&($=E.lookAhead(1))&&($=$.match(Y)))return g.setext?(g.header=g.setext,g.setext=0,E.skipToEnd(),q.highlightFormatting&&(g.formatting="header")):(g.header=$[0].charAt(0)=="="?1:2,g.setext=g.header),g.thisLine.header=!0,g.f=g.inline,pe(g);if(Se)return E.skipToEnd(),g.hr=!0,g.thisLine.hr=!0,S.hr;if(E.peek()==="[")return ee(E,g,L)}return ee(E,g,g.inline)}function Ne(E,g){var Q=le.token(E,g.htmlState);if(!ae){var we=N.innerMode(le,g.htmlState);(we.mode.name=="xml"&&we.state.tagStart===null&&!we.state.context&&we.state.tokenize.isInText||g.md_inside&&E.current().indexOf(">")>-1)&&(g.f=I,g.block=ge,g.htmlState=null)}return Q}function ve(E,g){var Q=g.listStack[g.listStack.length-1]||0,we=g.indentation<Q,ye=Q+3;if(g.fencedEndRE&&g.indentation<=ye&&(we||E.match(g.fencedEndRE))){q.highlightFormatting&&(g.formatting="code-block");var Ge;return we||(Ge=pe(g)),g.localMode=g.localState=null,g.block=ge,g.f=I,g.fencedEndRE=null,g.code=0,g.thisLine.fencedCodeEnd=!0,we?ke(E,g,g.block):Ge}else return g.localMode?g.localMode.token(E,g.localState):(E.skipToEnd(),S.code)}function pe(E){var g=[];if(E.formatting){g.push(S.formatting),typeof E.formatting=="string"&&(E.formatting=[E.formatting]);for(var Q=0;Q<E.formatting.length;Q++)g.push(S.formatting+"-"+E.formatting[Q]),E.formatting[Q]==="header"&&g.push(S.formatting+"-"+E.formatting[Q]+"-"+E.header),E.formatting[Q]==="quote"&&(!q.maxBlockquoteDepth||q.maxBlockquoteDepth>=E.quote?g.push(S.formatting+"-"+E.formatting[Q]+"-"+E.quote):g.push("error"))}if(E.taskOpen)return g.push("meta"),g.length?g.join(" "):null;if(E.taskClosed)return g.push("property"),g.length?g.join(" "):null;if(E.linkHref?g.push(S.linkHref,"url"):(E.strong&&g.push(S.strong),E.em&&g.push(S.em),E.strikethrough&&g.push(S.strikethrough),E.emoji&&g.push(S.emoji),E.linkText&&g.push(S.linkText),E.code&&g.push(S.code),E.image&&g.push(S.image),E.imageAltText&&g.push(S.imageAltText,"link"),E.imageMarker&&g.push(S.imageMarker)),E.header&&g.push(S.header,S.header+"-"+E.header),E.quote&&(g.push(S.quote),!q.maxBlockquoteDepth||q.maxBlockquoteDepth>=E.quote?g.push(S.quote+"-"+E.quote):g.push(S.quote+"-"+q.maxBlockquoteDepth)),E.list!==!1){var we=(E.listStack.length-1)%3;we?we===1?g.push(S.list2):g.push(S.list3):g.push(S.list1)}return E.trailingSpaceNewLine?g.push("trailing-space-new-line"):E.trailingSpace&&g.push("trailing-space-"+(E.trailingSpace%2?"a":"b")),g.length?g.join(" "):null}function re(E,g){return E.match(z,!0)?pe(g):void 0}function I(E,g){var Q=g.text(E,g);if(typeof Q!="undefined")return Q;if(g.list)return g.list=null,pe(g);if(g.taskList){var we=E.match(M,!0)[1]===" ";return we?g.taskOpen=!0:g.taskClosed=!0,q.highlightFormatting&&(g.formatting="task"),g.taskList=!1,pe(g)}if(g.taskOpen=!1,g.taskClosed=!1,g.header&&E.match(/^#+$/,!0))return q.highlightFormatting&&(g.formatting="header"),pe(g);var ye=E.next();if(g.linkTitle){g.linkTitle=!1;var Ge=ye;ye==="("&&(Ge=")"),Ge=(Ge+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ve="^\\s*(?:[^"+Ge+"\\\\]+|\\\\\\\\|\\\\.)"+Ge;if(E.match(new RegExp(Ve),!0))return S.linkHref}if(ye==="`"){var Me=g.formatting;q.highlightFormatting&&(g.formatting="code"),E.eatWhile("`");var Ce=E.current().length;if(g.code==0&&(!g.quote||Ce==1))return g.code=Ce,pe(g);if(Ce==g.code){var xe=pe(g);return g.code=0,xe}else return g.formatting=Me,pe(g)}else if(g.code)return pe(g);if(ye==="\\"&&(E.next(),q.highlightFormatting)){var Se=pe(g),$=S.formatting+"-escape";return Se?Se+" "+$:$}if(ye==="!"&&E.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return g.imageMarker=!0,g.image=!0,q.highlightFormatting&&(g.formatting="image"),pe(g);if(ye==="["&&g.imageMarker&&E.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return g.imageMarker=!1,g.imageAltText=!0,q.highlightFormatting&&(g.formatting="image"),pe(g);if(ye==="]"&&g.imageAltText){q.highlightFormatting&&(g.formatting="image");var Se=pe(g);return g.imageAltText=!1,g.image=!1,g.inline=g.f=ne,Se}if(ye==="["&&!g.image)return g.linkText&&E.match(/^.*?\]/)||(g.linkText=!0,q.highlightFormatting&&(g.formatting="link")),pe(g);if(ye==="]"&&g.linkText){q.highlightFormatting&&(g.formatting="link");var Se=pe(g);return g.linkText=!1,g.inline=g.f=E.match(/\(.*?\)| ?\[.*?\]/,!1)?ne:I,Se}if(ye==="<"&&E.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){g.f=g.inline=x,q.highlightFormatting&&(g.formatting="link");var Se=pe(g);return Se?Se+=" ":Se="",Se+S.linkInline}if(ye==="<"&&E.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){g.f=g.inline=x,q.highlightFormatting&&(g.formatting="link");var Se=pe(g);return Se?Se+=" ":Se="",Se+S.linkEmail}if(q.xml&&ye==="<"&&E.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var F=E.string.indexOf(">",E.pos);if(F!=-1){var _e=E.string.substring(E.start,F);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(_e)&&(g.md_inside=!0)}return E.backUp(1),g.htmlState=N.startState(le),ke(E,g,Ne)}if(q.xml&&ye==="<"&&E.match(/^\/\w*?>/))return g.md_inside=!1,"tag";if(ye==="*"||ye==="_"){for(var nt=1,qe=E.pos==1?" ":E.string.charAt(E.pos-2);nt<3&&E.eat(ye);)nt++;var it=E.peek()||" ",$e=!/\s/.test(it)&&(!H.test(it)||/\s/.test(qe)||H.test(qe)),Re=!/\s/.test(qe)&&(!H.test(qe)||/\s/.test(it)||H.test(it)),We=null,je=null;if(nt%2&&(!g.em&&$e&&(ye==="*"||!Re||H.test(qe))?We=!0:g.em==ye&&Re&&(ye==="*"||!$e||H.test(it))&&(We=!1)),nt>1&&(!g.strong&&$e&&(ye==="*"||!Re||H.test(qe))?je=!0:g.strong==ye&&Re&&(ye==="*"||!$e||H.test(it))&&(je=!1)),je!=null||We!=null){q.highlightFormatting&&(g.formatting=We==null?"strong":je==null?"em":"strong em"),We===!0&&(g.em=ye),je===!0&&(g.strong=ye);var xe=pe(g);return We===!1&&(g.em=!1),je===!1&&(g.strong=!1),xe}}else if(ye===" "&&(E.eat("*")||E.eat("_"))){if(E.peek()===" ")return pe(g);E.backUp(1)}if(q.strikethrough){if(ye==="~"&&E.eatWhile(ye)){if(g.strikethrough){q.highlightFormatting&&(g.formatting="strikethrough");var xe=pe(g);return g.strikethrough=!1,xe}else if(E.match(/^[^\s]/,!1))return g.strikethrough=!0,q.highlightFormatting&&(g.formatting="strikethrough"),pe(g)}else if(ye===" "&&E.match(/^~~/,!0)){if(E.peek()===" ")return pe(g);E.backUp(2)}}if(q.emoji&&ye===":"&&E.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){g.emoji=!0,q.highlightFormatting&&(g.formatting="emoji");var lt=pe(g);return g.emoji=!1,lt}return ye===" "&&(E.match(/^ +$/,!1)?g.trailingSpace++:g.trailingSpace&&(g.trailingSpaceNewLine=!0)),pe(g)}function x(E,g){var Q=E.next();if(Q===">"){g.f=g.inline=I,q.highlightFormatting&&(g.formatting="link");var we=pe(g);return we?we+=" ":we="",we+S.linkInline}return E.match(/^[^>]+/,!0),S.linkInline}function ne(E,g){if(E.eatSpace())return null;var Q=E.next();return Q==="("||Q==="["?(g.f=g.inline=b(Q==="("?")":"]"),q.highlightFormatting&&(g.formatting="link-string"),g.linkHref=!0,pe(g)):"error"}var X={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function b(E){return function(g,Q){var we=g.next();if(we===E){Q.f=Q.inline=I,q.highlightFormatting&&(Q.formatting="link-string");var ye=pe(Q);return Q.linkHref=!1,ye}return g.match(X[E]),Q.linkHref=!0,pe(Q)}}function L(E,g){return E.match(/^([^\]\\]|\\.)*\]:/,!1)?(g.f=J,E.next(),q.highlightFormatting&&(g.formatting="link"),g.linkText=!0,pe(g)):ee(E,g,I)}function J(E,g){if(E.match(/^\]:/,!0)){g.f=g.inline=O,q.highlightFormatting&&(g.formatting="link");var Q=pe(g);return g.linkText=!1,Q}return E.match(/^([^\]\\]|\\.)+/,!0),S.linkText}function O(E,g){return E.eatSpace()?null:(E.match(/^[^\s]+/,!0),E.peek()===void 0?g.linkTitle=!0:E.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),g.f=g.inline=I,S.linkHref+" url")}var he={startState:function(){return{f:ge,prevLine:{stream:null},thisLine:{stream:null},block:ge,htmlState:null,indentation:0,inline:I,text:re,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(E){return{f:E.f,prevLine:E.prevLine,thisLine:E.thisLine,block:E.block,htmlState:E.htmlState&&N.copyState(le,E.htmlState),indentation:E.indentation,localMode:E.localMode,localState:E.localMode?N.copyState(E.localMode,E.localState):null,inline:E.inline,text:E.text,formatting:!1,linkText:E.linkText,linkTitle:E.linkTitle,linkHref:E.linkHref,code:E.code,em:E.em,strong:E.strong,strikethrough:E.strikethrough,emoji:E.emoji,header:E.header,setext:E.setext,hr:E.hr,taskList:E.taskList,list:E.list,listStack:E.listStack.slice(0),quote:E.quote,indentedCode:E.indentedCode,trailingSpace:E.trailingSpace,trailingSpaceNewLine:E.trailingSpaceNewLine,md_inside:E.md_inside,fencedEndRE:E.fencedEndRE}},token:function(E,g){if(g.formatting=!1,E!=g.thisLine.stream){if(g.header=0,g.hr=!1,E.match(/^\s*$/,!0))return ue(g),null;if(g.prevLine=g.thisLine,g.thisLine={stream:E},g.taskList=!1,g.trailingSpace=0,g.trailingSpaceNewLine=!1,!g.localState&&(g.f=g.block,g.f!=Ne)){var Q=E.match(/^\s*/,!0)[0].replace(/\t/g,Z).length;if(g.indentation=Q,g.indentationDiff=null,Q>0)return null}}return g.f(E,g)},innerMode:function(E){return E.block==Ne?{state:E.htmlState,mode:le}:E.localState?{state:E.localState,mode:E.localMode}:{state:E,mode:he}},indent:function(E,g,Q){return E.block==Ne&&le.indent?le.indent(E.htmlState,g,Q):E.localState&&E.localMode.indent?E.localMode.indent(E.localState,g,Q):N.Pass},blankLine:ue,getType:pe,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return he},"xml"),N.defineMIME("text/markdown","markdown"),N.defineMIME("text/x-markdown","markdown")})},lzim:function(me,ce,f){"use strict";var N=f("E7E6"),de=f.n(N);f.d(ce,"C",function(){return de.a});var q=f("/GNS"),le=f.n(q);f.d(ce,"B",function(){return le.a});var ae=f("FOrL"),K=f.n(ae);f.d(ce,"v",function(){return K.a});var S=f("HpTS"),k=f.n(S);f.d(ce,"D",function(){return k.a});var R=f("tWlo"),W=f.n(R);f.d(ce,"b",function(){return W.a});var M=f("7ZXX"),A=f.n(M);f.d(ce,"o",function(){return A.a});var Y=f("GABl"),z=f.n(Y);f.d(ce,"g",function(){return z.a});var P=f("onxn"),U=f.n(P);f.d(ce,"q",function(){return U.a});var H=f("nKGa"),Z=f.n(H);f.d(ce,"p",function(){return Z.a});var ee=f("4qgm"),ke=f.n(ee);f.d(ce,"H",function(){return ke.a});var He=f("JeFH"),ue=f.n(He);f.d(ce,"c",function(){return ue.a});var ge=f("ji0R"),Ne=f.n(ge);f.d(ce,"l",function(){return Ne.a});var ve=f("W6BS"),pe=f.n(ve);f.d(ce,"I",function(){return pe.a});var re=f("kPYp"),I=f.n(re);f.d(ce,"J",function(){return I.a});var x=f("nukY"),ne=f.n(x),X=f("4u4S"),b=f.n(X),L=f("yslc"),J=f.n(L),O=f("l2Kq"),he=f.n(O);f.d(ce,"u",function(){return he.a});var E=f("RMFE"),g=f.n(E);f.d(ce,"r",function(){return g.a});var Q=f("TGq3"),we=f.n(Q);f.d(ce,"s",function(){return we.a});var ye=f("SMhR"),Ge=f.n(ye);f.d(ce,"G",function(){return Ge.a});var Ve=f("8/bI"),Me=f.n(Ve);f.d(ce,"m",function(){return Me.a});var Ce=f("JWDV"),xe=f.n(Ce);f.d(ce,"e",function(){return xe.a});var Se=f("Xsq0"),$=f.n(Se);f.d(ce,"t",function(){return $.a});var F=f("Ohmc"),_e=f.n(F);f.d(ce,"d",function(){return _e.a});var nt=f("csWT"),qe=f.n(nt);f.d(ce,"f",function(){return qe.a});var it=f("7v3h"),$e=f.n(it);f.d(ce,"n",function(){return $e.a});var Re=f("cRFk"),We=f.n(Re);f.d(ce,"A",function(){return We.a});var je=f("kPWJ"),lt=f.n(je);f.d(ce,"z",function(){return lt.a});var Ke=f("qgvg"),Te=f.n(Ke);f.d(ce,"w",function(){return Te.a});var Qe=f("FPkq"),dt=f.n(Qe);f.d(ce,"y",function(){return dt.a});var ut=f("A/g1"),et=f.n(ut);f.d(ce,"i",function(){return et.a});var Je=f("Nmxd"),ft=f.n(Je);f.d(ce,"j",function(){return ft.a});var st=f("5D2P"),ot=f.n(st);f.d(ce,"k",function(){return ot.a});var Ee=f("djh8"),gt=f.n(Ee);f.d(ce,"x",function(){return gt.a});var rt=f("Jq4h"),be=f.n(rt);f.d(ce,"a",function(){return be.a});var Ie=f("NhNJ"),V=f.n(Ie);f.d(ce,"E",function(){return V.a});var _=f("C6hP"),G=f.n(_);f.d(ce,"F",function(){return G.a});var y=f("uM6B"),C=f.n(y);f.d(ce,"h",function(){return C.a})},nKGa:function(me,ce,f){me.exports=f.p+"static/export_exercise-template.f7655c19.png"},nVVt:function(me,ce){me.exports={MODE_NUMBER:1<<0,MODE_ALPHA_NUM:1<<1,MODE_8BIT_BYTE:1<<2,MODE_KANJI:1<<3}},nZ20:function(me,ce,f){me.exports={icons:"icons___3O80F"}},nukY:function(me,ce){me.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAMkklEQVR4Xu2dWWwcSRnHv7Yd577v+74vkgWEQCAEy6IVWuCB62GVICFIYkcsvMC+LW8LL7BIiTiEhCweInjgPrRCC2KBJTBVYzm24yRO4ty3kziJj9ie+tC/d9oaT2b67ume7irJsjdbVf19X/266quvjjaEEG8w8yukk7ZAii1gMHODEOK3RPRSivXUqmXcAgb07+jomDk2NvYPZn4u4/bQ6qfUAiboSEKI5cz8XyJanVJdtVoZtsAE6EXYdzPzv4hoToZtolVPoQUmgV6E/QVm/hMRNaVQX61SRi3wDOiwg5Tya0qpn2TUJlrtFFqgIujFnv27zPztFOqsVcqgBaqCzsyGlPJXzPy5DNpFq5wyC1QFHXr29fVN6+/v/zszfyBlemt1MmYBW9Bhi3w+v7hQKJwkog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syDjWVoIjV30Z8kzc7aR6579BgYRl30tvXLH7rPLn+7h8bjlZ5mFP9MDt8EMxD13lt4lpb2ZQc0qegnTeyyKOv2QE5FO3OSgzvFjjporyX6qKNwdMU/6UxpWTfmsuOFCrtZT8WKMKqyJkdbfSPpn5nql4XamMamN5GB0TvUK4KE6HbTqS5ma+eahgtO2ZY9fx2TlKtVziZp3Zl/FigUiZ3wOIYWZ/52pLR35oOU6oPtuw+dNdl6QfsAHmYlMZcEpiXsak6tnQY70bWubrUepjkNJTKTbGv8s8SSlOaD5Z0LwhL4XWmQvSa42rWrgf7+Fn7byVVV5KX6mLbTWcKueEa6etz+M+OphwqlZtmnSUME1bjJyb6vOmm8tc3PvrCeMIJZTLt5zBb1i59tUxuvDeRm+14RscbD1IB9Uo6ZnHRfp2XsX4489Ujy8eT08YTAjSg6Plf333p9HDLpzPlpnEvg4kYH83TrZrxcugy7IkU4SnrdszlW6AS5iOzndzu2FAbexmKY2RCgDR5zVsfrFm2YSrc92cqveNe2xMF9pk4HZvFMmQwflxrqMZFXKub49R1+ZtOne5hJaZpwoAG1GpXjhf/YXuxTK37pyLFPZSGErM7JleYCPVGRN7kreaXsp45OnY7aAwN3xvQcH1b1y65VabMwzMU5zQ79bMKmLHLm2GCEXC0jUkVRSLUF6hdW62c8n7WyzXHfsianBVAg16rqGCOerYt+E4tuOIbviR3suK+cBp1Zdpp0GRVRfZl4/XHD7AzTpnYSFWB0vHlzS2TDiz/cPn4vx2YAML/AxiD3K8wfl5pAAAAAElFTkSuQmCC"},osHv:function(me,ce,f){(function(N){N(f("VrN/"))})(function(N){"use strict";var de=N.Pos;function q(H,Z){return H.line-Z.line||H.ch-Z.ch}var le="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",ae=le+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",K=new RegExp("<(/?)(["+le+"]["+ae+"]*)","g");function S(H,Z,ee,ke){this.line=Z,this.ch=ee,this.cm=H,this.text=H.getLine(Z),this.min=ke?Math.max(ke.from,H.firstLine()):H.firstLine(),this.max=ke?Math.min(ke.to-1,H.lastLine()):H.lastLine()}function k(H,Z){var ee=H.cm.getTokenTypeAt(de(H.line,Z));return ee&&/\btag\b/.test(ee)}function R(H){return H.line>=H.max?void 0:(H.ch=0,H.text=H.cm.getLine(++H.line),!0)}function W(H){return H.line<=H.min?void 0:(H.text=H.cm.getLine(--H.line),H.ch=H.text.length,!0)}function M(H){for(;;){var Z=H.text.indexOf(">",H.ch);if(Z==-1){if(R(H))continue;return}if(!k(H,Z+1)){H.ch=Z+1;continue}var ee=H.text.lastIndexOf("/",Z),ke=ee>-1&&!/\S/.test(H.text.slice(ee+1,Z));return H.ch=Z+1,ke?"selfClose":"regular"}}function A(H){for(;;){var Z=H.ch?H.text.lastIndexOf("<",H.ch-1):-1;if(Z==-1){if(W(H))continue;return}if(!k(H,Z+1)){H.ch=Z;continue}K.lastIndex=Z,H.ch=Z;var ee=K.exec(H.text);if(ee&&ee.index==Z)return ee}}function Y(H){for(;;){K.lastIndex=H.ch;var Z=K.exec(H.text);if(!Z){if(R(H))continue;return}if(!k(H,Z.index+1)){H.ch=Z.index+1;continue}return H.ch=Z.index+Z[0].length,Z}}function z(H){for(;;){var Z=H.ch?H.text.lastIndexOf(">",H.ch-1):-1;if(Z==-1){if(W(H))continue;return}if(!k(H,Z+1)){H.ch=Z;continue}var ee=H.text.lastIndexOf("/",Z),ke=ee>-1&&!/\S/.test(H.text.slice(ee+1,Z));return H.ch=Z+1,ke?"selfClose":"regular"}}function P(H,Z){for(var ee=[];;){var ke=Y(H),He,ue=H.line,ge=H.ch-(ke?ke[0].length:0);if(!ke||!(He=M(H)))return;if(He=="selfClose")continue;if(ke[1]){for(var Ne=ee.length-1;Ne>=0;--Ne)if(ee[Ne]==ke[2]){ee.length=Ne;break}if(Ne<0&&(!Z||Z==ke[2]))return{tag:ke[2],from:de(ue,ge),to:de(H.line,H.ch)}}else ee.push(ke[2])}}function U(H,Z){for(var ee=[];;){var ke=z(H);if(!ke)return;if(ke=="selfClose"){A(H);continue}var He=H.line,ue=H.ch,ge=A(H);if(!ge)return;if(ge[1])ee.push(ge[2]);else{for(var Ne=ee.length-1;Ne>=0;--Ne)if(ee[Ne]==ge[2]){ee.length=Ne;break}if(Ne<0&&(!Z||Z==ge[2]))return{tag:ge[2],from:de(H.line,H.ch),to:de(He,ue)}}}}N.registerHelper("fold","xml",function(H,Z){for(var ee=new S(H,Z.line,0);;){var ke=Y(ee);if(!ke||ee.line!=Z.line)return;var He=M(ee);if(!He)return;if(!ke[1]&&He!="selfClose"){var ue=de(ee.line,ee.ch),ge=P(ee,ke[2]);return ge&&q(ge.from,ue)>0?{from:ue,to:ge.from}:null}}}),N.findMatchingTag=function(H,Z,ee){var ke=new S(H,Z.line,Z.ch,ee);if(ke.text.indexOf(">")==-1&&ke.text.indexOf("<")==-1)return;var He=M(ke),ue=He&&de(ke.line,ke.ch),ge=He&&A(ke);if(!He||!ge||q(ke,Z)>0)return;var Ne={from:de(ke.line,ke.ch),to:ue,tag:ge[2]};return He=="selfClose"?{open:Ne,close:null,at:"open"}:ge[1]?{open:U(ke,ge[2]),close:Ne,at:"close"}:(ke=new S(H,ue.line,ue.ch,ee),{open:Ne,close:P(ke,ge[2]),at:"open"})},N.findEnclosingTag=function(H,Z,ee,ke){for(var He=new S(H,Z.line,Z.ch,ee);;){var ue=U(He,ke);if(!ue)break;var ge=new S(H,Z.line,Z.ch,ee),Ne=P(ge,ue.tag);if(Ne)return{open:ue,close:Ne}}},N.scanForClosingTag=function(H,Z,ee,ke){var He=new S(H,Z.line,Z.ch,ke?{from:0,to:ke}:null);return P(He,ee)}})},p5ED:function(me,ce,f){"use strict";var N=f("+L6B"),de=f("2/Rp"),q=f("5Dmo"),le=f("3S7+"),ae=f("k1fw"),K=f("tJVT"),S=f("q1tI"),k=f.n(S),R=f("vHTk"),W=f.n(R),M=f("yEEn"),A=f("ZW9T"),Y=f("1vsH");ce.a=function(z){var P=z.name,U=z.data,H=z.theme,Z=z.type,ee=z.filename,ke=z.monacoEditor,He=z.className,ue=z.style,ge=z.close,Ne=z.onClose,ve=z.hasMask,pe=Object(S.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),re=Object(K.a)(pe,2),I=re[0],x=re[1],ne=Object(S.useState)(""),X=Object(K.a)(ne,2),b=X[0],L=X[1],J=Object(S.useRef)();ee&&(ke.filename=ee),Object(S.useEffect)(function(){var E,g,Q=(E=document.cookie)===null||E===void 0||((g=E.replace(/\s/g,""))===null||g===void 0)?void 0:g.split(";");Q==null||Q.map(function(we){var ye=we.split("=");ye[0]==="_educoder_session"&&L(ye[1])})},[]);var O=function(){if(U.startsWith("http")||U.startsWith("/")){he();return}Object(Y.x)(ee||"educoder",U,ee)},he=function(){Object(Y.v)(ee||P,U)};return console.log("data:",U,"fileanme:",ee," name:",P),k.a.createElement("div",{style:Object(ae.a)({},ue||{}),className:"".concat(ve&&W.a.bgBlack," ").concat(Z?W.a.wrp:"hide")},ge&&k.a.createElement("div",{className:W.a.close,ref:J},k.a.createElement(le.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return J.current}},k.a.createElement("span",{onClick:he},k.a.createElement("i",{className:"icon-quxiaozhiding"}))),k.a.createElement(le.a,{title:"\u5173\u95ED",getPopupContainer:function(){return J.current}},k.a.createElement("span",{className:"",onClick:Ne},k.a.createElement("i",{className:"icon-guanbi1"})))),k.a.createElement("div",{className:"".concat(W.a[He]," ").concat(He," ").concat(W.a.monaco," ").concat(Z==="txt"?"show":"hide")},Z==="txt"&&k.a.createElement(A.b,ke)),Z==="audio"&&k.a.createElement("audio",{src:"".concat(U!=null&&U.startsWith("/")||(U==null?void 0:U.indexOf("https://"))>-1?U:"data:audio/mp3;base64,").concat(U),autoPlay:!0}),Z==="video"&&k.a.createElement(k.a.Fragment,null,U!=null&&U.startsWith("/")?k.a.createElement("video",{controls:!0,src:"".concat(U),autoPlay:!0}):k.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(U),autoPlay:!0})),Z==="html"&&k.a.createElement("iframe",{src:U+"&disposition=inline"}),Z==="pdf"&&k.a.createElement("embed",{className:W.a.embed,src:U}),Z==="image"&&k.a.createElement(k.a.Fragment,null,k.a.createElement("img",{src:"".concat(U!=null&&U.startsWith("/")||(U==null?void 0:U.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(U)})),Z==="other"&&k.a.createElement("div",null,k.a.createElement(de.a,{type:"primary",size:"large",onClick:O},k.a.createElement(M.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(Z==="download"||Z==="office")&&k.a.createElement(de.a,{type:"primary",size:"large",onClick:O},k.a.createElement(M.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(me,ce,f){},qgvg:function(me,ce){me.exports="data:image/gif;base64,R0lGODlhFAAQAOZVAD6Q33p6ezZto2VnaW5vcDuCxiYvNysvM1tdXzNij5eXlyg0QTA0OExOUWZnaS8zN19hYzFYf0Oi/Sg1QoeHh2JjZWZoaTdzrTRmljl5tzFZgDBWez6P3Tl4tjl8uzdxqWBiYys/VCUqL39/gHV2dy4yNScyPDJeiEpNTzk8P0CX6jc7PiYuNWlqaywwNDZtojAzNytDWScrLitAVUGb8Xl6eoWFhTp+wDNgjWRmZ4+QkFdZWzo9QIODgyo/Uzh3syg0QCczPmprbTRllW9wcSotMVJUVjZupDuEylBSVUGb8kxPUZGRkTd0rUGc82JkZUKe9j2M1zg7P4iIiEOj/yUpLQA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RTc3OTU2RDlCREYxMUVBQjNDMUNCNjkwRUU4NkMwNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo3RTc3OTU2RTlCREYxMUVBQjNDMUNCNjkwRUU4NkMwNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUyAFUALAAAAAAUABAAAAd5gFWCg4RSLoSIiVUPFlNEhAwDCIoyST1TUwGCBwM6AweJPCSYmJpVCAMMgykgFRUtFKSlilVCsreZtAS4sqaJu7yzisDBvhAKyBDEvL6Iy7jNhA7BwoklKA0NRiO30bRFOzakpqiqtItPsTWbA0wWoOcrOUuEMA6TgQAh+QQFMgBVACwAAAAAFAAQAAAHeIBVgoOEISaEiIlVExlUSIQLAgmKIidOVFQAggYCNAIGiTFRmJiaVQkCC4MzHxcXHhKkpYpVN7K3mbQFuLKmibu8s4rAwb4YpBjEvL6IyrjMhB3BwolBGxEROCq30LQsQ1CkpqiqtItNsRybAkpHoOY+PxqEQC+TgQA7"},"rAM+":function(me,ce,f){"use strict";f.d(ce,"a",function(){return de});var N=f("Qw5x");function de(q,le){var ae;if(typeof Symbol=="undefined"||q[Symbol.iterator]==null){if(Array.isArray(q)||(ae=Object(N.a)(q))||le&&q&&typeof q.length=="number"){ae&&(q=ae);var K=0,S=function(){};return{s:S,n:function(){return K>=q.length?{done:!0}:{done:!1,value:q[K++]}},e:function(A){throw A},f:S}}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 k=!0,R=!1,W;return{s:function(){ae=q[Symbol.iterator]()},n:function(){var A=ae.next();return k=A.done,A},e:function(A){R=!0,W=A},f:function(){try{!k&&ae.return!=null&&ae.return()}finally{if(R)throw W}}}}},rUJ1:function(me,ce){const f=/[&<>"']/,N=/[&<>"']/g,de=/[<>"']|&(?!#?\w+;)/,q=/[<>"']|&(?!#?\w+;)/g,le={"&":"&","<":"<",">":">",'"':""","'":"'"},ae=ve=>le[ve];function K(ve,pe){if(pe){if(f.test(ve))return ve.replace(N,ae)}else if(de.test(ve))return ve.replace(q,ae);return ve}const S=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function k(ve){return ve.replace(S,(pe,re)=>(re=re.toLowerCase(),re==="colon"?":":re.charAt(0)==="#"?re.charAt(1)==="x"?String.fromCharCode(parseInt(re.substring(2),16)):String.fromCharCode(+re.substring(1)):""))}const R=/(^|[^\[])\^/g;function W(ve,pe){ve=ve.source||ve,pe=pe||"";const re={replace:(I,x)=>(x=x.source||x,x=x.replace(R,"$1"),ve=ve.replace(I,x),re),getRegex:()=>new RegExp(ve,pe)};return re}const M=/[^\w:]/g,A=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Y(ve,pe,re){if(ve){let I;try{I=decodeURIComponent(k(re)).replace(M,"").toLowerCase()}catch(x){return null}if(I.indexOf("javascript:")===0||I.indexOf("vbscript:")===0||I.indexOf("data:")===0)return null}pe&&!A.test(re)&&(re=Z(pe,re));try{re=encodeURI(re).replace(/%25/g,"%")}catch(I){return null}return re}const z={},P=/^[^:]+:\/*[^/]*$/,U=/^([^:]+:)[\s\S]*$/,H=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Z(ve,pe){z[" "+ve]||(P.test(ve)?z[" "+ve]=ve+"/":z[" "+ve]=ue(ve,"/",!0)),ve=z[" "+ve];const re=ve.indexOf(":")===-1;return pe.substring(0,2)==="//"?re?pe:ve.replace(U,"$1")+pe:pe.charAt(0)==="/"?re?pe:ve.replace(H,"$1")+pe:ve+pe}const ee={exec:function(){}};function ke(ve){let pe=1,re,I;for(;pe<arguments.length;pe++){re=arguments[pe];for(I in re)Object.prototype.hasOwnProperty.call(re,I)&&(ve[I]=re[I])}return ve}function He(ve,pe){const re=ve.replace(/\|/g,(ne,X,b)=>{let L=!1,J=X;for(;--J>=0&&b[J]==="\\";)L=!L;return L?"|":" |"}),I=re.split(/ \|/);let x=0;if(I.length>pe)I.splice(pe);else for(;I.length<pe;)I.push("");for(;x<I.length;x++)I[x]=I[x].trim().replace(/\\\|/g,"|");return I}function ue(ve,pe,re){const I=ve.length;if(I===0)return"";let x=0;for(;x<I;){const ne=ve.charAt(I-x-1);if(ne===pe&&!re)x++;else if(ne!==pe&&re)x++;else break}return ve.substr(0,I-x)}function ge(ve,pe){if(ve.indexOf(pe[1])===-1)return-1;const re=ve.length;let I=0,x=0;for(;x<re;x++)if(ve[x]==="\\")x++;else if(ve[x]===pe[0])I++;else if(ve[x]===pe[1]&&(I--,I<0))return x;return-1}function Ne(ve){ve&&ve.sanitize&&!ve.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")}me.exports={escape:K,unescape:k,edit:W,cleanUrl:Y,resolveUrl:Z,noopTest:ee,merge:ke,splitCells:He,rtrim:ue,findClosingBracket:ge,checkSanitizeDeprecation:Ne}},rcnY:function(me,ce,f){var N=f("aRTE");function de(q,le){this.totalCount=q,this.dataCount=le}de.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],de.getRSBlocks=function(q,le){var ae=de.getRsBlockTable(q,le);if(ae==null)throw new Error("bad rs block @ typeNumber:"+q+"/errorCorrectLevel:"+le);for(var K=ae.length/3,S=new Array,k=0;k<K;k++)for(var R=ae[k*3+0],W=ae[k*3+1],M=ae[k*3+2],A=0;A<R;A++)S.push(new de(W,M));return S},de.getRsBlockTable=function(q,le){switch(le){case N.L:return de.RS_BLOCK_TABLE[(q-1)*4+0];case N.M:return de.RS_BLOCK_TABLE[(q-1)*4+1];case N.Q:return de.RS_BLOCK_TABLE[(q-1)*4+2];case N.H:return de.RS_BLOCK_TABLE[(q-1)*4+3];default:return}},me.exports=de},tWlo:function(me,ce){me.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkVCNENBMTM0OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkVCNENBMTM1OENGMTExRTk4NzNCRkMxMzdBMjc5MEY5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmO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cgUATQACJeKvVeqCsrGzZjBkzvkpKSjKCtPz9/W0FBQV2SW2xTTybuKC6MjIyZM7kpdVq5QaDQWEymRTu7u4ym80ms9vt/NgE8BBNFAgIBBoxAgqFwiGXyx14rKiocLi6utq0Wq3NYDDYnUkrPDzcgdnEM4hLynPh0Zm8TCaTTKfTgbjkJpNJ7u3tLbNarfzTiLEQTRNrjQBAAAAA3ElEQVQICASaEAJKpdKBn5KSEhCXXavV2vV6vd3V1dUBpXU2adUk56U+IknvTF56vV5mMBhkILDg4GCZ0WiUVVVV8TFms1mQVxP6cIimCgQaIwJqtZpVlIuLi0Oj0ThycnJAXg6tVuvQ6XSO2kjrHOJyVl7OBIbnIDE8gsjwCDJrjECINgkEBAJNBwGQFFoLosIjyAqPzoQl2UPnXtVKPpLycj4QFrI2OJATazowiZYKBAQCjQEBEFNt7ZDyWGeQlEx2zrH1kk5tJNYYOi7aIBAQCFy7CGDm8Hy9+z+xhIMEHZbTJwAAAABJRU5ErkJggg=="},vHTk:function(me,ce,f){me.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wU8J:function(me,ce){function f(){this.buffer=new Array,this.length=0}f.prototype={get:function(N){var de=Math.floor(N/8);return(this.buffer[de]>>>7-N%8&1)==1},put:function(N,de){for(var q=0;q<de;q++)this.putBit((N>>>de-q-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(N){var de=Math.floor(this.length/8);this.buffer.length<=de&&this.buffer.push(0),N&&(this.buffer[de]|=128>>>this.length%8),this.length++}},me.exports=f},yslc:function(me,ce){me.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6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eMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="},zEei:function(me,ce,f){me.exports={flex_box_center:"flex_box_center___3trsE",flex_space_between:"flex_space_between___vYNfG",flex_box_vertical_center:"flex_box_vertical_center___267W4",flex_box_center_end:"flex_box_center_end___35F4i",flex_box_column:"flex_box_column___1cLWS",bg:"bg___13rUr",flexRow:"flexRow___geim6",flexJustifyCenter:"flexJustifyCenter___2SLQ2",flexAlignEnd:"flexAlignEnd___2-3OH",flexAlignCenter:"flexAlignCenter___2PK_9",flexColumn:"flexColumn___pc_D1",formWrap:"formWrap___3ozw6",titleWrap:"titleWrap___3JSLu",fieldWrap:"fieldWrap___1M8-z",mdWrap:"mdWrap___3iPl2",backgroundFa:"backgroundFa___2Wd1f",button:"button___3ie7q",icons:"icons___-WSHu",addButton:"addButton___1qx7n",navBar:"navBar___xDlWA",actived:"actived___dZNDy",deleteButton:"deleteButton___3Ethm"}}}]);
|